configure revision 0c674dbd
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXrandr 1.5.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libXrandr' 624PACKAGE_TARNAME='libXrandr' 625PACKAGE_VERSION='1.5.4' 626PACKAGE_STRING='libXrandr 1.5.4' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667RANDR_LIBS 668RANDR_CFLAGS 669RANDR_VERSION 670XTMALLOC_ZERO_CFLAGS 671XMALLOC_ZERO_CFLAGS 672MALLOC_ZERO_CFLAGS 673MAN_SUBSTS 674XORG_MAN_PAGE 675ADMIN_MAN_DIR 676DRIVER_MAN_DIR 677MISC_MAN_DIR 678FILE_MAN_DIR 679LIB_MAN_DIR 680APP_MAN_DIR 681ADMIN_MAN_SUFFIX 682DRIVER_MAN_SUFFIX 683MISC_MAN_SUFFIX 684FILE_MAN_SUFFIX 685LIB_MAN_SUFFIX 686APP_MAN_SUFFIX 687INSTALL_CMD 688PKG_CONFIG_LIBDIR 689PKG_CONFIG_PATH 690PKG_CONFIG 691CHANGELOG_CMD 692STRICT_CFLAGS 693CWARNFLAGS 694BASE_CFLAGS 695LT_SYS_LIBRARY_PATH 696OTOOL64 697OTOOL 698LIPO 699NMEDIT 700DSYMUTIL 701MANIFEST_TOOL 702RANLIB 703ac_ct_AR 704AR 705DLLTOOL 706OBJDUMP 707FILECMD 708LN_S 709NM 710ac_ct_DUMPBIN 711DUMPBIN 712LD 713FGREP 714EGREP 715GREP 716SED 717am__fastdepCC_FALSE 718am__fastdepCC_TRUE 719CCDEPMODE 720am__nodep 721AMDEPBACKSLASH 722AMDEP_FALSE 723AMDEP_TRUE 724am__include 725DEPDIR 726OBJEXT 727EXEEXT 728ac_ct_CC 729CPPFLAGS 730LDFLAGS 731CFLAGS 732CC 733host_os 734host_vendor 735host_cpu 736host 737build_os 738build_vendor 739build_cpu 740build 741LIBTOOL 742AM_BACKSLASH 743AM_DEFAULT_VERBOSITY 744AM_DEFAULT_V 745AM_V 746CSCOPE 747ETAGS 748CTAGS 749am__untar 750am__tar 751AMTAR 752am__leading_dot 753SET_MAKE 754AWK 755mkdir_p 756MKDIR_P 757INSTALL_STRIP_PROGRAM 758STRIP 759install_sh 760MAKEINFO 761AUTOHEADER 762AUTOMAKE 763AUTOCONF 764ACLOCAL 765VERSION 766PACKAGE 767CYGPATH_W 768am__isrc 769INSTALL_DATA 770INSTALL_SCRIPT 771INSTALL_PROGRAM 772target_alias 773host_alias 774build_alias 775LIBS 776ECHO_T 777ECHO_N 778ECHO_C 779DEFS 780mandir 781localedir 782libdir 783psdir 784pdfdir 785dvidir 786htmldir 787infodir 788docdir 789oldincludedir 790includedir 791runstatedir 792localstatedir 793sharedstatedir 794sysconfdir 795datadir 796datarootdir 797libexecdir 798sbindir 799bindir 800program_transform_name 801prefix 802exec_prefix 803PACKAGE_URL 804PACKAGE_BUGREPORT 805PACKAGE_STRING 806PACKAGE_VERSION 807PACKAGE_TARNAME 808PACKAGE_NAME 809PATH_SEPARATOR 810SHELL 811am__quote' 812ac_subst_files='' 813ac_user_opts=' 814enable_option_checking 815enable_silent_rules 816enable_shared 817enable_static 818with_pic 819enable_fast_install 820with_aix_soname 821enable_dependency_tracking 822with_gnu_ld 823with_sysroot 824enable_libtool_lock 825enable_selective_werror 826enable_strict_compilation 827enable_malloc0returnsnull 828' 829 ac_precious_vars='build_alias 830host_alias 831target_alias 832CC 833CFLAGS 834LDFLAGS 835LIBS 836CPPFLAGS 837LT_SYS_LIBRARY_PATH 838PKG_CONFIG 839PKG_CONFIG_PATH 840PKG_CONFIG_LIBDIR 841RANDR_CFLAGS 842RANDR_LIBS' 843 844 845# Initialize some variables set by options. 846ac_init_help= 847ac_init_version=false 848ac_unrecognized_opts= 849ac_unrecognized_sep= 850# The variables have the same names as the options, with 851# dashes changed to underlines. 852cache_file=/dev/null 853exec_prefix=NONE 854no_create= 855no_recursion= 856prefix=NONE 857program_prefix=NONE 858program_suffix=NONE 859program_transform_name=s,x,x, 860silent= 861site= 862srcdir= 863verbose= 864x_includes=NONE 865x_libraries=NONE 866 867# Installation directory options. 868# These are left unexpanded so users can "make install exec_prefix=/foo" 869# and all the variables that are supposed to be based on exec_prefix 870# by default will actually change. 871# Use braces instead of parens because sh, perl, etc. also accept them. 872# (The list follows the same order as the GNU Coding Standards.) 873bindir='${exec_prefix}/bin' 874sbindir='${exec_prefix}/sbin' 875libexecdir='${exec_prefix}/libexec' 876datarootdir='${prefix}/share' 877datadir='${datarootdir}' 878sysconfdir='${prefix}/etc' 879sharedstatedir='${prefix}/com' 880localstatedir='${prefix}/var' 881runstatedir='${localstatedir}/run' 882includedir='${prefix}/include' 883oldincludedir='/usr/include' 884docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 885infodir='${datarootdir}/info' 886htmldir='${docdir}' 887dvidir='${docdir}' 888pdfdir='${docdir}' 889psdir='${docdir}' 890libdir='${exec_prefix}/lib' 891localedir='${datarootdir}/locale' 892mandir='${datarootdir}/man' 893 894ac_prev= 895ac_dashdash= 896for ac_option 897do 898 # If the previous option needs an argument, assign it. 899 if test -n "$ac_prev"; then 900 eval $ac_prev=\$ac_option 901 ac_prev= 902 continue 903 fi 904 905 case $ac_option in 906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 907 *=) ac_optarg= ;; 908 *) ac_optarg=yes ;; 909 esac 910 911 case $ac_dashdash$ac_option in 912 --) 913 ac_dashdash=yes ;; 914 915 -bindir | --bindir | --bindi | --bind | --bin | --bi) 916 ac_prev=bindir ;; 917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 918 bindir=$ac_optarg ;; 919 920 -build | --build | --buil | --bui | --bu) 921 ac_prev=build_alias ;; 922 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 923 build_alias=$ac_optarg ;; 924 925 -cache-file | --cache-file | --cache-fil | --cache-fi \ 926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 927 ac_prev=cache_file ;; 928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 930 cache_file=$ac_optarg ;; 931 932 --config-cache | -C) 933 cache_file=config.cache ;; 934 935 -datadir | --datadir | --datadi | --datad) 936 ac_prev=datadir ;; 937 -datadir=* | --datadir=* | --datadi=* | --datad=*) 938 datadir=$ac_optarg ;; 939 940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 941 | --dataroo | --dataro | --datar) 942 ac_prev=datarootdir ;; 943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 945 datarootdir=$ac_optarg ;; 946 947 -disable-* | --disable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error $? "invalid feature name: \`$ac_useropt'" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956"enable_$ac_useropt" 957"*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=no ;; 962 963 -docdir | --docdir | --docdi | --doc | --do) 964 ac_prev=docdir ;; 965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 966 docdir=$ac_optarg ;; 967 968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 969 ac_prev=dvidir ;; 970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 971 dvidir=$ac_optarg ;; 972 973 -enable-* | --enable-*) 974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 975 # Reject names that are not valid shell variable names. 976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 977 as_fn_error $? "invalid feature name: \`$ac_useropt'" 978 ac_useropt_orig=$ac_useropt 979 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 980 case $ac_user_opts in 981 *" 982"enable_$ac_useropt" 983"*) ;; 984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 985 ac_unrecognized_sep=', ';; 986 esac 987 eval enable_$ac_useropt=\$ac_optarg ;; 988 989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 991 | --exec | --exe | --ex) 992 ac_prev=exec_prefix ;; 993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 995 | --exec=* | --exe=* | --ex=*) 996 exec_prefix=$ac_optarg ;; 997 998 -gas | --gas | --ga | --g) 999 # Obsolete; use --with-gas. 1000 with_gas=yes ;; 1001 1002 -help | --help | --hel | --he | -h) 1003 ac_init_help=long ;; 1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1005 ac_init_help=recursive ;; 1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1007 ac_init_help=short ;; 1008 1009 -host | --host | --hos | --ho) 1010 ac_prev=host_alias ;; 1011 -host=* | --host=* | --hos=* | --ho=*) 1012 host_alias=$ac_optarg ;; 1013 1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1015 ac_prev=htmldir ;; 1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1017 | --ht=*) 1018 htmldir=$ac_optarg ;; 1019 1020 -includedir | --includedir | --includedi | --included | --include \ 1021 | --includ | --inclu | --incl | --inc) 1022 ac_prev=includedir ;; 1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1024 | --includ=* | --inclu=* | --incl=* | --inc=*) 1025 includedir=$ac_optarg ;; 1026 1027 -infodir | --infodir | --infodi | --infod | --info | --inf) 1028 ac_prev=infodir ;; 1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1030 infodir=$ac_optarg ;; 1031 1032 -libdir | --libdir | --libdi | --libd) 1033 ac_prev=libdir ;; 1034 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1035 libdir=$ac_optarg ;; 1036 1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1038 | --libexe | --libex | --libe) 1039 ac_prev=libexecdir ;; 1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1041 | --libexe=* | --libex=* | --libe=*) 1042 libexecdir=$ac_optarg ;; 1043 1044 -localedir | --localedir | --localedi | --localed | --locale) 1045 ac_prev=localedir ;; 1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1047 localedir=$ac_optarg ;; 1048 1049 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1050 | --localstate | --localstat | --localsta | --localst | --locals) 1051 ac_prev=localstatedir ;; 1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1054 localstatedir=$ac_optarg ;; 1055 1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1057 ac_prev=mandir ;; 1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1059 mandir=$ac_optarg ;; 1060 1061 -nfp | --nfp | --nf) 1062 # Obsolete; use --without-fp. 1063 with_fp=no ;; 1064 1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1066 | --no-cr | --no-c | -n) 1067 no_create=yes ;; 1068 1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1071 no_recursion=yes ;; 1072 1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1075 | --oldin | --oldi | --old | --ol | --o) 1076 ac_prev=oldincludedir ;; 1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1080 oldincludedir=$ac_optarg ;; 1081 1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1083 ac_prev=prefix ;; 1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1085 prefix=$ac_optarg ;; 1086 1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1088 | --program-pre | --program-pr | --program-p) 1089 ac_prev=program_prefix ;; 1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1092 program_prefix=$ac_optarg ;; 1093 1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1095 | --program-suf | --program-su | --program-s) 1096 ac_prev=program_suffix ;; 1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1099 program_suffix=$ac_optarg ;; 1100 1101 -program-transform-name | --program-transform-name \ 1102 | --program-transform-nam | --program-transform-na \ 1103 | --program-transform-n | --program-transform- \ 1104 | --program-transform | --program-transfor \ 1105 | --program-transfo | --program-transf \ 1106 | --program-trans | --program-tran \ 1107 | --progr-tra | --program-tr | --program-t) 1108 ac_prev=program_transform_name ;; 1109 -program-transform-name=* | --program-transform-name=* \ 1110 | --program-transform-nam=* | --program-transform-na=* \ 1111 | --program-transform-n=* | --program-transform-=* \ 1112 | --program-transform=* | --program-transfor=* \ 1113 | --program-transfo=* | --program-transf=* \ 1114 | --program-trans=* | --program-tran=* \ 1115 | --progr-tra=* | --program-tr=* | --program-t=*) 1116 program_transform_name=$ac_optarg ;; 1117 1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1119 ac_prev=pdfdir ;; 1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1121 pdfdir=$ac_optarg ;; 1122 1123 -psdir | --psdir | --psdi | --psd | --ps) 1124 ac_prev=psdir ;; 1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1126 psdir=$ac_optarg ;; 1127 1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1129 | -silent | --silent | --silen | --sile | --sil) 1130 silent=yes ;; 1131 1132 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1133 | --runstate | --runstat | --runsta | --runst | --runs \ 1134 | --run | --ru | --r) 1135 ac_prev=runstatedir ;; 1136 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1137 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1138 | --run=* | --ru=* | --r=*) 1139 runstatedir=$ac_optarg ;; 1140 1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1142 ac_prev=sbindir ;; 1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1144 | --sbi=* | --sb=*) 1145 sbindir=$ac_optarg ;; 1146 1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1149 | --sharedst | --shareds | --shared | --share | --shar \ 1150 | --sha | --sh) 1151 ac_prev=sharedstatedir ;; 1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1155 | --sha=* | --sh=*) 1156 sharedstatedir=$ac_optarg ;; 1157 1158 -site | --site | --sit) 1159 ac_prev=site ;; 1160 -site=* | --site=* | --sit=*) 1161 site=$ac_optarg ;; 1162 1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1164 ac_prev=srcdir ;; 1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1166 srcdir=$ac_optarg ;; 1167 1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1169 | --syscon | --sysco | --sysc | --sys | --sy) 1170 ac_prev=sysconfdir ;; 1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1173 sysconfdir=$ac_optarg ;; 1174 1175 -target | --target | --targe | --targ | --tar | --ta | --t) 1176 ac_prev=target_alias ;; 1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1178 target_alias=$ac_optarg ;; 1179 1180 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1181 verbose=yes ;; 1182 1183 -version | --version | --versio | --versi | --vers | -V) 1184 ac_init_version=: ;; 1185 1186 -with-* | --with-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: \`$ac_useropt'" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195"with_$ac_useropt" 1196"*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=\$ac_optarg ;; 1201 1202 -without-* | --without-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: \`$ac_useropt'" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=no ;; 1217 1218 --x) 1219 # Obsolete; use --with-x. 1220 with_x=yes ;; 1221 1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1223 | --x-incl | --x-inc | --x-in | --x-i) 1224 ac_prev=x_includes ;; 1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1227 x_includes=$ac_optarg ;; 1228 1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1231 ac_prev=x_libraries ;; 1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1234 x_libraries=$ac_optarg ;; 1235 1236 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1237Try \`$0 --help' for more information" 1238 ;; 1239 1240 *=*) 1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1242 # Reject names that are not valid shell variable names. 1243 case $ac_envvar in #( 1244 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1245 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1246 esac 1247 eval $ac_envvar=\$ac_optarg 1248 export $ac_envvar ;; 1249 1250 *) 1251 # FIXME: should be removed in autoconf 3.0. 1252 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1254 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1256 ;; 1257 1258 esac 1259done 1260 1261if test -n "$ac_prev"; then 1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1263 as_fn_error $? "missing argument to $ac_option" 1264fi 1265 1266if test -n "$ac_unrecognized_opts"; then 1267 case $enable_option_checking in 1268 no) ;; 1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1270 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1271 esac 1272fi 1273 1274# Check all directory arguments for consistency. 1275for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir runstatedir 1279do 1280 eval ac_val=\$$ac_var 1281 # Remove trailing slashes. 1282 case $ac_val in 1283 */ ) 1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1285 eval $ac_var=\$ac_val;; 1286 esac 1287 # Be sure to have absolute directory names. 1288 case $ac_val in 1289 [\\/$]* | ?:[\\/]* ) continue;; 1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1291 esac 1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1293done 1294 1295# There might be people who depend on the old broken behavior: `$host' 1296# used to hold the argument of --host etc. 1297# FIXME: To remove some day. 1298build=$build_alias 1299host=$host_alias 1300target=$target_alias 1301 1302# FIXME: To remove some day. 1303if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 elif test "x$build_alias" != "x$host_alias"; then 1307 cross_compiling=yes 1308 fi 1309fi 1310 1311ac_tool_prefix= 1312test -n "$host_alias" && ac_tool_prefix=$host_alias- 1313 1314test "$silent" = yes && exec 6>/dev/null 1315 1316 1317ac_pwd=`pwd` && test -n "$ac_pwd" && 1318ac_ls_di=`ls -di .` && 1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1320 as_fn_error $? "working directory cannot be determined" 1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1322 as_fn_error $? "pwd does not report name of working directory" 1323 1324 1325# Find the source files, if location was not specified. 1326if test -z "$srcdir"; then 1327 ac_srcdir_defaulted=yes 1328 # Try the directory containing this script, then the parent directory. 1329 ac_confdir=`$as_dirname -- "$as_myself" || 1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1331 X"$as_myself" : 'X\(//\)[^/]' \| \ 1332 X"$as_myself" : 'X\(//\)$' \| \ 1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1334printf "%s\n" X"$as_myself" | 1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)[^/].*/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\).*/{ 1348 s//\1/ 1349 q 1350 } 1351 s/.*/./; q'` 1352 srcdir=$ac_confdir 1353 if test ! -r "$srcdir/$ac_unique_file"; then 1354 srcdir=.. 1355 fi 1356else 1357 ac_srcdir_defaulted=no 1358fi 1359if test ! -r "$srcdir/$ac_unique_file"; then 1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1362fi 1363ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1364ac_abs_confdir=`( 1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1366 pwd)` 1367# When building in place, set srcdir=. 1368if test "$ac_abs_confdir" = "$ac_pwd"; then 1369 srcdir=. 1370fi 1371# Remove unnecessary trailing slashes from srcdir. 1372# Double slashes in file names in object file debugging info 1373# mess up M-x gdb in Emacs. 1374case $srcdir in 1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1376esac 1377for ac_var in $ac_precious_vars; do 1378 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_env_${ac_var}_value=\$${ac_var} 1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1382done 1383 1384# 1385# Report the --help message. 1386# 1387if test "$ac_init_help" = "long"; then 1388 # Omit some internal or obsolete options to make the list less imposing. 1389 # This message is too long to be a string in the A/UX 3.1 sh. 1390 cat <<_ACEOF 1391\`configure' configures libXrandr 1.5.4 to adapt to many kinds of systems. 1392 1393Usage: $0 [OPTION]... [VAR=VALUE]... 1394 1395To assign environment variables (e.g., CC, CFLAGS...), specify them as 1396VAR=VALUE. See below for descriptions of some of the useful variables. 1397 1398Defaults for the options are specified in brackets. 1399 1400Configuration: 1401 -h, --help display this help and exit 1402 --help=short display options specific to this package 1403 --help=recursive display the short help of all the included packages 1404 -V, --version display version information and exit 1405 -q, --quiet, --silent do not print \`checking ...' messages 1406 --cache-file=FILE cache test results in FILE [disabled] 1407 -C, --config-cache alias for \`--cache-file=config.cache' 1408 -n, --no-create do not create output files 1409 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1410 1411Installation directories: 1412 --prefix=PREFIX install architecture-independent files in PREFIX 1413 [$ac_default_prefix] 1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1415 [PREFIX] 1416 1417By default, \`make install' will install all the files in 1418\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1419an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1420for instance \`--prefix=\$HOME'. 1421 1422For better control, use the options below. 1423 1424Fine tuning of the installation directories: 1425 --bindir=DIR user executables [EPREFIX/bin] 1426 --sbindir=DIR system admin executables [EPREFIX/sbin] 1427 --libexecdir=DIR program executables [EPREFIX/libexec] 1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1431 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1432 --libdir=DIR object code libraries [EPREFIX/lib] 1433 --includedir=DIR C header files [PREFIX/include] 1434 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1437 --infodir=DIR info documentation [DATAROOTDIR/info] 1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1439 --mandir=DIR man documentation [DATAROOTDIR/man] 1440 --docdir=DIR documentation root [DATAROOTDIR/doc/libXrandr] 1441 --htmldir=DIR html documentation [DOCDIR] 1442 --dvidir=DIR dvi documentation [DOCDIR] 1443 --pdfdir=DIR pdf documentation [DOCDIR] 1444 --psdir=DIR ps documentation [DOCDIR] 1445_ACEOF 1446 1447 cat <<\_ACEOF 1448 1449Program names: 1450 --program-prefix=PREFIX prepend PREFIX to installed program names 1451 --program-suffix=SUFFIX append SUFFIX to installed program names 1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1453 1454System types: 1455 --build=BUILD configure for building on BUILD [guessed] 1456 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1457_ACEOF 1458fi 1459 1460if test -n "$ac_init_help"; then 1461 case $ac_init_help in 1462 short | recursive ) echo "Configuration of libXrandr 1.5.4:";; 1463 esac 1464 cat <<\_ACEOF 1465 1466Optional Features: 1467 --disable-option-checking ignore unrecognized --enable/--with options 1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1470 --enable-silent-rules less verbose build output (undo: "make V=1") 1471 --disable-silent-rules verbose build output (undo: "make V=0") 1472 --enable-shared[=PKGS] build shared libraries [default=yes] 1473 --enable-static[=PKGS] build static libraries [default=yes] 1474 --enable-fast-install[=PKGS] 1475 optimize for fast installation [default=yes] 1476 --enable-dependency-tracking 1477 do not reject slow dependency extractors 1478 --disable-dependency-tracking 1479 speeds up one-time build 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 --disable-selective-werror 1482 Turn off selective compiler errors. (default: 1483 enabled) 1484 --enable-strict-compilation 1485 Enable all warnings from compiler and make them 1486 errors (default: disabled) 1487 --enable-malloc0returnsnull 1488 malloc(0) returns NULL (default: auto) 1489 1490Optional Packages: 1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1493 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1494 both] 1495 --with-aix-soname=aix|svr4|both 1496 shared library versioning (aka "SONAME") variant to 1497 provide on AIX, [default=aix]. 1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1499 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1500 compiler's sysroot if not specified). 1501 1502Some influential environment variables: 1503 CC C compiler command 1504 CFLAGS C compiler flags 1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1506 nonstandard directory <lib dir> 1507 LIBS libraries to pass to the linker, e.g. -l<library> 1508 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1509 you have headers in a nonstandard directory <include dir> 1510 LT_SYS_LIBRARY_PATH 1511 User-defined run-time library search path. 1512 PKG_CONFIG path to pkg-config utility 1513 PKG_CONFIG_PATH 1514 directories to add to pkg-config's search path 1515 PKG_CONFIG_LIBDIR 1516 path overriding pkg-config's built-in search path 1517 RANDR_CFLAGS 1518 C compiler flags for RANDR, overriding pkg-config 1519 RANDR_LIBS linker flags for RANDR, overriding pkg-config 1520 1521Use these variables to override the choices made by `configure' or to help 1522it to find libraries and programs with nonstandard names/locations. 1523 1524Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues>. 1525_ACEOF 1526ac_status=$? 1527fi 1528 1529if test "$ac_init_help" = "recursive"; then 1530 # If there are subdirs, report their specific --help. 1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1532 test -d "$ac_dir" || 1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1534 continue 1535 ac_builddir=. 1536 1537case "$ac_dir" in 1538.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539*) 1540 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1541 # A ".." for each directory in $ac_dir_suffix. 1542 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1543 case $ac_top_builddir_sub in 1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1546 esac ;; 1547esac 1548ac_abs_top_builddir=$ac_pwd 1549ac_abs_builddir=$ac_pwd$ac_dir_suffix 1550# for backward compatibility: 1551ac_top_builddir=$ac_top_build_prefix 1552 1553case $srcdir in 1554 .) # We are building in place. 1555 ac_srcdir=. 1556 ac_top_srcdir=$ac_top_builddir_sub 1557 ac_abs_top_srcdir=$ac_pwd ;; 1558 [\\/]* | ?:[\\/]* ) # Absolute name. 1559 ac_srcdir=$srcdir$ac_dir_suffix; 1560 ac_top_srcdir=$srcdir 1561 ac_abs_top_srcdir=$srcdir ;; 1562 *) # Relative name. 1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1564 ac_top_srcdir=$ac_top_build_prefix$srcdir 1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1566esac 1567ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1568 1569 cd "$ac_dir" || { ac_status=$?; continue; } 1570 # Check for configure.gnu first; this name is used for a wrapper for 1571 # Metaconfig's "Configure" on case-insensitive file systems. 1572 if test -f "$ac_srcdir/configure.gnu"; then 1573 echo && 1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1575 elif test -f "$ac_srcdir/configure"; then 1576 echo && 1577 $SHELL "$ac_srcdir/configure" --help=recursive 1578 else 1579 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1580 fi || ac_status=$? 1581 cd "$ac_pwd" || { ac_status=$?; break; } 1582 done 1583fi 1584 1585test -n "$ac_init_help" && exit $ac_status 1586if $ac_init_version; then 1587 cat <<\_ACEOF 1588libXrandr configure 1.5.4 1589generated by GNU Autoconf 2.71 1590 1591Copyright (C) 2021 Free Software Foundation, Inc. 1592This configure script is free software; the Free Software Foundation 1593gives unlimited permission to copy, distribute and modify it. 1594_ACEOF 1595 exit 1596fi 1597 1598## ------------------------ ## 1599## Autoconf initialization. ## 1600## ------------------------ ## 1601 1602# ac_fn_c_try_compile LINENO 1603# -------------------------- 1604# Try to compile conftest.$ac_ext, and return whether this succeeded. 1605ac_fn_c_try_compile () 1606{ 1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1608 rm -f conftest.$ac_objext conftest.beam 1609 if { { ac_try="$ac_compile" 1610case "(($ac_try" in 1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1612 *) ac_try_echo=$ac_try;; 1613esac 1614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1615printf "%s\n" "$ac_try_echo"; } >&5 1616 (eval "$ac_compile") 2>conftest.err 1617 ac_status=$? 1618 if test -s conftest.err; then 1619 grep -v '^ *+' conftest.err >conftest.er1 1620 cat conftest.er1 >&5 1621 mv -f conftest.er1 conftest.err 1622 fi 1623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1624 test $ac_status = 0; } && { 1625 test -z "$ac_c_werror_flag" || 1626 test ! -s conftest.err 1627 } && test -s conftest.$ac_objext 1628then : 1629 ac_retval=0 1630else $as_nop 1631 printf "%s\n" "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_compile 1640 1641# ac_fn_c_try_link LINENO 1642# ----------------------- 1643# Try to link conftest.$ac_ext, and return whether this succeeded. 1644ac_fn_c_try_link () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1648 if { { ac_try="$ac_link" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654printf "%s\n" "$ac_try_echo"; } >&5 1655 (eval "$ac_link") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest$ac_exeext && { 1667 test "$cross_compiling" = yes || 1668 test -x conftest$ac_exeext 1669 } 1670then : 1671 ac_retval=0 1672else $as_nop 1673 printf "%s\n" "$as_me: failed program was:" >&5 1674sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=1 1677fi 1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1680 # interfere with the next link command; also delete a directory that is 1681 # left behind by Apple's compiler. We do this before executing the actions. 1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 as_fn_set_status $ac_retval 1685 1686} # ac_fn_c_try_link 1687 1688# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1689# ------------------------------------------------------- 1690# Tests whether HEADER exists and can be compiled using the include files in 1691# INCLUDES, setting the cache variable VAR accordingly. 1692ac_fn_c_check_header_compile () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1696printf %s "checking for $2... " >&6; } 1697if eval test \${$3+y} 1698then : 1699 printf %s "(cached) " >&6 1700else $as_nop 1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1702/* end confdefs.h. */ 1703$4 1704#include <$2> 1705_ACEOF 1706if ac_fn_c_try_compile "$LINENO" 1707then : 1708 eval "$3=yes" 1709else $as_nop 1710 eval "$3=no" 1711fi 1712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1713fi 1714eval ac_res=\$$3 1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1716printf "%s\n" "$ac_res" >&6; } 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 1719} # ac_fn_c_check_header_compile 1720 1721# ac_fn_c_check_func LINENO FUNC VAR 1722# ---------------------------------- 1723# Tests whether FUNC exists, setting the cache variable VAR accordingly 1724ac_fn_c_check_func () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728printf %s "checking for $2... " >&6; } 1729if eval test \${$3+y} 1730then : 1731 printf %s "(cached) " >&6 1732else $as_nop 1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734/* end confdefs.h. */ 1735/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1737#define $2 innocuous_$2 1738 1739/* System header to define __stub macros and hopefully few prototypes, 1740 which can conflict with char $2 (); below. */ 1741 1742#include <limits.h> 1743#undef $2 1744 1745/* Override any GCC internal prototype to avoid an error. 1746 Use char because int might match the return type of a GCC 1747 builtin and then its argument prototype would still apply. */ 1748#ifdef __cplusplus 1749extern "C" 1750#endif 1751char $2 (); 1752/* The GNU C library defines this for functions which it implements 1753 to always fail with ENOSYS. Some functions are actually named 1754 something starting with __ and the normal name is an alias. */ 1755#if defined __stub_$2 || defined __stub___$2 1756choke me 1757#endif 1758 1759int 1760main (void) 1761{ 1762return $2 (); 1763 ; 1764 return 0; 1765} 1766_ACEOF 1767if ac_fn_c_try_link "$LINENO" 1768then : 1769 eval "$3=yes" 1770else $as_nop 1771 eval "$3=no" 1772fi 1773rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1774 conftest$ac_exeext conftest.$ac_ext 1775fi 1776eval ac_res=\$$3 1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1778printf "%s\n" "$ac_res" >&6; } 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 1781} # ac_fn_c_check_func 1782 1783# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1784# ------------------------------------------------------------------ 1785# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1786# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1787ac_fn_check_decl () 1788{ 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 as_decl_name=`echo $2|sed 's/ *(.*//'` 1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1792printf %s "checking whether $as_decl_name is declared... " >&6; } 1793if eval test \${$3+y} 1794then : 1795 printf %s "(cached) " >&6 1796else $as_nop 1797 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1798 eval ac_save_FLAGS=\$$6 1799 as_fn_append $6 " $5" 1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802$4 1803int 1804main (void) 1805{ 1806#ifndef $as_decl_name 1807#ifdef __cplusplus 1808 (void) $as_decl_use; 1809#else 1810 (void) $as_decl_name; 1811#endif 1812#endif 1813 1814 ; 1815 return 0; 1816} 1817_ACEOF 1818if ac_fn_c_try_compile "$LINENO" 1819then : 1820 eval "$3=yes" 1821else $as_nop 1822 eval "$3=no" 1823fi 1824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1825 eval $6=\$ac_save_FLAGS 1826 1827fi 1828eval ac_res=\$$3 1829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830printf "%s\n" "$ac_res" >&6; } 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1832 1833} # ac_fn_check_decl 1834 1835# ac_fn_c_try_run LINENO 1836# ---------------------- 1837# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1838# executables *can* be run. 1839ac_fn_c_try_run () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 if { { ac_try="$ac_link" 1843case "(($ac_try" in 1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1845 *) ac_try_echo=$ac_try;; 1846esac 1847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1848printf "%s\n" "$ac_try_echo"; } >&5 1849 (eval "$ac_link") 2>&5 1850 ac_status=$? 1851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1853 { { case "(($ac_try" in 1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1855 *) ac_try_echo=$ac_try;; 1856esac 1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1858printf "%s\n" "$ac_try_echo"; } >&5 1859 (eval "$ac_try") 2>&5 1860 ac_status=$? 1861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1862 test $ac_status = 0; }; } 1863then : 1864 ac_retval=0 1865else $as_nop 1866 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1867 printf "%s\n" "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=$ac_status 1871fi 1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 as_fn_set_status $ac_retval 1875 1876} # ac_fn_c_try_run 1877ac_configure_args_raw= 1878for ac_arg 1879do 1880 case $ac_arg in 1881 *\'*) 1882 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1883 esac 1884 as_fn_append ac_configure_args_raw " '$ac_arg'" 1885done 1886 1887case $ac_configure_args_raw in 1888 *$as_nl*) 1889 ac_safe_unquote= ;; 1890 *) 1891 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1892 ac_unsafe_a="$ac_unsafe_z#~" 1893 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1894 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1895esac 1896 1897cat >config.log <<_ACEOF 1898This file contains any messages produced by compilers while 1899running configure, to aid debugging if configure makes a mistake. 1900 1901It was created by libXrandr $as_me 1.5.4, which was 1902generated by GNU Autoconf 2.71. Invocation command line was 1903 1904 $ $0$ac_configure_args_raw 1905 1906_ACEOF 1907exec 5>>config.log 1908{ 1909cat <<_ASUNAME 1910## --------- ## 1911## Platform. ## 1912## --------- ## 1913 1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1915uname -m = `(uname -m) 2>/dev/null || echo unknown` 1916uname -r = `(uname -r) 2>/dev/null || echo unknown` 1917uname -s = `(uname -s) 2>/dev/null || echo unknown` 1918uname -v = `(uname -v) 2>/dev/null || echo unknown` 1919 1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1921/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1922 1923/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1924/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1926/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1927/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1928/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1929/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1930 1931_ASUNAME 1932 1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1934for as_dir in $PATH 1935do 1936 IFS=$as_save_IFS 1937 case $as_dir in #((( 1938 '') as_dir=./ ;; 1939 */) ;; 1940 *) as_dir=$as_dir/ ;; 1941 esac 1942 printf "%s\n" "PATH: $as_dir" 1943 done 1944IFS=$as_save_IFS 1945 1946} >&5 1947 1948cat >&5 <<_ACEOF 1949 1950 1951## ----------- ## 1952## Core tests. ## 1953## ----------- ## 1954 1955_ACEOF 1956 1957 1958# Keep a trace of the command line. 1959# Strip out --no-create and --no-recursion so they do not pile up. 1960# Strip out --silent because we don't want to record it for future runs. 1961# Also quote any args containing shell meta-characters. 1962# Make two passes to allow for proper duplicate-argument suppression. 1963ac_configure_args= 1964ac_configure_args0= 1965ac_configure_args1= 1966ac_must_keep_next=false 1967for ac_pass in 1 2 1968do 1969 for ac_arg 1970 do 1971 case $ac_arg in 1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1974 | -silent | --silent | --silen | --sile | --sil) 1975 continue ;; 1976 *\'*) 1977 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1978 esac 1979 case $ac_pass in 1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1981 2) 1982 as_fn_append ac_configure_args1 " '$ac_arg'" 1983 if test $ac_must_keep_next = true; then 1984 ac_must_keep_next=false # Got value, back to normal. 1985 else 1986 case $ac_arg in 1987 *=* | --config-cache | -C | -disable-* | --disable-* \ 1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1990 | -with-* | --with-* | -without-* | --without-* | --x) 1991 case "$ac_configure_args0 " in 1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1993 esac 1994 ;; 1995 -* ) ac_must_keep_next=true ;; 1996 esac 1997 fi 1998 as_fn_append ac_configure_args " '$ac_arg'" 1999 ;; 2000 esac 2001 done 2002done 2003{ ac_configure_args0=; unset ac_configure_args0;} 2004{ ac_configure_args1=; unset ac_configure_args1;} 2005 2006# When interrupted or exit'd, cleanup temporary files, and complete 2007# config.log. We remove comments because anyway the quotes in there 2008# would cause problems or look ugly. 2009# WARNING: Use '\'' to represent an apostrophe within the trap. 2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2011trap 'exit_status=$? 2012 # Sanitize IFS. 2013 IFS=" "" $as_nl" 2014 # Save into config.log some information that might help in debugging. 2015 { 2016 echo 2017 2018 printf "%s\n" "## ---------------- ## 2019## Cache variables. ## 2020## ---------------- ##" 2021 echo 2022 # The following way of writing the cache mishandles newlines in values, 2023( 2024 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2025 eval ac_val=\$$ac_var 2026 case $ac_val in #( 2027 *${as_nl}*) 2028 case $ac_var in #( 2029 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2030printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2031 esac 2032 case $ac_var in #( 2033 _ | IFS | as_nl) ;; #( 2034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2035 *) { eval $ac_var=; unset $ac_var;} ;; 2036 esac ;; 2037 esac 2038 done 2039 (set) 2>&1 | 2040 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2041 *${as_nl}ac_space=\ *) 2042 sed -n \ 2043 "s/'\''/'\''\\\\'\'''\''/g; 2044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2045 ;; #( 2046 *) 2047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2048 ;; 2049 esac | 2050 sort 2051) 2052 echo 2053 2054 printf "%s\n" "## ----------------- ## 2055## Output variables. ## 2056## ----------------- ##" 2057 echo 2058 for ac_var in $ac_subst_vars 2059 do 2060 eval ac_val=\$$ac_var 2061 case $ac_val in 2062 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2063 esac 2064 printf "%s\n" "$ac_var='\''$ac_val'\''" 2065 done | sort 2066 echo 2067 2068 if test -n "$ac_subst_files"; then 2069 printf "%s\n" "## ------------------- ## 2070## File substitutions. ## 2071## ------------------- ##" 2072 echo 2073 for ac_var in $ac_subst_files 2074 do 2075 eval ac_val=\$$ac_var 2076 case $ac_val in 2077 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2078 esac 2079 printf "%s\n" "$ac_var='\''$ac_val'\''" 2080 done | sort 2081 echo 2082 fi 2083 2084 if test -s confdefs.h; then 2085 printf "%s\n" "## ----------- ## 2086## confdefs.h. ## 2087## ----------- ##" 2088 echo 2089 cat confdefs.h 2090 echo 2091 fi 2092 test "$ac_signal" != 0 && 2093 printf "%s\n" "$as_me: caught signal $ac_signal" 2094 printf "%s\n" "$as_me: exit $exit_status" 2095 } >&5 2096 rm -f core *.core core.conftest.* && 2097 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2098 exit $exit_status 2099' 0 2100for ac_signal in 1 2 13 15; do 2101 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2102done 2103ac_signal=0 2104 2105# confdefs.h avoids OS command line length limits that DEFS can exceed. 2106rm -f -r conftest* confdefs.h 2107 2108printf "%s\n" "/* confdefs.h */" > confdefs.h 2109 2110# Predefined preprocessor variables. 2111 2112printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2113 2114printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2115 2116printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2117 2118printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2119 2120printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2121 2122printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2123 2124 2125# Let the site file select an alternate cache file if it wants to. 2126# Prefer an explicitly selected file to automatically selected ones. 2127if test -n "$CONFIG_SITE"; then 2128 ac_site_files="$CONFIG_SITE" 2129elif test "x$prefix" != xNONE; then 2130 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2131else 2132 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2133fi 2134 2135for ac_site_file in $ac_site_files 2136do 2137 case $ac_site_file in #( 2138 */*) : 2139 ;; #( 2140 *) : 2141 ac_site_file=./$ac_site_file ;; 2142esac 2143 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2145printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2146 sed 's/^/| /' "$ac_site_file" >&5 2147 . "$ac_site_file" \ 2148 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2149printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2150as_fn_error $? "failed to load site script $ac_site_file 2151See \`config.log' for more details" "$LINENO" 5; } 2152 fi 2153done 2154 2155if test -r "$cache_file"; then 2156 # Some versions of bash will fail to source /dev/null (special files 2157 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2158 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2160printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2161 case $cache_file in 2162 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2163 *) . "./$cache_file";; 2164 esac 2165 fi 2166else 2167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2168printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2169 >$cache_file 2170fi 2171 2172# Test code for whether the C compiler supports C89 (global declarations) 2173ac_c_conftest_c89_globals=' 2174/* Does the compiler advertise C89 conformance? 2175 Do not test the value of __STDC__, because some compilers set it to 0 2176 while being otherwise adequately conformant. */ 2177#if !defined __STDC__ 2178# error "Compiler does not advertise C89 conformance" 2179#endif 2180 2181#include <stddef.h> 2182#include <stdarg.h> 2183struct stat; 2184/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2185struct buf { int x; }; 2186struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2187static char *e (p, i) 2188 char **p; 2189 int i; 2190{ 2191 return p[i]; 2192} 2193static char *f (char * (*g) (char **, int), char **p, ...) 2194{ 2195 char *s; 2196 va_list v; 2197 va_start (v,p); 2198 s = g (p, va_arg (v,int)); 2199 va_end (v); 2200 return s; 2201} 2202 2203/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2204 function prototypes and stuff, but not \xHH hex character constants. 2205 These do not provoke an error unfortunately, instead are silently treated 2206 as an "x". The following induces an error, until -std is added to get 2207 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2208 array size at least. It is necessary to write \x00 == 0 to get something 2209 that is true only with -std. */ 2210int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2211 2212/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2213 inside strings and character constants. */ 2214#define FOO(x) '\''x'\'' 2215int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2216 2217int test (int i, double x); 2218struct s1 {int (*f) (int a);}; 2219struct s2 {int (*f) (double a);}; 2220int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2221 int, int);' 2222 2223# Test code for whether the C compiler supports C89 (body of main). 2224ac_c_conftest_c89_main=' 2225ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2226' 2227 2228# Test code for whether the C compiler supports C99 (global declarations) 2229ac_c_conftest_c99_globals=' 2230// Does the compiler advertise C99 conformance? 2231#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2232# error "Compiler does not advertise C99 conformance" 2233#endif 2234 2235#include <stdbool.h> 2236extern int puts (const char *); 2237extern int printf (const char *, ...); 2238extern int dprintf (int, const char *, ...); 2239extern void *malloc (size_t); 2240 2241// Check varargs macros. These examples are taken from C99 6.10.3.5. 2242// dprintf is used instead of fprintf to avoid needing to declare 2243// FILE and stderr. 2244#define debug(...) dprintf (2, __VA_ARGS__) 2245#define showlist(...) puts (#__VA_ARGS__) 2246#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2247static void 2248test_varargs_macros (void) 2249{ 2250 int x = 1234; 2251 int y = 5678; 2252 debug ("Flag"); 2253 debug ("X = %d\n", x); 2254 showlist (The first, second, and third items.); 2255 report (x>y, "x is %d but y is %d", x, y); 2256} 2257 2258// Check long long types. 2259#define BIG64 18446744073709551615ull 2260#define BIG32 4294967295ul 2261#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2262#if !BIG_OK 2263 #error "your preprocessor is broken" 2264#endif 2265#if BIG_OK 2266#else 2267 #error "your preprocessor is broken" 2268#endif 2269static long long int bignum = -9223372036854775807LL; 2270static unsigned long long int ubignum = BIG64; 2271 2272struct incomplete_array 2273{ 2274 int datasize; 2275 double data[]; 2276}; 2277 2278struct named_init { 2279 int number; 2280 const wchar_t *name; 2281 double average; 2282}; 2283 2284typedef const char *ccp; 2285 2286static inline int 2287test_restrict (ccp restrict text) 2288{ 2289 // See if C++-style comments work. 2290 // Iterate through items via the restricted pointer. 2291 // Also check for declarations in for loops. 2292 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2293 continue; 2294 return 0; 2295} 2296 2297// Check varargs and va_copy. 2298static bool 2299test_varargs (const char *format, ...) 2300{ 2301 va_list args; 2302 va_start (args, format); 2303 va_list args_copy; 2304 va_copy (args_copy, args); 2305 2306 const char *str = ""; 2307 int number = 0; 2308 float fnumber = 0; 2309 2310 while (*format) 2311 { 2312 switch (*format++) 2313 { 2314 case '\''s'\'': // string 2315 str = va_arg (args_copy, const char *); 2316 break; 2317 case '\''d'\'': // int 2318 number = va_arg (args_copy, int); 2319 break; 2320 case '\''f'\'': // float 2321 fnumber = va_arg (args_copy, double); 2322 break; 2323 default: 2324 break; 2325 } 2326 } 2327 va_end (args_copy); 2328 va_end (args); 2329 2330 return *str && number && fnumber; 2331} 2332' 2333 2334# Test code for whether the C compiler supports C99 (body of main). 2335ac_c_conftest_c99_main=' 2336 // Check bool. 2337 _Bool success = false; 2338 success |= (argc != 0); 2339 2340 // Check restrict. 2341 if (test_restrict ("String literal") == 0) 2342 success = true; 2343 char *restrict newvar = "Another string"; 2344 2345 // Check varargs. 2346 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2347 test_varargs_macros (); 2348 2349 // Check flexible array members. 2350 struct incomplete_array *ia = 2351 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2352 ia->datasize = 10; 2353 for (int i = 0; i < ia->datasize; ++i) 2354 ia->data[i] = i * 1.234; 2355 2356 // Check named initializers. 2357 struct named_init ni = { 2358 .number = 34, 2359 .name = L"Test wide string", 2360 .average = 543.34343, 2361 }; 2362 2363 ni.number = 58; 2364 2365 int dynamic_array[ni.number]; 2366 dynamic_array[0] = argv[0][0]; 2367 dynamic_array[ni.number - 1] = 543; 2368 2369 // work around unused variable warnings 2370 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2371 || dynamic_array[ni.number - 1] != 543); 2372' 2373 2374# Test code for whether the C compiler supports C11 (global declarations) 2375ac_c_conftest_c11_globals=' 2376// Does the compiler advertise C11 conformance? 2377#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2378# error "Compiler does not advertise C11 conformance" 2379#endif 2380 2381// Check _Alignas. 2382char _Alignas (double) aligned_as_double; 2383char _Alignas (0) no_special_alignment; 2384extern char aligned_as_int; 2385char _Alignas (0) _Alignas (int) aligned_as_int; 2386 2387// Check _Alignof. 2388enum 2389{ 2390 int_alignment = _Alignof (int), 2391 int_array_alignment = _Alignof (int[100]), 2392 char_alignment = _Alignof (char) 2393}; 2394_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2395 2396// Check _Noreturn. 2397int _Noreturn does_not_return (void) { for (;;) continue; } 2398 2399// Check _Static_assert. 2400struct test_static_assert 2401{ 2402 int x; 2403 _Static_assert (sizeof (int) <= sizeof (long int), 2404 "_Static_assert does not work in struct"); 2405 long int y; 2406}; 2407 2408// Check UTF-8 literals. 2409#define u8 syntax error! 2410char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2411 2412// Check duplicate typedefs. 2413typedef long *long_ptr; 2414typedef long int *long_ptr; 2415typedef long_ptr long_ptr; 2416 2417// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2418struct anonymous 2419{ 2420 union { 2421 struct { int i; int j; }; 2422 struct { int k; long int l; } w; 2423 }; 2424 int m; 2425} v1; 2426' 2427 2428# Test code for whether the C compiler supports C11 (body of main). 2429ac_c_conftest_c11_main=' 2430 _Static_assert ((offsetof (struct anonymous, i) 2431 == offsetof (struct anonymous, w.k)), 2432 "Anonymous union alignment botch"); 2433 v1.i = 2; 2434 v1.w.k = 5; 2435 ok |= v1.i != 5; 2436' 2437 2438# Test code for whether the C compiler supports C11 (complete). 2439ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2440${ac_c_conftest_c99_globals} 2441${ac_c_conftest_c11_globals} 2442 2443int 2444main (int argc, char **argv) 2445{ 2446 int ok = 0; 2447 ${ac_c_conftest_c89_main} 2448 ${ac_c_conftest_c99_main} 2449 ${ac_c_conftest_c11_main} 2450 return ok; 2451} 2452" 2453 2454# Test code for whether the C compiler supports C99 (complete). 2455ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2456${ac_c_conftest_c99_globals} 2457 2458int 2459main (int argc, char **argv) 2460{ 2461 int ok = 0; 2462 ${ac_c_conftest_c89_main} 2463 ${ac_c_conftest_c99_main} 2464 return ok; 2465} 2466" 2467 2468# Test code for whether the C compiler supports C89 (complete). 2469ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2470 2471int 2472main (int argc, char **argv) 2473{ 2474 int ok = 0; 2475 ${ac_c_conftest_c89_main} 2476 return ok; 2477} 2478" 2479 2480as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2481as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2482as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2483as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2484as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2485as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2486as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2487as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2488as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2489 2490# Auxiliary files required by this configure script. 2491ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2492 2493# Locations in which to look for auxiliary files. 2494ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2495 2496# Search for a directory containing all of the required auxiliary files, 2497# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2498# If we don't find one directory that contains all the files we need, 2499# we report the set of missing files from the *first* directory in 2500# $ac_aux_dir_candidates and give up. 2501ac_missing_aux_files="" 2502ac_first_candidate=: 2503printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2505as_found=false 2506for as_dir in $ac_aux_dir_candidates 2507do 2508 IFS=$as_save_IFS 2509 case $as_dir in #((( 2510 '') as_dir=./ ;; 2511 */) ;; 2512 *) as_dir=$as_dir/ ;; 2513 esac 2514 as_found=: 2515 2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2517 ac_aux_dir_found=yes 2518 ac_install_sh= 2519 for ac_aux in $ac_aux_files 2520 do 2521 # As a special case, if "install-sh" is required, that requirement 2522 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2523 # and $ac_install_sh is set appropriately for whichever one is found. 2524 if test x"$ac_aux" = x"install-sh" 2525 then 2526 if test -f "${as_dir}install-sh"; then 2527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2528 ac_install_sh="${as_dir}install-sh -c" 2529 elif test -f "${as_dir}install.sh"; then 2530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2531 ac_install_sh="${as_dir}install.sh -c" 2532 elif test -f "${as_dir}shtool"; then 2533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2534 ac_install_sh="${as_dir}shtool install -c" 2535 else 2536 ac_aux_dir_found=no 2537 if $ac_first_candidate; then 2538 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2539 else 2540 break 2541 fi 2542 fi 2543 else 2544 if test -f "${as_dir}${ac_aux}"; then 2545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2546 else 2547 ac_aux_dir_found=no 2548 if $ac_first_candidate; then 2549 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2550 else 2551 break 2552 fi 2553 fi 2554 fi 2555 done 2556 if test "$ac_aux_dir_found" = yes; then 2557 ac_aux_dir="$as_dir" 2558 break 2559 fi 2560 ac_first_candidate=false 2561 2562 as_found=false 2563done 2564IFS=$as_save_IFS 2565if $as_found 2566then : 2567 2568else $as_nop 2569 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2570fi 2571 2572 2573# These three variables are undocumented and unsupported, 2574# and are intended to be withdrawn in a future Autoconf release. 2575# They can cause serious problems if a builder's source tree is in a directory 2576# whose full name contains unusual characters. 2577if test -f "${ac_aux_dir}config.guess"; then 2578 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2579fi 2580if test -f "${ac_aux_dir}config.sub"; then 2581 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2582fi 2583if test -f "$ac_aux_dir/configure"; then 2584 ac_configure="$SHELL ${ac_aux_dir}configure" 2585fi 2586 2587# Check that the precious variables saved in the cache have kept the same 2588# value. 2589ac_cache_corrupted=false 2590for ac_var in $ac_precious_vars; do 2591 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2592 eval ac_new_set=\$ac_env_${ac_var}_set 2593 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2594 eval ac_new_val=\$ac_env_${ac_var}_value 2595 case $ac_old_set,$ac_new_set in 2596 set,) 2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2598printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2599 ac_cache_corrupted=: ;; 2600 ,set) 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2602printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2603 ac_cache_corrupted=: ;; 2604 ,);; 2605 *) 2606 if test "x$ac_old_val" != "x$ac_new_val"; then 2607 # differences in whitespace do not lead to failure. 2608 ac_old_val_w=`echo x $ac_old_val` 2609 ac_new_val_w=`echo x $ac_new_val` 2610 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2612printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2613 ac_cache_corrupted=: 2614 else 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2616printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2617 eval $ac_var=\$ac_old_val 2618 fi 2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2620printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2622printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2623 fi;; 2624 esac 2625 # Pass precious variables to config.status. 2626 if test "$ac_new_set" = set; then 2627 case $ac_new_val in 2628 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2629 *) ac_arg=$ac_var=$ac_new_val ;; 2630 esac 2631 case " $ac_configure_args " in 2632 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2633 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2634 esac 2635 fi 2636done 2637if $ac_cache_corrupted; then 2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2639printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2641printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2642 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2643 and start over" "$LINENO" 5 2644fi 2645## -------------------- ## 2646## Main body of script. ## 2647## -------------------- ## 2648 2649ac_ext=c 2650ac_cpp='$CPP $CPPFLAGS' 2651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2653ac_compiler_gnu=$ac_cv_c_compiler_gnu 2654 2655 2656 2657ac_config_headers="$ac_config_headers config.h" 2658 2659 2660 2661# Initialize Automake 2662am__api_version='1.16' 2663 2664 2665 2666 # Find a good install program. We prefer a C program (faster), 2667# so one script is as good as another. But avoid the broken or 2668# incompatible versions: 2669# SysV /etc/install, /usr/sbin/install 2670# SunOS /usr/etc/install 2671# IRIX /sbin/install 2672# AIX /bin/install 2673# AmigaOS /C/install, which installs bootblocks on floppy discs 2674# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2675# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2676# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2677# OS/2's system install, which has a completely different semantic 2678# ./install, which can be erroneously created by make from ./install.sh. 2679# Reject install programs that cannot install multiple files. 2680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2681printf %s "checking for a BSD-compatible install... " >&6; } 2682if test -z "$INSTALL"; then 2683if test ${ac_cv_path_install+y} 2684then : 2685 printf %s "(cached) " >&6 2686else $as_nop 2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 case $as_dir in #((( 2692 '') as_dir=./ ;; 2693 */) ;; 2694 *) as_dir=$as_dir/ ;; 2695 esac 2696 # Account for fact that we put trailing slashes in our PATH walk. 2697case $as_dir in #(( 2698 ./ | /[cC]/* | \ 2699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2700 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2701 /usr/ucb/* ) ;; 2702 *) 2703 # OSF1 and SCO ODT 3.0 have their own names for install. 2704 # Don't use installbsd from OSF since it installs stuff as root 2705 # by default. 2706 for ac_prog in ginstall scoinst install; do 2707 for ac_exec_ext in '' $ac_executable_extensions; do 2708 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2709 if test $ac_prog = install && 2710 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2711 # AIX install. It has an incompatible calling convention. 2712 : 2713 elif test $ac_prog = install && 2714 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2715 # program-specific install script used by HP pwplus--don't use. 2716 : 2717 else 2718 rm -rf conftest.one conftest.two conftest.dir 2719 echo one > conftest.one 2720 echo two > conftest.two 2721 mkdir conftest.dir 2722 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2723 test -s conftest.one && test -s conftest.two && 2724 test -s conftest.dir/conftest.one && 2725 test -s conftest.dir/conftest.two 2726 then 2727 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2728 break 3 2729 fi 2730 fi 2731 fi 2732 done 2733 done 2734 ;; 2735esac 2736 2737 done 2738IFS=$as_save_IFS 2739 2740rm -rf conftest.one conftest.two conftest.dir 2741 2742fi 2743 if test ${ac_cv_path_install+y}; then 2744 INSTALL=$ac_cv_path_install 2745 else 2746 # As a last resort, use the slow shell script. Don't cache a 2747 # value for INSTALL within a source directory, because that will 2748 # break other packages using the cache if that directory is 2749 # removed, or if the value is a relative name. 2750 INSTALL=$ac_install_sh 2751 fi 2752fi 2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2754printf "%s\n" "$INSTALL" >&6; } 2755 2756# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2757# It thinks the first close brace ends the variable substitution. 2758test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2759 2760test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2761 2762test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2763 2764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2765printf %s "checking whether build environment is sane... " >&6; } 2766# Reject unsafe characters in $srcdir or the absolute working directory 2767# name. Accept space and tab only in the latter. 2768am_lf=' 2769' 2770case `pwd` in 2771 *[\\\"\#\$\&\'\`$am_lf]*) 2772 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2773esac 2774case $srcdir in 2775 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2776 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2777esac 2778 2779# Do 'set' in a subshell so we don't clobber the current shell's 2780# arguments. Must try -L first in case configure is actually a 2781# symlink; some systems play weird games with the mod time of symlinks 2782# (eg FreeBSD returns the mod time of the symlink's containing 2783# directory). 2784if ( 2785 am_has_slept=no 2786 for am_try in 1 2; do 2787 echo "timestamp, slept: $am_has_slept" > conftest.file 2788 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2789 if test "$*" = "X"; then 2790 # -L didn't work. 2791 set X `ls -t "$srcdir/configure" conftest.file` 2792 fi 2793 if test "$*" != "X $srcdir/configure conftest.file" \ 2794 && test "$*" != "X conftest.file $srcdir/configure"; then 2795 2796 # If neither matched, then we have a broken ls. This can happen 2797 # if, for instance, CONFIG_SHELL is bash and it inherits a 2798 # broken ls alias from the environment. This has actually 2799 # happened. Such a system could not be considered "sane". 2800 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2801 alias in your environment" "$LINENO" 5 2802 fi 2803 if test "$2" = conftest.file || test $am_try -eq 2; then 2804 break 2805 fi 2806 # Just in case. 2807 sleep 1 2808 am_has_slept=yes 2809 done 2810 test "$2" = conftest.file 2811 ) 2812then 2813 # Ok. 2814 : 2815else 2816 as_fn_error $? "newly created file is older than distributed files! 2817Check your system clock" "$LINENO" 5 2818fi 2819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2820printf "%s\n" "yes" >&6; } 2821# If we didn't sleep, we still need to ensure time stamps of config.status and 2822# generated files are strictly newer. 2823am_sleep_pid= 2824if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2825 ( sleep 1 ) & 2826 am_sleep_pid=$! 2827fi 2828 2829rm -f conftest.file 2830 2831test "$program_prefix" != NONE && 2832 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2833# Use a double $ so make ignores it. 2834test "$program_suffix" != NONE && 2835 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2836# Double any \ or $. 2837# By default was `s,x,x', remove it if useless. 2838ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2839program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2840 2841 2842# Expand $ac_aux_dir to an absolute path. 2843am_aux_dir=`cd "$ac_aux_dir" && pwd` 2844 2845 2846 if test x"${MISSING+set}" != xset; then 2847 MISSING="\${SHELL} '$am_aux_dir/missing'" 2848fi 2849# Use eval to expand $SHELL 2850if eval "$MISSING --is-lightweight"; then 2851 am_missing_run="$MISSING " 2852else 2853 am_missing_run= 2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2855printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2856fi 2857 2858if test x"${install_sh+set}" != xset; then 2859 case $am_aux_dir in 2860 *\ * | *\ *) 2861 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2862 *) 2863 install_sh="\${SHELL} $am_aux_dir/install-sh" 2864 esac 2865fi 2866 2867# Installed binaries are usually stripped using 'strip' when the user 2868# run "make install-strip". However 'strip' might not be the right 2869# tool to use in cross-compilation environments, therefore Automake 2870# will honor the 'STRIP' environment variable to overrule this program. 2871if test "$cross_compiling" != no; then 2872 if test -n "$ac_tool_prefix"; then 2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2874set dummy ${ac_tool_prefix}strip; ac_word=$2 2875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876printf %s "checking for $ac_word... " >&6; } 2877if test ${ac_cv_prog_STRIP+y} 2878then : 2879 printf %s "(cached) " >&6 2880else $as_nop 2881 if test -n "$STRIP"; then 2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2883else 2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH 2886do 2887 IFS=$as_save_IFS 2888 case $as_dir in #((( 2889 '') as_dir=./ ;; 2890 */) ;; 2891 *) as_dir=$as_dir/ ;; 2892 esac 2893 for ac_exec_ext in '' $ac_executable_extensions; do 2894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2895 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2897 break 2 2898 fi 2899done 2900 done 2901IFS=$as_save_IFS 2902 2903fi 2904fi 2905STRIP=$ac_cv_prog_STRIP 2906if test -n "$STRIP"; then 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2908printf "%s\n" "$STRIP" >&6; } 2909else 2910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2911printf "%s\n" "no" >&6; } 2912fi 2913 2914 2915fi 2916if test -z "$ac_cv_prog_STRIP"; then 2917 ac_ct_STRIP=$STRIP 2918 # Extract the first word of "strip", so it can be a program name with args. 2919set dummy strip; ac_word=$2 2920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2921printf %s "checking for $ac_word... " >&6; } 2922if test ${ac_cv_prog_ac_ct_STRIP+y} 2923then : 2924 printf %s "(cached) " >&6 2925else $as_nop 2926 if test -n "$ac_ct_STRIP"; then 2927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 case $as_dir in #((( 2934 '') as_dir=./ ;; 2935 */) ;; 2936 *) as_dir=$as_dir/ ;; 2937 esac 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2940 ac_cv_prog_ac_ct_STRIP="strip" 2941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948fi 2949fi 2950ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2951if test -n "$ac_ct_STRIP"; then 2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2953printf "%s\n" "$ac_ct_STRIP" >&6; } 2954else 2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956printf "%s\n" "no" >&6; } 2957fi 2958 2959 if test "x$ac_ct_STRIP" = x; then 2960 STRIP=":" 2961 else 2962 case $cross_compiling:$ac_tool_warned in 2963yes:) 2964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2965printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2966ac_tool_warned=yes ;; 2967esac 2968 STRIP=$ac_ct_STRIP 2969 fi 2970else 2971 STRIP="$ac_cv_prog_STRIP" 2972fi 2973 2974fi 2975INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2976 2977 2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2979printf %s "checking for a race-free mkdir -p... " >&6; } 2980if test -z "$MKDIR_P"; then 2981 if test ${ac_cv_path_mkdir+y} 2982then : 2983 printf %s "(cached) " >&6 2984else $as_nop 2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2987do 2988 IFS=$as_save_IFS 2989 case $as_dir in #((( 2990 '') as_dir=./ ;; 2991 */) ;; 2992 *) as_dir=$as_dir/ ;; 2993 esac 2994 for ac_prog in mkdir gmkdir; do 2995 for ac_exec_ext in '' $ac_executable_extensions; do 2996 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2997 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2998 'mkdir ('*'coreutils) '* | \ 2999 'BusyBox '* | \ 3000 'mkdir (fileutils) '4.1*) 3001 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3002 break 3;; 3003 esac 3004 done 3005 done 3006 done 3007IFS=$as_save_IFS 3008 3009fi 3010 3011 test -d ./--version && rmdir ./--version 3012 if test ${ac_cv_path_mkdir+y}; then 3013 MKDIR_P="$ac_cv_path_mkdir -p" 3014 else 3015 # As a last resort, use the slow shell script. Don't cache a 3016 # value for MKDIR_P within a source directory, because that will 3017 # break other packages using the cache if that directory is 3018 # removed, or if the value is a relative name. 3019 MKDIR_P="$ac_install_sh -d" 3020 fi 3021fi 3022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3023printf "%s\n" "$MKDIR_P" >&6; } 3024 3025for ac_prog in gawk mawk nawk awk 3026do 3027 # Extract the first word of "$ac_prog", so it can be a program name with args. 3028set dummy $ac_prog; ac_word=$2 3029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3030printf %s "checking for $ac_word... " >&6; } 3031if test ${ac_cv_prog_AWK+y} 3032then : 3033 printf %s "(cached) " >&6 3034else $as_nop 3035 if test -n "$AWK"; then 3036 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3037else 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 case $as_dir in #((( 3043 '') as_dir=./ ;; 3044 */) ;; 3045 *) as_dir=$as_dir/ ;; 3046 esac 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3049 ac_cv_prog_AWK="$ac_prog" 3050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053done 3054 done 3055IFS=$as_save_IFS 3056 3057fi 3058fi 3059AWK=$ac_cv_prog_AWK 3060if test -n "$AWK"; then 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3062printf "%s\n" "$AWK" >&6; } 3063else 3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065printf "%s\n" "no" >&6; } 3066fi 3067 3068 3069 test -n "$AWK" && break 3070done 3071 3072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3073printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3074set x ${MAKE-make} 3075ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3076if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3077then : 3078 printf %s "(cached) " >&6 3079else $as_nop 3080 cat >conftest.make <<\_ACEOF 3081SHELL = /bin/sh 3082all: 3083 @echo '@@@%%%=$(MAKE)=@@@%%%' 3084_ACEOF 3085# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3086case `${MAKE-make} -f conftest.make 2>/dev/null` in 3087 *@@@%%%=?*=@@@%%%*) 3088 eval ac_cv_prog_make_${ac_make}_set=yes;; 3089 *) 3090 eval ac_cv_prog_make_${ac_make}_set=no;; 3091esac 3092rm -f conftest.make 3093fi 3094if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3096printf "%s\n" "yes" >&6; } 3097 SET_MAKE= 3098else 3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3100printf "%s\n" "no" >&6; } 3101 SET_MAKE="MAKE=${MAKE-make}" 3102fi 3103 3104rm -rf .tst 2>/dev/null 3105mkdir .tst 2>/dev/null 3106if test -d .tst; then 3107 am__leading_dot=. 3108else 3109 am__leading_dot=_ 3110fi 3111rmdir .tst 2>/dev/null 3112 3113# Check whether --enable-silent-rules was given. 3114if test ${enable_silent_rules+y} 3115then : 3116 enableval=$enable_silent_rules; 3117fi 3118 3119case $enable_silent_rules in # ((( 3120 yes) AM_DEFAULT_VERBOSITY=0;; 3121 no) AM_DEFAULT_VERBOSITY=1;; 3122 *) AM_DEFAULT_VERBOSITY=1;; 3123esac 3124am_make=${MAKE-make} 3125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3126printf %s "checking whether $am_make supports nested variables... " >&6; } 3127if test ${am_cv_make_support_nested_variables+y} 3128then : 3129 printf %s "(cached) " >&6 3130else $as_nop 3131 if printf "%s\n" 'TRUE=$(BAR$(V)) 3132BAR0=false 3133BAR1=true 3134V=1 3135am__doit: 3136 @$(TRUE) 3137.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3138 am_cv_make_support_nested_variables=yes 3139else 3140 am_cv_make_support_nested_variables=no 3141fi 3142fi 3143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3144printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3145if test $am_cv_make_support_nested_variables = yes; then 3146 AM_V='$(V)' 3147 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3148else 3149 AM_V=$AM_DEFAULT_VERBOSITY 3150 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3151fi 3152AM_BACKSLASH='\' 3153 3154if test "`cd $srcdir && pwd`" != "`pwd`"; then 3155 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3156 # is not polluted with repeated "-I." 3157 am__isrc=' -I$(srcdir)' 3158 # test to see if srcdir already configured 3159 if test -f $srcdir/config.status; then 3160 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3161 fi 3162fi 3163 3164# test whether we have cygpath 3165if test -z "$CYGPATH_W"; then 3166 if (cygpath --version) >/dev/null 2>/dev/null; then 3167 CYGPATH_W='cygpath -w' 3168 else 3169 CYGPATH_W=echo 3170 fi 3171fi 3172 3173 3174# Define the identity of the package. 3175 PACKAGE='libXrandr' 3176 VERSION='1.5.4' 3177 3178 3179printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3180 3181 3182printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3183 3184# Some tools Automake needs. 3185 3186ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3187 3188 3189AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3190 3191 3192AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3193 3194 3195AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3196 3197 3198MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3199 3200# For better backward compatibility. To be removed once Automake 1.9.x 3201# dies out for good. For more background, see: 3202# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3203# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3204mkdir_p='$(MKDIR_P)' 3205 3206# We need awk for the "check" target (and possibly the TAP driver). The 3207# system "awk" is bad on some platforms. 3208# Always define AMTAR for backward compatibility. Yes, it's still used 3209# in the wild :-( We should find a proper way to deprecate it ... 3210AMTAR='$${TAR-tar}' 3211 3212 3213# We'll loop over all known methods to create a tar archive until one works. 3214_am_tools='gnutar pax cpio none' 3215 3216am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3217 3218 3219 3220 3221 3222# Variables for tags utilities; see am/tags.am 3223if test -z "$CTAGS"; then 3224 CTAGS=ctags 3225fi 3226 3227if test -z "$ETAGS"; then 3228 ETAGS=etags 3229fi 3230 3231if test -z "$CSCOPE"; then 3232 CSCOPE=cscope 3233fi 3234 3235 3236 3237# POSIX will say in a future version that running "rm -f" with no argument 3238# is OK; and we want to be able to make that assumption in our Makefile 3239# recipes. So use an aggressive probe to check that the usage we want is 3240# actually supported "in the wild" to an acceptable degree. 3241# See automake bug#10828. 3242# To make any issue more visible, cause the running configure to be aborted 3243# by default if the 'rm' program in use doesn't match our expectations; the 3244# user can still override this though. 3245if rm -f && rm -fr && rm -rf; then : OK; else 3246 cat >&2 <<'END' 3247Oops! 3248 3249Your 'rm' program seems unable to run without file operands specified 3250on the command line, even when the '-f' option is present. This is contrary 3251to the behaviour of most rm programs out there, and not conforming with 3252the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3253 3254Please tell bug-automake@gnu.org about your system, including the value 3255of your $PATH and any error possibly output before this message. This 3256can help us improve future automake versions. 3257 3258END 3259 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3260 echo 'Configuration will proceed anyway, since you have set the' >&2 3261 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3262 echo >&2 3263 else 3264 cat >&2 <<'END' 3265Aborting the configuration process, to ensure you take notice of the issue. 3266 3267You can download and install GNU coreutils to get an 'rm' implementation 3268that behaves properly: <https://www.gnu.org/software/coreutils/>. 3269 3270If you want to complete the configuration process using your problematic 3271'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3272to "yes", and re-run configure. 3273 3274END 3275 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3276 fi 3277fi 3278 3279 3280# Initialize libtool 3281case `pwd` in 3282 *\ * | *\ *) 3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3284printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3285esac 3286 3287 3288 3289macro_version='2.4.7' 3290macro_revision='2.4.7' 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305ltmain=$ac_aux_dir/ltmain.sh 3306 3307 3308 3309 # Make sure we can run config.sub. 3310$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3311 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3312 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3314printf %s "checking build system type... " >&6; } 3315if test ${ac_cv_build+y} 3316then : 3317 printf %s "(cached) " >&6 3318else $as_nop 3319 ac_build_alias=$build_alias 3320test "x$ac_build_alias" = x && 3321 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3322test "x$ac_build_alias" = x && 3323 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3324ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3325 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3326 3327fi 3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3329printf "%s\n" "$ac_cv_build" >&6; } 3330case $ac_cv_build in 3331*-*-*) ;; 3332*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3333esac 3334build=$ac_cv_build 3335ac_save_IFS=$IFS; IFS='-' 3336set x $ac_cv_build 3337shift 3338build_cpu=$1 3339build_vendor=$2 3340shift; shift 3341# Remember, the first character of IFS is used to create $*, 3342# except with old shells: 3343build_os=$* 3344IFS=$ac_save_IFS 3345case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3346 3347 3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3349printf %s "checking host system type... " >&6; } 3350if test ${ac_cv_host+y} 3351then : 3352 printf %s "(cached) " >&6 3353else $as_nop 3354 if test "x$host_alias" = x; then 3355 ac_cv_host=$ac_cv_build 3356else 3357 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3358 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3359fi 3360 3361fi 3362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3363printf "%s\n" "$ac_cv_host" >&6; } 3364case $ac_cv_host in 3365*-*-*) ;; 3366*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3367esac 3368host=$ac_cv_host 3369ac_save_IFS=$IFS; IFS='-' 3370set x $ac_cv_host 3371shift 3372host_cpu=$1 3373host_vendor=$2 3374shift; shift 3375# Remember, the first character of IFS is used to create $*, 3376# except with old shells: 3377host_os=$* 3378IFS=$ac_save_IFS 3379case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3380 3381 3382# Backslashify metacharacters that are still active within 3383# double-quoted strings. 3384sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3385 3386# Same as above, but do not quote variable references. 3387double_quote_subst='s/\(["`\\]\)/\\\1/g' 3388 3389# Sed substitution to delay expansion of an escaped shell variable in a 3390# double_quote_subst'ed string. 3391delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3392 3393# Sed substitution to delay expansion of an escaped single quote. 3394delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3395 3396# Sed substitution to avoid accidental globbing in evaled expressions 3397no_glob_subst='s/\*/\\\*/g' 3398 3399ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3400ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3401ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3402 3403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3404printf %s "checking how to print strings... " >&6; } 3405# Test print first, because it will be a builtin if present. 3406if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3407 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3408 ECHO='print -r --' 3409elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3410 ECHO='printf %s\n' 3411else 3412 # Use this function as a fallback that always works. 3413 func_fallback_echo () 3414 { 3415 eval 'cat <<_LTECHO_EOF 3416$1 3417_LTECHO_EOF' 3418 } 3419 ECHO='func_fallback_echo' 3420fi 3421 3422# func_echo_all arg... 3423# Invoke $ECHO with all args, space-separated. 3424func_echo_all () 3425{ 3426 $ECHO "" 3427} 3428 3429case $ECHO in 3430 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3431printf "%s\n" "printf" >&6; } ;; 3432 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3433printf "%s\n" "print -r" >&6; } ;; 3434 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3435printf "%s\n" "cat" >&6; } ;; 3436esac 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460DEPDIR="${am__leading_dot}deps" 3461 3462ac_config_commands="$ac_config_commands depfiles" 3463 3464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3465printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3466cat > confinc.mk << 'END' 3467am__doit: 3468 @echo this is the am__doit target >confinc.out 3469.PHONY: am__doit 3470END 3471am__include="#" 3472am__quote= 3473# BSD make does it like this. 3474echo '.include "confinc.mk" # ignored' > confmf.BSD 3475# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3476echo 'include confinc.mk # ignored' > confmf.GNU 3477_am_result=no 3478for s in GNU BSD; do 3479 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3480 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3481 ac_status=$? 3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3483 (exit $ac_status); } 3484 case $?:`cat confinc.out 2>/dev/null` in #( 3485 '0:this is the am__doit target') : 3486 case $s in #( 3487 BSD) : 3488 am__include='.include' am__quote='"' ;; #( 3489 *) : 3490 am__include='include' am__quote='' ;; 3491esac ;; #( 3492 *) : 3493 ;; 3494esac 3495 if test "$am__include" != "#"; then 3496 _am_result="yes ($s style)" 3497 break 3498 fi 3499done 3500rm -f confinc.* confmf.* 3501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3502printf "%s\n" "${_am_result}" >&6; } 3503 3504# Check whether --enable-dependency-tracking was given. 3505if test ${enable_dependency_tracking+y} 3506then : 3507 enableval=$enable_dependency_tracking; 3508fi 3509 3510if test "x$enable_dependency_tracking" != xno; then 3511 am_depcomp="$ac_aux_dir/depcomp" 3512 AMDEPBACKSLASH='\' 3513 am__nodep='_no' 3514fi 3515 if test "x$enable_dependency_tracking" != xno; then 3516 AMDEP_TRUE= 3517 AMDEP_FALSE='#' 3518else 3519 AMDEP_TRUE='#' 3520 AMDEP_FALSE= 3521fi 3522 3523 3524ac_ext=c 3525ac_cpp='$CPP $CPPFLAGS' 3526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3528ac_compiler_gnu=$ac_cv_c_compiler_gnu 3529if test -n "$ac_tool_prefix"; then 3530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3531set dummy ${ac_tool_prefix}gcc; ac_word=$2 3532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3533printf %s "checking for $ac_word... " >&6; } 3534if test ${ac_cv_prog_CC+y} 3535then : 3536 printf %s "(cached) " >&6 3537else $as_nop 3538 if test -n "$CC"; then 3539 ac_cv_prog_CC="$CC" # Let the user override the test. 3540else 3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3542for as_dir in $PATH 3543do 3544 IFS=$as_save_IFS 3545 case $as_dir in #((( 3546 '') as_dir=./ ;; 3547 */) ;; 3548 *) as_dir=$as_dir/ ;; 3549 esac 3550 for ac_exec_ext in '' $ac_executable_extensions; do 3551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3552 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3554 break 2 3555 fi 3556done 3557 done 3558IFS=$as_save_IFS 3559 3560fi 3561fi 3562CC=$ac_cv_prog_CC 3563if test -n "$CC"; then 3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3565printf "%s\n" "$CC" >&6; } 3566else 3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3568printf "%s\n" "no" >&6; } 3569fi 3570 3571 3572fi 3573if test -z "$ac_cv_prog_CC"; then 3574 ac_ct_CC=$CC 3575 # Extract the first word of "gcc", so it can be a program name with args. 3576set dummy gcc; ac_word=$2 3577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3578printf %s "checking for $ac_word... " >&6; } 3579if test ${ac_cv_prog_ac_ct_CC+y} 3580then : 3581 printf %s "(cached) " >&6 3582else $as_nop 3583 if test -n "$ac_ct_CC"; then 3584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3585else 3586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3587for as_dir in $PATH 3588do 3589 IFS=$as_save_IFS 3590 case $as_dir in #((( 3591 '') as_dir=./ ;; 3592 */) ;; 3593 *) as_dir=$as_dir/ ;; 3594 esac 3595 for ac_exec_ext in '' $ac_executable_extensions; do 3596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3597 ac_cv_prog_ac_ct_CC="gcc" 3598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3599 break 2 3600 fi 3601done 3602 done 3603IFS=$as_save_IFS 3604 3605fi 3606fi 3607ac_ct_CC=$ac_cv_prog_ac_ct_CC 3608if test -n "$ac_ct_CC"; then 3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3610printf "%s\n" "$ac_ct_CC" >&6; } 3611else 3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3613printf "%s\n" "no" >&6; } 3614fi 3615 3616 if test "x$ac_ct_CC" = x; then 3617 CC="" 3618 else 3619 case $cross_compiling:$ac_tool_warned in 3620yes:) 3621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3622printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3623ac_tool_warned=yes ;; 3624esac 3625 CC=$ac_ct_CC 3626 fi 3627else 3628 CC="$ac_cv_prog_CC" 3629fi 3630 3631if test -z "$CC"; then 3632 if test -n "$ac_tool_prefix"; then 3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3634set dummy ${ac_tool_prefix}cc; ac_word=$2 3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3636printf %s "checking for $ac_word... " >&6; } 3637if test ${ac_cv_prog_CC+y} 3638then : 3639 printf %s "(cached) " >&6 3640else $as_nop 3641 if test -n "$CC"; then 3642 ac_cv_prog_CC="$CC" # Let the user override the test. 3643else 3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH 3646do 3647 IFS=$as_save_IFS 3648 case $as_dir in #((( 3649 '') as_dir=./ ;; 3650 */) ;; 3651 *) as_dir=$as_dir/ ;; 3652 esac 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3655 ac_cv_prog_CC="${ac_tool_prefix}cc" 3656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3657 break 2 3658 fi 3659done 3660 done 3661IFS=$as_save_IFS 3662 3663fi 3664fi 3665CC=$ac_cv_prog_CC 3666if test -n "$CC"; then 3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3668printf "%s\n" "$CC" >&6; } 3669else 3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3671printf "%s\n" "no" >&6; } 3672fi 3673 3674 3675 fi 3676fi 3677if test -z "$CC"; then 3678 # Extract the first word of "cc", so it can be a program name with args. 3679set dummy cc; ac_word=$2 3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3681printf %s "checking for $ac_word... " >&6; } 3682if test ${ac_cv_prog_CC+y} 3683then : 3684 printf %s "(cached) " >&6 3685else $as_nop 3686 if test -n "$CC"; then 3687 ac_cv_prog_CC="$CC" # Let the user override the test. 3688else 3689 ac_prog_rejected=no 3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3691for as_dir in $PATH 3692do 3693 IFS=$as_save_IFS 3694 case $as_dir in #((( 3695 '') as_dir=./ ;; 3696 */) ;; 3697 *) as_dir=$as_dir/ ;; 3698 esac 3699 for ac_exec_ext in '' $ac_executable_extensions; do 3700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3701 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3702 ac_prog_rejected=yes 3703 continue 3704 fi 3705 ac_cv_prog_CC="cc" 3706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3707 break 2 3708 fi 3709done 3710 done 3711IFS=$as_save_IFS 3712 3713if test $ac_prog_rejected = yes; then 3714 # We found a bogon in the path, so make sure we never use it. 3715 set dummy $ac_cv_prog_CC 3716 shift 3717 if test $# != 0; then 3718 # We chose a different compiler from the bogus one. 3719 # However, it has the same basename, so the bogon will be chosen 3720 # first if we set CC to just the basename; use the full file name. 3721 shift 3722 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3723 fi 3724fi 3725fi 3726fi 3727CC=$ac_cv_prog_CC 3728if test -n "$CC"; then 3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3730printf "%s\n" "$CC" >&6; } 3731else 3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3733printf "%s\n" "no" >&6; } 3734fi 3735 3736 3737fi 3738if test -z "$CC"; then 3739 if test -n "$ac_tool_prefix"; then 3740 for ac_prog in cl.exe 3741 do 3742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3743set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3745printf %s "checking for $ac_word... " >&6; } 3746if test ${ac_cv_prog_CC+y} 3747then : 3748 printf %s "(cached) " >&6 3749else $as_nop 3750 if test -n "$CC"; then 3751 ac_cv_prog_CC="$CC" # Let the user override the test. 3752else 3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3754for as_dir in $PATH 3755do 3756 IFS=$as_save_IFS 3757 case $as_dir in #((( 3758 '') as_dir=./ ;; 3759 */) ;; 3760 *) as_dir=$as_dir/ ;; 3761 esac 3762 for ac_exec_ext in '' $ac_executable_extensions; do 3763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3764 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3766 break 2 3767 fi 3768done 3769 done 3770IFS=$as_save_IFS 3771 3772fi 3773fi 3774CC=$ac_cv_prog_CC 3775if test -n "$CC"; then 3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3777printf "%s\n" "$CC" >&6; } 3778else 3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3780printf "%s\n" "no" >&6; } 3781fi 3782 3783 3784 test -n "$CC" && break 3785 done 3786fi 3787if test -z "$CC"; then 3788 ac_ct_CC=$CC 3789 for ac_prog in cl.exe 3790do 3791 # Extract the first word of "$ac_prog", so it can be a program name with args. 3792set dummy $ac_prog; ac_word=$2 3793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3794printf %s "checking for $ac_word... " >&6; } 3795if test ${ac_cv_prog_ac_ct_CC+y} 3796then : 3797 printf %s "(cached) " >&6 3798else $as_nop 3799 if test -n "$ac_ct_CC"; then 3800 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3801else 3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3803for as_dir in $PATH 3804do 3805 IFS=$as_save_IFS 3806 case $as_dir in #((( 3807 '') as_dir=./ ;; 3808 */) ;; 3809 *) as_dir=$as_dir/ ;; 3810 esac 3811 for ac_exec_ext in '' $ac_executable_extensions; do 3812 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3813 ac_cv_prog_ac_ct_CC="$ac_prog" 3814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3815 break 2 3816 fi 3817done 3818 done 3819IFS=$as_save_IFS 3820 3821fi 3822fi 3823ac_ct_CC=$ac_cv_prog_ac_ct_CC 3824if test -n "$ac_ct_CC"; then 3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3826printf "%s\n" "$ac_ct_CC" >&6; } 3827else 3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3829printf "%s\n" "no" >&6; } 3830fi 3831 3832 3833 test -n "$ac_ct_CC" && break 3834done 3835 3836 if test "x$ac_ct_CC" = x; then 3837 CC="" 3838 else 3839 case $cross_compiling:$ac_tool_warned in 3840yes:) 3841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3842printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3843ac_tool_warned=yes ;; 3844esac 3845 CC=$ac_ct_CC 3846 fi 3847fi 3848 3849fi 3850if test -z "$CC"; then 3851 if test -n "$ac_tool_prefix"; then 3852 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3853set dummy ${ac_tool_prefix}clang; ac_word=$2 3854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3855printf %s "checking for $ac_word... " >&6; } 3856if test ${ac_cv_prog_CC+y} 3857then : 3858 printf %s "(cached) " >&6 3859else $as_nop 3860 if test -n "$CC"; then 3861 ac_cv_prog_CC="$CC" # Let the user override the test. 3862else 3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3864for as_dir in $PATH 3865do 3866 IFS=$as_save_IFS 3867 case $as_dir in #((( 3868 '') as_dir=./ ;; 3869 */) ;; 3870 *) as_dir=$as_dir/ ;; 3871 esac 3872 for ac_exec_ext in '' $ac_executable_extensions; do 3873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3874 ac_cv_prog_CC="${ac_tool_prefix}clang" 3875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3876 break 2 3877 fi 3878done 3879 done 3880IFS=$as_save_IFS 3881 3882fi 3883fi 3884CC=$ac_cv_prog_CC 3885if test -n "$CC"; then 3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3887printf "%s\n" "$CC" >&6; } 3888else 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3890printf "%s\n" "no" >&6; } 3891fi 3892 3893 3894fi 3895if test -z "$ac_cv_prog_CC"; then 3896 ac_ct_CC=$CC 3897 # Extract the first word of "clang", so it can be a program name with args. 3898set dummy clang; ac_word=$2 3899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3900printf %s "checking for $ac_word... " >&6; } 3901if test ${ac_cv_prog_ac_ct_CC+y} 3902then : 3903 printf %s "(cached) " >&6 3904else $as_nop 3905 if test -n "$ac_ct_CC"; then 3906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3907else 3908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3909for as_dir in $PATH 3910do 3911 IFS=$as_save_IFS 3912 case $as_dir in #((( 3913 '') as_dir=./ ;; 3914 */) ;; 3915 *) as_dir=$as_dir/ ;; 3916 esac 3917 for ac_exec_ext in '' $ac_executable_extensions; do 3918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3919 ac_cv_prog_ac_ct_CC="clang" 3920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3921 break 2 3922 fi 3923done 3924 done 3925IFS=$as_save_IFS 3926 3927fi 3928fi 3929ac_ct_CC=$ac_cv_prog_ac_ct_CC 3930if test -n "$ac_ct_CC"; then 3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3932printf "%s\n" "$ac_ct_CC" >&6; } 3933else 3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3935printf "%s\n" "no" >&6; } 3936fi 3937 3938 if test "x$ac_ct_CC" = x; then 3939 CC="" 3940 else 3941 case $cross_compiling:$ac_tool_warned in 3942yes:) 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3945ac_tool_warned=yes ;; 3946esac 3947 CC=$ac_ct_CC 3948 fi 3949else 3950 CC="$ac_cv_prog_CC" 3951fi 3952 3953fi 3954 3955 3956test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3957printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3958as_fn_error $? "no acceptable C compiler found in \$PATH 3959See \`config.log' for more details" "$LINENO" 5; } 3960 3961# Provide some information about the compiler. 3962printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3963set X $ac_compile 3964ac_compiler=$2 3965for ac_option in --version -v -V -qversion -version; do 3966 { { ac_try="$ac_compiler $ac_option >&5" 3967case "(($ac_try" in 3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3969 *) ac_try_echo=$ac_try;; 3970esac 3971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3972printf "%s\n" "$ac_try_echo"; } >&5 3973 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3974 ac_status=$? 3975 if test -s conftest.err; then 3976 sed '10a\ 3977... rest of stderr output deleted ... 3978 10q' conftest.err >conftest.er1 3979 cat conftest.er1 >&5 3980 fi 3981 rm -f conftest.er1 conftest.err 3982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3983 test $ac_status = 0; } 3984done 3985 3986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3987/* end confdefs.h. */ 3988 3989int 3990main (void) 3991{ 3992 3993 ; 3994 return 0; 3995} 3996_ACEOF 3997ac_clean_files_save=$ac_clean_files 3998ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3999# Try to create an executable without -o first, disregard a.out. 4000# It will help us diagnose broken compilers, and finding out an intuition 4001# of exeext. 4002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4003printf %s "checking whether the C compiler works... " >&6; } 4004ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4005 4006# The possible output files: 4007ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4008 4009ac_rmfiles= 4010for ac_file in $ac_files 4011do 4012 case $ac_file in 4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4014 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4015 esac 4016done 4017rm -f $ac_rmfiles 4018 4019if { { ac_try="$ac_link_default" 4020case "(($ac_try" in 4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4022 *) ac_try_echo=$ac_try;; 4023esac 4024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4025printf "%s\n" "$ac_try_echo"; } >&5 4026 (eval "$ac_link_default") 2>&5 4027 ac_status=$? 4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4029 test $ac_status = 0; } 4030then : 4031 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4032# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4033# in a Makefile. We should not override ac_cv_exeext if it was cached, 4034# so that the user can short-circuit this test for compilers unknown to 4035# Autoconf. 4036for ac_file in $ac_files '' 4037do 4038 test -f "$ac_file" || continue 4039 case $ac_file in 4040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4041 ;; 4042 [ab].out ) 4043 # We found the default executable, but exeext='' is most 4044 # certainly right. 4045 break;; 4046 *.* ) 4047 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4048 then :; else 4049 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4050 fi 4051 # We set ac_cv_exeext here because the later test for it is not 4052 # safe: cross compilers may not add the suffix if given an `-o' 4053 # argument, so we may need to know it at that point already. 4054 # Even if this section looks crufty: it has the advantage of 4055 # actually working. 4056 break;; 4057 * ) 4058 break;; 4059 esac 4060done 4061test "$ac_cv_exeext" = no && ac_cv_exeext= 4062 4063else $as_nop 4064 ac_file='' 4065fi 4066if test -z "$ac_file" 4067then : 4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4069printf "%s\n" "no" >&6; } 4070printf "%s\n" "$as_me: failed program was:" >&5 4071sed 's/^/| /' conftest.$ac_ext >&5 4072 4073{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4074printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4075as_fn_error 77 "C compiler cannot create executables 4076See \`config.log' for more details" "$LINENO" 5; } 4077else $as_nop 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4079printf "%s\n" "yes" >&6; } 4080fi 4081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4082printf %s "checking for C compiler default output file name... " >&6; } 4083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4084printf "%s\n" "$ac_file" >&6; } 4085ac_exeext=$ac_cv_exeext 4086 4087rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4088ac_clean_files=$ac_clean_files_save 4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4090printf %s "checking for suffix of executables... " >&6; } 4091if { { ac_try="$ac_link" 4092case "(($ac_try" in 4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4094 *) ac_try_echo=$ac_try;; 4095esac 4096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4097printf "%s\n" "$ac_try_echo"; } >&5 4098 (eval "$ac_link") 2>&5 4099 ac_status=$? 4100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4101 test $ac_status = 0; } 4102then : 4103 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4104# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4105# work properly (i.e., refer to `conftest.exe'), while it won't with 4106# `rm'. 4107for ac_file in conftest.exe conftest conftest.*; do 4108 test -f "$ac_file" || continue 4109 case $ac_file in 4110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4112 break;; 4113 * ) break;; 4114 esac 4115done 4116else $as_nop 4117 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4118printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4119as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4120See \`config.log' for more details" "$LINENO" 5; } 4121fi 4122rm -f conftest conftest$ac_cv_exeext 4123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4124printf "%s\n" "$ac_cv_exeext" >&6; } 4125 4126rm -f conftest.$ac_ext 4127EXEEXT=$ac_cv_exeext 4128ac_exeext=$EXEEXT 4129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4130/* end confdefs.h. */ 4131#include <stdio.h> 4132int 4133main (void) 4134{ 4135FILE *f = fopen ("conftest.out", "w"); 4136 return ferror (f) || fclose (f) != 0; 4137 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142ac_clean_files="$ac_clean_files conftest.out" 4143# Check that the compiler produces executables we can run. If not, either 4144# the compiler is broken, or we cross compile. 4145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4146printf %s "checking whether we are cross compiling... " >&6; } 4147if test "$cross_compiling" != yes; then 4148 { { ac_try="$ac_link" 4149case "(($ac_try" in 4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4151 *) ac_try_echo=$ac_try;; 4152esac 4153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4154printf "%s\n" "$ac_try_echo"; } >&5 4155 (eval "$ac_link") 2>&5 4156 ac_status=$? 4157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4158 test $ac_status = 0; } 4159 if { ac_try='./conftest$ac_cv_exeext' 4160 { { case "(($ac_try" in 4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4162 *) ac_try_echo=$ac_try;; 4163esac 4164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4165printf "%s\n" "$ac_try_echo"; } >&5 4166 (eval "$ac_try") 2>&5 4167 ac_status=$? 4168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4169 test $ac_status = 0; }; }; then 4170 cross_compiling=no 4171 else 4172 if test "$cross_compiling" = maybe; then 4173 cross_compiling=yes 4174 else 4175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4176printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4177as_fn_error 77 "cannot run C compiled programs. 4178If you meant to cross compile, use \`--host'. 4179See \`config.log' for more details" "$LINENO" 5; } 4180 fi 4181 fi 4182fi 4183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4184printf "%s\n" "$cross_compiling" >&6; } 4185 4186rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4187ac_clean_files=$ac_clean_files_save 4188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4189printf %s "checking for suffix of object files... " >&6; } 4190if test ${ac_cv_objext+y} 4191then : 4192 printf %s "(cached) " >&6 4193else $as_nop 4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195/* end confdefs.h. */ 4196 4197int 4198main (void) 4199{ 4200 4201 ; 4202 return 0; 4203} 4204_ACEOF 4205rm -f conftest.o conftest.obj 4206if { { ac_try="$ac_compile" 4207case "(($ac_try" in 4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4209 *) ac_try_echo=$ac_try;; 4210esac 4211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4212printf "%s\n" "$ac_try_echo"; } >&5 4213 (eval "$ac_compile") 2>&5 4214 ac_status=$? 4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4216 test $ac_status = 0; } 4217then : 4218 for ac_file in conftest.o conftest.obj conftest.*; do 4219 test -f "$ac_file" || continue; 4220 case $ac_file in 4221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4222 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4223 break;; 4224 esac 4225done 4226else $as_nop 4227 printf "%s\n" "$as_me: failed program was:" >&5 4228sed 's/^/| /' conftest.$ac_ext >&5 4229 4230{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4231printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4232as_fn_error $? "cannot compute suffix of object files: cannot compile 4233See \`config.log' for more details" "$LINENO" 5; } 4234fi 4235rm -f conftest.$ac_cv_objext conftest.$ac_ext 4236fi 4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4238printf "%s\n" "$ac_cv_objext" >&6; } 4239OBJEXT=$ac_cv_objext 4240ac_objext=$OBJEXT 4241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4242printf %s "checking whether the compiler supports GNU C... " >&6; } 4243if test ${ac_cv_c_compiler_gnu+y} 4244then : 4245 printf %s "(cached) " >&6 4246else $as_nop 4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248/* end confdefs.h. */ 4249 4250int 4251main (void) 4252{ 4253#ifndef __GNUC__ 4254 choke me 4255#endif 4256 4257 ; 4258 return 0; 4259} 4260_ACEOF 4261if ac_fn_c_try_compile "$LINENO" 4262then : 4263 ac_compiler_gnu=yes 4264else $as_nop 4265 ac_compiler_gnu=no 4266fi 4267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4268ac_cv_c_compiler_gnu=$ac_compiler_gnu 4269 4270fi 4271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4272printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4273ac_compiler_gnu=$ac_cv_c_compiler_gnu 4274 4275if test $ac_compiler_gnu = yes; then 4276 GCC=yes 4277else 4278 GCC= 4279fi 4280ac_test_CFLAGS=${CFLAGS+y} 4281ac_save_CFLAGS=$CFLAGS 4282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4283printf %s "checking whether $CC accepts -g... " >&6; } 4284if test ${ac_cv_prog_cc_g+y} 4285then : 4286 printf %s "(cached) " >&6 4287else $as_nop 4288 ac_save_c_werror_flag=$ac_c_werror_flag 4289 ac_c_werror_flag=yes 4290 ac_cv_prog_cc_g=no 4291 CFLAGS="-g" 4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4293/* end confdefs.h. */ 4294 4295int 4296main (void) 4297{ 4298 4299 ; 4300 return 0; 4301} 4302_ACEOF 4303if ac_fn_c_try_compile "$LINENO" 4304then : 4305 ac_cv_prog_cc_g=yes 4306else $as_nop 4307 CFLAGS="" 4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4309/* end confdefs.h. */ 4310 4311int 4312main (void) 4313{ 4314 4315 ; 4316 return 0; 4317} 4318_ACEOF 4319if ac_fn_c_try_compile "$LINENO" 4320then : 4321 4322else $as_nop 4323 ac_c_werror_flag=$ac_save_c_werror_flag 4324 CFLAGS="-g" 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327 4328int 4329main (void) 4330{ 4331 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336if ac_fn_c_try_compile "$LINENO" 4337then : 4338 ac_cv_prog_cc_g=yes 4339fi 4340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4341fi 4342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4343fi 4344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4345 ac_c_werror_flag=$ac_save_c_werror_flag 4346fi 4347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4348printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4349if test $ac_test_CFLAGS; then 4350 CFLAGS=$ac_save_CFLAGS 4351elif test $ac_cv_prog_cc_g = yes; then 4352 if test "$GCC" = yes; then 4353 CFLAGS="-g -O2" 4354 else 4355 CFLAGS="-g" 4356 fi 4357else 4358 if test "$GCC" = yes; then 4359 CFLAGS="-O2" 4360 else 4361 CFLAGS= 4362 fi 4363fi 4364ac_prog_cc_stdc=no 4365if test x$ac_prog_cc_stdc = xno 4366then : 4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4368printf %s "checking for $CC option to enable C11 features... " >&6; } 4369if test ${ac_cv_prog_cc_c11+y} 4370then : 4371 printf %s "(cached) " >&6 4372else $as_nop 4373 ac_cv_prog_cc_c11=no 4374ac_save_CC=$CC 4375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4376/* end confdefs.h. */ 4377$ac_c_conftest_c11_program 4378_ACEOF 4379for ac_arg in '' -std=gnu11 4380do 4381 CC="$ac_save_CC $ac_arg" 4382 if ac_fn_c_try_compile "$LINENO" 4383then : 4384 ac_cv_prog_cc_c11=$ac_arg 4385fi 4386rm -f core conftest.err conftest.$ac_objext conftest.beam 4387 test "x$ac_cv_prog_cc_c11" != "xno" && break 4388done 4389rm -f conftest.$ac_ext 4390CC=$ac_save_CC 4391fi 4392 4393if test "x$ac_cv_prog_cc_c11" = xno 4394then : 4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4396printf "%s\n" "unsupported" >&6; } 4397else $as_nop 4398 if test "x$ac_cv_prog_cc_c11" = x 4399then : 4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4401printf "%s\n" "none needed" >&6; } 4402else $as_nop 4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4404printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4405 CC="$CC $ac_cv_prog_cc_c11" 4406fi 4407 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4408 ac_prog_cc_stdc=c11 4409fi 4410fi 4411if test x$ac_prog_cc_stdc = xno 4412then : 4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4414printf %s "checking for $CC option to enable C99 features... " >&6; } 4415if test ${ac_cv_prog_cc_c99+y} 4416then : 4417 printf %s "(cached) " >&6 4418else $as_nop 4419 ac_cv_prog_cc_c99=no 4420ac_save_CC=$CC 4421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4422/* end confdefs.h. */ 4423$ac_c_conftest_c99_program 4424_ACEOF 4425for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4426do 4427 CC="$ac_save_CC $ac_arg" 4428 if ac_fn_c_try_compile "$LINENO" 4429then : 4430 ac_cv_prog_cc_c99=$ac_arg 4431fi 4432rm -f core conftest.err conftest.$ac_objext conftest.beam 4433 test "x$ac_cv_prog_cc_c99" != "xno" && break 4434done 4435rm -f conftest.$ac_ext 4436CC=$ac_save_CC 4437fi 4438 4439if test "x$ac_cv_prog_cc_c99" = xno 4440then : 4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4442printf "%s\n" "unsupported" >&6; } 4443else $as_nop 4444 if test "x$ac_cv_prog_cc_c99" = x 4445then : 4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4447printf "%s\n" "none needed" >&6; } 4448else $as_nop 4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4450printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4451 CC="$CC $ac_cv_prog_cc_c99" 4452fi 4453 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4454 ac_prog_cc_stdc=c99 4455fi 4456fi 4457if test x$ac_prog_cc_stdc = xno 4458then : 4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4460printf %s "checking for $CC option to enable C89 features... " >&6; } 4461if test ${ac_cv_prog_cc_c89+y} 4462then : 4463 printf %s "(cached) " >&6 4464else $as_nop 4465 ac_cv_prog_cc_c89=no 4466ac_save_CC=$CC 4467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4468/* end confdefs.h. */ 4469$ac_c_conftest_c89_program 4470_ACEOF 4471for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4472do 4473 CC="$ac_save_CC $ac_arg" 4474 if ac_fn_c_try_compile "$LINENO" 4475then : 4476 ac_cv_prog_cc_c89=$ac_arg 4477fi 4478rm -f core conftest.err conftest.$ac_objext conftest.beam 4479 test "x$ac_cv_prog_cc_c89" != "xno" && break 4480done 4481rm -f conftest.$ac_ext 4482CC=$ac_save_CC 4483fi 4484 4485if test "x$ac_cv_prog_cc_c89" = xno 4486then : 4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4488printf "%s\n" "unsupported" >&6; } 4489else $as_nop 4490 if test "x$ac_cv_prog_cc_c89" = x 4491then : 4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4493printf "%s\n" "none needed" >&6; } 4494else $as_nop 4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4496printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4497 CC="$CC $ac_cv_prog_cc_c89" 4498fi 4499 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4500 ac_prog_cc_stdc=c89 4501fi 4502fi 4503 4504ac_ext=c 4505ac_cpp='$CPP $CPPFLAGS' 4506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4508ac_compiler_gnu=$ac_cv_c_compiler_gnu 4509 4510 4511 ac_ext=c 4512ac_cpp='$CPP $CPPFLAGS' 4513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4515ac_compiler_gnu=$ac_cv_c_compiler_gnu 4516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4517printf %s "checking whether $CC understands -c and -o together... " >&6; } 4518if test ${am_cv_prog_cc_c_o+y} 4519then : 4520 printf %s "(cached) " >&6 4521else $as_nop 4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4523/* end confdefs.h. */ 4524 4525int 4526main (void) 4527{ 4528 4529 ; 4530 return 0; 4531} 4532_ACEOF 4533 # Make sure it works both with $CC and with simple cc. 4534 # Following AC_PROG_CC_C_O, we do the test twice because some 4535 # compilers refuse to overwrite an existing .o file with -o, 4536 # though they will create one. 4537 am_cv_prog_cc_c_o=yes 4538 for am_i in 1 2; do 4539 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4540 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4541 ac_status=$? 4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4543 (exit $ac_status); } \ 4544 && test -f conftest2.$ac_objext; then 4545 : OK 4546 else 4547 am_cv_prog_cc_c_o=no 4548 break 4549 fi 4550 done 4551 rm -f core conftest* 4552 unset am_i 4553fi 4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4555printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4556if test "$am_cv_prog_cc_c_o" != yes; then 4557 # Losing compiler, so override with the script. 4558 # FIXME: It is wrong to rewrite CC. 4559 # But if we don't then we get into trouble of one sort or another. 4560 # A longer-term fix would be to have automake use am__CC in this case, 4561 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4562 CC="$am_aux_dir/compile $CC" 4563fi 4564ac_ext=c 4565ac_cpp='$CPP $CPPFLAGS' 4566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4568ac_compiler_gnu=$ac_cv_c_compiler_gnu 4569 4570 4571depcc="$CC" am_compiler_list= 4572 4573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4574printf %s "checking dependency style of $depcc... " >&6; } 4575if test ${am_cv_CC_dependencies_compiler_type+y} 4576then : 4577 printf %s "(cached) " >&6 4578else $as_nop 4579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4580 # We make a subdir and do the tests there. Otherwise we can end up 4581 # making bogus files that we don't know about and never remove. For 4582 # instance it was reported that on HP-UX the gcc test will end up 4583 # making a dummy file named 'D' -- because '-MD' means "put the output 4584 # in D". 4585 rm -rf conftest.dir 4586 mkdir conftest.dir 4587 # Copy depcomp to subdir because otherwise we won't find it if we're 4588 # using a relative directory. 4589 cp "$am_depcomp" conftest.dir 4590 cd conftest.dir 4591 # We will build objects and dependencies in a subdirectory because 4592 # it helps to detect inapplicable dependency modes. For instance 4593 # both Tru64's cc and ICC support -MD to output dependencies as a 4594 # side effect of compilation, but ICC will put the dependencies in 4595 # the current directory while Tru64 will put them in the object 4596 # directory. 4597 mkdir sub 4598 4599 am_cv_CC_dependencies_compiler_type=none 4600 if test "$am_compiler_list" = ""; then 4601 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4602 fi 4603 am__universal=false 4604 case " $depcc " in #( 4605 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4606 esac 4607 4608 for depmode in $am_compiler_list; do 4609 # Setup a source with many dependencies, because some compilers 4610 # like to wrap large dependency lists on column 80 (with \), and 4611 # we should not choose a depcomp mode which is confused by this. 4612 # 4613 # We need to recreate these files for each test, as the compiler may 4614 # overwrite some of them when testing with obscure command lines. 4615 # This happens at least with the AIX C compiler. 4616 : > sub/conftest.c 4617 for i in 1 2 3 4 5 6; do 4618 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4619 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4620 # Solaris 10 /bin/sh. 4621 echo '/* dummy */' > sub/conftst$i.h 4622 done 4623 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4624 4625 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4626 # mode. It turns out that the SunPro C++ compiler does not properly 4627 # handle '-M -o', and we need to detect this. Also, some Intel 4628 # versions had trouble with output in subdirs. 4629 am__obj=sub/conftest.${OBJEXT-o} 4630 am__minus_obj="-o $am__obj" 4631 case $depmode in 4632 gcc) 4633 # This depmode causes a compiler race in universal mode. 4634 test "$am__universal" = false || continue 4635 ;; 4636 nosideeffect) 4637 # After this tag, mechanisms are not by side-effect, so they'll 4638 # only be used when explicitly requested. 4639 if test "x$enable_dependency_tracking" = xyes; then 4640 continue 4641 else 4642 break 4643 fi 4644 ;; 4645 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4646 # This compiler won't grok '-c -o', but also, the minuso test has 4647 # not run yet. These depmodes are late enough in the game, and 4648 # so weak that their functioning should not be impacted. 4649 am__obj=conftest.${OBJEXT-o} 4650 am__minus_obj= 4651 ;; 4652 none) break ;; 4653 esac 4654 if depmode=$depmode \ 4655 source=sub/conftest.c object=$am__obj \ 4656 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4657 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4658 >/dev/null 2>conftest.err && 4659 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4660 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4661 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4662 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4663 # icc doesn't choke on unknown options, it will just issue warnings 4664 # or remarks (even with -Werror). So we grep stderr for any message 4665 # that says an option was ignored or not supported. 4666 # When given -MP, icc 7.0 and 7.1 complain thusly: 4667 # icc: Command line warning: ignoring option '-M'; no argument required 4668 # The diagnosis changed in icc 8.0: 4669 # icc: Command line remark: option '-MP' not supported 4670 if (grep 'ignoring option' conftest.err || 4671 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4672 am_cv_CC_dependencies_compiler_type=$depmode 4673 break 4674 fi 4675 fi 4676 done 4677 4678 cd .. 4679 rm -rf conftest.dir 4680else 4681 am_cv_CC_dependencies_compiler_type=none 4682fi 4683 4684fi 4685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4686printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4687CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4688 4689 if 4690 test "x$enable_dependency_tracking" != xno \ 4691 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4692 am__fastdepCC_TRUE= 4693 am__fastdepCC_FALSE='#' 4694else 4695 am__fastdepCC_TRUE='#' 4696 am__fastdepCC_FALSE= 4697fi 4698 4699 4700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4701printf %s "checking for a sed that does not truncate output... " >&6; } 4702if test ${ac_cv_path_SED+y} 4703then : 4704 printf %s "(cached) " >&6 4705else $as_nop 4706 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4707 for ac_i in 1 2 3 4 5 6 7; do 4708 ac_script="$ac_script$as_nl$ac_script" 4709 done 4710 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4711 { ac_script=; unset ac_script;} 4712 if test -z "$SED"; then 4713 ac_path_SED_found=false 4714 # Loop through the user's path and test for each of PROGNAME-LIST 4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4716for as_dir in $PATH 4717do 4718 IFS=$as_save_IFS 4719 case $as_dir in #((( 4720 '') as_dir=./ ;; 4721 */) ;; 4722 *) as_dir=$as_dir/ ;; 4723 esac 4724 for ac_prog in sed gsed 4725 do 4726 for ac_exec_ext in '' $ac_executable_extensions; do 4727 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4728 as_fn_executable_p "$ac_path_SED" || continue 4729# Check for GNU ac_path_SED and select it if it is found. 4730 # Check for GNU $ac_path_SED 4731case `"$ac_path_SED" --version 2>&1` in 4732*GNU*) 4733 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4734*) 4735 ac_count=0 4736 printf %s 0123456789 >"conftest.in" 4737 while : 4738 do 4739 cat "conftest.in" "conftest.in" >"conftest.tmp" 4740 mv "conftest.tmp" "conftest.in" 4741 cp "conftest.in" "conftest.nl" 4742 printf "%s\n" '' >> "conftest.nl" 4743 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4745 as_fn_arith $ac_count + 1 && ac_count=$as_val 4746 if test $ac_count -gt ${ac_path_SED_max-0}; then 4747 # Best one so far, save it but keep looking for a better one 4748 ac_cv_path_SED="$ac_path_SED" 4749 ac_path_SED_max=$ac_count 4750 fi 4751 # 10*(2^10) chars as input seems more than enough 4752 test $ac_count -gt 10 && break 4753 done 4754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4755esac 4756 4757 $ac_path_SED_found && break 3 4758 done 4759 done 4760 done 4761IFS=$as_save_IFS 4762 if test -z "$ac_cv_path_SED"; then 4763 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4764 fi 4765else 4766 ac_cv_path_SED=$SED 4767fi 4768 4769fi 4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4771printf "%s\n" "$ac_cv_path_SED" >&6; } 4772 SED="$ac_cv_path_SED" 4773 rm -f conftest.sed 4774 4775test -z "$SED" && SED=sed 4776Xsed="$SED -e 1s/^X//" 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4789printf %s "checking for grep that handles long lines and -e... " >&6; } 4790if test ${ac_cv_path_GREP+y} 4791then : 4792 printf %s "(cached) " >&6 4793else $as_nop 4794 if test -z "$GREP"; then 4795 ac_path_GREP_found=false 4796 # Loop through the user's path and test for each of PROGNAME-LIST 4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4799do 4800 IFS=$as_save_IFS 4801 case $as_dir in #((( 4802 '') as_dir=./ ;; 4803 */) ;; 4804 *) as_dir=$as_dir/ ;; 4805 esac 4806 for ac_prog in grep ggrep 4807 do 4808 for ac_exec_ext in '' $ac_executable_extensions; do 4809 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4810 as_fn_executable_p "$ac_path_GREP" || continue 4811# Check for GNU ac_path_GREP and select it if it is found. 4812 # Check for GNU $ac_path_GREP 4813case `"$ac_path_GREP" --version 2>&1` in 4814*GNU*) 4815 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4816*) 4817 ac_count=0 4818 printf %s 0123456789 >"conftest.in" 4819 while : 4820 do 4821 cat "conftest.in" "conftest.in" >"conftest.tmp" 4822 mv "conftest.tmp" "conftest.in" 4823 cp "conftest.in" "conftest.nl" 4824 printf "%s\n" 'GREP' >> "conftest.nl" 4825 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4827 as_fn_arith $ac_count + 1 && ac_count=$as_val 4828 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4829 # Best one so far, save it but keep looking for a better one 4830 ac_cv_path_GREP="$ac_path_GREP" 4831 ac_path_GREP_max=$ac_count 4832 fi 4833 # 10*(2^10) chars as input seems more than enough 4834 test $ac_count -gt 10 && break 4835 done 4836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4837esac 4838 4839 $ac_path_GREP_found && break 3 4840 done 4841 done 4842 done 4843IFS=$as_save_IFS 4844 if test -z "$ac_cv_path_GREP"; then 4845 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4846 fi 4847else 4848 ac_cv_path_GREP=$GREP 4849fi 4850 4851fi 4852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4853printf "%s\n" "$ac_cv_path_GREP" >&6; } 4854 GREP="$ac_cv_path_GREP" 4855 4856 4857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4858printf %s "checking for egrep... " >&6; } 4859if test ${ac_cv_path_EGREP+y} 4860then : 4861 printf %s "(cached) " >&6 4862else $as_nop 4863 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4864 then ac_cv_path_EGREP="$GREP -E" 4865 else 4866 if test -z "$EGREP"; then 4867 ac_path_EGREP_found=false 4868 # Loop through the user's path and test for each of PROGNAME-LIST 4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4871do 4872 IFS=$as_save_IFS 4873 case $as_dir in #((( 4874 '') as_dir=./ ;; 4875 */) ;; 4876 *) as_dir=$as_dir/ ;; 4877 esac 4878 for ac_prog in egrep 4879 do 4880 for ac_exec_ext in '' $ac_executable_extensions; do 4881 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4882 as_fn_executable_p "$ac_path_EGREP" || continue 4883# Check for GNU ac_path_EGREP and select it if it is found. 4884 # Check for GNU $ac_path_EGREP 4885case `"$ac_path_EGREP" --version 2>&1` in 4886*GNU*) 4887 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4888*) 4889 ac_count=0 4890 printf %s 0123456789 >"conftest.in" 4891 while : 4892 do 4893 cat "conftest.in" "conftest.in" >"conftest.tmp" 4894 mv "conftest.tmp" "conftest.in" 4895 cp "conftest.in" "conftest.nl" 4896 printf "%s\n" 'EGREP' >> "conftest.nl" 4897 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4899 as_fn_arith $ac_count + 1 && ac_count=$as_val 4900 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4901 # Best one so far, save it but keep looking for a better one 4902 ac_cv_path_EGREP="$ac_path_EGREP" 4903 ac_path_EGREP_max=$ac_count 4904 fi 4905 # 10*(2^10) chars as input seems more than enough 4906 test $ac_count -gt 10 && break 4907 done 4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4909esac 4910 4911 $ac_path_EGREP_found && break 3 4912 done 4913 done 4914 done 4915IFS=$as_save_IFS 4916 if test -z "$ac_cv_path_EGREP"; then 4917 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4918 fi 4919else 4920 ac_cv_path_EGREP=$EGREP 4921fi 4922 4923 fi 4924fi 4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4926printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4927 EGREP="$ac_cv_path_EGREP" 4928 4929 4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4931printf %s "checking for fgrep... " >&6; } 4932if test ${ac_cv_path_FGREP+y} 4933then : 4934 printf %s "(cached) " >&6 4935else $as_nop 4936 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4937 then ac_cv_path_FGREP="$GREP -F" 4938 else 4939 if test -z "$FGREP"; then 4940 ac_path_FGREP_found=false 4941 # Loop through the user's path and test for each of PROGNAME-LIST 4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4944do 4945 IFS=$as_save_IFS 4946 case $as_dir in #((( 4947 '') as_dir=./ ;; 4948 */) ;; 4949 *) as_dir=$as_dir/ ;; 4950 esac 4951 for ac_prog in fgrep 4952 do 4953 for ac_exec_ext in '' $ac_executable_extensions; do 4954 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4955 as_fn_executable_p "$ac_path_FGREP" || continue 4956# Check for GNU ac_path_FGREP and select it if it is found. 4957 # Check for GNU $ac_path_FGREP 4958case `"$ac_path_FGREP" --version 2>&1` in 4959*GNU*) 4960 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4961*) 4962 ac_count=0 4963 printf %s 0123456789 >"conftest.in" 4964 while : 4965 do 4966 cat "conftest.in" "conftest.in" >"conftest.tmp" 4967 mv "conftest.tmp" "conftest.in" 4968 cp "conftest.in" "conftest.nl" 4969 printf "%s\n" 'FGREP' >> "conftest.nl" 4970 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4972 as_fn_arith $ac_count + 1 && ac_count=$as_val 4973 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4974 # Best one so far, save it but keep looking for a better one 4975 ac_cv_path_FGREP="$ac_path_FGREP" 4976 ac_path_FGREP_max=$ac_count 4977 fi 4978 # 10*(2^10) chars as input seems more than enough 4979 test $ac_count -gt 10 && break 4980 done 4981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4982esac 4983 4984 $ac_path_FGREP_found && break 3 4985 done 4986 done 4987 done 4988IFS=$as_save_IFS 4989 if test -z "$ac_cv_path_FGREP"; then 4990 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4991 fi 4992else 4993 ac_cv_path_FGREP=$FGREP 4994fi 4995 4996 fi 4997fi 4998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4999printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5000 FGREP="$ac_cv_path_FGREP" 5001 5002 5003test -z "$GREP" && GREP=grep 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023# Check whether --with-gnu-ld was given. 5024if test ${with_gnu_ld+y} 5025then : 5026 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5027else $as_nop 5028 with_gnu_ld=no 5029fi 5030 5031ac_prog=ld 5032if test yes = "$GCC"; then 5033 # Check if gcc -print-prog-name=ld gives a path. 5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5035printf %s "checking for ld used by $CC... " >&6; } 5036 case $host in 5037 *-*-mingw*) 5038 # gcc leaves a trailing carriage return, which upsets mingw 5039 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5040 *) 5041 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5042 esac 5043 case $ac_prog in 5044 # Accept absolute paths. 5045 [\\/]* | ?:[\\/]*) 5046 re_direlt='/[^/][^/]*/\.\./' 5047 # Canonicalize the pathname of ld 5048 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5049 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5050 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5051 done 5052 test -z "$LD" && LD=$ac_prog 5053 ;; 5054 "") 5055 # If it fails, then pretend we aren't using GCC. 5056 ac_prog=ld 5057 ;; 5058 *) 5059 # If it is relative, then search for the first ld in PATH. 5060 with_gnu_ld=unknown 5061 ;; 5062 esac 5063elif test yes = "$with_gnu_ld"; then 5064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5065printf %s "checking for GNU ld... " >&6; } 5066else 5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5068printf %s "checking for non-GNU ld... " >&6; } 5069fi 5070if test ${lt_cv_path_LD+y} 5071then : 5072 printf %s "(cached) " >&6 5073else $as_nop 5074 if test -z "$LD"; then 5075 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5076 for ac_dir in $PATH; do 5077 IFS=$lt_save_ifs 5078 test -z "$ac_dir" && ac_dir=. 5079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5080 lt_cv_path_LD=$ac_dir/$ac_prog 5081 # Check to see if the program is GNU ld. I'd rather use --version, 5082 # but apparently some variants of GNU ld only accept -v. 5083 # Break only if it was the GNU/non-GNU ld that we prefer. 5084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5085 *GNU* | *'with BFD'*) 5086 test no != "$with_gnu_ld" && break 5087 ;; 5088 *) 5089 test yes != "$with_gnu_ld" && break 5090 ;; 5091 esac 5092 fi 5093 done 5094 IFS=$lt_save_ifs 5095else 5096 lt_cv_path_LD=$LD # Let the user override the test with a path. 5097fi 5098fi 5099 5100LD=$lt_cv_path_LD 5101if test -n "$LD"; then 5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5103printf "%s\n" "$LD" >&6; } 5104else 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5106printf "%s\n" "no" >&6; } 5107fi 5108test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5110printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5111if test ${lt_cv_prog_gnu_ld+y} 5112then : 5113 printf %s "(cached) " >&6 5114else $as_nop 5115 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5116case `$LD -v 2>&1 </dev/null` in 5117*GNU* | *'with BFD'*) 5118 lt_cv_prog_gnu_ld=yes 5119 ;; 5120*) 5121 lt_cv_prog_gnu_ld=no 5122 ;; 5123esac 5124fi 5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5126printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5127with_gnu_ld=$lt_cv_prog_gnu_ld 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5138printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5139if test ${lt_cv_path_NM+y} 5140then : 5141 printf %s "(cached) " >&6 5142else $as_nop 5143 if test -n "$NM"; then 5144 # Let the user override the test. 5145 lt_cv_path_NM=$NM 5146else 5147 lt_nm_to_check=${ac_tool_prefix}nm 5148 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5149 lt_nm_to_check="$lt_nm_to_check nm" 5150 fi 5151 for lt_tmp_nm in $lt_nm_to_check; do 5152 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5153 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5154 IFS=$lt_save_ifs 5155 test -z "$ac_dir" && ac_dir=. 5156 tmp_nm=$ac_dir/$lt_tmp_nm 5157 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5158 # Check to see if the nm accepts a BSD-compat flag. 5159 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5160 # nm: unknown option "B" ignored 5161 # Tru64's nm complains that /dev/null is an invalid object file 5162 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5163 case $build_os in 5164 mingw*) lt_bad_file=conftest.nm/nofile ;; 5165 *) lt_bad_file=/dev/null ;; 5166 esac 5167 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5168 *$lt_bad_file* | *'Invalid file or object type'*) 5169 lt_cv_path_NM="$tmp_nm -B" 5170 break 2 5171 ;; 5172 *) 5173 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5174 */dev/null*) 5175 lt_cv_path_NM="$tmp_nm -p" 5176 break 2 5177 ;; 5178 *) 5179 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5180 continue # so that we can try to find one that supports BSD flags 5181 ;; 5182 esac 5183 ;; 5184 esac 5185 fi 5186 done 5187 IFS=$lt_save_ifs 5188 done 5189 : ${lt_cv_path_NM=no} 5190fi 5191fi 5192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5193printf "%s\n" "$lt_cv_path_NM" >&6; } 5194if test no != "$lt_cv_path_NM"; then 5195 NM=$lt_cv_path_NM 5196else 5197 # Didn't find any BSD compatible name lister, look for dumpbin. 5198 if test -n "$DUMPBIN"; then : 5199 # Let the user override the test. 5200 else 5201 if test -n "$ac_tool_prefix"; then 5202 for ac_prog in dumpbin "link -dump" 5203 do 5204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5205set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5207printf %s "checking for $ac_word... " >&6; } 5208if test ${ac_cv_prog_DUMPBIN+y} 5209then : 5210 printf %s "(cached) " >&6 5211else $as_nop 5212 if test -n "$DUMPBIN"; then 5213 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5214else 5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5216for as_dir in $PATH 5217do 5218 IFS=$as_save_IFS 5219 case $as_dir in #((( 5220 '') as_dir=./ ;; 5221 */) ;; 5222 *) as_dir=$as_dir/ ;; 5223 esac 5224 for ac_exec_ext in '' $ac_executable_extensions; do 5225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5226 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5228 break 2 5229 fi 5230done 5231 done 5232IFS=$as_save_IFS 5233 5234fi 5235fi 5236DUMPBIN=$ac_cv_prog_DUMPBIN 5237if test -n "$DUMPBIN"; then 5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5239printf "%s\n" "$DUMPBIN" >&6; } 5240else 5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5242printf "%s\n" "no" >&6; } 5243fi 5244 5245 5246 test -n "$DUMPBIN" && break 5247 done 5248fi 5249if test -z "$DUMPBIN"; then 5250 ac_ct_DUMPBIN=$DUMPBIN 5251 for ac_prog in dumpbin "link -dump" 5252do 5253 # Extract the first word of "$ac_prog", so it can be a program name with args. 5254set dummy $ac_prog; ac_word=$2 5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5256printf %s "checking for $ac_word... " >&6; } 5257if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5258then : 5259 printf %s "(cached) " >&6 5260else $as_nop 5261 if test -n "$ac_ct_DUMPBIN"; then 5262 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5263else 5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5265for as_dir in $PATH 5266do 5267 IFS=$as_save_IFS 5268 case $as_dir in #((( 5269 '') as_dir=./ ;; 5270 */) ;; 5271 *) as_dir=$as_dir/ ;; 5272 esac 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5275 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280 done 5281IFS=$as_save_IFS 5282 5283fi 5284fi 5285ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5286if test -n "$ac_ct_DUMPBIN"; then 5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5288printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5289else 5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5291printf "%s\n" "no" >&6; } 5292fi 5293 5294 5295 test -n "$ac_ct_DUMPBIN" && break 5296done 5297 5298 if test "x$ac_ct_DUMPBIN" = x; then 5299 DUMPBIN=":" 5300 else 5301 case $cross_compiling:$ac_tool_warned in 5302yes:) 5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5304printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5305ac_tool_warned=yes ;; 5306esac 5307 DUMPBIN=$ac_ct_DUMPBIN 5308 fi 5309fi 5310 5311 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5312 *COFF*) 5313 DUMPBIN="$DUMPBIN -symbols -headers" 5314 ;; 5315 *) 5316 DUMPBIN=: 5317 ;; 5318 esac 5319 fi 5320 5321 if test : != "$DUMPBIN"; then 5322 NM=$DUMPBIN 5323 fi 5324fi 5325test -z "$NM" && NM=nm 5326 5327 5328 5329 5330 5331 5332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5333printf %s "checking the name lister ($NM) interface... " >&6; } 5334if test ${lt_cv_nm_interface+y} 5335then : 5336 printf %s "(cached) " >&6 5337else $as_nop 5338 lt_cv_nm_interface="BSD nm" 5339 echo "int some_variable = 0;" > conftest.$ac_ext 5340 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5341 (eval "$ac_compile" 2>conftest.err) 5342 cat conftest.err >&5 5343 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5344 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5345 cat conftest.err >&5 5346 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5347 cat conftest.out >&5 5348 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5349 lt_cv_nm_interface="MS dumpbin" 5350 fi 5351 rm -f conftest* 5352fi 5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5354printf "%s\n" "$lt_cv_nm_interface" >&6; } 5355 5356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5357printf %s "checking whether ln -s works... " >&6; } 5358LN_S=$as_ln_s 5359if test "$LN_S" = "ln -s"; then 5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5361printf "%s\n" "yes" >&6; } 5362else 5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5364printf "%s\n" "no, using $LN_S" >&6; } 5365fi 5366 5367# find the maximum length of command line arguments 5368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5369printf %s "checking the maximum length of command line arguments... " >&6; } 5370if test ${lt_cv_sys_max_cmd_len+y} 5371then : 5372 printf %s "(cached) " >&6 5373else $as_nop 5374 i=0 5375 teststring=ABCD 5376 5377 case $build_os in 5378 msdosdjgpp*) 5379 # On DJGPP, this test can blow up pretty badly due to problems in libc 5380 # (any single argument exceeding 2000 bytes causes a buffer overrun 5381 # during glob expansion). Even if it were fixed, the result of this 5382 # check would be larger than it should be. 5383 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5384 ;; 5385 5386 gnu*) 5387 # Under GNU Hurd, this test is not required because there is 5388 # no limit to the length of command line arguments. 5389 # Libtool will interpret -1 as no limit whatsoever 5390 lt_cv_sys_max_cmd_len=-1; 5391 ;; 5392 5393 cygwin* | mingw* | cegcc*) 5394 # On Win9x/ME, this test blows up -- it succeeds, but takes 5395 # about 5 minutes as the teststring grows exponentially. 5396 # Worse, since 9x/ME are not pre-emptively multitasking, 5397 # you end up with a "frozen" computer, even though with patience 5398 # the test eventually succeeds (with a max line length of 256k). 5399 # Instead, let's just punt: use the minimum linelength reported by 5400 # all of the supported platforms: 8192 (on NT/2K/XP). 5401 lt_cv_sys_max_cmd_len=8192; 5402 ;; 5403 5404 mint*) 5405 # On MiNT this can take a long time and run out of memory. 5406 lt_cv_sys_max_cmd_len=8192; 5407 ;; 5408 5409 amigaos*) 5410 # On AmigaOS with pdksh, this test takes hours, literally. 5411 # So we just punt and use a minimum line length of 8192. 5412 lt_cv_sys_max_cmd_len=8192; 5413 ;; 5414 5415 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5416 # This has been around since 386BSD, at least. Likely further. 5417 if test -x /sbin/sysctl; then 5418 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5419 elif test -x /usr/sbin/sysctl; then 5420 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5421 else 5422 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5423 fi 5424 # And add a safety zone 5425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5427 ;; 5428 5429 interix*) 5430 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5431 lt_cv_sys_max_cmd_len=196608 5432 ;; 5433 5434 os2*) 5435 # The test takes a long time on OS/2. 5436 lt_cv_sys_max_cmd_len=8192 5437 ;; 5438 5439 osf*) 5440 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5441 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5442 # nice to cause kernel panics so lets avoid the loop below. 5443 # First set a reasonable default. 5444 lt_cv_sys_max_cmd_len=16384 5445 # 5446 if test -x /sbin/sysconfig; then 5447 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5448 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5449 esac 5450 fi 5451 ;; 5452 sco3.2v5*) 5453 lt_cv_sys_max_cmd_len=102400 5454 ;; 5455 sysv5* | sco5v6* | sysv4.2uw2*) 5456 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5457 if test -n "$kargmax"; then 5458 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5459 else 5460 lt_cv_sys_max_cmd_len=32768 5461 fi 5462 ;; 5463 *) 5464 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5465 if test -n "$lt_cv_sys_max_cmd_len" && \ 5466 test undefined != "$lt_cv_sys_max_cmd_len"; then 5467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5469 else 5470 # Make teststring a little bigger before we do anything with it. 5471 # a 1K string should be a reasonable start. 5472 for i in 1 2 3 4 5 6 7 8; do 5473 teststring=$teststring$teststring 5474 done 5475 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5476 # If test is not a shell built-in, we'll probably end up computing a 5477 # maximum length that is only half of the actual maximum length, but 5478 # we can't tell. 5479 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5480 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5481 test 17 != "$i" # 1/2 MB should be enough 5482 do 5483 i=`expr $i + 1` 5484 teststring=$teststring$teststring 5485 done 5486 # Only check the string length outside the loop. 5487 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5488 teststring= 5489 # Add a significant safety factor because C++ compilers can tack on 5490 # massive amounts of additional arguments before passing them to the 5491 # linker. It appears as though 1/2 is a usable value. 5492 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5493 fi 5494 ;; 5495 esac 5496 5497fi 5498 5499if test -n "$lt_cv_sys_max_cmd_len"; then 5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5501printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5502else 5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5504printf "%s\n" "none" >&6; } 5505fi 5506max_cmd_len=$lt_cv_sys_max_cmd_len 5507 5508 5509 5510 5511 5512 5513: ${CP="cp -f"} 5514: ${MV="mv -f"} 5515: ${RM="rm -f"} 5516 5517if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5518 lt_unset=unset 5519else 5520 lt_unset=false 5521fi 5522 5523 5524 5525 5526 5527# test EBCDIC or ASCII 5528case `echo X|tr X '\101'` in 5529 A) # ASCII based system 5530 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5531 lt_SP2NL='tr \040 \012' 5532 lt_NL2SP='tr \015\012 \040\040' 5533 ;; 5534 *) # EBCDIC based system 5535 lt_SP2NL='tr \100 \n' 5536 lt_NL2SP='tr \r\n \100\100' 5537 ;; 5538esac 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5549printf %s "checking how to convert $build file names to $host format... " >&6; } 5550if test ${lt_cv_to_host_file_cmd+y} 5551then : 5552 printf %s "(cached) " >&6 5553else $as_nop 5554 case $host in 5555 *-*-mingw* ) 5556 case $build in 5557 *-*-mingw* ) # actually msys 5558 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5559 ;; 5560 *-*-cygwin* ) 5561 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5562 ;; 5563 * ) # otherwise, assume *nix 5564 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5565 ;; 5566 esac 5567 ;; 5568 *-*-cygwin* ) 5569 case $build in 5570 *-*-mingw* ) # actually msys 5571 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5572 ;; 5573 *-*-cygwin* ) 5574 lt_cv_to_host_file_cmd=func_convert_file_noop 5575 ;; 5576 * ) # otherwise, assume *nix 5577 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5578 ;; 5579 esac 5580 ;; 5581 * ) # unhandled hosts (and "normal" native builds) 5582 lt_cv_to_host_file_cmd=func_convert_file_noop 5583 ;; 5584esac 5585 5586fi 5587 5588to_host_file_cmd=$lt_cv_to_host_file_cmd 5589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5590printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5591 5592 5593 5594 5595 5596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5597printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5598if test ${lt_cv_to_tool_file_cmd+y} 5599then : 5600 printf %s "(cached) " >&6 5601else $as_nop 5602 #assume ordinary cross tools, or native build. 5603lt_cv_to_tool_file_cmd=func_convert_file_noop 5604case $host in 5605 *-*-mingw* ) 5606 case $build in 5607 *-*-mingw* ) # actually msys 5608 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5609 ;; 5610 esac 5611 ;; 5612esac 5613 5614fi 5615 5616to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5618printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5619 5620 5621 5622 5623 5624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5625printf %s "checking for $LD option to reload object files... " >&6; } 5626if test ${lt_cv_ld_reload_flag+y} 5627then : 5628 printf %s "(cached) " >&6 5629else $as_nop 5630 lt_cv_ld_reload_flag='-r' 5631fi 5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5633printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5634reload_flag=$lt_cv_ld_reload_flag 5635case $reload_flag in 5636"" | " "*) ;; 5637*) reload_flag=" $reload_flag" ;; 5638esac 5639reload_cmds='$LD$reload_flag -o $output$reload_objs' 5640case $host_os in 5641 cygwin* | mingw* | pw32* | cegcc*) 5642 if test yes != "$GCC"; then 5643 reload_cmds=false 5644 fi 5645 ;; 5646 darwin*) 5647 if test yes = "$GCC"; then 5648 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5649 else 5650 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5651 fi 5652 ;; 5653esac 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663if test -n "$ac_tool_prefix"; then 5664 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5665set dummy ${ac_tool_prefix}file; ac_word=$2 5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5667printf %s "checking for $ac_word... " >&6; } 5668if test ${ac_cv_prog_FILECMD+y} 5669then : 5670 printf %s "(cached) " >&6 5671else $as_nop 5672 if test -n "$FILECMD"; then 5673 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5674else 5675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5676for as_dir in $PATH 5677do 5678 IFS=$as_save_IFS 5679 case $as_dir in #((( 5680 '') as_dir=./ ;; 5681 */) ;; 5682 *) as_dir=$as_dir/ ;; 5683 esac 5684 for ac_exec_ext in '' $ac_executable_extensions; do 5685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5686 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5688 break 2 5689 fi 5690done 5691 done 5692IFS=$as_save_IFS 5693 5694fi 5695fi 5696FILECMD=$ac_cv_prog_FILECMD 5697if test -n "$FILECMD"; then 5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5699printf "%s\n" "$FILECMD" >&6; } 5700else 5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5702printf "%s\n" "no" >&6; } 5703fi 5704 5705 5706fi 5707if test -z "$ac_cv_prog_FILECMD"; then 5708 ac_ct_FILECMD=$FILECMD 5709 # Extract the first word of "file", so it can be a program name with args. 5710set dummy file; ac_word=$2 5711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5712printf %s "checking for $ac_word... " >&6; } 5713if test ${ac_cv_prog_ac_ct_FILECMD+y} 5714then : 5715 printf %s "(cached) " >&6 5716else $as_nop 5717 if test -n "$ac_ct_FILECMD"; then 5718 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5719else 5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5721for as_dir in $PATH 5722do 5723 IFS=$as_save_IFS 5724 case $as_dir in #((( 5725 '') as_dir=./ ;; 5726 */) ;; 5727 *) as_dir=$as_dir/ ;; 5728 esac 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5731 ac_cv_prog_ac_ct_FILECMD="file" 5732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735done 5736 done 5737IFS=$as_save_IFS 5738 5739fi 5740fi 5741ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5742if test -n "$ac_ct_FILECMD"; then 5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5744printf "%s\n" "$ac_ct_FILECMD" >&6; } 5745else 5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747printf "%s\n" "no" >&6; } 5748fi 5749 5750 if test "x$ac_ct_FILECMD" = x; then 5751 FILECMD=":" 5752 else 5753 case $cross_compiling:$ac_tool_warned in 5754yes:) 5755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5756printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5757ac_tool_warned=yes ;; 5758esac 5759 FILECMD=$ac_ct_FILECMD 5760 fi 5761else 5762 FILECMD="$ac_cv_prog_FILECMD" 5763fi 5764 5765 5766 5767 5768 5769 5770 5771if test -n "$ac_tool_prefix"; then 5772 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5773set dummy ${ac_tool_prefix}objdump; ac_word=$2 5774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5775printf %s "checking for $ac_word... " >&6; } 5776if test ${ac_cv_prog_OBJDUMP+y} 5777then : 5778 printf %s "(cached) " >&6 5779else $as_nop 5780 if test -n "$OBJDUMP"; then 5781 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5782else 5783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5784for as_dir in $PATH 5785do 5786 IFS=$as_save_IFS 5787 case $as_dir in #((( 5788 '') as_dir=./ ;; 5789 */) ;; 5790 *) as_dir=$as_dir/ ;; 5791 esac 5792 for ac_exec_ext in '' $ac_executable_extensions; do 5793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5796 break 2 5797 fi 5798done 5799 done 5800IFS=$as_save_IFS 5801 5802fi 5803fi 5804OBJDUMP=$ac_cv_prog_OBJDUMP 5805if test -n "$OBJDUMP"; then 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5807printf "%s\n" "$OBJDUMP" >&6; } 5808else 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5810printf "%s\n" "no" >&6; } 5811fi 5812 5813 5814fi 5815if test -z "$ac_cv_prog_OBJDUMP"; then 5816 ac_ct_OBJDUMP=$OBJDUMP 5817 # Extract the first word of "objdump", so it can be a program name with args. 5818set dummy objdump; ac_word=$2 5819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5820printf %s "checking for $ac_word... " >&6; } 5821if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5822then : 5823 printf %s "(cached) " >&6 5824else $as_nop 5825 if test -n "$ac_ct_OBJDUMP"; then 5826 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5827else 5828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5829for as_dir in $PATH 5830do 5831 IFS=$as_save_IFS 5832 case $as_dir in #((( 5833 '') as_dir=./ ;; 5834 */) ;; 5835 *) as_dir=$as_dir/ ;; 5836 esac 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5839 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5841 break 2 5842 fi 5843done 5844 done 5845IFS=$as_save_IFS 5846 5847fi 5848fi 5849ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5850if test -n "$ac_ct_OBJDUMP"; then 5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5852printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5853else 5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5855printf "%s\n" "no" >&6; } 5856fi 5857 5858 if test "x$ac_ct_OBJDUMP" = x; then 5859 OBJDUMP="false" 5860 else 5861 case $cross_compiling:$ac_tool_warned in 5862yes:) 5863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5864printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5865ac_tool_warned=yes ;; 5866esac 5867 OBJDUMP=$ac_ct_OBJDUMP 5868 fi 5869else 5870 OBJDUMP="$ac_cv_prog_OBJDUMP" 5871fi 5872 5873test -z "$OBJDUMP" && OBJDUMP=objdump 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5884printf %s "checking how to recognize dependent libraries... " >&6; } 5885if test ${lt_cv_deplibs_check_method+y} 5886then : 5887 printf %s "(cached) " >&6 5888else $as_nop 5889 lt_cv_file_magic_cmd='$MAGIC_CMD' 5890lt_cv_file_magic_test_file= 5891lt_cv_deplibs_check_method='unknown' 5892# Need to set the preceding variable on all platforms that support 5893# interlibrary dependencies. 5894# 'none' -- dependencies not supported. 5895# 'unknown' -- same as none, but documents that we really don't know. 5896# 'pass_all' -- all dependencies passed with no checks. 5897# 'test_compile' -- check by making test program. 5898# 'file_magic [[regex]]' -- check by looking for files in library path 5899# that responds to the $file_magic_cmd with a given extended regex. 5900# If you have 'file' or equivalent on your system and you're not sure 5901# whether 'pass_all' will *always* work, you probably want this one. 5902 5903case $host_os in 5904aix[4-9]*) 5905 lt_cv_deplibs_check_method=pass_all 5906 ;; 5907 5908beos*) 5909 lt_cv_deplibs_check_method=pass_all 5910 ;; 5911 5912bsdi[45]*) 5913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5914 lt_cv_file_magic_cmd='$FILECMD -L' 5915 lt_cv_file_magic_test_file=/shlib/libc.so 5916 ;; 5917 5918cygwin*) 5919 # func_win32_libid is a shell function defined in ltmain.sh 5920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5921 lt_cv_file_magic_cmd='func_win32_libid' 5922 ;; 5923 5924mingw* | pw32*) 5925 # Base MSYS/MinGW do not provide the 'file' command needed by 5926 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5927 # unless we find 'file', for example because we are cross-compiling. 5928 if ( file / ) >/dev/null 2>&1; then 5929 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5930 lt_cv_file_magic_cmd='func_win32_libid' 5931 else 5932 # Keep this pattern in sync with the one in func_win32_libid. 5933 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5934 lt_cv_file_magic_cmd='$OBJDUMP -f' 5935 fi 5936 ;; 5937 5938cegcc*) 5939 # use the weaker test based on 'objdump'. See mingw*. 5940 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5941 lt_cv_file_magic_cmd='$OBJDUMP -f' 5942 ;; 5943 5944darwin* | rhapsody*) 5945 lt_cv_deplibs_check_method=pass_all 5946 ;; 5947 5948freebsd* | dragonfly* | midnightbsd*) 5949 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5950 case $host_cpu in 5951 i*86 ) 5952 # Not sure whether the presence of OpenBSD here was a mistake. 5953 # Let's accept both of them until this is cleared up. 5954 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5955 lt_cv_file_magic_cmd=$FILECMD 5956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5957 ;; 5958 esac 5959 else 5960 lt_cv_deplibs_check_method=pass_all 5961 fi 5962 ;; 5963 5964haiku*) 5965 lt_cv_deplibs_check_method=pass_all 5966 ;; 5967 5968hpux10.20* | hpux11*) 5969 lt_cv_file_magic_cmd=$FILECMD 5970 case $host_cpu in 5971 ia64*) 5972 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5973 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5974 ;; 5975 hppa*64*) 5976 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]' 5977 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5978 ;; 5979 *) 5980 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5981 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5982 ;; 5983 esac 5984 ;; 5985 5986interix[3-9]*) 5987 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5989 ;; 5990 5991irix5* | irix6* | nonstopux*) 5992 case $LD in 5993 *-32|*"-32 ") libmagic=32-bit;; 5994 *-n32|*"-n32 ") libmagic=N32;; 5995 *-64|*"-64 ") libmagic=64-bit;; 5996 *) libmagic=never-match;; 5997 esac 5998 lt_cv_deplibs_check_method=pass_all 5999 ;; 6000 6001# This must be glibc/ELF. 6002linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6003 lt_cv_deplibs_check_method=pass_all 6004 ;; 6005 6006netbsd*) 6007 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6008 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6009 else 6010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6011 fi 6012 ;; 6013 6014newos6*) 6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6016 lt_cv_file_magic_cmd=$FILECMD 6017 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6018 ;; 6019 6020*nto* | *qnx*) 6021 lt_cv_deplibs_check_method=pass_all 6022 ;; 6023 6024openbsd* | bitrig*) 6025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6027 else 6028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6029 fi 6030 ;; 6031 6032osf3* | osf4* | osf5*) 6033 lt_cv_deplibs_check_method=pass_all 6034 ;; 6035 6036rdos*) 6037 lt_cv_deplibs_check_method=pass_all 6038 ;; 6039 6040solaris*) 6041 lt_cv_deplibs_check_method=pass_all 6042 ;; 6043 6044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6045 lt_cv_deplibs_check_method=pass_all 6046 ;; 6047 6048sysv4 | sysv4.3*) 6049 case $host_vendor in 6050 motorola) 6051 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]' 6052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6053 ;; 6054 ncr) 6055 lt_cv_deplibs_check_method=pass_all 6056 ;; 6057 sequent) 6058 lt_cv_file_magic_cmd='/bin/file' 6059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6060 ;; 6061 sni) 6062 lt_cv_file_magic_cmd='/bin/file' 6063 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6064 lt_cv_file_magic_test_file=/lib/libc.so 6065 ;; 6066 siemens) 6067 lt_cv_deplibs_check_method=pass_all 6068 ;; 6069 pc) 6070 lt_cv_deplibs_check_method=pass_all 6071 ;; 6072 esac 6073 ;; 6074 6075tpf*) 6076 lt_cv_deplibs_check_method=pass_all 6077 ;; 6078os2*) 6079 lt_cv_deplibs_check_method=pass_all 6080 ;; 6081esac 6082 6083fi 6084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6085printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6086 6087file_magic_glob= 6088want_nocaseglob=no 6089if test "$build" = "$host"; then 6090 case $host_os in 6091 mingw* | pw32*) 6092 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6093 want_nocaseglob=yes 6094 else 6095 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6096 fi 6097 ;; 6098 esac 6099fi 6100 6101file_magic_cmd=$lt_cv_file_magic_cmd 6102deplibs_check_method=$lt_cv_deplibs_check_method 6103test -z "$deplibs_check_method" && deplibs_check_method=unknown 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126if test -n "$ac_tool_prefix"; then 6127 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6128set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130printf %s "checking for $ac_word... " >&6; } 6131if test ${ac_cv_prog_DLLTOOL+y} 6132then : 6133 printf %s "(cached) " >&6 6134else $as_nop 6135 if test -n "$DLLTOOL"; then 6136 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6137else 6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139for as_dir in $PATH 6140do 6141 IFS=$as_save_IFS 6142 case $as_dir in #((( 6143 '') as_dir=./ ;; 6144 */) ;; 6145 *) as_dir=$as_dir/ ;; 6146 esac 6147 for ac_exec_ext in '' $ac_executable_extensions; do 6148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6149 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6151 break 2 6152 fi 6153done 6154 done 6155IFS=$as_save_IFS 6156 6157fi 6158fi 6159DLLTOOL=$ac_cv_prog_DLLTOOL 6160if test -n "$DLLTOOL"; then 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6162printf "%s\n" "$DLLTOOL" >&6; } 6163else 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6165printf "%s\n" "no" >&6; } 6166fi 6167 6168 6169fi 6170if test -z "$ac_cv_prog_DLLTOOL"; then 6171 ac_ct_DLLTOOL=$DLLTOOL 6172 # Extract the first word of "dlltool", so it can be a program name with args. 6173set dummy dlltool; ac_word=$2 6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6175printf %s "checking for $ac_word... " >&6; } 6176if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6177then : 6178 printf %s "(cached) " >&6 6179else $as_nop 6180 if test -n "$ac_ct_DLLTOOL"; then 6181 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6182else 6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6184for as_dir in $PATH 6185do 6186 IFS=$as_save_IFS 6187 case $as_dir in #((( 6188 '') as_dir=./ ;; 6189 */) ;; 6190 *) as_dir=$as_dir/ ;; 6191 esac 6192 for ac_exec_ext in '' $ac_executable_extensions; do 6193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6194 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6196 break 2 6197 fi 6198done 6199 done 6200IFS=$as_save_IFS 6201 6202fi 6203fi 6204ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6205if test -n "$ac_ct_DLLTOOL"; then 6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6207printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6208else 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6210printf "%s\n" "no" >&6; } 6211fi 6212 6213 if test "x$ac_ct_DLLTOOL" = x; then 6214 DLLTOOL="false" 6215 else 6216 case $cross_compiling:$ac_tool_warned in 6217yes:) 6218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6219printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6220ac_tool_warned=yes ;; 6221esac 6222 DLLTOOL=$ac_ct_DLLTOOL 6223 fi 6224else 6225 DLLTOOL="$ac_cv_prog_DLLTOOL" 6226fi 6227 6228test -z "$DLLTOOL" && DLLTOOL=dlltool 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6240printf %s "checking how to associate runtime and link libraries... " >&6; } 6241if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6242then : 6243 printf %s "(cached) " >&6 6244else $as_nop 6245 lt_cv_sharedlib_from_linklib_cmd='unknown' 6246 6247case $host_os in 6248cygwin* | mingw* | pw32* | cegcc*) 6249 # two different shell functions defined in ltmain.sh; 6250 # decide which one to use based on capabilities of $DLLTOOL 6251 case `$DLLTOOL --help 2>&1` in 6252 *--identify-strict*) 6253 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6254 ;; 6255 *) 6256 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6257 ;; 6258 esac 6259 ;; 6260*) 6261 # fallback: assume linklib IS sharedlib 6262 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6263 ;; 6264esac 6265 6266fi 6267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6268printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6269sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6270test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6271 6272 6273 6274 6275 6276 6277 6278 6279if test -n "$ac_tool_prefix"; then 6280 for ac_prog in ar 6281 do 6282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6283set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6285printf %s "checking for $ac_word... " >&6; } 6286if test ${ac_cv_prog_AR+y} 6287then : 6288 printf %s "(cached) " >&6 6289else $as_nop 6290 if test -n "$AR"; then 6291 ac_cv_prog_AR="$AR" # Let the user override the test. 6292else 6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6294for as_dir in $PATH 6295do 6296 IFS=$as_save_IFS 6297 case $as_dir in #((( 6298 '') as_dir=./ ;; 6299 */) ;; 6300 *) as_dir=$as_dir/ ;; 6301 esac 6302 for ac_exec_ext in '' $ac_executable_extensions; do 6303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6304 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6306 break 2 6307 fi 6308done 6309 done 6310IFS=$as_save_IFS 6311 6312fi 6313fi 6314AR=$ac_cv_prog_AR 6315if test -n "$AR"; then 6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6317printf "%s\n" "$AR" >&6; } 6318else 6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6320printf "%s\n" "no" >&6; } 6321fi 6322 6323 6324 test -n "$AR" && break 6325 done 6326fi 6327if test -z "$AR"; then 6328 ac_ct_AR=$AR 6329 for ac_prog in ar 6330do 6331 # Extract the first word of "$ac_prog", so it can be a program name with args. 6332set dummy $ac_prog; ac_word=$2 6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6334printf %s "checking for $ac_word... " >&6; } 6335if test ${ac_cv_prog_ac_ct_AR+y} 6336then : 6337 printf %s "(cached) " >&6 6338else $as_nop 6339 if test -n "$ac_ct_AR"; then 6340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6341else 6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6343for as_dir in $PATH 6344do 6345 IFS=$as_save_IFS 6346 case $as_dir in #((( 6347 '') as_dir=./ ;; 6348 */) ;; 6349 *) as_dir=$as_dir/ ;; 6350 esac 6351 for ac_exec_ext in '' $ac_executable_extensions; do 6352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6353 ac_cv_prog_ac_ct_AR="$ac_prog" 6354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6355 break 2 6356 fi 6357done 6358 done 6359IFS=$as_save_IFS 6360 6361fi 6362fi 6363ac_ct_AR=$ac_cv_prog_ac_ct_AR 6364if test -n "$ac_ct_AR"; then 6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6366printf "%s\n" "$ac_ct_AR" >&6; } 6367else 6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6369printf "%s\n" "no" >&6; } 6370fi 6371 6372 6373 test -n "$ac_ct_AR" && break 6374done 6375 6376 if test "x$ac_ct_AR" = x; then 6377 AR="false" 6378 else 6379 case $cross_compiling:$ac_tool_warned in 6380yes:) 6381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6382printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6383ac_tool_warned=yes ;; 6384esac 6385 AR=$ac_ct_AR 6386 fi 6387fi 6388 6389: ${AR=ar} 6390 6391 6392 6393 6394 6395 6396# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6397# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6398# higher priority because thats what people were doing historically (setting 6399# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6400# variable obsoleted/removed. 6401 6402test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6403lt_ar_flags=$AR_FLAGS 6404 6405 6406 6407 6408 6409 6410# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6411# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6412 6413 6414 6415 6416 6417 6418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6419printf %s "checking for archiver @FILE support... " >&6; } 6420if test ${lt_cv_ar_at_file+y} 6421then : 6422 printf %s "(cached) " >&6 6423else $as_nop 6424 lt_cv_ar_at_file=no 6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6426/* end confdefs.h. */ 6427 6428int 6429main (void) 6430{ 6431 6432 ; 6433 return 0; 6434} 6435_ACEOF 6436if ac_fn_c_try_compile "$LINENO" 6437then : 6438 echo conftest.$ac_objext > conftest.lst 6439 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6441 (eval $lt_ar_try) 2>&5 6442 ac_status=$? 6443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6444 test $ac_status = 0; } 6445 if test 0 -eq "$ac_status"; then 6446 # Ensure the archiver fails upon bogus file names. 6447 rm -f conftest.$ac_objext libconftest.a 6448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6449 (eval $lt_ar_try) 2>&5 6450 ac_status=$? 6451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6452 test $ac_status = 0; } 6453 if test 0 -ne "$ac_status"; then 6454 lt_cv_ar_at_file=@ 6455 fi 6456 fi 6457 rm -f conftest.* libconftest.a 6458 6459fi 6460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6461 6462fi 6463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6464printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6465 6466if test no = "$lt_cv_ar_at_file"; then 6467 archiver_list_spec= 6468else 6469 archiver_list_spec=$lt_cv_ar_at_file 6470fi 6471 6472 6473 6474 6475 6476 6477 6478if test -n "$ac_tool_prefix"; then 6479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6480set dummy ${ac_tool_prefix}strip; ac_word=$2 6481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6482printf %s "checking for $ac_word... " >&6; } 6483if test ${ac_cv_prog_STRIP+y} 6484then : 6485 printf %s "(cached) " >&6 6486else $as_nop 6487 if test -n "$STRIP"; then 6488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6489else 6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6491for as_dir in $PATH 6492do 6493 IFS=$as_save_IFS 6494 case $as_dir in #((( 6495 '') as_dir=./ ;; 6496 */) ;; 6497 *) as_dir=$as_dir/ ;; 6498 esac 6499 for ac_exec_ext in '' $ac_executable_extensions; do 6500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6501 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6503 break 2 6504 fi 6505done 6506 done 6507IFS=$as_save_IFS 6508 6509fi 6510fi 6511STRIP=$ac_cv_prog_STRIP 6512if test -n "$STRIP"; then 6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6514printf "%s\n" "$STRIP" >&6; } 6515else 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6517printf "%s\n" "no" >&6; } 6518fi 6519 6520 6521fi 6522if test -z "$ac_cv_prog_STRIP"; then 6523 ac_ct_STRIP=$STRIP 6524 # Extract the first word of "strip", so it can be a program name with args. 6525set dummy strip; ac_word=$2 6526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527printf %s "checking for $ac_word... " >&6; } 6528if test ${ac_cv_prog_ac_ct_STRIP+y} 6529then : 6530 printf %s "(cached) " >&6 6531else $as_nop 6532 if test -n "$ac_ct_STRIP"; then 6533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6534else 6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6536for as_dir in $PATH 6537do 6538 IFS=$as_save_IFS 6539 case $as_dir in #((( 6540 '') as_dir=./ ;; 6541 */) ;; 6542 *) as_dir=$as_dir/ ;; 6543 esac 6544 for ac_exec_ext in '' $ac_executable_extensions; do 6545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6546 ac_cv_prog_ac_ct_STRIP="strip" 6547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6548 break 2 6549 fi 6550done 6551 done 6552IFS=$as_save_IFS 6553 6554fi 6555fi 6556ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6557if test -n "$ac_ct_STRIP"; then 6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6559printf "%s\n" "$ac_ct_STRIP" >&6; } 6560else 6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6562printf "%s\n" "no" >&6; } 6563fi 6564 6565 if test "x$ac_ct_STRIP" = x; then 6566 STRIP=":" 6567 else 6568 case $cross_compiling:$ac_tool_warned in 6569yes:) 6570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6571printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6572ac_tool_warned=yes ;; 6573esac 6574 STRIP=$ac_ct_STRIP 6575 fi 6576else 6577 STRIP="$ac_cv_prog_STRIP" 6578fi 6579 6580test -z "$STRIP" && STRIP=: 6581 6582 6583 6584 6585 6586 6587if test -n "$ac_tool_prefix"; then 6588 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6589set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6591printf %s "checking for $ac_word... " >&6; } 6592if test ${ac_cv_prog_RANLIB+y} 6593then : 6594 printf %s "(cached) " >&6 6595else $as_nop 6596 if test -n "$RANLIB"; then 6597 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6598else 6599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6600for as_dir in $PATH 6601do 6602 IFS=$as_save_IFS 6603 case $as_dir in #((( 6604 '') as_dir=./ ;; 6605 */) ;; 6606 *) as_dir=$as_dir/ ;; 6607 esac 6608 for ac_exec_ext in '' $ac_executable_extensions; do 6609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6610 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6612 break 2 6613 fi 6614done 6615 done 6616IFS=$as_save_IFS 6617 6618fi 6619fi 6620RANLIB=$ac_cv_prog_RANLIB 6621if test -n "$RANLIB"; then 6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6623printf "%s\n" "$RANLIB" >&6; } 6624else 6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6626printf "%s\n" "no" >&6; } 6627fi 6628 6629 6630fi 6631if test -z "$ac_cv_prog_RANLIB"; then 6632 ac_ct_RANLIB=$RANLIB 6633 # Extract the first word of "ranlib", so it can be a program name with args. 6634set dummy ranlib; ac_word=$2 6635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6636printf %s "checking for $ac_word... " >&6; } 6637if test ${ac_cv_prog_ac_ct_RANLIB+y} 6638then : 6639 printf %s "(cached) " >&6 6640else $as_nop 6641 if test -n "$ac_ct_RANLIB"; then 6642 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6643else 6644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6645for as_dir in $PATH 6646do 6647 IFS=$as_save_IFS 6648 case $as_dir in #((( 6649 '') as_dir=./ ;; 6650 */) ;; 6651 *) as_dir=$as_dir/ ;; 6652 esac 6653 for ac_exec_ext in '' $ac_executable_extensions; do 6654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6655 ac_cv_prog_ac_ct_RANLIB="ranlib" 6656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6657 break 2 6658 fi 6659done 6660 done 6661IFS=$as_save_IFS 6662 6663fi 6664fi 6665ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6666if test -n "$ac_ct_RANLIB"; then 6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6668printf "%s\n" "$ac_ct_RANLIB" >&6; } 6669else 6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671printf "%s\n" "no" >&6; } 6672fi 6673 6674 if test "x$ac_ct_RANLIB" = x; then 6675 RANLIB=":" 6676 else 6677 case $cross_compiling:$ac_tool_warned in 6678yes:) 6679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6680printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6681ac_tool_warned=yes ;; 6682esac 6683 RANLIB=$ac_ct_RANLIB 6684 fi 6685else 6686 RANLIB="$ac_cv_prog_RANLIB" 6687fi 6688 6689test -z "$RANLIB" && RANLIB=: 6690 6691 6692 6693 6694 6695 6696# Determine commands to create old-style static archives. 6697old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6698old_postinstall_cmds='chmod 644 $oldlib' 6699old_postuninstall_cmds= 6700 6701if test -n "$RANLIB"; then 6702 case $host_os in 6703 bitrig* | openbsd*) 6704 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6705 ;; 6706 *) 6707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6708 ;; 6709 esac 6710 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6711fi 6712 6713case $host_os in 6714 darwin*) 6715 lock_old_archive_extraction=yes ;; 6716 *) 6717 lock_old_archive_extraction=no ;; 6718esac 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758# If no C compiler was specified, use CC. 6759LTCC=${LTCC-"$CC"} 6760 6761# If no C compiler flags were specified, use CFLAGS. 6762LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6763 6764# Allow CC to be a program name with arguments. 6765compiler=$CC 6766 6767 6768# Check for command to grab the raw symbol name followed by C symbol from nm. 6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6770printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6771if test ${lt_cv_sys_global_symbol_pipe+y} 6772then : 6773 printf %s "(cached) " >&6 6774else $as_nop 6775 6776# These are sane defaults that work on at least a few old systems. 6777# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6778 6779# Character class describing NM global symbol codes. 6780symcode='[BCDEGRST]' 6781 6782# Regexp to match symbols that can be accessed directly from C. 6783sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6784 6785# Define system-specific variables. 6786case $host_os in 6787aix*) 6788 symcode='[BCDT]' 6789 ;; 6790cygwin* | mingw* | pw32* | cegcc*) 6791 symcode='[ABCDGISTW]' 6792 ;; 6793hpux*) 6794 if test ia64 = "$host_cpu"; then 6795 symcode='[ABCDEGRST]' 6796 fi 6797 ;; 6798irix* | nonstopux*) 6799 symcode='[BCDEGRST]' 6800 ;; 6801osf*) 6802 symcode='[BCDEGQRST]' 6803 ;; 6804solaris*) 6805 symcode='[BDRT]' 6806 ;; 6807sco3.2v5*) 6808 symcode='[DT]' 6809 ;; 6810sysv4.2uw2*) 6811 symcode='[DT]' 6812 ;; 6813sysv5* | sco5v6* | unixware* | OpenUNIX*) 6814 symcode='[ABDT]' 6815 ;; 6816sysv4) 6817 symcode='[DFNSTU]' 6818 ;; 6819esac 6820 6821# If we're using GNU nm, then use its standard symbol codes. 6822case `$NM -V 2>&1` in 6823*GNU* | *'with BFD'*) 6824 symcode='[ABCDGIRSTW]' ;; 6825esac 6826 6827if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6828 # Gets list of data symbols to import. 6829 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6830 # Adjust the below global symbol transforms to fixup imported variables. 6831 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6832 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6833 lt_c_name_lib_hook="\ 6834 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6835 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6836else 6837 # Disable hooks by default. 6838 lt_cv_sys_global_symbol_to_import= 6839 lt_cdecl_hook= 6840 lt_c_name_hook= 6841 lt_c_name_lib_hook= 6842fi 6843 6844# Transform an extracted symbol line into a proper C declaration. 6845# Some systems (esp. on ia64) link data and code symbols differently, 6846# so use this general approach. 6847lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6848$lt_cdecl_hook\ 6849" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6850" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6851 6852# Transform an extracted symbol line into symbol name and symbol address 6853lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6854$lt_c_name_hook\ 6855" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6856" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6857 6858# Transform an extracted symbol line into symbol name with lib prefix and 6859# symbol address. 6860lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6861$lt_c_name_lib_hook\ 6862" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6863" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6864" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6865 6866# Handle CRLF in mingw tool chain 6867opt_cr= 6868case $build_os in 6869mingw*) 6870 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6871 ;; 6872esac 6873 6874# Try without a prefix underscore, then with it. 6875for ac_symprfx in "" "_"; do 6876 6877 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6878 symxfrm="\\1 $ac_symprfx\\2 \\2" 6879 6880 # Write the raw and C identifiers. 6881 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6882 # Fake it for dumpbin and say T for any non-static function, 6883 # D for any global variable and I for any imported variable. 6884 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6885 # which start with @ or ?. 6886 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6887" {last_section=section; section=\$ 3};"\ 6888" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6889" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6890" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6891" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6892" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6893" \$ 0!~/External *\|/{next};"\ 6894" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6895" {if(hide[section]) next};"\ 6896" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6897" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6898" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6899" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6900" ' prfx=^$ac_symprfx" 6901 else 6902 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6903 fi 6904 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6905 6906 # Check to see that the pipe works correctly. 6907 pipe_works=no 6908 6909 rm -f conftest* 6910 cat > conftest.$ac_ext <<_LT_EOF 6911#ifdef __cplusplus 6912extern "C" { 6913#endif 6914char nm_test_var; 6915void nm_test_func(void); 6916void nm_test_func(void){} 6917#ifdef __cplusplus 6918} 6919#endif 6920int main(){nm_test_var='a';nm_test_func();return(0);} 6921_LT_EOF 6922 6923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6924 (eval $ac_compile) 2>&5 6925 ac_status=$? 6926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6927 test $ac_status = 0; }; then 6928 # Now try to grab the symbols. 6929 nlist=conftest.nm 6930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6931 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6932 ac_status=$? 6933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6934 test $ac_status = 0; } && test -s "$nlist"; then 6935 # Try sorting and uniquifying the output. 6936 if sort "$nlist" | uniq > "$nlist"T; then 6937 mv -f "$nlist"T "$nlist" 6938 else 6939 rm -f "$nlist"T 6940 fi 6941 6942 # Make sure that we snagged all the symbols we need. 6943 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6944 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6945 cat <<_LT_EOF > conftest.$ac_ext 6946/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6947#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6948/* DATA imports from DLLs on WIN32 can't be const, because runtime 6949 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6950# define LT_DLSYM_CONST 6951#elif defined __osf__ 6952/* This system does not cope well with relocations in const data. */ 6953# define LT_DLSYM_CONST 6954#else 6955# define LT_DLSYM_CONST const 6956#endif 6957 6958#ifdef __cplusplus 6959extern "C" { 6960#endif 6961 6962_LT_EOF 6963 # Now generate the symbol file. 6964 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6965 6966 cat <<_LT_EOF >> conftest.$ac_ext 6967 6968/* The mapping between symbol names and symbols. */ 6969LT_DLSYM_CONST struct { 6970 const char *name; 6971 void *address; 6972} 6973lt__PROGRAM__LTX_preloaded_symbols[] = 6974{ 6975 { "@PROGRAM@", (void *) 0 }, 6976_LT_EOF 6977 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6978 cat <<\_LT_EOF >> conftest.$ac_ext 6979 {0, (void *) 0} 6980}; 6981 6982/* This works around a problem in FreeBSD linker */ 6983#ifdef FREEBSD_WORKAROUND 6984static const void *lt_preloaded_setup() { 6985 return lt__PROGRAM__LTX_preloaded_symbols; 6986} 6987#endif 6988 6989#ifdef __cplusplus 6990} 6991#endif 6992_LT_EOF 6993 # Now try linking the two files. 6994 mv conftest.$ac_objext conftstm.$ac_objext 6995 lt_globsym_save_LIBS=$LIBS 6996 lt_globsym_save_CFLAGS=$CFLAGS 6997 LIBS=conftstm.$ac_objext 6998 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7000 (eval $ac_link) 2>&5 7001 ac_status=$? 7002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7003 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7004 pipe_works=yes 7005 fi 7006 LIBS=$lt_globsym_save_LIBS 7007 CFLAGS=$lt_globsym_save_CFLAGS 7008 else 7009 echo "cannot find nm_test_func in $nlist" >&5 7010 fi 7011 else 7012 echo "cannot find nm_test_var in $nlist" >&5 7013 fi 7014 else 7015 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7016 fi 7017 else 7018 echo "$progname: failed program was:" >&5 7019 cat conftest.$ac_ext >&5 7020 fi 7021 rm -rf conftest* conftst* 7022 7023 # Do not use the global_symbol_pipe unless it works. 7024 if test yes = "$pipe_works"; then 7025 break 7026 else 7027 lt_cv_sys_global_symbol_pipe= 7028 fi 7029done 7030 7031fi 7032 7033if test -z "$lt_cv_sys_global_symbol_pipe"; then 7034 lt_cv_sys_global_symbol_to_cdecl= 7035fi 7036if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7038printf "%s\n" "failed" >&6; } 7039else 7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7041printf "%s\n" "ok" >&6; } 7042fi 7043 7044# Response file support. 7045if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7046 nm_file_list_spec='@' 7047elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7048 nm_file_list_spec='@' 7049fi 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7088printf %s "checking for sysroot... " >&6; } 7089 7090# Check whether --with-sysroot was given. 7091if test ${with_sysroot+y} 7092then : 7093 withval=$with_sysroot; 7094else $as_nop 7095 with_sysroot=no 7096fi 7097 7098 7099lt_sysroot= 7100case $with_sysroot in #( 7101 yes) 7102 if test yes = "$GCC"; then 7103 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7104 fi 7105 ;; #( 7106 /*) 7107 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7108 ;; #( 7109 no|'') 7110 ;; #( 7111 *) 7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7113printf "%s\n" "$with_sysroot" >&6; } 7114 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7115 ;; 7116esac 7117 7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7119printf "%s\n" "${lt_sysroot:-no}" >&6; } 7120 7121 7122 7123 7124 7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7126printf %s "checking for a working dd... " >&6; } 7127if test ${ac_cv_path_lt_DD+y} 7128then : 7129 printf %s "(cached) " >&6 7130else $as_nop 7131 printf 0123456789abcdef0123456789abcdef >conftest.i 7132cat conftest.i conftest.i >conftest2.i 7133: ${lt_DD:=$DD} 7134if test -z "$lt_DD"; then 7135 ac_path_lt_DD_found=false 7136 # Loop through the user's path and test for each of PROGNAME-LIST 7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 case $as_dir in #((( 7142 '') as_dir=./ ;; 7143 */) ;; 7144 *) as_dir=$as_dir/ ;; 7145 esac 7146 for ac_prog in dd 7147 do 7148 for ac_exec_ext in '' $ac_executable_extensions; do 7149 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7150 as_fn_executable_p "$ac_path_lt_DD" || continue 7151if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7152 cmp -s conftest.i conftest.out \ 7153 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7154fi 7155 $ac_path_lt_DD_found && break 3 7156 done 7157 done 7158 done 7159IFS=$as_save_IFS 7160 if test -z "$ac_cv_path_lt_DD"; then 7161 : 7162 fi 7163else 7164 ac_cv_path_lt_DD=$lt_DD 7165fi 7166 7167rm -f conftest.i conftest2.i conftest.out 7168fi 7169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7170printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7171 7172 7173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7174printf %s "checking how to truncate binary pipes... " >&6; } 7175if test ${lt_cv_truncate_bin+y} 7176then : 7177 printf %s "(cached) " >&6 7178else $as_nop 7179 printf 0123456789abcdef0123456789abcdef >conftest.i 7180cat conftest.i conftest.i >conftest2.i 7181lt_cv_truncate_bin= 7182if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7183 cmp -s conftest.i conftest.out \ 7184 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7185fi 7186rm -f conftest.i conftest2.i conftest.out 7187test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7188fi 7189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7190printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7191 7192 7193 7194 7195 7196 7197 7198# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7199func_cc_basename () 7200{ 7201 for cc_temp in $*""; do 7202 case $cc_temp in 7203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7205 \-*) ;; 7206 *) break;; 7207 esac 7208 done 7209 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7210} 7211 7212# Check whether --enable-libtool-lock was given. 7213if test ${enable_libtool_lock+y} 7214then : 7215 enableval=$enable_libtool_lock; 7216fi 7217 7218test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7219 7220# Some flags need to be propagated to the compiler or linker for good 7221# libtool support. 7222case $host in 7223ia64-*-hpux*) 7224 # Find out what ABI is being produced by ac_compile, and set mode 7225 # options accordingly. 7226 echo 'int i;' > conftest.$ac_ext 7227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7228 (eval $ac_compile) 2>&5 7229 ac_status=$? 7230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7231 test $ac_status = 0; }; then 7232 case `$FILECMD conftest.$ac_objext` in 7233 *ELF-32*) 7234 HPUX_IA64_MODE=32 7235 ;; 7236 *ELF-64*) 7237 HPUX_IA64_MODE=64 7238 ;; 7239 esac 7240 fi 7241 rm -rf conftest* 7242 ;; 7243*-*-irix6*) 7244 # Find out what ABI is being produced by ac_compile, and set linker 7245 # options accordingly. 7246 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7248 (eval $ac_compile) 2>&5 7249 ac_status=$? 7250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7251 test $ac_status = 0; }; then 7252 if test yes = "$lt_cv_prog_gnu_ld"; then 7253 case `$FILECMD conftest.$ac_objext` in 7254 *32-bit*) 7255 LD="${LD-ld} -melf32bsmip" 7256 ;; 7257 *N32*) 7258 LD="${LD-ld} -melf32bmipn32" 7259 ;; 7260 *64-bit*) 7261 LD="${LD-ld} -melf64bmip" 7262 ;; 7263 esac 7264 else 7265 case `$FILECMD conftest.$ac_objext` in 7266 *32-bit*) 7267 LD="${LD-ld} -32" 7268 ;; 7269 *N32*) 7270 LD="${LD-ld} -n32" 7271 ;; 7272 *64-bit*) 7273 LD="${LD-ld} -64" 7274 ;; 7275 esac 7276 fi 7277 fi 7278 rm -rf conftest* 7279 ;; 7280 7281mips64*-*linux*) 7282 # Find out what ABI is being produced by ac_compile, and set linker 7283 # options accordingly. 7284 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7286 (eval $ac_compile) 2>&5 7287 ac_status=$? 7288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7289 test $ac_status = 0; }; then 7290 emul=elf 7291 case `$FILECMD conftest.$ac_objext` in 7292 *32-bit*) 7293 emul="${emul}32" 7294 ;; 7295 *64-bit*) 7296 emul="${emul}64" 7297 ;; 7298 esac 7299 case `$FILECMD conftest.$ac_objext` in 7300 *MSB*) 7301 emul="${emul}btsmip" 7302 ;; 7303 *LSB*) 7304 emul="${emul}ltsmip" 7305 ;; 7306 esac 7307 case `$FILECMD conftest.$ac_objext` in 7308 *N32*) 7309 emul="${emul}n32" 7310 ;; 7311 esac 7312 LD="${LD-ld} -m $emul" 7313 fi 7314 rm -rf conftest* 7315 ;; 7316 7317x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7318s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7319 # Find out what ABI is being produced by ac_compile, and set linker 7320 # options accordingly. Note that the listed cases only cover the 7321 # situations where additional linker options are needed (such as when 7322 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7323 # vice versa); the common cases where no linker options are needed do 7324 # not appear in the list. 7325 echo 'int i;' > conftest.$ac_ext 7326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7327 (eval $ac_compile) 2>&5 7328 ac_status=$? 7329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7330 test $ac_status = 0; }; then 7331 case `$FILECMD conftest.o` in 7332 *32-bit*) 7333 case $host in 7334 x86_64-*kfreebsd*-gnu) 7335 LD="${LD-ld} -m elf_i386_fbsd" 7336 ;; 7337 x86_64-*linux*) 7338 case `$FILECMD conftest.o` in 7339 *x86-64*) 7340 LD="${LD-ld} -m elf32_x86_64" 7341 ;; 7342 *) 7343 LD="${LD-ld} -m elf_i386" 7344 ;; 7345 esac 7346 ;; 7347 powerpc64le-*linux*) 7348 LD="${LD-ld} -m elf32lppclinux" 7349 ;; 7350 powerpc64-*linux*) 7351 LD="${LD-ld} -m elf32ppclinux" 7352 ;; 7353 s390x-*linux*) 7354 LD="${LD-ld} -m elf_s390" 7355 ;; 7356 sparc64-*linux*) 7357 LD="${LD-ld} -m elf32_sparc" 7358 ;; 7359 esac 7360 ;; 7361 *64-bit*) 7362 case $host in 7363 x86_64-*kfreebsd*-gnu) 7364 LD="${LD-ld} -m elf_x86_64_fbsd" 7365 ;; 7366 x86_64-*linux*) 7367 LD="${LD-ld} -m elf_x86_64" 7368 ;; 7369 powerpcle-*linux*) 7370 LD="${LD-ld} -m elf64lppc" 7371 ;; 7372 powerpc-*linux*) 7373 LD="${LD-ld} -m elf64ppc" 7374 ;; 7375 s390*-*linux*|s390*-*tpf*) 7376 LD="${LD-ld} -m elf64_s390" 7377 ;; 7378 sparc*-*linux*) 7379 LD="${LD-ld} -m elf64_sparc" 7380 ;; 7381 esac 7382 ;; 7383 esac 7384 fi 7385 rm -rf conftest* 7386 ;; 7387 7388*-*-sco3.2v5*) 7389 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7390 SAVE_CFLAGS=$CFLAGS 7391 CFLAGS="$CFLAGS -belf" 7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7393printf %s "checking whether the C compiler needs -belf... " >&6; } 7394if test ${lt_cv_cc_needs_belf+y} 7395then : 7396 printf %s "(cached) " >&6 7397else $as_nop 7398 ac_ext=c 7399ac_cpp='$CPP $CPPFLAGS' 7400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7402ac_compiler_gnu=$ac_cv_c_compiler_gnu 7403 7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405/* end confdefs.h. */ 7406 7407int 7408main (void) 7409{ 7410 7411 ; 7412 return 0; 7413} 7414_ACEOF 7415if ac_fn_c_try_link "$LINENO" 7416then : 7417 lt_cv_cc_needs_belf=yes 7418else $as_nop 7419 lt_cv_cc_needs_belf=no 7420fi 7421rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7422 conftest$ac_exeext conftest.$ac_ext 7423 ac_ext=c 7424ac_cpp='$CPP $CPPFLAGS' 7425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7427ac_compiler_gnu=$ac_cv_c_compiler_gnu 7428 7429fi 7430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7431printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7432 if test yes != "$lt_cv_cc_needs_belf"; then 7433 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7434 CFLAGS=$SAVE_CFLAGS 7435 fi 7436 ;; 7437*-*solaris*) 7438 # Find out what ABI is being produced by ac_compile, and set linker 7439 # options accordingly. 7440 echo 'int i;' > conftest.$ac_ext 7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7442 (eval $ac_compile) 2>&5 7443 ac_status=$? 7444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7445 test $ac_status = 0; }; then 7446 case `$FILECMD conftest.o` in 7447 *64-bit*) 7448 case $lt_cv_prog_gnu_ld in 7449 yes*) 7450 case $host in 7451 i?86-*-solaris*|x86_64-*-solaris*) 7452 LD="${LD-ld} -m elf_x86_64" 7453 ;; 7454 sparc*-*-solaris*) 7455 LD="${LD-ld} -m elf64_sparc" 7456 ;; 7457 esac 7458 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7459 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7460 LD=${LD-ld}_sol2 7461 fi 7462 ;; 7463 *) 7464 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7465 LD="${LD-ld} -64" 7466 fi 7467 ;; 7468 esac 7469 ;; 7470 esac 7471 fi 7472 rm -rf conftest* 7473 ;; 7474esac 7475 7476need_locks=$enable_libtool_lock 7477 7478if test -n "$ac_tool_prefix"; then 7479 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7480set dummy ${ac_tool_prefix}mt; ac_word=$2 7481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7482printf %s "checking for $ac_word... " >&6; } 7483if test ${ac_cv_prog_MANIFEST_TOOL+y} 7484then : 7485 printf %s "(cached) " >&6 7486else $as_nop 7487 if test -n "$MANIFEST_TOOL"; then 7488 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7489else 7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491for as_dir in $PATH 7492do 7493 IFS=$as_save_IFS 7494 case $as_dir in #((( 7495 '') as_dir=./ ;; 7496 */) ;; 7497 *) as_dir=$as_dir/ ;; 7498 esac 7499 for ac_exec_ext in '' $ac_executable_extensions; do 7500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7501 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7503 break 2 7504 fi 7505done 7506 done 7507IFS=$as_save_IFS 7508 7509fi 7510fi 7511MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7512if test -n "$MANIFEST_TOOL"; then 7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7514printf "%s\n" "$MANIFEST_TOOL" >&6; } 7515else 7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7517printf "%s\n" "no" >&6; } 7518fi 7519 7520 7521fi 7522if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7523 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7524 # Extract the first word of "mt", so it can be a program name with args. 7525set dummy mt; ac_word=$2 7526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7527printf %s "checking for $ac_word... " >&6; } 7528if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7529then : 7530 printf %s "(cached) " >&6 7531else $as_nop 7532 if test -n "$ac_ct_MANIFEST_TOOL"; then 7533 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7534else 7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7536for as_dir in $PATH 7537do 7538 IFS=$as_save_IFS 7539 case $as_dir in #((( 7540 '') as_dir=./ ;; 7541 */) ;; 7542 *) as_dir=$as_dir/ ;; 7543 esac 7544 for ac_exec_ext in '' $ac_executable_extensions; do 7545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7546 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7548 break 2 7549 fi 7550done 7551 done 7552IFS=$as_save_IFS 7553 7554fi 7555fi 7556ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7557if test -n "$ac_ct_MANIFEST_TOOL"; then 7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7559printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7560else 7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7562printf "%s\n" "no" >&6; } 7563fi 7564 7565 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7566 MANIFEST_TOOL=":" 7567 else 7568 case $cross_compiling:$ac_tool_warned in 7569yes:) 7570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7571printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7572ac_tool_warned=yes ;; 7573esac 7574 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7575 fi 7576else 7577 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7578fi 7579 7580test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7582printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7583if test ${lt_cv_path_mainfest_tool+y} 7584then : 7585 printf %s "(cached) " >&6 7586else $as_nop 7587 lt_cv_path_mainfest_tool=no 7588 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7589 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7590 cat conftest.err >&5 7591 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7592 lt_cv_path_mainfest_tool=yes 7593 fi 7594 rm -f conftest* 7595fi 7596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7597printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7598if test yes != "$lt_cv_path_mainfest_tool"; then 7599 MANIFEST_TOOL=: 7600fi 7601 7602 7603 7604 7605 7606 7607 case $host_os in 7608 rhapsody* | darwin*) 7609 if test -n "$ac_tool_prefix"; then 7610 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7611set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7613printf %s "checking for $ac_word... " >&6; } 7614if test ${ac_cv_prog_DSYMUTIL+y} 7615then : 7616 printf %s "(cached) " >&6 7617else $as_nop 7618 if test -n "$DSYMUTIL"; then 7619 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7620else 7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7622for as_dir in $PATH 7623do 7624 IFS=$as_save_IFS 7625 case $as_dir in #((( 7626 '') as_dir=./ ;; 7627 */) ;; 7628 *) as_dir=$as_dir/ ;; 7629 esac 7630 for ac_exec_ext in '' $ac_executable_extensions; do 7631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7632 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7634 break 2 7635 fi 7636done 7637 done 7638IFS=$as_save_IFS 7639 7640fi 7641fi 7642DSYMUTIL=$ac_cv_prog_DSYMUTIL 7643if test -n "$DSYMUTIL"; then 7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7645printf "%s\n" "$DSYMUTIL" >&6; } 7646else 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7648printf "%s\n" "no" >&6; } 7649fi 7650 7651 7652fi 7653if test -z "$ac_cv_prog_DSYMUTIL"; then 7654 ac_ct_DSYMUTIL=$DSYMUTIL 7655 # Extract the first word of "dsymutil", so it can be a program name with args. 7656set dummy dsymutil; ac_word=$2 7657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7658printf %s "checking for $ac_word... " >&6; } 7659if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7660then : 7661 printf %s "(cached) " >&6 7662else $as_nop 7663 if test -n "$ac_ct_DSYMUTIL"; then 7664 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7665else 7666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7667for as_dir in $PATH 7668do 7669 IFS=$as_save_IFS 7670 case $as_dir in #((( 7671 '') as_dir=./ ;; 7672 */) ;; 7673 *) as_dir=$as_dir/ ;; 7674 esac 7675 for ac_exec_ext in '' $ac_executable_extensions; do 7676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7677 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7679 break 2 7680 fi 7681done 7682 done 7683IFS=$as_save_IFS 7684 7685fi 7686fi 7687ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7688if test -n "$ac_ct_DSYMUTIL"; then 7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7690printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7691else 7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7693printf "%s\n" "no" >&6; } 7694fi 7695 7696 if test "x$ac_ct_DSYMUTIL" = x; then 7697 DSYMUTIL=":" 7698 else 7699 case $cross_compiling:$ac_tool_warned in 7700yes:) 7701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7702printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7703ac_tool_warned=yes ;; 7704esac 7705 DSYMUTIL=$ac_ct_DSYMUTIL 7706 fi 7707else 7708 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7709fi 7710 7711 if test -n "$ac_tool_prefix"; then 7712 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7713set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7715printf %s "checking for $ac_word... " >&6; } 7716if test ${ac_cv_prog_NMEDIT+y} 7717then : 7718 printf %s "(cached) " >&6 7719else $as_nop 7720 if test -n "$NMEDIT"; then 7721 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7722else 7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7724for as_dir in $PATH 7725do 7726 IFS=$as_save_IFS 7727 case $as_dir in #((( 7728 '') as_dir=./ ;; 7729 */) ;; 7730 *) as_dir=$as_dir/ ;; 7731 esac 7732 for ac_exec_ext in '' $ac_executable_extensions; do 7733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7734 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7736 break 2 7737 fi 7738done 7739 done 7740IFS=$as_save_IFS 7741 7742fi 7743fi 7744NMEDIT=$ac_cv_prog_NMEDIT 7745if test -n "$NMEDIT"; then 7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7747printf "%s\n" "$NMEDIT" >&6; } 7748else 7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7750printf "%s\n" "no" >&6; } 7751fi 7752 7753 7754fi 7755if test -z "$ac_cv_prog_NMEDIT"; then 7756 ac_ct_NMEDIT=$NMEDIT 7757 # Extract the first word of "nmedit", so it can be a program name with args. 7758set dummy nmedit; ac_word=$2 7759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7760printf %s "checking for $ac_word... " >&6; } 7761if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7762then : 7763 printf %s "(cached) " >&6 7764else $as_nop 7765 if test -n "$ac_ct_NMEDIT"; then 7766 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7767else 7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7769for as_dir in $PATH 7770do 7771 IFS=$as_save_IFS 7772 case $as_dir in #((( 7773 '') as_dir=./ ;; 7774 */) ;; 7775 *) as_dir=$as_dir/ ;; 7776 esac 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7779 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783done 7784 done 7785IFS=$as_save_IFS 7786 7787fi 7788fi 7789ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7790if test -n "$ac_ct_NMEDIT"; then 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7792printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7793else 7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7795printf "%s\n" "no" >&6; } 7796fi 7797 7798 if test "x$ac_ct_NMEDIT" = x; then 7799 NMEDIT=":" 7800 else 7801 case $cross_compiling:$ac_tool_warned in 7802yes:) 7803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7804printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7805ac_tool_warned=yes ;; 7806esac 7807 NMEDIT=$ac_ct_NMEDIT 7808 fi 7809else 7810 NMEDIT="$ac_cv_prog_NMEDIT" 7811fi 7812 7813 if test -n "$ac_tool_prefix"; then 7814 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7815set dummy ${ac_tool_prefix}lipo; ac_word=$2 7816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7817printf %s "checking for $ac_word... " >&6; } 7818if test ${ac_cv_prog_LIPO+y} 7819then : 7820 printf %s "(cached) " >&6 7821else $as_nop 7822 if test -n "$LIPO"; then 7823 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7824else 7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7826for as_dir in $PATH 7827do 7828 IFS=$as_save_IFS 7829 case $as_dir in #((( 7830 '') as_dir=./ ;; 7831 */) ;; 7832 *) as_dir=$as_dir/ ;; 7833 esac 7834 for ac_exec_ext in '' $ac_executable_extensions; do 7835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7836 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7838 break 2 7839 fi 7840done 7841 done 7842IFS=$as_save_IFS 7843 7844fi 7845fi 7846LIPO=$ac_cv_prog_LIPO 7847if test -n "$LIPO"; then 7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7849printf "%s\n" "$LIPO" >&6; } 7850else 7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7852printf "%s\n" "no" >&6; } 7853fi 7854 7855 7856fi 7857if test -z "$ac_cv_prog_LIPO"; then 7858 ac_ct_LIPO=$LIPO 7859 # Extract the first word of "lipo", so it can be a program name with args. 7860set dummy lipo; ac_word=$2 7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7862printf %s "checking for $ac_word... " >&6; } 7863if test ${ac_cv_prog_ac_ct_LIPO+y} 7864then : 7865 printf %s "(cached) " >&6 7866else $as_nop 7867 if test -n "$ac_ct_LIPO"; then 7868 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7869else 7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7871for as_dir in $PATH 7872do 7873 IFS=$as_save_IFS 7874 case $as_dir in #((( 7875 '') as_dir=./ ;; 7876 */) ;; 7877 *) as_dir=$as_dir/ ;; 7878 esac 7879 for ac_exec_ext in '' $ac_executable_extensions; do 7880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7881 ac_cv_prog_ac_ct_LIPO="lipo" 7882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7883 break 2 7884 fi 7885done 7886 done 7887IFS=$as_save_IFS 7888 7889fi 7890fi 7891ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7892if test -n "$ac_ct_LIPO"; then 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7894printf "%s\n" "$ac_ct_LIPO" >&6; } 7895else 7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7897printf "%s\n" "no" >&6; } 7898fi 7899 7900 if test "x$ac_ct_LIPO" = x; then 7901 LIPO=":" 7902 else 7903 case $cross_compiling:$ac_tool_warned in 7904yes:) 7905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7907ac_tool_warned=yes ;; 7908esac 7909 LIPO=$ac_ct_LIPO 7910 fi 7911else 7912 LIPO="$ac_cv_prog_LIPO" 7913fi 7914 7915 if test -n "$ac_tool_prefix"; then 7916 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7917set dummy ${ac_tool_prefix}otool; ac_word=$2 7918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7919printf %s "checking for $ac_word... " >&6; } 7920if test ${ac_cv_prog_OTOOL+y} 7921then : 7922 printf %s "(cached) " >&6 7923else $as_nop 7924 if test -n "$OTOOL"; then 7925 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7926else 7927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7928for as_dir in $PATH 7929do 7930 IFS=$as_save_IFS 7931 case $as_dir in #((( 7932 '') as_dir=./ ;; 7933 */) ;; 7934 *) as_dir=$as_dir/ ;; 7935 esac 7936 for ac_exec_ext in '' $ac_executable_extensions; do 7937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7938 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7940 break 2 7941 fi 7942done 7943 done 7944IFS=$as_save_IFS 7945 7946fi 7947fi 7948OTOOL=$ac_cv_prog_OTOOL 7949if test -n "$OTOOL"; then 7950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7951printf "%s\n" "$OTOOL" >&6; } 7952else 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7954printf "%s\n" "no" >&6; } 7955fi 7956 7957 7958fi 7959if test -z "$ac_cv_prog_OTOOL"; then 7960 ac_ct_OTOOL=$OTOOL 7961 # Extract the first word of "otool", so it can be a program name with args. 7962set dummy otool; ac_word=$2 7963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7964printf %s "checking for $ac_word... " >&6; } 7965if test ${ac_cv_prog_ac_ct_OTOOL+y} 7966then : 7967 printf %s "(cached) " >&6 7968else $as_nop 7969 if test -n "$ac_ct_OTOOL"; then 7970 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7971else 7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7973for as_dir in $PATH 7974do 7975 IFS=$as_save_IFS 7976 case $as_dir in #((( 7977 '') as_dir=./ ;; 7978 */) ;; 7979 *) as_dir=$as_dir/ ;; 7980 esac 7981 for ac_exec_ext in '' $ac_executable_extensions; do 7982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7983 ac_cv_prog_ac_ct_OTOOL="otool" 7984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7985 break 2 7986 fi 7987done 7988 done 7989IFS=$as_save_IFS 7990 7991fi 7992fi 7993ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7994if test -n "$ac_ct_OTOOL"; then 7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7996printf "%s\n" "$ac_ct_OTOOL" >&6; } 7997else 7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7999printf "%s\n" "no" >&6; } 8000fi 8001 8002 if test "x$ac_ct_OTOOL" = x; then 8003 OTOOL=":" 8004 else 8005 case $cross_compiling:$ac_tool_warned in 8006yes:) 8007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8008printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8009ac_tool_warned=yes ;; 8010esac 8011 OTOOL=$ac_ct_OTOOL 8012 fi 8013else 8014 OTOOL="$ac_cv_prog_OTOOL" 8015fi 8016 8017 if test -n "$ac_tool_prefix"; then 8018 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8019set dummy ${ac_tool_prefix}otool64; ac_word=$2 8020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8021printf %s "checking for $ac_word... " >&6; } 8022if test ${ac_cv_prog_OTOOL64+y} 8023then : 8024 printf %s "(cached) " >&6 8025else $as_nop 8026 if test -n "$OTOOL64"; then 8027 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8028else 8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8030for as_dir in $PATH 8031do 8032 IFS=$as_save_IFS 8033 case $as_dir in #((( 8034 '') as_dir=./ ;; 8035 */) ;; 8036 *) as_dir=$as_dir/ ;; 8037 esac 8038 for ac_exec_ext in '' $ac_executable_extensions; do 8039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8040 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8042 break 2 8043 fi 8044done 8045 done 8046IFS=$as_save_IFS 8047 8048fi 8049fi 8050OTOOL64=$ac_cv_prog_OTOOL64 8051if test -n "$OTOOL64"; then 8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8053printf "%s\n" "$OTOOL64" >&6; } 8054else 8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8056printf "%s\n" "no" >&6; } 8057fi 8058 8059 8060fi 8061if test -z "$ac_cv_prog_OTOOL64"; then 8062 ac_ct_OTOOL64=$OTOOL64 8063 # Extract the first word of "otool64", so it can be a program name with args. 8064set dummy otool64; ac_word=$2 8065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8066printf %s "checking for $ac_word... " >&6; } 8067if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8068then : 8069 printf %s "(cached) " >&6 8070else $as_nop 8071 if test -n "$ac_ct_OTOOL64"; then 8072 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8073else 8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8075for as_dir in $PATH 8076do 8077 IFS=$as_save_IFS 8078 case $as_dir in #((( 8079 '') as_dir=./ ;; 8080 */) ;; 8081 *) as_dir=$as_dir/ ;; 8082 esac 8083 for ac_exec_ext in '' $ac_executable_extensions; do 8084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8085 ac_cv_prog_ac_ct_OTOOL64="otool64" 8086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8087 break 2 8088 fi 8089done 8090 done 8091IFS=$as_save_IFS 8092 8093fi 8094fi 8095ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8096if test -n "$ac_ct_OTOOL64"; then 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8098printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8099else 8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8101printf "%s\n" "no" >&6; } 8102fi 8103 8104 if test "x$ac_ct_OTOOL64" = x; then 8105 OTOOL64=":" 8106 else 8107 case $cross_compiling:$ac_tool_warned in 8108yes:) 8109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8110printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8111ac_tool_warned=yes ;; 8112esac 8113 OTOOL64=$ac_ct_OTOOL64 8114 fi 8115else 8116 OTOOL64="$ac_cv_prog_OTOOL64" 8117fi 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8146printf %s "checking for -single_module linker flag... " >&6; } 8147if test ${lt_cv_apple_cc_single_mod+y} 8148then : 8149 printf %s "(cached) " >&6 8150else $as_nop 8151 lt_cv_apple_cc_single_mod=no 8152 if test -z "$LT_MULTI_MODULE"; then 8153 # By default we will add the -single_module flag. You can override 8154 # by either setting the environment variable LT_MULTI_MODULE 8155 # non-empty at configure time, or by adding -multi_module to the 8156 # link flags. 8157 rm -rf libconftest.dylib* 8158 echo "int foo(void){return 1;}" > conftest.c 8159 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8160-dynamiclib -Wl,-single_module conftest.c" >&5 8161 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8162 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8163 _lt_result=$? 8164 # If there is a non-empty error log, and "single_module" 8165 # appears in it, assume the flag caused a linker warning 8166 if test -s conftest.err && $GREP single_module conftest.err; then 8167 cat conftest.err >&5 8168 # Otherwise, if the output was created with a 0 exit code from 8169 # the compiler, it worked. 8170 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8171 lt_cv_apple_cc_single_mod=yes 8172 else 8173 cat conftest.err >&5 8174 fi 8175 rm -rf libconftest.dylib* 8176 rm -f conftest.* 8177 fi 8178fi 8179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8180printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8181 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8183printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8184if test ${lt_cv_ld_exported_symbols_list+y} 8185then : 8186 printf %s "(cached) " >&6 8187else $as_nop 8188 lt_cv_ld_exported_symbols_list=no 8189 save_LDFLAGS=$LDFLAGS 8190 echo "_main" > conftest.sym 8191 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8193/* end confdefs.h. */ 8194 8195int 8196main (void) 8197{ 8198 8199 ; 8200 return 0; 8201} 8202_ACEOF 8203if ac_fn_c_try_link "$LINENO" 8204then : 8205 lt_cv_ld_exported_symbols_list=yes 8206else $as_nop 8207 lt_cv_ld_exported_symbols_list=no 8208fi 8209rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8210 conftest$ac_exeext conftest.$ac_ext 8211 LDFLAGS=$save_LDFLAGS 8212 8213fi 8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8215printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8216 8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8218printf %s "checking for -force_load linker flag... " >&6; } 8219if test ${lt_cv_ld_force_load+y} 8220then : 8221 printf %s "(cached) " >&6 8222else $as_nop 8223 lt_cv_ld_force_load=no 8224 cat > conftest.c << _LT_EOF 8225int forced_loaded() { return 2;} 8226_LT_EOF 8227 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8228 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8229 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8230 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8231 echo "$RANLIB libconftest.a" >&5 8232 $RANLIB libconftest.a 2>&5 8233 cat > conftest.c << _LT_EOF 8234int main() { return 0;} 8235_LT_EOF 8236 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8237 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8238 _lt_result=$? 8239 if test -s conftest.err && $GREP force_load conftest.err; then 8240 cat conftest.err >&5 8241 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8242 lt_cv_ld_force_load=yes 8243 else 8244 cat conftest.err >&5 8245 fi 8246 rm -f conftest.err libconftest.a conftest conftest.c 8247 rm -rf conftest.dSYM 8248 8249fi 8250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8251printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8252 case $host_os in 8253 rhapsody* | darwin1.[012]) 8254 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8255 darwin1.*) 8256 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8257 darwin*) 8258 case $MACOSX_DEPLOYMENT_TARGET,$host in 8259 10.[012],*|,*powerpc*-darwin[5-8]*) 8260 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8261 *) 8262 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8263 esac 8264 ;; 8265 esac 8266 if test yes = "$lt_cv_apple_cc_single_mod"; then 8267 _lt_dar_single_mod='$single_module' 8268 fi 8269 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8270 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8271 else 8272 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8273 fi 8274 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8275 _lt_dsymutil='~$DSYMUTIL $lib || :' 8276 else 8277 _lt_dsymutil= 8278 fi 8279 ;; 8280 esac 8281 8282# func_munge_path_list VARIABLE PATH 8283# ----------------------------------- 8284# VARIABLE is name of variable containing _space_ separated list of 8285# directories to be munged by the contents of PATH, which is string 8286# having a format: 8287# "DIR[:DIR]:" 8288# string "DIR[ DIR]" will be prepended to VARIABLE 8289# ":DIR[:DIR]" 8290# string "DIR[ DIR]" will be appended to VARIABLE 8291# "DIRP[:DIRP]::[DIRA:]DIRA" 8292# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8293# "DIRA[ DIRA]" will be appended to VARIABLE 8294# "DIR[:DIR]" 8295# VARIABLE will be replaced by "DIR[ DIR]" 8296func_munge_path_list () 8297{ 8298 case x$2 in 8299 x) 8300 ;; 8301 *:) 8302 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8303 ;; 8304 x:*) 8305 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8306 ;; 8307 *::*) 8308 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8309 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8310 ;; 8311 *) 8312 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8313 ;; 8314 esac 8315} 8316 8317ac_header= ac_cache= 8318for ac_item in $ac_header_c_list 8319do 8320 if test $ac_cache; then 8321 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8322 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8323 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8324 fi 8325 ac_header= ac_cache= 8326 elif test $ac_header; then 8327 ac_cache=$ac_item 8328 else 8329 ac_header=$ac_item 8330 fi 8331done 8332 8333 8334 8335 8336 8337 8338 8339 8340if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8341then : 8342 8343printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8344 8345fi 8346ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8347" 8348if test "x$ac_cv_header_dlfcn_h" = xyes 8349then : 8350 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8351 8352fi 8353 8354 8355 8356 8357 8358# Set options 8359 8360 8361 8362 enable_dlopen=no 8363 8364 8365 enable_win32_dll=no 8366 8367 8368 # Check whether --enable-shared was given. 8369if test ${enable_shared+y} 8370then : 8371 enableval=$enable_shared; p=${PACKAGE-default} 8372 case $enableval in 8373 yes) enable_shared=yes ;; 8374 no) enable_shared=no ;; 8375 *) 8376 enable_shared=no 8377 # Look at the argument we got. We use all the common list separators. 8378 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8379 for pkg in $enableval; do 8380 IFS=$lt_save_ifs 8381 if test "X$pkg" = "X$p"; then 8382 enable_shared=yes 8383 fi 8384 done 8385 IFS=$lt_save_ifs 8386 ;; 8387 esac 8388else $as_nop 8389 enable_shared=yes 8390fi 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 # Check whether --enable-static was given. 8401if test ${enable_static+y} 8402then : 8403 enableval=$enable_static; p=${PACKAGE-default} 8404 case $enableval in 8405 yes) enable_static=yes ;; 8406 no) enable_static=no ;; 8407 *) 8408 enable_static=no 8409 # Look at the argument we got. We use all the common list separators. 8410 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8411 for pkg in $enableval; do 8412 IFS=$lt_save_ifs 8413 if test "X$pkg" = "X$p"; then 8414 enable_static=yes 8415 fi 8416 done 8417 IFS=$lt_save_ifs 8418 ;; 8419 esac 8420else $as_nop 8421 enable_static=yes 8422fi 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433# Check whether --with-pic was given. 8434if test ${with_pic+y} 8435then : 8436 withval=$with_pic; lt_p=${PACKAGE-default} 8437 case $withval in 8438 yes|no) pic_mode=$withval ;; 8439 *) 8440 pic_mode=default 8441 # Look at the argument we got. We use all the common list separators. 8442 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8443 for lt_pkg in $withval; do 8444 IFS=$lt_save_ifs 8445 if test "X$lt_pkg" = "X$lt_p"; then 8446 pic_mode=yes 8447 fi 8448 done 8449 IFS=$lt_save_ifs 8450 ;; 8451 esac 8452else $as_nop 8453 pic_mode=default 8454fi 8455 8456 8457 8458 8459 8460 8461 8462 8463 # Check whether --enable-fast-install was given. 8464if test ${enable_fast_install+y} 8465then : 8466 enableval=$enable_fast_install; p=${PACKAGE-default} 8467 case $enableval in 8468 yes) enable_fast_install=yes ;; 8469 no) enable_fast_install=no ;; 8470 *) 8471 enable_fast_install=no 8472 # Look at the argument we got. We use all the common list separators. 8473 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8474 for pkg in $enableval; do 8475 IFS=$lt_save_ifs 8476 if test "X$pkg" = "X$p"; then 8477 enable_fast_install=yes 8478 fi 8479 done 8480 IFS=$lt_save_ifs 8481 ;; 8482 esac 8483else $as_nop 8484 enable_fast_install=yes 8485fi 8486 8487 8488 8489 8490 8491 8492 8493 8494 shared_archive_member_spec= 8495case $host,$enable_shared in 8496power*-*-aix[5-9]*,yes) 8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8498printf %s "checking which variant of shared library versioning to provide... " >&6; } 8499 8500# Check whether --with-aix-soname was given. 8501if test ${with_aix_soname+y} 8502then : 8503 withval=$with_aix_soname; case $withval in 8504 aix|svr4|both) 8505 ;; 8506 *) 8507 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8508 ;; 8509 esac 8510 lt_cv_with_aix_soname=$with_aix_soname 8511else $as_nop 8512 if test ${lt_cv_with_aix_soname+y} 8513then : 8514 printf %s "(cached) " >&6 8515else $as_nop 8516 lt_cv_with_aix_soname=aix 8517fi 8518 8519 with_aix_soname=$lt_cv_with_aix_soname 8520fi 8521 8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8523printf "%s\n" "$with_aix_soname" >&6; } 8524 if test aix != "$with_aix_soname"; then 8525 # For the AIX way of multilib, we name the shared archive member 8526 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8527 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8528 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8529 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8530 if test 64 = "${OBJECT_MODE-32}"; then 8531 shared_archive_member_spec=shr_64 8532 else 8533 shared_archive_member_spec=shr 8534 fi 8535 fi 8536 ;; 8537*) 8538 with_aix_soname=aix 8539 ;; 8540esac 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551# This can be used to rebuild libtool when needed 8552LIBTOOL_DEPS=$ltmain 8553 8554# Always use our own libtool. 8555LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586test -z "$LN_S" && LN_S="ln -s" 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601if test -n "${ZSH_VERSION+set}"; then 8602 setopt NO_GLOB_SUBST 8603fi 8604 8605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8606printf %s "checking for objdir... " >&6; } 8607if test ${lt_cv_objdir+y} 8608then : 8609 printf %s "(cached) " >&6 8610else $as_nop 8611 rm -f .libs 2>/dev/null 8612mkdir .libs 2>/dev/null 8613if test -d .libs; then 8614 lt_cv_objdir=.libs 8615else 8616 # MS-DOS does not allow filenames that begin with a dot. 8617 lt_cv_objdir=_libs 8618fi 8619rmdir .libs 2>/dev/null 8620fi 8621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8622printf "%s\n" "$lt_cv_objdir" >&6; } 8623objdir=$lt_cv_objdir 8624 8625 8626 8627 8628 8629printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8630 8631 8632 8633 8634case $host_os in 8635aix3*) 8636 # AIX sometimes has problems with the GCC collect2 program. For some 8637 # reason, if we set the COLLECT_NAMES environment variable, the problems 8638 # vanish in a puff of smoke. 8639 if test set != "${COLLECT_NAMES+set}"; then 8640 COLLECT_NAMES= 8641 export COLLECT_NAMES 8642 fi 8643 ;; 8644esac 8645 8646# Global variables: 8647ofile=libtool 8648can_build_shared=yes 8649 8650# All known linkers require a '.a' archive for static linking (except MSVC and 8651# ICC, which need '.lib'). 8652libext=a 8653 8654with_gnu_ld=$lt_cv_prog_gnu_ld 8655 8656old_CC=$CC 8657old_CFLAGS=$CFLAGS 8658 8659# Set sane defaults for various variables 8660test -z "$CC" && CC=cc 8661test -z "$LTCC" && LTCC=$CC 8662test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8663test -z "$LD" && LD=ld 8664test -z "$ac_objext" && ac_objext=o 8665 8666func_cc_basename $compiler 8667cc_basename=$func_cc_basename_result 8668 8669 8670# Only perform the check for file, if the check method requires it 8671test -z "$MAGIC_CMD" && MAGIC_CMD=file 8672case $deplibs_check_method in 8673file_magic*) 8674 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8676printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8677if test ${lt_cv_path_MAGIC_CMD+y} 8678then : 8679 printf %s "(cached) " >&6 8680else $as_nop 8681 case $MAGIC_CMD in 8682[\\/*] | ?:[\\/]*) 8683 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8684 ;; 8685*) 8686 lt_save_MAGIC_CMD=$MAGIC_CMD 8687 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8688 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8689 for ac_dir in $ac_dummy; do 8690 IFS=$lt_save_ifs 8691 test -z "$ac_dir" && ac_dir=. 8692 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8693 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8694 if test -n "$file_magic_test_file"; then 8695 case $deplibs_check_method in 8696 "file_magic "*) 8697 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8698 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8699 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8700 $EGREP "$file_magic_regex" > /dev/null; then 8701 : 8702 else 8703 cat <<_LT_EOF 1>&2 8704 8705*** Warning: the command libtool uses to detect shared libraries, 8706*** $file_magic_cmd, produces output that libtool cannot recognize. 8707*** The result is that libtool may fail to recognize shared libraries 8708*** as such. This will affect the creation of libtool libraries that 8709*** depend on shared libraries, but programs linked with such libtool 8710*** libraries will work regardless of this problem. Nevertheless, you 8711*** may want to report the problem to your system manager and/or to 8712*** bug-libtool@gnu.org 8713 8714_LT_EOF 8715 fi ;; 8716 esac 8717 fi 8718 break 8719 fi 8720 done 8721 IFS=$lt_save_ifs 8722 MAGIC_CMD=$lt_save_MAGIC_CMD 8723 ;; 8724esac 8725fi 8726 8727MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8728if test -n "$MAGIC_CMD"; then 8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8730printf "%s\n" "$MAGIC_CMD" >&6; } 8731else 8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8733printf "%s\n" "no" >&6; } 8734fi 8735 8736 8737 8738 8739 8740if test -z "$lt_cv_path_MAGIC_CMD"; then 8741 if test -n "$ac_tool_prefix"; then 8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8743printf %s "checking for file... " >&6; } 8744if test ${lt_cv_path_MAGIC_CMD+y} 8745then : 8746 printf %s "(cached) " >&6 8747else $as_nop 8748 case $MAGIC_CMD in 8749[\\/*] | ?:[\\/]*) 8750 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8751 ;; 8752*) 8753 lt_save_MAGIC_CMD=$MAGIC_CMD 8754 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8755 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8756 for ac_dir in $ac_dummy; do 8757 IFS=$lt_save_ifs 8758 test -z "$ac_dir" && ac_dir=. 8759 if test -f "$ac_dir/file"; then 8760 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8761 if test -n "$file_magic_test_file"; then 8762 case $deplibs_check_method in 8763 "file_magic "*) 8764 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8765 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8767 $EGREP "$file_magic_regex" > /dev/null; then 8768 : 8769 else 8770 cat <<_LT_EOF 1>&2 8771 8772*** Warning: the command libtool uses to detect shared libraries, 8773*** $file_magic_cmd, produces output that libtool cannot recognize. 8774*** The result is that libtool may fail to recognize shared libraries 8775*** as such. This will affect the creation of libtool libraries that 8776*** depend on shared libraries, but programs linked with such libtool 8777*** libraries will work regardless of this problem. Nevertheless, you 8778*** may want to report the problem to your system manager and/or to 8779*** bug-libtool@gnu.org 8780 8781_LT_EOF 8782 fi ;; 8783 esac 8784 fi 8785 break 8786 fi 8787 done 8788 IFS=$lt_save_ifs 8789 MAGIC_CMD=$lt_save_MAGIC_CMD 8790 ;; 8791esac 8792fi 8793 8794MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8795if test -n "$MAGIC_CMD"; then 8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8797printf "%s\n" "$MAGIC_CMD" >&6; } 8798else 8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8800printf "%s\n" "no" >&6; } 8801fi 8802 8803 8804 else 8805 MAGIC_CMD=: 8806 fi 8807fi 8808 8809 fi 8810 ;; 8811esac 8812 8813# Use C for the default configuration in the libtool script 8814 8815lt_save_CC=$CC 8816ac_ext=c 8817ac_cpp='$CPP $CPPFLAGS' 8818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8820ac_compiler_gnu=$ac_cv_c_compiler_gnu 8821 8822 8823# Source file extension for C test sources. 8824ac_ext=c 8825 8826# Object file extension for compiled C test sources. 8827objext=o 8828objext=$objext 8829 8830# Code to be used in simple compile tests 8831lt_simple_compile_test_code="int some_variable = 0;" 8832 8833# Code to be used in simple link tests 8834lt_simple_link_test_code='int main(){return(0);}' 8835 8836 8837 8838 8839 8840 8841 8842# If no C compiler was specified, use CC. 8843LTCC=${LTCC-"$CC"} 8844 8845# If no C compiler flags were specified, use CFLAGS. 8846LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8847 8848# Allow CC to be a program name with arguments. 8849compiler=$CC 8850 8851# Save the default compiler, since it gets overwritten when the other 8852# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8853compiler_DEFAULT=$CC 8854 8855# save warnings/boilerplate of simple test code 8856ac_outfile=conftest.$ac_objext 8857echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8858eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8859_lt_compiler_boilerplate=`cat conftest.err` 8860$RM conftest* 8861 8862ac_outfile=conftest.$ac_objext 8863echo "$lt_simple_link_test_code" >conftest.$ac_ext 8864eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8865_lt_linker_boilerplate=`cat conftest.err` 8866$RM -r conftest* 8867 8868 8869## CAVEAT EMPTOR: 8870## There is no encapsulation within the following macros, do not change 8871## the running order or otherwise move them around unless you know exactly 8872## what you are doing... 8873if test -n "$compiler"; then 8874 8875lt_prog_compiler_no_builtin_flag= 8876 8877if test yes = "$GCC"; then 8878 case $cc_basename in 8879 nvcc*) 8880 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8881 *) 8882 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8883 esac 8884 8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8886printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8887if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8888then : 8889 printf %s "(cached) " >&6 8890else $as_nop 8891 lt_cv_prog_compiler_rtti_exceptions=no 8892 ac_outfile=conftest.$ac_objext 8893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8894 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8895 # Insert the option either (1) after the last *FLAGS variable, or 8896 # (2) before a word containing "conftest.", or (3) at the end. 8897 # Note that $ac_compile itself does not contain backslashes and begins 8898 # with a dollar sign (not a hyphen), so the echo should work correctly. 8899 # The option is referenced via a variable to avoid confusing sed. 8900 lt_compile=`echo "$ac_compile" | $SED \ 8901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8903 -e 's:$: $lt_compiler_flag:'` 8904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8905 (eval "$lt_compile" 2>conftest.err) 8906 ac_status=$? 8907 cat conftest.err >&5 8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8909 if (exit $ac_status) && test -s "$ac_outfile"; then 8910 # The compiler can only warn and ignore the option if not recognized 8911 # So say no if there are warnings other than the usual output. 8912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8915 lt_cv_prog_compiler_rtti_exceptions=yes 8916 fi 8917 fi 8918 $RM conftest* 8919 8920fi 8921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8922printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8923 8924if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8925 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8926else 8927 : 8928fi 8929 8930fi 8931 8932 8933 8934 8935 8936 8937 lt_prog_compiler_wl= 8938lt_prog_compiler_pic= 8939lt_prog_compiler_static= 8940 8941 8942 if test yes = "$GCC"; then 8943 lt_prog_compiler_wl='-Wl,' 8944 lt_prog_compiler_static='-static' 8945 8946 case $host_os in 8947 aix*) 8948 # All AIX code is PIC. 8949 if test ia64 = "$host_cpu"; then 8950 # AIX 5 now supports IA64 processor 8951 lt_prog_compiler_static='-Bstatic' 8952 fi 8953 lt_prog_compiler_pic='-fPIC' 8954 ;; 8955 8956 amigaos*) 8957 case $host_cpu in 8958 powerpc) 8959 # see comment about AmigaOS4 .so support 8960 lt_prog_compiler_pic='-fPIC' 8961 ;; 8962 m68k) 8963 # FIXME: we need at least 68020 code to build shared libraries, but 8964 # adding the '-m68020' flag to GCC prevents building anything better, 8965 # like '-m68040'. 8966 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8967 ;; 8968 esac 8969 ;; 8970 8971 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8972 # PIC is the default for these OSes. 8973 ;; 8974 8975 mingw* | cygwin* | pw32* | os2* | cegcc*) 8976 # This hack is so that the source file can tell whether it is being 8977 # built for inclusion in a dll (and should export symbols for example). 8978 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8979 # (--disable-auto-import) libraries 8980 lt_prog_compiler_pic='-DDLL_EXPORT' 8981 case $host_os in 8982 os2*) 8983 lt_prog_compiler_static='$wl-static' 8984 ;; 8985 esac 8986 ;; 8987 8988 darwin* | rhapsody*) 8989 # PIC is the default on this platform 8990 # Common symbols not allowed in MH_DYLIB files 8991 lt_prog_compiler_pic='-fno-common' 8992 ;; 8993 8994 haiku*) 8995 # PIC is the default for Haiku. 8996 # The "-static" flag exists, but is broken. 8997 lt_prog_compiler_static= 8998 ;; 8999 9000 hpux*) 9001 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9002 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9003 # sets the default TLS model and affects inlining. 9004 case $host_cpu in 9005 hppa*64*) 9006 # +Z the default 9007 ;; 9008 *) 9009 lt_prog_compiler_pic='-fPIC' 9010 ;; 9011 esac 9012 ;; 9013 9014 interix[3-9]*) 9015 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9016 # Instead, we relocate shared libraries at runtime. 9017 ;; 9018 9019 msdosdjgpp*) 9020 # Just because we use GCC doesn't mean we suddenly get shared libraries 9021 # on systems that don't support them. 9022 lt_prog_compiler_can_build_shared=no 9023 enable_shared=no 9024 ;; 9025 9026 *nto* | *qnx*) 9027 # QNX uses GNU C++, but need to define -shared option too, otherwise 9028 # it will coredump. 9029 lt_prog_compiler_pic='-fPIC -shared' 9030 ;; 9031 9032 sysv4*MP*) 9033 if test -d /usr/nec; then 9034 lt_prog_compiler_pic=-Kconform_pic 9035 fi 9036 ;; 9037 9038 *) 9039 lt_prog_compiler_pic='-fPIC' 9040 ;; 9041 esac 9042 9043 case $cc_basename in 9044 nvcc*) # Cuda Compiler Driver 2.2 9045 lt_prog_compiler_wl='-Xlinker ' 9046 if test -n "$lt_prog_compiler_pic"; then 9047 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9048 fi 9049 ;; 9050 esac 9051 else 9052 # PORTME Check for flag to pass linker flags through the system compiler. 9053 case $host_os in 9054 aix*) 9055 lt_prog_compiler_wl='-Wl,' 9056 if test ia64 = "$host_cpu"; then 9057 # AIX 5 now supports IA64 processor 9058 lt_prog_compiler_static='-Bstatic' 9059 else 9060 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9061 fi 9062 ;; 9063 9064 darwin* | rhapsody*) 9065 # PIC is the default on this platform 9066 # Common symbols not allowed in MH_DYLIB files 9067 lt_prog_compiler_pic='-fno-common' 9068 case $cc_basename in 9069 nagfor*) 9070 # NAG Fortran compiler 9071 lt_prog_compiler_wl='-Wl,-Wl,,' 9072 lt_prog_compiler_pic='-PIC' 9073 lt_prog_compiler_static='-Bstatic' 9074 ;; 9075 esac 9076 ;; 9077 9078 mingw* | cygwin* | pw32* | os2* | cegcc*) 9079 # This hack is so that the source file can tell whether it is being 9080 # built for inclusion in a dll (and should export symbols for example). 9081 lt_prog_compiler_pic='-DDLL_EXPORT' 9082 case $host_os in 9083 os2*) 9084 lt_prog_compiler_static='$wl-static' 9085 ;; 9086 esac 9087 ;; 9088 9089 hpux9* | hpux10* | hpux11*) 9090 lt_prog_compiler_wl='-Wl,' 9091 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9092 # not for PA HP-UX. 9093 case $host_cpu in 9094 hppa*64*|ia64*) 9095 # +Z the default 9096 ;; 9097 *) 9098 lt_prog_compiler_pic='+Z' 9099 ;; 9100 esac 9101 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9102 lt_prog_compiler_static='$wl-a ${wl}archive' 9103 ;; 9104 9105 irix5* | irix6* | nonstopux*) 9106 lt_prog_compiler_wl='-Wl,' 9107 # PIC (with -KPIC) is the default. 9108 lt_prog_compiler_static='-non_shared' 9109 ;; 9110 9111 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9112 case $cc_basename in 9113 # old Intel for x86_64, which still supported -KPIC. 9114 ecc*) 9115 lt_prog_compiler_wl='-Wl,' 9116 lt_prog_compiler_pic='-KPIC' 9117 lt_prog_compiler_static='-static' 9118 ;; 9119 # icc used to be incompatible with GCC. 9120 # ICC 10 doesn't accept -KPIC any more. 9121 icc* | ifort*) 9122 lt_prog_compiler_wl='-Wl,' 9123 lt_prog_compiler_pic='-fPIC' 9124 lt_prog_compiler_static='-static' 9125 ;; 9126 # Lahey Fortran 8.1. 9127 lf95*) 9128 lt_prog_compiler_wl='-Wl,' 9129 lt_prog_compiler_pic='--shared' 9130 lt_prog_compiler_static='--static' 9131 ;; 9132 nagfor*) 9133 # NAG Fortran compiler 9134 lt_prog_compiler_wl='-Wl,-Wl,,' 9135 lt_prog_compiler_pic='-PIC' 9136 lt_prog_compiler_static='-Bstatic' 9137 ;; 9138 tcc*) 9139 # Fabrice Bellard et al's Tiny C Compiler 9140 lt_prog_compiler_wl='-Wl,' 9141 lt_prog_compiler_pic='-fPIC' 9142 lt_prog_compiler_static='-static' 9143 ;; 9144 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9145 # Portland Group compilers (*not* the Pentium gcc compiler, 9146 # which looks to be a dead project) 9147 lt_prog_compiler_wl='-Wl,' 9148 lt_prog_compiler_pic='-fpic' 9149 lt_prog_compiler_static='-Bstatic' 9150 ;; 9151 ccc*) 9152 lt_prog_compiler_wl='-Wl,' 9153 # All Alpha code is PIC. 9154 lt_prog_compiler_static='-non_shared' 9155 ;; 9156 xl* | bgxl* | bgf* | mpixl*) 9157 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9158 lt_prog_compiler_wl='-Wl,' 9159 lt_prog_compiler_pic='-qpic' 9160 lt_prog_compiler_static='-qstaticlink' 9161 ;; 9162 *) 9163 case `$CC -V 2>&1 | $SED 5q` in 9164 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9165 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9166 lt_prog_compiler_pic='-KPIC' 9167 lt_prog_compiler_static='-Bstatic' 9168 lt_prog_compiler_wl='' 9169 ;; 9170 *Sun\ F* | *Sun*Fortran*) 9171 lt_prog_compiler_pic='-KPIC' 9172 lt_prog_compiler_static='-Bstatic' 9173 lt_prog_compiler_wl='-Qoption ld ' 9174 ;; 9175 *Sun\ C*) 9176 # Sun C 5.9 9177 lt_prog_compiler_pic='-KPIC' 9178 lt_prog_compiler_static='-Bstatic' 9179 lt_prog_compiler_wl='-Wl,' 9180 ;; 9181 *Intel*\ [CF]*Compiler*) 9182 lt_prog_compiler_wl='-Wl,' 9183 lt_prog_compiler_pic='-fPIC' 9184 lt_prog_compiler_static='-static' 9185 ;; 9186 *Portland\ Group*) 9187 lt_prog_compiler_wl='-Wl,' 9188 lt_prog_compiler_pic='-fpic' 9189 lt_prog_compiler_static='-Bstatic' 9190 ;; 9191 esac 9192 ;; 9193 esac 9194 ;; 9195 9196 newsos6) 9197 lt_prog_compiler_pic='-KPIC' 9198 lt_prog_compiler_static='-Bstatic' 9199 ;; 9200 9201 *nto* | *qnx*) 9202 # QNX uses GNU C++, but need to define -shared option too, otherwise 9203 # it will coredump. 9204 lt_prog_compiler_pic='-fPIC -shared' 9205 ;; 9206 9207 osf3* | osf4* | osf5*) 9208 lt_prog_compiler_wl='-Wl,' 9209 # All OSF/1 code is PIC. 9210 lt_prog_compiler_static='-non_shared' 9211 ;; 9212 9213 rdos*) 9214 lt_prog_compiler_static='-non_shared' 9215 ;; 9216 9217 solaris*) 9218 lt_prog_compiler_pic='-KPIC' 9219 lt_prog_compiler_static='-Bstatic' 9220 case $cc_basename in 9221 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9222 lt_prog_compiler_wl='-Qoption ld ';; 9223 *) 9224 lt_prog_compiler_wl='-Wl,';; 9225 esac 9226 ;; 9227 9228 sunos4*) 9229 lt_prog_compiler_wl='-Qoption ld ' 9230 lt_prog_compiler_pic='-PIC' 9231 lt_prog_compiler_static='-Bstatic' 9232 ;; 9233 9234 sysv4 | sysv4.2uw2* | sysv4.3*) 9235 lt_prog_compiler_wl='-Wl,' 9236 lt_prog_compiler_pic='-KPIC' 9237 lt_prog_compiler_static='-Bstatic' 9238 ;; 9239 9240 sysv4*MP*) 9241 if test -d /usr/nec; then 9242 lt_prog_compiler_pic='-Kconform_pic' 9243 lt_prog_compiler_static='-Bstatic' 9244 fi 9245 ;; 9246 9247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9248 lt_prog_compiler_wl='-Wl,' 9249 lt_prog_compiler_pic='-KPIC' 9250 lt_prog_compiler_static='-Bstatic' 9251 ;; 9252 9253 unicos*) 9254 lt_prog_compiler_wl='-Wl,' 9255 lt_prog_compiler_can_build_shared=no 9256 ;; 9257 9258 uts4*) 9259 lt_prog_compiler_pic='-pic' 9260 lt_prog_compiler_static='-Bstatic' 9261 ;; 9262 9263 *) 9264 lt_prog_compiler_can_build_shared=no 9265 ;; 9266 esac 9267 fi 9268 9269case $host_os in 9270 # For platforms that do not support PIC, -DPIC is meaningless: 9271 *djgpp*) 9272 lt_prog_compiler_pic= 9273 ;; 9274 *) 9275 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9276 ;; 9277esac 9278 9279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9280printf %s "checking for $compiler option to produce PIC... " >&6; } 9281if test ${lt_cv_prog_compiler_pic+y} 9282then : 9283 printf %s "(cached) " >&6 9284else $as_nop 9285 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9286fi 9287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9288printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9289lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9290 9291# 9292# Check to make sure the PIC flag actually works. 9293# 9294if test -n "$lt_prog_compiler_pic"; then 9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9296printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9297if test ${lt_cv_prog_compiler_pic_works+y} 9298then : 9299 printf %s "(cached) " >&6 9300else $as_nop 9301 lt_cv_prog_compiler_pic_works=no 9302 ac_outfile=conftest.$ac_objext 9303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9304 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9305 # Insert the option either (1) after the last *FLAGS variable, or 9306 # (2) before a word containing "conftest.", or (3) at the end. 9307 # Note that $ac_compile itself does not contain backslashes and begins 9308 # with a dollar sign (not a hyphen), so the echo should work correctly. 9309 # The option is referenced via a variable to avoid confusing sed. 9310 lt_compile=`echo "$ac_compile" | $SED \ 9311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9313 -e 's:$: $lt_compiler_flag:'` 9314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9315 (eval "$lt_compile" 2>conftest.err) 9316 ac_status=$? 9317 cat conftest.err >&5 9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9319 if (exit $ac_status) && test -s "$ac_outfile"; then 9320 # The compiler can only warn and ignore the option if not recognized 9321 # So say no if there are warnings other than the usual output. 9322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9325 lt_cv_prog_compiler_pic_works=yes 9326 fi 9327 fi 9328 $RM conftest* 9329 9330fi 9331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9332printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9333 9334if test yes = "$lt_cv_prog_compiler_pic_works"; then 9335 case $lt_prog_compiler_pic in 9336 "" | " "*) ;; 9337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9338 esac 9339else 9340 lt_prog_compiler_pic= 9341 lt_prog_compiler_can_build_shared=no 9342fi 9343 9344fi 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356# 9357# Check to make sure the static flag actually works. 9358# 9359wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9361printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9362if test ${lt_cv_prog_compiler_static_works+y} 9363then : 9364 printf %s "(cached) " >&6 9365else $as_nop 9366 lt_cv_prog_compiler_static_works=no 9367 save_LDFLAGS=$LDFLAGS 9368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9369 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9371 # The linker can only warn and ignore the option if not recognized 9372 # So say no if there are warnings 9373 if test -s conftest.err; then 9374 # Append any errors to the config.log. 9375 cat conftest.err 1>&5 9376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9378 if diff conftest.exp conftest.er2 >/dev/null; then 9379 lt_cv_prog_compiler_static_works=yes 9380 fi 9381 else 9382 lt_cv_prog_compiler_static_works=yes 9383 fi 9384 fi 9385 $RM -r conftest* 9386 LDFLAGS=$save_LDFLAGS 9387 9388fi 9389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9390printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9391 9392if test yes = "$lt_cv_prog_compiler_static_works"; then 9393 : 9394else 9395 lt_prog_compiler_static= 9396fi 9397 9398 9399 9400 9401 9402 9403 9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9405printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9406if test ${lt_cv_prog_compiler_c_o+y} 9407then : 9408 printf %s "(cached) " >&6 9409else $as_nop 9410 lt_cv_prog_compiler_c_o=no 9411 $RM -r conftest 2>/dev/null 9412 mkdir conftest 9413 cd conftest 9414 mkdir out 9415 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9416 9417 lt_compiler_flag="-o out/conftest2.$ac_objext" 9418 # Insert the option either (1) after the last *FLAGS variable, or 9419 # (2) before a word containing "conftest.", or (3) at the end. 9420 # Note that $ac_compile itself does not contain backslashes and begins 9421 # with a dollar sign (not a hyphen), so the echo should work correctly. 9422 lt_compile=`echo "$ac_compile" | $SED \ 9423 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9424 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9425 -e 's:$: $lt_compiler_flag:'` 9426 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9427 (eval "$lt_compile" 2>out/conftest.err) 9428 ac_status=$? 9429 cat out/conftest.err >&5 9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9431 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9432 then 9433 # The compiler can only warn and ignore the option if not recognized 9434 # So say no if there are warnings 9435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9436 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9437 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9438 lt_cv_prog_compiler_c_o=yes 9439 fi 9440 fi 9441 chmod u+w . 2>&5 9442 $RM conftest* 9443 # SGI C++ compiler will create directory out/ii_files/ for 9444 # template instantiation 9445 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9446 $RM out/* && rmdir out 9447 cd .. 9448 $RM -r conftest 9449 $RM conftest* 9450 9451fi 9452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9453printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9454 9455 9456 9457 9458 9459 9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9461printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9462if test ${lt_cv_prog_compiler_c_o+y} 9463then : 9464 printf %s "(cached) " >&6 9465else $as_nop 9466 lt_cv_prog_compiler_c_o=no 9467 $RM -r conftest 2>/dev/null 9468 mkdir conftest 9469 cd conftest 9470 mkdir out 9471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9472 9473 lt_compiler_flag="-o out/conftest2.$ac_objext" 9474 # Insert the option either (1) after the last *FLAGS variable, or 9475 # (2) before a word containing "conftest.", or (3) at the end. 9476 # Note that $ac_compile itself does not contain backslashes and begins 9477 # with a dollar sign (not a hyphen), so the echo should work correctly. 9478 lt_compile=`echo "$ac_compile" | $SED \ 9479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9481 -e 's:$: $lt_compiler_flag:'` 9482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9483 (eval "$lt_compile" 2>out/conftest.err) 9484 ac_status=$? 9485 cat out/conftest.err >&5 9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9487 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9488 then 9489 # The compiler can only warn and ignore the option if not recognized 9490 # So say no if there are warnings 9491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9494 lt_cv_prog_compiler_c_o=yes 9495 fi 9496 fi 9497 chmod u+w . 2>&5 9498 $RM conftest* 9499 # SGI C++ compiler will create directory out/ii_files/ for 9500 # template instantiation 9501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9502 $RM out/* && rmdir out 9503 cd .. 9504 $RM -r conftest 9505 $RM conftest* 9506 9507fi 9508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9509printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9510 9511 9512 9513 9514hard_links=nottested 9515if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9516 # do not overwrite the value of need_locks provided by the user 9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9518printf %s "checking if we can lock with hard links... " >&6; } 9519 hard_links=yes 9520 $RM conftest* 9521 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9522 touch conftest.a 9523 ln conftest.a conftest.b 2>&5 || hard_links=no 9524 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9526printf "%s\n" "$hard_links" >&6; } 9527 if test no = "$hard_links"; then 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9529printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9530 need_locks=warn 9531 fi 9532else 9533 need_locks=no 9534fi 9535 9536 9537 9538 9539 9540 9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9542printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9543 9544 runpath_var= 9545 allow_undefined_flag= 9546 always_export_symbols=no 9547 archive_cmds= 9548 archive_expsym_cmds= 9549 compiler_needs_object=no 9550 enable_shared_with_static_runtimes=no 9551 export_dynamic_flag_spec= 9552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9553 hardcode_automatic=no 9554 hardcode_direct=no 9555 hardcode_direct_absolute=no 9556 hardcode_libdir_flag_spec= 9557 hardcode_libdir_separator= 9558 hardcode_minus_L=no 9559 hardcode_shlibpath_var=unsupported 9560 inherit_rpath=no 9561 link_all_deplibs=unknown 9562 module_cmds= 9563 module_expsym_cmds= 9564 old_archive_from_new_cmds= 9565 old_archive_from_expsyms_cmds= 9566 thread_safe_flag_spec= 9567 whole_archive_flag_spec= 9568 # include_expsyms should be a list of space-separated symbols to be *always* 9569 # included in the symbol list 9570 include_expsyms= 9571 # exclude_expsyms can be an extended regexp of symbols to exclude 9572 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9573 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9574 # as well as any symbol that contains 'd'. 9575 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9576 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9577 # platforms (ab)use it in PIC code, but their linkers get confused if 9578 # the symbol is explicitly referenced. Since portable code cannot 9579 # rely on this symbol name, it's probably fine to never include it in 9580 # preloaded symbol tables. 9581 # Exclude shared library initialization/finalization symbols. 9582 extract_expsyms_cmds= 9583 9584 case $host_os in 9585 cygwin* | mingw* | pw32* | cegcc*) 9586 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9587 # When not using gcc, we currently assume that we are using 9588 # Microsoft Visual C++ or Intel C++ Compiler. 9589 if test yes != "$GCC"; then 9590 with_gnu_ld=no 9591 fi 9592 ;; 9593 interix*) 9594 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9595 with_gnu_ld=yes 9596 ;; 9597 openbsd* | bitrig*) 9598 with_gnu_ld=no 9599 ;; 9600 esac 9601 9602 ld_shlibs=yes 9603 9604 # On some targets, GNU ld is compatible enough with the native linker 9605 # that we're better off using the native interface for both. 9606 lt_use_gnu_ld_interface=no 9607 if test yes = "$with_gnu_ld"; then 9608 case $host_os in 9609 aix*) 9610 # The AIX port of GNU ld has always aspired to compatibility 9611 # with the native linker. However, as the warning in the GNU ld 9612 # block says, versions before 2.19.5* couldn't really create working 9613 # shared libraries, regardless of the interface used. 9614 case `$LD -v 2>&1` in 9615 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9616 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9617 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9618 *) 9619 lt_use_gnu_ld_interface=yes 9620 ;; 9621 esac 9622 ;; 9623 *) 9624 lt_use_gnu_ld_interface=yes 9625 ;; 9626 esac 9627 fi 9628 9629 if test yes = "$lt_use_gnu_ld_interface"; then 9630 # If archive_cmds runs LD, not CC, wlarc should be empty 9631 wlarc='$wl' 9632 9633 # Set some defaults for GNU ld with shared library support. These 9634 # are reset later if shared libraries are not supported. Putting them 9635 # here allows them to be overridden if necessary. 9636 runpath_var=LD_RUN_PATH 9637 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9638 export_dynamic_flag_spec='$wl--export-dynamic' 9639 # ancient GNU ld didn't support --whole-archive et. al. 9640 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9641 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9642 else 9643 whole_archive_flag_spec= 9644 fi 9645 supports_anon_versioning=no 9646 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9647 *GNU\ gold*) supports_anon_versioning=yes ;; 9648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9651 *\ 2.11.*) ;; # other 2.11 versions 9652 *) supports_anon_versioning=yes ;; 9653 esac 9654 9655 # See if GNU ld supports shared libraries. 9656 case $host_os in 9657 aix[3-9]*) 9658 # On AIX/PPC, the GNU linker is very broken 9659 if test ia64 != "$host_cpu"; then 9660 ld_shlibs=no 9661 cat <<_LT_EOF 1>&2 9662 9663*** Warning: the GNU linker, at least up to release 2.19, is reported 9664*** to be unable to reliably create shared libraries on AIX. 9665*** Therefore, libtool is disabling shared libraries support. If you 9666*** really care for shared libraries, you may want to install binutils 9667*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9668*** You will then need to restart the configuration process. 9669 9670_LT_EOF 9671 fi 9672 ;; 9673 9674 amigaos*) 9675 case $host_cpu in 9676 powerpc) 9677 # see comment about AmigaOS4 .so support 9678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9679 archive_expsym_cmds='' 9680 ;; 9681 m68k) 9682 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)' 9683 hardcode_libdir_flag_spec='-L$libdir' 9684 hardcode_minus_L=yes 9685 ;; 9686 esac 9687 ;; 9688 9689 beos*) 9690 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9691 allow_undefined_flag=unsupported 9692 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9693 # support --undefined. This deserves some investigation. FIXME 9694 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9695 else 9696 ld_shlibs=no 9697 fi 9698 ;; 9699 9700 cygwin* | mingw* | pw32* | cegcc*) 9701 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9702 # as there is no search path for DLLs. 9703 hardcode_libdir_flag_spec='-L$libdir' 9704 export_dynamic_flag_spec='$wl--export-all-symbols' 9705 allow_undefined_flag=unsupported 9706 always_export_symbols=no 9707 enable_shared_with_static_runtimes=yes 9708 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' 9709 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9710 9711 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9713 # If the export-symbols file already is a .def file, use it as 9714 # is; otherwise, prepend EXPORTS... 9715 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9716 cp $export_symbols $output_objdir/$soname.def; 9717 else 9718 echo EXPORTS > $output_objdir/$soname.def; 9719 cat $export_symbols >> $output_objdir/$soname.def; 9720 fi~ 9721 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9722 else 9723 ld_shlibs=no 9724 fi 9725 ;; 9726 9727 haiku*) 9728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9729 link_all_deplibs=yes 9730 ;; 9731 9732 os2*) 9733 hardcode_libdir_flag_spec='-L$libdir' 9734 hardcode_minus_L=yes 9735 allow_undefined_flag=unsupported 9736 shrext_cmds=.dll 9737 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9738 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9739 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9740 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9741 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9742 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9743 emximp -o $lib $output_objdir/$libname.def' 9744 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9745 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9746 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9747 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9748 prefix_cmds="$SED"~ 9749 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9750 prefix_cmds="$prefix_cmds -e 1d"; 9751 fi~ 9752 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9753 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9754 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9755 emximp -o $lib $output_objdir/$libname.def' 9756 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9757 enable_shared_with_static_runtimes=yes 9758 file_list_spec='@' 9759 ;; 9760 9761 interix[3-9]*) 9762 hardcode_direct=no 9763 hardcode_shlibpath_var=no 9764 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9765 export_dynamic_flag_spec='$wl-E' 9766 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9767 # Instead, shared libraries are loaded at an image base (0x10000000 by 9768 # default) and relocated if they conflict, which is a slow very memory 9769 # consuming and fragmenting process. To avoid this, we pick a random, 9770 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9771 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9773 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' 9774 ;; 9775 9776 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9777 tmp_diet=no 9778 if test linux-dietlibc = "$host_os"; then 9779 case $cc_basename in 9780 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9781 esac 9782 fi 9783 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9784 && test no = "$tmp_diet" 9785 then 9786 tmp_addflag=' $pic_flag' 9787 tmp_sharedflag='-shared' 9788 case $cc_basename,$host_cpu in 9789 pgcc*) # Portland Group C compiler 9790 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' 9791 tmp_addflag=' $pic_flag' 9792 ;; 9793 pgf77* | pgf90* | pgf95* | pgfortran*) 9794 # Portland Group f77 and f90 compilers 9795 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' 9796 tmp_addflag=' $pic_flag -Mnomain' ;; 9797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9798 tmp_addflag=' -i_dynamic' ;; 9799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9800 tmp_addflag=' -i_dynamic -nofor_main' ;; 9801 ifc* | ifort*) # Intel Fortran compiler 9802 tmp_addflag=' -nofor_main' ;; 9803 lf95*) # Lahey Fortran 8.1 9804 whole_archive_flag_spec= 9805 tmp_sharedflag='--shared' ;; 9806 nagfor*) # NAGFOR 5.3 9807 tmp_sharedflag='-Wl,-shared' ;; 9808 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9809 tmp_sharedflag='-qmkshrobj' 9810 tmp_addflag= ;; 9811 nvcc*) # Cuda Compiler Driver 2.2 9812 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' 9813 compiler_needs_object=yes 9814 ;; 9815 esac 9816 case `$CC -V 2>&1 | $SED 5q` in 9817 *Sun\ C*) # Sun C 5.9 9818 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' 9819 compiler_needs_object=yes 9820 tmp_sharedflag='-G' ;; 9821 *Sun\ F*) # Sun Fortran 8.3 9822 tmp_sharedflag='-G' ;; 9823 esac 9824 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9825 9826 if test yes = "$supports_anon_versioning"; then 9827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9828 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9829 echo "local: *; };" >> $output_objdir/$libname.ver~ 9830 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9831 fi 9832 9833 case $cc_basename in 9834 tcc*) 9835 export_dynamic_flag_spec='-rdynamic' 9836 ;; 9837 xlf* | bgf* | bgxlf* | mpixlf*) 9838 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9839 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9841 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9842 if test yes = "$supports_anon_versioning"; then 9843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9844 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9845 echo "local: *; };" >> $output_objdir/$libname.ver~ 9846 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9847 fi 9848 ;; 9849 esac 9850 else 9851 ld_shlibs=no 9852 fi 9853 ;; 9854 9855 netbsd*) 9856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9857 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9858 wlarc= 9859 else 9860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9861 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9862 fi 9863 ;; 9864 9865 solaris*) 9866 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9867 ld_shlibs=no 9868 cat <<_LT_EOF 1>&2 9869 9870*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9871*** create shared libraries on Solaris systems. Therefore, libtool 9872*** is disabling shared libraries support. We urge you to upgrade GNU 9873*** binutils to release 2.9.1 or newer. Another option is to modify 9874*** your PATH or compiler configuration so that the native linker is 9875*** used, and then restart. 9876 9877_LT_EOF 9878 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9881 else 9882 ld_shlibs=no 9883 fi 9884 ;; 9885 9886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9887 case `$LD -v 2>&1` in 9888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9889 ld_shlibs=no 9890 cat <<_LT_EOF 1>&2 9891 9892*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9893*** reliably create shared libraries on SCO systems. Therefore, libtool 9894*** is disabling shared libraries support. We urge you to upgrade GNU 9895*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9896*** your PATH or compiler configuration so that the native linker is 9897*** used, and then restart. 9898 9899_LT_EOF 9900 ;; 9901 *) 9902 # For security reasons, it is highly recommended that you always 9903 # use absolute paths for naming shared libraries, and exclude the 9904 # DT_RUNPATH tag from executables and libraries. But doing so 9905 # requires that you compile everything twice, which is a pain. 9906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9910 else 9911 ld_shlibs=no 9912 fi 9913 ;; 9914 esac 9915 ;; 9916 9917 sunos4*) 9918 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9919 wlarc= 9920 hardcode_direct=yes 9921 hardcode_shlibpath_var=no 9922 ;; 9923 9924 *) 9925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9927 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9928 else 9929 ld_shlibs=no 9930 fi 9931 ;; 9932 esac 9933 9934 if test no = "$ld_shlibs"; then 9935 runpath_var= 9936 hardcode_libdir_flag_spec= 9937 export_dynamic_flag_spec= 9938 whole_archive_flag_spec= 9939 fi 9940 else 9941 # PORTME fill in a description of your system's linker (not GNU ld) 9942 case $host_os in 9943 aix3*) 9944 allow_undefined_flag=unsupported 9945 always_export_symbols=yes 9946 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' 9947 # Note: this linker hardcodes the directories in LIBPATH if there 9948 # are no directories specified by -L. 9949 hardcode_minus_L=yes 9950 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9951 # Neither direct hardcoding nor static linking is supported with a 9952 # broken collect2. 9953 hardcode_direct=unsupported 9954 fi 9955 ;; 9956 9957 aix[4-9]*) 9958 if test ia64 = "$host_cpu"; then 9959 # On IA64, the linker does run time linking by default, so we don't 9960 # have to do anything special. 9961 aix_use_runtimelinking=no 9962 exp_sym_flag='-Bexport' 9963 no_entry_flag= 9964 else 9965 # If we're using GNU nm, then we don't want the "-C" option. 9966 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9967 # Without the "-l" option, or with the "-B" option, AIX nm treats 9968 # weak defined symbols like other global defined symbols, whereas 9969 # GNU nm marks them as "W". 9970 # While the 'weak' keyword is ignored in the Export File, we need 9971 # it in the Import File for the 'aix-soname' feature, so we have 9972 # to replace the "-B" option with "-P" for AIX nm. 9973 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9974 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9975 else 9976 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9977 fi 9978 aix_use_runtimelinking=no 9979 9980 # Test if we are trying to use run time linking or normal 9981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9982 # have runtime linking enabled, and use it for executables. 9983 # For shared libraries, we enable/disable runtime linking 9984 # depending on the kind of the shared library created - 9985 # when "with_aix_soname,aix_use_runtimelinking" is: 9986 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9987 # "aix,yes" lib.so shared, rtl:yes, for executables 9988 # lib.a static archive 9989 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9990 # lib.a(lib.so.V) shared, rtl:no, for executables 9991 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9992 # lib.a(lib.so.V) shared, rtl:no 9993 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9994 # lib.a static archive 9995 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9996 for ld_flag in $LDFLAGS; do 9997 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9998 aix_use_runtimelinking=yes 9999 break 10000 fi 10001 done 10002 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10003 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10004 # so we don't have lib.a shared libs to link our executables. 10005 # We have to force runtime linking in this case. 10006 aix_use_runtimelinking=yes 10007 LDFLAGS="$LDFLAGS -Wl,-brtl" 10008 fi 10009 ;; 10010 esac 10011 10012 exp_sym_flag='-bexport' 10013 no_entry_flag='-bnoentry' 10014 fi 10015 10016 # When large executables or shared objects are built, AIX ld can 10017 # have problems creating the table of contents. If linking a library 10018 # or program results in "error TOC overflow" add -mminimal-toc to 10019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10021 10022 archive_cmds='' 10023 hardcode_direct=yes 10024 hardcode_direct_absolute=yes 10025 hardcode_libdir_separator=':' 10026 link_all_deplibs=yes 10027 file_list_spec='$wl-f,' 10028 case $with_aix_soname,$aix_use_runtimelinking in 10029 aix,*) ;; # traditional, no import file 10030 svr4,* | *,yes) # use import file 10031 # The Import File defines what to hardcode. 10032 hardcode_direct=no 10033 hardcode_direct_absolute=no 10034 ;; 10035 esac 10036 10037 if test yes = "$GCC"; then 10038 case $host_os in aix4.[012]|aix4.[012].*) 10039 # We only want to do this on AIX 4.2 and lower, the check 10040 # below for broken collect2 doesn't work under 4.3+ 10041 collect2name=`$CC -print-prog-name=collect2` 10042 if test -f "$collect2name" && 10043 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10044 then 10045 # We have reworked collect2 10046 : 10047 else 10048 # We have old collect2 10049 hardcode_direct=unsupported 10050 # It fails to find uninstalled libraries when the uninstalled 10051 # path is not listed in the libpath. Setting hardcode_minus_L 10052 # to unsupported forces relinking 10053 hardcode_minus_L=yes 10054 hardcode_libdir_flag_spec='-L$libdir' 10055 hardcode_libdir_separator= 10056 fi 10057 ;; 10058 esac 10059 shared_flag='-shared' 10060 if test yes = "$aix_use_runtimelinking"; then 10061 shared_flag="$shared_flag "'$wl-G' 10062 fi 10063 # Need to ensure runtime linking is disabled for the traditional 10064 # shared library, or the linker may eventually find shared libraries 10065 # /with/ Import File - we do not want to mix them. 10066 shared_flag_aix='-shared' 10067 shared_flag_svr4='-shared $wl-G' 10068 else 10069 # not using gcc 10070 if test ia64 = "$host_cpu"; then 10071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10072 # chokes on -Wl,-G. The following line is correct: 10073 shared_flag='-G' 10074 else 10075 if test yes = "$aix_use_runtimelinking"; then 10076 shared_flag='$wl-G' 10077 else 10078 shared_flag='$wl-bM:SRE' 10079 fi 10080 shared_flag_aix='$wl-bM:SRE' 10081 shared_flag_svr4='$wl-G' 10082 fi 10083 fi 10084 10085 export_dynamic_flag_spec='$wl-bexpall' 10086 # It seems that -bexpall does not export symbols beginning with 10087 # underscore (_), so it is better to generate a list of symbols to export. 10088 always_export_symbols=yes 10089 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10090 # Warning - without using the other runtime loading flags (-brtl), 10091 # -berok will link without error, but may produce a broken library. 10092 allow_undefined_flag='-berok' 10093 # Determine the default libpath from the value encoded in an 10094 # empty executable. 10095 if test set = "${lt_cv_aix_libpath+set}"; then 10096 aix_libpath=$lt_cv_aix_libpath 10097else 10098 if test ${lt_cv_aix_libpath_+y} 10099then : 10100 printf %s "(cached) " >&6 10101else $as_nop 10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10103/* end confdefs.h. */ 10104 10105int 10106main (void) 10107{ 10108 10109 ; 10110 return 0; 10111} 10112_ACEOF 10113if ac_fn_c_try_link "$LINENO" 10114then : 10115 10116 lt_aix_libpath_sed=' 10117 /Import File Strings/,/^$/ { 10118 /^0/ { 10119 s/^0 *\([^ ]*\) *$/\1/ 10120 p 10121 } 10122 }' 10123 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10124 # Check for a 64-bit object if we didn't find anything. 10125 if test -z "$lt_cv_aix_libpath_"; then 10126 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10127 fi 10128fi 10129rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10130 conftest$ac_exeext conftest.$ac_ext 10131 if test -z "$lt_cv_aix_libpath_"; then 10132 lt_cv_aix_libpath_=/usr/lib:/lib 10133 fi 10134 10135fi 10136 10137 aix_libpath=$lt_cv_aix_libpath_ 10138fi 10139 10140 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10141 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10142 else 10143 if test ia64 = "$host_cpu"; then 10144 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10145 allow_undefined_flag="-z nodefs" 10146 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" 10147 else 10148 # Determine the default libpath from the value encoded in an 10149 # empty executable. 10150 if test set = "${lt_cv_aix_libpath+set}"; then 10151 aix_libpath=$lt_cv_aix_libpath 10152else 10153 if test ${lt_cv_aix_libpath_+y} 10154then : 10155 printf %s "(cached) " >&6 10156else $as_nop 10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10158/* end confdefs.h. */ 10159 10160int 10161main (void) 10162{ 10163 10164 ; 10165 return 0; 10166} 10167_ACEOF 10168if ac_fn_c_try_link "$LINENO" 10169then : 10170 10171 lt_aix_libpath_sed=' 10172 /Import File Strings/,/^$/ { 10173 /^0/ { 10174 s/^0 *\([^ ]*\) *$/\1/ 10175 p 10176 } 10177 }' 10178 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10179 # Check for a 64-bit object if we didn't find anything. 10180 if test -z "$lt_cv_aix_libpath_"; then 10181 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10182 fi 10183fi 10184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10185 conftest$ac_exeext conftest.$ac_ext 10186 if test -z "$lt_cv_aix_libpath_"; then 10187 lt_cv_aix_libpath_=/usr/lib:/lib 10188 fi 10189 10190fi 10191 10192 aix_libpath=$lt_cv_aix_libpath_ 10193fi 10194 10195 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10196 # Warning - without using the other run time loading flags, 10197 # -berok will link without error, but may produce a broken library. 10198 no_undefined_flag=' $wl-bernotok' 10199 allow_undefined_flag=' $wl-berok' 10200 if test yes = "$with_gnu_ld"; then 10201 # We only use this code for GNU lds that support --whole-archive. 10202 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10203 else 10204 # Exported symbols can be pulled into shared objects from archives 10205 whole_archive_flag_spec='$convenience' 10206 fi 10207 archive_cmds_need_lc=yes 10208 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10209 # -brtl affects multiple linker settings, -berok does not and is overridden later 10210 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10211 if test svr4 != "$with_aix_soname"; then 10212 # This is similar to how AIX traditionally builds its shared libraries. 10213 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10214 fi 10215 if test aix != "$with_aix_soname"; then 10216 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10217 else 10218 # used by -dlpreopen to get the symbols 10219 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10220 fi 10221 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10222 fi 10223 fi 10224 ;; 10225 10226 amigaos*) 10227 case $host_cpu in 10228 powerpc) 10229 # see comment about AmigaOS4 .so support 10230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10231 archive_expsym_cmds='' 10232 ;; 10233 m68k) 10234 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)' 10235 hardcode_libdir_flag_spec='-L$libdir' 10236 hardcode_minus_L=yes 10237 ;; 10238 esac 10239 ;; 10240 10241 bsdi[45]*) 10242 export_dynamic_flag_spec=-rdynamic 10243 ;; 10244 10245 cygwin* | mingw* | pw32* | cegcc*) 10246 # When not using gcc, we currently assume that we are using 10247 # Microsoft Visual C++ or Intel C++ Compiler. 10248 # hardcode_libdir_flag_spec is actually meaningless, as there is 10249 # no search path for DLLs. 10250 case $cc_basename in 10251 cl* | icl*) 10252 # Native MSVC or ICC 10253 hardcode_libdir_flag_spec=' ' 10254 allow_undefined_flag=unsupported 10255 always_export_symbols=yes 10256 file_list_spec='@' 10257 # Tell ltmain to make .lib files, not .a files. 10258 libext=lib 10259 # Tell ltmain to make .dll files, not .so files. 10260 shrext_cmds=.dll 10261 # FIXME: Setting linknames here is a bad hack. 10262 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10263 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10264 cp "$export_symbols" "$output_objdir/$soname.def"; 10265 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10266 else 10267 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10268 fi~ 10269 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10270 linknames=' 10271 # The linker will not automatically build a static lib if we build a DLL. 10272 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10273 enable_shared_with_static_runtimes=yes 10274 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10275 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10276 # Don't use ranlib 10277 old_postinstall_cmds='chmod 644 $oldlib' 10278 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10279 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10280 case $lt_outputfile in 10281 *.exe|*.EXE) ;; 10282 *) 10283 lt_outputfile=$lt_outputfile.exe 10284 lt_tool_outputfile=$lt_tool_outputfile.exe 10285 ;; 10286 esac~ 10287 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10288 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10289 $RM "$lt_outputfile.manifest"; 10290 fi' 10291 ;; 10292 *) 10293 # Assume MSVC and ICC wrapper 10294 hardcode_libdir_flag_spec=' ' 10295 allow_undefined_flag=unsupported 10296 # Tell ltmain to make .lib files, not .a files. 10297 libext=lib 10298 # Tell ltmain to make .dll files, not .so files. 10299 shrext_cmds=.dll 10300 # FIXME: Setting linknames here is a bad hack. 10301 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10302 # The linker will automatically build a .lib file if we build a DLL. 10303 old_archive_from_new_cmds='true' 10304 # FIXME: Should let the user specify the lib program. 10305 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10306 enable_shared_with_static_runtimes=yes 10307 ;; 10308 esac 10309 ;; 10310 10311 darwin* | rhapsody*) 10312 10313 10314 archive_cmds_need_lc=no 10315 hardcode_direct=no 10316 hardcode_automatic=yes 10317 hardcode_shlibpath_var=unsupported 10318 if test yes = "$lt_cv_ld_force_load"; then 10319 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\"`' 10320 10321 else 10322 whole_archive_flag_spec='' 10323 fi 10324 link_all_deplibs=yes 10325 allow_undefined_flag=$_lt_dar_allow_undefined 10326 case $cc_basename in 10327 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10328 *) _lt_dar_can_shared=$GCC ;; 10329 esac 10330 if test yes = "$_lt_dar_can_shared"; then 10331 output_verbose_link_cmd=func_echo_all 10332 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10333 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10334 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" 10335 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" 10336 10337 else 10338 ld_shlibs=no 10339 fi 10340 10341 ;; 10342 10343 dgux*) 10344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10345 hardcode_libdir_flag_spec='-L$libdir' 10346 hardcode_shlibpath_var=no 10347 ;; 10348 10349 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10350 # support. Future versions do this automatically, but an explicit c++rt0.o 10351 # does not break anything, and helps significantly (at the cost of a little 10352 # extra space). 10353 freebsd2.2*) 10354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10355 hardcode_libdir_flag_spec='-R$libdir' 10356 hardcode_direct=yes 10357 hardcode_shlibpath_var=no 10358 ;; 10359 10360 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10361 freebsd2.*) 10362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10363 hardcode_direct=yes 10364 hardcode_minus_L=yes 10365 hardcode_shlibpath_var=no 10366 ;; 10367 10368 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10369 freebsd* | dragonfly* | midnightbsd*) 10370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10371 hardcode_libdir_flag_spec='-R$libdir' 10372 hardcode_direct=yes 10373 hardcode_shlibpath_var=no 10374 ;; 10375 10376 hpux9*) 10377 if test yes = "$GCC"; then 10378 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10379 else 10380 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10381 fi 10382 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10383 hardcode_libdir_separator=: 10384 hardcode_direct=yes 10385 10386 # hardcode_minus_L: Not really in the search PATH, 10387 # but as the default location of the library. 10388 hardcode_minus_L=yes 10389 export_dynamic_flag_spec='$wl-E' 10390 ;; 10391 10392 hpux10*) 10393 if test yes,no = "$GCC,$with_gnu_ld"; then 10394 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10395 else 10396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10397 fi 10398 if test no = "$with_gnu_ld"; then 10399 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10400 hardcode_libdir_separator=: 10401 hardcode_direct=yes 10402 hardcode_direct_absolute=yes 10403 export_dynamic_flag_spec='$wl-E' 10404 # hardcode_minus_L: Not really in the search PATH, 10405 # but as the default location of the library. 10406 hardcode_minus_L=yes 10407 fi 10408 ;; 10409 10410 hpux11*) 10411 if test yes,no = "$GCC,$with_gnu_ld"; then 10412 case $host_cpu in 10413 hppa*64*) 10414 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10415 ;; 10416 ia64*) 10417 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10418 ;; 10419 *) 10420 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10421 ;; 10422 esac 10423 else 10424 case $host_cpu in 10425 hppa*64*) 10426 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10427 ;; 10428 ia64*) 10429 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10430 ;; 10431 *) 10432 10433 # Older versions of the 11.00 compiler do not understand -b yet 10434 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10436printf %s "checking if $CC understands -b... " >&6; } 10437if test ${lt_cv_prog_compiler__b+y} 10438then : 10439 printf %s "(cached) " >&6 10440else $as_nop 10441 lt_cv_prog_compiler__b=no 10442 save_LDFLAGS=$LDFLAGS 10443 LDFLAGS="$LDFLAGS -b" 10444 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10446 # The linker can only warn and ignore the option if not recognized 10447 # So say no if there are warnings 10448 if test -s conftest.err; then 10449 # Append any errors to the config.log. 10450 cat conftest.err 1>&5 10451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10453 if diff conftest.exp conftest.er2 >/dev/null; then 10454 lt_cv_prog_compiler__b=yes 10455 fi 10456 else 10457 lt_cv_prog_compiler__b=yes 10458 fi 10459 fi 10460 $RM -r conftest* 10461 LDFLAGS=$save_LDFLAGS 10462 10463fi 10464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10465printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10466 10467if test yes = "$lt_cv_prog_compiler__b"; then 10468 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10469else 10470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10471fi 10472 10473 ;; 10474 esac 10475 fi 10476 if test no = "$with_gnu_ld"; then 10477 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10478 hardcode_libdir_separator=: 10479 10480 case $host_cpu in 10481 hppa*64*|ia64*) 10482 hardcode_direct=no 10483 hardcode_shlibpath_var=no 10484 ;; 10485 *) 10486 hardcode_direct=yes 10487 hardcode_direct_absolute=yes 10488 export_dynamic_flag_spec='$wl-E' 10489 10490 # hardcode_minus_L: Not really in the search PATH, 10491 # but as the default location of the library. 10492 hardcode_minus_L=yes 10493 ;; 10494 esac 10495 fi 10496 ;; 10497 10498 irix5* | irix6* | nonstopux*) 10499 if test yes = "$GCC"; then 10500 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' 10501 # Try to use the -exported_symbol ld option, if it does not 10502 # work, assume that -exports_file does not work either and 10503 # implicitly export all symbols. 10504 # This should be the same for all languages, so no per-tag cache variable. 10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10506printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10507if test ${lt_cv_irix_exported_symbol+y} 10508then : 10509 printf %s "(cached) " >&6 10510else $as_nop 10511 save_LDFLAGS=$LDFLAGS 10512 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10514/* end confdefs.h. */ 10515int foo (void) { return 0; } 10516_ACEOF 10517if ac_fn_c_try_link "$LINENO" 10518then : 10519 lt_cv_irix_exported_symbol=yes 10520else $as_nop 10521 lt_cv_irix_exported_symbol=no 10522fi 10523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10524 conftest$ac_exeext conftest.$ac_ext 10525 LDFLAGS=$save_LDFLAGS 10526fi 10527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10528printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10529 if test yes = "$lt_cv_irix_exported_symbol"; then 10530 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' 10531 fi 10532 else 10533 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' 10534 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' 10535 fi 10536 archive_cmds_need_lc='no' 10537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10538 hardcode_libdir_separator=: 10539 inherit_rpath=yes 10540 link_all_deplibs=yes 10541 ;; 10542 10543 linux*) 10544 case $cc_basename in 10545 tcc*) 10546 # Fabrice Bellard et al's Tiny C Compiler 10547 ld_shlibs=yes 10548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10549 ;; 10550 esac 10551 ;; 10552 10553 netbsd*) 10554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10556 else 10557 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10558 fi 10559 hardcode_libdir_flag_spec='-R$libdir' 10560 hardcode_direct=yes 10561 hardcode_shlibpath_var=no 10562 ;; 10563 10564 newsos6) 10565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10566 hardcode_direct=yes 10567 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10568 hardcode_libdir_separator=: 10569 hardcode_shlibpath_var=no 10570 ;; 10571 10572 *nto* | *qnx*) 10573 ;; 10574 10575 openbsd* | bitrig*) 10576 if test -f /usr/libexec/ld.so; then 10577 hardcode_direct=yes 10578 hardcode_shlibpath_var=no 10579 hardcode_direct_absolute=yes 10580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10582 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10583 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10584 export_dynamic_flag_spec='$wl-E' 10585 else 10586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10587 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10588 fi 10589 else 10590 ld_shlibs=no 10591 fi 10592 ;; 10593 10594 os2*) 10595 hardcode_libdir_flag_spec='-L$libdir' 10596 hardcode_minus_L=yes 10597 allow_undefined_flag=unsupported 10598 shrext_cmds=.dll 10599 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10600 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10601 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10602 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10603 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10604 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10605 emximp -o $lib $output_objdir/$libname.def' 10606 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10607 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10608 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10609 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10610 prefix_cmds="$SED"~ 10611 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10612 prefix_cmds="$prefix_cmds -e 1d"; 10613 fi~ 10614 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10615 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10616 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10617 emximp -o $lib $output_objdir/$libname.def' 10618 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10619 enable_shared_with_static_runtimes=yes 10620 file_list_spec='@' 10621 ;; 10622 10623 osf3*) 10624 if test yes = "$GCC"; then 10625 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10626 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' 10627 else 10628 allow_undefined_flag=' -expect_unresolved \*' 10629 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' 10630 fi 10631 archive_cmds_need_lc='no' 10632 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10633 hardcode_libdir_separator=: 10634 ;; 10635 10636 osf4* | osf5*) # as osf3* with the addition of -msym flag 10637 if test yes = "$GCC"; then 10638 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10639 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' 10640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10641 else 10642 allow_undefined_flag=' -expect_unresolved \*' 10643 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' 10644 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~ 10645 $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' 10646 10647 # Both c and cxx compiler support -rpath directly 10648 hardcode_libdir_flag_spec='-rpath $libdir' 10649 fi 10650 archive_cmds_need_lc='no' 10651 hardcode_libdir_separator=: 10652 ;; 10653 10654 solaris*) 10655 no_undefined_flag=' -z defs' 10656 if test yes = "$GCC"; then 10657 wlarc='$wl' 10658 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10660 $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' 10661 else 10662 case `$CC -V 2>&1` in 10663 *"Compilers 5.0"*) 10664 wlarc='' 10665 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10666 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10667 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10668 ;; 10669 *) 10670 wlarc='$wl' 10671 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10672 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10673 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10674 ;; 10675 esac 10676 fi 10677 hardcode_libdir_flag_spec='-R$libdir' 10678 hardcode_shlibpath_var=no 10679 case $host_os in 10680 solaris2.[0-5] | solaris2.[0-5].*) ;; 10681 *) 10682 # The compiler driver will combine and reorder linker options, 10683 # but understands '-z linker_flag'. GCC discards it without '$wl', 10684 # but is careful enough not to reorder. 10685 # Supported since Solaris 2.6 (maybe 2.5.1?) 10686 if test yes = "$GCC"; then 10687 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10688 else 10689 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10690 fi 10691 ;; 10692 esac 10693 link_all_deplibs=yes 10694 ;; 10695 10696 sunos4*) 10697 if test sequent = "$host_vendor"; then 10698 # Use $CC to link under sequent, because it throws in some extra .o 10699 # files that make .init and .fini sections work. 10700 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10701 else 10702 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10703 fi 10704 hardcode_libdir_flag_spec='-L$libdir' 10705 hardcode_direct=yes 10706 hardcode_minus_L=yes 10707 hardcode_shlibpath_var=no 10708 ;; 10709 10710 sysv4) 10711 case $host_vendor in 10712 sni) 10713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10714 hardcode_direct=yes # is this really true??? 10715 ;; 10716 siemens) 10717 ## LD is ld it makes a PLAMLIB 10718 ## CC just makes a GrossModule. 10719 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10720 reload_cmds='$CC -r -o $output$reload_objs' 10721 hardcode_direct=no 10722 ;; 10723 motorola) 10724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10725 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10726 ;; 10727 esac 10728 runpath_var='LD_RUN_PATH' 10729 hardcode_shlibpath_var=no 10730 ;; 10731 10732 sysv4.3*) 10733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10734 hardcode_shlibpath_var=no 10735 export_dynamic_flag_spec='-Bexport' 10736 ;; 10737 10738 sysv4*MP*) 10739 if test -d /usr/nec; then 10740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10741 hardcode_shlibpath_var=no 10742 runpath_var=LD_RUN_PATH 10743 hardcode_runpath_var=yes 10744 ld_shlibs=yes 10745 fi 10746 ;; 10747 10748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10749 no_undefined_flag='$wl-z,text' 10750 archive_cmds_need_lc=no 10751 hardcode_shlibpath_var=no 10752 runpath_var='LD_RUN_PATH' 10753 10754 if test yes = "$GCC"; then 10755 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10756 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10757 else 10758 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10759 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10760 fi 10761 ;; 10762 10763 sysv5* | sco3.2v5* | sco5v6*) 10764 # Note: We CANNOT use -z defs as we might desire, because we do not 10765 # link with -lc, and that would cause any symbols used from libc to 10766 # always be unresolved, which means just about no library would 10767 # ever link correctly. If we're not using GNU ld we use -z text 10768 # though, which does catch some bad symbols but isn't as heavy-handed 10769 # as -z defs. 10770 no_undefined_flag='$wl-z,text' 10771 allow_undefined_flag='$wl-z,nodefs' 10772 archive_cmds_need_lc=no 10773 hardcode_shlibpath_var=no 10774 hardcode_libdir_flag_spec='$wl-R,$libdir' 10775 hardcode_libdir_separator=':' 10776 link_all_deplibs=yes 10777 export_dynamic_flag_spec='$wl-Bexport' 10778 runpath_var='LD_RUN_PATH' 10779 10780 if test yes = "$GCC"; then 10781 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10782 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10783 else 10784 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10785 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10786 fi 10787 ;; 10788 10789 uts4*) 10790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10791 hardcode_libdir_flag_spec='-L$libdir' 10792 hardcode_shlibpath_var=no 10793 ;; 10794 10795 *) 10796 ld_shlibs=no 10797 ;; 10798 esac 10799 10800 if test sni = "$host_vendor"; then 10801 case $host in 10802 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10803 export_dynamic_flag_spec='$wl-Blargedynsym' 10804 ;; 10805 esac 10806 fi 10807 fi 10808 10809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10810printf "%s\n" "$ld_shlibs" >&6; } 10811test no = "$ld_shlibs" && can_build_shared=no 10812 10813with_gnu_ld=$with_gnu_ld 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829# 10830# Do we need to explicitly link libc? 10831# 10832case "x$archive_cmds_need_lc" in 10833x|xyes) 10834 # Assume -lc should be added 10835 archive_cmds_need_lc=yes 10836 10837 if test yes,yes = "$GCC,$enable_shared"; then 10838 case $archive_cmds in 10839 *'~'*) 10840 # FIXME: we may have to deal with multi-command sequences. 10841 ;; 10842 '$CC '*) 10843 # Test whether the compiler implicitly links with -lc since on some 10844 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10845 # to ld, don't add -lc before -lgcc. 10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10847printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10848if test ${lt_cv_archive_cmds_need_lc+y} 10849then : 10850 printf %s "(cached) " >&6 10851else $as_nop 10852 $RM conftest* 10853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10854 10855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10856 (eval $ac_compile) 2>&5 10857 ac_status=$? 10858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10859 test $ac_status = 0; } 2>conftest.err; then 10860 soname=conftest 10861 lib=conftest 10862 libobjs=conftest.$ac_objext 10863 deplibs= 10864 wl=$lt_prog_compiler_wl 10865 pic_flag=$lt_prog_compiler_pic 10866 compiler_flags=-v 10867 linker_flags=-v 10868 verstring= 10869 output_objdir=. 10870 libname=conftest 10871 lt_save_allow_undefined_flag=$allow_undefined_flag 10872 allow_undefined_flag= 10873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10874 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10875 ac_status=$? 10876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10877 test $ac_status = 0; } 10878 then 10879 lt_cv_archive_cmds_need_lc=no 10880 else 10881 lt_cv_archive_cmds_need_lc=yes 10882 fi 10883 allow_undefined_flag=$lt_save_allow_undefined_flag 10884 else 10885 cat conftest.err 1>&5 10886 fi 10887 $RM conftest* 10888 10889fi 10890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10891printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10892 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10893 ;; 10894 esac 10895 fi 10896 ;; 10897esac 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11051printf %s "checking dynamic linker characteristics... " >&6; } 11052 11053if test yes = "$GCC"; then 11054 case $host_os in 11055 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11056 *) lt_awk_arg='/^libraries:/' ;; 11057 esac 11058 case $host_os in 11059 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11060 *) lt_sed_strip_eq='s|=/|/|g' ;; 11061 esac 11062 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11063 case $lt_search_path_spec in 11064 *\;*) 11065 # if the path contains ";" then we assume it to be the separator 11066 # otherwise default to the standard path separator (i.e. ":") - it is 11067 # assumed that no part of a normal pathname contains ";" but that should 11068 # okay in the real world where ";" in dirpaths is itself problematic. 11069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11070 ;; 11071 *) 11072 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11073 ;; 11074 esac 11075 # Ok, now we have the path, separated by spaces, we can step through it 11076 # and add multilib dir if necessary... 11077 lt_tmp_lt_search_path_spec= 11078 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11079 # ...but if some path component already ends with the multilib dir we assume 11080 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11081 case "$lt_multi_os_dir; $lt_search_path_spec " in 11082 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11083 lt_multi_os_dir= 11084 ;; 11085 esac 11086 for lt_sys_path in $lt_search_path_spec; do 11087 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11088 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11089 elif test -n "$lt_multi_os_dir"; then 11090 test -d "$lt_sys_path" && \ 11091 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11092 fi 11093 done 11094 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11095BEGIN {RS = " "; FS = "/|\n";} { 11096 lt_foo = ""; 11097 lt_count = 0; 11098 for (lt_i = NF; lt_i > 0; lt_i--) { 11099 if ($lt_i != "" && $lt_i != ".") { 11100 if ($lt_i == "..") { 11101 lt_count++; 11102 } else { 11103 if (lt_count == 0) { 11104 lt_foo = "/" $lt_i lt_foo; 11105 } else { 11106 lt_count--; 11107 } 11108 } 11109 } 11110 } 11111 if (lt_foo != "") { lt_freq[lt_foo]++; } 11112 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11113}'` 11114 # AWK program above erroneously prepends '/' to C:/dos/paths 11115 # for these hosts. 11116 case $host_os in 11117 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11118 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11119 esac 11120 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11121else 11122 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11123fi 11124library_names_spec= 11125libname_spec='lib$name' 11126soname_spec= 11127shrext_cmds=.so 11128postinstall_cmds= 11129postuninstall_cmds= 11130finish_cmds= 11131finish_eval= 11132shlibpath_var= 11133shlibpath_overrides_runpath=unknown 11134version_type=none 11135dynamic_linker="$host_os ld.so" 11136sys_lib_dlsearch_path_spec="/lib /usr/lib" 11137need_lib_prefix=unknown 11138hardcode_into_libs=no 11139 11140# when you set need_version to no, make sure it does not cause -set_version 11141# flags to be left without arguments 11142need_version=unknown 11143 11144 11145 11146case $host_os in 11147aix3*) 11148 version_type=linux # correct to gnu/linux during the next big refactor 11149 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11150 shlibpath_var=LIBPATH 11151 11152 # AIX 3 has no versioning support, so we append a major version to the name. 11153 soname_spec='$libname$release$shared_ext$major' 11154 ;; 11155 11156aix[4-9]*) 11157 version_type=linux # correct to gnu/linux during the next big refactor 11158 need_lib_prefix=no 11159 need_version=no 11160 hardcode_into_libs=yes 11161 if test ia64 = "$host_cpu"; then 11162 # AIX 5 supports IA64 11163 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11164 shlibpath_var=LD_LIBRARY_PATH 11165 else 11166 # With GCC up to 2.95.x, collect2 would create an import file 11167 # for dependence libraries. The import file would start with 11168 # the line '#! .'. This would cause the generated library to 11169 # depend on '.', always an invalid library. This was fixed in 11170 # development snapshots of GCC prior to 3.0. 11171 case $host_os in 11172 aix4 | aix4.[01] | aix4.[01].*) 11173 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11174 echo ' yes ' 11175 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11176 : 11177 else 11178 can_build_shared=no 11179 fi 11180 ;; 11181 esac 11182 # Using Import Files as archive members, it is possible to support 11183 # filename-based versioning of shared library archives on AIX. While 11184 # this would work for both with and without runtime linking, it will 11185 # prevent static linking of such archives. So we do filename-based 11186 # shared library versioning with .so extension only, which is used 11187 # when both runtime linking and shared linking is enabled. 11188 # Unfortunately, runtime linking may impact performance, so we do 11189 # not want this to be the default eventually. Also, we use the 11190 # versioned .so libs for executables only if there is the -brtl 11191 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11192 # To allow for filename-based versioning support, we need to create 11193 # libNAME.so.V as an archive file, containing: 11194 # *) an Import File, referring to the versioned filename of the 11195 # archive as well as the shared archive member, telling the 11196 # bitwidth (32 or 64) of that shared object, and providing the 11197 # list of exported symbols of that shared object, eventually 11198 # decorated with the 'weak' keyword 11199 # *) the shared object with the F_LOADONLY flag set, to really avoid 11200 # it being seen by the linker. 11201 # At run time we better use the real file rather than another symlink, 11202 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11203 11204 case $with_aix_soname,$aix_use_runtimelinking in 11205 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11206 # soname into executable. Probably we can add versioning support to 11207 # collect2, so additional links can be useful in future. 11208 aix,yes) # traditional libtool 11209 dynamic_linker='AIX unversionable lib.so' 11210 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11211 # instead of lib<name>.a to let people know that these are not 11212 # typical AIX shared libraries. 11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11214 ;; 11215 aix,no) # traditional AIX only 11216 dynamic_linker='AIX lib.a(lib.so.V)' 11217 # We preserve .a as extension for shared libraries through AIX4.2 11218 # and later when we are not doing run time linking. 11219 library_names_spec='$libname$release.a $libname.a' 11220 soname_spec='$libname$release$shared_ext$major' 11221 ;; 11222 svr4,*) # full svr4 only 11223 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11224 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11225 # We do not specify a path in Import Files, so LIBPATH fires. 11226 shlibpath_overrides_runpath=yes 11227 ;; 11228 *,yes) # both, prefer svr4 11229 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11230 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11231 # unpreferred sharedlib libNAME.a needs extra handling 11232 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11233 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11234 # We do not specify a path in Import Files, so LIBPATH fires. 11235 shlibpath_overrides_runpath=yes 11236 ;; 11237 *,no) # both, prefer aix 11238 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11239 library_names_spec='$libname$release.a $libname.a' 11240 soname_spec='$libname$release$shared_ext$major' 11241 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11242 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11243 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11244 ;; 11245 esac 11246 shlibpath_var=LIBPATH 11247 fi 11248 ;; 11249 11250amigaos*) 11251 case $host_cpu in 11252 powerpc) 11253 # Since July 2007 AmigaOS4 officially supports .so libraries. 11254 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11256 ;; 11257 m68k) 11258 library_names_spec='$libname.ixlibrary $libname.a' 11259 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11260 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11261 ;; 11262 esac 11263 ;; 11264 11265beos*) 11266 library_names_spec='$libname$shared_ext' 11267 dynamic_linker="$host_os ld.so" 11268 shlibpath_var=LIBRARY_PATH 11269 ;; 11270 11271bsdi[45]*) 11272 version_type=linux # correct to gnu/linux during the next big refactor 11273 need_version=no 11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11275 soname_spec='$libname$release$shared_ext$major' 11276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11277 shlibpath_var=LD_LIBRARY_PATH 11278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11280 # the default ld.so.conf also contains /usr/contrib/lib and 11281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11282 # libtool to hard-code these into programs 11283 ;; 11284 11285cygwin* | mingw* | pw32* | cegcc*) 11286 version_type=windows 11287 shrext_cmds=.dll 11288 need_version=no 11289 need_lib_prefix=no 11290 11291 case $GCC,$cc_basename in 11292 yes,*) 11293 # gcc 11294 library_names_spec='$libname.dll.a' 11295 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11296 postinstall_cmds='base_file=`basename \$file`~ 11297 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11298 dldir=$destdir/`dirname \$dlpath`~ 11299 test -d \$dldir || mkdir -p \$dldir~ 11300 $install_prog $dir/$dlname \$dldir/$dlname~ 11301 chmod a+x \$dldir/$dlname~ 11302 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11303 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11304 fi' 11305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11306 dlpath=$dir/\$dldll~ 11307 $RM \$dlpath' 11308 shlibpath_overrides_runpath=yes 11309 11310 case $host_os in 11311 cygwin*) 11312 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11313 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11314 11315 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11316 ;; 11317 mingw* | cegcc*) 11318 # MinGW DLLs use traditional 'lib' prefix 11319 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11320 ;; 11321 pw32*) 11322 # pw32 DLLs use 'pw' prefix rather than 'lib' 11323 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11324 ;; 11325 esac 11326 dynamic_linker='Win32 ld.exe' 11327 ;; 11328 11329 *,cl* | *,icl*) 11330 # Native MSVC or ICC 11331 libname_spec='$name' 11332 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11333 library_names_spec='$libname.dll.lib' 11334 11335 case $build_os in 11336 mingw*) 11337 sys_lib_search_path_spec= 11338 lt_save_ifs=$IFS 11339 IFS=';' 11340 for lt_path in $LIB 11341 do 11342 IFS=$lt_save_ifs 11343 # Let DOS variable expansion print the short 8.3 style file name. 11344 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11345 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11346 done 11347 IFS=$lt_save_ifs 11348 # Convert to MSYS style. 11349 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11350 ;; 11351 cygwin*) 11352 # Convert to unix form, then to dos form, then back to unix form 11353 # but this time dos style (no spaces!) so that the unix form looks 11354 # like /cygdrive/c/PROGRA~1:/cygdr... 11355 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11356 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11357 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11358 ;; 11359 *) 11360 sys_lib_search_path_spec=$LIB 11361 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11362 # It is most probably a Windows format PATH. 11363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11364 else 11365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11366 fi 11367 # FIXME: find the short name or the path components, as spaces are 11368 # common. (e.g. "Program Files" -> "PROGRA~1") 11369 ;; 11370 esac 11371 11372 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11373 postinstall_cmds='base_file=`basename \$file`~ 11374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11375 dldir=$destdir/`dirname \$dlpath`~ 11376 test -d \$dldir || mkdir -p \$dldir~ 11377 $install_prog $dir/$dlname \$dldir/$dlname' 11378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11379 dlpath=$dir/\$dldll~ 11380 $RM \$dlpath' 11381 shlibpath_overrides_runpath=yes 11382 dynamic_linker='Win32 link.exe' 11383 ;; 11384 11385 *) 11386 # Assume MSVC and ICC wrapper 11387 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11388 dynamic_linker='Win32 ld.exe' 11389 ;; 11390 esac 11391 # FIXME: first we should search . and the directory the executable is in 11392 shlibpath_var=PATH 11393 ;; 11394 11395darwin* | rhapsody*) 11396 dynamic_linker="$host_os dyld" 11397 version_type=darwin 11398 need_lib_prefix=no 11399 need_version=no 11400 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11401 soname_spec='$libname$release$major$shared_ext' 11402 shlibpath_overrides_runpath=yes 11403 shlibpath_var=DYLD_LIBRARY_PATH 11404 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11405 11406 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11407 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11408 ;; 11409 11410dgux*) 11411 version_type=linux # correct to gnu/linux during the next big refactor 11412 need_lib_prefix=no 11413 need_version=no 11414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11415 soname_spec='$libname$release$shared_ext$major' 11416 shlibpath_var=LD_LIBRARY_PATH 11417 ;; 11418 11419freebsd* | dragonfly* | midnightbsd*) 11420 # DragonFly does not have aout. When/if they implement a new 11421 # versioning mechanism, adjust this. 11422 if test -x /usr/bin/objformat; then 11423 objformat=`/usr/bin/objformat` 11424 else 11425 case $host_os in 11426 freebsd[23].*) objformat=aout ;; 11427 *) objformat=elf ;; 11428 esac 11429 fi 11430 version_type=freebsd-$objformat 11431 case $version_type in 11432 freebsd-elf*) 11433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11434 soname_spec='$libname$release$shared_ext$major' 11435 need_version=no 11436 need_lib_prefix=no 11437 ;; 11438 freebsd-*) 11439 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11440 need_version=yes 11441 ;; 11442 esac 11443 shlibpath_var=LD_LIBRARY_PATH 11444 case $host_os in 11445 freebsd2.*) 11446 shlibpath_overrides_runpath=yes 11447 ;; 11448 freebsd3.[01]* | freebsdelf3.[01]*) 11449 shlibpath_overrides_runpath=yes 11450 hardcode_into_libs=yes 11451 ;; 11452 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11453 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11454 shlibpath_overrides_runpath=no 11455 hardcode_into_libs=yes 11456 ;; 11457 *) # from 4.6 on, and DragonFly 11458 shlibpath_overrides_runpath=yes 11459 hardcode_into_libs=yes 11460 ;; 11461 esac 11462 ;; 11463 11464haiku*) 11465 version_type=linux # correct to gnu/linux during the next big refactor 11466 need_lib_prefix=no 11467 need_version=no 11468 dynamic_linker="$host_os runtime_loader" 11469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11470 soname_spec='$libname$release$shared_ext$major' 11471 shlibpath_var=LIBRARY_PATH 11472 shlibpath_overrides_runpath=no 11473 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11474 hardcode_into_libs=yes 11475 ;; 11476 11477hpux9* | hpux10* | hpux11*) 11478 # Give a soname corresponding to the major version so that dld.sl refuses to 11479 # link against other versions. 11480 version_type=sunos 11481 need_lib_prefix=no 11482 need_version=no 11483 case $host_cpu in 11484 ia64*) 11485 shrext_cmds='.so' 11486 hardcode_into_libs=yes 11487 dynamic_linker="$host_os dld.so" 11488 shlibpath_var=LD_LIBRARY_PATH 11489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11491 soname_spec='$libname$release$shared_ext$major' 11492 if test 32 = "$HPUX_IA64_MODE"; then 11493 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11494 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11495 else 11496 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11497 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11498 fi 11499 ;; 11500 hppa*64*) 11501 shrext_cmds='.sl' 11502 hardcode_into_libs=yes 11503 dynamic_linker="$host_os dld.sl" 11504 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11507 soname_spec='$libname$release$shared_ext$major' 11508 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11510 ;; 11511 *) 11512 shrext_cmds='.sl' 11513 dynamic_linker="$host_os dld.sl" 11514 shlibpath_var=SHLIB_PATH 11515 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11517 soname_spec='$libname$release$shared_ext$major' 11518 ;; 11519 esac 11520 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11521 postinstall_cmds='chmod 555 $lib' 11522 # or fails outright, so override atomically: 11523 install_override_mode=555 11524 ;; 11525 11526interix[3-9]*) 11527 version_type=linux # correct to gnu/linux during the next big refactor 11528 need_lib_prefix=no 11529 need_version=no 11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11531 soname_spec='$libname$release$shared_ext$major' 11532 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11533 shlibpath_var=LD_LIBRARY_PATH 11534 shlibpath_overrides_runpath=no 11535 hardcode_into_libs=yes 11536 ;; 11537 11538irix5* | irix6* | nonstopux*) 11539 case $host_os in 11540 nonstopux*) version_type=nonstopux ;; 11541 *) 11542 if test yes = "$lt_cv_prog_gnu_ld"; then 11543 version_type=linux # correct to gnu/linux during the next big refactor 11544 else 11545 version_type=irix 11546 fi ;; 11547 esac 11548 need_lib_prefix=no 11549 need_version=no 11550 soname_spec='$libname$release$shared_ext$major' 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11552 case $host_os in 11553 irix5* | nonstopux*) 11554 libsuff= shlibsuff= 11555 ;; 11556 *) 11557 case $LD in # libtool.m4 will add one of these switches to LD 11558 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11559 libsuff= shlibsuff= libmagic=32-bit;; 11560 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11561 libsuff=32 shlibsuff=N32 libmagic=N32;; 11562 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11563 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11564 *) libsuff= shlibsuff= libmagic=never-match;; 11565 esac 11566 ;; 11567 esac 11568 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11569 shlibpath_overrides_runpath=no 11570 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11571 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11572 hardcode_into_libs=yes 11573 ;; 11574 11575# No shared lib support for Linux oldld, aout, or coff. 11576linux*oldld* | linux*aout* | linux*coff*) 11577 dynamic_linker=no 11578 ;; 11579 11580linux*android*) 11581 version_type=none # Android doesn't support versioned libraries. 11582 need_lib_prefix=no 11583 need_version=no 11584 library_names_spec='$libname$release$shared_ext' 11585 soname_spec='$libname$release$shared_ext' 11586 finish_cmds= 11587 shlibpath_var=LD_LIBRARY_PATH 11588 shlibpath_overrides_runpath=yes 11589 11590 # This implies no fast_install, which is unacceptable. 11591 # Some rework will be needed to allow for fast_install 11592 # before this can be enabled. 11593 hardcode_into_libs=yes 11594 11595 dynamic_linker='Android linker' 11596 # Don't embed -rpath directories since the linker doesn't support them. 11597 hardcode_libdir_flag_spec='-L$libdir' 11598 ;; 11599 11600# This must be glibc/ELF. 11601linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11602 version_type=linux # correct to gnu/linux during the next big refactor 11603 need_lib_prefix=no 11604 need_version=no 11605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11606 soname_spec='$libname$release$shared_ext$major' 11607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11608 shlibpath_var=LD_LIBRARY_PATH 11609 shlibpath_overrides_runpath=no 11610 11611 # Some binutils ld are patched to set DT_RUNPATH 11612 if test ${lt_cv_shlibpath_overrides_runpath+y} 11613then : 11614 printf %s "(cached) " >&6 11615else $as_nop 11616 lt_cv_shlibpath_overrides_runpath=no 11617 save_LDFLAGS=$LDFLAGS 11618 save_libdir=$libdir 11619 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11620 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11622/* end confdefs.h. */ 11623 11624int 11625main (void) 11626{ 11627 11628 ; 11629 return 0; 11630} 11631_ACEOF 11632if ac_fn_c_try_link "$LINENO" 11633then : 11634 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11635then : 11636 lt_cv_shlibpath_overrides_runpath=yes 11637fi 11638fi 11639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11640 conftest$ac_exeext conftest.$ac_ext 11641 LDFLAGS=$save_LDFLAGS 11642 libdir=$save_libdir 11643 11644fi 11645 11646 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11647 11648 # This implies no fast_install, which is unacceptable. 11649 # Some rework will be needed to allow for fast_install 11650 # before this can be enabled. 11651 hardcode_into_libs=yes 11652 11653 # Ideally, we could use ldconfig to report *all* directores which are 11654 # searched for libraries, however this is still not possible. Aside from not 11655 # being certain /sbin/ldconfig is available, command 11656 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11657 # even though it is searched at run-time. Try to do the best guess by 11658 # appending ld.so.conf contents (and includes) to the search path. 11659 if test -f /etc/ld.so.conf; then 11660 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' ' '` 11661 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11662 fi 11663 11664 # We used to test for /lib/ld.so.1 and disable shared libraries on 11665 # powerpc, because MkLinux only supported shared libraries with the 11666 # GNU dynamic linker. Since this was broken with cross compilers, 11667 # most powerpc-linux boxes support dynamic linking these days and 11668 # people can always --disable-shared, the test was removed, and we 11669 # assume the GNU/Linux dynamic linker is in use. 11670 dynamic_linker='GNU/Linux ld.so' 11671 ;; 11672 11673netbsd*) 11674 version_type=sunos 11675 need_lib_prefix=no 11676 need_version=no 11677 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11678 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11680 dynamic_linker='NetBSD (a.out) ld.so' 11681 else 11682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11683 soname_spec='$libname$release$shared_ext$major' 11684 dynamic_linker='NetBSD ld.elf_so' 11685 fi 11686 shlibpath_var=LD_LIBRARY_PATH 11687 shlibpath_overrides_runpath=yes 11688 hardcode_into_libs=yes 11689 ;; 11690 11691newsos6) 11692 version_type=linux # correct to gnu/linux during the next big refactor 11693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11694 shlibpath_var=LD_LIBRARY_PATH 11695 shlibpath_overrides_runpath=yes 11696 ;; 11697 11698*nto* | *qnx*) 11699 version_type=qnx 11700 need_lib_prefix=no 11701 need_version=no 11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11703 soname_spec='$libname$release$shared_ext$major' 11704 shlibpath_var=LD_LIBRARY_PATH 11705 shlibpath_overrides_runpath=no 11706 hardcode_into_libs=yes 11707 dynamic_linker='ldqnx.so' 11708 ;; 11709 11710openbsd* | bitrig*) 11711 version_type=sunos 11712 sys_lib_dlsearch_path_spec=/usr/lib 11713 need_lib_prefix=no 11714 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11715 need_version=no 11716 else 11717 need_version=yes 11718 fi 11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11721 shlibpath_var=LD_LIBRARY_PATH 11722 shlibpath_overrides_runpath=yes 11723 ;; 11724 11725os2*) 11726 libname_spec='$name' 11727 version_type=windows 11728 shrext_cmds=.dll 11729 need_version=no 11730 need_lib_prefix=no 11731 # OS/2 can only load a DLL with a base name of 8 characters or less. 11732 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11733 v=$($ECHO $release$versuffix | tr -d .-); 11734 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11735 $ECHO $n$v`$shared_ext' 11736 library_names_spec='${libname}_dll.$libext' 11737 dynamic_linker='OS/2 ld.exe' 11738 shlibpath_var=BEGINLIBPATH 11739 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11741 postinstall_cmds='base_file=`basename \$file`~ 11742 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11743 dldir=$destdir/`dirname \$dlpath`~ 11744 test -d \$dldir || mkdir -p \$dldir~ 11745 $install_prog $dir/$dlname \$dldir/$dlname~ 11746 chmod a+x \$dldir/$dlname~ 11747 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11748 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11749 fi' 11750 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11751 dlpath=$dir/\$dldll~ 11752 $RM \$dlpath' 11753 ;; 11754 11755osf3* | osf4* | osf5*) 11756 version_type=osf 11757 need_lib_prefix=no 11758 need_version=no 11759 soname_spec='$libname$release$shared_ext$major' 11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11761 shlibpath_var=LD_LIBRARY_PATH 11762 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11764 ;; 11765 11766rdos*) 11767 dynamic_linker=no 11768 ;; 11769 11770solaris*) 11771 version_type=linux # correct to gnu/linux during the next big refactor 11772 need_lib_prefix=no 11773 need_version=no 11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11775 soname_spec='$libname$release$shared_ext$major' 11776 shlibpath_var=LD_LIBRARY_PATH 11777 shlibpath_overrides_runpath=yes 11778 hardcode_into_libs=yes 11779 # ldd complains unless libraries are executable 11780 postinstall_cmds='chmod +x $lib' 11781 ;; 11782 11783sunos4*) 11784 version_type=sunos 11785 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11786 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11787 shlibpath_var=LD_LIBRARY_PATH 11788 shlibpath_overrides_runpath=yes 11789 if test yes = "$with_gnu_ld"; then 11790 need_lib_prefix=no 11791 fi 11792 need_version=yes 11793 ;; 11794 11795sysv4 | sysv4.3*) 11796 version_type=linux # correct to gnu/linux during the next big refactor 11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11798 soname_spec='$libname$release$shared_ext$major' 11799 shlibpath_var=LD_LIBRARY_PATH 11800 case $host_vendor in 11801 sni) 11802 shlibpath_overrides_runpath=no 11803 need_lib_prefix=no 11804 runpath_var=LD_RUN_PATH 11805 ;; 11806 siemens) 11807 need_lib_prefix=no 11808 ;; 11809 motorola) 11810 need_lib_prefix=no 11811 need_version=no 11812 shlibpath_overrides_runpath=no 11813 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11814 ;; 11815 esac 11816 ;; 11817 11818sysv4*MP*) 11819 if test -d /usr/nec; then 11820 version_type=linux # correct to gnu/linux during the next big refactor 11821 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11822 soname_spec='$libname$shared_ext.$major' 11823 shlibpath_var=LD_LIBRARY_PATH 11824 fi 11825 ;; 11826 11827sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11828 version_type=sco 11829 need_lib_prefix=no 11830 need_version=no 11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11832 soname_spec='$libname$release$shared_ext$major' 11833 shlibpath_var=LD_LIBRARY_PATH 11834 shlibpath_overrides_runpath=yes 11835 hardcode_into_libs=yes 11836 if test yes = "$with_gnu_ld"; then 11837 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11838 else 11839 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11840 case $host_os in 11841 sco3.2v5*) 11842 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11843 ;; 11844 esac 11845 fi 11846 sys_lib_dlsearch_path_spec='/usr/lib' 11847 ;; 11848 11849tpf*) 11850 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11851 version_type=linux # correct to gnu/linux during the next big refactor 11852 need_lib_prefix=no 11853 need_version=no 11854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11855 shlibpath_var=LD_LIBRARY_PATH 11856 shlibpath_overrides_runpath=no 11857 hardcode_into_libs=yes 11858 ;; 11859 11860uts4*) 11861 version_type=linux # correct to gnu/linux during the next big refactor 11862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11863 soname_spec='$libname$release$shared_ext$major' 11864 shlibpath_var=LD_LIBRARY_PATH 11865 ;; 11866 11867*) 11868 dynamic_linker=no 11869 ;; 11870esac 11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11872printf "%s\n" "$dynamic_linker" >&6; } 11873test no = "$dynamic_linker" && can_build_shared=no 11874 11875variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11876if test yes = "$GCC"; then 11877 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11878fi 11879 11880if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11881 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11882fi 11883 11884if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11885 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11886fi 11887 11888# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11889configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11890 11891# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11892func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11893 11894# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11895configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11994printf %s "checking how to hardcode library paths into programs... " >&6; } 11995hardcode_action= 11996if test -n "$hardcode_libdir_flag_spec" || 11997 test -n "$runpath_var" || 11998 test yes = "$hardcode_automatic"; then 11999 12000 # We can hardcode non-existent directories. 12001 if test no != "$hardcode_direct" && 12002 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12003 # have to relink, otherwise we might link with an installed library 12004 # when we should be linking with a yet-to-be-installed one 12005 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12006 test no != "$hardcode_minus_L"; then 12007 # Linking always hardcodes the temporary library directory. 12008 hardcode_action=relink 12009 else 12010 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12011 hardcode_action=immediate 12012 fi 12013else 12014 # We cannot hardcode anything, or else we can only hardcode existing 12015 # directories. 12016 hardcode_action=unsupported 12017fi 12018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12019printf "%s\n" "$hardcode_action" >&6; } 12020 12021if test relink = "$hardcode_action" || 12022 test yes = "$inherit_rpath"; then 12023 # Fast installation is not supported 12024 enable_fast_install=no 12025elif test yes = "$shlibpath_overrides_runpath" || 12026 test no = "$enable_shared"; then 12027 # Fast installation is not necessary 12028 enable_fast_install=needless 12029fi 12030 12031 12032 12033 12034 12035 12036 if test yes != "$enable_dlopen"; then 12037 enable_dlopen=unknown 12038 enable_dlopen_self=unknown 12039 enable_dlopen_self_static=unknown 12040else 12041 lt_cv_dlopen=no 12042 lt_cv_dlopen_libs= 12043 12044 case $host_os in 12045 beos*) 12046 lt_cv_dlopen=load_add_on 12047 lt_cv_dlopen_libs= 12048 lt_cv_dlopen_self=yes 12049 ;; 12050 12051 mingw* | pw32* | cegcc*) 12052 lt_cv_dlopen=LoadLibrary 12053 lt_cv_dlopen_libs= 12054 ;; 12055 12056 cygwin*) 12057 lt_cv_dlopen=dlopen 12058 lt_cv_dlopen_libs= 12059 ;; 12060 12061 darwin*) 12062 # if libdl is installed we need to link against it 12063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12064printf %s "checking for dlopen in -ldl... " >&6; } 12065if test ${ac_cv_lib_dl_dlopen+y} 12066then : 12067 printf %s "(cached) " >&6 12068else $as_nop 12069 ac_check_lib_save_LIBS=$LIBS 12070LIBS="-ldl $LIBS" 12071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12072/* end confdefs.h. */ 12073 12074/* Override any GCC internal prototype to avoid an error. 12075 Use char because int might match the return type of a GCC 12076 builtin and then its argument prototype would still apply. */ 12077char dlopen (); 12078int 12079main (void) 12080{ 12081return dlopen (); 12082 ; 12083 return 0; 12084} 12085_ACEOF 12086if ac_fn_c_try_link "$LINENO" 12087then : 12088 ac_cv_lib_dl_dlopen=yes 12089else $as_nop 12090 ac_cv_lib_dl_dlopen=no 12091fi 12092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12093 conftest$ac_exeext conftest.$ac_ext 12094LIBS=$ac_check_lib_save_LIBS 12095fi 12096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12097printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12098if test "x$ac_cv_lib_dl_dlopen" = xyes 12099then : 12100 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12101else $as_nop 12102 12103 lt_cv_dlopen=dyld 12104 lt_cv_dlopen_libs= 12105 lt_cv_dlopen_self=yes 12106 12107fi 12108 12109 ;; 12110 12111 tpf*) 12112 # Don't try to run any link tests for TPF. We know it's impossible 12113 # because TPF is a cross-compiler, and we know how we open DSOs. 12114 lt_cv_dlopen=dlopen 12115 lt_cv_dlopen_libs= 12116 lt_cv_dlopen_self=no 12117 ;; 12118 12119 *) 12120 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12121if test "x$ac_cv_func_shl_load" = xyes 12122then : 12123 lt_cv_dlopen=shl_load 12124else $as_nop 12125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12126printf %s "checking for shl_load in -ldld... " >&6; } 12127if test ${ac_cv_lib_dld_shl_load+y} 12128then : 12129 printf %s "(cached) " >&6 12130else $as_nop 12131 ac_check_lib_save_LIBS=$LIBS 12132LIBS="-ldld $LIBS" 12133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12134/* end confdefs.h. */ 12135 12136/* Override any GCC internal prototype to avoid an error. 12137 Use char because int might match the return type of a GCC 12138 builtin and then its argument prototype would still apply. */ 12139char shl_load (); 12140int 12141main (void) 12142{ 12143return shl_load (); 12144 ; 12145 return 0; 12146} 12147_ACEOF 12148if ac_fn_c_try_link "$LINENO" 12149then : 12150 ac_cv_lib_dld_shl_load=yes 12151else $as_nop 12152 ac_cv_lib_dld_shl_load=no 12153fi 12154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12155 conftest$ac_exeext conftest.$ac_ext 12156LIBS=$ac_check_lib_save_LIBS 12157fi 12158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12159printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12160if test "x$ac_cv_lib_dld_shl_load" = xyes 12161then : 12162 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12163else $as_nop 12164 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12165if test "x$ac_cv_func_dlopen" = xyes 12166then : 12167 lt_cv_dlopen=dlopen 12168else $as_nop 12169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12170printf %s "checking for dlopen in -ldl... " >&6; } 12171if test ${ac_cv_lib_dl_dlopen+y} 12172then : 12173 printf %s "(cached) " >&6 12174else $as_nop 12175 ac_check_lib_save_LIBS=$LIBS 12176LIBS="-ldl $LIBS" 12177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12178/* end confdefs.h. */ 12179 12180/* Override any GCC internal prototype to avoid an error. 12181 Use char because int might match the return type of a GCC 12182 builtin and then its argument prototype would still apply. */ 12183char dlopen (); 12184int 12185main (void) 12186{ 12187return dlopen (); 12188 ; 12189 return 0; 12190} 12191_ACEOF 12192if ac_fn_c_try_link "$LINENO" 12193then : 12194 ac_cv_lib_dl_dlopen=yes 12195else $as_nop 12196 ac_cv_lib_dl_dlopen=no 12197fi 12198rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12199 conftest$ac_exeext conftest.$ac_ext 12200LIBS=$ac_check_lib_save_LIBS 12201fi 12202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12203printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12204if test "x$ac_cv_lib_dl_dlopen" = xyes 12205then : 12206 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12207else $as_nop 12208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12209printf %s "checking for dlopen in -lsvld... " >&6; } 12210if test ${ac_cv_lib_svld_dlopen+y} 12211then : 12212 printf %s "(cached) " >&6 12213else $as_nop 12214 ac_check_lib_save_LIBS=$LIBS 12215LIBS="-lsvld $LIBS" 12216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12217/* end confdefs.h. */ 12218 12219/* Override any GCC internal prototype to avoid an error. 12220 Use char because int might match the return type of a GCC 12221 builtin and then its argument prototype would still apply. */ 12222char dlopen (); 12223int 12224main (void) 12225{ 12226return dlopen (); 12227 ; 12228 return 0; 12229} 12230_ACEOF 12231if ac_fn_c_try_link "$LINENO" 12232then : 12233 ac_cv_lib_svld_dlopen=yes 12234else $as_nop 12235 ac_cv_lib_svld_dlopen=no 12236fi 12237rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12238 conftest$ac_exeext conftest.$ac_ext 12239LIBS=$ac_check_lib_save_LIBS 12240fi 12241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12242printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12243if test "x$ac_cv_lib_svld_dlopen" = xyes 12244then : 12245 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12246else $as_nop 12247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12248printf %s "checking for dld_link in -ldld... " >&6; } 12249if test ${ac_cv_lib_dld_dld_link+y} 12250then : 12251 printf %s "(cached) " >&6 12252else $as_nop 12253 ac_check_lib_save_LIBS=$LIBS 12254LIBS="-ldld $LIBS" 12255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12256/* end confdefs.h. */ 12257 12258/* Override any GCC internal prototype to avoid an error. 12259 Use char because int might match the return type of a GCC 12260 builtin and then its argument prototype would still apply. */ 12261char dld_link (); 12262int 12263main (void) 12264{ 12265return dld_link (); 12266 ; 12267 return 0; 12268} 12269_ACEOF 12270if ac_fn_c_try_link "$LINENO" 12271then : 12272 ac_cv_lib_dld_dld_link=yes 12273else $as_nop 12274 ac_cv_lib_dld_dld_link=no 12275fi 12276rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12277 conftest$ac_exeext conftest.$ac_ext 12278LIBS=$ac_check_lib_save_LIBS 12279fi 12280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12281printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12282if test "x$ac_cv_lib_dld_dld_link" = xyes 12283then : 12284 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12285fi 12286 12287 12288fi 12289 12290 12291fi 12292 12293 12294fi 12295 12296 12297fi 12298 12299 12300fi 12301 12302 ;; 12303 esac 12304 12305 if test no = "$lt_cv_dlopen"; then 12306 enable_dlopen=no 12307 else 12308 enable_dlopen=yes 12309 fi 12310 12311 case $lt_cv_dlopen in 12312 dlopen) 12313 save_CPPFLAGS=$CPPFLAGS 12314 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12315 12316 save_LDFLAGS=$LDFLAGS 12317 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12318 12319 save_LIBS=$LIBS 12320 LIBS="$lt_cv_dlopen_libs $LIBS" 12321 12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12323printf %s "checking whether a program can dlopen itself... " >&6; } 12324if test ${lt_cv_dlopen_self+y} 12325then : 12326 printf %s "(cached) " >&6 12327else $as_nop 12328 if test yes = "$cross_compiling"; then : 12329 lt_cv_dlopen_self=cross 12330else 12331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12332 lt_status=$lt_dlunknown 12333 cat > conftest.$ac_ext <<_LT_EOF 12334#line $LINENO "configure" 12335#include "confdefs.h" 12336 12337#if HAVE_DLFCN_H 12338#include <dlfcn.h> 12339#endif 12340 12341#include <stdio.h> 12342 12343#ifdef RTLD_GLOBAL 12344# define LT_DLGLOBAL RTLD_GLOBAL 12345#else 12346# ifdef DL_GLOBAL 12347# define LT_DLGLOBAL DL_GLOBAL 12348# else 12349# define LT_DLGLOBAL 0 12350# endif 12351#endif 12352 12353/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12354 find out it does not work in some platform. */ 12355#ifndef LT_DLLAZY_OR_NOW 12356# ifdef RTLD_LAZY 12357# define LT_DLLAZY_OR_NOW RTLD_LAZY 12358# else 12359# ifdef DL_LAZY 12360# define LT_DLLAZY_OR_NOW DL_LAZY 12361# else 12362# ifdef RTLD_NOW 12363# define LT_DLLAZY_OR_NOW RTLD_NOW 12364# else 12365# ifdef DL_NOW 12366# define LT_DLLAZY_OR_NOW DL_NOW 12367# else 12368# define LT_DLLAZY_OR_NOW 0 12369# endif 12370# endif 12371# endif 12372# endif 12373#endif 12374 12375/* When -fvisibility=hidden is used, assume the code has been annotated 12376 correspondingly for the symbols needed. */ 12377#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12378int fnord () __attribute__((visibility("default"))); 12379#endif 12380 12381int fnord () { return 42; } 12382int main () 12383{ 12384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12385 int status = $lt_dlunknown; 12386 12387 if (self) 12388 { 12389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12390 else 12391 { 12392 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12393 else puts (dlerror ()); 12394 } 12395 /* dlclose (self); */ 12396 } 12397 else 12398 puts (dlerror ()); 12399 12400 return status; 12401} 12402_LT_EOF 12403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12404 (eval $ac_link) 2>&5 12405 ac_status=$? 12406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12407 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12408 (./conftest; exit; ) >&5 2>/dev/null 12409 lt_status=$? 12410 case x$lt_status in 12411 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12412 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12413 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12414 esac 12415 else : 12416 # compilation failed 12417 lt_cv_dlopen_self=no 12418 fi 12419fi 12420rm -fr conftest* 12421 12422 12423fi 12424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12425printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12426 12427 if test yes = "$lt_cv_dlopen_self"; then 12428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12430printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12431if test ${lt_cv_dlopen_self_static+y} 12432then : 12433 printf %s "(cached) " >&6 12434else $as_nop 12435 if test yes = "$cross_compiling"; then : 12436 lt_cv_dlopen_self_static=cross 12437else 12438 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12439 lt_status=$lt_dlunknown 12440 cat > conftest.$ac_ext <<_LT_EOF 12441#line $LINENO "configure" 12442#include "confdefs.h" 12443 12444#if HAVE_DLFCN_H 12445#include <dlfcn.h> 12446#endif 12447 12448#include <stdio.h> 12449 12450#ifdef RTLD_GLOBAL 12451# define LT_DLGLOBAL RTLD_GLOBAL 12452#else 12453# ifdef DL_GLOBAL 12454# define LT_DLGLOBAL DL_GLOBAL 12455# else 12456# define LT_DLGLOBAL 0 12457# endif 12458#endif 12459 12460/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12461 find out it does not work in some platform. */ 12462#ifndef LT_DLLAZY_OR_NOW 12463# ifdef RTLD_LAZY 12464# define LT_DLLAZY_OR_NOW RTLD_LAZY 12465# else 12466# ifdef DL_LAZY 12467# define LT_DLLAZY_OR_NOW DL_LAZY 12468# else 12469# ifdef RTLD_NOW 12470# define LT_DLLAZY_OR_NOW RTLD_NOW 12471# else 12472# ifdef DL_NOW 12473# define LT_DLLAZY_OR_NOW DL_NOW 12474# else 12475# define LT_DLLAZY_OR_NOW 0 12476# endif 12477# endif 12478# endif 12479# endif 12480#endif 12481 12482/* When -fvisibility=hidden is used, assume the code has been annotated 12483 correspondingly for the symbols needed. */ 12484#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12485int fnord () __attribute__((visibility("default"))); 12486#endif 12487 12488int fnord () { return 42; } 12489int main () 12490{ 12491 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12492 int status = $lt_dlunknown; 12493 12494 if (self) 12495 { 12496 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12497 else 12498 { 12499 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12500 else puts (dlerror ()); 12501 } 12502 /* dlclose (self); */ 12503 } 12504 else 12505 puts (dlerror ()); 12506 12507 return status; 12508} 12509_LT_EOF 12510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12511 (eval $ac_link) 2>&5 12512 ac_status=$? 12513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12514 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12515 (./conftest; exit; ) >&5 2>/dev/null 12516 lt_status=$? 12517 case x$lt_status in 12518 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12519 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12520 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12521 esac 12522 else : 12523 # compilation failed 12524 lt_cv_dlopen_self_static=no 12525 fi 12526fi 12527rm -fr conftest* 12528 12529 12530fi 12531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12532printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12533 fi 12534 12535 CPPFLAGS=$save_CPPFLAGS 12536 LDFLAGS=$save_LDFLAGS 12537 LIBS=$save_LIBS 12538 ;; 12539 esac 12540 12541 case $lt_cv_dlopen_self in 12542 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12543 *) enable_dlopen_self=unknown ;; 12544 esac 12545 12546 case $lt_cv_dlopen_self_static in 12547 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12548 *) enable_dlopen_self_static=unknown ;; 12549 esac 12550fi 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568striplib= 12569old_striplib= 12570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12571printf %s "checking whether stripping libraries is possible... " >&6; } 12572if test -z "$STRIP"; then 12573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12574printf "%s\n" "no" >&6; } 12575else 12576 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12577 old_striplib="$STRIP --strip-debug" 12578 striplib="$STRIP --strip-unneeded" 12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12580printf "%s\n" "yes" >&6; } 12581 else 12582 case $host_os in 12583 darwin*) 12584 # FIXME - insert some real tests, host_os isn't really good enough 12585 striplib="$STRIP -x" 12586 old_striplib="$STRIP -S" 12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12588printf "%s\n" "yes" >&6; } 12589 ;; 12590 freebsd*) 12591 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12592 old_striplib="$STRIP --strip-debug" 12593 striplib="$STRIP --strip-unneeded" 12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12595printf "%s\n" "yes" >&6; } 12596 else 12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12598printf "%s\n" "no" >&6; } 12599 fi 12600 ;; 12601 *) 12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12603printf "%s\n" "no" >&6; } 12604 ;; 12605 esac 12606 fi 12607fi 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 # Report what library types will actually be built 12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12622printf %s "checking if libtool supports shared libraries... " >&6; } 12623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12624printf "%s\n" "$can_build_shared" >&6; } 12625 12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12627printf %s "checking whether to build shared libraries... " >&6; } 12628 test no = "$can_build_shared" && enable_shared=no 12629 12630 # On AIX, shared libraries and static libraries use the same namespace, and 12631 # are all built from PIC. 12632 case $host_os in 12633 aix3*) 12634 test yes = "$enable_shared" && enable_static=no 12635 if test -n "$RANLIB"; then 12636 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12637 postinstall_cmds='$RANLIB $lib' 12638 fi 12639 ;; 12640 12641 aix[4-9]*) 12642 if test ia64 != "$host_cpu"; then 12643 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12644 yes,aix,yes) ;; # shared object as lib.so file only 12645 yes,svr4,*) ;; # shared object as lib.so archive member only 12646 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12647 esac 12648 fi 12649 ;; 12650 esac 12651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12652printf "%s\n" "$enable_shared" >&6; } 12653 12654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12655printf %s "checking whether to build static libraries... " >&6; } 12656 # Make sure either enable_shared or enable_static is yes. 12657 test yes = "$enable_shared" || enable_static=yes 12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12659printf "%s\n" "$enable_static" >&6; } 12660 12661 12662 12663 12664fi 12665ac_ext=c 12666ac_cpp='$CPP $CPPFLAGS' 12667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12669ac_compiler_gnu=$ac_cv_c_compiler_gnu 12670 12671CC=$lt_save_CC 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 ac_config_commands="$ac_config_commands libtool" 12688 12689 12690 12691 12692# Only expand once: 12693 12694 12695 12696# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12709printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12710if test ${ac_cv_c_undeclared_builtin_options+y} 12711then : 12712 printf %s "(cached) " >&6 12713else $as_nop 12714 ac_save_CFLAGS=$CFLAGS 12715 ac_cv_c_undeclared_builtin_options='cannot detect' 12716 for ac_arg in '' -fno-builtin; do 12717 CFLAGS="$ac_save_CFLAGS $ac_arg" 12718 # This test program should *not* compile successfully. 12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12720/* end confdefs.h. */ 12721 12722int 12723main (void) 12724{ 12725(void) strchr; 12726 ; 12727 return 0; 12728} 12729_ACEOF 12730if ac_fn_c_try_compile "$LINENO" 12731then : 12732 12733else $as_nop 12734 # This test program should compile successfully. 12735 # No library function is consistently available on 12736 # freestanding implementations, so test against a dummy 12737 # declaration. Include always-available headers on the 12738 # off chance that they somehow elicit warnings. 12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12740/* end confdefs.h. */ 12741#include <float.h> 12742#include <limits.h> 12743#include <stdarg.h> 12744#include <stddef.h> 12745extern void ac_decl (int, char *); 12746 12747int 12748main (void) 12749{ 12750(void) ac_decl (0, (char *) 0); 12751 (void) ac_decl; 12752 12753 ; 12754 return 0; 12755} 12756_ACEOF 12757if ac_fn_c_try_compile "$LINENO" 12758then : 12759 if test x"$ac_arg" = x 12760then : 12761 ac_cv_c_undeclared_builtin_options='none needed' 12762else $as_nop 12763 ac_cv_c_undeclared_builtin_options=$ac_arg 12764fi 12765 break 12766fi 12767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12768fi 12769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12770 done 12771 CFLAGS=$ac_save_CFLAGS 12772 12773fi 12774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12775printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12776 case $ac_cv_c_undeclared_builtin_options in #( 12777 'cannot detect') : 12778 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12779printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12780as_fn_error $? "cannot make $CC report undeclared builtins 12781See \`config.log' for more details" "$LINENO" 5; } ;; #( 12782 'none needed') : 12783 ac_c_undeclared_builtin_options='' ;; #( 12784 *) : 12785 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12786esac 12787 12788 12789 12790 12791 12792ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12793if test "x$ac_cv_have_decl___clang__" = xyes 12794then : 12795 CLANGCC="yes" 12796else $as_nop 12797 CLANGCC="no" 12798fi 12799ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12800if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12801then : 12802 INTELCC="yes" 12803else $as_nop 12804 INTELCC="no" 12805fi 12806ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12807if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12808then : 12809 SUNCC="yes" 12810else $as_nop 12811 SUNCC="no" 12812fi 12813 12814 12815 12816 12817 12818 12819 12820 12821if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12822 if test -n "$ac_tool_prefix"; then 12823 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12824set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12826printf %s "checking for $ac_word... " >&6; } 12827if test ${ac_cv_path_PKG_CONFIG+y} 12828then : 12829 printf %s "(cached) " >&6 12830else $as_nop 12831 case $PKG_CONFIG in 12832 [\\/]* | ?:[\\/]*) 12833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12834 ;; 12835 *) 12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12837for as_dir in $PATH 12838do 12839 IFS=$as_save_IFS 12840 case $as_dir in #((( 12841 '') as_dir=./ ;; 12842 */) ;; 12843 *) as_dir=$as_dir/ ;; 12844 esac 12845 for ac_exec_ext in '' $ac_executable_extensions; do 12846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12847 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12849 break 2 12850 fi 12851done 12852 done 12853IFS=$as_save_IFS 12854 12855 ;; 12856esac 12857fi 12858PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12859if test -n "$PKG_CONFIG"; then 12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12861printf "%s\n" "$PKG_CONFIG" >&6; } 12862else 12863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12864printf "%s\n" "no" >&6; } 12865fi 12866 12867 12868fi 12869if test -z "$ac_cv_path_PKG_CONFIG"; then 12870 ac_pt_PKG_CONFIG=$PKG_CONFIG 12871 # Extract the first word of "pkg-config", so it can be a program name with args. 12872set dummy pkg-config; ac_word=$2 12873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12874printf %s "checking for $ac_word... " >&6; } 12875if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12876then : 12877 printf %s "(cached) " >&6 12878else $as_nop 12879 case $ac_pt_PKG_CONFIG in 12880 [\\/]* | ?:[\\/]*) 12881 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12882 ;; 12883 *) 12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12885for as_dir in $PATH 12886do 12887 IFS=$as_save_IFS 12888 case $as_dir in #((( 12889 '') as_dir=./ ;; 12890 */) ;; 12891 *) as_dir=$as_dir/ ;; 12892 esac 12893 for ac_exec_ext in '' $ac_executable_extensions; do 12894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12895 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12897 break 2 12898 fi 12899done 12900 done 12901IFS=$as_save_IFS 12902 12903 ;; 12904esac 12905fi 12906ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12907if test -n "$ac_pt_PKG_CONFIG"; then 12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12909printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12910else 12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12912printf "%s\n" "no" >&6; } 12913fi 12914 12915 if test "x$ac_pt_PKG_CONFIG" = x; then 12916 PKG_CONFIG="" 12917 else 12918 case $cross_compiling:$ac_tool_warned in 12919yes:) 12920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12921printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12922ac_tool_warned=yes ;; 12923esac 12924 PKG_CONFIG=$ac_pt_PKG_CONFIG 12925 fi 12926else 12927 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12928fi 12929 12930fi 12931if test -n "$PKG_CONFIG"; then 12932 _pkg_min_version=0.9.0 12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12934printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12935 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12937printf "%s\n" "yes" >&6; } 12938 else 12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12940printf "%s\n" "no" >&6; } 12941 PKG_CONFIG="" 12942 fi 12943fi 12944 12945 12946 12947 12948 12949# Check whether --enable-selective-werror was given. 12950if test ${enable_selective_werror+y} 12951then : 12952 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12953else $as_nop 12954 SELECTIVE_WERROR=yes 12955fi 12956 12957 12958 12959 12960 12961# -v is too short to test reliably with XORG_TESTSET_CFLAG 12962if test "x$SUNCC" = "xyes"; then 12963 BASE_CFLAGS="-v" 12964else 12965 BASE_CFLAGS="" 12966fi 12967 12968# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982xorg_testset_save_CFLAGS="$CFLAGS" 12983 12984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12988if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12989then : 12990 printf %s "(cached) " >&6 12991else $as_nop 12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12993/* end confdefs.h. */ 12994int i; 12995_ACEOF 12996if ac_fn_c_try_compile "$LINENO" 12997then : 12998 xorg_cv_cc_flag_unknown_warning_option=yes 12999else $as_nop 13000 xorg_cv_cc_flag_unknown_warning_option=no 13001fi 13002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13003fi 13004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13007 CFLAGS="$xorg_testset_save_CFLAGS" 13008fi 13009 13010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13013 fi 13014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13017if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13018then : 13019 printf %s "(cached) " >&6 13020else $as_nop 13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13022/* end confdefs.h. */ 13023int i; 13024_ACEOF 13025if ac_fn_c_try_compile "$LINENO" 13026then : 13027 xorg_cv_cc_flag_unused_command_line_argument=yes 13028else $as_nop 13029 xorg_cv_cc_flag_unused_command_line_argument=no 13030fi 13031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13032fi 13033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13036 CFLAGS="$xorg_testset_save_CFLAGS" 13037fi 13038 13039found="no" 13040 13041 if test $found = "no" ; then 13042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13044 fi 13045 13046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13048 fi 13049 13050 CFLAGS="$CFLAGS -Wall" 13051 13052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13053printf %s "checking if $CC supports -Wall... " >&6; } 13054 cacheid=xorg_cv_cc_flag__Wall 13055 if eval test \${$cacheid+y} 13056then : 13057 printf %s "(cached) " >&6 13058else $as_nop 13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13060/* end confdefs.h. */ 13061int i; 13062int 13063main (void) 13064{ 13065 13066 ; 13067 return 0; 13068} 13069_ACEOF 13070if ac_fn_c_try_link "$LINENO" 13071then : 13072 eval $cacheid=yes 13073else $as_nop 13074 eval $cacheid=no 13075fi 13076rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13077 conftest$ac_exeext conftest.$ac_ext 13078fi 13079 13080 13081 CFLAGS="$xorg_testset_save_CFLAGS" 13082 13083 eval supported=\$$cacheid 13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13085printf "%s\n" "$supported" >&6; } 13086 if test "$supported" = "yes" ; then 13087 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13088 found="yes" 13089 fi 13090 fi 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106xorg_testset_save_CFLAGS="$CFLAGS" 13107 13108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13112if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13113then : 13114 printf %s "(cached) " >&6 13115else $as_nop 13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13117/* end confdefs.h. */ 13118int i; 13119_ACEOF 13120if ac_fn_c_try_compile "$LINENO" 13121then : 13122 xorg_cv_cc_flag_unknown_warning_option=yes 13123else $as_nop 13124 xorg_cv_cc_flag_unknown_warning_option=no 13125fi 13126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13127fi 13128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13131 CFLAGS="$xorg_testset_save_CFLAGS" 13132fi 13133 13134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13137 fi 13138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13141if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13142then : 13143 printf %s "(cached) " >&6 13144else $as_nop 13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13146/* end confdefs.h. */ 13147int i; 13148_ACEOF 13149if ac_fn_c_try_compile "$LINENO" 13150then : 13151 xorg_cv_cc_flag_unused_command_line_argument=yes 13152else $as_nop 13153 xorg_cv_cc_flag_unused_command_line_argument=no 13154fi 13155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13156fi 13157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13158printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13160 CFLAGS="$xorg_testset_save_CFLAGS" 13161fi 13162 13163found="no" 13164 13165 if test $found = "no" ; then 13166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13168 fi 13169 13170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13172 fi 13173 13174 CFLAGS="$CFLAGS -Wpointer-arith" 13175 13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13177printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13178 cacheid=xorg_cv_cc_flag__Wpointer_arith 13179 if eval test \${$cacheid+y} 13180then : 13181 printf %s "(cached) " >&6 13182else $as_nop 13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13184/* end confdefs.h. */ 13185int i; 13186int 13187main (void) 13188{ 13189 13190 ; 13191 return 0; 13192} 13193_ACEOF 13194if ac_fn_c_try_link "$LINENO" 13195then : 13196 eval $cacheid=yes 13197else $as_nop 13198 eval $cacheid=no 13199fi 13200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13201 conftest$ac_exeext conftest.$ac_ext 13202fi 13203 13204 13205 CFLAGS="$xorg_testset_save_CFLAGS" 13206 13207 eval supported=\$$cacheid 13208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13209printf "%s\n" "$supported" >&6; } 13210 if test "$supported" = "yes" ; then 13211 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13212 found="yes" 13213 fi 13214 fi 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230xorg_testset_save_CFLAGS="$CFLAGS" 13231 13232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13236if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13237then : 13238 printf %s "(cached) " >&6 13239else $as_nop 13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242int i; 13243_ACEOF 13244if ac_fn_c_try_compile "$LINENO" 13245then : 13246 xorg_cv_cc_flag_unknown_warning_option=yes 13247else $as_nop 13248 xorg_cv_cc_flag_unknown_warning_option=no 13249fi 13250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13251fi 13252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13253printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13254 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13255 CFLAGS="$xorg_testset_save_CFLAGS" 13256fi 13257 13258if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13261 fi 13262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13264printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13265if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13266then : 13267 printf %s "(cached) " >&6 13268else $as_nop 13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13270/* end confdefs.h. */ 13271int i; 13272_ACEOF 13273if ac_fn_c_try_compile "$LINENO" 13274then : 13275 xorg_cv_cc_flag_unused_command_line_argument=yes 13276else $as_nop 13277 xorg_cv_cc_flag_unused_command_line_argument=no 13278fi 13279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13280fi 13281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13284 CFLAGS="$xorg_testset_save_CFLAGS" 13285fi 13286 13287found="no" 13288 13289 if test $found = "no" ; then 13290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13292 fi 13293 13294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13296 fi 13297 13298 CFLAGS="$CFLAGS -Wmissing-declarations" 13299 13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13301printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13302 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13303 if eval test \${$cacheid+y} 13304then : 13305 printf %s "(cached) " >&6 13306else $as_nop 13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13308/* end confdefs.h. */ 13309int i; 13310int 13311main (void) 13312{ 13313 13314 ; 13315 return 0; 13316} 13317_ACEOF 13318if ac_fn_c_try_link "$LINENO" 13319then : 13320 eval $cacheid=yes 13321else $as_nop 13322 eval $cacheid=no 13323fi 13324rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13325 conftest$ac_exeext conftest.$ac_ext 13326fi 13327 13328 13329 CFLAGS="$xorg_testset_save_CFLAGS" 13330 13331 eval supported=\$$cacheid 13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13333printf "%s\n" "$supported" >&6; } 13334 if test "$supported" = "yes" ; then 13335 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13336 found="yes" 13337 fi 13338 fi 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354xorg_testset_save_CFLAGS="$CFLAGS" 13355 13356if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13359printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13360if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13361then : 13362 printf %s "(cached) " >&6 13363else $as_nop 13364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13365/* end confdefs.h. */ 13366int i; 13367_ACEOF 13368if ac_fn_c_try_compile "$LINENO" 13369then : 13370 xorg_cv_cc_flag_unknown_warning_option=yes 13371else $as_nop 13372 xorg_cv_cc_flag_unknown_warning_option=no 13373fi 13374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13375fi 13376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13377printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13379 CFLAGS="$xorg_testset_save_CFLAGS" 13380fi 13381 13382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 fi 13386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13388printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13389if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13390then : 13391 printf %s "(cached) " >&6 13392else $as_nop 13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13394/* end confdefs.h. */ 13395int i; 13396_ACEOF 13397if ac_fn_c_try_compile "$LINENO" 13398then : 13399 xorg_cv_cc_flag_unused_command_line_argument=yes 13400else $as_nop 13401 xorg_cv_cc_flag_unused_command_line_argument=no 13402fi 13403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13404fi 13405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13406printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13408 CFLAGS="$xorg_testset_save_CFLAGS" 13409fi 13410 13411found="no" 13412 13413 if test $found = "no" ; then 13414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13416 fi 13417 13418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13420 fi 13421 13422 CFLAGS="$CFLAGS -Wformat=2" 13423 13424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13425printf %s "checking if $CC supports -Wformat=2... " >&6; } 13426 cacheid=xorg_cv_cc_flag__Wformat_2 13427 if eval test \${$cacheid+y} 13428then : 13429 printf %s "(cached) " >&6 13430else $as_nop 13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13432/* end confdefs.h. */ 13433int i; 13434int 13435main (void) 13436{ 13437 13438 ; 13439 return 0; 13440} 13441_ACEOF 13442if ac_fn_c_try_link "$LINENO" 13443then : 13444 eval $cacheid=yes 13445else $as_nop 13446 eval $cacheid=no 13447fi 13448rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13449 conftest$ac_exeext conftest.$ac_ext 13450fi 13451 13452 13453 CFLAGS="$xorg_testset_save_CFLAGS" 13454 13455 eval supported=\$$cacheid 13456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13457printf "%s\n" "$supported" >&6; } 13458 if test "$supported" = "yes" ; then 13459 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13460 found="yes" 13461 fi 13462 fi 13463 13464 if test $found = "no" ; then 13465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13467 fi 13468 13469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13471 fi 13472 13473 CFLAGS="$CFLAGS -Wformat" 13474 13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13476printf %s "checking if $CC supports -Wformat... " >&6; } 13477 cacheid=xorg_cv_cc_flag__Wformat 13478 if eval test \${$cacheid+y} 13479then : 13480 printf %s "(cached) " >&6 13481else $as_nop 13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13483/* end confdefs.h. */ 13484int i; 13485int 13486main (void) 13487{ 13488 13489 ; 13490 return 0; 13491} 13492_ACEOF 13493if ac_fn_c_try_link "$LINENO" 13494then : 13495 eval $cacheid=yes 13496else $as_nop 13497 eval $cacheid=no 13498fi 13499rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13500 conftest$ac_exeext conftest.$ac_ext 13501fi 13502 13503 13504 CFLAGS="$xorg_testset_save_CFLAGS" 13505 13506 eval supported=\$$cacheid 13507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13508printf "%s\n" "$supported" >&6; } 13509 if test "$supported" = "yes" ; then 13510 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13511 found="yes" 13512 fi 13513 fi 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531xorg_testset_save_CFLAGS="$CFLAGS" 13532 13533if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13536printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13537if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13538then : 13539 printf %s "(cached) " >&6 13540else $as_nop 13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542/* end confdefs.h. */ 13543int i; 13544_ACEOF 13545if ac_fn_c_try_compile "$LINENO" 13546then : 13547 xorg_cv_cc_flag_unknown_warning_option=yes 13548else $as_nop 13549 xorg_cv_cc_flag_unknown_warning_option=no 13550fi 13551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13552fi 13553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13556 CFLAGS="$xorg_testset_save_CFLAGS" 13557fi 13558 13559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13562 fi 13563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13566if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13567then : 13568 printf %s "(cached) " >&6 13569else $as_nop 13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13571/* end confdefs.h. */ 13572int i; 13573_ACEOF 13574if ac_fn_c_try_compile "$LINENO" 13575then : 13576 xorg_cv_cc_flag_unused_command_line_argument=yes 13577else $as_nop 13578 xorg_cv_cc_flag_unused_command_line_argument=no 13579fi 13580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13581fi 13582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13583printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13585 CFLAGS="$xorg_testset_save_CFLAGS" 13586fi 13587 13588found="no" 13589 13590 if test $found = "no" ; then 13591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13593 fi 13594 13595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13597 fi 13598 13599 CFLAGS="$CFLAGS -Wstrict-prototypes" 13600 13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13602printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13603 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13604 if eval test \${$cacheid+y} 13605then : 13606 printf %s "(cached) " >&6 13607else $as_nop 13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13609/* end confdefs.h. */ 13610int i; 13611int 13612main (void) 13613{ 13614 13615 ; 13616 return 0; 13617} 13618_ACEOF 13619if ac_fn_c_try_link "$LINENO" 13620then : 13621 eval $cacheid=yes 13622else $as_nop 13623 eval $cacheid=no 13624fi 13625rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13626 conftest$ac_exeext conftest.$ac_ext 13627fi 13628 13629 13630 CFLAGS="$xorg_testset_save_CFLAGS" 13631 13632 eval supported=\$$cacheid 13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13634printf "%s\n" "$supported" >&6; } 13635 if test "$supported" = "yes" ; then 13636 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13637 found="yes" 13638 fi 13639 fi 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655xorg_testset_save_CFLAGS="$CFLAGS" 13656 13657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13660printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13661if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13662then : 13663 printf %s "(cached) " >&6 13664else $as_nop 13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13666/* end confdefs.h. */ 13667int i; 13668_ACEOF 13669if ac_fn_c_try_compile "$LINENO" 13670then : 13671 xorg_cv_cc_flag_unknown_warning_option=yes 13672else $as_nop 13673 xorg_cv_cc_flag_unknown_warning_option=no 13674fi 13675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13676fi 13677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13678printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13680 CFLAGS="$xorg_testset_save_CFLAGS" 13681fi 13682 13683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13686 fi 13687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13689printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13690if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13691then : 13692 printf %s "(cached) " >&6 13693else $as_nop 13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13695/* end confdefs.h. */ 13696int i; 13697_ACEOF 13698if ac_fn_c_try_compile "$LINENO" 13699then : 13700 xorg_cv_cc_flag_unused_command_line_argument=yes 13701else $as_nop 13702 xorg_cv_cc_flag_unused_command_line_argument=no 13703fi 13704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13705fi 13706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13707printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13709 CFLAGS="$xorg_testset_save_CFLAGS" 13710fi 13711 13712found="no" 13713 13714 if test $found = "no" ; then 13715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13717 fi 13718 13719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13721 fi 13722 13723 CFLAGS="$CFLAGS -Wmissing-prototypes" 13724 13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13726printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13727 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13728 if eval test \${$cacheid+y} 13729then : 13730 printf %s "(cached) " >&6 13731else $as_nop 13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13733/* end confdefs.h. */ 13734int i; 13735int 13736main (void) 13737{ 13738 13739 ; 13740 return 0; 13741} 13742_ACEOF 13743if ac_fn_c_try_link "$LINENO" 13744then : 13745 eval $cacheid=yes 13746else $as_nop 13747 eval $cacheid=no 13748fi 13749rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13750 conftest$ac_exeext conftest.$ac_ext 13751fi 13752 13753 13754 CFLAGS="$xorg_testset_save_CFLAGS" 13755 13756 eval supported=\$$cacheid 13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13758printf "%s\n" "$supported" >&6; } 13759 if test "$supported" = "yes" ; then 13760 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13761 found="yes" 13762 fi 13763 fi 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779xorg_testset_save_CFLAGS="$CFLAGS" 13780 13781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13784printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13785if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13786then : 13787 printf %s "(cached) " >&6 13788else $as_nop 13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13790/* end confdefs.h. */ 13791int i; 13792_ACEOF 13793if ac_fn_c_try_compile "$LINENO" 13794then : 13795 xorg_cv_cc_flag_unknown_warning_option=yes 13796else $as_nop 13797 xorg_cv_cc_flag_unknown_warning_option=no 13798fi 13799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13800fi 13801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13802printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13804 CFLAGS="$xorg_testset_save_CFLAGS" 13805fi 13806 13807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13810 fi 13811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13813printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13814if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13815then : 13816 printf %s "(cached) " >&6 13817else $as_nop 13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13819/* end confdefs.h. */ 13820int i; 13821_ACEOF 13822if ac_fn_c_try_compile "$LINENO" 13823then : 13824 xorg_cv_cc_flag_unused_command_line_argument=yes 13825else $as_nop 13826 xorg_cv_cc_flag_unused_command_line_argument=no 13827fi 13828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13829fi 13830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13831printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13833 CFLAGS="$xorg_testset_save_CFLAGS" 13834fi 13835 13836found="no" 13837 13838 if test $found = "no" ; then 13839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13841 fi 13842 13843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13845 fi 13846 13847 CFLAGS="$CFLAGS -Wnested-externs" 13848 13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13850printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13851 cacheid=xorg_cv_cc_flag__Wnested_externs 13852 if eval test \${$cacheid+y} 13853then : 13854 printf %s "(cached) " >&6 13855else $as_nop 13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13857/* end confdefs.h. */ 13858int i; 13859int 13860main (void) 13861{ 13862 13863 ; 13864 return 0; 13865} 13866_ACEOF 13867if ac_fn_c_try_link "$LINENO" 13868then : 13869 eval $cacheid=yes 13870else $as_nop 13871 eval $cacheid=no 13872fi 13873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13874 conftest$ac_exeext conftest.$ac_ext 13875fi 13876 13877 13878 CFLAGS="$xorg_testset_save_CFLAGS" 13879 13880 eval supported=\$$cacheid 13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13882printf "%s\n" "$supported" >&6; } 13883 if test "$supported" = "yes" ; then 13884 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13885 found="yes" 13886 fi 13887 fi 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903xorg_testset_save_CFLAGS="$CFLAGS" 13904 13905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13908printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13909if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13910then : 13911 printf %s "(cached) " >&6 13912else $as_nop 13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13914/* end confdefs.h. */ 13915int i; 13916_ACEOF 13917if ac_fn_c_try_compile "$LINENO" 13918then : 13919 xorg_cv_cc_flag_unknown_warning_option=yes 13920else $as_nop 13921 xorg_cv_cc_flag_unknown_warning_option=no 13922fi 13923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13924fi 13925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13928 CFLAGS="$xorg_testset_save_CFLAGS" 13929fi 13930 13931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13934 fi 13935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13938if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13939then : 13940 printf %s "(cached) " >&6 13941else $as_nop 13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13943/* end confdefs.h. */ 13944int i; 13945_ACEOF 13946if ac_fn_c_try_compile "$LINENO" 13947then : 13948 xorg_cv_cc_flag_unused_command_line_argument=yes 13949else $as_nop 13950 xorg_cv_cc_flag_unused_command_line_argument=no 13951fi 13952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13953fi 13954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13955printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13956 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13957 CFLAGS="$xorg_testset_save_CFLAGS" 13958fi 13959 13960found="no" 13961 13962 if test $found = "no" ; then 13963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13965 fi 13966 13967 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13969 fi 13970 13971 CFLAGS="$CFLAGS -Wbad-function-cast" 13972 13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13974printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13975 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13976 if eval test \${$cacheid+y} 13977then : 13978 printf %s "(cached) " >&6 13979else $as_nop 13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13981/* end confdefs.h. */ 13982int i; 13983int 13984main (void) 13985{ 13986 13987 ; 13988 return 0; 13989} 13990_ACEOF 13991if ac_fn_c_try_link "$LINENO" 13992then : 13993 eval $cacheid=yes 13994else $as_nop 13995 eval $cacheid=no 13996fi 13997rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13998 conftest$ac_exeext conftest.$ac_ext 13999fi 14000 14001 14002 CFLAGS="$xorg_testset_save_CFLAGS" 14003 14004 eval supported=\$$cacheid 14005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14006printf "%s\n" "$supported" >&6; } 14007 if test "$supported" = "yes" ; then 14008 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14009 found="yes" 14010 fi 14011 fi 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027xorg_testset_save_CFLAGS="$CFLAGS" 14028 14029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14032printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14033if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14034then : 14035 printf %s "(cached) " >&6 14036else $as_nop 14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14038/* end confdefs.h. */ 14039int i; 14040_ACEOF 14041if ac_fn_c_try_compile "$LINENO" 14042then : 14043 xorg_cv_cc_flag_unknown_warning_option=yes 14044else $as_nop 14045 xorg_cv_cc_flag_unknown_warning_option=no 14046fi 14047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14048fi 14049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14052 CFLAGS="$xorg_testset_save_CFLAGS" 14053fi 14054 14055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14058 fi 14059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14062if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14063then : 14064 printf %s "(cached) " >&6 14065else $as_nop 14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14067/* end confdefs.h. */ 14068int i; 14069_ACEOF 14070if ac_fn_c_try_compile "$LINENO" 14071then : 14072 xorg_cv_cc_flag_unused_command_line_argument=yes 14073else $as_nop 14074 xorg_cv_cc_flag_unused_command_line_argument=no 14075fi 14076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14077fi 14078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14079printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14081 CFLAGS="$xorg_testset_save_CFLAGS" 14082fi 14083 14084found="no" 14085 14086 if test $found = "no" ; then 14087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14089 fi 14090 14091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14093 fi 14094 14095 CFLAGS="$CFLAGS -Wold-style-definition" 14096 14097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14098printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14099 cacheid=xorg_cv_cc_flag__Wold_style_definition 14100 if eval test \${$cacheid+y} 14101then : 14102 printf %s "(cached) " >&6 14103else $as_nop 14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14105/* end confdefs.h. */ 14106int i; 14107int 14108main (void) 14109{ 14110 14111 ; 14112 return 0; 14113} 14114_ACEOF 14115if ac_fn_c_try_link "$LINENO" 14116then : 14117 eval $cacheid=yes 14118else $as_nop 14119 eval $cacheid=no 14120fi 14121rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14122 conftest$ac_exeext conftest.$ac_ext 14123fi 14124 14125 14126 CFLAGS="$xorg_testset_save_CFLAGS" 14127 14128 eval supported=\$$cacheid 14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14130printf "%s\n" "$supported" >&6; } 14131 if test "$supported" = "yes" ; then 14132 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14133 found="yes" 14134 fi 14135 fi 14136 14137 if test $found = "no" ; then 14138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14140 fi 14141 14142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14144 fi 14145 14146 CFLAGS="$CFLAGS -fd" 14147 14148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14149printf %s "checking if $CC supports -fd... " >&6; } 14150 cacheid=xorg_cv_cc_flag__fd 14151 if eval test \${$cacheid+y} 14152then : 14153 printf %s "(cached) " >&6 14154else $as_nop 14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156/* end confdefs.h. */ 14157int i; 14158int 14159main (void) 14160{ 14161 14162 ; 14163 return 0; 14164} 14165_ACEOF 14166if ac_fn_c_try_link "$LINENO" 14167then : 14168 eval $cacheid=yes 14169else $as_nop 14170 eval $cacheid=no 14171fi 14172rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14173 conftest$ac_exeext conftest.$ac_ext 14174fi 14175 14176 14177 CFLAGS="$xorg_testset_save_CFLAGS" 14178 14179 eval supported=\$$cacheid 14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14181printf "%s\n" "$supported" >&6; } 14182 if test "$supported" = "yes" ; then 14183 BASE_CFLAGS="$BASE_CFLAGS -fd" 14184 found="yes" 14185 fi 14186 fi 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202xorg_testset_save_CFLAGS="$CFLAGS" 14203 14204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14208if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14209then : 14210 printf %s "(cached) " >&6 14211else $as_nop 14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14213/* end confdefs.h. */ 14214int i; 14215_ACEOF 14216if ac_fn_c_try_compile "$LINENO" 14217then : 14218 xorg_cv_cc_flag_unknown_warning_option=yes 14219else $as_nop 14220 xorg_cv_cc_flag_unknown_warning_option=no 14221fi 14222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14223fi 14224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14227 CFLAGS="$xorg_testset_save_CFLAGS" 14228fi 14229 14230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14233 fi 14234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14237if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14238then : 14239 printf %s "(cached) " >&6 14240else $as_nop 14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14242/* end confdefs.h. */ 14243int i; 14244_ACEOF 14245if ac_fn_c_try_compile "$LINENO" 14246then : 14247 xorg_cv_cc_flag_unused_command_line_argument=yes 14248else $as_nop 14249 xorg_cv_cc_flag_unused_command_line_argument=no 14250fi 14251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14252fi 14253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14256 CFLAGS="$xorg_testset_save_CFLAGS" 14257fi 14258 14259found="no" 14260 14261 if test $found = "no" ; then 14262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14264 fi 14265 14266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14268 fi 14269 14270 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14271 14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14273printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14274 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14275 if eval test \${$cacheid+y} 14276then : 14277 printf %s "(cached) " >&6 14278else $as_nop 14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14280/* end confdefs.h. */ 14281int i; 14282int 14283main (void) 14284{ 14285 14286 ; 14287 return 0; 14288} 14289_ACEOF 14290if ac_fn_c_try_link "$LINENO" 14291then : 14292 eval $cacheid=yes 14293else $as_nop 14294 eval $cacheid=no 14295fi 14296rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14297 conftest$ac_exeext conftest.$ac_ext 14298fi 14299 14300 14301 CFLAGS="$xorg_testset_save_CFLAGS" 14302 14303 eval supported=\$$cacheid 14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14305printf "%s\n" "$supported" >&6; } 14306 if test "$supported" = "yes" ; then 14307 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14308 found="yes" 14309 fi 14310 fi 14311 14312 14313 14314 14315 14316# This chunk adds additional warnings that could catch undesired effects. 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330xorg_testset_save_CFLAGS="$CFLAGS" 14331 14332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14335printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14336if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14337then : 14338 printf %s "(cached) " >&6 14339else $as_nop 14340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14341/* end confdefs.h. */ 14342int i; 14343_ACEOF 14344if ac_fn_c_try_compile "$LINENO" 14345then : 14346 xorg_cv_cc_flag_unknown_warning_option=yes 14347else $as_nop 14348 xorg_cv_cc_flag_unknown_warning_option=no 14349fi 14350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14351fi 14352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14353printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14355 CFLAGS="$xorg_testset_save_CFLAGS" 14356fi 14357 14358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14361 fi 14362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14364printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14365if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14366then : 14367 printf %s "(cached) " >&6 14368else $as_nop 14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370/* end confdefs.h. */ 14371int i; 14372_ACEOF 14373if ac_fn_c_try_compile "$LINENO" 14374then : 14375 xorg_cv_cc_flag_unused_command_line_argument=yes 14376else $as_nop 14377 xorg_cv_cc_flag_unused_command_line_argument=no 14378fi 14379rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14380fi 14381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14384 CFLAGS="$xorg_testset_save_CFLAGS" 14385fi 14386 14387found="no" 14388 14389 if test $found = "no" ; then 14390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14392 fi 14393 14394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14396 fi 14397 14398 CFLAGS="$CFLAGS -Wunused" 14399 14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14401printf %s "checking if $CC supports -Wunused... " >&6; } 14402 cacheid=xorg_cv_cc_flag__Wunused 14403 if eval test \${$cacheid+y} 14404then : 14405 printf %s "(cached) " >&6 14406else $as_nop 14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14408/* end confdefs.h. */ 14409int i; 14410int 14411main (void) 14412{ 14413 14414 ; 14415 return 0; 14416} 14417_ACEOF 14418if ac_fn_c_try_link "$LINENO" 14419then : 14420 eval $cacheid=yes 14421else $as_nop 14422 eval $cacheid=no 14423fi 14424rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14425 conftest$ac_exeext conftest.$ac_ext 14426fi 14427 14428 14429 CFLAGS="$xorg_testset_save_CFLAGS" 14430 14431 eval supported=\$$cacheid 14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14433printf "%s\n" "$supported" >&6; } 14434 if test "$supported" = "yes" ; then 14435 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14436 found="yes" 14437 fi 14438 fi 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454xorg_testset_save_CFLAGS="$CFLAGS" 14455 14456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14460if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14461then : 14462 printf %s "(cached) " >&6 14463else $as_nop 14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14465/* end confdefs.h. */ 14466int i; 14467_ACEOF 14468if ac_fn_c_try_compile "$LINENO" 14469then : 14470 xorg_cv_cc_flag_unknown_warning_option=yes 14471else $as_nop 14472 xorg_cv_cc_flag_unknown_warning_option=no 14473fi 14474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14475fi 14476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14477printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14478 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14479 CFLAGS="$xorg_testset_save_CFLAGS" 14480fi 14481 14482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14485 fi 14486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14488printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14489if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14490then : 14491 printf %s "(cached) " >&6 14492else $as_nop 14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14494/* end confdefs.h. */ 14495int i; 14496_ACEOF 14497if ac_fn_c_try_compile "$LINENO" 14498then : 14499 xorg_cv_cc_flag_unused_command_line_argument=yes 14500else $as_nop 14501 xorg_cv_cc_flag_unused_command_line_argument=no 14502fi 14503rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14504fi 14505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14506printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14508 CFLAGS="$xorg_testset_save_CFLAGS" 14509fi 14510 14511found="no" 14512 14513 if test $found = "no" ; then 14514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14516 fi 14517 14518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14520 fi 14521 14522 CFLAGS="$CFLAGS -Wuninitialized" 14523 14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14525printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14526 cacheid=xorg_cv_cc_flag__Wuninitialized 14527 if eval test \${$cacheid+y} 14528then : 14529 printf %s "(cached) " >&6 14530else $as_nop 14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14532/* end confdefs.h. */ 14533int i; 14534int 14535main (void) 14536{ 14537 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542if ac_fn_c_try_link "$LINENO" 14543then : 14544 eval $cacheid=yes 14545else $as_nop 14546 eval $cacheid=no 14547fi 14548rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14549 conftest$ac_exeext conftest.$ac_ext 14550fi 14551 14552 14553 CFLAGS="$xorg_testset_save_CFLAGS" 14554 14555 eval supported=\$$cacheid 14556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14557printf "%s\n" "$supported" >&6; } 14558 if test "$supported" = "yes" ; then 14559 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14560 found="yes" 14561 fi 14562 fi 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578xorg_testset_save_CFLAGS="$CFLAGS" 14579 14580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14583printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14584if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14585then : 14586 printf %s "(cached) " >&6 14587else $as_nop 14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14589/* end confdefs.h. */ 14590int i; 14591_ACEOF 14592if ac_fn_c_try_compile "$LINENO" 14593then : 14594 xorg_cv_cc_flag_unknown_warning_option=yes 14595else $as_nop 14596 xorg_cv_cc_flag_unknown_warning_option=no 14597fi 14598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14599fi 14600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14601printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14603 CFLAGS="$xorg_testset_save_CFLAGS" 14604fi 14605 14606if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14609 fi 14610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14612printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14613if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14614then : 14615 printf %s "(cached) " >&6 14616else $as_nop 14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14618/* end confdefs.h. */ 14619int i; 14620_ACEOF 14621if ac_fn_c_try_compile "$LINENO" 14622then : 14623 xorg_cv_cc_flag_unused_command_line_argument=yes 14624else $as_nop 14625 xorg_cv_cc_flag_unused_command_line_argument=no 14626fi 14627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14628fi 14629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14630printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14631 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14632 CFLAGS="$xorg_testset_save_CFLAGS" 14633fi 14634 14635found="no" 14636 14637 if test $found = "no" ; then 14638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14640 fi 14641 14642 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14644 fi 14645 14646 CFLAGS="$CFLAGS -Wshadow" 14647 14648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14649printf %s "checking if $CC supports -Wshadow... " >&6; } 14650 cacheid=xorg_cv_cc_flag__Wshadow 14651 if eval test \${$cacheid+y} 14652then : 14653 printf %s "(cached) " >&6 14654else $as_nop 14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14656/* end confdefs.h. */ 14657int i; 14658int 14659main (void) 14660{ 14661 14662 ; 14663 return 0; 14664} 14665_ACEOF 14666if ac_fn_c_try_link "$LINENO" 14667then : 14668 eval $cacheid=yes 14669else $as_nop 14670 eval $cacheid=no 14671fi 14672rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14673 conftest$ac_exeext conftest.$ac_ext 14674fi 14675 14676 14677 CFLAGS="$xorg_testset_save_CFLAGS" 14678 14679 eval supported=\$$cacheid 14680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14681printf "%s\n" "$supported" >&6; } 14682 if test "$supported" = "yes" ; then 14683 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14684 found="yes" 14685 fi 14686 fi 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702xorg_testset_save_CFLAGS="$CFLAGS" 14703 14704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14707printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14708if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14709then : 14710 printf %s "(cached) " >&6 14711else $as_nop 14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14713/* end confdefs.h. */ 14714int i; 14715_ACEOF 14716if ac_fn_c_try_compile "$LINENO" 14717then : 14718 xorg_cv_cc_flag_unknown_warning_option=yes 14719else $as_nop 14720 xorg_cv_cc_flag_unknown_warning_option=no 14721fi 14722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14723fi 14724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14725printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14727 CFLAGS="$xorg_testset_save_CFLAGS" 14728fi 14729 14730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14733 fi 14734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14736printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14737if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14738then : 14739 printf %s "(cached) " >&6 14740else $as_nop 14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14742/* end confdefs.h. */ 14743int i; 14744_ACEOF 14745if ac_fn_c_try_compile "$LINENO" 14746then : 14747 xorg_cv_cc_flag_unused_command_line_argument=yes 14748else $as_nop 14749 xorg_cv_cc_flag_unused_command_line_argument=no 14750fi 14751rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14752fi 14753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14754printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14756 CFLAGS="$xorg_testset_save_CFLAGS" 14757fi 14758 14759found="no" 14760 14761 if test $found = "no" ; then 14762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14764 fi 14765 14766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14768 fi 14769 14770 CFLAGS="$CFLAGS -Wmissing-noreturn" 14771 14772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14773printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14774 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14775 if eval test \${$cacheid+y} 14776then : 14777 printf %s "(cached) " >&6 14778else $as_nop 14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14780/* end confdefs.h. */ 14781int i; 14782int 14783main (void) 14784{ 14785 14786 ; 14787 return 0; 14788} 14789_ACEOF 14790if ac_fn_c_try_link "$LINENO" 14791then : 14792 eval $cacheid=yes 14793else $as_nop 14794 eval $cacheid=no 14795fi 14796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14797 conftest$ac_exeext conftest.$ac_ext 14798fi 14799 14800 14801 CFLAGS="$xorg_testset_save_CFLAGS" 14802 14803 eval supported=\$$cacheid 14804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14805printf "%s\n" "$supported" >&6; } 14806 if test "$supported" = "yes" ; then 14807 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14808 found="yes" 14809 fi 14810 fi 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826xorg_testset_save_CFLAGS="$CFLAGS" 14827 14828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14833then : 14834 printf %s "(cached) " >&6 14835else $as_nop 14836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14837/* end confdefs.h. */ 14838int i; 14839_ACEOF 14840if ac_fn_c_try_compile "$LINENO" 14841then : 14842 xorg_cv_cc_flag_unknown_warning_option=yes 14843else $as_nop 14844 xorg_cv_cc_flag_unknown_warning_option=no 14845fi 14846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14847fi 14848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14849printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14851 CFLAGS="$xorg_testset_save_CFLAGS" 14852fi 14853 14854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14857 fi 14858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14860printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14861if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14862then : 14863 printf %s "(cached) " >&6 14864else $as_nop 14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14866/* end confdefs.h. */ 14867int i; 14868_ACEOF 14869if ac_fn_c_try_compile "$LINENO" 14870then : 14871 xorg_cv_cc_flag_unused_command_line_argument=yes 14872else $as_nop 14873 xorg_cv_cc_flag_unused_command_line_argument=no 14874fi 14875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14876fi 14877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14878printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14880 CFLAGS="$xorg_testset_save_CFLAGS" 14881fi 14882 14883found="no" 14884 14885 if test $found = "no" ; then 14886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14888 fi 14889 14890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14892 fi 14893 14894 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14895 14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14897printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14898 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14899 if eval test \${$cacheid+y} 14900then : 14901 printf %s "(cached) " >&6 14902else $as_nop 14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14904/* end confdefs.h. */ 14905int i; 14906int 14907main (void) 14908{ 14909 14910 ; 14911 return 0; 14912} 14913_ACEOF 14914if ac_fn_c_try_link "$LINENO" 14915then : 14916 eval $cacheid=yes 14917else $as_nop 14918 eval $cacheid=no 14919fi 14920rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14921 conftest$ac_exeext conftest.$ac_ext 14922fi 14923 14924 14925 CFLAGS="$xorg_testset_save_CFLAGS" 14926 14927 eval supported=\$$cacheid 14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14929printf "%s\n" "$supported" >&6; } 14930 if test "$supported" = "yes" ; then 14931 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14932 found="yes" 14933 fi 14934 fi 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950xorg_testset_save_CFLAGS="$CFLAGS" 14951 14952if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14955printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14956if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14957then : 14958 printf %s "(cached) " >&6 14959else $as_nop 14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14961/* end confdefs.h. */ 14962int i; 14963_ACEOF 14964if ac_fn_c_try_compile "$LINENO" 14965then : 14966 xorg_cv_cc_flag_unknown_warning_option=yes 14967else $as_nop 14968 xorg_cv_cc_flag_unknown_warning_option=no 14969fi 14970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14971fi 14972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14973printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14974 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14975 CFLAGS="$xorg_testset_save_CFLAGS" 14976fi 14977 14978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14981 fi 14982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14984printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14985if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14986then : 14987 printf %s "(cached) " >&6 14988else $as_nop 14989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14990/* end confdefs.h. */ 14991int i; 14992_ACEOF 14993if ac_fn_c_try_compile "$LINENO" 14994then : 14995 xorg_cv_cc_flag_unused_command_line_argument=yes 14996else $as_nop 14997 xorg_cv_cc_flag_unused_command_line_argument=no 14998fi 14999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15000fi 15001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15002printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15004 CFLAGS="$xorg_testset_save_CFLAGS" 15005fi 15006 15007found="no" 15008 15009 if test $found = "no" ; then 15010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15012 fi 15013 15014 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15016 fi 15017 15018 CFLAGS="$CFLAGS -Wredundant-decls" 15019 15020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15021printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15022 cacheid=xorg_cv_cc_flag__Wredundant_decls 15023 if eval test \${$cacheid+y} 15024then : 15025 printf %s "(cached) " >&6 15026else $as_nop 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028/* end confdefs.h. */ 15029int i; 15030int 15031main (void) 15032{ 15033 15034 ; 15035 return 0; 15036} 15037_ACEOF 15038if ac_fn_c_try_link "$LINENO" 15039then : 15040 eval $cacheid=yes 15041else $as_nop 15042 eval $cacheid=no 15043fi 15044rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15045 conftest$ac_exeext conftest.$ac_ext 15046fi 15047 15048 15049 CFLAGS="$xorg_testset_save_CFLAGS" 15050 15051 eval supported=\$$cacheid 15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15053printf "%s\n" "$supported" >&6; } 15054 if test "$supported" = "yes" ; then 15055 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15056 found="yes" 15057 fi 15058 fi 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074xorg_testset_save_CFLAGS="$CFLAGS" 15075 15076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15080if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15081then : 15082 printf %s "(cached) " >&6 15083else $as_nop 15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15085/* end confdefs.h. */ 15086int i; 15087_ACEOF 15088if ac_fn_c_try_compile "$LINENO" 15089then : 15090 xorg_cv_cc_flag_unknown_warning_option=yes 15091else $as_nop 15092 xorg_cv_cc_flag_unknown_warning_option=no 15093fi 15094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15095fi 15096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15099 CFLAGS="$xorg_testset_save_CFLAGS" 15100fi 15101 15102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15105 fi 15106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15109if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15110then : 15111 printf %s "(cached) " >&6 15112else $as_nop 15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15114/* end confdefs.h. */ 15115int i; 15116_ACEOF 15117if ac_fn_c_try_compile "$LINENO" 15118then : 15119 xorg_cv_cc_flag_unused_command_line_argument=yes 15120else $as_nop 15121 xorg_cv_cc_flag_unused_command_line_argument=no 15122fi 15123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15124fi 15125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15128 CFLAGS="$xorg_testset_save_CFLAGS" 15129fi 15130 15131found="no" 15132 15133 if test $found = "no" ; then 15134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15136 fi 15137 15138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15140 fi 15141 15142 CFLAGS="$CFLAGS -Wlogical-op" 15143 15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15145printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15146 cacheid=xorg_cv_cc_flag__Wlogical_op 15147 if eval test \${$cacheid+y} 15148then : 15149 printf %s "(cached) " >&6 15150else $as_nop 15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15152/* end confdefs.h. */ 15153int i; 15154int 15155main (void) 15156{ 15157 15158 ; 15159 return 0; 15160} 15161_ACEOF 15162if ac_fn_c_try_link "$LINENO" 15163then : 15164 eval $cacheid=yes 15165else $as_nop 15166 eval $cacheid=no 15167fi 15168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15169 conftest$ac_exeext conftest.$ac_ext 15170fi 15171 15172 15173 CFLAGS="$xorg_testset_save_CFLAGS" 15174 15175 eval supported=\$$cacheid 15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15177printf "%s\n" "$supported" >&6; } 15178 if test "$supported" = "yes" ; then 15179 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15180 found="yes" 15181 fi 15182 fi 15183 15184 15185 15186# These are currently disabled because they are noisy. They will be enabled 15187# in the future once the codebase is sufficiently modernized to silence 15188# them. For now, I don't want them to drown out the other warnings. 15189# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15190# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15191# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15192 15193# Turn some warnings into errors, so we don't accidentally get successful builds 15194# when there are problems that should be fixed. 15195 15196if test "x$SELECTIVE_WERROR" = "xyes" ; then 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210xorg_testset_save_CFLAGS="$CFLAGS" 15211 15212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15216if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15217then : 15218 printf %s "(cached) " >&6 15219else $as_nop 15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15221/* end confdefs.h. */ 15222int i; 15223_ACEOF 15224if ac_fn_c_try_compile "$LINENO" 15225then : 15226 xorg_cv_cc_flag_unknown_warning_option=yes 15227else $as_nop 15228 xorg_cv_cc_flag_unknown_warning_option=no 15229fi 15230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15231fi 15232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15235 CFLAGS="$xorg_testset_save_CFLAGS" 15236fi 15237 15238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15241 fi 15242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15245if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15246then : 15247 printf %s "(cached) " >&6 15248else $as_nop 15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15250/* end confdefs.h. */ 15251int i; 15252_ACEOF 15253if ac_fn_c_try_compile "$LINENO" 15254then : 15255 xorg_cv_cc_flag_unused_command_line_argument=yes 15256else $as_nop 15257 xorg_cv_cc_flag_unused_command_line_argument=no 15258fi 15259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15260fi 15261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15264 CFLAGS="$xorg_testset_save_CFLAGS" 15265fi 15266 15267found="no" 15268 15269 if test $found = "no" ; then 15270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15272 fi 15273 15274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15276 fi 15277 15278 CFLAGS="$CFLAGS -Werror=implicit" 15279 15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15281printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15282 cacheid=xorg_cv_cc_flag__Werror_implicit 15283 if eval test \${$cacheid+y} 15284then : 15285 printf %s "(cached) " >&6 15286else $as_nop 15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15288/* end confdefs.h. */ 15289int i; 15290int 15291main (void) 15292{ 15293 15294 ; 15295 return 0; 15296} 15297_ACEOF 15298if ac_fn_c_try_link "$LINENO" 15299then : 15300 eval $cacheid=yes 15301else $as_nop 15302 eval $cacheid=no 15303fi 15304rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15305 conftest$ac_exeext conftest.$ac_ext 15306fi 15307 15308 15309 CFLAGS="$xorg_testset_save_CFLAGS" 15310 15311 eval supported=\$$cacheid 15312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15313printf "%s\n" "$supported" >&6; } 15314 if test "$supported" = "yes" ; then 15315 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15316 found="yes" 15317 fi 15318 fi 15319 15320 if test $found = "no" ; then 15321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15323 fi 15324 15325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15327 fi 15328 15329 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15330 15331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15332printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15333 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15334 if eval test \${$cacheid+y} 15335then : 15336 printf %s "(cached) " >&6 15337else $as_nop 15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15339/* end confdefs.h. */ 15340int i; 15341int 15342main (void) 15343{ 15344 15345 ; 15346 return 0; 15347} 15348_ACEOF 15349if ac_fn_c_try_link "$LINENO" 15350then : 15351 eval $cacheid=yes 15352else $as_nop 15353 eval $cacheid=no 15354fi 15355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15356 conftest$ac_exeext conftest.$ac_ext 15357fi 15358 15359 15360 CFLAGS="$xorg_testset_save_CFLAGS" 15361 15362 eval supported=\$$cacheid 15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15364printf "%s\n" "$supported" >&6; } 15365 if test "$supported" = "yes" ; then 15366 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15367 found="yes" 15368 fi 15369 fi 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385xorg_testset_save_CFLAGS="$CFLAGS" 15386 15387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15391if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15392then : 15393 printf %s "(cached) " >&6 15394else $as_nop 15395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15396/* end confdefs.h. */ 15397int i; 15398_ACEOF 15399if ac_fn_c_try_compile "$LINENO" 15400then : 15401 xorg_cv_cc_flag_unknown_warning_option=yes 15402else $as_nop 15403 xorg_cv_cc_flag_unknown_warning_option=no 15404fi 15405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15406fi 15407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15410 CFLAGS="$xorg_testset_save_CFLAGS" 15411fi 15412 15413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15416 fi 15417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15421then : 15422 printf %s "(cached) " >&6 15423else $as_nop 15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15425/* end confdefs.h. */ 15426int i; 15427_ACEOF 15428if ac_fn_c_try_compile "$LINENO" 15429then : 15430 xorg_cv_cc_flag_unused_command_line_argument=yes 15431else $as_nop 15432 xorg_cv_cc_flag_unused_command_line_argument=no 15433fi 15434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15435fi 15436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15439 CFLAGS="$xorg_testset_save_CFLAGS" 15440fi 15441 15442found="no" 15443 15444 if test $found = "no" ; then 15445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15447 fi 15448 15449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15451 fi 15452 15453 CFLAGS="$CFLAGS -Werror=nonnull" 15454 15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15456printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15457 cacheid=xorg_cv_cc_flag__Werror_nonnull 15458 if eval test \${$cacheid+y} 15459then : 15460 printf %s "(cached) " >&6 15461else $as_nop 15462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15463/* end confdefs.h. */ 15464int i; 15465int 15466main (void) 15467{ 15468 15469 ; 15470 return 0; 15471} 15472_ACEOF 15473if ac_fn_c_try_link "$LINENO" 15474then : 15475 eval $cacheid=yes 15476else $as_nop 15477 eval $cacheid=no 15478fi 15479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15480 conftest$ac_exeext conftest.$ac_ext 15481fi 15482 15483 15484 CFLAGS="$xorg_testset_save_CFLAGS" 15485 15486 eval supported=\$$cacheid 15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15488printf "%s\n" "$supported" >&6; } 15489 if test "$supported" = "yes" ; then 15490 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15491 found="yes" 15492 fi 15493 fi 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509xorg_testset_save_CFLAGS="$CFLAGS" 15510 15511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15515if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15516then : 15517 printf %s "(cached) " >&6 15518else $as_nop 15519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15520/* end confdefs.h. */ 15521int i; 15522_ACEOF 15523if ac_fn_c_try_compile "$LINENO" 15524then : 15525 xorg_cv_cc_flag_unknown_warning_option=yes 15526else $as_nop 15527 xorg_cv_cc_flag_unknown_warning_option=no 15528fi 15529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15530fi 15531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15534 CFLAGS="$xorg_testset_save_CFLAGS" 15535fi 15536 15537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15540 fi 15541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15544if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15545then : 15546 printf %s "(cached) " >&6 15547else $as_nop 15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15549/* end confdefs.h. */ 15550int i; 15551_ACEOF 15552if ac_fn_c_try_compile "$LINENO" 15553then : 15554 xorg_cv_cc_flag_unused_command_line_argument=yes 15555else $as_nop 15556 xorg_cv_cc_flag_unused_command_line_argument=no 15557fi 15558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15559fi 15560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15563 CFLAGS="$xorg_testset_save_CFLAGS" 15564fi 15565 15566found="no" 15567 15568 if test $found = "no" ; then 15569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15571 fi 15572 15573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15575 fi 15576 15577 CFLAGS="$CFLAGS -Werror=init-self" 15578 15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15580printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15581 cacheid=xorg_cv_cc_flag__Werror_init_self 15582 if eval test \${$cacheid+y} 15583then : 15584 printf %s "(cached) " >&6 15585else $as_nop 15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15587/* end confdefs.h. */ 15588int i; 15589int 15590main (void) 15591{ 15592 15593 ; 15594 return 0; 15595} 15596_ACEOF 15597if ac_fn_c_try_link "$LINENO" 15598then : 15599 eval $cacheid=yes 15600else $as_nop 15601 eval $cacheid=no 15602fi 15603rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15604 conftest$ac_exeext conftest.$ac_ext 15605fi 15606 15607 15608 CFLAGS="$xorg_testset_save_CFLAGS" 15609 15610 eval supported=\$$cacheid 15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15612printf "%s\n" "$supported" >&6; } 15613 if test "$supported" = "yes" ; then 15614 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15615 found="yes" 15616 fi 15617 fi 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633xorg_testset_save_CFLAGS="$CFLAGS" 15634 15635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15639if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15640then : 15641 printf %s "(cached) " >&6 15642else $as_nop 15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645int i; 15646_ACEOF 15647if ac_fn_c_try_compile "$LINENO" 15648then : 15649 xorg_cv_cc_flag_unknown_warning_option=yes 15650else $as_nop 15651 xorg_cv_cc_flag_unknown_warning_option=no 15652fi 15653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15654fi 15655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15658 CFLAGS="$xorg_testset_save_CFLAGS" 15659fi 15660 15661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15664 fi 15665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15668if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15669then : 15670 printf %s "(cached) " >&6 15671else $as_nop 15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15673/* end confdefs.h. */ 15674int i; 15675_ACEOF 15676if ac_fn_c_try_compile "$LINENO" 15677then : 15678 xorg_cv_cc_flag_unused_command_line_argument=yes 15679else $as_nop 15680 xorg_cv_cc_flag_unused_command_line_argument=no 15681fi 15682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15683fi 15684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15687 CFLAGS="$xorg_testset_save_CFLAGS" 15688fi 15689 15690found="no" 15691 15692 if test $found = "no" ; then 15693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15695 fi 15696 15697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15699 fi 15700 15701 CFLAGS="$CFLAGS -Werror=main" 15702 15703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15704printf %s "checking if $CC supports -Werror=main... " >&6; } 15705 cacheid=xorg_cv_cc_flag__Werror_main 15706 if eval test \${$cacheid+y} 15707then : 15708 printf %s "(cached) " >&6 15709else $as_nop 15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15711/* end confdefs.h. */ 15712int i; 15713int 15714main (void) 15715{ 15716 15717 ; 15718 return 0; 15719} 15720_ACEOF 15721if ac_fn_c_try_link "$LINENO" 15722then : 15723 eval $cacheid=yes 15724else $as_nop 15725 eval $cacheid=no 15726fi 15727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15728 conftest$ac_exeext conftest.$ac_ext 15729fi 15730 15731 15732 CFLAGS="$xorg_testset_save_CFLAGS" 15733 15734 eval supported=\$$cacheid 15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15736printf "%s\n" "$supported" >&6; } 15737 if test "$supported" = "yes" ; then 15738 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15739 found="yes" 15740 fi 15741 fi 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757xorg_testset_save_CFLAGS="$CFLAGS" 15758 15759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15763if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15764then : 15765 printf %s "(cached) " >&6 15766else $as_nop 15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15768/* end confdefs.h. */ 15769int i; 15770_ACEOF 15771if ac_fn_c_try_compile "$LINENO" 15772then : 15773 xorg_cv_cc_flag_unknown_warning_option=yes 15774else $as_nop 15775 xorg_cv_cc_flag_unknown_warning_option=no 15776fi 15777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15778fi 15779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15782 CFLAGS="$xorg_testset_save_CFLAGS" 15783fi 15784 15785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15788 fi 15789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15793then : 15794 printf %s "(cached) " >&6 15795else $as_nop 15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15797/* end confdefs.h. */ 15798int i; 15799_ACEOF 15800if ac_fn_c_try_compile "$LINENO" 15801then : 15802 xorg_cv_cc_flag_unused_command_line_argument=yes 15803else $as_nop 15804 xorg_cv_cc_flag_unused_command_line_argument=no 15805fi 15806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15807fi 15808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15811 CFLAGS="$xorg_testset_save_CFLAGS" 15812fi 15813 15814found="no" 15815 15816 if test $found = "no" ; then 15817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15819 fi 15820 15821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15823 fi 15824 15825 CFLAGS="$CFLAGS -Werror=missing-braces" 15826 15827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15828printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15829 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15830 if eval test \${$cacheid+y} 15831then : 15832 printf %s "(cached) " >&6 15833else $as_nop 15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15835/* end confdefs.h. */ 15836int i; 15837int 15838main (void) 15839{ 15840 15841 ; 15842 return 0; 15843} 15844_ACEOF 15845if ac_fn_c_try_link "$LINENO" 15846then : 15847 eval $cacheid=yes 15848else $as_nop 15849 eval $cacheid=no 15850fi 15851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15852 conftest$ac_exeext conftest.$ac_ext 15853fi 15854 15855 15856 CFLAGS="$xorg_testset_save_CFLAGS" 15857 15858 eval supported=\$$cacheid 15859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15860printf "%s\n" "$supported" >&6; } 15861 if test "$supported" = "yes" ; then 15862 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15863 found="yes" 15864 fi 15865 fi 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881xorg_testset_save_CFLAGS="$CFLAGS" 15882 15883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15887if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15888then : 15889 printf %s "(cached) " >&6 15890else $as_nop 15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15892/* end confdefs.h. */ 15893int i; 15894_ACEOF 15895if ac_fn_c_try_compile "$LINENO" 15896then : 15897 xorg_cv_cc_flag_unknown_warning_option=yes 15898else $as_nop 15899 xorg_cv_cc_flag_unknown_warning_option=no 15900fi 15901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15902fi 15903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15906 CFLAGS="$xorg_testset_save_CFLAGS" 15907fi 15908 15909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15912 fi 15913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15916if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15917then : 15918 printf %s "(cached) " >&6 15919else $as_nop 15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15921/* end confdefs.h. */ 15922int i; 15923_ACEOF 15924if ac_fn_c_try_compile "$LINENO" 15925then : 15926 xorg_cv_cc_flag_unused_command_line_argument=yes 15927else $as_nop 15928 xorg_cv_cc_flag_unused_command_line_argument=no 15929fi 15930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15931fi 15932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15935 CFLAGS="$xorg_testset_save_CFLAGS" 15936fi 15937 15938found="no" 15939 15940 if test $found = "no" ; then 15941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15943 fi 15944 15945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15947 fi 15948 15949 CFLAGS="$CFLAGS -Werror=sequence-point" 15950 15951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15952printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15953 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15954 if eval test \${$cacheid+y} 15955then : 15956 printf %s "(cached) " >&6 15957else $as_nop 15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15959/* end confdefs.h. */ 15960int i; 15961int 15962main (void) 15963{ 15964 15965 ; 15966 return 0; 15967} 15968_ACEOF 15969if ac_fn_c_try_link "$LINENO" 15970then : 15971 eval $cacheid=yes 15972else $as_nop 15973 eval $cacheid=no 15974fi 15975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15976 conftest$ac_exeext conftest.$ac_ext 15977fi 15978 15979 15980 CFLAGS="$xorg_testset_save_CFLAGS" 15981 15982 eval supported=\$$cacheid 15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15984printf "%s\n" "$supported" >&6; } 15985 if test "$supported" = "yes" ; then 15986 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15987 found="yes" 15988 fi 15989 fi 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005xorg_testset_save_CFLAGS="$CFLAGS" 16006 16007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16011if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16012then : 16013 printf %s "(cached) " >&6 16014else $as_nop 16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16016/* end confdefs.h. */ 16017int i; 16018_ACEOF 16019if ac_fn_c_try_compile "$LINENO" 16020then : 16021 xorg_cv_cc_flag_unknown_warning_option=yes 16022else $as_nop 16023 xorg_cv_cc_flag_unknown_warning_option=no 16024fi 16025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16026fi 16027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16030 CFLAGS="$xorg_testset_save_CFLAGS" 16031fi 16032 16033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16036 fi 16037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16041then : 16042 printf %s "(cached) " >&6 16043else $as_nop 16044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16045/* end confdefs.h. */ 16046int i; 16047_ACEOF 16048if ac_fn_c_try_compile "$LINENO" 16049then : 16050 xorg_cv_cc_flag_unused_command_line_argument=yes 16051else $as_nop 16052 xorg_cv_cc_flag_unused_command_line_argument=no 16053fi 16054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16055fi 16056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16059 CFLAGS="$xorg_testset_save_CFLAGS" 16060fi 16061 16062found="no" 16063 16064 if test $found = "no" ; then 16065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16067 fi 16068 16069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16071 fi 16072 16073 CFLAGS="$CFLAGS -Werror=return-type" 16074 16075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16076printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16077 cacheid=xorg_cv_cc_flag__Werror_return_type 16078 if eval test \${$cacheid+y} 16079then : 16080 printf %s "(cached) " >&6 16081else $as_nop 16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16083/* end confdefs.h. */ 16084int i; 16085int 16086main (void) 16087{ 16088 16089 ; 16090 return 0; 16091} 16092_ACEOF 16093if ac_fn_c_try_link "$LINENO" 16094then : 16095 eval $cacheid=yes 16096else $as_nop 16097 eval $cacheid=no 16098fi 16099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16100 conftest$ac_exeext conftest.$ac_ext 16101fi 16102 16103 16104 CFLAGS="$xorg_testset_save_CFLAGS" 16105 16106 eval supported=\$$cacheid 16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16108printf "%s\n" "$supported" >&6; } 16109 if test "$supported" = "yes" ; then 16110 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16111 found="yes" 16112 fi 16113 fi 16114 16115 if test $found = "no" ; then 16116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16118 fi 16119 16120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16122 fi 16123 16124 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16125 16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16127printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16128 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16129 if eval test \${$cacheid+y} 16130then : 16131 printf %s "(cached) " >&6 16132else $as_nop 16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16134/* end confdefs.h. */ 16135int i; 16136int 16137main (void) 16138{ 16139 16140 ; 16141 return 0; 16142} 16143_ACEOF 16144if ac_fn_c_try_link "$LINENO" 16145then : 16146 eval $cacheid=yes 16147else $as_nop 16148 eval $cacheid=no 16149fi 16150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16151 conftest$ac_exeext conftest.$ac_ext 16152fi 16153 16154 16155 CFLAGS="$xorg_testset_save_CFLAGS" 16156 16157 eval supported=\$$cacheid 16158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16159printf "%s\n" "$supported" >&6; } 16160 if test "$supported" = "yes" ; then 16161 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16162 found="yes" 16163 fi 16164 fi 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180xorg_testset_save_CFLAGS="$CFLAGS" 16181 16182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16186if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16187then : 16188 printf %s "(cached) " >&6 16189else $as_nop 16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16191/* end confdefs.h. */ 16192int i; 16193_ACEOF 16194if ac_fn_c_try_compile "$LINENO" 16195then : 16196 xorg_cv_cc_flag_unknown_warning_option=yes 16197else $as_nop 16198 xorg_cv_cc_flag_unknown_warning_option=no 16199fi 16200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16201fi 16202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16203printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16205 CFLAGS="$xorg_testset_save_CFLAGS" 16206fi 16207 16208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16211 fi 16212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16214printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16215if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16216then : 16217 printf %s "(cached) " >&6 16218else $as_nop 16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16220/* end confdefs.h. */ 16221int i; 16222_ACEOF 16223if ac_fn_c_try_compile "$LINENO" 16224then : 16225 xorg_cv_cc_flag_unused_command_line_argument=yes 16226else $as_nop 16227 xorg_cv_cc_flag_unused_command_line_argument=no 16228fi 16229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16230fi 16231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16232printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16234 CFLAGS="$xorg_testset_save_CFLAGS" 16235fi 16236 16237found="no" 16238 16239 if test $found = "no" ; then 16240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16242 fi 16243 16244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16246 fi 16247 16248 CFLAGS="$CFLAGS -Werror=trigraphs" 16249 16250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16251printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16252 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16253 if eval test \${$cacheid+y} 16254then : 16255 printf %s "(cached) " >&6 16256else $as_nop 16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16258/* end confdefs.h. */ 16259int i; 16260int 16261main (void) 16262{ 16263 16264 ; 16265 return 0; 16266} 16267_ACEOF 16268if ac_fn_c_try_link "$LINENO" 16269then : 16270 eval $cacheid=yes 16271else $as_nop 16272 eval $cacheid=no 16273fi 16274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16275 conftest$ac_exeext conftest.$ac_ext 16276fi 16277 16278 16279 CFLAGS="$xorg_testset_save_CFLAGS" 16280 16281 eval supported=\$$cacheid 16282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16283printf "%s\n" "$supported" >&6; } 16284 if test "$supported" = "yes" ; then 16285 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16286 found="yes" 16287 fi 16288 fi 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304xorg_testset_save_CFLAGS="$CFLAGS" 16305 16306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16310if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16311then : 16312 printf %s "(cached) " >&6 16313else $as_nop 16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16315/* end confdefs.h. */ 16316int i; 16317_ACEOF 16318if ac_fn_c_try_compile "$LINENO" 16319then : 16320 xorg_cv_cc_flag_unknown_warning_option=yes 16321else $as_nop 16322 xorg_cv_cc_flag_unknown_warning_option=no 16323fi 16324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16325fi 16326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16329 CFLAGS="$xorg_testset_save_CFLAGS" 16330fi 16331 16332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16335 fi 16336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16339if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16340then : 16341 printf %s "(cached) " >&6 16342else $as_nop 16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16344/* end confdefs.h. */ 16345int i; 16346_ACEOF 16347if ac_fn_c_try_compile "$LINENO" 16348then : 16349 xorg_cv_cc_flag_unused_command_line_argument=yes 16350else $as_nop 16351 xorg_cv_cc_flag_unused_command_line_argument=no 16352fi 16353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16354fi 16355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16358 CFLAGS="$xorg_testset_save_CFLAGS" 16359fi 16360 16361found="no" 16362 16363 if test $found = "no" ; then 16364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16366 fi 16367 16368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16370 fi 16371 16372 CFLAGS="$CFLAGS -Werror=array-bounds" 16373 16374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16375printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16376 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16377 if eval test \${$cacheid+y} 16378then : 16379 printf %s "(cached) " >&6 16380else $as_nop 16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16382/* end confdefs.h. */ 16383int i; 16384int 16385main (void) 16386{ 16387 16388 ; 16389 return 0; 16390} 16391_ACEOF 16392if ac_fn_c_try_link "$LINENO" 16393then : 16394 eval $cacheid=yes 16395else $as_nop 16396 eval $cacheid=no 16397fi 16398rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16399 conftest$ac_exeext conftest.$ac_ext 16400fi 16401 16402 16403 CFLAGS="$xorg_testset_save_CFLAGS" 16404 16405 eval supported=\$$cacheid 16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16407printf "%s\n" "$supported" >&6; } 16408 if test "$supported" = "yes" ; then 16409 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16410 found="yes" 16411 fi 16412 fi 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428xorg_testset_save_CFLAGS="$CFLAGS" 16429 16430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16433printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16434if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16435then : 16436 printf %s "(cached) " >&6 16437else $as_nop 16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16439/* end confdefs.h. */ 16440int i; 16441_ACEOF 16442if ac_fn_c_try_compile "$LINENO" 16443then : 16444 xorg_cv_cc_flag_unknown_warning_option=yes 16445else $as_nop 16446 xorg_cv_cc_flag_unknown_warning_option=no 16447fi 16448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16449fi 16450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16451printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16453 CFLAGS="$xorg_testset_save_CFLAGS" 16454fi 16455 16456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16459 fi 16460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16462printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16463if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16464then : 16465 printf %s "(cached) " >&6 16466else $as_nop 16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16468/* end confdefs.h. */ 16469int i; 16470_ACEOF 16471if ac_fn_c_try_compile "$LINENO" 16472then : 16473 xorg_cv_cc_flag_unused_command_line_argument=yes 16474else $as_nop 16475 xorg_cv_cc_flag_unused_command_line_argument=no 16476fi 16477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16478fi 16479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16482 CFLAGS="$xorg_testset_save_CFLAGS" 16483fi 16484 16485found="no" 16486 16487 if test $found = "no" ; then 16488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16490 fi 16491 16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16494 fi 16495 16496 CFLAGS="$CFLAGS -Werror=write-strings" 16497 16498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16499printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16500 cacheid=xorg_cv_cc_flag__Werror_write_strings 16501 if eval test \${$cacheid+y} 16502then : 16503 printf %s "(cached) " >&6 16504else $as_nop 16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16506/* end confdefs.h. */ 16507int i; 16508int 16509main (void) 16510{ 16511 16512 ; 16513 return 0; 16514} 16515_ACEOF 16516if ac_fn_c_try_link "$LINENO" 16517then : 16518 eval $cacheid=yes 16519else $as_nop 16520 eval $cacheid=no 16521fi 16522rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16523 conftest$ac_exeext conftest.$ac_ext 16524fi 16525 16526 16527 CFLAGS="$xorg_testset_save_CFLAGS" 16528 16529 eval supported=\$$cacheid 16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16531printf "%s\n" "$supported" >&6; } 16532 if test "$supported" = "yes" ; then 16533 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16534 found="yes" 16535 fi 16536 fi 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552xorg_testset_save_CFLAGS="$CFLAGS" 16553 16554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16558if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16559then : 16560 printf %s "(cached) " >&6 16561else $as_nop 16562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16563/* end confdefs.h. */ 16564int i; 16565_ACEOF 16566if ac_fn_c_try_compile "$LINENO" 16567then : 16568 xorg_cv_cc_flag_unknown_warning_option=yes 16569else $as_nop 16570 xorg_cv_cc_flag_unknown_warning_option=no 16571fi 16572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16573fi 16574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16577 CFLAGS="$xorg_testset_save_CFLAGS" 16578fi 16579 16580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16583 fi 16584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16587if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16588then : 16589 printf %s "(cached) " >&6 16590else $as_nop 16591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16592/* end confdefs.h. */ 16593int i; 16594_ACEOF 16595if ac_fn_c_try_compile "$LINENO" 16596then : 16597 xorg_cv_cc_flag_unused_command_line_argument=yes 16598else $as_nop 16599 xorg_cv_cc_flag_unused_command_line_argument=no 16600fi 16601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16602fi 16603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16604printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16606 CFLAGS="$xorg_testset_save_CFLAGS" 16607fi 16608 16609found="no" 16610 16611 if test $found = "no" ; then 16612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16614 fi 16615 16616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16618 fi 16619 16620 CFLAGS="$CFLAGS -Werror=address" 16621 16622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16623printf %s "checking if $CC supports -Werror=address... " >&6; } 16624 cacheid=xorg_cv_cc_flag__Werror_address 16625 if eval test \${$cacheid+y} 16626then : 16627 printf %s "(cached) " >&6 16628else $as_nop 16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16630/* end confdefs.h. */ 16631int i; 16632int 16633main (void) 16634{ 16635 16636 ; 16637 return 0; 16638} 16639_ACEOF 16640if ac_fn_c_try_link "$LINENO" 16641then : 16642 eval $cacheid=yes 16643else $as_nop 16644 eval $cacheid=no 16645fi 16646rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16647 conftest$ac_exeext conftest.$ac_ext 16648fi 16649 16650 16651 CFLAGS="$xorg_testset_save_CFLAGS" 16652 16653 eval supported=\$$cacheid 16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16655printf "%s\n" "$supported" >&6; } 16656 if test "$supported" = "yes" ; then 16657 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16658 found="yes" 16659 fi 16660 fi 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676xorg_testset_save_CFLAGS="$CFLAGS" 16677 16678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16682if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16683then : 16684 printf %s "(cached) " >&6 16685else $as_nop 16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16687/* end confdefs.h. */ 16688int i; 16689_ACEOF 16690if ac_fn_c_try_compile "$LINENO" 16691then : 16692 xorg_cv_cc_flag_unknown_warning_option=yes 16693else $as_nop 16694 xorg_cv_cc_flag_unknown_warning_option=no 16695fi 16696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16697fi 16698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16701 CFLAGS="$xorg_testset_save_CFLAGS" 16702fi 16703 16704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16707 fi 16708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16711if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16712then : 16713 printf %s "(cached) " >&6 16714else $as_nop 16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16716/* end confdefs.h. */ 16717int i; 16718_ACEOF 16719if ac_fn_c_try_compile "$LINENO" 16720then : 16721 xorg_cv_cc_flag_unused_command_line_argument=yes 16722else $as_nop 16723 xorg_cv_cc_flag_unused_command_line_argument=no 16724fi 16725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16726fi 16727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16728printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16730 CFLAGS="$xorg_testset_save_CFLAGS" 16731fi 16732 16733found="no" 16734 16735 if test $found = "no" ; then 16736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16738 fi 16739 16740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16742 fi 16743 16744 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16745 16746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16747printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16748 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16749 if eval test \${$cacheid+y} 16750then : 16751 printf %s "(cached) " >&6 16752else $as_nop 16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16754/* end confdefs.h. */ 16755int i; 16756int 16757main (void) 16758{ 16759 16760 ; 16761 return 0; 16762} 16763_ACEOF 16764if ac_fn_c_try_link "$LINENO" 16765then : 16766 eval $cacheid=yes 16767else $as_nop 16768 eval $cacheid=no 16769fi 16770rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16771 conftest$ac_exeext conftest.$ac_ext 16772fi 16773 16774 16775 CFLAGS="$xorg_testset_save_CFLAGS" 16776 16777 eval supported=\$$cacheid 16778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16779printf "%s\n" "$supported" >&6; } 16780 if test "$supported" = "yes" ; then 16781 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16782 found="yes" 16783 fi 16784 fi 16785 16786 if test $found = "no" ; then 16787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16789 fi 16790 16791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16793 fi 16794 16795 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16796 16797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16798printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16799 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16800 if eval test \${$cacheid+y} 16801then : 16802 printf %s "(cached) " >&6 16803else $as_nop 16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16805/* end confdefs.h. */ 16806int i; 16807int 16808main (void) 16809{ 16810 16811 ; 16812 return 0; 16813} 16814_ACEOF 16815if ac_fn_c_try_link "$LINENO" 16816then : 16817 eval $cacheid=yes 16818else $as_nop 16819 eval $cacheid=no 16820fi 16821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16822 conftest$ac_exeext conftest.$ac_ext 16823fi 16824 16825 16826 CFLAGS="$xorg_testset_save_CFLAGS" 16827 16828 eval supported=\$$cacheid 16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16830printf "%s\n" "$supported" >&6; } 16831 if test "$supported" = "yes" ; then 16832 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16833 found="yes" 16834 fi 16835 fi 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851xorg_testset_save_CFLAGS="$CFLAGS" 16852 16853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16857if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16858then : 16859 printf %s "(cached) " >&6 16860else $as_nop 16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16862/* end confdefs.h. */ 16863int i; 16864_ACEOF 16865if ac_fn_c_try_compile "$LINENO" 16866then : 16867 xorg_cv_cc_flag_unknown_warning_option=yes 16868else $as_nop 16869 xorg_cv_cc_flag_unknown_warning_option=no 16870fi 16871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16872fi 16873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16876 CFLAGS="$xorg_testset_save_CFLAGS" 16877fi 16878 16879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16882 fi 16883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16886if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16887then : 16888 printf %s "(cached) " >&6 16889else $as_nop 16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16891/* end confdefs.h. */ 16892int i; 16893_ACEOF 16894if ac_fn_c_try_compile "$LINENO" 16895then : 16896 xorg_cv_cc_flag_unused_command_line_argument=yes 16897else $as_nop 16898 xorg_cv_cc_flag_unused_command_line_argument=no 16899fi 16900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16901fi 16902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16905 CFLAGS="$xorg_testset_save_CFLAGS" 16906fi 16907 16908found="no" 16909 16910 if test $found = "no" ; then 16911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16913 fi 16914 16915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16917 fi 16918 16919 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16920 16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16922printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16923 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16924 if eval test \${$cacheid+y} 16925then : 16926 printf %s "(cached) " >&6 16927else $as_nop 16928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16929/* end confdefs.h. */ 16930int i; 16931int 16932main (void) 16933{ 16934 16935 ; 16936 return 0; 16937} 16938_ACEOF 16939if ac_fn_c_try_link "$LINENO" 16940then : 16941 eval $cacheid=yes 16942else $as_nop 16943 eval $cacheid=no 16944fi 16945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16946 conftest$ac_exeext conftest.$ac_ext 16947fi 16948 16949 16950 CFLAGS="$xorg_testset_save_CFLAGS" 16951 16952 eval supported=\$$cacheid 16953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16954printf "%s\n" "$supported" >&6; } 16955 if test "$supported" = "yes" ; then 16956 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16957 found="yes" 16958 fi 16959 fi 16960 16961 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16962else 16963{ printf "%s\n" "$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 16964printf "%s\n" "$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;} 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978xorg_testset_save_CFLAGS="$CFLAGS" 16979 16980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16983printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16984if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16985then : 16986 printf %s "(cached) " >&6 16987else $as_nop 16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16989/* end confdefs.h. */ 16990int i; 16991_ACEOF 16992if ac_fn_c_try_compile "$LINENO" 16993then : 16994 xorg_cv_cc_flag_unknown_warning_option=yes 16995else $as_nop 16996 xorg_cv_cc_flag_unknown_warning_option=no 16997fi 16998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16999fi 17000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17001printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17003 CFLAGS="$xorg_testset_save_CFLAGS" 17004fi 17005 17006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17009 fi 17010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17012printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17013if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17014then : 17015 printf %s "(cached) " >&6 17016else $as_nop 17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17018/* end confdefs.h. */ 17019int i; 17020_ACEOF 17021if ac_fn_c_try_compile "$LINENO" 17022then : 17023 xorg_cv_cc_flag_unused_command_line_argument=yes 17024else $as_nop 17025 xorg_cv_cc_flag_unused_command_line_argument=no 17026fi 17027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17028fi 17029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17032 CFLAGS="$xorg_testset_save_CFLAGS" 17033fi 17034 17035found="no" 17036 17037 if test $found = "no" ; then 17038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17040 fi 17041 17042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17044 fi 17045 17046 CFLAGS="$CFLAGS -Wimplicit" 17047 17048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17049printf %s "checking if $CC supports -Wimplicit... " >&6; } 17050 cacheid=xorg_cv_cc_flag__Wimplicit 17051 if eval test \${$cacheid+y} 17052then : 17053 printf %s "(cached) " >&6 17054else $as_nop 17055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17056/* end confdefs.h. */ 17057int i; 17058int 17059main (void) 17060{ 17061 17062 ; 17063 return 0; 17064} 17065_ACEOF 17066if ac_fn_c_try_link "$LINENO" 17067then : 17068 eval $cacheid=yes 17069else $as_nop 17070 eval $cacheid=no 17071fi 17072rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17073 conftest$ac_exeext conftest.$ac_ext 17074fi 17075 17076 17077 CFLAGS="$xorg_testset_save_CFLAGS" 17078 17079 eval supported=\$$cacheid 17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17081printf "%s\n" "$supported" >&6; } 17082 if test "$supported" = "yes" ; then 17083 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17084 found="yes" 17085 fi 17086 fi 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102xorg_testset_save_CFLAGS="$CFLAGS" 17103 17104if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17107printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17108if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17109then : 17110 printf %s "(cached) " >&6 17111else $as_nop 17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17113/* end confdefs.h. */ 17114int i; 17115_ACEOF 17116if ac_fn_c_try_compile "$LINENO" 17117then : 17118 xorg_cv_cc_flag_unknown_warning_option=yes 17119else $as_nop 17120 xorg_cv_cc_flag_unknown_warning_option=no 17121fi 17122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17123fi 17124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17127 CFLAGS="$xorg_testset_save_CFLAGS" 17128fi 17129 17130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17133 fi 17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17137if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17138then : 17139 printf %s "(cached) " >&6 17140else $as_nop 17141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17142/* end confdefs.h. */ 17143int i; 17144_ACEOF 17145if ac_fn_c_try_compile "$LINENO" 17146then : 17147 xorg_cv_cc_flag_unused_command_line_argument=yes 17148else $as_nop 17149 xorg_cv_cc_flag_unused_command_line_argument=no 17150fi 17151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17152fi 17153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17154printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17156 CFLAGS="$xorg_testset_save_CFLAGS" 17157fi 17158 17159found="no" 17160 17161 if test $found = "no" ; then 17162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17164 fi 17165 17166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17168 fi 17169 17170 CFLAGS="$CFLAGS -Wnonnull" 17171 17172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17173printf %s "checking if $CC supports -Wnonnull... " >&6; } 17174 cacheid=xorg_cv_cc_flag__Wnonnull 17175 if eval test \${$cacheid+y} 17176then : 17177 printf %s "(cached) " >&6 17178else $as_nop 17179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17180/* end confdefs.h. */ 17181int i; 17182int 17183main (void) 17184{ 17185 17186 ; 17187 return 0; 17188} 17189_ACEOF 17190if ac_fn_c_try_link "$LINENO" 17191then : 17192 eval $cacheid=yes 17193else $as_nop 17194 eval $cacheid=no 17195fi 17196rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17197 conftest$ac_exeext conftest.$ac_ext 17198fi 17199 17200 17201 CFLAGS="$xorg_testset_save_CFLAGS" 17202 17203 eval supported=\$$cacheid 17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17205printf "%s\n" "$supported" >&6; } 17206 if test "$supported" = "yes" ; then 17207 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17208 found="yes" 17209 fi 17210 fi 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226xorg_testset_save_CFLAGS="$CFLAGS" 17227 17228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17232if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17233then : 17234 printf %s "(cached) " >&6 17235else $as_nop 17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17237/* end confdefs.h. */ 17238int i; 17239_ACEOF 17240if ac_fn_c_try_compile "$LINENO" 17241then : 17242 xorg_cv_cc_flag_unknown_warning_option=yes 17243else $as_nop 17244 xorg_cv_cc_flag_unknown_warning_option=no 17245fi 17246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17247fi 17248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17251 CFLAGS="$xorg_testset_save_CFLAGS" 17252fi 17253 17254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17257 fi 17258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17261if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17262then : 17263 printf %s "(cached) " >&6 17264else $as_nop 17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17266/* end confdefs.h. */ 17267int i; 17268_ACEOF 17269if ac_fn_c_try_compile "$LINENO" 17270then : 17271 xorg_cv_cc_flag_unused_command_line_argument=yes 17272else $as_nop 17273 xorg_cv_cc_flag_unused_command_line_argument=no 17274fi 17275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17276fi 17277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17280 CFLAGS="$xorg_testset_save_CFLAGS" 17281fi 17282 17283found="no" 17284 17285 if test $found = "no" ; then 17286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17288 fi 17289 17290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17292 fi 17293 17294 CFLAGS="$CFLAGS -Winit-self" 17295 17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17297printf %s "checking if $CC supports -Winit-self... " >&6; } 17298 cacheid=xorg_cv_cc_flag__Winit_self 17299 if eval test \${$cacheid+y} 17300then : 17301 printf %s "(cached) " >&6 17302else $as_nop 17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17304/* end confdefs.h. */ 17305int i; 17306int 17307main (void) 17308{ 17309 17310 ; 17311 return 0; 17312} 17313_ACEOF 17314if ac_fn_c_try_link "$LINENO" 17315then : 17316 eval $cacheid=yes 17317else $as_nop 17318 eval $cacheid=no 17319fi 17320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17321 conftest$ac_exeext conftest.$ac_ext 17322fi 17323 17324 17325 CFLAGS="$xorg_testset_save_CFLAGS" 17326 17327 eval supported=\$$cacheid 17328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17329printf "%s\n" "$supported" >&6; } 17330 if test "$supported" = "yes" ; then 17331 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17332 found="yes" 17333 fi 17334 fi 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350xorg_testset_save_CFLAGS="$CFLAGS" 17351 17352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17355printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17356if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17357then : 17358 printf %s "(cached) " >&6 17359else $as_nop 17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17361/* end confdefs.h. */ 17362int i; 17363_ACEOF 17364if ac_fn_c_try_compile "$LINENO" 17365then : 17366 xorg_cv_cc_flag_unknown_warning_option=yes 17367else $as_nop 17368 xorg_cv_cc_flag_unknown_warning_option=no 17369fi 17370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17371fi 17372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17373printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17374 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17375 CFLAGS="$xorg_testset_save_CFLAGS" 17376fi 17377 17378if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17381 fi 17382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17384printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17385if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17386then : 17387 printf %s "(cached) " >&6 17388else $as_nop 17389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17390/* end confdefs.h. */ 17391int i; 17392_ACEOF 17393if ac_fn_c_try_compile "$LINENO" 17394then : 17395 xorg_cv_cc_flag_unused_command_line_argument=yes 17396else $as_nop 17397 xorg_cv_cc_flag_unused_command_line_argument=no 17398fi 17399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17400fi 17401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17402printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17403 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17404 CFLAGS="$xorg_testset_save_CFLAGS" 17405fi 17406 17407found="no" 17408 17409 if test $found = "no" ; then 17410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17412 fi 17413 17414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17416 fi 17417 17418 CFLAGS="$CFLAGS -Wmain" 17419 17420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17421printf %s "checking if $CC supports -Wmain... " >&6; } 17422 cacheid=xorg_cv_cc_flag__Wmain 17423 if eval test \${$cacheid+y} 17424then : 17425 printf %s "(cached) " >&6 17426else $as_nop 17427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17428/* end confdefs.h. */ 17429int i; 17430int 17431main (void) 17432{ 17433 17434 ; 17435 return 0; 17436} 17437_ACEOF 17438if ac_fn_c_try_link "$LINENO" 17439then : 17440 eval $cacheid=yes 17441else $as_nop 17442 eval $cacheid=no 17443fi 17444rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17445 conftest$ac_exeext conftest.$ac_ext 17446fi 17447 17448 17449 CFLAGS="$xorg_testset_save_CFLAGS" 17450 17451 eval supported=\$$cacheid 17452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17453printf "%s\n" "$supported" >&6; } 17454 if test "$supported" = "yes" ; then 17455 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17456 found="yes" 17457 fi 17458 fi 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474xorg_testset_save_CFLAGS="$CFLAGS" 17475 17476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17479printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17480if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17481then : 17482 printf %s "(cached) " >&6 17483else $as_nop 17484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17485/* end confdefs.h. */ 17486int i; 17487_ACEOF 17488if ac_fn_c_try_compile "$LINENO" 17489then : 17490 xorg_cv_cc_flag_unknown_warning_option=yes 17491else $as_nop 17492 xorg_cv_cc_flag_unknown_warning_option=no 17493fi 17494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17495fi 17496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17497printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17499 CFLAGS="$xorg_testset_save_CFLAGS" 17500fi 17501 17502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17505 fi 17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17508printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17509if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17510then : 17511 printf %s "(cached) " >&6 17512else $as_nop 17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17514/* end confdefs.h. */ 17515int i; 17516_ACEOF 17517if ac_fn_c_try_compile "$LINENO" 17518then : 17519 xorg_cv_cc_flag_unused_command_line_argument=yes 17520else $as_nop 17521 xorg_cv_cc_flag_unused_command_line_argument=no 17522fi 17523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17524fi 17525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17526printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17528 CFLAGS="$xorg_testset_save_CFLAGS" 17529fi 17530 17531found="no" 17532 17533 if test $found = "no" ; then 17534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17536 fi 17537 17538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17540 fi 17541 17542 CFLAGS="$CFLAGS -Wmissing-braces" 17543 17544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17545printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17546 cacheid=xorg_cv_cc_flag__Wmissing_braces 17547 if eval test \${$cacheid+y} 17548then : 17549 printf %s "(cached) " >&6 17550else $as_nop 17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17552/* end confdefs.h. */ 17553int i; 17554int 17555main (void) 17556{ 17557 17558 ; 17559 return 0; 17560} 17561_ACEOF 17562if ac_fn_c_try_link "$LINENO" 17563then : 17564 eval $cacheid=yes 17565else $as_nop 17566 eval $cacheid=no 17567fi 17568rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17569 conftest$ac_exeext conftest.$ac_ext 17570fi 17571 17572 17573 CFLAGS="$xorg_testset_save_CFLAGS" 17574 17575 eval supported=\$$cacheid 17576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17577printf "%s\n" "$supported" >&6; } 17578 if test "$supported" = "yes" ; then 17579 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17580 found="yes" 17581 fi 17582 fi 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598xorg_testset_save_CFLAGS="$CFLAGS" 17599 17600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17603printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17604if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17605then : 17606 printf %s "(cached) " >&6 17607else $as_nop 17608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17609/* end confdefs.h. */ 17610int i; 17611_ACEOF 17612if ac_fn_c_try_compile "$LINENO" 17613then : 17614 xorg_cv_cc_flag_unknown_warning_option=yes 17615else $as_nop 17616 xorg_cv_cc_flag_unknown_warning_option=no 17617fi 17618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17619fi 17620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17621printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17623 CFLAGS="$xorg_testset_save_CFLAGS" 17624fi 17625 17626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17629 fi 17630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17632printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17633if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17634then : 17635 printf %s "(cached) " >&6 17636else $as_nop 17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17638/* end confdefs.h. */ 17639int i; 17640_ACEOF 17641if ac_fn_c_try_compile "$LINENO" 17642then : 17643 xorg_cv_cc_flag_unused_command_line_argument=yes 17644else $as_nop 17645 xorg_cv_cc_flag_unused_command_line_argument=no 17646fi 17647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17648fi 17649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17650printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17652 CFLAGS="$xorg_testset_save_CFLAGS" 17653fi 17654 17655found="no" 17656 17657 if test $found = "no" ; then 17658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17660 fi 17661 17662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17664 fi 17665 17666 CFLAGS="$CFLAGS -Wsequence-point" 17667 17668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17669printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17670 cacheid=xorg_cv_cc_flag__Wsequence_point 17671 if eval test \${$cacheid+y} 17672then : 17673 printf %s "(cached) " >&6 17674else $as_nop 17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17676/* end confdefs.h. */ 17677int i; 17678int 17679main (void) 17680{ 17681 17682 ; 17683 return 0; 17684} 17685_ACEOF 17686if ac_fn_c_try_link "$LINENO" 17687then : 17688 eval $cacheid=yes 17689else $as_nop 17690 eval $cacheid=no 17691fi 17692rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17693 conftest$ac_exeext conftest.$ac_ext 17694fi 17695 17696 17697 CFLAGS="$xorg_testset_save_CFLAGS" 17698 17699 eval supported=\$$cacheid 17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17701printf "%s\n" "$supported" >&6; } 17702 if test "$supported" = "yes" ; then 17703 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17704 found="yes" 17705 fi 17706 fi 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722xorg_testset_save_CFLAGS="$CFLAGS" 17723 17724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17727printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17728if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17729then : 17730 printf %s "(cached) " >&6 17731else $as_nop 17732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17733/* end confdefs.h. */ 17734int i; 17735_ACEOF 17736if ac_fn_c_try_compile "$LINENO" 17737then : 17738 xorg_cv_cc_flag_unknown_warning_option=yes 17739else $as_nop 17740 xorg_cv_cc_flag_unknown_warning_option=no 17741fi 17742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17743fi 17744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17745printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17747 CFLAGS="$xorg_testset_save_CFLAGS" 17748fi 17749 17750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17753 fi 17754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17756printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17757if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17758then : 17759 printf %s "(cached) " >&6 17760else $as_nop 17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17762/* end confdefs.h. */ 17763int i; 17764_ACEOF 17765if ac_fn_c_try_compile "$LINENO" 17766then : 17767 xorg_cv_cc_flag_unused_command_line_argument=yes 17768else $as_nop 17769 xorg_cv_cc_flag_unused_command_line_argument=no 17770fi 17771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17772fi 17773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17774printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17776 CFLAGS="$xorg_testset_save_CFLAGS" 17777fi 17778 17779found="no" 17780 17781 if test $found = "no" ; then 17782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17784 fi 17785 17786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17788 fi 17789 17790 CFLAGS="$CFLAGS -Wreturn-type" 17791 17792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17793printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17794 cacheid=xorg_cv_cc_flag__Wreturn_type 17795 if eval test \${$cacheid+y} 17796then : 17797 printf %s "(cached) " >&6 17798else $as_nop 17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17800/* end confdefs.h. */ 17801int i; 17802int 17803main (void) 17804{ 17805 17806 ; 17807 return 0; 17808} 17809_ACEOF 17810if ac_fn_c_try_link "$LINENO" 17811then : 17812 eval $cacheid=yes 17813else $as_nop 17814 eval $cacheid=no 17815fi 17816rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17817 conftest$ac_exeext conftest.$ac_ext 17818fi 17819 17820 17821 CFLAGS="$xorg_testset_save_CFLAGS" 17822 17823 eval supported=\$$cacheid 17824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17825printf "%s\n" "$supported" >&6; } 17826 if test "$supported" = "yes" ; then 17827 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17828 found="yes" 17829 fi 17830 fi 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846xorg_testset_save_CFLAGS="$CFLAGS" 17847 17848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17851printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17852if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17853then : 17854 printf %s "(cached) " >&6 17855else $as_nop 17856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17857/* end confdefs.h. */ 17858int i; 17859_ACEOF 17860if ac_fn_c_try_compile "$LINENO" 17861then : 17862 xorg_cv_cc_flag_unknown_warning_option=yes 17863else $as_nop 17864 xorg_cv_cc_flag_unknown_warning_option=no 17865fi 17866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17867fi 17868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17871 CFLAGS="$xorg_testset_save_CFLAGS" 17872fi 17873 17874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17877 fi 17878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17881if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17882then : 17883 printf %s "(cached) " >&6 17884else $as_nop 17885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17886/* end confdefs.h. */ 17887int i; 17888_ACEOF 17889if ac_fn_c_try_compile "$LINENO" 17890then : 17891 xorg_cv_cc_flag_unused_command_line_argument=yes 17892else $as_nop 17893 xorg_cv_cc_flag_unused_command_line_argument=no 17894fi 17895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17896fi 17897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17898printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17900 CFLAGS="$xorg_testset_save_CFLAGS" 17901fi 17902 17903found="no" 17904 17905 if test $found = "no" ; then 17906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17908 fi 17909 17910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17912 fi 17913 17914 CFLAGS="$CFLAGS -Wtrigraphs" 17915 17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17917printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17918 cacheid=xorg_cv_cc_flag__Wtrigraphs 17919 if eval test \${$cacheid+y} 17920then : 17921 printf %s "(cached) " >&6 17922else $as_nop 17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17924/* end confdefs.h. */ 17925int i; 17926int 17927main (void) 17928{ 17929 17930 ; 17931 return 0; 17932} 17933_ACEOF 17934if ac_fn_c_try_link "$LINENO" 17935then : 17936 eval $cacheid=yes 17937else $as_nop 17938 eval $cacheid=no 17939fi 17940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17941 conftest$ac_exeext conftest.$ac_ext 17942fi 17943 17944 17945 CFLAGS="$xorg_testset_save_CFLAGS" 17946 17947 eval supported=\$$cacheid 17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17949printf "%s\n" "$supported" >&6; } 17950 if test "$supported" = "yes" ; then 17951 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17952 found="yes" 17953 fi 17954 fi 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970xorg_testset_save_CFLAGS="$CFLAGS" 17971 17972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17976if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17977then : 17978 printf %s "(cached) " >&6 17979else $as_nop 17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17981/* end confdefs.h. */ 17982int i; 17983_ACEOF 17984if ac_fn_c_try_compile "$LINENO" 17985then : 17986 xorg_cv_cc_flag_unknown_warning_option=yes 17987else $as_nop 17988 xorg_cv_cc_flag_unknown_warning_option=no 17989fi 17990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17991fi 17992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17995 CFLAGS="$xorg_testset_save_CFLAGS" 17996fi 17997 17998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18001 fi 18002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18005if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18006then : 18007 printf %s "(cached) " >&6 18008else $as_nop 18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18010/* end confdefs.h. */ 18011int i; 18012_ACEOF 18013if ac_fn_c_try_compile "$LINENO" 18014then : 18015 xorg_cv_cc_flag_unused_command_line_argument=yes 18016else $as_nop 18017 xorg_cv_cc_flag_unused_command_line_argument=no 18018fi 18019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18020fi 18021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18024 CFLAGS="$xorg_testset_save_CFLAGS" 18025fi 18026 18027found="no" 18028 18029 if test $found = "no" ; then 18030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18032 fi 18033 18034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18036 fi 18037 18038 CFLAGS="$CFLAGS -Warray-bounds" 18039 18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18041printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18042 cacheid=xorg_cv_cc_flag__Warray_bounds 18043 if eval test \${$cacheid+y} 18044then : 18045 printf %s "(cached) " >&6 18046else $as_nop 18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18048/* end confdefs.h. */ 18049int i; 18050int 18051main (void) 18052{ 18053 18054 ; 18055 return 0; 18056} 18057_ACEOF 18058if ac_fn_c_try_link "$LINENO" 18059then : 18060 eval $cacheid=yes 18061else $as_nop 18062 eval $cacheid=no 18063fi 18064rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18065 conftest$ac_exeext conftest.$ac_ext 18066fi 18067 18068 18069 CFLAGS="$xorg_testset_save_CFLAGS" 18070 18071 eval supported=\$$cacheid 18072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18073printf "%s\n" "$supported" >&6; } 18074 if test "$supported" = "yes" ; then 18075 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18076 found="yes" 18077 fi 18078 fi 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094xorg_testset_save_CFLAGS="$CFLAGS" 18095 18096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18100if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18101then : 18102 printf %s "(cached) " >&6 18103else $as_nop 18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18105/* end confdefs.h. */ 18106int i; 18107_ACEOF 18108if ac_fn_c_try_compile "$LINENO" 18109then : 18110 xorg_cv_cc_flag_unknown_warning_option=yes 18111else $as_nop 18112 xorg_cv_cc_flag_unknown_warning_option=no 18113fi 18114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18115fi 18116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18119 CFLAGS="$xorg_testset_save_CFLAGS" 18120fi 18121 18122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18125 fi 18126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18129if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18130then : 18131 printf %s "(cached) " >&6 18132else $as_nop 18133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134/* end confdefs.h. */ 18135int i; 18136_ACEOF 18137if ac_fn_c_try_compile "$LINENO" 18138then : 18139 xorg_cv_cc_flag_unused_command_line_argument=yes 18140else $as_nop 18141 xorg_cv_cc_flag_unused_command_line_argument=no 18142fi 18143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18144fi 18145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18148 CFLAGS="$xorg_testset_save_CFLAGS" 18149fi 18150 18151found="no" 18152 18153 if test $found = "no" ; then 18154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18156 fi 18157 18158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18160 fi 18161 18162 CFLAGS="$CFLAGS -Wwrite-strings" 18163 18164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18165printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18166 cacheid=xorg_cv_cc_flag__Wwrite_strings 18167 if eval test \${$cacheid+y} 18168then : 18169 printf %s "(cached) " >&6 18170else $as_nop 18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18172/* end confdefs.h. */ 18173int i; 18174int 18175main (void) 18176{ 18177 18178 ; 18179 return 0; 18180} 18181_ACEOF 18182if ac_fn_c_try_link "$LINENO" 18183then : 18184 eval $cacheid=yes 18185else $as_nop 18186 eval $cacheid=no 18187fi 18188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18189 conftest$ac_exeext conftest.$ac_ext 18190fi 18191 18192 18193 CFLAGS="$xorg_testset_save_CFLAGS" 18194 18195 eval supported=\$$cacheid 18196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18197printf "%s\n" "$supported" >&6; } 18198 if test "$supported" = "yes" ; then 18199 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18200 found="yes" 18201 fi 18202 fi 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218xorg_testset_save_CFLAGS="$CFLAGS" 18219 18220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18224if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18225then : 18226 printf %s "(cached) " >&6 18227else $as_nop 18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18229/* end confdefs.h. */ 18230int i; 18231_ACEOF 18232if ac_fn_c_try_compile "$LINENO" 18233then : 18234 xorg_cv_cc_flag_unknown_warning_option=yes 18235else $as_nop 18236 xorg_cv_cc_flag_unknown_warning_option=no 18237fi 18238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18239fi 18240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18243 CFLAGS="$xorg_testset_save_CFLAGS" 18244fi 18245 18246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18249 fi 18250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18254then : 18255 printf %s "(cached) " >&6 18256else $as_nop 18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18258/* end confdefs.h. */ 18259int i; 18260_ACEOF 18261if ac_fn_c_try_compile "$LINENO" 18262then : 18263 xorg_cv_cc_flag_unused_command_line_argument=yes 18264else $as_nop 18265 xorg_cv_cc_flag_unused_command_line_argument=no 18266fi 18267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18268fi 18269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18272 CFLAGS="$xorg_testset_save_CFLAGS" 18273fi 18274 18275found="no" 18276 18277 if test $found = "no" ; then 18278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18280 fi 18281 18282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18284 fi 18285 18286 CFLAGS="$CFLAGS -Waddress" 18287 18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18289printf %s "checking if $CC supports -Waddress... " >&6; } 18290 cacheid=xorg_cv_cc_flag__Waddress 18291 if eval test \${$cacheid+y} 18292then : 18293 printf %s "(cached) " >&6 18294else $as_nop 18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18296/* end confdefs.h. */ 18297int i; 18298int 18299main (void) 18300{ 18301 18302 ; 18303 return 0; 18304} 18305_ACEOF 18306if ac_fn_c_try_link "$LINENO" 18307then : 18308 eval $cacheid=yes 18309else $as_nop 18310 eval $cacheid=no 18311fi 18312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18313 conftest$ac_exeext conftest.$ac_ext 18314fi 18315 18316 18317 CFLAGS="$xorg_testset_save_CFLAGS" 18318 18319 eval supported=\$$cacheid 18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18321printf "%s\n" "$supported" >&6; } 18322 if test "$supported" = "yes" ; then 18323 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18324 found="yes" 18325 fi 18326 fi 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342xorg_testset_save_CFLAGS="$CFLAGS" 18343 18344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18348if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18349then : 18350 printf %s "(cached) " >&6 18351else $as_nop 18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18353/* end confdefs.h. */ 18354int i; 18355_ACEOF 18356if ac_fn_c_try_compile "$LINENO" 18357then : 18358 xorg_cv_cc_flag_unknown_warning_option=yes 18359else $as_nop 18360 xorg_cv_cc_flag_unknown_warning_option=no 18361fi 18362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18363fi 18364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18367 CFLAGS="$xorg_testset_save_CFLAGS" 18368fi 18369 18370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18373 fi 18374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18377if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18378then : 18379 printf %s "(cached) " >&6 18380else $as_nop 18381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18382/* end confdefs.h. */ 18383int i; 18384_ACEOF 18385if ac_fn_c_try_compile "$LINENO" 18386then : 18387 xorg_cv_cc_flag_unused_command_line_argument=yes 18388else $as_nop 18389 xorg_cv_cc_flag_unused_command_line_argument=no 18390fi 18391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18392fi 18393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18395 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18396 CFLAGS="$xorg_testset_save_CFLAGS" 18397fi 18398 18399found="no" 18400 18401 if test $found = "no" ; then 18402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18404 fi 18405 18406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18408 fi 18409 18410 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18411 18412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18413printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18414 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18415 if eval test \${$cacheid+y} 18416then : 18417 printf %s "(cached) " >&6 18418else $as_nop 18419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18420/* end confdefs.h. */ 18421int i; 18422int 18423main (void) 18424{ 18425 18426 ; 18427 return 0; 18428} 18429_ACEOF 18430if ac_fn_c_try_link "$LINENO" 18431then : 18432 eval $cacheid=yes 18433else $as_nop 18434 eval $cacheid=no 18435fi 18436rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18437 conftest$ac_exeext conftest.$ac_ext 18438fi 18439 18440 18441 CFLAGS="$xorg_testset_save_CFLAGS" 18442 18443 eval supported=\$$cacheid 18444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18445printf "%s\n" "$supported" >&6; } 18446 if test "$supported" = "yes" ; then 18447 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18448 found="yes" 18449 fi 18450 fi 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466xorg_testset_save_CFLAGS="$CFLAGS" 18467 18468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18472if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18473then : 18474 printf %s "(cached) " >&6 18475else $as_nop 18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18477/* end confdefs.h. */ 18478int i; 18479_ACEOF 18480if ac_fn_c_try_compile "$LINENO" 18481then : 18482 xorg_cv_cc_flag_unknown_warning_option=yes 18483else $as_nop 18484 xorg_cv_cc_flag_unknown_warning_option=no 18485fi 18486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18487fi 18488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18491 CFLAGS="$xorg_testset_save_CFLAGS" 18492fi 18493 18494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18497 fi 18498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18501if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18502then : 18503 printf %s "(cached) " >&6 18504else $as_nop 18505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506/* end confdefs.h. */ 18507int i; 18508_ACEOF 18509if ac_fn_c_try_compile "$LINENO" 18510then : 18511 xorg_cv_cc_flag_unused_command_line_argument=yes 18512else $as_nop 18513 xorg_cv_cc_flag_unused_command_line_argument=no 18514fi 18515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18516fi 18517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18520 CFLAGS="$xorg_testset_save_CFLAGS" 18521fi 18522 18523found="no" 18524 18525 if test $found = "no" ; then 18526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18528 fi 18529 18530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18532 fi 18533 18534 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18535 18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18537printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18538 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18539 if eval test \${$cacheid+y} 18540then : 18541 printf %s "(cached) " >&6 18542else $as_nop 18543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18544/* end confdefs.h. */ 18545int i; 18546int 18547main (void) 18548{ 18549 18550 ; 18551 return 0; 18552} 18553_ACEOF 18554if ac_fn_c_try_link "$LINENO" 18555then : 18556 eval $cacheid=yes 18557else $as_nop 18558 eval $cacheid=no 18559fi 18560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18561 conftest$ac_exeext conftest.$ac_ext 18562fi 18563 18564 18565 CFLAGS="$xorg_testset_save_CFLAGS" 18566 18567 eval supported=\$$cacheid 18568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18569printf "%s\n" "$supported" >&6; } 18570 if test "$supported" = "yes" ; then 18571 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18572 found="yes" 18573 fi 18574 fi 18575 18576 18577fi 18578 18579 18580 18581 18582 18583 18584 18585 CWARNFLAGS="$BASE_CFLAGS" 18586 if test "x$GCC" = xyes ; then 18587 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18588 fi 18589 18590 18591 18592 18593 18594 18595 18596 18597# Check whether --enable-strict-compilation was given. 18598if test ${enable_strict_compilation+y} 18599then : 18600 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18601else $as_nop 18602 STRICT_COMPILE=no 18603fi 18604 18605 18606 18607 18608 18609 18610STRICT_CFLAGS="" 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624xorg_testset_save_CFLAGS="$CFLAGS" 18625 18626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18630if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18631then : 18632 printf %s "(cached) " >&6 18633else $as_nop 18634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18635/* end confdefs.h. */ 18636int i; 18637_ACEOF 18638if ac_fn_c_try_compile "$LINENO" 18639then : 18640 xorg_cv_cc_flag_unknown_warning_option=yes 18641else $as_nop 18642 xorg_cv_cc_flag_unknown_warning_option=no 18643fi 18644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18645fi 18646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18649 CFLAGS="$xorg_testset_save_CFLAGS" 18650fi 18651 18652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18655 fi 18656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18659if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18660then : 18661 printf %s "(cached) " >&6 18662else $as_nop 18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18664/* end confdefs.h. */ 18665int i; 18666_ACEOF 18667if ac_fn_c_try_compile "$LINENO" 18668then : 18669 xorg_cv_cc_flag_unused_command_line_argument=yes 18670else $as_nop 18671 xorg_cv_cc_flag_unused_command_line_argument=no 18672fi 18673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18674fi 18675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18678 CFLAGS="$xorg_testset_save_CFLAGS" 18679fi 18680 18681found="no" 18682 18683 if test $found = "no" ; then 18684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18686 fi 18687 18688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18690 fi 18691 18692 CFLAGS="$CFLAGS -pedantic" 18693 18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18695printf %s "checking if $CC supports -pedantic... " >&6; } 18696 cacheid=xorg_cv_cc_flag__pedantic 18697 if eval test \${$cacheid+y} 18698then : 18699 printf %s "(cached) " >&6 18700else $as_nop 18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18702/* end confdefs.h. */ 18703int i; 18704int 18705main (void) 18706{ 18707 18708 ; 18709 return 0; 18710} 18711_ACEOF 18712if ac_fn_c_try_link "$LINENO" 18713then : 18714 eval $cacheid=yes 18715else $as_nop 18716 eval $cacheid=no 18717fi 18718rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18719 conftest$ac_exeext conftest.$ac_ext 18720fi 18721 18722 18723 CFLAGS="$xorg_testset_save_CFLAGS" 18724 18725 eval supported=\$$cacheid 18726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18727printf "%s\n" "$supported" >&6; } 18728 if test "$supported" = "yes" ; then 18729 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18730 found="yes" 18731 fi 18732 fi 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748xorg_testset_save_CFLAGS="$CFLAGS" 18749 18750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18754if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18755then : 18756 printf %s "(cached) " >&6 18757else $as_nop 18758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18759/* end confdefs.h. */ 18760int i; 18761_ACEOF 18762if ac_fn_c_try_compile "$LINENO" 18763then : 18764 xorg_cv_cc_flag_unknown_warning_option=yes 18765else $as_nop 18766 xorg_cv_cc_flag_unknown_warning_option=no 18767fi 18768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18769fi 18770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18771printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18773 CFLAGS="$xorg_testset_save_CFLAGS" 18774fi 18775 18776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18779 fi 18780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18782printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18783if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18784then : 18785 printf %s "(cached) " >&6 18786else $as_nop 18787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18788/* end confdefs.h. */ 18789int i; 18790_ACEOF 18791if ac_fn_c_try_compile "$LINENO" 18792then : 18793 xorg_cv_cc_flag_unused_command_line_argument=yes 18794else $as_nop 18795 xorg_cv_cc_flag_unused_command_line_argument=no 18796fi 18797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18798fi 18799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18802 CFLAGS="$xorg_testset_save_CFLAGS" 18803fi 18804 18805found="no" 18806 18807 if test $found = "no" ; then 18808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18810 fi 18811 18812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18814 fi 18815 18816 CFLAGS="$CFLAGS -Werror" 18817 18818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18819printf %s "checking if $CC supports -Werror... " >&6; } 18820 cacheid=xorg_cv_cc_flag__Werror 18821 if eval test \${$cacheid+y} 18822then : 18823 printf %s "(cached) " >&6 18824else $as_nop 18825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18826/* end confdefs.h. */ 18827int i; 18828int 18829main (void) 18830{ 18831 18832 ; 18833 return 0; 18834} 18835_ACEOF 18836if ac_fn_c_try_link "$LINENO" 18837then : 18838 eval $cacheid=yes 18839else $as_nop 18840 eval $cacheid=no 18841fi 18842rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18843 conftest$ac_exeext conftest.$ac_ext 18844fi 18845 18846 18847 CFLAGS="$xorg_testset_save_CFLAGS" 18848 18849 eval supported=\$$cacheid 18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18851printf "%s\n" "$supported" >&6; } 18852 if test "$supported" = "yes" ; then 18853 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18854 found="yes" 18855 fi 18856 fi 18857 18858 if test $found = "no" ; then 18859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18861 fi 18862 18863 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18865 fi 18866 18867 CFLAGS="$CFLAGS -errwarn" 18868 18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18870printf %s "checking if $CC supports -errwarn... " >&6; } 18871 cacheid=xorg_cv_cc_flag__errwarn 18872 if eval test \${$cacheid+y} 18873then : 18874 printf %s "(cached) " >&6 18875else $as_nop 18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18877/* end confdefs.h. */ 18878int i; 18879int 18880main (void) 18881{ 18882 18883 ; 18884 return 0; 18885} 18886_ACEOF 18887if ac_fn_c_try_link "$LINENO" 18888then : 18889 eval $cacheid=yes 18890else $as_nop 18891 eval $cacheid=no 18892fi 18893rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18894 conftest$ac_exeext conftest.$ac_ext 18895fi 18896 18897 18898 CFLAGS="$xorg_testset_save_CFLAGS" 18899 18900 eval supported=\$$cacheid 18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18902printf "%s\n" "$supported" >&6; } 18903 if test "$supported" = "yes" ; then 18904 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18905 found="yes" 18906 fi 18907 fi 18908 18909 18910 18911# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18912# activate it with -Werror, so we add it here explicitly. 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926xorg_testset_save_CFLAGS="$CFLAGS" 18927 18928if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18929 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18931printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18932if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18933then : 18934 printf %s "(cached) " >&6 18935else $as_nop 18936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18937/* end confdefs.h. */ 18938int i; 18939_ACEOF 18940if ac_fn_c_try_compile "$LINENO" 18941then : 18942 xorg_cv_cc_flag_unknown_warning_option=yes 18943else $as_nop 18944 xorg_cv_cc_flag_unknown_warning_option=no 18945fi 18946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18947fi 18948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18949printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18951 CFLAGS="$xorg_testset_save_CFLAGS" 18952fi 18953 18954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18957 fi 18958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18960printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18961if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18962then : 18963 printf %s "(cached) " >&6 18964else $as_nop 18965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18966/* end confdefs.h. */ 18967int i; 18968_ACEOF 18969if ac_fn_c_try_compile "$LINENO" 18970then : 18971 xorg_cv_cc_flag_unused_command_line_argument=yes 18972else $as_nop 18973 xorg_cv_cc_flag_unused_command_line_argument=no 18974fi 18975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18976fi 18977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18978printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18980 CFLAGS="$xorg_testset_save_CFLAGS" 18981fi 18982 18983found="no" 18984 18985 if test $found = "no" ; then 18986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18988 fi 18989 18990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18992 fi 18993 18994 CFLAGS="$CFLAGS -Werror=attributes" 18995 18996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18997printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18998 cacheid=xorg_cv_cc_flag__Werror_attributes 18999 if eval test \${$cacheid+y} 19000then : 19001 printf %s "(cached) " >&6 19002else $as_nop 19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19004/* end confdefs.h. */ 19005int i; 19006int 19007main (void) 19008{ 19009 19010 ; 19011 return 0; 19012} 19013_ACEOF 19014if ac_fn_c_try_link "$LINENO" 19015then : 19016 eval $cacheid=yes 19017else $as_nop 19018 eval $cacheid=no 19019fi 19020rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19021 conftest$ac_exeext conftest.$ac_ext 19022fi 19023 19024 19025 CFLAGS="$xorg_testset_save_CFLAGS" 19026 19027 eval supported=\$$cacheid 19028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19029printf "%s\n" "$supported" >&6; } 19030 if test "$supported" = "yes" ; then 19031 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19032 found="yes" 19033 fi 19034 fi 19035 19036 19037 19038if test "x$STRICT_COMPILE" = "xyes"; then 19039 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19040 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19041fi 19042 19043 19044 19045 19046 19047 19048 19049 19050cat >>confdefs.h <<_ACEOF 19051#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19052_ACEOF 19053 19054 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19055 if test "x$PVM" = "x"; then 19056 PVM="0" 19057 fi 19058 19059printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19060 19061 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19062 if test "x$PVP" = "x"; then 19063 PVP="0" 19064 fi 19065 19066printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19067 19068 19069 19070CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19071mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19072|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19073touch \$(top_srcdir)/ChangeLog; \ 19074echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19075 19076 19077 19078 19079macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19080INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19081mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19082|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19083touch \$(top_srcdir)/INSTALL; \ 19084echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19085 19086 19087 19088 19089 19090 19091case $host_os in 19092 solaris*) 19093 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19094 # check for a man page file found in later versions that use 19095 # traditional section numbers instead 19096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19097printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19098if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19099then : 19100 printf %s "(cached) " >&6 19101else $as_nop 19102 test "$cross_compiling" = yes && 19103 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19104if test -r "/usr/share/man/man7/attributes.7"; then 19105 ac_cv_file__usr_share_man_man7_attributes_7=yes 19106else 19107 ac_cv_file__usr_share_man_man7_attributes_7=no 19108fi 19109fi 19110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19111printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19112if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19113then : 19114 SYSV_MAN_SECTIONS=false 19115else $as_nop 19116 SYSV_MAN_SECTIONS=true 19117fi 19118 19119 ;; 19120 *) SYSV_MAN_SECTIONS=false ;; 19121esac 19122 19123if test x$APP_MAN_SUFFIX = x ; then 19124 APP_MAN_SUFFIX=1 19125fi 19126if test x$APP_MAN_DIR = x ; then 19127 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19128fi 19129 19130if test x$LIB_MAN_SUFFIX = x ; then 19131 LIB_MAN_SUFFIX=3 19132fi 19133if test x$LIB_MAN_DIR = x ; then 19134 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19135fi 19136 19137if test x$FILE_MAN_SUFFIX = x ; then 19138 case $SYSV_MAN_SECTIONS in 19139 true) FILE_MAN_SUFFIX=4 ;; 19140 *) FILE_MAN_SUFFIX=5 ;; 19141 esac 19142fi 19143if test x$FILE_MAN_DIR = x ; then 19144 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19145fi 19146 19147if test x$MISC_MAN_SUFFIX = x ; then 19148 case $SYSV_MAN_SECTIONS in 19149 true) MISC_MAN_SUFFIX=5 ;; 19150 *) MISC_MAN_SUFFIX=7 ;; 19151 esac 19152fi 19153if test x$MISC_MAN_DIR = x ; then 19154 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19155fi 19156 19157if test x$DRIVER_MAN_SUFFIX = x ; then 19158 case $SYSV_MAN_SECTIONS in 19159 true) DRIVER_MAN_SUFFIX=7 ;; 19160 *) DRIVER_MAN_SUFFIX=4 ;; 19161 esac 19162fi 19163if test x$DRIVER_MAN_DIR = x ; then 19164 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19165fi 19166 19167if test x$ADMIN_MAN_SUFFIX = x ; then 19168 case $SYSV_MAN_SECTIONS in 19169 true) ADMIN_MAN_SUFFIX=1m ;; 19170 *) ADMIN_MAN_SUFFIX=8 ;; 19171 esac 19172fi 19173if test x$ADMIN_MAN_DIR = x ; then 19174 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19175fi 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191XORG_MAN_PAGE="X Version 11" 19192 19193MAN_SUBSTS="\ 19194 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19195 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19196 -e 's|__xservername__|Xorg|g' \ 19197 -e 's|__xconfigfile__|xorg.conf|g' \ 19198 -e 's|__projectroot__|\$(prefix)|g' \ 19199 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19200 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19201 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19202 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19203 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19204 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19205 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19206 19207 19208 19209# Check whether --enable-silent-rules was given. 19210if test ${enable_silent_rules+y} 19211then : 19212 enableval=$enable_silent_rules; 19213fi 19214 19215case $enable_silent_rules in # ((( 19216 yes) AM_DEFAULT_VERBOSITY=0;; 19217 no) AM_DEFAULT_VERBOSITY=1;; 19218 *) AM_DEFAULT_VERBOSITY=0;; 19219esac 19220am_make=${MAKE-make} 19221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19222printf %s "checking whether $am_make supports nested variables... " >&6; } 19223if test ${am_cv_make_support_nested_variables+y} 19224then : 19225 printf %s "(cached) " >&6 19226else $as_nop 19227 if printf "%s\n" 'TRUE=$(BAR$(V)) 19228BAR0=false 19229BAR1=true 19230V=1 19231am__doit: 19232 @$(TRUE) 19233.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19234 am_cv_make_support_nested_variables=yes 19235else 19236 am_cv_make_support_nested_variables=no 19237fi 19238fi 19239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19240printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19241if test $am_cv_make_support_nested_variables = yes; then 19242 AM_V='$(V)' 19243 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19244else 19245 AM_V=$AM_DEFAULT_VERBOSITY 19246 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19247fi 19248AM_BACKSLASH='\' 19249 19250 19251 19252 19253# Check whether --enable-malloc0returnsnull was given. 19254if test ${enable_malloc0returnsnull+y} 19255then : 19256 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19257else $as_nop 19258 MALLOC_ZERO_RETURNS_NULL=auto 19259fi 19260 19261 19262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 19263printf %s "checking whether malloc(0) returns NULL... " >&6; } 19264if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19265if test ${xorg_cv_malloc0_returns_null+y} 19266then : 19267 printf %s "(cached) " >&6 19268else $as_nop 19269 if test "$cross_compiling" = yes 19270then : 19271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19272printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19273as_fn_error $? "cannot run test program while cross compiling 19274See \`config.log' for more details" "$LINENO" 5; } 19275else $as_nop 19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19277/* end confdefs.h. */ 19278 19279#include <stdlib.h> 19280 19281int 19282main (void) 19283{ 19284 19285 char *m0, *r0, *c0, *p; 19286 m0 = malloc(0); 19287 p = malloc(10); 19288 r0 = realloc(p,0); 19289 c0 = calloc(0,10); 19290 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 19291 19292 ; 19293 return 0; 19294} 19295_ACEOF 19296if ac_fn_c_try_run "$LINENO" 19297then : 19298 xorg_cv_malloc0_returns_null=yes 19299else $as_nop 19300 xorg_cv_malloc0_returns_null=no 19301fi 19302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19303 conftest.$ac_objext conftest.beam conftest.$ac_ext 19304fi 19305 19306fi 19307 19308MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 19309fi 19310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19311printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 19312 19313if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19314 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19315 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19316 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19317else 19318 MALLOC_ZERO_CFLAGS="" 19319 XMALLOC_ZERO_CFLAGS="" 19320 XTMALLOC_ZERO_CFLAGS="" 19321fi 19322 19323 19324 19325 19326 19327 19328# Check randr configuration, strip extra digits from package version to 19329# find the required protocol version 19330RANDR_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'` 19331 19332 19333# Obtain compiler/linker options for dependencies 19334 19335pkg_failed=no 19336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RANDR" >&5 19337printf %s "checking for RANDR... " >&6; } 19338 19339if test -n "$RANDR_CFLAGS"; then 19340 pkg_cv_RANDR_CFLAGS="$RANDR_CFLAGS" 19341 elif test -n "$PKG_CONFIG"; then 19342 if test -n "$PKG_CONFIG" && \ 19343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5 19344 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5 19345 ac_status=$? 19346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19347 test $ac_status = 0; }; then 19348 pkg_cv_RANDR_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null` 19349 test "x$?" != "x0" && pkg_failed=yes 19350else 19351 pkg_failed=yes 19352fi 19353 else 19354 pkg_failed=untried 19355fi 19356if test -n "$RANDR_LIBS"; then 19357 pkg_cv_RANDR_LIBS="$RANDR_LIBS" 19358 elif test -n "$PKG_CONFIG"; then 19359 if test -n "$PKG_CONFIG" && \ 19360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 randrproto >= \$RANDR_VERSION xext xextproto xrender renderproto\""; } >&5 19361 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto") 2>&5 19362 ac_status=$? 19363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19364 test $ac_status = 0; }; then 19365 pkg_cv_RANDR_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>/dev/null` 19366 test "x$?" != "x0" && pkg_failed=yes 19367else 19368 pkg_failed=yes 19369fi 19370 else 19371 pkg_failed=untried 19372fi 19373 19374 19375 19376if test $pkg_failed = yes; then 19377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19378printf "%s\n" "no" >&6; } 19379 19380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19381 _pkg_short_errors_supported=yes 19382else 19383 _pkg_short_errors_supported=no 19384fi 19385 if test $_pkg_short_errors_supported = yes; then 19386 RANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1` 19387 else 19388 RANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto" 2>&1` 19389 fi 19390 # Put the nasty error message in config.log where it belongs 19391 echo "$RANDR_PKG_ERRORS" >&5 19392 19393 as_fn_error $? "Package requirements (x11 >= 1.6 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto) were not met: 19394 19395$RANDR_PKG_ERRORS 19396 19397Consider adjusting the PKG_CONFIG_PATH environment variable if you 19398installed software in a non-standard prefix. 19399 19400Alternatively, you may set the environment variables RANDR_CFLAGS 19401and RANDR_LIBS to avoid the need to call pkg-config. 19402See the pkg-config man page for more details." "$LINENO" 5 19403elif test $pkg_failed = untried; then 19404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19405printf "%s\n" "no" >&6; } 19406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19407printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19408as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19409is in your PATH or set the PKG_CONFIG environment variable to the full 19410path to pkg-config. 19411 19412Alternatively, you may set the environment variables RANDR_CFLAGS 19413and RANDR_LIBS to avoid the need to call pkg-config. 19414See the pkg-config man page for more details. 19415 19416To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19417See \`config.log' for more details" "$LINENO" 5; } 19418else 19419 RANDR_CFLAGS=$pkg_cv_RANDR_CFLAGS 19420 RANDR_LIBS=$pkg_cv_RANDR_LIBS 19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19422printf "%s\n" "yes" >&6; } 19423 19424fi 19425 19426ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xrandr.pc" 19427 19428cat >confcache <<\_ACEOF 19429# This file is a shell script that caches the results of configure 19430# tests run on this system so they can be shared between configure 19431# scripts and configure runs, see configure's option --config-cache. 19432# It is not useful on other systems. If it contains results you don't 19433# want to keep, you may remove or edit it. 19434# 19435# config.status only pays attention to the cache file if you give it 19436# the --recheck option to rerun configure. 19437# 19438# `ac_cv_env_foo' variables (set or unset) will be overridden when 19439# loading this file, other *unset* `ac_cv_foo' will be assigned the 19440# following values. 19441 19442_ACEOF 19443 19444# The following way of writing the cache mishandles newlines in values, 19445# but we know of no workaround that is simple, portable, and efficient. 19446# So, we kill variables containing newlines. 19447# Ultrix sh set writes to stderr and can't be redirected directly, 19448# and sets the high bit in the cache file unless we assign to the vars. 19449( 19450 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19451 eval ac_val=\$$ac_var 19452 case $ac_val in #( 19453 *${as_nl}*) 19454 case $ac_var in #( 19455 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19456printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19457 esac 19458 case $ac_var in #( 19459 _ | IFS | as_nl) ;; #( 19460 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19461 *) { eval $ac_var=; unset $ac_var;} ;; 19462 esac ;; 19463 esac 19464 done 19465 19466 (set) 2>&1 | 19467 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19468 *${as_nl}ac_space=\ *) 19469 # `set' does not quote correctly, so add quotes: double-quote 19470 # substitution turns \\\\ into \\, and sed turns \\ into \. 19471 sed -n \ 19472 "s/'/'\\\\''/g; 19473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19474 ;; #( 19475 *) 19476 # `set' quotes correctly as required by POSIX, so do not add quotes. 19477 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19478 ;; 19479 esac | 19480 sort 19481) | 19482 sed ' 19483 /^ac_cv_env_/b end 19484 t clear 19485 :clear 19486 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19487 t end 19488 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19489 :end' >>confcache 19490if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19491 if test -w "$cache_file"; then 19492 if test "x$cache_file" != "x/dev/null"; then 19493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19494printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19495 if test ! -f "$cache_file" || test -h "$cache_file"; then 19496 cat confcache >"$cache_file" 19497 else 19498 case $cache_file in #( 19499 */* | ?:*) 19500 mv -f confcache "$cache_file"$$ && 19501 mv -f "$cache_file"$$ "$cache_file" ;; #( 19502 *) 19503 mv -f confcache "$cache_file" ;; 19504 esac 19505 fi 19506 fi 19507 else 19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19509printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19510 fi 19511fi 19512rm -f confcache 19513 19514test "x$prefix" = xNONE && prefix=$ac_default_prefix 19515# Let make expand exec_prefix. 19516test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19517 19518DEFS=-DHAVE_CONFIG_H 19519 19520ac_libobjs= 19521ac_ltlibobjs= 19522U= 19523for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19524 # 1. Remove the extension, and $U if already installed. 19525 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19526 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19528 # will be set to the directory where LIBOBJS objects are built. 19529 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19530 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19531done 19532LIBOBJS=$ac_libobjs 19533 19534LTLIBOBJS=$ac_ltlibobjs 19535 19536 19537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19538printf %s "checking that generated files are newer than configure... " >&6; } 19539 if test -n "$am_sleep_pid"; then 19540 # Hide warnings about reused PIDs. 19541 wait $am_sleep_pid 2>/dev/null 19542 fi 19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19544printf "%s\n" "done" >&6; } 19545 if test -n "$EXEEXT"; then 19546 am__EXEEXT_TRUE= 19547 am__EXEEXT_FALSE='#' 19548else 19549 am__EXEEXT_TRUE='#' 19550 am__EXEEXT_FALSE= 19551fi 19552 19553if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19554 as_fn_error $? "conditional \"AMDEP\" was never defined. 19555Usually this means the macro was only invoked conditionally." "$LINENO" 5 19556fi 19557if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19558 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19559Usually this means the macro was only invoked conditionally." "$LINENO" 5 19560fi 19561 19562: "${CONFIG_STATUS=./config.status}" 19563ac_write_fail=0 19564ac_clean_files_save=$ac_clean_files 19565ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19567printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19568as_write_fail=0 19569cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19570#! $SHELL 19571# Generated by $as_me. 19572# Run this file to recreate the current configuration. 19573# Compiler output produced by configure, useful for debugging 19574# configure, is in config.log if it exists. 19575 19576debug=false 19577ac_cs_recheck=false 19578ac_cs_silent=false 19579 19580SHELL=\${CONFIG_SHELL-$SHELL} 19581export SHELL 19582_ASEOF 19583cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19584## -------------------- ## 19585## M4sh Initialization. ## 19586## -------------------- ## 19587 19588# Be more Bourne compatible 19589DUALCASE=1; export DUALCASE # for MKS sh 19590as_nop=: 19591if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19592then : 19593 emulate sh 19594 NULLCMD=: 19595 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19596 # is contrary to our usage. Disable this feature. 19597 alias -g '${1+"$@"}'='"$@"' 19598 setopt NO_GLOB_SUBST 19599else $as_nop 19600 case `(set -o) 2>/dev/null` in #( 19601 *posix*) : 19602 set -o posix ;; #( 19603 *) : 19604 ;; 19605esac 19606fi 19607 19608 19609 19610# Reset variables that may have inherited troublesome values from 19611# the environment. 19612 19613# IFS needs to be set, to space, tab, and newline, in precisely that order. 19614# (If _AS_PATH_WALK were called with IFS unset, it would have the 19615# side effect of setting IFS to empty, thus disabling word splitting.) 19616# Quoting is to prevent editors from complaining about space-tab. 19617as_nl=' 19618' 19619export as_nl 19620IFS=" "" $as_nl" 19621 19622PS1='$ ' 19623PS2='> ' 19624PS4='+ ' 19625 19626# Ensure predictable behavior from utilities with locale-dependent output. 19627LC_ALL=C 19628export LC_ALL 19629LANGUAGE=C 19630export LANGUAGE 19631 19632# We cannot yet rely on "unset" to work, but we need these variables 19633# to be unset--not just set to an empty or harmless value--now, to 19634# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19635# also avoids known problems related to "unset" and subshell syntax 19636# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19637for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19638do eval test \${$as_var+y} \ 19639 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19640done 19641 19642# Ensure that fds 0, 1, and 2 are open. 19643if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19644if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19645if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19646 19647# The user is always right. 19648if ${PATH_SEPARATOR+false} :; then 19649 PATH_SEPARATOR=: 19650 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19651 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19652 PATH_SEPARATOR=';' 19653 } 19654fi 19655 19656 19657# Find who we are. Look in the path if we contain no directory separator. 19658as_myself= 19659case $0 in #(( 19660 *[\\/]* ) as_myself=$0 ;; 19661 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19662for as_dir in $PATH 19663do 19664 IFS=$as_save_IFS 19665 case $as_dir in #((( 19666 '') as_dir=./ ;; 19667 */) ;; 19668 *) as_dir=$as_dir/ ;; 19669 esac 19670 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19671 done 19672IFS=$as_save_IFS 19673 19674 ;; 19675esac 19676# We did not find ourselves, most probably we were run as `sh COMMAND' 19677# in which case we are not to be found in the path. 19678if test "x$as_myself" = x; then 19679 as_myself=$0 19680fi 19681if test ! -f "$as_myself"; then 19682 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19683 exit 1 19684fi 19685 19686 19687 19688# as_fn_error STATUS ERROR [LINENO LOG_FD] 19689# ---------------------------------------- 19690# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19691# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19692# script with STATUS, using 1 if that was 0. 19693as_fn_error () 19694{ 19695 as_status=$1; test $as_status -eq 0 && as_status=1 19696 if test "$4"; then 19697 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19699 fi 19700 printf "%s\n" "$as_me: error: $2" >&2 19701 as_fn_exit $as_status 19702} # as_fn_error 19703 19704 19705 19706# as_fn_set_status STATUS 19707# ----------------------- 19708# Set $? to STATUS, without forking. 19709as_fn_set_status () 19710{ 19711 return $1 19712} # as_fn_set_status 19713 19714# as_fn_exit STATUS 19715# ----------------- 19716# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19717as_fn_exit () 19718{ 19719 set +e 19720 as_fn_set_status $1 19721 exit $1 19722} # as_fn_exit 19723 19724# as_fn_unset VAR 19725# --------------- 19726# Portably unset VAR. 19727as_fn_unset () 19728{ 19729 { eval $1=; unset $1;} 19730} 19731as_unset=as_fn_unset 19732 19733# as_fn_append VAR VALUE 19734# ---------------------- 19735# Append the text in VALUE to the end of the definition contained in VAR. Take 19736# advantage of any shell optimizations that allow amortized linear growth over 19737# repeated appends, instead of the typical quadratic growth present in naive 19738# implementations. 19739if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19740then : 19741 eval 'as_fn_append () 19742 { 19743 eval $1+=\$2 19744 }' 19745else $as_nop 19746 as_fn_append () 19747 { 19748 eval $1=\$$1\$2 19749 } 19750fi # as_fn_append 19751 19752# as_fn_arith ARG... 19753# ------------------ 19754# Perform arithmetic evaluation on the ARGs, and store the result in the 19755# global $as_val. Take advantage of shells that can avoid forks. The arguments 19756# must be portable across $(()) and expr. 19757if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19758then : 19759 eval 'as_fn_arith () 19760 { 19761 as_val=$(( $* )) 19762 }' 19763else $as_nop 19764 as_fn_arith () 19765 { 19766 as_val=`expr "$@" || test $? -eq 1` 19767 } 19768fi # as_fn_arith 19769 19770 19771if expr a : '\(a\)' >/dev/null 2>&1 && 19772 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19773 as_expr=expr 19774else 19775 as_expr=false 19776fi 19777 19778if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19779 as_basename=basename 19780else 19781 as_basename=false 19782fi 19783 19784if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19785 as_dirname=dirname 19786else 19787 as_dirname=false 19788fi 19789 19790as_me=`$as_basename -- "$0" || 19791$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19792 X"$0" : 'X\(//\)$' \| \ 19793 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19794printf "%s\n" X/"$0" | 19795 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19796 s//\1/ 19797 q 19798 } 19799 /^X\/\(\/\/\)$/{ 19800 s//\1/ 19801 q 19802 } 19803 /^X\/\(\/\).*/{ 19804 s//\1/ 19805 q 19806 } 19807 s/.*/./; q'` 19808 19809# Avoid depending upon Character Ranges. 19810as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19811as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19812as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19813as_cr_digits='0123456789' 19814as_cr_alnum=$as_cr_Letters$as_cr_digits 19815 19816 19817# Determine whether it's possible to make 'echo' print without a newline. 19818# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19819# for compatibility with existing Makefiles. 19820ECHO_C= ECHO_N= ECHO_T= 19821case `echo -n x` in #((((( 19822-n*) 19823 case `echo 'xy\c'` in 19824 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19825 xy) ECHO_C='\c';; 19826 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19827 ECHO_T=' ';; 19828 esac;; 19829*) 19830 ECHO_N='-n';; 19831esac 19832 19833# For backward compatibility with old third-party macros, we provide 19834# the shell variables $as_echo and $as_echo_n. New code should use 19835# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19836as_echo='printf %s\n' 19837as_echo_n='printf %s' 19838 19839rm -f conf$$ conf$$.exe conf$$.file 19840if test -d conf$$.dir; then 19841 rm -f conf$$.dir/conf$$.file 19842else 19843 rm -f conf$$.dir 19844 mkdir conf$$.dir 2>/dev/null 19845fi 19846if (echo >conf$$.file) 2>/dev/null; then 19847 if ln -s conf$$.file conf$$ 2>/dev/null; then 19848 as_ln_s='ln -s' 19849 # ... but there are two gotchas: 19850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19852 # In both cases, we have to default to `cp -pR'. 19853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19854 as_ln_s='cp -pR' 19855 elif ln conf$$.file conf$$ 2>/dev/null; then 19856 as_ln_s=ln 19857 else 19858 as_ln_s='cp -pR' 19859 fi 19860else 19861 as_ln_s='cp -pR' 19862fi 19863rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19864rmdir conf$$.dir 2>/dev/null 19865 19866 19867# as_fn_mkdir_p 19868# ------------- 19869# Create "$as_dir" as a directory, including parents if necessary. 19870as_fn_mkdir_p () 19871{ 19872 19873 case $as_dir in #( 19874 -*) as_dir=./$as_dir;; 19875 esac 19876 test -d "$as_dir" || eval $as_mkdir_p || { 19877 as_dirs= 19878 while :; do 19879 case $as_dir in #( 19880 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19881 *) as_qdir=$as_dir;; 19882 esac 19883 as_dirs="'$as_qdir' $as_dirs" 19884 as_dir=`$as_dirname -- "$as_dir" || 19885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19886 X"$as_dir" : 'X\(//\)[^/]' \| \ 19887 X"$as_dir" : 'X\(//\)$' \| \ 19888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19889printf "%s\n" X"$as_dir" | 19890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19891 s//\1/ 19892 q 19893 } 19894 /^X\(\/\/\)[^/].*/{ 19895 s//\1/ 19896 q 19897 } 19898 /^X\(\/\/\)$/{ 19899 s//\1/ 19900 q 19901 } 19902 /^X\(\/\).*/{ 19903 s//\1/ 19904 q 19905 } 19906 s/.*/./; q'` 19907 test -d "$as_dir" && break 19908 done 19909 test -z "$as_dirs" || eval "mkdir $as_dirs" 19910 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19911 19912 19913} # as_fn_mkdir_p 19914if mkdir -p . 2>/dev/null; then 19915 as_mkdir_p='mkdir -p "$as_dir"' 19916else 19917 test -d ./-p && rmdir ./-p 19918 as_mkdir_p=false 19919fi 19920 19921 19922# as_fn_executable_p FILE 19923# ----------------------- 19924# Test if FILE is an executable regular file. 19925as_fn_executable_p () 19926{ 19927 test -f "$1" && test -x "$1" 19928} # as_fn_executable_p 19929as_test_x='test -x' 19930as_executable_p=as_fn_executable_p 19931 19932# Sed expression to map a string onto a valid CPP name. 19933as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19934 19935# Sed expression to map a string onto a valid variable name. 19936as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19937 19938 19939exec 6>&1 19940## ----------------------------------- ## 19941## Main body of $CONFIG_STATUS script. ## 19942## ----------------------------------- ## 19943_ASEOF 19944test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19945 19946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19947# Save the log message, to keep $0 and so on meaningful, and to 19948# report actual input values of CONFIG_FILES etc. instead of their 19949# values after options handling. 19950ac_log=" 19951This file was extended by libXrandr $as_me 1.5.4, which was 19952generated by GNU Autoconf 2.71. Invocation command line was 19953 19954 CONFIG_FILES = $CONFIG_FILES 19955 CONFIG_HEADERS = $CONFIG_HEADERS 19956 CONFIG_LINKS = $CONFIG_LINKS 19957 CONFIG_COMMANDS = $CONFIG_COMMANDS 19958 $ $0 $@ 19959 19960on `(hostname || uname -n) 2>/dev/null | sed 1q` 19961" 19962 19963_ACEOF 19964 19965case $ac_config_files in *" 19966"*) set x $ac_config_files; shift; ac_config_files=$*;; 19967esac 19968 19969case $ac_config_headers in *" 19970"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19971esac 19972 19973 19974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19975# Files that config.status was made for. 19976config_files="$ac_config_files" 19977config_headers="$ac_config_headers" 19978config_commands="$ac_config_commands" 19979 19980_ACEOF 19981 19982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19983ac_cs_usage="\ 19984\`$as_me' instantiates files and other configuration actions 19985from templates according to the current configuration. Unless the files 19986and actions are specified as TAGs, all are instantiated by default. 19987 19988Usage: $0 [OPTION]... [TAG]... 19989 19990 -h, --help print this help, then exit 19991 -V, --version print version number and configuration settings, then exit 19992 --config print configuration, then exit 19993 -q, --quiet, --silent 19994 do not print progress messages 19995 -d, --debug don't remove temporary files 19996 --recheck update $as_me by reconfiguring in the same conditions 19997 --file=FILE[:TEMPLATE] 19998 instantiate the configuration file FILE 19999 --header=FILE[:TEMPLATE] 20000 instantiate the configuration header FILE 20001 20002Configuration files: 20003$config_files 20004 20005Configuration headers: 20006$config_headers 20007 20008Configuration commands: 20009$config_commands 20010 20011Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxrandr/-/issues>." 20012 20013_ACEOF 20014ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20015ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20017ac_cs_config='$ac_cs_config_escaped' 20018ac_cs_version="\\ 20019libXrandr config.status 1.5.4 20020configured by $0, generated by GNU Autoconf 2.71, 20021 with options \\"\$ac_cs_config\\" 20022 20023Copyright (C) 2021 Free Software Foundation, Inc. 20024This config.status script is free software; the Free Software Foundation 20025gives unlimited permission to copy, distribute and modify it." 20026 20027ac_pwd='$ac_pwd' 20028srcdir='$srcdir' 20029INSTALL='$INSTALL' 20030MKDIR_P='$MKDIR_P' 20031AWK='$AWK' 20032test -n "\$AWK" || AWK=awk 20033_ACEOF 20034 20035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20036# The default lists apply if the user does not specify any file. 20037ac_need_defaults=: 20038while test $# != 0 20039do 20040 case $1 in 20041 --*=?*) 20042 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20044 ac_shift=: 20045 ;; 20046 --*=) 20047 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20048 ac_optarg= 20049 ac_shift=: 20050 ;; 20051 *) 20052 ac_option=$1 20053 ac_optarg=$2 20054 ac_shift=shift 20055 ;; 20056 esac 20057 20058 case $ac_option in 20059 # Handling of the options. 20060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20061 ac_cs_recheck=: ;; 20062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20063 printf "%s\n" "$ac_cs_version"; exit ;; 20064 --config | --confi | --conf | --con | --co | --c ) 20065 printf "%s\n" "$ac_cs_config"; exit ;; 20066 --debug | --debu | --deb | --de | --d | -d ) 20067 debug=: ;; 20068 --file | --fil | --fi | --f ) 20069 $ac_shift 20070 case $ac_optarg in 20071 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20072 '') as_fn_error $? "missing file argument" ;; 20073 esac 20074 as_fn_append CONFIG_FILES " '$ac_optarg'" 20075 ac_need_defaults=false;; 20076 --header | --heade | --head | --hea ) 20077 $ac_shift 20078 case $ac_optarg in 20079 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20080 esac 20081 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20082 ac_need_defaults=false;; 20083 --he | --h) 20084 # Conflict between --help and --header 20085 as_fn_error $? "ambiguous option: \`$1' 20086Try \`$0 --help' for more information.";; 20087 --help | --hel | -h ) 20088 printf "%s\n" "$ac_cs_usage"; exit ;; 20089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20090 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20091 ac_cs_silent=: ;; 20092 20093 # This is an error. 20094 -*) as_fn_error $? "unrecognized option: \`$1' 20095Try \`$0 --help' for more information." ;; 20096 20097 *) as_fn_append ac_config_targets " $1" 20098 ac_need_defaults=false ;; 20099 20100 esac 20101 shift 20102done 20103 20104ac_configure_extra_args= 20105 20106if $ac_cs_silent; then 20107 exec 6>/dev/null 20108 ac_configure_extra_args="$ac_configure_extra_args --silent" 20109fi 20110 20111_ACEOF 20112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20113if \$ac_cs_recheck; then 20114 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20115 shift 20116 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20117 CONFIG_SHELL='$SHELL' 20118 export CONFIG_SHELL 20119 exec "\$@" 20120fi 20121 20122_ACEOF 20123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20124exec 5>>config.log 20125{ 20126 echo 20127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20128## Running $as_me. ## 20129_ASBOX 20130 printf "%s\n" "$ac_log" 20131} >&5 20132 20133_ACEOF 20134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20135# 20136# INIT-COMMANDS 20137# 20138AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20139 20140 20141# The HP-UX ksh and POSIX shell print the target directory to stdout 20142# if CDPATH is set. 20143(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20144 20145sed_quote_subst='$sed_quote_subst' 20146double_quote_subst='$double_quote_subst' 20147delay_variable_subst='$delay_variable_subst' 20148macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20149macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20150enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20151enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20152pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20153enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20154shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20155SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20156ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20157PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20158host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20159host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20160host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20161build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20162build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20163build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20164SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20165Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20166GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20167EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20168FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20169LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20170NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20171LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20172max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20173ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20174exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20175lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20176lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20177lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20178lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20179lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20180reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20181reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20182FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20183OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20184deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20185file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20186file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20187want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20188DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20189sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20190AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20191lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20192AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20193archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20194STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20195RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20196old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20197old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20198old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20199lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20200CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20201CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20202compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20203GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20204lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20205lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20206lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20207lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20208lt_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"`' 20209lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20210nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20211lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20212lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20213objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20214MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20215lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20216lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20217lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20218lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20219lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20220need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20221MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20222DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20223NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20224LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20225OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20226OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20227libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20228shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20229extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20230archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20231enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20232export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20233whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20234compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20235old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20236old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20237archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20238archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20239module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20240module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20241with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20242allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20243no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20244hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20245hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20246hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20247hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20248hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20249hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20250hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20251inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20252link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20253always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20254export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20255exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20256include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20257prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20258postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20259file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20260variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20261need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20262need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20263version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20264runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20265shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20266shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20267libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20268library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20269soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20270install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20271postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20272postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20273finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20274finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20275hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20276sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20277configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20278configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20279hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20280enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20281enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20282enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20283old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20284striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20285 20286LTCC='$LTCC' 20287LTCFLAGS='$LTCFLAGS' 20288compiler='$compiler_DEFAULT' 20289 20290# A function that is used when there is no print builtin or printf. 20291func_fallback_echo () 20292{ 20293 eval 'cat <<_LTECHO_EOF 20294\$1 20295_LTECHO_EOF' 20296} 20297 20298# Quote evaled strings. 20299for var in SHELL \ 20300ECHO \ 20301PATH_SEPARATOR \ 20302SED \ 20303GREP \ 20304EGREP \ 20305FGREP \ 20306LD \ 20307NM \ 20308LN_S \ 20309lt_SP2NL \ 20310lt_NL2SP \ 20311reload_flag \ 20312FILECMD \ 20313OBJDUMP \ 20314deplibs_check_method \ 20315file_magic_cmd \ 20316file_magic_glob \ 20317want_nocaseglob \ 20318DLLTOOL \ 20319sharedlib_from_linklib_cmd \ 20320AR \ 20321archiver_list_spec \ 20322STRIP \ 20323RANLIB \ 20324CC \ 20325CFLAGS \ 20326compiler \ 20327lt_cv_sys_global_symbol_pipe \ 20328lt_cv_sys_global_symbol_to_cdecl \ 20329lt_cv_sys_global_symbol_to_import \ 20330lt_cv_sys_global_symbol_to_c_name_address \ 20331lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20332lt_cv_nm_interface \ 20333nm_file_list_spec \ 20334lt_cv_truncate_bin \ 20335lt_prog_compiler_no_builtin_flag \ 20336lt_prog_compiler_pic \ 20337lt_prog_compiler_wl \ 20338lt_prog_compiler_static \ 20339lt_cv_prog_compiler_c_o \ 20340need_locks \ 20341MANIFEST_TOOL \ 20342DSYMUTIL \ 20343NMEDIT \ 20344LIPO \ 20345OTOOL \ 20346OTOOL64 \ 20347shrext_cmds \ 20348export_dynamic_flag_spec \ 20349whole_archive_flag_spec \ 20350compiler_needs_object \ 20351with_gnu_ld \ 20352allow_undefined_flag \ 20353no_undefined_flag \ 20354hardcode_libdir_flag_spec \ 20355hardcode_libdir_separator \ 20356exclude_expsyms \ 20357include_expsyms \ 20358file_list_spec \ 20359variables_saved_for_relink \ 20360libname_spec \ 20361library_names_spec \ 20362soname_spec \ 20363install_override_mode \ 20364finish_eval \ 20365old_striplib \ 20366striplib; do 20367 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20368 *[\\\\\\\`\\"\\\$]*) 20369 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20370 ;; 20371 *) 20372 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20373 ;; 20374 esac 20375done 20376 20377# Double-quote double-evaled strings. 20378for var in reload_cmds \ 20379old_postinstall_cmds \ 20380old_postuninstall_cmds \ 20381old_archive_cmds \ 20382extract_expsyms_cmds \ 20383old_archive_from_new_cmds \ 20384old_archive_from_expsyms_cmds \ 20385archive_cmds \ 20386archive_expsym_cmds \ 20387module_cmds \ 20388module_expsym_cmds \ 20389export_symbols_cmds \ 20390prelink_cmds \ 20391postlink_cmds \ 20392postinstall_cmds \ 20393postuninstall_cmds \ 20394finish_cmds \ 20395sys_lib_search_path_spec \ 20396configure_time_dlsearch_path \ 20397configure_time_lt_sys_library_path; do 20398 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20399 *[\\\\\\\`\\"\\\$]*) 20400 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20401 ;; 20402 *) 20403 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20404 ;; 20405 esac 20406done 20407 20408ac_aux_dir='$ac_aux_dir' 20409 20410# See if we are running on zsh, and set the options that allow our 20411# commands through without removal of \ escapes INIT. 20412if test -n "\${ZSH_VERSION+set}"; then 20413 setopt NO_GLOB_SUBST 20414fi 20415 20416 20417 PACKAGE='$PACKAGE' 20418 VERSION='$VERSION' 20419 RM='$RM' 20420 ofile='$ofile' 20421 20422 20423 20424 20425_ACEOF 20426 20427cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20428 20429# Handling of arguments. 20430for ac_config_target in $ac_config_targets 20431do 20432 case $ac_config_target in 20433 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20434 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20435 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20436 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20437 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20438 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20439 "xrandr.pc") CONFIG_FILES="$CONFIG_FILES xrandr.pc" ;; 20440 20441 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20442 esac 20443done 20444 20445 20446# If the user did not use the arguments to specify the items to instantiate, 20447# then the envvar interface is used. Set only those that are not. 20448# We use the long form for the default assignment because of an extremely 20449# bizarre bug on SunOS 4.1.3. 20450if $ac_need_defaults; then 20451 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20452 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20453 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20454fi 20455 20456# Have a temporary directory for convenience. Make it in the build tree 20457# simply because there is no reason against having it here, and in addition, 20458# creating and moving files from /tmp can sometimes cause problems. 20459# Hook for its removal unless debugging. 20460# Note that there is a small window in which the directory will not be cleaned: 20461# after its creation but before its name has been assigned to `$tmp'. 20462$debug || 20463{ 20464 tmp= ac_tmp= 20465 trap 'exit_status=$? 20466 : "${ac_tmp:=$tmp}" 20467 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20468' 0 20469 trap 'as_fn_exit 1' 1 2 13 15 20470} 20471# Create a (secure) tmp directory for tmp files. 20472 20473{ 20474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20475 test -d "$tmp" 20476} || 20477{ 20478 tmp=./conf$$-$RANDOM 20479 (umask 077 && mkdir "$tmp") 20480} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20481ac_tmp=$tmp 20482 20483# Set up the scripts for CONFIG_FILES section. 20484# No need to generate them if there are no CONFIG_FILES. 20485# This happens for instance with `./config.status config.h'. 20486if test -n "$CONFIG_FILES"; then 20487 20488 20489ac_cr=`echo X | tr X '\015'` 20490# On cygwin, bash can eat \r inside `` if the user requested igncr. 20491# But we know of no other shell where ac_cr would be empty at this 20492# point, so we can use a bashism as a fallback. 20493if test "x$ac_cr" = x; then 20494 eval ac_cr=\$\'\\r\' 20495fi 20496ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20497if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20498 ac_cs_awk_cr='\\r' 20499else 20500 ac_cs_awk_cr=$ac_cr 20501fi 20502 20503echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20504_ACEOF 20505 20506 20507{ 20508 echo "cat >conf$$subs.awk <<_ACEOF" && 20509 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20510 echo "_ACEOF" 20511} >conf$$subs.sh || 20512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20513ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20514ac_delim='%!_!# ' 20515for ac_last_try in false false false false false :; do 20516 . ./conf$$subs.sh || 20517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20518 20519 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20520 if test $ac_delim_n = $ac_delim_num; then 20521 break 20522 elif $ac_last_try; then 20523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20524 else 20525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20526 fi 20527done 20528rm -f conf$$subs.sh 20529 20530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20531cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20532_ACEOF 20533sed -n ' 20534h 20535s/^/S["/; s/!.*/"]=/ 20536p 20537g 20538s/^[^!]*!// 20539:repl 20540t repl 20541s/'"$ac_delim"'$// 20542t delim 20543:nl 20544h 20545s/\(.\{148\}\)..*/\1/ 20546t more1 20547s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20548p 20549n 20550b repl 20551:more1 20552s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20553p 20554g 20555s/.\{148\}// 20556t nl 20557:delim 20558h 20559s/\(.\{148\}\)..*/\1/ 20560t more2 20561s/["\\]/\\&/g; s/^/"/; s/$/"/ 20562p 20563b 20564:more2 20565s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20566p 20567g 20568s/.\{148\}// 20569t delim 20570' <conf$$subs.awk | sed ' 20571/^[^""]/{ 20572 N 20573 s/\n// 20574} 20575' >>$CONFIG_STATUS || ac_write_fail=1 20576rm -f conf$$subs.awk 20577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20578_ACAWK 20579cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20580 for (key in S) S_is_set[key] = 1 20581 FS = "" 20582 20583} 20584{ 20585 line = $ 0 20586 nfields = split(line, field, "@") 20587 substed = 0 20588 len = length(field[1]) 20589 for (i = 2; i < nfields; i++) { 20590 key = field[i] 20591 keylen = length(key) 20592 if (S_is_set[key]) { 20593 value = S[key] 20594 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20595 len += length(value) + length(field[++i]) 20596 substed = 1 20597 } else 20598 len += 1 + keylen 20599 } 20600 20601 print line 20602} 20603 20604_ACAWK 20605_ACEOF 20606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20607if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20608 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20609else 20610 cat 20611fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20612 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20613_ACEOF 20614 20615# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20616# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20617# trailing colons and then remove the whole line if VPATH becomes empty 20618# (actually we leave an empty line to preserve line numbers). 20619if test "x$srcdir" = x.; then 20620 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20621h 20622s/// 20623s/^/:/ 20624s/[ ]*$/:/ 20625s/:\$(srcdir):/:/g 20626s/:\${srcdir}:/:/g 20627s/:@srcdir@:/:/g 20628s/^:*// 20629s/:*$// 20630x 20631s/\(=[ ]*\).*/\1/ 20632G 20633s/\n// 20634s/^[^=]*=[ ]*$// 20635}' 20636fi 20637 20638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20639fi # test -n "$CONFIG_FILES" 20640 20641# Set up the scripts for CONFIG_HEADERS section. 20642# No need to generate them if there are no CONFIG_HEADERS. 20643# This happens for instance with `./config.status Makefile'. 20644if test -n "$CONFIG_HEADERS"; then 20645cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20646BEGIN { 20647_ACEOF 20648 20649# Transform confdefs.h into an awk script `defines.awk', embedded as 20650# here-document in config.status, that substitutes the proper values into 20651# config.h.in to produce config.h. 20652 20653# Create a delimiter string that does not exist in confdefs.h, to ease 20654# handling of long lines. 20655ac_delim='%!_!# ' 20656for ac_last_try in false false :; do 20657 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20658 if test -z "$ac_tt"; then 20659 break 20660 elif $ac_last_try; then 20661 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20662 else 20663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20664 fi 20665done 20666 20667# For the awk script, D is an array of macro values keyed by name, 20668# likewise P contains macro parameters if any. Preserve backslash 20669# newline sequences. 20670 20671ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20672sed -n ' 20673s/.\{148\}/&'"$ac_delim"'/g 20674t rset 20675:rset 20676s/^[ ]*#[ ]*define[ ][ ]*/ / 20677t def 20678d 20679:def 20680s/\\$// 20681t bsnl 20682s/["\\]/\\&/g 20683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20684D["\1"]=" \3"/p 20685s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20686d 20687:bsnl 20688s/["\\]/\\&/g 20689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20690D["\1"]=" \3\\\\\\n"\\/p 20691t cont 20692s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20693t cont 20694d 20695:cont 20696n 20697s/.\{148\}/&'"$ac_delim"'/g 20698t clear 20699:clear 20700s/\\$// 20701t bsnlc 20702s/["\\]/\\&/g; s/^/"/; s/$/"/p 20703d 20704:bsnlc 20705s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20706b cont 20707' <confdefs.h | sed ' 20708s/'"$ac_delim"'/"\\\ 20709"/g' >>$CONFIG_STATUS || ac_write_fail=1 20710 20711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20712 for (key in D) D_is_set[key] = 1 20713 FS = "" 20714} 20715/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20716 line = \$ 0 20717 split(line, arg, " ") 20718 if (arg[1] == "#") { 20719 defundef = arg[2] 20720 mac1 = arg[3] 20721 } else { 20722 defundef = substr(arg[1], 2) 20723 mac1 = arg[2] 20724 } 20725 split(mac1, mac2, "(") #) 20726 macro = mac2[1] 20727 prefix = substr(line, 1, index(line, defundef) - 1) 20728 if (D_is_set[macro]) { 20729 # Preserve the white space surrounding the "#". 20730 print prefix "define", macro P[macro] D[macro] 20731 next 20732 } else { 20733 # Replace #undef with comments. This is necessary, for example, 20734 # in the case of _POSIX_SOURCE, which is predefined and required 20735 # on some systems where configure will not decide to define it. 20736 if (defundef == "undef") { 20737 print "/*", prefix defundef, macro, "*/" 20738 next 20739 } 20740 } 20741} 20742{ print } 20743_ACAWK 20744_ACEOF 20745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20746 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20747fi # test -n "$CONFIG_HEADERS" 20748 20749 20750eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20751shift 20752for ac_tag 20753do 20754 case $ac_tag in 20755 :[FHLC]) ac_mode=$ac_tag; continue;; 20756 esac 20757 case $ac_mode$ac_tag in 20758 :[FHL]*:*);; 20759 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20760 :[FH]-) ac_tag=-:-;; 20761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20762 esac 20763 ac_save_IFS=$IFS 20764 IFS=: 20765 set x $ac_tag 20766 IFS=$ac_save_IFS 20767 shift 20768 ac_file=$1 20769 shift 20770 20771 case $ac_mode in 20772 :L) ac_source=$1;; 20773 :[FH]) 20774 ac_file_inputs= 20775 for ac_f 20776 do 20777 case $ac_f in 20778 -) ac_f="$ac_tmp/stdin";; 20779 *) # Look for the file first in the build tree, then in the source tree 20780 # (if the path is not absolute). The absolute path cannot be DOS-style, 20781 # because $ac_f cannot contain `:'. 20782 test -f "$ac_f" || 20783 case $ac_f in 20784 [\\/$]*) false;; 20785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20786 esac || 20787 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20788 esac 20789 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20790 as_fn_append ac_file_inputs " '$ac_f'" 20791 done 20792 20793 # Let's still pretend it is `configure' which instantiates (i.e., don't 20794 # use $as_me), people would be surprised to read: 20795 # /* config.h. Generated by config.status. */ 20796 configure_input='Generated from '` 20797 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20798 `' by configure.' 20799 if test x"$ac_file" != x-; then 20800 configure_input="$ac_file. $configure_input" 20801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20802printf "%s\n" "$as_me: creating $ac_file" >&6;} 20803 fi 20804 # Neutralize special characters interpreted by sed in replacement strings. 20805 case $configure_input in #( 20806 *\&* | *\|* | *\\* ) 20807 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20808 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20809 *) ac_sed_conf_input=$configure_input;; 20810 esac 20811 20812 case $ac_tag in 20813 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20815 esac 20816 ;; 20817 esac 20818 20819 ac_dir=`$as_dirname -- "$ac_file" || 20820$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20821 X"$ac_file" : 'X\(//\)[^/]' \| \ 20822 X"$ac_file" : 'X\(//\)$' \| \ 20823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20824printf "%s\n" X"$ac_file" | 20825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20826 s//\1/ 20827 q 20828 } 20829 /^X\(\/\/\)[^/].*/{ 20830 s//\1/ 20831 q 20832 } 20833 /^X\(\/\/\)$/{ 20834 s//\1/ 20835 q 20836 } 20837 /^X\(\/\).*/{ 20838 s//\1/ 20839 q 20840 } 20841 s/.*/./; q'` 20842 as_dir="$ac_dir"; as_fn_mkdir_p 20843 ac_builddir=. 20844 20845case "$ac_dir" in 20846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20847*) 20848 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20849 # A ".." for each directory in $ac_dir_suffix. 20850 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20851 case $ac_top_builddir_sub in 20852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20854 esac ;; 20855esac 20856ac_abs_top_builddir=$ac_pwd 20857ac_abs_builddir=$ac_pwd$ac_dir_suffix 20858# for backward compatibility: 20859ac_top_builddir=$ac_top_build_prefix 20860 20861case $srcdir in 20862 .) # We are building in place. 20863 ac_srcdir=. 20864 ac_top_srcdir=$ac_top_builddir_sub 20865 ac_abs_top_srcdir=$ac_pwd ;; 20866 [\\/]* | ?:[\\/]* ) # Absolute name. 20867 ac_srcdir=$srcdir$ac_dir_suffix; 20868 ac_top_srcdir=$srcdir 20869 ac_abs_top_srcdir=$srcdir ;; 20870 *) # Relative name. 20871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20872 ac_top_srcdir=$ac_top_build_prefix$srcdir 20873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20874esac 20875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20876 20877 20878 case $ac_mode in 20879 :F) 20880 # 20881 # CONFIG_FILE 20882 # 20883 20884 case $INSTALL in 20885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20887 esac 20888 ac_MKDIR_P=$MKDIR_P 20889 case $MKDIR_P in 20890 [\\/$]* | ?:[\\/]* ) ;; 20891 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20892 esac 20893_ACEOF 20894 20895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20896# If the template does not know about datarootdir, expand it. 20897# FIXME: This hack should be removed a few years after 2.60. 20898ac_datarootdir_hack=; ac_datarootdir_seen= 20899ac_sed_dataroot=' 20900/datarootdir/ { 20901 p 20902 q 20903} 20904/@datadir@/p 20905/@docdir@/p 20906/@infodir@/p 20907/@localedir@/p 20908/@mandir@/p' 20909case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20910*datarootdir*) ac_datarootdir_seen=yes;; 20911*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20913printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20914_ACEOF 20915cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20916 ac_datarootdir_hack=' 20917 s&@datadir@&$datadir&g 20918 s&@docdir@&$docdir&g 20919 s&@infodir@&$infodir&g 20920 s&@localedir@&$localedir&g 20921 s&@mandir@&$mandir&g 20922 s&\\\${datarootdir}&$datarootdir&g' ;; 20923esac 20924_ACEOF 20925 20926# Neutralize VPATH when `$srcdir' = `.'. 20927# Shell code in configure.ac might set extrasub. 20928# FIXME: do we really want to maintain this feature? 20929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20930ac_sed_extra="$ac_vpsub 20931$extrasub 20932_ACEOF 20933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20934:t 20935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20936s|@configure_input@|$ac_sed_conf_input|;t t 20937s&@top_builddir@&$ac_top_builddir_sub&;t t 20938s&@top_build_prefix@&$ac_top_build_prefix&;t t 20939s&@srcdir@&$ac_srcdir&;t t 20940s&@abs_srcdir@&$ac_abs_srcdir&;t t 20941s&@top_srcdir@&$ac_top_srcdir&;t t 20942s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20943s&@builddir@&$ac_builddir&;t t 20944s&@abs_builddir@&$ac_abs_builddir&;t t 20945s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20946s&@INSTALL@&$ac_INSTALL&;t t 20947s&@MKDIR_P@&$ac_MKDIR_P&;t t 20948$ac_datarootdir_hack 20949" 20950eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20951 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20952 20953test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20954 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20955 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20956 "$ac_tmp/out"`; test -z "$ac_out"; } && 20957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20958which seems to be undefined. Please make sure it is defined" >&5 20959printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20960which seems to be undefined. Please make sure it is defined" >&2;} 20961 20962 rm -f "$ac_tmp/stdin" 20963 case $ac_file in 20964 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20965 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20966 esac \ 20967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20968 ;; 20969 :H) 20970 # 20971 # CONFIG_HEADER 20972 # 20973 if test x"$ac_file" != x-; then 20974 { 20975 printf "%s\n" "/* $configure_input */" >&1 \ 20976 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20977 } >"$ac_tmp/config.h" \ 20978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20979 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20981printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 20982 else 20983 rm -f "$ac_file" 20984 mv "$ac_tmp/config.h" "$ac_file" \ 20985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20986 fi 20987 else 20988 printf "%s\n" "/* $configure_input */" >&1 \ 20989 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20990 || as_fn_error $? "could not create -" "$LINENO" 5 20991 fi 20992# Compute "$ac_file"'s index in $config_headers. 20993_am_arg="$ac_file" 20994_am_stamp_count=1 20995for _am_header in $config_headers :; do 20996 case $_am_header in 20997 $_am_arg | $_am_arg:* ) 20998 break ;; 20999 * ) 21000 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21001 esac 21002done 21003echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21004$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21005 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21006 X"$_am_arg" : 'X\(//\)$' \| \ 21007 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21008printf "%s\n" X"$_am_arg" | 21009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21010 s//\1/ 21011 q 21012 } 21013 /^X\(\/\/\)[^/].*/{ 21014 s//\1/ 21015 q 21016 } 21017 /^X\(\/\/\)$/{ 21018 s//\1/ 21019 q 21020 } 21021 /^X\(\/\).*/{ 21022 s//\1/ 21023 q 21024 } 21025 s/.*/./; q'`/stamp-h$_am_stamp_count 21026 ;; 21027 21028 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21029printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21030 ;; 21031 esac 21032 21033 21034 case $ac_file$ac_mode in 21035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21036 # Older Autoconf quotes --file arguments for eval, but not when files 21037 # are listed without --file. Let's play safe and only enable the eval 21038 # if we detect the quoting. 21039 # TODO: see whether this extra hack can be removed once we start 21040 # requiring Autoconf 2.70 or later. 21041 case $CONFIG_FILES in #( 21042 *\'*) : 21043 eval set x "$CONFIG_FILES" ;; #( 21044 *) : 21045 set x $CONFIG_FILES ;; #( 21046 *) : 21047 ;; 21048esac 21049 shift 21050 # Used to flag and report bootstrapping failures. 21051 am_rc=0 21052 for am_mf 21053 do 21054 # Strip MF so we end up with the name of the file. 21055 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21056 # Check whether this is an Automake generated Makefile which includes 21057 # dependency-tracking related rules and includes. 21058 # Grep'ing the whole file directly is not great: AIX grep has a line 21059 # limit of 2048, but all sed's we know have understand at least 4000. 21060 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21061 || continue 21062 am_dirpart=`$as_dirname -- "$am_mf" || 21063$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21064 X"$am_mf" : 'X\(//\)[^/]' \| \ 21065 X"$am_mf" : 'X\(//\)$' \| \ 21066 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21067printf "%s\n" X"$am_mf" | 21068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21069 s//\1/ 21070 q 21071 } 21072 /^X\(\/\/\)[^/].*/{ 21073 s//\1/ 21074 q 21075 } 21076 /^X\(\/\/\)$/{ 21077 s//\1/ 21078 q 21079 } 21080 /^X\(\/\).*/{ 21081 s//\1/ 21082 q 21083 } 21084 s/.*/./; q'` 21085 am_filepart=`$as_basename -- "$am_mf" || 21086$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21087 X"$am_mf" : 'X\(//\)$' \| \ 21088 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21089printf "%s\n" X/"$am_mf" | 21090 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21091 s//\1/ 21092 q 21093 } 21094 /^X\/\(\/\/\)$/{ 21095 s//\1/ 21096 q 21097 } 21098 /^X\/\(\/\).*/{ 21099 s//\1/ 21100 q 21101 } 21102 s/.*/./; q'` 21103 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21104 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21105 | $MAKE -f - am--depfiles" >&5 21106 (cd "$am_dirpart" \ 21107 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21108 | $MAKE -f - am--depfiles) >&5 2>&5 21109 ac_status=$? 21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21111 (exit $ac_status); } || am_rc=$? 21112 done 21113 if test $am_rc -ne 0; then 21114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21115printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21116as_fn_error $? "Something went wrong bootstrapping makefile fragments 21117 for automatic dependency tracking. If GNU make was not used, consider 21118 re-running the configure script with MAKE=\"gmake\" (or whatever is 21119 necessary). You can also try re-running configure with the 21120 '--disable-dependency-tracking' option to at least be able to build 21121 the package (albeit without support for automatic dependency tracking). 21122See \`config.log' for more details" "$LINENO" 5; } 21123 fi 21124 { am_dirpart=; unset am_dirpart;} 21125 { am_filepart=; unset am_filepart;} 21126 { am_mf=; unset am_mf;} 21127 { am_rc=; unset am_rc;} 21128 rm -f conftest-deps.mk 21129} 21130 ;; 21131 "libtool":C) 21132 21133 # See if we are running on zsh, and set the options that allow our 21134 # commands through without removal of \ escapes. 21135 if test -n "${ZSH_VERSION+set}"; then 21136 setopt NO_GLOB_SUBST 21137 fi 21138 21139 cfgfile=${ofile}T 21140 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21141 $RM "$cfgfile" 21142 21143 cat <<_LT_EOF >> "$cfgfile" 21144#! $SHELL 21145# Generated automatically by $as_me ($PACKAGE) $VERSION 21146# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21147# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21148 21149# Provide generalized library-building support services. 21150# Written by Gordon Matzigkeit, 1996 21151 21152# Copyright (C) 2014 Free Software Foundation, Inc. 21153# This is free software; see the source for copying conditions. There is NO 21154# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21155 21156# GNU Libtool is free software; you can redistribute it and/or modify 21157# it under the terms of the GNU General Public License as published by 21158# the Free Software Foundation; either version 2 of of the License, or 21159# (at your option) any later version. 21160# 21161# As a special exception to the GNU General Public License, if you 21162# distribute this file as part of a program or library that is built 21163# using GNU Libtool, you may include this file under the same 21164# distribution terms that you use for the rest of that program. 21165# 21166# GNU Libtool is distributed in the hope that it will be useful, but 21167# WITHOUT ANY WARRANTY; without even the implied warranty of 21168# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21169# GNU General Public License for more details. 21170# 21171# You should have received a copy of the GNU General Public License 21172# along with this program. If not, see <http://www.gnu.org/licenses/>. 21173 21174 21175# The names of the tagged configurations supported by this script. 21176available_tags='' 21177 21178# Configured defaults for sys_lib_dlsearch_path munging. 21179: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21180 21181# ### BEGIN LIBTOOL CONFIG 21182 21183# Which release of libtool.m4 was used? 21184macro_version=$macro_version 21185macro_revision=$macro_revision 21186 21187# Whether or not to build shared libraries. 21188build_libtool_libs=$enable_shared 21189 21190# Whether or not to build static libraries. 21191build_old_libs=$enable_static 21192 21193# What type of objects to build. 21194pic_mode=$pic_mode 21195 21196# Whether or not to optimize for fast installation. 21197fast_install=$enable_fast_install 21198 21199# Shared archive member basename,for filename based shared library versioning on AIX. 21200shared_archive_member_spec=$shared_archive_member_spec 21201 21202# Shell to use when invoking shell scripts. 21203SHELL=$lt_SHELL 21204 21205# An echo program that protects backslashes. 21206ECHO=$lt_ECHO 21207 21208# The PATH separator for the build system. 21209PATH_SEPARATOR=$lt_PATH_SEPARATOR 21210 21211# The host system. 21212host_alias=$host_alias 21213host=$host 21214host_os=$host_os 21215 21216# The build system. 21217build_alias=$build_alias 21218build=$build 21219build_os=$build_os 21220 21221# A sed program that does not truncate output. 21222SED=$lt_SED 21223 21224# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21225Xsed="\$SED -e 1s/^X//" 21226 21227# A grep program that handles long lines. 21228GREP=$lt_GREP 21229 21230# An ERE matcher. 21231EGREP=$lt_EGREP 21232 21233# A literal string matcher. 21234FGREP=$lt_FGREP 21235 21236# A BSD- or MS-compatible name lister. 21237NM=$lt_NM 21238 21239# Whether we need soft or hard links. 21240LN_S=$lt_LN_S 21241 21242# What is the maximum length of a command? 21243max_cmd_len=$max_cmd_len 21244 21245# Object file suffix (normally "o"). 21246objext=$ac_objext 21247 21248# Executable file suffix (normally ""). 21249exeext=$exeext 21250 21251# whether the shell understands "unset". 21252lt_unset=$lt_unset 21253 21254# turn spaces into newlines. 21255SP2NL=$lt_lt_SP2NL 21256 21257# turn newlines into spaces. 21258NL2SP=$lt_lt_NL2SP 21259 21260# convert \$build file names to \$host format. 21261to_host_file_cmd=$lt_cv_to_host_file_cmd 21262 21263# convert \$build files to toolchain format. 21264to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21265 21266# A file(cmd) program that detects file types. 21267FILECMD=$lt_FILECMD 21268 21269# An object symbol dumper. 21270OBJDUMP=$lt_OBJDUMP 21271 21272# Method to check whether dependent libraries are shared objects. 21273deplibs_check_method=$lt_deplibs_check_method 21274 21275# Command to use when deplibs_check_method = "file_magic". 21276file_magic_cmd=$lt_file_magic_cmd 21277 21278# How to find potential files when deplibs_check_method = "file_magic". 21279file_magic_glob=$lt_file_magic_glob 21280 21281# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21282want_nocaseglob=$lt_want_nocaseglob 21283 21284# DLL creation program. 21285DLLTOOL=$lt_DLLTOOL 21286 21287# Command to associate shared and link libraries. 21288sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21289 21290# The archiver. 21291AR=$lt_AR 21292 21293# Flags to create an archive (by configure). 21294lt_ar_flags=$lt_ar_flags 21295 21296# Flags to create an archive. 21297AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21298 21299# How to feed a file listing to the archiver. 21300archiver_list_spec=$lt_archiver_list_spec 21301 21302# A symbol stripping program. 21303STRIP=$lt_STRIP 21304 21305# Commands used to install an old-style archive. 21306RANLIB=$lt_RANLIB 21307old_postinstall_cmds=$lt_old_postinstall_cmds 21308old_postuninstall_cmds=$lt_old_postuninstall_cmds 21309 21310# Whether to use a lock for old archive extraction. 21311lock_old_archive_extraction=$lock_old_archive_extraction 21312 21313# A C compiler. 21314LTCC=$lt_CC 21315 21316# LTCC compiler flags. 21317LTCFLAGS=$lt_CFLAGS 21318 21319# Take the output of nm and produce a listing of raw symbols and C names. 21320global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21321 21322# Transform the output of nm in a proper C declaration. 21323global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21324 21325# Transform the output of nm into a list of symbols to manually relocate. 21326global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21327 21328# Transform the output of nm in a C name address pair. 21329global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21330 21331# Transform the output of nm in a C name address pair when lib prefix is needed. 21332global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21333 21334# The name lister interface. 21335nm_interface=$lt_lt_cv_nm_interface 21336 21337# Specify filename containing input files for \$NM. 21338nm_file_list_spec=$lt_nm_file_list_spec 21339 21340# The root where to search for dependent libraries,and where our libraries should be installed. 21341lt_sysroot=$lt_sysroot 21342 21343# Command to truncate a binary pipe. 21344lt_truncate_bin=$lt_lt_cv_truncate_bin 21345 21346# The name of the directory that contains temporary libtool files. 21347objdir=$objdir 21348 21349# Used to examine libraries when file_magic_cmd begins with "file". 21350MAGIC_CMD=$MAGIC_CMD 21351 21352# Must we lock files when doing compilation? 21353need_locks=$lt_need_locks 21354 21355# Manifest tool. 21356MANIFEST_TOOL=$lt_MANIFEST_TOOL 21357 21358# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21359DSYMUTIL=$lt_DSYMUTIL 21360 21361# Tool to change global to local symbols on Mac OS X. 21362NMEDIT=$lt_NMEDIT 21363 21364# Tool to manipulate fat objects and archives on Mac OS X. 21365LIPO=$lt_LIPO 21366 21367# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21368OTOOL=$lt_OTOOL 21369 21370# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21371OTOOL64=$lt_OTOOL64 21372 21373# Old archive suffix (normally "a"). 21374libext=$libext 21375 21376# Shared library suffix (normally ".so"). 21377shrext_cmds=$lt_shrext_cmds 21378 21379# The commands to extract the exported symbol list from a shared archive. 21380extract_expsyms_cmds=$lt_extract_expsyms_cmds 21381 21382# Variables whose values should be saved in libtool wrapper scripts and 21383# restored at link time. 21384variables_saved_for_relink=$lt_variables_saved_for_relink 21385 21386# Do we need the "lib" prefix for modules? 21387need_lib_prefix=$need_lib_prefix 21388 21389# Do we need a version for libraries? 21390need_version=$need_version 21391 21392# Library versioning type. 21393version_type=$version_type 21394 21395# Shared library runtime path variable. 21396runpath_var=$runpath_var 21397 21398# Shared library path variable. 21399shlibpath_var=$shlibpath_var 21400 21401# Is shlibpath searched before the hard-coded library search path? 21402shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21403 21404# Format of library name prefix. 21405libname_spec=$lt_libname_spec 21406 21407# List of archive names. First name is the real one, the rest are links. 21408# The last name is the one that the linker finds with -lNAME 21409library_names_spec=$lt_library_names_spec 21410 21411# The coded name of the library, if different from the real name. 21412soname_spec=$lt_soname_spec 21413 21414# Permission mode override for installation of shared libraries. 21415install_override_mode=$lt_install_override_mode 21416 21417# Command to use after installation of a shared archive. 21418postinstall_cmds=$lt_postinstall_cmds 21419 21420# Command to use after uninstallation of a shared archive. 21421postuninstall_cmds=$lt_postuninstall_cmds 21422 21423# Commands used to finish a libtool library installation in a directory. 21424finish_cmds=$lt_finish_cmds 21425 21426# As "finish_cmds", except a single script fragment to be evaled but 21427# not shown. 21428finish_eval=$lt_finish_eval 21429 21430# Whether we should hardcode library paths into libraries. 21431hardcode_into_libs=$hardcode_into_libs 21432 21433# Compile-time system search path for libraries. 21434sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21435 21436# Detected run-time system search path for libraries. 21437sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21438 21439# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21440configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21441 21442# Whether dlopen is supported. 21443dlopen_support=$enable_dlopen 21444 21445# Whether dlopen of programs is supported. 21446dlopen_self=$enable_dlopen_self 21447 21448# Whether dlopen of statically linked programs is supported. 21449dlopen_self_static=$enable_dlopen_self_static 21450 21451# Commands to strip libraries. 21452old_striplib=$lt_old_striplib 21453striplib=$lt_striplib 21454 21455 21456# The linker used to build libraries. 21457LD=$lt_LD 21458 21459# How to create reloadable object files. 21460reload_flag=$lt_reload_flag 21461reload_cmds=$lt_reload_cmds 21462 21463# Commands used to build an old-style archive. 21464old_archive_cmds=$lt_old_archive_cmds 21465 21466# A language specific compiler. 21467CC=$lt_compiler 21468 21469# Is the compiler the GNU compiler? 21470with_gcc=$GCC 21471 21472# Compiler flag to turn off builtin functions. 21473no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21474 21475# Additional compiler flags for building library objects. 21476pic_flag=$lt_lt_prog_compiler_pic 21477 21478# How to pass a linker flag through the compiler. 21479wl=$lt_lt_prog_compiler_wl 21480 21481# Compiler flag to prevent dynamic linking. 21482link_static_flag=$lt_lt_prog_compiler_static 21483 21484# Does compiler simultaneously support -c and -o options? 21485compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21486 21487# Whether or not to add -lc for building shared libraries. 21488build_libtool_need_lc=$archive_cmds_need_lc 21489 21490# Whether or not to disallow shared libs when runtime libs are static. 21491allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21492 21493# Compiler flag to allow reflexive dlopens. 21494export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21495 21496# Compiler flag to generate shared objects directly from archives. 21497whole_archive_flag_spec=$lt_whole_archive_flag_spec 21498 21499# Whether the compiler copes with passing no objects directly. 21500compiler_needs_object=$lt_compiler_needs_object 21501 21502# Create an old-style archive from a shared archive. 21503old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21504 21505# Create a temporary old-style archive to link instead of a shared archive. 21506old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21507 21508# Commands used to build a shared archive. 21509archive_cmds=$lt_archive_cmds 21510archive_expsym_cmds=$lt_archive_expsym_cmds 21511 21512# Commands used to build a loadable module if different from building 21513# a shared archive. 21514module_cmds=$lt_module_cmds 21515module_expsym_cmds=$lt_module_expsym_cmds 21516 21517# Whether we are building with GNU ld or not. 21518with_gnu_ld=$lt_with_gnu_ld 21519 21520# Flag that allows shared libraries with undefined symbols to be built. 21521allow_undefined_flag=$lt_allow_undefined_flag 21522 21523# Flag that enforces no undefined symbols. 21524no_undefined_flag=$lt_no_undefined_flag 21525 21526# Flag to hardcode \$libdir into a binary during linking. 21527# This must work even if \$libdir does not exist 21528hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21529 21530# Whether we need a single "-rpath" flag with a separated argument. 21531hardcode_libdir_separator=$lt_hardcode_libdir_separator 21532 21533# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21534# DIR into the resulting binary. 21535hardcode_direct=$hardcode_direct 21536 21537# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21538# DIR into the resulting binary and the resulting library dependency is 21539# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21540# library is relocated. 21541hardcode_direct_absolute=$hardcode_direct_absolute 21542 21543# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21544# into the resulting binary. 21545hardcode_minus_L=$hardcode_minus_L 21546 21547# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21548# into the resulting binary. 21549hardcode_shlibpath_var=$hardcode_shlibpath_var 21550 21551# Set to "yes" if building a shared library automatically hardcodes DIR 21552# into the library and all subsequent libraries and executables linked 21553# against it. 21554hardcode_automatic=$hardcode_automatic 21555 21556# Set to yes if linker adds runtime paths of dependent libraries 21557# to runtime path list. 21558inherit_rpath=$inherit_rpath 21559 21560# Whether libtool must link a program against all its dependency libraries. 21561link_all_deplibs=$link_all_deplibs 21562 21563# Set to "yes" if exported symbols are required. 21564always_export_symbols=$always_export_symbols 21565 21566# The commands to list exported symbols. 21567export_symbols_cmds=$lt_export_symbols_cmds 21568 21569# Symbols that should not be listed in the preloaded symbols. 21570exclude_expsyms=$lt_exclude_expsyms 21571 21572# Symbols that must always be exported. 21573include_expsyms=$lt_include_expsyms 21574 21575# Commands necessary for linking programs (against libraries) with templates. 21576prelink_cmds=$lt_prelink_cmds 21577 21578# Commands necessary for finishing linking programs. 21579postlink_cmds=$lt_postlink_cmds 21580 21581# Specify filename containing input files. 21582file_list_spec=$lt_file_list_spec 21583 21584# How to hardcode a shared library path into an executable. 21585hardcode_action=$hardcode_action 21586 21587# ### END LIBTOOL CONFIG 21588 21589_LT_EOF 21590 21591 cat <<'_LT_EOF' >> "$cfgfile" 21592 21593# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21594 21595# func_munge_path_list VARIABLE PATH 21596# ----------------------------------- 21597# VARIABLE is name of variable containing _space_ separated list of 21598# directories to be munged by the contents of PATH, which is string 21599# having a format: 21600# "DIR[:DIR]:" 21601# string "DIR[ DIR]" will be prepended to VARIABLE 21602# ":DIR[:DIR]" 21603# string "DIR[ DIR]" will be appended to VARIABLE 21604# "DIRP[:DIRP]::[DIRA:]DIRA" 21605# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21606# "DIRA[ DIRA]" will be appended to VARIABLE 21607# "DIR[:DIR]" 21608# VARIABLE will be replaced by "DIR[ DIR]" 21609func_munge_path_list () 21610{ 21611 case x$2 in 21612 x) 21613 ;; 21614 *:) 21615 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21616 ;; 21617 x:*) 21618 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21619 ;; 21620 *::*) 21621 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21622 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21623 ;; 21624 *) 21625 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21626 ;; 21627 esac 21628} 21629 21630 21631# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21632func_cc_basename () 21633{ 21634 for cc_temp in $*""; do 21635 case $cc_temp in 21636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21638 \-*) ;; 21639 *) break;; 21640 esac 21641 done 21642 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21643} 21644 21645 21646# ### END FUNCTIONS SHARED WITH CONFIGURE 21647 21648_LT_EOF 21649 21650 case $host_os in 21651 aix3*) 21652 cat <<\_LT_EOF >> "$cfgfile" 21653# AIX sometimes has problems with the GCC collect2 program. For some 21654# reason, if we set the COLLECT_NAMES environment variable, the problems 21655# vanish in a puff of smoke. 21656if test set != "${COLLECT_NAMES+set}"; then 21657 COLLECT_NAMES= 21658 export COLLECT_NAMES 21659fi 21660_LT_EOF 21661 ;; 21662 esac 21663 21664 21665 21666ltmain=$ac_aux_dir/ltmain.sh 21667 21668 21669 # We use sed instead of cat because bash on DJGPP gets confused if 21670 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21671 # text mode, it properly converts lines to CR/LF. This bash problem 21672 # is reportedly fixed, but why not run on old versions too? 21673 $SED '$q' "$ltmain" >> "$cfgfile" \ 21674 || (rm -f "$cfgfile"; exit 1) 21675 21676 mv -f "$cfgfile" "$ofile" || 21677 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21678 chmod +x "$ofile" 21679 21680 ;; 21681 21682 esac 21683done # for ac_tag 21684 21685 21686as_fn_exit 0 21687_ACEOF 21688ac_clean_files=$ac_clean_files_save 21689 21690test $ac_write_fail = 0 || 21691 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21692 21693 21694# configure is writing to config.log, and then calls config.status. 21695# config.status does its own redirection, appending to config.log. 21696# Unfortunately, on DOS this fails, as config.log is still kept open 21697# by configure, so config.status won't be able to write to it; its 21698# output is simply discarded. So we exec the FD to /dev/null, 21699# effectively closing config.log, so it can be properly (re)opened and 21700# appended to by config.status. When coming back to configure, we 21701# need to make the FD available again. 21702if test "$no_create" != yes; then 21703 ac_cs_success=: 21704 ac_config_status_args= 21705 test "$silent" = yes && 21706 ac_config_status_args="$ac_config_status_args --quiet" 21707 exec 5>/dev/null 21708 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21709 exec 5>>config.log 21710 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21711 # would make configure fail if this is the last instruction. 21712 $ac_cs_success || as_fn_exit 1 21713fi 21714if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21716printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21717fi 21718 21719 21720