1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for libXv 1.0.13. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxv/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: https://gitlab.freedesktop.org/xorg/lib/libxv/-/issues 283$0: about your system, including any error possibly output 284$0: before this message. Then install a modern shell, or 285$0: manually run the script under such a shell if you do 286$0: have one." 287 fi 288 exit 1 289fi ;; 290esac 291fi 292fi 293SHELL=${CONFIG_SHELL-/bin/sh} 294export SHELL 295# Unset more variables known to interfere with behavior of common tools. 296CLICOLOR_FORCE= GREP_OPTIONS= 297unset CLICOLOR_FORCE GREP_OPTIONS 298 299## --------------------- ## 300## M4sh Shell Functions. ## 301## --------------------- ## 302# as_fn_unset VAR 303# --------------- 304# Portably unset VAR. 305as_fn_unset () 306{ 307 { eval $1=; unset $1;} 308} 309as_unset=as_fn_unset 310 311 312# as_fn_set_status STATUS 313# ----------------------- 314# Set $? to STATUS, without forking. 315as_fn_set_status () 316{ 317 return $1 318} # as_fn_set_status 319 320# as_fn_exit STATUS 321# ----------------- 322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323as_fn_exit () 324{ 325 set +e 326 as_fn_set_status $1 327 exit $1 328} # as_fn_exit 329 330# as_fn_mkdir_p 331# ------------- 332# Create "$as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} # as_fn_mkdir_p 377 378# as_fn_executable_p FILE 379# ----------------------- 380# Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} # as_fn_executable_p 385# as_fn_append VAR VALUE 386# ---------------------- 387# Append the text in VALUE to the end of the definition contained in VAR. Take 388# advantage of any shell optimizations that allow amortized linear growth over 389# repeated appends, instead of the typical quadratic growth present in naive 390# implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402esac 403fi # as_fn_append 404 405# as_fn_arith ARG... 406# ------------------ 407# Perform arithmetic evaluation on the ARGs, and store the result in the 408# global $as_val. Take advantage of shells that can avoid forks. The arguments 409# must be portable across $(()) and expr. 410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421esac 422fi # as_fn_arith 423 424 425# as_fn_error STATUS ERROR [LINENO LOG_FD] 426# ---------------------------------------- 427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429# script with STATUS, using 1 if that was 0. 430as_fn_error () 431{ 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439} # as_fn_error 440 441if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444else 445 as_expr=false 446fi 447 448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450else 451 as_basename=false 452fi 453 454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456else 457 as_dirname=false 458fi 459 460as_me=`$as_basename -- "$0" || 461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479# Avoid depending upon Character Ranges. 480as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483as_cr_digits='0123456789' 484as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588# Sed expression to map a string onto a valid variable name. 589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595test -n "$DJDIR" || exec 7<&0 </dev/null 596exec 6>&1 597 598# Name of the host. 599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600# so uname gets run too. 601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603# 604# Initializations. 605# 606ac_default_prefix=/usr/local 607ac_clean_files= 608ac_config_libobj_dir=. 609LIBOBJS= 610cross_compiling=no 611subdirs= 612MFLAGS= 613MAKEFLAGS= 614 615# Identity of this package. 616PACKAGE_NAME='libXv' 617PACKAGE_TARNAME='libXv' 618PACKAGE_VERSION='1.0.13' 619PACKAGE_STRING='libXv 1.0.13' 620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxv/-/issues' 621PACKAGE_URL='' 622 623ac_unique_file="Makefile.am" 624# Factoring default headers for most tests. 625ac_includes_default="\ 626#include <stddef.h> 627#ifdef HAVE_STDIO_H 628# include <stdio.h> 629#endif 630#ifdef HAVE_STDLIB_H 631# include <stdlib.h> 632#endif 633#ifdef HAVE_STRING_H 634# include <string.h> 635#endif 636#ifdef HAVE_INTTYPES_H 637# include <inttypes.h> 638#endif 639#ifdef HAVE_STDINT_H 640# include <stdint.h> 641#endif 642#ifdef HAVE_STRINGS_H 643# include <strings.h> 644#endif 645#ifdef HAVE_SYS_TYPES_H 646# include <sys/types.h> 647#endif 648#ifdef HAVE_SYS_STAT_H 649# include <sys/stat.h> 650#endif 651#ifdef HAVE_UNISTD_H 652# include <unistd.h> 653#endif" 654 655ac_header_c_list= 656ac_subst_vars='am__EXEEXT_FALSE 657am__EXEEXT_TRUE 658LTLIBOBJS 659LIBOBJS 660MAKE_LINT_LIB_FALSE 661MAKE_LINT_LIB_TRUE 662LINTLIB 663LINT_FALSE 664LINT_TRUE 665LINT_FLAGS 666LINT 667XV_LIBS 668XV_CFLAGS 669XTMALLOC_ZERO_CFLAGS 670XMALLOC_ZERO_CFLAGS 671MALLOC_ZERO_CFLAGS 672MAN_SUBSTS 673XORG_MAN_PAGE 674ADMIN_MAN_DIR 675DRIVER_MAN_DIR 676MISC_MAN_DIR 677FILE_MAN_DIR 678LIB_MAN_DIR 679APP_MAN_DIR 680ADMIN_MAN_SUFFIX 681DRIVER_MAN_SUFFIX 682MISC_MAN_SUFFIX 683FILE_MAN_SUFFIX 684LIB_MAN_SUFFIX 685APP_MAN_SUFFIX 686INSTALL_CMD 687PKG_CONFIG_LIBDIR 688PKG_CONFIG_PATH 689PKG_CONFIG 690CHANGELOG_CMD 691STRICT_CFLAGS 692CWARNFLAGS 693BASE_CFLAGS 694LT_SYS_LIBRARY_PATH 695OTOOL64 696OTOOL 697LIPO 698NMEDIT 699DSYMUTIL 700MANIFEST_TOOL 701RANLIB 702ac_ct_AR 703AR 704DLLTOOL 705OBJDUMP 706FILECMD 707LN_S 708NM 709ac_ct_DUMPBIN 710DUMPBIN 711LD 712FGREP 713EGREP 714GREP 715SED 716am__fastdepCC_FALSE 717am__fastdepCC_TRUE 718CCDEPMODE 719am__nodep 720AMDEPBACKSLASH 721AMDEP_FALSE 722AMDEP_TRUE 723am__include 724DEPDIR 725OBJEXT 726EXEEXT 727ac_ct_CC 728CPPFLAGS 729LDFLAGS 730CFLAGS 731CC 732host_os 733host_vendor 734host_cpu 735host 736build_os 737build_vendor 738build_cpu 739build 740LIBTOOL 741am__xargs_n 742am__rm_f_notfound 743AM_BACKSLASH 744AM_DEFAULT_VERBOSITY 745AM_DEFAULT_V 746AM_V 747CSCOPE 748ETAGS 749CTAGS 750am__untar 751am__tar 752AMTAR 753am__leading_dot 754SET_MAKE 755AWK 756mkdir_p 757MKDIR_P 758INSTALL_STRIP_PROGRAM 759STRIP 760install_sh 761MAKEINFO 762AUTOHEADER 763AUTOMAKE 764AUTOCONF 765ACLOCAL 766VERSION 767PACKAGE 768CYGPATH_W 769am__isrc 770INSTALL_DATA 771INSTALL_SCRIPT 772INSTALL_PROGRAM 773target_alias 774host_alias 775build_alias 776LIBS 777ECHO_T 778ECHO_N 779ECHO_C 780DEFS 781mandir 782localedir 783libdir 784psdir 785pdfdir 786dvidir 787htmldir 788infodir 789docdir 790oldincludedir 791includedir 792runstatedir 793localstatedir 794sharedstatedir 795sysconfdir 796datadir 797datarootdir 798libexecdir 799sbindir 800bindir 801program_transform_name 802prefix 803exec_prefix 804PACKAGE_URL 805PACKAGE_BUGREPORT 806PACKAGE_STRING 807PACKAGE_VERSION 808PACKAGE_TARNAME 809PACKAGE_NAME 810PATH_SEPARATOR 811SHELL 812am__quote' 813ac_subst_files='' 814ac_user_opts=' 815enable_option_checking 816enable_silent_rules 817enable_shared 818enable_static 819enable_pic 820with_pic 821enable_fast_install 822enable_aix_soname 823with_aix_soname 824enable_dependency_tracking 825with_gnu_ld 826with_sysroot 827enable_libtool_lock 828enable_selective_werror 829enable_strict_compilation 830enable_malloc0returnsnull 831with_lint 832enable_lint_library 833' 834 ac_precious_vars='build_alias 835host_alias 836target_alias 837CC 838CFLAGS 839LDFLAGS 840LIBS 841CPPFLAGS 842LT_SYS_LIBRARY_PATH 843PKG_CONFIG 844PKG_CONFIG_PATH 845PKG_CONFIG_LIBDIR 846XV_CFLAGS 847XV_LIBS 848LINT 849LINT_FLAGS' 850 851 852# Initialize some variables set by options. 853ac_init_help= 854ac_init_version=false 855ac_unrecognized_opts= 856ac_unrecognized_sep= 857# The variables have the same names as the options, with 858# dashes changed to underlines. 859cache_file=/dev/null 860exec_prefix=NONE 861no_create= 862no_recursion= 863prefix=NONE 864program_prefix=NONE 865program_suffix=NONE 866program_transform_name=s,x,x, 867silent= 868site= 869srcdir= 870verbose= 871x_includes=NONE 872x_libraries=NONE 873 874# Installation directory options. 875# These are left unexpanded so users can "make install exec_prefix=/foo" 876# and all the variables that are supposed to be based on exec_prefix 877# by default will actually change. 878# Use braces instead of parens because sh, perl, etc. also accept them. 879# (The list follows the same order as the GNU Coding Standards.) 880bindir='${exec_prefix}/bin' 881sbindir='${exec_prefix}/sbin' 882libexecdir='${exec_prefix}/libexec' 883datarootdir='${prefix}/share' 884datadir='${datarootdir}' 885sysconfdir='${prefix}/etc' 886sharedstatedir='${prefix}/com' 887localstatedir='${prefix}/var' 888runstatedir='${localstatedir}/run' 889includedir='${prefix}/include' 890oldincludedir='/usr/include' 891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 892infodir='${datarootdir}/info' 893htmldir='${docdir}' 894dvidir='${docdir}' 895pdfdir='${docdir}' 896psdir='${docdir}' 897libdir='${exec_prefix}/lib' 898localedir='${datarootdir}/locale' 899mandir='${datarootdir}/man' 900 901ac_prev= 902ac_dashdash= 903for ac_option 904do 905 # If the previous option needs an argument, assign it. 906 if test -n "$ac_prev"; then 907 eval $ac_prev=\$ac_option 908 ac_prev= 909 continue 910 fi 911 912 case $ac_option in 913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 914 *=) ac_optarg= ;; 915 *) ac_optarg=yes ;; 916 esac 917 918 case $ac_dashdash$ac_option in 919 --) 920 ac_dashdash=yes ;; 921 922 -bindir | --bindir | --bindi | --bind | --bin | --bi) 923 ac_prev=bindir ;; 924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 925 bindir=$ac_optarg ;; 926 927 -build | --build | --buil | --bui | --bu) 928 ac_prev=build_alias ;; 929 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 930 build_alias=$ac_optarg ;; 931 932 -cache-file | --cache-file | --cache-fil | --cache-fi \ 933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 934 ac_prev=cache_file ;; 935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 937 cache_file=$ac_optarg ;; 938 939 --config-cache | -C) 940 cache_file=config.cache ;; 941 942 -datadir | --datadir | --datadi | --datad) 943 ac_prev=datadir ;; 944 -datadir=* | --datadir=* | --datadi=* | --datad=*) 945 datadir=$ac_optarg ;; 946 947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 948 | --dataroo | --dataro | --datar) 949 ac_prev=datarootdir ;; 950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 952 datarootdir=$ac_optarg ;; 953 954 -disable-* | --disable-*) 955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 956 # Reject names that are not valid shell variable names. 957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 958 as_fn_error $? "invalid feature name: '$ac_useropt'" 959 ac_useropt_orig=$ac_useropt 960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 961 case $ac_user_opts in 962 *" 963"enable_$ac_useropt" 964"*) ;; 965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 966 ac_unrecognized_sep=', ';; 967 esac 968 eval enable_$ac_useropt=no ;; 969 970 -docdir | --docdir | --docdi | --doc | --do) 971 ac_prev=docdir ;; 972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 973 docdir=$ac_optarg ;; 974 975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 976 ac_prev=dvidir ;; 977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 978 dvidir=$ac_optarg ;; 979 980 -enable-* | --enable-*) 981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 982 # Reject names that are not valid shell variable names. 983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 984 as_fn_error $? "invalid feature name: '$ac_useropt'" 985 ac_useropt_orig=$ac_useropt 986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 987 case $ac_user_opts in 988 *" 989"enable_$ac_useropt" 990"*) ;; 991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 992 ac_unrecognized_sep=', ';; 993 esac 994 eval enable_$ac_useropt=\$ac_optarg ;; 995 996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 998 | --exec | --exe | --ex) 999 ac_prev=exec_prefix ;; 1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1002 | --exec=* | --exe=* | --ex=*) 1003 exec_prefix=$ac_optarg ;; 1004 1005 -gas | --gas | --ga | --g) 1006 # Obsolete; use --with-gas. 1007 with_gas=yes ;; 1008 1009 -help | --help | --hel | --he | -h) 1010 ac_init_help=long ;; 1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1012 ac_init_help=recursive ;; 1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1014 ac_init_help=short ;; 1015 1016 -host | --host | --hos | --ho) 1017 ac_prev=host_alias ;; 1018 -host=* | --host=* | --hos=* | --ho=*) 1019 host_alias=$ac_optarg ;; 1020 1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1022 ac_prev=htmldir ;; 1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1024 | --ht=*) 1025 htmldir=$ac_optarg ;; 1026 1027 -includedir | --includedir | --includedi | --included | --include \ 1028 | --includ | --inclu | --incl | --inc) 1029 ac_prev=includedir ;; 1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1031 | --includ=* | --inclu=* | --incl=* | --inc=*) 1032 includedir=$ac_optarg ;; 1033 1034 -infodir | --infodir | --infodi | --infod | --info | --inf) 1035 ac_prev=infodir ;; 1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1037 infodir=$ac_optarg ;; 1038 1039 -libdir | --libdir | --libdi | --libd) 1040 ac_prev=libdir ;; 1041 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1042 libdir=$ac_optarg ;; 1043 1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1045 | --libexe | --libex | --libe) 1046 ac_prev=libexecdir ;; 1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1048 | --libexe=* | --libex=* | --libe=*) 1049 libexecdir=$ac_optarg ;; 1050 1051 -localedir | --localedir | --localedi | --localed | --locale) 1052 ac_prev=localedir ;; 1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1054 localedir=$ac_optarg ;; 1055 1056 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1057 | --localstate | --localstat | --localsta | --localst | --locals) 1058 ac_prev=localstatedir ;; 1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1061 localstatedir=$ac_optarg ;; 1062 1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1064 ac_prev=mandir ;; 1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1066 mandir=$ac_optarg ;; 1067 1068 -nfp | --nfp | --nf) 1069 # Obsolete; use --without-fp. 1070 with_fp=no ;; 1071 1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1073 | --no-cr | --no-c | -n) 1074 no_create=yes ;; 1075 1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1078 no_recursion=yes ;; 1079 1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1082 | --oldin | --oldi | --old | --ol | --o) 1083 ac_prev=oldincludedir ;; 1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1087 oldincludedir=$ac_optarg ;; 1088 1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1090 ac_prev=prefix ;; 1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1092 prefix=$ac_optarg ;; 1093 1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1095 | --program-pre | --program-pr | --program-p) 1096 ac_prev=program_prefix ;; 1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1099 program_prefix=$ac_optarg ;; 1100 1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1102 | --program-suf | --program-su | --program-s) 1103 ac_prev=program_suffix ;; 1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1106 program_suffix=$ac_optarg ;; 1107 1108 -program-transform-name | --program-transform-name \ 1109 | --program-transform-nam | --program-transform-na \ 1110 | --program-transform-n | --program-transform- \ 1111 | --program-transform | --program-transfor \ 1112 | --program-transfo | --program-transf \ 1113 | --program-trans | --program-tran \ 1114 | --progr-tra | --program-tr | --program-t) 1115 ac_prev=program_transform_name ;; 1116 -program-transform-name=* | --program-transform-name=* \ 1117 | --program-transform-nam=* | --program-transform-na=* \ 1118 | --program-transform-n=* | --program-transform-=* \ 1119 | --program-transform=* | --program-transfor=* \ 1120 | --program-transfo=* | --program-transf=* \ 1121 | --program-trans=* | --program-tran=* \ 1122 | --progr-tra=* | --program-tr=* | --program-t=*) 1123 program_transform_name=$ac_optarg ;; 1124 1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1126 ac_prev=pdfdir ;; 1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1128 pdfdir=$ac_optarg ;; 1129 1130 -psdir | --psdir | --psdi | --psd | --ps) 1131 ac_prev=psdir ;; 1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1133 psdir=$ac_optarg ;; 1134 1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1136 | -silent | --silent | --silen | --sile | --sil) 1137 silent=yes ;; 1138 1139 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1140 | --runstate | --runstat | --runsta | --runst | --runs \ 1141 | --run | --ru | --r) 1142 ac_prev=runstatedir ;; 1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1145 | --run=* | --ru=* | --r=*) 1146 runstatedir=$ac_optarg ;; 1147 1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1149 ac_prev=sbindir ;; 1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1151 | --sbi=* | --sb=*) 1152 sbindir=$ac_optarg ;; 1153 1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1156 | --sharedst | --shareds | --shared | --share | --shar \ 1157 | --sha | --sh) 1158 ac_prev=sharedstatedir ;; 1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1162 | --sha=* | --sh=*) 1163 sharedstatedir=$ac_optarg ;; 1164 1165 -site | --site | --sit) 1166 ac_prev=site ;; 1167 -site=* | --site=* | --sit=*) 1168 site=$ac_optarg ;; 1169 1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1171 ac_prev=srcdir ;; 1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1173 srcdir=$ac_optarg ;; 1174 1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1176 | --syscon | --sysco | --sysc | --sys | --sy) 1177 ac_prev=sysconfdir ;; 1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1180 sysconfdir=$ac_optarg ;; 1181 1182 -target | --target | --targe | --targ | --tar | --ta | --t) 1183 ac_prev=target_alias ;; 1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1185 target_alias=$ac_optarg ;; 1186 1187 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1188 verbose=yes ;; 1189 1190 -version | --version | --versio | --versi | --vers | -V) 1191 ac_init_version=: ;; 1192 1193 -with-* | --with-*) 1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1195 # Reject names that are not valid shell variable names. 1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1197 as_fn_error $? "invalid package name: '$ac_useropt'" 1198 ac_useropt_orig=$ac_useropt 1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1200 case $ac_user_opts in 1201 *" 1202"with_$ac_useropt" 1203"*) ;; 1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1205 ac_unrecognized_sep=', ';; 1206 esac 1207 eval with_$ac_useropt=\$ac_optarg ;; 1208 1209 -without-* | --without-*) 1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1211 # Reject names that are not valid shell variable names. 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1213 as_fn_error $? "invalid package name: '$ac_useropt'" 1214 ac_useropt_orig=$ac_useropt 1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1216 case $ac_user_opts in 1217 *" 1218"with_$ac_useropt" 1219"*) ;; 1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1221 ac_unrecognized_sep=', ';; 1222 esac 1223 eval with_$ac_useropt=no ;; 1224 1225 --x) 1226 # Obsolete; use --with-x. 1227 with_x=yes ;; 1228 1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1230 | --x-incl | --x-inc | --x-in | --x-i) 1231 ac_prev=x_includes ;; 1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1234 x_includes=$ac_optarg ;; 1235 1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1238 ac_prev=x_libraries ;; 1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1241 x_libraries=$ac_optarg ;; 1242 1243 -*) as_fn_error $? "unrecognized option: '$ac_option' 1244Try '$0 --help' for more information" 1245 ;; 1246 1247 *=*) 1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1249 # Reject names that are not valid shell variable names. 1250 case $ac_envvar in #( 1251 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1252 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1253 esac 1254 eval $ac_envvar=\$ac_optarg 1255 export $ac_envvar ;; 1256 1257 *) 1258 # FIXME: should be removed in autoconf 3.0. 1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1263 ;; 1264 1265 esac 1266done 1267 1268if test -n "$ac_prev"; then 1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1270 as_fn_error $? "missing argument to $ac_option" 1271fi 1272 1273if test -n "$ac_unrecognized_opts"; then 1274 case $enable_option_checking in 1275 no) ;; 1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1278 esac 1279fi 1280 1281# Check all directory arguments for consistency. 1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1283 datadir sysconfdir sharedstatedir localstatedir includedir \ 1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1285 libdir localedir mandir runstatedir 1286do 1287 eval ac_val=\$$ac_var 1288 # Remove trailing slashes. 1289 case $ac_val in 1290 */ ) 1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1292 eval $ac_var=\$ac_val;; 1293 esac 1294 # Be sure to have absolute directory names. 1295 case $ac_val in 1296 [\\/$]* | ?:[\\/]* ) continue;; 1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1298 esac 1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1300done 1301 1302# There might be people who depend on the old broken behavior: '$host' 1303# used to hold the argument of --host etc. 1304# FIXME: To remove some day. 1305build=$build_alias 1306host=$host_alias 1307target=$target_alias 1308 1309# FIXME: To remove some day. 1310if test "x$host_alias" != x; then 1311 if test "x$build_alias" = x; then 1312 cross_compiling=maybe 1313 elif test "x$build_alias" != "x$host_alias"; then 1314 cross_compiling=yes 1315 fi 1316fi 1317 1318ac_tool_prefix= 1319test -n "$host_alias" && ac_tool_prefix=$host_alias- 1320 1321test "$silent" = yes && exec 6>/dev/null 1322 1323 1324ac_pwd=`pwd` && test -n "$ac_pwd" && 1325ac_ls_di=`ls -di .` && 1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1327 as_fn_error $? "working directory cannot be determined" 1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1329 as_fn_error $? "pwd does not report name of working directory" 1330 1331 1332# Find the source files, if location was not specified. 1333if test -z "$srcdir"; then 1334 ac_srcdir_defaulted=yes 1335 # Try the directory containing this script, then the parent directory. 1336 ac_confdir=`$as_dirname -- "$as_myself" || 1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1338 X"$as_myself" : 'X\(//\)[^/]' \| \ 1339 X"$as_myself" : 'X\(//\)$' \| \ 1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1341printf "%s\n" X"$as_myself" | 1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)[^/].*/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\).*/{ 1355 s//\1/ 1356 q 1357 } 1358 s/.*/./; q'` 1359 srcdir=$ac_confdir 1360 if test ! -r "$srcdir/$ac_unique_file"; then 1361 srcdir=.. 1362 fi 1363else 1364 ac_srcdir_defaulted=no 1365fi 1366if test ! -r "$srcdir/$ac_unique_file"; then 1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1369fi 1370ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1371ac_abs_confdir=`( 1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1373 pwd)` 1374# When building in place, set srcdir=. 1375if test "$ac_abs_confdir" = "$ac_pwd"; then 1376 srcdir=. 1377fi 1378# Remove unnecessary trailing slashes from srcdir. 1379# Double slashes in file names in object file debugging info 1380# mess up M-x gdb in Emacs. 1381case $srcdir in 1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1383esac 1384for ac_var in $ac_precious_vars; do 1385 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1386 eval ac_env_${ac_var}_value=\$${ac_var} 1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1389done 1390 1391# 1392# Report the --help message. 1393# 1394if test "$ac_init_help" = "long"; then 1395 # Omit some internal or obsolete options to make the list less imposing. 1396 # This message is too long to be a string in the A/UX 3.1 sh. 1397 cat <<_ACEOF 1398'configure' configures libXv 1.0.13 to adapt to many kinds of systems. 1399 1400Usage: $0 [OPTION]... [VAR=VALUE]... 1401 1402To assign environment variables (e.g., CC, CFLAGS...), specify them as 1403VAR=VALUE. See below for descriptions of some of the useful variables. 1404 1405Defaults for the options are specified in brackets. 1406 1407Configuration: 1408 -h, --help display this help and exit 1409 --help=short display options specific to this package 1410 --help=recursive display the short help of all the included packages 1411 -V, --version display version information and exit 1412 -q, --quiet, --silent do not print 'checking ...' messages 1413 --cache-file=FILE cache test results in FILE [disabled] 1414 -C, --config-cache alias for '--cache-file=config.cache' 1415 -n, --no-create do not create output files 1416 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1417 1418Installation directories: 1419 --prefix=PREFIX install architecture-independent files in PREFIX 1420 [$ac_default_prefix] 1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1422 [PREFIX] 1423 1424By default, 'make install' will install all the files in 1425'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1426an installation prefix other than '$ac_default_prefix' using '--prefix', 1427for instance '--prefix=\$HOME'. 1428 1429For better control, use the options below. 1430 1431Fine tuning of the installation directories: 1432 --bindir=DIR user executables [EPREFIX/bin] 1433 --sbindir=DIR system admin executables [EPREFIX/sbin] 1434 --libexecdir=DIR program executables [EPREFIX/libexec] 1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1439 --libdir=DIR object code libraries [EPREFIX/lib] 1440 --includedir=DIR C header files [PREFIX/include] 1441 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1444 --infodir=DIR info documentation [DATAROOTDIR/info] 1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1446 --mandir=DIR man documentation [DATAROOTDIR/man] 1447 --docdir=DIR documentation root [DATAROOTDIR/doc/libXv] 1448 --htmldir=DIR html documentation [DOCDIR] 1449 --dvidir=DIR dvi documentation [DOCDIR] 1450 --pdfdir=DIR pdf documentation [DOCDIR] 1451 --psdir=DIR ps documentation [DOCDIR] 1452_ACEOF 1453 1454 cat <<\_ACEOF 1455 1456Program names: 1457 --program-prefix=PREFIX prepend PREFIX to installed program names 1458 --program-suffix=SUFFIX append SUFFIX to installed program names 1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1460 1461System types: 1462 --build=BUILD configure for building on BUILD [guessed] 1463 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1464_ACEOF 1465fi 1466 1467if test -n "$ac_init_help"; then 1468 case $ac_init_help in 1469 short | recursive ) echo "Configuration of libXv 1.0.13:";; 1470 esac 1471 cat <<\_ACEOF 1472 1473Optional Features: 1474 --disable-option-checking ignore unrecognized --enable/--with options 1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1477 --enable-silent-rules less verbose build output (undo: "make V=1") 1478 --disable-silent-rules verbose build output (undo: "make V=0") 1479 --enable-shared[=PKGS] build shared libraries [default=yes] 1480 --enable-static[=PKGS] build static libraries [default=yes] 1481 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1482 both] 1483 --enable-fast-install[=PKGS] 1484 optimize for fast installation [default=yes] 1485 --enable-aix-soname=aix|svr4|both 1486 shared library versioning (aka "SONAME") variant to 1487 provide on AIX, [default=aix]. 1488 --enable-dependency-tracking 1489 do not reject slow dependency extractors 1490 --disable-dependency-tracking 1491 speeds up one-time build 1492 --disable-libtool-lock avoid locking (might break parallel builds) 1493 --disable-selective-werror 1494 Turn off selective compiler errors. (default: 1495 enabled) 1496 --enable-strict-compilation 1497 Enable all warnings from compiler and make them 1498 errors (default: disabled) 1499 --enable-malloc0returnsnull 1500 assume malloc(0) can return NULL (default: yes) 1501 --enable-lint-library Create lint library (default: disabled) 1502 1503Optional Packages: 1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1507 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1508 compiler's sysroot if not specified). 1509 --with-lint Use a lint-style source code checker (default: 1510 disabled) 1511 1512Some influential environment variables: 1513 CC C compiler command 1514 CFLAGS C compiler flags 1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1516 nonstandard directory <lib dir> 1517 LIBS libraries to pass to the linker, e.g. -l<library> 1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1519 you have headers in a nonstandard directory <include dir> 1520 LT_SYS_LIBRARY_PATH 1521 User-defined run-time library search path. 1522 PKG_CONFIG path to pkg-config utility 1523 PKG_CONFIG_PATH 1524 directories to add to pkg-config's search path 1525 PKG_CONFIG_LIBDIR 1526 path overriding pkg-config's built-in search path 1527 XV_CFLAGS C compiler flags for XV, overriding pkg-config 1528 XV_LIBS linker flags for XV, overriding pkg-config 1529 LINT Path to a lint-style command 1530 LINT_FLAGS Flags for the lint-style command 1531 1532Use these variables to override the choices made by 'configure' or to help 1533it to find libraries and programs with nonstandard names/locations. 1534 1535Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxv/-/issues>. 1536_ACEOF 1537ac_status=$? 1538fi 1539 1540if test "$ac_init_help" = "recursive"; then 1541 # If there are subdirs, report their specific --help. 1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1543 test -d "$ac_dir" || 1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1545 continue 1546 ac_builddir=. 1547 1548case "$ac_dir" in 1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550*) 1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1552 # A ".." for each directory in $ac_dir_suffix. 1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1554 case $ac_top_builddir_sub in 1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1557 esac ;; 1558esac 1559ac_abs_top_builddir=$ac_pwd 1560ac_abs_builddir=$ac_pwd$ac_dir_suffix 1561# for backward compatibility: 1562ac_top_builddir=$ac_top_build_prefix 1563 1564case $srcdir in 1565 .) # We are building in place. 1566 ac_srcdir=. 1567 ac_top_srcdir=$ac_top_builddir_sub 1568 ac_abs_top_srcdir=$ac_pwd ;; 1569 [\\/]* | ?:[\\/]* ) # Absolute name. 1570 ac_srcdir=$srcdir$ac_dir_suffix; 1571 ac_top_srcdir=$srcdir 1572 ac_abs_top_srcdir=$srcdir ;; 1573 *) # Relative name. 1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1575 ac_top_srcdir=$ac_top_build_prefix$srcdir 1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1577esac 1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1579 1580 cd "$ac_dir" || { ac_status=$?; continue; } 1581 # Check for configure.gnu first; this name is used for a wrapper for 1582 # Metaconfig's "Configure" on case-insensitive file systems. 1583 if test -f "$ac_srcdir/configure.gnu"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1586 elif test -f "$ac_srcdir/configure"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure" --help=recursive 1589 else 1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1591 fi || ac_status=$? 1592 cd "$ac_pwd" || { ac_status=$?; break; } 1593 done 1594fi 1595 1596test -n "$ac_init_help" && exit $ac_status 1597if $ac_init_version; then 1598 cat <<\_ACEOF 1599libXv configure 1.0.13 1600generated by GNU Autoconf 2.72 1601 1602Copyright (C) 2023 Free Software Foundation, Inc. 1603This configure script is free software; the Free Software Foundation 1604gives unlimited permission to copy, distribute and modify it. 1605_ACEOF 1606 exit 1607fi 1608 1609## ------------------------ ## 1610## Autoconf initialization. ## 1611## ------------------------ ## 1612 1613# ac_fn_c_try_compile LINENO 1614# -------------------------- 1615# Try to compile conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_compile () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext conftest.beam 1620 if { { ac_try="$ac_compile" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626printf "%s\n" "$ac_try_echo"; } >&5 1627 (eval "$ac_compile") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest.$ac_objext 1639then : 1640 ac_retval=0 1641else case e in #( 1642 e) printf "%s\n" "$as_me: failed program was:" >&5 1643sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 ;; 1646esac 1647fi 1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1649 as_fn_set_status $ac_retval 1650 1651} # ac_fn_c_try_compile 1652 1653# ac_fn_c_try_link LINENO 1654# ----------------------- 1655# Try to link conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_link () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1660 if { { ac_try="$ac_link" 1661case "(($ac_try" in 1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1663 *) ac_try_echo=$ac_try;; 1664esac 1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1666printf "%s\n" "$ac_try_echo"; } >&5 1667 (eval "$ac_link") 2>conftest.err 1668 ac_status=$? 1669 if test -s conftest.err; then 1670 grep -v '^ *+' conftest.err >conftest.er1 1671 cat conftest.er1 >&5 1672 mv -f conftest.er1 conftest.err 1673 fi 1674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1675 test $ac_status = 0; } && { 1676 test -z "$ac_c_werror_flag" || 1677 test ! -s conftest.err 1678 } && test -s conftest$ac_exeext && { 1679 test "$cross_compiling" = yes || 1680 test -x conftest$ac_exeext 1681 } 1682then : 1683 ac_retval=0 1684else case e in #( 1685 e) printf "%s\n" "$as_me: failed program was:" >&5 1686sed 's/^/| /' conftest.$ac_ext >&5 1687 1688 ac_retval=1 ;; 1689esac 1690fi 1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1693 # interfere with the next link command; also delete a directory that is 1694 # left behind by Apple's compiler. We do this before executing the actions. 1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 as_fn_set_status $ac_retval 1698 1699} # ac_fn_c_try_link 1700 1701# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1702# ------------------------------------------------------- 1703# Tests whether HEADER exists and can be compiled using the include files in 1704# INCLUDES, setting the cache variable VAR accordingly. 1705ac_fn_c_check_header_compile () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1709printf %s "checking for $2... " >&6; } 1710if eval test \${$3+y} 1711then : 1712 printf %s "(cached) " >&6 1713else case e in #( 1714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1715/* end confdefs.h. */ 1716$4 1717#include <$2> 1718_ACEOF 1719if ac_fn_c_try_compile "$LINENO" 1720then : 1721 eval "$3=yes" 1722else case e in #( 1723 e) eval "$3=no" ;; 1724esac 1725fi 1726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1727esac 1728fi 1729eval ac_res=\$$3 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1731printf "%s\n" "$ac_res" >&6; } 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1734} # ac_fn_c_check_header_compile 1735 1736# ac_fn_c_check_func LINENO FUNC VAR 1737# ---------------------------------- 1738# Tests whether FUNC exists, setting the cache variable VAR accordingly 1739ac_fn_c_check_func () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1743printf %s "checking for $2... " >&6; } 1744if eval test \${$3+y} 1745then : 1746 printf %s "(cached) " >&6 1747else case e in #( 1748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1749/* end confdefs.h. */ 1750/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1752#define $2 innocuous_$2 1753 1754/* System header to define __stub macros and hopefully few prototypes, 1755 which can conflict with char $2 (void); below. */ 1756 1757#include <limits.h> 1758#undef $2 1759 1760/* Override any GCC internal prototype to avoid an error. 1761 Use char because int might match the return type of a GCC 1762 builtin and then its argument prototype would still apply. */ 1763#ifdef __cplusplus 1764extern "C" 1765#endif 1766char $2 (void); 1767/* The GNU C library defines this for functions which it implements 1768 to always fail with ENOSYS. Some functions are actually named 1769 something starting with __ and the normal name is an alias. */ 1770#if defined __stub_$2 || defined __stub___$2 1771choke me 1772#endif 1773 1774int 1775main (void) 1776{ 1777return $2 (); 1778 ; 1779 return 0; 1780} 1781_ACEOF 1782if ac_fn_c_try_link "$LINENO" 1783then : 1784 eval "$3=yes" 1785else case e in #( 1786 e) eval "$3=no" ;; 1787esac 1788fi 1789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1790 conftest$ac_exeext conftest.$ac_ext ;; 1791esac 1792fi 1793eval ac_res=\$$3 1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795printf "%s\n" "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_func 1799 1800# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1801# ------------------------------------------------------------------ 1802# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1803# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1804ac_fn_check_decl () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 as_decl_name=`echo $2|sed 's/ *(.*//'` 1808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1809printf %s "checking whether $as_decl_name is declared... " >&6; } 1810if eval test \${$3+y} 1811then : 1812 printf %s "(cached) " >&6 1813else case e in #( 1814 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1815 eval ac_save_FLAGS=\$$6 1816 as_fn_append $6 " $5" 1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1818/* end confdefs.h. */ 1819$4 1820int 1821main (void) 1822{ 1823#ifndef $as_decl_name 1824#ifdef __cplusplus 1825 (void) $as_decl_use; 1826#else 1827 (void) $as_decl_name; 1828#endif 1829#endif 1830 1831 ; 1832 return 0; 1833} 1834_ACEOF 1835if ac_fn_c_try_compile "$LINENO" 1836then : 1837 eval "$3=yes" 1838else case e in #( 1839 e) eval "$3=no" ;; 1840esac 1841fi 1842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1843 eval $6=\$ac_save_FLAGS 1844 ;; 1845esac 1846fi 1847eval ac_res=\$$3 1848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1849printf "%s\n" "$ac_res" >&6; } 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 1852} # ac_fn_check_decl 1853ac_configure_args_raw= 1854for ac_arg 1855do 1856 case $ac_arg in 1857 *\'*) 1858 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1859 esac 1860 as_fn_append ac_configure_args_raw " '$ac_arg'" 1861done 1862 1863case $ac_configure_args_raw in 1864 *$as_nl*) 1865 ac_safe_unquote= ;; 1866 *) 1867 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1868 ac_unsafe_a="$ac_unsafe_z#~" 1869 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1870 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1871esac 1872 1873cat >config.log <<_ACEOF 1874This file contains any messages produced by compilers while 1875running configure, to aid debugging if configure makes a mistake. 1876 1877It was created by libXv $as_me 1.0.13, which was 1878generated by GNU Autoconf 2.72. Invocation command line was 1879 1880 $ $0$ac_configure_args_raw 1881 1882_ACEOF 1883exec 5>>config.log 1884{ 1885cat <<_ASUNAME 1886## --------- ## 1887## Platform. ## 1888## --------- ## 1889 1890hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1891uname -m = `(uname -m) 2>/dev/null || echo unknown` 1892uname -r = `(uname -r) 2>/dev/null || echo unknown` 1893uname -s = `(uname -s) 2>/dev/null || echo unknown` 1894uname -v = `(uname -v) 2>/dev/null || echo unknown` 1895 1896/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1897/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1898 1899/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1900/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1901/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1902/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1903/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1904/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1905/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1906 1907_ASUNAME 1908 1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1910for as_dir in $PATH 1911do 1912 IFS=$as_save_IFS 1913 case $as_dir in #((( 1914 '') as_dir=./ ;; 1915 */) ;; 1916 *) as_dir=$as_dir/ ;; 1917 esac 1918 printf "%s\n" "PATH: $as_dir" 1919 done 1920IFS=$as_save_IFS 1921 1922} >&5 1923 1924cat >&5 <<_ACEOF 1925 1926 1927## ----------- ## 1928## Core tests. ## 1929## ----------- ## 1930 1931_ACEOF 1932 1933 1934# Keep a trace of the command line. 1935# Strip out --no-create and --no-recursion so they do not pile up. 1936# Strip out --silent because we don't want to record it for future runs. 1937# Also quote any args containing shell meta-characters. 1938# Make two passes to allow for proper duplicate-argument suppression. 1939ac_configure_args= 1940ac_configure_args0= 1941ac_configure_args1= 1942ac_must_keep_next=false 1943for ac_pass in 1 2 1944do 1945 for ac_arg 1946 do 1947 case $ac_arg in 1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1950 | -silent | --silent | --silen | --sile | --sil) 1951 continue ;; 1952 *\'*) 1953 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1954 esac 1955 case $ac_pass in 1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1957 2) 1958 as_fn_append ac_configure_args1 " '$ac_arg'" 1959 if test $ac_must_keep_next = true; then 1960 ac_must_keep_next=false # Got value, back to normal. 1961 else 1962 case $ac_arg in 1963 *=* | --config-cache | -C | -disable-* | --disable-* \ 1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1966 | -with-* | --with-* | -without-* | --without-* | --x) 1967 case "$ac_configure_args0 " in 1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1969 esac 1970 ;; 1971 -* ) ac_must_keep_next=true ;; 1972 esac 1973 fi 1974 as_fn_append ac_configure_args " '$ac_arg'" 1975 ;; 1976 esac 1977 done 1978done 1979{ ac_configure_args0=; unset ac_configure_args0;} 1980{ ac_configure_args1=; unset ac_configure_args1;} 1981 1982# When interrupted or exit'd, cleanup temporary files, and complete 1983# config.log. We remove comments because anyway the quotes in there 1984# would cause problems or look ugly. 1985# WARNING: Use '\'' to represent an apostrophe within the trap. 1986# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1987trap 'exit_status=$? 1988 # Sanitize IFS. 1989 IFS=" "" $as_nl" 1990 # Save into config.log some information that might help in debugging. 1991 { 1992 echo 1993 1994 printf "%s\n" "## ---------------- ## 1995## Cache variables. ## 1996## ---------------- ##" 1997 echo 1998 # The following way of writing the cache mishandles newlines in values, 1999( 2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2001 eval ac_val=\$$ac_var 2002 case $ac_val in #( 2003 *${as_nl}*) 2004 case $ac_var in #( 2005 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2006printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2007 esac 2008 case $ac_var in #( 2009 _ | IFS | as_nl) ;; #( 2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2011 *) { eval $ac_var=; unset $ac_var;} ;; 2012 esac ;; 2013 esac 2014 done 2015 (set) 2>&1 | 2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2017 *${as_nl}ac_space=\ *) 2018 sed -n \ 2019 "s/'\''/'\''\\\\'\'''\''/g; 2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2021 ;; #( 2022 *) 2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2024 ;; 2025 esac | 2026 sort 2027) 2028 echo 2029 2030 printf "%s\n" "## ----------------- ## 2031## Output variables. ## 2032## ----------------- ##" 2033 echo 2034 for ac_var in $ac_subst_vars 2035 do 2036 eval ac_val=\$$ac_var 2037 case $ac_val in 2038 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2039 esac 2040 printf "%s\n" "$ac_var='\''$ac_val'\''" 2041 done | sort 2042 echo 2043 2044 if test -n "$ac_subst_files"; then 2045 printf "%s\n" "## ------------------- ## 2046## File substitutions. ## 2047## ------------------- ##" 2048 echo 2049 for ac_var in $ac_subst_files 2050 do 2051 eval ac_val=\$$ac_var 2052 case $ac_val in 2053 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2054 esac 2055 printf "%s\n" "$ac_var='\''$ac_val'\''" 2056 done | sort 2057 echo 2058 fi 2059 2060 if test -s confdefs.h; then 2061 printf "%s\n" "## ----------- ## 2062## confdefs.h. ## 2063## ----------- ##" 2064 echo 2065 cat confdefs.h 2066 echo 2067 fi 2068 test "$ac_signal" != 0 && 2069 printf "%s\n" "$as_me: caught signal $ac_signal" 2070 printf "%s\n" "$as_me: exit $exit_status" 2071 } >&5 2072 rm -f core *.core core.conftest.* && 2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2074 exit $exit_status 2075' 0 2076for ac_signal in 1 2 13 15; do 2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2078done 2079ac_signal=0 2080 2081# confdefs.h avoids OS command line length limits that DEFS can exceed. 2082rm -f -r conftest* confdefs.h 2083 2084printf "%s\n" "/* confdefs.h */" > confdefs.h 2085 2086# Predefined preprocessor variables. 2087 2088printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2089 2090printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2091 2092printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2093 2094printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2095 2096printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2097 2098printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2099 2100 2101# Let the site file select an alternate cache file if it wants to. 2102# Prefer an explicitly selected file to automatically selected ones. 2103if test -n "$CONFIG_SITE"; then 2104 ac_site_files="$CONFIG_SITE" 2105elif test "x$prefix" != xNONE; then 2106 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2107else 2108 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2109fi 2110 2111for ac_site_file in $ac_site_files 2112do 2113 case $ac_site_file in #( 2114 */*) : 2115 ;; #( 2116 *) : 2117 ac_site_file=./$ac_site_file ;; 2118esac 2119 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2121printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2122 sed 's/^/| /' "$ac_site_file" >&5 2123 . "$ac_site_file" \ 2124 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2125printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2126as_fn_error $? "failed to load site script $ac_site_file 2127See 'config.log' for more details" "$LINENO" 5; } 2128 fi 2129done 2130 2131if test -r "$cache_file"; then 2132 # Some versions of bash will fail to source /dev/null (special files 2133 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2134 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2136printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2137 case $cache_file in 2138 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2139 *) . "./$cache_file";; 2140 esac 2141 fi 2142else 2143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2144printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2145 >$cache_file 2146fi 2147 2148# Test code for whether the C compiler supports C89 (global declarations) 2149ac_c_conftest_c89_globals=' 2150/* Does the compiler advertise C89 conformance? 2151 Do not test the value of __STDC__, because some compilers set it to 0 2152 while being otherwise adequately conformant. */ 2153#if !defined __STDC__ 2154# error "Compiler does not advertise C89 conformance" 2155#endif 2156 2157#include <stddef.h> 2158#include <stdarg.h> 2159struct stat; 2160/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2161struct buf { int x; }; 2162struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2163static char *e (char **p, int i) 2164{ 2165 return p[i]; 2166} 2167static char *f (char * (*g) (char **, int), char **p, ...) 2168{ 2169 char *s; 2170 va_list v; 2171 va_start (v,p); 2172 s = g (p, va_arg (v,int)); 2173 va_end (v); 2174 return s; 2175} 2176 2177/* C89 style stringification. */ 2178#define noexpand_stringify(a) #a 2179const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2180 2181/* C89 style token pasting. Exercises some of the corner cases that 2182 e.g. old MSVC gets wrong, but not very hard. */ 2183#define noexpand_concat(a,b) a##b 2184#define expand_concat(a,b) noexpand_concat(a,b) 2185extern int vA; 2186extern int vbee; 2187#define aye A 2188#define bee B 2189int *pvA = &expand_concat(v,aye); 2190int *pvbee = &noexpand_concat(v,bee); 2191 2192/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2193 function prototypes and stuff, but not \xHH hex character constants. 2194 These do not provoke an error unfortunately, instead are silently treated 2195 as an "x". The following induces an error, until -std is added to get 2196 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2197 array size at least. It is necessary to write \x00 == 0 to get something 2198 that is true only with -std. */ 2199int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2200 2201/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2202 inside strings and character constants. */ 2203#define FOO(x) '\''x'\'' 2204int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2205 2206int test (int i, double x); 2207struct s1 {int (*f) (int a);}; 2208struct s2 {int (*f) (double a);}; 2209int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2210 int, int);' 2211 2212# Test code for whether the C compiler supports C89 (body of main). 2213ac_c_conftest_c89_main=' 2214ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2215' 2216 2217# Test code for whether the C compiler supports C99 (global declarations) 2218ac_c_conftest_c99_globals=' 2219/* Does the compiler advertise C99 conformance? */ 2220#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2221# error "Compiler does not advertise C99 conformance" 2222#endif 2223 2224// See if C++-style comments work. 2225 2226#include <stdbool.h> 2227extern int puts (const char *); 2228extern int printf (const char *, ...); 2229extern int dprintf (int, const char *, ...); 2230extern void *malloc (size_t); 2231extern void free (void *); 2232 2233// Check varargs macros. These examples are taken from C99 6.10.3.5. 2234// dprintf is used instead of fprintf to avoid needing to declare 2235// FILE and stderr. 2236#define debug(...) dprintf (2, __VA_ARGS__) 2237#define showlist(...) puts (#__VA_ARGS__) 2238#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2239static void 2240test_varargs_macros (void) 2241{ 2242 int x = 1234; 2243 int y = 5678; 2244 debug ("Flag"); 2245 debug ("X = %d\n", x); 2246 showlist (The first, second, and third items.); 2247 report (x>y, "x is %d but y is %d", x, y); 2248} 2249 2250// Check long long types. 2251#define BIG64 18446744073709551615ull 2252#define BIG32 4294967295ul 2253#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2254#if !BIG_OK 2255 #error "your preprocessor is broken" 2256#endif 2257#if BIG_OK 2258#else 2259 #error "your preprocessor is broken" 2260#endif 2261static long long int bignum = -9223372036854775807LL; 2262static unsigned long long int ubignum = BIG64; 2263 2264struct incomplete_array 2265{ 2266 int datasize; 2267 double data[]; 2268}; 2269 2270struct named_init { 2271 int number; 2272 const wchar_t *name; 2273 double average; 2274}; 2275 2276typedef const char *ccp; 2277 2278static inline int 2279test_restrict (ccp restrict text) 2280{ 2281 // Iterate through items via the restricted pointer. 2282 // Also check for declarations in for loops. 2283 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2284 continue; 2285 return 0; 2286} 2287 2288// Check varargs and va_copy. 2289static bool 2290test_varargs (const char *format, ...) 2291{ 2292 va_list args; 2293 va_start (args, format); 2294 va_list args_copy; 2295 va_copy (args_copy, args); 2296 2297 const char *str = ""; 2298 int number = 0; 2299 float fnumber = 0; 2300 2301 while (*format) 2302 { 2303 switch (*format++) 2304 { 2305 case '\''s'\'': // string 2306 str = va_arg (args_copy, const char *); 2307 break; 2308 case '\''d'\'': // int 2309 number = va_arg (args_copy, int); 2310 break; 2311 case '\''f'\'': // float 2312 fnumber = va_arg (args_copy, double); 2313 break; 2314 default: 2315 break; 2316 } 2317 } 2318 va_end (args_copy); 2319 va_end (args); 2320 2321 return *str && number && fnumber; 2322} 2323' 2324 2325# Test code for whether the C compiler supports C99 (body of main). 2326ac_c_conftest_c99_main=' 2327 // Check bool. 2328 _Bool success = false; 2329 success |= (argc != 0); 2330 2331 // Check restrict. 2332 if (test_restrict ("String literal") == 0) 2333 success = true; 2334 char *restrict newvar = "Another string"; 2335 2336 // Check varargs. 2337 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2338 test_varargs_macros (); 2339 2340 // Check flexible array members. 2341 struct incomplete_array *ia = 2342 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2343 ia->datasize = 10; 2344 for (int i = 0; i < ia->datasize; ++i) 2345 ia->data[i] = i * 1.234; 2346 // Work around memory leak warnings. 2347 free (ia); 2348 2349 // Check named initializers. 2350 struct named_init ni = { 2351 .number = 34, 2352 .name = L"Test wide string", 2353 .average = 543.34343, 2354 }; 2355 2356 ni.number = 58; 2357 2358 int dynamic_array[ni.number]; 2359 dynamic_array[0] = argv[0][0]; 2360 dynamic_array[ni.number - 1] = 543; 2361 2362 // work around unused variable warnings 2363 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2364 || dynamic_array[ni.number - 1] != 543); 2365' 2366 2367# Test code for whether the C compiler supports C11 (global declarations) 2368ac_c_conftest_c11_globals=' 2369/* Does the compiler advertise C11 conformance? */ 2370#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2371# error "Compiler does not advertise C11 conformance" 2372#endif 2373 2374// Check _Alignas. 2375char _Alignas (double) aligned_as_double; 2376char _Alignas (0) no_special_alignment; 2377extern char aligned_as_int; 2378char _Alignas (0) _Alignas (int) aligned_as_int; 2379 2380// Check _Alignof. 2381enum 2382{ 2383 int_alignment = _Alignof (int), 2384 int_array_alignment = _Alignof (int[100]), 2385 char_alignment = _Alignof (char) 2386}; 2387_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2388 2389// Check _Noreturn. 2390int _Noreturn does_not_return (void) { for (;;) continue; } 2391 2392// Check _Static_assert. 2393struct test_static_assert 2394{ 2395 int x; 2396 _Static_assert (sizeof (int) <= sizeof (long int), 2397 "_Static_assert does not work in struct"); 2398 long int y; 2399}; 2400 2401// Check UTF-8 literals. 2402#define u8 syntax error! 2403char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2404 2405// Check duplicate typedefs. 2406typedef long *long_ptr; 2407typedef long int *long_ptr; 2408typedef long_ptr long_ptr; 2409 2410// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2411struct anonymous 2412{ 2413 union { 2414 struct { int i; int j; }; 2415 struct { int k; long int l; } w; 2416 }; 2417 int m; 2418} v1; 2419' 2420 2421# Test code for whether the C compiler supports C11 (body of main). 2422ac_c_conftest_c11_main=' 2423 _Static_assert ((offsetof (struct anonymous, i) 2424 == offsetof (struct anonymous, w.k)), 2425 "Anonymous union alignment botch"); 2426 v1.i = 2; 2427 v1.w.k = 5; 2428 ok |= v1.i != 5; 2429' 2430 2431# Test code for whether the C compiler supports C11 (complete). 2432ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2433${ac_c_conftest_c99_globals} 2434${ac_c_conftest_c11_globals} 2435 2436int 2437main (int argc, char **argv) 2438{ 2439 int ok = 0; 2440 ${ac_c_conftest_c89_main} 2441 ${ac_c_conftest_c99_main} 2442 ${ac_c_conftest_c11_main} 2443 return ok; 2444} 2445" 2446 2447# Test code for whether the C compiler supports C99 (complete). 2448ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2449${ac_c_conftest_c99_globals} 2450 2451int 2452main (int argc, char **argv) 2453{ 2454 int ok = 0; 2455 ${ac_c_conftest_c89_main} 2456 ${ac_c_conftest_c99_main} 2457 return ok; 2458} 2459" 2460 2461# Test code for whether the C compiler supports C89 (complete). 2462ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2463 2464int 2465main (int argc, char **argv) 2466{ 2467 int ok = 0; 2468 ${ac_c_conftest_c89_main} 2469 return ok; 2470} 2471" 2472 2473as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2474as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2475as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2476as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2477as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2478as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2479as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2480as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2481as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2482 2483# Auxiliary files required by this configure script. 2484ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2485 2486# Locations in which to look for auxiliary files. 2487ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2488 2489# Search for a directory containing all of the required auxiliary files, 2490# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2491# If we don't find one directory that contains all the files we need, 2492# we report the set of missing files from the *first* directory in 2493# $ac_aux_dir_candidates and give up. 2494ac_missing_aux_files="" 2495ac_first_candidate=: 2496printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2498as_found=false 2499for as_dir in $ac_aux_dir_candidates 2500do 2501 IFS=$as_save_IFS 2502 case $as_dir in #((( 2503 '') as_dir=./ ;; 2504 */) ;; 2505 *) as_dir=$as_dir/ ;; 2506 esac 2507 as_found=: 2508 2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2510 ac_aux_dir_found=yes 2511 ac_install_sh= 2512 for ac_aux in $ac_aux_files 2513 do 2514 # As a special case, if "install-sh" is required, that requirement 2515 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2516 # and $ac_install_sh is set appropriately for whichever one is found. 2517 if test x"$ac_aux" = x"install-sh" 2518 then 2519 if test -f "${as_dir}install-sh"; then 2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2521 ac_install_sh="${as_dir}install-sh -c" 2522 elif test -f "${as_dir}install.sh"; then 2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2524 ac_install_sh="${as_dir}install.sh -c" 2525 elif test -f "${as_dir}shtool"; then 2526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2527 ac_install_sh="${as_dir}shtool install -c" 2528 else 2529 ac_aux_dir_found=no 2530 if $ac_first_candidate; then 2531 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2532 else 2533 break 2534 fi 2535 fi 2536 else 2537 if test -f "${as_dir}${ac_aux}"; then 2538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2539 else 2540 ac_aux_dir_found=no 2541 if $ac_first_candidate; then 2542 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2543 else 2544 break 2545 fi 2546 fi 2547 fi 2548 done 2549 if test "$ac_aux_dir_found" = yes; then 2550 ac_aux_dir="$as_dir" 2551 break 2552 fi 2553 ac_first_candidate=false 2554 2555 as_found=false 2556done 2557IFS=$as_save_IFS 2558if $as_found 2559then : 2560 2561else case e in #( 2562 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2563esac 2564fi 2565 2566 2567# These three variables are undocumented and unsupported, 2568# and are intended to be withdrawn in a future Autoconf release. 2569# They can cause serious problems if a builder's source tree is in a directory 2570# whose full name contains unusual characters. 2571if test -f "${ac_aux_dir}config.guess"; then 2572 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2573fi 2574if test -f "${ac_aux_dir}config.sub"; then 2575 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2576fi 2577if test -f "$ac_aux_dir/configure"; then 2578 ac_configure="$SHELL ${ac_aux_dir}configure" 2579fi 2580 2581# Check that the precious variables saved in the cache have kept the same 2582# value. 2583ac_cache_corrupted=false 2584for ac_var in $ac_precious_vars; do 2585 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2586 eval ac_new_set=\$ac_env_${ac_var}_set 2587 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2588 eval ac_new_val=\$ac_env_${ac_var}_value 2589 case $ac_old_set,$ac_new_set in 2590 set,) 2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2592printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2593 ac_cache_corrupted=: ;; 2594 ,set) 2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2596printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2597 ac_cache_corrupted=: ;; 2598 ,);; 2599 *) 2600 if test "x$ac_old_val" != "x$ac_new_val"; then 2601 # differences in whitespace do not lead to failure. 2602 ac_old_val_w=`echo x $ac_old_val` 2603 ac_new_val_w=`echo x $ac_new_val` 2604 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2606printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2607 ac_cache_corrupted=: 2608 else 2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2610printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2611 eval $ac_var=\$ac_old_val 2612 fi 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2614printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2616printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2617 fi;; 2618 esac 2619 # Pass precious variables to config.status. 2620 if test "$ac_new_set" = set; then 2621 case $ac_new_val in 2622 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2623 *) ac_arg=$ac_var=$ac_new_val ;; 2624 esac 2625 case " $ac_configure_args " in 2626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2627 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2628 esac 2629 fi 2630done 2631if $ac_cache_corrupted; then 2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2633printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2635printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2636 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2637 and start over" "$LINENO" 5 2638fi 2639## -------------------- ## 2640## Main body of script. ## 2641## -------------------- ## 2642 2643ac_ext=c 2644ac_cpp='$CPP $CPPFLAGS' 2645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2647ac_compiler_gnu=$ac_cv_c_compiler_gnu 2648 2649 2650 2651ac_config_headers="$ac_config_headers config.h" 2652 2653 2654 2655# Initialize Automake 2656am__api_version='1.17' 2657 2658 2659 2660 # Find a good install program. We prefer a C program (faster), 2661# so one script is as good as another. But avoid the broken or 2662# incompatible versions: 2663# SysV /etc/install, /usr/sbin/install 2664# SunOS /usr/etc/install 2665# IRIX /sbin/install 2666# AIX /bin/install 2667# AmigaOS /C/install, which installs bootblocks on floppy discs 2668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2669# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2671# OS/2's system install, which has a completely different semantic 2672# ./install, which can be erroneously created by make from ./install.sh. 2673# Reject install programs that cannot install multiple files. 2674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2675printf %s "checking for a BSD-compatible install... " >&6; } 2676if test -z "$INSTALL"; then 2677if test ${ac_cv_path_install+y} 2678then : 2679 printf %s "(cached) " >&6 2680else case e in #( 2681 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2682for as_dir in $PATH 2683do 2684 IFS=$as_save_IFS 2685 case $as_dir in #((( 2686 '') as_dir=./ ;; 2687 */) ;; 2688 *) as_dir=$as_dir/ ;; 2689 esac 2690 # Account for fact that we put trailing slashes in our PATH walk. 2691case $as_dir in #(( 2692 ./ | /[cC]/* | \ 2693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2694 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2695 /usr/ucb/* ) ;; 2696 *) 2697 # OSF1 and SCO ODT 3.0 have their own names for install. 2698 # Don't use installbsd from OSF since it installs stuff as root 2699 # by default. 2700 for ac_prog in ginstall scoinst install; do 2701 for ac_exec_ext in '' $ac_executable_extensions; do 2702 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2703 if test $ac_prog = install && 2704 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2705 # AIX install. It has an incompatible calling convention. 2706 : 2707 elif test $ac_prog = install && 2708 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2709 # program-specific install script used by HP pwplus--don't use. 2710 : 2711 else 2712 rm -rf conftest.one conftest.two conftest.dir 2713 echo one > conftest.one 2714 echo two > conftest.two 2715 mkdir conftest.dir 2716 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2717 test -s conftest.one && test -s conftest.two && 2718 test -s conftest.dir/conftest.one && 2719 test -s conftest.dir/conftest.two 2720 then 2721 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2722 break 3 2723 fi 2724 fi 2725 fi 2726 done 2727 done 2728 ;; 2729esac 2730 2731 done 2732IFS=$as_save_IFS 2733 2734rm -rf conftest.one conftest.two conftest.dir 2735 ;; 2736esac 2737fi 2738 if test ${ac_cv_path_install+y}; then 2739 INSTALL=$ac_cv_path_install 2740 else 2741 # As a last resort, use the slow shell script. Don't cache a 2742 # value for INSTALL within a source directory, because that will 2743 # break other packages using the cache if that directory is 2744 # removed, or if the value is a relative name. 2745 INSTALL=$ac_install_sh 2746 fi 2747fi 2748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2749printf "%s\n" "$INSTALL" >&6; } 2750 2751# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2752# It thinks the first close brace ends the variable substitution. 2753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2754 2755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2756 2757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2758 2759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2760printf %s "checking whether sleep supports fractional seconds... " >&6; } 2761if test ${am_cv_sleep_fractional_seconds+y} 2762then : 2763 printf %s "(cached) " >&6 2764else case e in #( 2765 e) if sleep 0.001 2>/dev/null 2766then : 2767 am_cv_sleep_fractional_seconds=yes 2768else case e in #( 2769 e) am_cv_sleep_fractional_seconds=no ;; 2770esac 2771fi 2772 ;; 2773esac 2774fi 2775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2776printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2777 2778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2779printf %s "checking filesystem timestamp resolution... " >&6; } 2780if test ${am_cv_filesystem_timestamp_resolution+y} 2781then : 2782 printf %s "(cached) " >&6 2783else case e in #( 2784 e) # Default to the worst case. 2785am_cv_filesystem_timestamp_resolution=2 2786 2787# Only try to go finer than 1 sec if sleep can do it. 2788# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2789# - 1 sec is not much of a win compared to 2 sec, and 2790# - it takes 2 seconds to perform the test whether 1 sec works. 2791# 2792# Instead, just use the default 2s on platforms that have 1s resolution, 2793# accept the extra 1s delay when using $sleep in the Automake tests, in 2794# exchange for not incurring the 2s delay for running the test for all 2795# packages. 2796# 2797am_try_resolutions= 2798if test "$am_cv_sleep_fractional_seconds" = yes; then 2799 # Even a millisecond often causes a bunch of false positives, 2800 # so just try a hundredth of a second. The time saved between .001 and 2801 # .01 is not terribly consequential. 2802 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2803fi 2804 2805# In order to catch current-generation FAT out, we must *modify* files 2806# that already exist; the *creation* timestamp is finer. Use names 2807# that make ls -t sort them differently when they have equal 2808# timestamps than when they have distinct timestamps, keeping 2809# in mind that ls -t prints the *newest* file first. 2810rm -f conftest.ts? 2811: > conftest.ts1 2812: > conftest.ts2 2813: > conftest.ts3 2814 2815# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2816# clobber the current shell's arguments. (Outer-level square brackets 2817# are removed by m4; they're present so that m4 does not expand 2818# <dollar><star>; be careful, easy to get confused.) 2819if ( 2820 set X `ls -t conftest.ts[12]` && 2821 { 2822 test "$*" != "X conftest.ts1 conftest.ts2" || 2823 test "$*" != "X conftest.ts2 conftest.ts1"; 2824 } 2825); then :; else 2826 # If neither matched, then we have a broken ls. This can happen 2827 # if, for instance, CONFIG_SHELL is bash and it inherits a 2828 # broken ls alias from the environment. This has actually 2829 # happened. Such a system could not be considered "sane". 2830 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2832printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2833as_fn_error $? "ls -t produces unexpected output. 2834Make sure there is not a broken ls alias in your environment. 2835See 'config.log' for more details" "$LINENO" 5; } 2836fi 2837 2838for am_try_res in $am_try_resolutions; do 2839 # Any one fine-grained sleep might happen to cross the boundary 2840 # between two values of a coarser actual resolution, but if we do 2841 # two fine-grained sleeps in a row, at least one of them will fall 2842 # entirely within a coarse interval. 2843 echo alpha > conftest.ts1 2844 sleep $am_try_res 2845 echo beta > conftest.ts2 2846 sleep $am_try_res 2847 echo gamma > conftest.ts3 2848 2849 # We assume that 'ls -t' will make use of high-resolution 2850 # timestamps if the operating system supports them at all. 2851 if (set X `ls -t conftest.ts?` && 2852 test "$2" = conftest.ts3 && 2853 test "$3" = conftest.ts2 && 2854 test "$4" = conftest.ts1); then 2855 # 2856 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2857 # because we don't need to test make. 2858 make_ok=true 2859 if test $am_try_res != 1; then 2860 # But if we've succeeded so far with a subsecond resolution, we 2861 # have one more thing to check: make. It can happen that 2862 # everything else supports the subsecond mtimes, but make doesn't; 2863 # notably on macOS, which ships make 3.81 from 2006 (the last one 2864 # released under GPLv2). https://bugs.gnu.org/68808 2865 # 2866 # We test $MAKE if it is defined in the environment, else "make". 2867 # It might get overridden later, but our hope is that in practice 2868 # it does not matter: it is the system "make" which is (by far) 2869 # the most likely to be broken, whereas if the user overrides it, 2870 # probably they did so with a better, or at least not worse, make. 2871 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2872 # 2873 # Create a Makefile (real tab character here): 2874 rm -f conftest.mk 2875 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2876 echo ' touch conftest.ts2' >>conftest.mk 2877 # 2878 # Now, running 2879 # touch conftest.ts1; touch conftest.ts2; make 2880 # should touch ts1 because ts2 is newer. This could happen by luck, 2881 # but most often, it will fail if make's support is insufficient. So 2882 # test for several consecutive successes. 2883 # 2884 # (We reuse conftest.ts[12] because we still want to modify existing 2885 # files, not create new ones, per above.) 2886 n=0 2887 make=${MAKE-make} 2888 until test $n -eq 3; do 2889 echo one > conftest.ts1 2890 sleep $am_try_res 2891 echo two > conftest.ts2 # ts2 should now be newer than ts1 2892 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2893 make_ok=false 2894 break # out of $n loop 2895 fi 2896 n=`expr $n + 1` 2897 done 2898 fi 2899 # 2900 if $make_ok; then 2901 # Everything we know to check worked out, so call this resolution good. 2902 am_cv_filesystem_timestamp_resolution=$am_try_res 2903 break # out of $am_try_res loop 2904 fi 2905 # Otherwise, we'll go on to check the next resolution. 2906 fi 2907done 2908rm -f conftest.ts? 2909# (end _am_filesystem_timestamp_resolution) 2910 ;; 2911esac 2912fi 2913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2914printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2915 2916# This check should not be cached, as it may vary across builds of 2917# different projects. 2918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2919printf %s "checking whether build environment is sane... " >&6; } 2920# Reject unsafe characters in $srcdir or the absolute working directory 2921# name. Accept space and tab only in the latter. 2922am_lf=' 2923' 2924case `pwd` in 2925 *[\\\"\#\$\&\'\`$am_lf]*) 2926 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2927esac 2928case $srcdir in 2929 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2930 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2931esac 2932 2933# Do 'set' in a subshell so we don't clobber the current shell's 2934# arguments. Must try -L first in case configure is actually a 2935# symlink; some systems play weird games with the mod time of symlinks 2936# (eg FreeBSD returns the mod time of the symlink's containing 2937# directory). 2938am_build_env_is_sane=no 2939am_has_slept=no 2940rm -f conftest.file 2941for am_try in 1 2; do 2942 echo "timestamp, slept: $am_has_slept" > conftest.file 2943 if ( 2944 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2945 if test "$*" = "X"; then 2946 # -L didn't work. 2947 set X `ls -t "$srcdir/configure" conftest.file` 2948 fi 2949 test "$2" = conftest.file 2950 ); then 2951 am_build_env_is_sane=yes 2952 break 2953 fi 2954 # Just in case. 2955 sleep "$am_cv_filesystem_timestamp_resolution" 2956 am_has_slept=yes 2957done 2958 2959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2960printf "%s\n" "$am_build_env_is_sane" >&6; } 2961if test "$am_build_env_is_sane" = no; then 2962 as_fn_error $? "newly created file is older than distributed files! 2963Check your system clock" "$LINENO" 5 2964fi 2965 2966# If we didn't sleep, we still need to ensure time stamps of config.status and 2967# generated files are strictly newer. 2968am_sleep_pid= 2969if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2970then : 2971 2972else case e in #( 2973 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2974 am_sleep_pid=$! 2975 ;; 2976esac 2977fi 2978 2979rm -f conftest.file 2980 2981test "$program_prefix" != NONE && 2982 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2983# Use a double $ so make ignores it. 2984test "$program_suffix" != NONE && 2985 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2986# Double any \ or $. 2987# By default was 's,x,x', remove it if useless. 2988ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2989program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2990 2991 2992# Expand $ac_aux_dir to an absolute path. 2993am_aux_dir=`cd "$ac_aux_dir" && pwd` 2994 2995 2996 if test x"${MISSING+set}" != xset; then 2997 MISSING="\${SHELL} '$am_aux_dir/missing'" 2998fi 2999# Use eval to expand $SHELL 3000if eval "$MISSING --is-lightweight"; then 3001 am_missing_run="$MISSING " 3002else 3003 am_missing_run= 3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3005printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3006fi 3007 3008if test x"${install_sh+set}" != xset; then 3009 case $am_aux_dir in 3010 *\ * | *\ *) 3011 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3012 *) 3013 install_sh="\${SHELL} $am_aux_dir/install-sh" 3014 esac 3015fi 3016 3017# Installed binaries are usually stripped using 'strip' when the user 3018# run "make install-strip". However 'strip' might not be the right 3019# tool to use in cross-compilation environments, therefore Automake 3020# will honor the 'STRIP' environment variable to overrule this program. 3021if test "$cross_compiling" != no; then 3022 if test -n "$ac_tool_prefix"; then 3023 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3024set dummy ${ac_tool_prefix}strip; ac_word=$2 3025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3026printf %s "checking for $ac_word... " >&6; } 3027if test ${ac_cv_prog_STRIP+y} 3028then : 3029 printf %s "(cached) " >&6 3030else case e in #( 3031 e) if test -n "$STRIP"; then 3032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3033else 3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3035for as_dir in $PATH 3036do 3037 IFS=$as_save_IFS 3038 case $as_dir in #((( 3039 '') as_dir=./ ;; 3040 */) ;; 3041 *) as_dir=$as_dir/ ;; 3042 esac 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3045 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi ;; 3054esac 3055fi 3056STRIP=$ac_cv_prog_STRIP 3057if test -n "$STRIP"; then 3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3059printf "%s\n" "$STRIP" >&6; } 3060else 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062printf "%s\n" "no" >&6; } 3063fi 3064 3065 3066fi 3067if test -z "$ac_cv_prog_STRIP"; then 3068 ac_ct_STRIP=$STRIP 3069 # Extract the first word of "strip", so it can be a program name with args. 3070set dummy strip; ac_word=$2 3071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072printf %s "checking for $ac_word... " >&6; } 3073if test ${ac_cv_prog_ac_ct_STRIP+y} 3074then : 3075 printf %s "(cached) " >&6 3076else case e in #( 3077 e) if test -n "$ac_ct_STRIP"; then 3078 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3079else 3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3081for as_dir in $PATH 3082do 3083 IFS=$as_save_IFS 3084 case $as_dir in #((( 3085 '') as_dir=./ ;; 3086 */) ;; 3087 *) as_dir=$as_dir/ ;; 3088 esac 3089 for ac_exec_ext in '' $ac_executable_extensions; do 3090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3091 ac_cv_prog_ac_ct_STRIP="strip" 3092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3093 break 2 3094 fi 3095done 3096 done 3097IFS=$as_save_IFS 3098 3099fi ;; 3100esac 3101fi 3102ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3103if test -n "$ac_ct_STRIP"; then 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3105printf "%s\n" "$ac_ct_STRIP" >&6; } 3106else 3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3108printf "%s\n" "no" >&6; } 3109fi 3110 3111 if test "x$ac_ct_STRIP" = x; then 3112 STRIP=":" 3113 else 3114 case $cross_compiling:$ac_tool_warned in 3115yes:) 3116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3117printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3118ac_tool_warned=yes ;; 3119esac 3120 STRIP=$ac_ct_STRIP 3121 fi 3122else 3123 STRIP="$ac_cv_prog_STRIP" 3124fi 3125 3126fi 3127INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3128 3129 3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3131printf %s "checking for a race-free mkdir -p... " >&6; } 3132if test -z "$MKDIR_P"; then 3133 if test ${ac_cv_path_mkdir+y} 3134then : 3135 printf %s "(cached) " >&6 3136else case e in #( 3137 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3139do 3140 IFS=$as_save_IFS 3141 case $as_dir in #((( 3142 '') as_dir=./ ;; 3143 */) ;; 3144 *) as_dir=$as_dir/ ;; 3145 esac 3146 for ac_prog in mkdir gmkdir; do 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3149 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3150 'mkdir ('*'coreutils) '* | \ 3151 *'BusyBox '* | \ 3152 'mkdir (fileutils) '4.1*) 3153 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3154 break 3;; 3155 esac 3156 done 3157 done 3158 done 3159IFS=$as_save_IFS 3160 ;; 3161esac 3162fi 3163 3164 test -d ./--version && rmdir ./--version 3165 if test ${ac_cv_path_mkdir+y}; then 3166 MKDIR_P="$ac_cv_path_mkdir -p" 3167 else 3168 # As a last resort, use plain mkdir -p, 3169 # in the hope it doesn't have the bugs of ancient mkdir. 3170 MKDIR_P='mkdir -p' 3171 fi 3172fi 3173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3174printf "%s\n" "$MKDIR_P" >&6; } 3175 3176for ac_prog in gawk mawk nawk awk 3177do 3178 # Extract the first word of "$ac_prog", so it can be a program name with args. 3179set dummy $ac_prog; ac_word=$2 3180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3181printf %s "checking for $ac_word... " >&6; } 3182if test ${ac_cv_prog_AWK+y} 3183then : 3184 printf %s "(cached) " >&6 3185else case e in #( 3186 e) if test -n "$AWK"; then 3187 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3188else 3189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3190for as_dir in $PATH 3191do 3192 IFS=$as_save_IFS 3193 case $as_dir in #((( 3194 '') as_dir=./ ;; 3195 */) ;; 3196 *) as_dir=$as_dir/ ;; 3197 esac 3198 for ac_exec_ext in '' $ac_executable_extensions; do 3199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3200 ac_cv_prog_AWK="$ac_prog" 3201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3202 break 2 3203 fi 3204done 3205 done 3206IFS=$as_save_IFS 3207 3208fi ;; 3209esac 3210fi 3211AWK=$ac_cv_prog_AWK 3212if test -n "$AWK"; then 3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3214printf "%s\n" "$AWK" >&6; } 3215else 3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3217printf "%s\n" "no" >&6; } 3218fi 3219 3220 3221 test -n "$AWK" && break 3222done 3223 3224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3225printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3226set x ${MAKE-make} 3227ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3228if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3229then : 3230 printf %s "(cached) " >&6 3231else case e in #( 3232 e) cat >conftest.make <<\_ACEOF 3233SHELL = /bin/sh 3234all: 3235 @echo '@@@%%%=$(MAKE)=@@@%%%' 3236_ACEOF 3237# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3238case `${MAKE-make} -f conftest.make 2>/dev/null` in 3239 *@@@%%%=?*=@@@%%%*) 3240 eval ac_cv_prog_make_${ac_make}_set=yes;; 3241 *) 3242 eval ac_cv_prog_make_${ac_make}_set=no;; 3243esac 3244rm -f conftest.make ;; 3245esac 3246fi 3247if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3249printf "%s\n" "yes" >&6; } 3250 SET_MAKE= 3251else 3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3253printf "%s\n" "no" >&6; } 3254 SET_MAKE="MAKE=${MAKE-make}" 3255fi 3256 3257rm -rf .tst 2>/dev/null 3258mkdir .tst 2>/dev/null 3259if test -d .tst; then 3260 am__leading_dot=. 3261else 3262 am__leading_dot=_ 3263fi 3264rmdir .tst 2>/dev/null 3265 3266AM_DEFAULT_VERBOSITY=1 3267# Check whether --enable-silent-rules was given. 3268if test ${enable_silent_rules+y} 3269then : 3270 enableval=$enable_silent_rules; 3271fi 3272 3273am_make=${MAKE-make} 3274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3275printf %s "checking whether $am_make supports nested variables... " >&6; } 3276if test ${am_cv_make_support_nested_variables+y} 3277then : 3278 printf %s "(cached) " >&6 3279else case e in #( 3280 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3281BAR0=false 3282BAR1=true 3283V=1 3284am__doit: 3285 @$(TRUE) 3286.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3287 am_cv_make_support_nested_variables=yes 3288else 3289 am_cv_make_support_nested_variables=no 3290fi ;; 3291esac 3292fi 3293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3294printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3295AM_BACKSLASH='\' 3296 3297am__rm_f_notfound= 3298if (rm -f && rm -fr && rm -rf) 2>/dev/null 3299then : 3300 3301else case e in #( 3302 e) am__rm_f_notfound='""' ;; 3303esac 3304fi 3305 3306 3307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3308printf %s "checking xargs -n works... " >&6; } 3309if test ${am_cv_xargs_n_works+y} 3310then : 3311 printf %s "(cached) " >&6 3312else case e in #( 3313 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 33143" 3315then : 3316 am_cv_xargs_n_works=yes 3317else case e in #( 3318 e) am_cv_xargs_n_works=no ;; 3319esac 3320fi ;; 3321esac 3322fi 3323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3324printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3325if test "$am_cv_xargs_n_works" = yes 3326then : 3327 am__xargs_n='xargs -n' 3328else case e in #( 3329 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3330 ;; 3331esac 3332fi 3333 3334if test "`cd $srcdir && pwd`" != "`pwd`"; then 3335 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3336 # is not polluted with repeated "-I." 3337 am__isrc=' -I$(srcdir)' 3338 # test to see if srcdir already configured 3339 if test -f $srcdir/config.status; then 3340 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3341 fi 3342fi 3343 3344# test whether we have cygpath 3345if test -z "$CYGPATH_W"; then 3346 if (cygpath --version) >/dev/null 2>/dev/null; then 3347 CYGPATH_W='cygpath -w' 3348 else 3349 CYGPATH_W=echo 3350 fi 3351fi 3352 3353 3354# Define the identity of the package. 3355 PACKAGE='libXv' 3356 VERSION='1.0.13' 3357 3358 3359printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3360 3361 3362printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3363 3364# Some tools Automake needs. 3365 3366ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3367 3368 3369AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3370 3371 3372AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3373 3374 3375AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3376 3377 3378MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3379 3380# For better backward compatibility. To be removed once Automake 1.9.x 3381# dies out for good. For more background, see: 3382# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3383# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3384mkdir_p='$(MKDIR_P)' 3385 3386# We need awk for the "check" target (and possibly the TAP driver). The 3387# system "awk" is bad on some platforms. 3388# Always define AMTAR for backward compatibility. Yes, it's still used 3389# in the wild :-( We should find a proper way to deprecate it ... 3390AMTAR='$${TAR-tar}' 3391 3392 3393# We'll loop over all known methods to create a tar archive until one works. 3394_am_tools='gnutar pax cpio none' 3395 3396am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3397 3398 3399 3400 3401 3402# Variables for tags utilities; see am/tags.am 3403if test -z "$CTAGS"; then 3404 CTAGS=ctags 3405fi 3406 3407if test -z "$ETAGS"; then 3408 ETAGS=etags 3409fi 3410 3411if test -z "$CSCOPE"; then 3412 CSCOPE=cscope 3413fi 3414 3415 3416 3417 3418 3419 3420 3421 3422# Initialize libtool 3423case `pwd` in 3424 *\ * | *\ *) 3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3426printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3427esac 3428 3429 3430 3431macro_version='2.5.4' 3432macro_revision='2.5.4' 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447ltmain=$ac_aux_dir/ltmain.sh 3448 3449 3450 3451 # Make sure we can run config.sub. 3452$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3453 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3454 3455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3456printf %s "checking build system type... " >&6; } 3457if test ${ac_cv_build+y} 3458then : 3459 printf %s "(cached) " >&6 3460else case e in #( 3461 e) ac_build_alias=$build_alias 3462test "x$ac_build_alias" = x && 3463 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3464test "x$ac_build_alias" = x && 3465 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3466ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3467 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3468 ;; 3469esac 3470fi 3471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3472printf "%s\n" "$ac_cv_build" >&6; } 3473case $ac_cv_build in 3474*-*-*) ;; 3475*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3476esac 3477build=$ac_cv_build 3478ac_save_IFS=$IFS; IFS='-' 3479set x $ac_cv_build 3480shift 3481build_cpu=$1 3482build_vendor=$2 3483shift; shift 3484# Remember, the first character of IFS is used to create $*, 3485# except with old shells: 3486build_os=$* 3487IFS=$ac_save_IFS 3488case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3489 3490 3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3492printf %s "checking host system type... " >&6; } 3493if test ${ac_cv_host+y} 3494then : 3495 printf %s "(cached) " >&6 3496else case e in #( 3497 e) if test "x$host_alias" = x; then 3498 ac_cv_host=$ac_cv_build 3499else 3500 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3501 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3502fi 3503 ;; 3504esac 3505fi 3506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3507printf "%s\n" "$ac_cv_host" >&6; } 3508case $ac_cv_host in 3509*-*-*) ;; 3510*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3511esac 3512host=$ac_cv_host 3513ac_save_IFS=$IFS; IFS='-' 3514set x $ac_cv_host 3515shift 3516host_cpu=$1 3517host_vendor=$2 3518shift; shift 3519# Remember, the first character of IFS is used to create $*, 3520# except with old shells: 3521host_os=$* 3522IFS=$ac_save_IFS 3523case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3524 3525 3526# Backslashify metacharacters that are still active within 3527# double-quoted strings. 3528sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3529 3530# Same as above, but do not quote variable references. 3531double_quote_subst='s/\(["`\\]\)/\\\1/g' 3532 3533# Sed substitution to delay expansion of an escaped shell variable in a 3534# double_quote_subst'ed string. 3535delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3536 3537# Sed substitution to delay expansion of an escaped single quote. 3538delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3539 3540# Sed substitution to avoid accidental globbing in evaled expressions 3541no_glob_subst='s/\*/\\\*/g' 3542 3543ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3544ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3545ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3546 3547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3548printf %s "checking how to print strings... " >&6; } 3549# Test print first, because it will be a builtin if present. 3550if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3551 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3552 ECHO='print -r --' 3553elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3554 ECHO='printf %s\n' 3555else 3556 # Use this function as a fallback that always works. 3557 func_fallback_echo () 3558 { 3559 eval 'cat <<_LTECHO_EOF 3560$1 3561_LTECHO_EOF' 3562 } 3563 ECHO='func_fallback_echo' 3564fi 3565 3566# func_echo_all arg... 3567# Invoke $ECHO with all args, space-separated. 3568func_echo_all () 3569{ 3570 $ECHO "" 3571} 3572 3573case $ECHO in 3574 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3575printf "%s\n" "printf" >&6; } ;; 3576 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3577printf "%s\n" "print -r" >&6; } ;; 3578 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3579printf "%s\n" "cat" >&6; } ;; 3580esac 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604DEPDIR="${am__leading_dot}deps" 3605 3606ac_config_commands="$ac_config_commands depfiles" 3607 3608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3609printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3610cat > confinc.mk << 'END' 3611am__doit: 3612 @echo this is the am__doit target >confinc.out 3613.PHONY: am__doit 3614END 3615am__include="#" 3616am__quote= 3617# BSD make does it like this. 3618echo '.include "confinc.mk" # ignored' > confmf.BSD 3619# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3620echo 'include confinc.mk # ignored' > confmf.GNU 3621_am_result=no 3622for s in GNU BSD; do 3623 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3624 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3625 ac_status=$? 3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3627 (exit $ac_status); } 3628 case $?:`cat confinc.out 2>/dev/null` in #( 3629 '0:this is the am__doit target') : 3630 case $s in #( 3631 BSD) : 3632 am__include='.include' am__quote='"' ;; #( 3633 *) : 3634 am__include='include' am__quote='' ;; 3635esac ;; #( 3636 *) : 3637 ;; 3638esac 3639 if test "$am__include" != "#"; then 3640 _am_result="yes ($s style)" 3641 break 3642 fi 3643done 3644rm -f confinc.* confmf.* 3645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3646printf "%s\n" "${_am_result}" >&6; } 3647 3648# Check whether --enable-dependency-tracking was given. 3649if test ${enable_dependency_tracking+y} 3650then : 3651 enableval=$enable_dependency_tracking; 3652fi 3653 3654if test "x$enable_dependency_tracking" != xno; then 3655 am_depcomp="$ac_aux_dir/depcomp" 3656 AMDEPBACKSLASH='\' 3657 am__nodep='_no' 3658fi 3659 if test "x$enable_dependency_tracking" != xno; then 3660 AMDEP_TRUE= 3661 AMDEP_FALSE='#' 3662else 3663 AMDEP_TRUE='#' 3664 AMDEP_FALSE= 3665fi 3666 3667 3668ac_ext=c 3669ac_cpp='$CPP $CPPFLAGS' 3670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3672ac_compiler_gnu=$ac_cv_c_compiler_gnu 3673if test -n "$ac_tool_prefix"; then 3674 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3675set dummy ${ac_tool_prefix}gcc; ac_word=$2 3676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3677printf %s "checking for $ac_word... " >&6; } 3678if test ${ac_cv_prog_CC+y} 3679then : 3680 printf %s "(cached) " >&6 3681else case e in #( 3682 e) if test -n "$CC"; then 3683 ac_cv_prog_CC="$CC" # Let the user override the test. 3684else 3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3686for as_dir in $PATH 3687do 3688 IFS=$as_save_IFS 3689 case $as_dir in #((( 3690 '') as_dir=./ ;; 3691 */) ;; 3692 *) as_dir=$as_dir/ ;; 3693 esac 3694 for ac_exec_ext in '' $ac_executable_extensions; do 3695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3696 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3698 break 2 3699 fi 3700done 3701 done 3702IFS=$as_save_IFS 3703 3704fi ;; 3705esac 3706fi 3707CC=$ac_cv_prog_CC 3708if test -n "$CC"; then 3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3710printf "%s\n" "$CC" >&6; } 3711else 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3713printf "%s\n" "no" >&6; } 3714fi 3715 3716 3717fi 3718if test -z "$ac_cv_prog_CC"; then 3719 ac_ct_CC=$CC 3720 # Extract the first word of "gcc", so it can be a program name with args. 3721set dummy gcc; ac_word=$2 3722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3723printf %s "checking for $ac_word... " >&6; } 3724if test ${ac_cv_prog_ac_ct_CC+y} 3725then : 3726 printf %s "(cached) " >&6 3727else case e in #( 3728 e) if test -n "$ac_ct_CC"; then 3729 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3730else 3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732for as_dir in $PATH 3733do 3734 IFS=$as_save_IFS 3735 case $as_dir in #((( 3736 '') as_dir=./ ;; 3737 */) ;; 3738 *) as_dir=$as_dir/ ;; 3739 esac 3740 for ac_exec_ext in '' $ac_executable_extensions; do 3741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3742 ac_cv_prog_ac_ct_CC="gcc" 3743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3744 break 2 3745 fi 3746done 3747 done 3748IFS=$as_save_IFS 3749 3750fi ;; 3751esac 3752fi 3753ac_ct_CC=$ac_cv_prog_ac_ct_CC 3754if test -n "$ac_ct_CC"; then 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3756printf "%s\n" "$ac_ct_CC" >&6; } 3757else 3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3759printf "%s\n" "no" >&6; } 3760fi 3761 3762 if test "x$ac_ct_CC" = x; then 3763 CC="" 3764 else 3765 case $cross_compiling:$ac_tool_warned in 3766yes:) 3767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3768printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3769ac_tool_warned=yes ;; 3770esac 3771 CC=$ac_ct_CC 3772 fi 3773else 3774 CC="$ac_cv_prog_CC" 3775fi 3776 3777if test -z "$CC"; then 3778 if test -n "$ac_tool_prefix"; then 3779 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3780set dummy ${ac_tool_prefix}cc; ac_word=$2 3781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3782printf %s "checking for $ac_word... " >&6; } 3783if test ${ac_cv_prog_CC+y} 3784then : 3785 printf %s "(cached) " >&6 3786else case e in #( 3787 e) if test -n "$CC"; then 3788 ac_cv_prog_CC="$CC" # Let the user override the test. 3789else 3790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3791for as_dir in $PATH 3792do 3793 IFS=$as_save_IFS 3794 case $as_dir in #((( 3795 '') as_dir=./ ;; 3796 */) ;; 3797 *) as_dir=$as_dir/ ;; 3798 esac 3799 for ac_exec_ext in '' $ac_executable_extensions; do 3800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3801 ac_cv_prog_CC="${ac_tool_prefix}cc" 3802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3803 break 2 3804 fi 3805done 3806 done 3807IFS=$as_save_IFS 3808 3809fi ;; 3810esac 3811fi 3812CC=$ac_cv_prog_CC 3813if test -n "$CC"; then 3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3815printf "%s\n" "$CC" >&6; } 3816else 3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3818printf "%s\n" "no" >&6; } 3819fi 3820 3821 3822 fi 3823fi 3824if test -z "$CC"; then 3825 # Extract the first word of "cc", so it can be a program name with args. 3826set dummy cc; ac_word=$2 3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3828printf %s "checking for $ac_word... " >&6; } 3829if test ${ac_cv_prog_CC+y} 3830then : 3831 printf %s "(cached) " >&6 3832else case e in #( 3833 e) if test -n "$CC"; then 3834 ac_cv_prog_CC="$CC" # Let the user override the test. 3835else 3836 ac_prog_rejected=no 3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838for as_dir in $PATH 3839do 3840 IFS=$as_save_IFS 3841 case $as_dir in #((( 3842 '') as_dir=./ ;; 3843 */) ;; 3844 *) as_dir=$as_dir/ ;; 3845 esac 3846 for ac_exec_ext in '' $ac_executable_extensions; do 3847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3848 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3849 ac_prog_rejected=yes 3850 continue 3851 fi 3852 ac_cv_prog_CC="cc" 3853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3854 break 2 3855 fi 3856done 3857 done 3858IFS=$as_save_IFS 3859 3860if test $ac_prog_rejected = yes; then 3861 # We found a bogon in the path, so make sure we never use it. 3862 set dummy $ac_cv_prog_CC 3863 shift 3864 if test $# != 0; then 3865 # We chose a different compiler from the bogus one. 3866 # However, it has the same basename, so the bogon will be chosen 3867 # first if we set CC to just the basename; use the full file name. 3868 shift 3869 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3870 fi 3871fi 3872fi ;; 3873esac 3874fi 3875CC=$ac_cv_prog_CC 3876if test -n "$CC"; then 3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3878printf "%s\n" "$CC" >&6; } 3879else 3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3881printf "%s\n" "no" >&6; } 3882fi 3883 3884 3885fi 3886if test -z "$CC"; then 3887 if test -n "$ac_tool_prefix"; then 3888 for ac_prog in cl.exe 3889 do 3890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3891set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3893printf %s "checking for $ac_word... " >&6; } 3894if test ${ac_cv_prog_CC+y} 3895then : 3896 printf %s "(cached) " >&6 3897else case e in #( 3898 e) if test -n "$CC"; then 3899 ac_cv_prog_CC="$CC" # Let the user override the test. 3900else 3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3902for as_dir in $PATH 3903do 3904 IFS=$as_save_IFS 3905 case $as_dir in #((( 3906 '') as_dir=./ ;; 3907 */) ;; 3908 *) as_dir=$as_dir/ ;; 3909 esac 3910 for ac_exec_ext in '' $ac_executable_extensions; do 3911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3914 break 2 3915 fi 3916done 3917 done 3918IFS=$as_save_IFS 3919 3920fi ;; 3921esac 3922fi 3923CC=$ac_cv_prog_CC 3924if test -n "$CC"; then 3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3926printf "%s\n" "$CC" >&6; } 3927else 3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3929printf "%s\n" "no" >&6; } 3930fi 3931 3932 3933 test -n "$CC" && break 3934 done 3935fi 3936if test -z "$CC"; then 3937 ac_ct_CC=$CC 3938 for ac_prog in cl.exe 3939do 3940 # Extract the first word of "$ac_prog", so it can be a program name with args. 3941set dummy $ac_prog; ac_word=$2 3942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3943printf %s "checking for $ac_word... " >&6; } 3944if test ${ac_cv_prog_ac_ct_CC+y} 3945then : 3946 printf %s "(cached) " >&6 3947else case e in #( 3948 e) if test -n "$ac_ct_CC"; then 3949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3950else 3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3952for as_dir in $PATH 3953do 3954 IFS=$as_save_IFS 3955 case $as_dir in #((( 3956 '') as_dir=./ ;; 3957 */) ;; 3958 *) as_dir=$as_dir/ ;; 3959 esac 3960 for ac_exec_ext in '' $ac_executable_extensions; do 3961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3962 ac_cv_prog_ac_ct_CC="$ac_prog" 3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3964 break 2 3965 fi 3966done 3967 done 3968IFS=$as_save_IFS 3969 3970fi ;; 3971esac 3972fi 3973ac_ct_CC=$ac_cv_prog_ac_ct_CC 3974if test -n "$ac_ct_CC"; then 3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3976printf "%s\n" "$ac_ct_CC" >&6; } 3977else 3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3979printf "%s\n" "no" >&6; } 3980fi 3981 3982 3983 test -n "$ac_ct_CC" && break 3984done 3985 3986 if test "x$ac_ct_CC" = x; then 3987 CC="" 3988 else 3989 case $cross_compiling:$ac_tool_warned in 3990yes:) 3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3992printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3993ac_tool_warned=yes ;; 3994esac 3995 CC=$ac_ct_CC 3996 fi 3997fi 3998 3999fi 4000if test -z "$CC"; then 4001 if test -n "$ac_tool_prefix"; then 4002 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4003set dummy ${ac_tool_prefix}clang; ac_word=$2 4004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4005printf %s "checking for $ac_word... " >&6; } 4006if test ${ac_cv_prog_CC+y} 4007then : 4008 printf %s "(cached) " >&6 4009else case e in #( 4010 e) if test -n "$CC"; then 4011 ac_cv_prog_CC="$CC" # Let the user override the test. 4012else 4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4014for as_dir in $PATH 4015do 4016 IFS=$as_save_IFS 4017 case $as_dir in #((( 4018 '') as_dir=./ ;; 4019 */) ;; 4020 *) as_dir=$as_dir/ ;; 4021 esac 4022 for ac_exec_ext in '' $ac_executable_extensions; do 4023 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4024 ac_cv_prog_CC="${ac_tool_prefix}clang" 4025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4026 break 2 4027 fi 4028done 4029 done 4030IFS=$as_save_IFS 4031 4032fi ;; 4033esac 4034fi 4035CC=$ac_cv_prog_CC 4036if test -n "$CC"; then 4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4038printf "%s\n" "$CC" >&6; } 4039else 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4041printf "%s\n" "no" >&6; } 4042fi 4043 4044 4045fi 4046if test -z "$ac_cv_prog_CC"; then 4047 ac_ct_CC=$CC 4048 # Extract the first word of "clang", so it can be a program name with args. 4049set dummy clang; ac_word=$2 4050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4051printf %s "checking for $ac_word... " >&6; } 4052if test ${ac_cv_prog_ac_ct_CC+y} 4053then : 4054 printf %s "(cached) " >&6 4055else case e in #( 4056 e) if test -n "$ac_ct_CC"; then 4057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4058else 4059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4060for as_dir in $PATH 4061do 4062 IFS=$as_save_IFS 4063 case $as_dir in #((( 4064 '') as_dir=./ ;; 4065 */) ;; 4066 *) as_dir=$as_dir/ ;; 4067 esac 4068 for ac_exec_ext in '' $ac_executable_extensions; do 4069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4070 ac_cv_prog_ac_ct_CC="clang" 4071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4072 break 2 4073 fi 4074done 4075 done 4076IFS=$as_save_IFS 4077 4078fi ;; 4079esac 4080fi 4081ac_ct_CC=$ac_cv_prog_ac_ct_CC 4082if test -n "$ac_ct_CC"; then 4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4084printf "%s\n" "$ac_ct_CC" >&6; } 4085else 4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4087printf "%s\n" "no" >&6; } 4088fi 4089 4090 if test "x$ac_ct_CC" = x; then 4091 CC="" 4092 else 4093 case $cross_compiling:$ac_tool_warned in 4094yes:) 4095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4096printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4097ac_tool_warned=yes ;; 4098esac 4099 CC=$ac_ct_CC 4100 fi 4101else 4102 CC="$ac_cv_prog_CC" 4103fi 4104 4105fi 4106 4107 4108test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4109printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4110as_fn_error $? "no acceptable C compiler found in \$PATH 4111See 'config.log' for more details" "$LINENO" 5; } 4112 4113# Provide some information about the compiler. 4114printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4115set X $ac_compile 4116ac_compiler=$2 4117for ac_option in --version -v -V -qversion -version; do 4118 { { ac_try="$ac_compiler $ac_option >&5" 4119case "(($ac_try" in 4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4121 *) ac_try_echo=$ac_try;; 4122esac 4123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4124printf "%s\n" "$ac_try_echo"; } >&5 4125 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4126 ac_status=$? 4127 if test -s conftest.err; then 4128 sed '10a\ 4129... rest of stderr output deleted ... 4130 10q' conftest.err >conftest.er1 4131 cat conftest.er1 >&5 4132 fi 4133 rm -f conftest.er1 conftest.err 4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4135 test $ac_status = 0; } 4136done 4137 4138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140 4141int 4142main (void) 4143{ 4144 4145 ; 4146 return 0; 4147} 4148_ACEOF 4149ac_clean_files_save=$ac_clean_files 4150ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4151# Try to create an executable without -o first, disregard a.out. 4152# It will help us diagnose broken compilers, and finding out an intuition 4153# of exeext. 4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4155printf %s "checking whether the C compiler works... " >&6; } 4156ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4157 4158# The possible output files: 4159ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4160 4161ac_rmfiles= 4162for ac_file in $ac_files 4163do 4164 case $ac_file in 4165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4166 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4167 esac 4168done 4169rm -f $ac_rmfiles 4170 4171if { { ac_try="$ac_link_default" 4172case "(($ac_try" in 4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4174 *) ac_try_echo=$ac_try;; 4175esac 4176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4177printf "%s\n" "$ac_try_echo"; } >&5 4178 (eval "$ac_link_default") 2>&5 4179 ac_status=$? 4180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4181 test $ac_status = 0; } 4182then : 4183 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4184# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4185# in a Makefile. We should not override ac_cv_exeext if it was cached, 4186# so that the user can short-circuit this test for compilers unknown to 4187# Autoconf. 4188for ac_file in $ac_files '' 4189do 4190 test -f "$ac_file" || continue 4191 case $ac_file in 4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4193 ;; 4194 [ab].out ) 4195 # We found the default executable, but exeext='' is most 4196 # certainly right. 4197 break;; 4198 *.* ) 4199 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4200 then :; else 4201 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4202 fi 4203 # We set ac_cv_exeext here because the later test for it is not 4204 # safe: cross compilers may not add the suffix if given an '-o' 4205 # argument, so we may need to know it at that point already. 4206 # Even if this section looks crufty: it has the advantage of 4207 # actually working. 4208 break;; 4209 * ) 4210 break;; 4211 esac 4212done 4213test "$ac_cv_exeext" = no && ac_cv_exeext= 4214 4215else case e in #( 4216 e) ac_file='' ;; 4217esac 4218fi 4219if test -z "$ac_file" 4220then : 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4222printf "%s\n" "no" >&6; } 4223printf "%s\n" "$as_me: failed program was:" >&5 4224sed 's/^/| /' conftest.$ac_ext >&5 4225 4226{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4227printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4228as_fn_error 77 "C compiler cannot create executables 4229See 'config.log' for more details" "$LINENO" 5; } 4230else case e in #( 4231 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4232printf "%s\n" "yes" >&6; } ;; 4233esac 4234fi 4235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4236printf %s "checking for C compiler default output file name... " >&6; } 4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4238printf "%s\n" "$ac_file" >&6; } 4239ac_exeext=$ac_cv_exeext 4240 4241rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4242ac_clean_files=$ac_clean_files_save 4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4244printf %s "checking for suffix of executables... " >&6; } 4245if { { ac_try="$ac_link" 4246case "(($ac_try" in 4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4248 *) ac_try_echo=$ac_try;; 4249esac 4250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4251printf "%s\n" "$ac_try_echo"; } >&5 4252 (eval "$ac_link") 2>&5 4253 ac_status=$? 4254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4255 test $ac_status = 0; } 4256then : 4257 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4258# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4259# work properly (i.e., refer to 'conftest.exe'), while it won't with 4260# 'rm'. 4261for ac_file in conftest.exe conftest conftest.*; do 4262 test -f "$ac_file" || continue 4263 case $ac_file in 4264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4266 break;; 4267 * ) break;; 4268 esac 4269done 4270else case e in #( 4271 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4272printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4273as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4274See 'config.log' for more details" "$LINENO" 5; } ;; 4275esac 4276fi 4277rm -f conftest conftest$ac_cv_exeext 4278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4279printf "%s\n" "$ac_cv_exeext" >&6; } 4280 4281rm -f conftest.$ac_ext 4282EXEEXT=$ac_cv_exeext 4283ac_exeext=$EXEEXT 4284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4285/* end confdefs.h. */ 4286#include <stdio.h> 4287int 4288main (void) 4289{ 4290FILE *f = fopen ("conftest.out", "w"); 4291 if (!f) 4292 return 1; 4293 return ferror (f) || fclose (f) != 0; 4294 4295 ; 4296 return 0; 4297} 4298_ACEOF 4299ac_clean_files="$ac_clean_files conftest.out" 4300# Check that the compiler produces executables we can run. If not, either 4301# the compiler is broken, or we cross compile. 4302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4303printf %s "checking whether we are cross compiling... " >&6; } 4304if test "$cross_compiling" != yes; then 4305 { { ac_try="$ac_link" 4306case "(($ac_try" in 4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4308 *) ac_try_echo=$ac_try;; 4309esac 4310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4311printf "%s\n" "$ac_try_echo"; } >&5 4312 (eval "$ac_link") 2>&5 4313 ac_status=$? 4314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4315 test $ac_status = 0; } 4316 if { ac_try='./conftest$ac_cv_exeext' 4317 { { case "(($ac_try" in 4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4319 *) ac_try_echo=$ac_try;; 4320esac 4321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4322printf "%s\n" "$ac_try_echo"; } >&5 4323 (eval "$ac_try") 2>&5 4324 ac_status=$? 4325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4326 test $ac_status = 0; }; }; then 4327 cross_compiling=no 4328 else 4329 if test "$cross_compiling" = maybe; then 4330 cross_compiling=yes 4331 else 4332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4333printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4334as_fn_error 77 "cannot run C compiled programs. 4335If you meant to cross compile, use '--host'. 4336See 'config.log' for more details" "$LINENO" 5; } 4337 fi 4338 fi 4339fi 4340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4341printf "%s\n" "$cross_compiling" >&6; } 4342 4343rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4344 conftest.o conftest.obj conftest.out 4345ac_clean_files=$ac_clean_files_save 4346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4347printf %s "checking for suffix of object files... " >&6; } 4348if test ${ac_cv_objext+y} 4349then : 4350 printf %s "(cached) " >&6 4351else case e in #( 4352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4353/* end confdefs.h. */ 4354 4355int 4356main (void) 4357{ 4358 4359 ; 4360 return 0; 4361} 4362_ACEOF 4363rm -f conftest.o conftest.obj 4364if { { ac_try="$ac_compile" 4365case "(($ac_try" in 4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4367 *) ac_try_echo=$ac_try;; 4368esac 4369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4370printf "%s\n" "$ac_try_echo"; } >&5 4371 (eval "$ac_compile") 2>&5 4372 ac_status=$? 4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4374 test $ac_status = 0; } 4375then : 4376 for ac_file in conftest.o conftest.obj conftest.*; do 4377 test -f "$ac_file" || continue; 4378 case $ac_file in 4379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4381 break;; 4382 esac 4383done 4384else case e in #( 4385 e) printf "%s\n" "$as_me: failed program was:" >&5 4386sed 's/^/| /' conftest.$ac_ext >&5 4387 4388{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4389printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4390as_fn_error $? "cannot compute suffix of object files: cannot compile 4391See 'config.log' for more details" "$LINENO" 5; } ;; 4392esac 4393fi 4394rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4395esac 4396fi 4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4398printf "%s\n" "$ac_cv_objext" >&6; } 4399OBJEXT=$ac_cv_objext 4400ac_objext=$OBJEXT 4401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4402printf %s "checking whether the compiler supports GNU C... " >&6; } 4403if test ${ac_cv_c_compiler_gnu+y} 4404then : 4405 printf %s "(cached) " >&6 4406else case e in #( 4407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408/* end confdefs.h. */ 4409 4410int 4411main (void) 4412{ 4413#ifndef __GNUC__ 4414 choke me 4415#endif 4416 4417 ; 4418 return 0; 4419} 4420_ACEOF 4421if ac_fn_c_try_compile "$LINENO" 4422then : 4423 ac_compiler_gnu=yes 4424else case e in #( 4425 e) ac_compiler_gnu=no ;; 4426esac 4427fi 4428rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4429ac_cv_c_compiler_gnu=$ac_compiler_gnu 4430 ;; 4431esac 4432fi 4433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4434printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4435ac_compiler_gnu=$ac_cv_c_compiler_gnu 4436 4437if test $ac_compiler_gnu = yes; then 4438 GCC=yes 4439else 4440 GCC= 4441fi 4442ac_test_CFLAGS=${CFLAGS+y} 4443ac_save_CFLAGS=$CFLAGS 4444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4445printf %s "checking whether $CC accepts -g... " >&6; } 4446if test ${ac_cv_prog_cc_g+y} 4447then : 4448 printf %s "(cached) " >&6 4449else case e in #( 4450 e) ac_save_c_werror_flag=$ac_c_werror_flag 4451 ac_c_werror_flag=yes 4452 ac_cv_prog_cc_g=no 4453 CFLAGS="-g" 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4455/* end confdefs.h. */ 4456 4457int 4458main (void) 4459{ 4460 4461 ; 4462 return 0; 4463} 4464_ACEOF 4465if ac_fn_c_try_compile "$LINENO" 4466then : 4467 ac_cv_prog_cc_g=yes 4468else case e in #( 4469 e) CFLAGS="" 4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4471/* end confdefs.h. */ 4472 4473int 4474main (void) 4475{ 4476 4477 ; 4478 return 0; 4479} 4480_ACEOF 4481if ac_fn_c_try_compile "$LINENO" 4482then : 4483 4484else case e in #( 4485 e) ac_c_werror_flag=$ac_save_c_werror_flag 4486 CFLAGS="-g" 4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4488/* end confdefs.h. */ 4489 4490int 4491main (void) 4492{ 4493 4494 ; 4495 return 0; 4496} 4497_ACEOF 4498if ac_fn_c_try_compile "$LINENO" 4499then : 4500 ac_cv_prog_cc_g=yes 4501fi 4502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4503esac 4504fi 4505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4506esac 4507fi 4508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4509 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4510esac 4511fi 4512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4513printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4514if test $ac_test_CFLAGS; then 4515 CFLAGS=$ac_save_CFLAGS 4516elif test $ac_cv_prog_cc_g = yes; then 4517 if test "$GCC" = yes; then 4518 CFLAGS="-g -O2" 4519 else 4520 CFLAGS="-g" 4521 fi 4522else 4523 if test "$GCC" = yes; then 4524 CFLAGS="-O2" 4525 else 4526 CFLAGS= 4527 fi 4528fi 4529ac_prog_cc_stdc=no 4530if test x$ac_prog_cc_stdc = xno 4531then : 4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4533printf %s "checking for $CC option to enable C11 features... " >&6; } 4534if test ${ac_cv_prog_cc_c11+y} 4535then : 4536 printf %s "(cached) " >&6 4537else case e in #( 4538 e) ac_cv_prog_cc_c11=no 4539ac_save_CC=$CC 4540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4541/* end confdefs.h. */ 4542$ac_c_conftest_c11_program 4543_ACEOF 4544for ac_arg in '' -std=gnu11 4545do 4546 CC="$ac_save_CC $ac_arg" 4547 if ac_fn_c_try_compile "$LINENO" 4548then : 4549 ac_cv_prog_cc_c11=$ac_arg 4550fi 4551rm -f core conftest.err conftest.$ac_objext conftest.beam 4552 test "x$ac_cv_prog_cc_c11" != "xno" && break 4553done 4554rm -f conftest.$ac_ext 4555CC=$ac_save_CC ;; 4556esac 4557fi 4558 4559if test "x$ac_cv_prog_cc_c11" = xno 4560then : 4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4562printf "%s\n" "unsupported" >&6; } 4563else case e in #( 4564 e) if test "x$ac_cv_prog_cc_c11" = x 4565then : 4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4567printf "%s\n" "none needed" >&6; } 4568else case e in #( 4569 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4570printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4571 CC="$CC $ac_cv_prog_cc_c11" ;; 4572esac 4573fi 4574 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4575 ac_prog_cc_stdc=c11 ;; 4576esac 4577fi 4578fi 4579if test x$ac_prog_cc_stdc = xno 4580then : 4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4582printf %s "checking for $CC option to enable C99 features... " >&6; } 4583if test ${ac_cv_prog_cc_c99+y} 4584then : 4585 printf %s "(cached) " >&6 4586else case e in #( 4587 e) ac_cv_prog_cc_c99=no 4588ac_save_CC=$CC 4589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4590/* end confdefs.h. */ 4591$ac_c_conftest_c99_program 4592_ACEOF 4593for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4594do 4595 CC="$ac_save_CC $ac_arg" 4596 if ac_fn_c_try_compile "$LINENO" 4597then : 4598 ac_cv_prog_cc_c99=$ac_arg 4599fi 4600rm -f core conftest.err conftest.$ac_objext conftest.beam 4601 test "x$ac_cv_prog_cc_c99" != "xno" && break 4602done 4603rm -f conftest.$ac_ext 4604CC=$ac_save_CC ;; 4605esac 4606fi 4607 4608if test "x$ac_cv_prog_cc_c99" = xno 4609then : 4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4611printf "%s\n" "unsupported" >&6; } 4612else case e in #( 4613 e) if test "x$ac_cv_prog_cc_c99" = x 4614then : 4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4616printf "%s\n" "none needed" >&6; } 4617else case e in #( 4618 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4619printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4620 CC="$CC $ac_cv_prog_cc_c99" ;; 4621esac 4622fi 4623 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4624 ac_prog_cc_stdc=c99 ;; 4625esac 4626fi 4627fi 4628if test x$ac_prog_cc_stdc = xno 4629then : 4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4631printf %s "checking for $CC option to enable C89 features... " >&6; } 4632if test ${ac_cv_prog_cc_c89+y} 4633then : 4634 printf %s "(cached) " >&6 4635else case e in #( 4636 e) ac_cv_prog_cc_c89=no 4637ac_save_CC=$CC 4638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4639/* end confdefs.h. */ 4640$ac_c_conftest_c89_program 4641_ACEOF 4642for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4643do 4644 CC="$ac_save_CC $ac_arg" 4645 if ac_fn_c_try_compile "$LINENO" 4646then : 4647 ac_cv_prog_cc_c89=$ac_arg 4648fi 4649rm -f core conftest.err conftest.$ac_objext conftest.beam 4650 test "x$ac_cv_prog_cc_c89" != "xno" && break 4651done 4652rm -f conftest.$ac_ext 4653CC=$ac_save_CC ;; 4654esac 4655fi 4656 4657if test "x$ac_cv_prog_cc_c89" = xno 4658then : 4659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4660printf "%s\n" "unsupported" >&6; } 4661else case e in #( 4662 e) if test "x$ac_cv_prog_cc_c89" = x 4663then : 4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4665printf "%s\n" "none needed" >&6; } 4666else case e in #( 4667 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4668printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4669 CC="$CC $ac_cv_prog_cc_c89" ;; 4670esac 4671fi 4672 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4673 ac_prog_cc_stdc=c89 ;; 4674esac 4675fi 4676fi 4677 4678ac_ext=c 4679ac_cpp='$CPP $CPPFLAGS' 4680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4682ac_compiler_gnu=$ac_cv_c_compiler_gnu 4683 4684 4685 ac_ext=c 4686ac_cpp='$CPP $CPPFLAGS' 4687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4689ac_compiler_gnu=$ac_cv_c_compiler_gnu 4690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4691printf %s "checking whether $CC understands -c and -o together... " >&6; } 4692if test ${am_cv_prog_cc_c_o+y} 4693then : 4694 printf %s "(cached) " >&6 4695else case e in #( 4696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4697/* end confdefs.h. */ 4698 4699int 4700main (void) 4701{ 4702 4703 ; 4704 return 0; 4705} 4706_ACEOF 4707 # Make sure it works both with $CC and with simple cc. 4708 # Following AC_PROG_CC_C_O, we do the test twice because some 4709 # compilers refuse to overwrite an existing .o file with -o, 4710 # though they will create one. 4711 am_cv_prog_cc_c_o=yes 4712 for am_i in 1 2; do 4713 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4714 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4715 ac_status=$? 4716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4717 (exit $ac_status); } \ 4718 && test -f conftest2.$ac_objext; then 4719 : OK 4720 else 4721 am_cv_prog_cc_c_o=no 4722 break 4723 fi 4724 done 4725 rm -f core conftest* 4726 unset am_i ;; 4727esac 4728fi 4729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4730printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4731if test "$am_cv_prog_cc_c_o" != yes; then 4732 # Losing compiler, so override with the script. 4733 # FIXME: It is wrong to rewrite CC. 4734 # But if we don't then we get into trouble of one sort or another. 4735 # A longer-term fix would be to have automake use am__CC in this case, 4736 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4737 CC="$am_aux_dir/compile $CC" 4738fi 4739ac_ext=c 4740ac_cpp='$CPP $CPPFLAGS' 4741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4743ac_compiler_gnu=$ac_cv_c_compiler_gnu 4744 4745 4746depcc="$CC" am_compiler_list= 4747 4748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4749printf %s "checking dependency style of $depcc... " >&6; } 4750if test ${am_cv_CC_dependencies_compiler_type+y} 4751then : 4752 printf %s "(cached) " >&6 4753else case e in #( 4754 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4755 # We make a subdir and do the tests there. Otherwise we can end up 4756 # making bogus files that we don't know about and never remove. For 4757 # instance it was reported that on HP-UX the gcc test will end up 4758 # making a dummy file named 'D' -- because '-MD' means "put the output 4759 # in D". 4760 rm -rf conftest.dir 4761 mkdir conftest.dir 4762 # Copy depcomp to subdir because otherwise we won't find it if we're 4763 # using a relative directory. 4764 cp "$am_depcomp" conftest.dir 4765 cd conftest.dir 4766 # We will build objects and dependencies in a subdirectory because 4767 # it helps to detect inapplicable dependency modes. For instance 4768 # both Tru64's cc and ICC support -MD to output dependencies as a 4769 # side effect of compilation, but ICC will put the dependencies in 4770 # the current directory while Tru64 will put them in the object 4771 # directory. 4772 mkdir sub 4773 4774 am_cv_CC_dependencies_compiler_type=none 4775 if test "$am_compiler_list" = ""; then 4776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4777 fi 4778 am__universal=false 4779 case " $depcc " in #( 4780 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4781 esac 4782 4783 for depmode in $am_compiler_list; do 4784 # Setup a source with many dependencies, because some compilers 4785 # like to wrap large dependency lists on column 80 (with \), and 4786 # we should not choose a depcomp mode which is confused by this. 4787 # 4788 # We need to recreate these files for each test, as the compiler may 4789 # overwrite some of them when testing with obscure command lines. 4790 # This happens at least with the AIX C compiler. 4791 : > sub/conftest.c 4792 for i in 1 2 3 4 5 6; do 4793 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4794 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4795 # Solaris 10 /bin/sh. 4796 echo '/* dummy */' > sub/conftst$i.h 4797 done 4798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4799 4800 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4801 # mode. It turns out that the SunPro C++ compiler does not properly 4802 # handle '-M -o', and we need to detect this. Also, some Intel 4803 # versions had trouble with output in subdirs. 4804 am__obj=sub/conftest.${OBJEXT-o} 4805 am__minus_obj="-o $am__obj" 4806 case $depmode in 4807 gcc) 4808 # This depmode causes a compiler race in universal mode. 4809 test "$am__universal" = false || continue 4810 ;; 4811 nosideeffect) 4812 # After this tag, mechanisms are not by side-effect, so they'll 4813 # only be used when explicitly requested. 4814 if test "x$enable_dependency_tracking" = xyes; then 4815 continue 4816 else 4817 break 4818 fi 4819 ;; 4820 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4821 # This compiler won't grok '-c -o', but also, the minuso test has 4822 # not run yet. These depmodes are late enough in the game, and 4823 # so weak that their functioning should not be impacted. 4824 am__obj=conftest.${OBJEXT-o} 4825 am__minus_obj= 4826 ;; 4827 none) break ;; 4828 esac 4829 if depmode=$depmode \ 4830 source=sub/conftest.c object=$am__obj \ 4831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4833 >/dev/null 2>conftest.err && 4834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4838 # icc doesn't choke on unknown options, it will just issue warnings 4839 # or remarks (even with -Werror). So we grep stderr for any message 4840 # that says an option was ignored or not supported. 4841 # When given -MP, icc 7.0 and 7.1 complain thus: 4842 # icc: Command line warning: ignoring option '-M'; no argument required 4843 # The diagnosis changed in icc 8.0: 4844 # icc: Command line remark: option '-MP' not supported 4845 if (grep 'ignoring option' conftest.err || 4846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4847 am_cv_CC_dependencies_compiler_type=$depmode 4848 break 4849 fi 4850 fi 4851 done 4852 4853 cd .. 4854 rm -rf conftest.dir 4855else 4856 am_cv_CC_dependencies_compiler_type=none 4857fi 4858 ;; 4859esac 4860fi 4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4862printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4863CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4864 4865 if 4866 test "x$enable_dependency_tracking" != xno \ 4867 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4868 am__fastdepCC_TRUE= 4869 am__fastdepCC_FALSE='#' 4870else 4871 am__fastdepCC_TRUE='#' 4872 am__fastdepCC_FALSE= 4873fi 4874 4875 4876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4877printf %s "checking for a sed that does not truncate output... " >&6; } 4878if test ${ac_cv_path_SED+y} 4879then : 4880 printf %s "(cached) " >&6 4881else case e in #( 4882 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4883 for ac_i in 1 2 3 4 5 6 7; do 4884 ac_script="$ac_script$as_nl$ac_script" 4885 done 4886 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4887 { ac_script=; unset ac_script;} 4888 if test -z "$SED"; then 4889 ac_path_SED_found=false 4890 # Loop through the user's path and test for each of PROGNAME-LIST 4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4892for as_dir in $PATH 4893do 4894 IFS=$as_save_IFS 4895 case $as_dir in #((( 4896 '') as_dir=./ ;; 4897 */) ;; 4898 *) as_dir=$as_dir/ ;; 4899 esac 4900 for ac_prog in sed gsed 4901 do 4902 for ac_exec_ext in '' $ac_executable_extensions; do 4903 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4904 as_fn_executable_p "$ac_path_SED" || continue 4905# Check for GNU ac_path_SED and select it if it is found. 4906 # Check for GNU $ac_path_SED 4907case `"$ac_path_SED" --version 2>&1` in #( 4908*GNU*) 4909 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4910#( 4911*) 4912 ac_count=0 4913 printf %s 0123456789 >"conftest.in" 4914 while : 4915 do 4916 cat "conftest.in" "conftest.in" >"conftest.tmp" 4917 mv "conftest.tmp" "conftest.in" 4918 cp "conftest.in" "conftest.nl" 4919 printf "%s\n" '' >> "conftest.nl" 4920 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4922 as_fn_arith $ac_count + 1 && ac_count=$as_val 4923 if test $ac_count -gt ${ac_path_SED_max-0}; then 4924 # Best one so far, save it but keep looking for a better one 4925 ac_cv_path_SED="$ac_path_SED" 4926 ac_path_SED_max=$ac_count 4927 fi 4928 # 10*(2^10) chars as input seems more than enough 4929 test $ac_count -gt 10 && break 4930 done 4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4932esac 4933 4934 $ac_path_SED_found && break 3 4935 done 4936 done 4937 done 4938IFS=$as_save_IFS 4939 if test -z "$ac_cv_path_SED"; then 4940 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4941 fi 4942else 4943 ac_cv_path_SED=$SED 4944fi 4945 ;; 4946esac 4947fi 4948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4949printf "%s\n" "$ac_cv_path_SED" >&6; } 4950 SED="$ac_cv_path_SED" 4951 rm -f conftest.sed 4952 4953test -z "$SED" && SED=sed 4954Xsed="$SED -e 1s/^X//" 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4967printf %s "checking for grep that handles long lines and -e... " >&6; } 4968if test ${ac_cv_path_GREP+y} 4969then : 4970 printf %s "(cached) " >&6 4971else case e in #( 4972 e) if test -z "$GREP"; then 4973 ac_path_GREP_found=false 4974 # Loop through the user's path and test for each of PROGNAME-LIST 4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4977do 4978 IFS=$as_save_IFS 4979 case $as_dir in #((( 4980 '') as_dir=./ ;; 4981 */) ;; 4982 *) as_dir=$as_dir/ ;; 4983 esac 4984 for ac_prog in grep ggrep 4985 do 4986 for ac_exec_ext in '' $ac_executable_extensions; do 4987 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4988 as_fn_executable_p "$ac_path_GREP" || continue 4989# Check for GNU ac_path_GREP and select it if it is found. 4990 # Check for GNU $ac_path_GREP 4991case `"$ac_path_GREP" --version 2>&1` in #( 4992*GNU*) 4993 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4994#( 4995*) 4996 ac_count=0 4997 printf %s 0123456789 >"conftest.in" 4998 while : 4999 do 5000 cat "conftest.in" "conftest.in" >"conftest.tmp" 5001 mv "conftest.tmp" "conftest.in" 5002 cp "conftest.in" "conftest.nl" 5003 printf "%s\n" 'GREP' >> "conftest.nl" 5004 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5006 as_fn_arith $ac_count + 1 && ac_count=$as_val 5007 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5008 # Best one so far, save it but keep looking for a better one 5009 ac_cv_path_GREP="$ac_path_GREP" 5010 ac_path_GREP_max=$ac_count 5011 fi 5012 # 10*(2^10) chars as input seems more than enough 5013 test $ac_count -gt 10 && break 5014 done 5015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5016esac 5017 5018 $ac_path_GREP_found && break 3 5019 done 5020 done 5021 done 5022IFS=$as_save_IFS 5023 if test -z "$ac_cv_path_GREP"; then 5024 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5025 fi 5026else 5027 ac_cv_path_GREP=$GREP 5028fi 5029 ;; 5030esac 5031fi 5032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5033printf "%s\n" "$ac_cv_path_GREP" >&6; } 5034 GREP="$ac_cv_path_GREP" 5035 5036 5037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5038printf %s "checking for egrep... " >&6; } 5039if test ${ac_cv_path_EGREP+y} 5040then : 5041 printf %s "(cached) " >&6 5042else case e in #( 5043 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5044 then ac_cv_path_EGREP="$GREP -E" 5045 else 5046 if test -z "$EGREP"; then 5047 ac_path_EGREP_found=false 5048 # Loop through the user's path and test for each of PROGNAME-LIST 5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5050for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5051do 5052 IFS=$as_save_IFS 5053 case $as_dir in #((( 5054 '') as_dir=./ ;; 5055 */) ;; 5056 *) as_dir=$as_dir/ ;; 5057 esac 5058 for ac_prog in egrep 5059 do 5060 for ac_exec_ext in '' $ac_executable_extensions; do 5061 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5062 as_fn_executable_p "$ac_path_EGREP" || continue 5063# Check for GNU ac_path_EGREP and select it if it is found. 5064 # Check for GNU $ac_path_EGREP 5065case `"$ac_path_EGREP" --version 2>&1` in #( 5066*GNU*) 5067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5068#( 5069*) 5070 ac_count=0 5071 printf %s 0123456789 >"conftest.in" 5072 while : 5073 do 5074 cat "conftest.in" "conftest.in" >"conftest.tmp" 5075 mv "conftest.tmp" "conftest.in" 5076 cp "conftest.in" "conftest.nl" 5077 printf "%s\n" 'EGREP' >> "conftest.nl" 5078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5080 as_fn_arith $ac_count + 1 && ac_count=$as_val 5081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5082 # Best one so far, save it but keep looking for a better one 5083 ac_cv_path_EGREP="$ac_path_EGREP" 5084 ac_path_EGREP_max=$ac_count 5085 fi 5086 # 10*(2^10) chars as input seems more than enough 5087 test $ac_count -gt 10 && break 5088 done 5089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5090esac 5091 5092 $ac_path_EGREP_found && break 3 5093 done 5094 done 5095 done 5096IFS=$as_save_IFS 5097 if test -z "$ac_cv_path_EGREP"; then 5098 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5099 fi 5100else 5101 ac_cv_path_EGREP=$EGREP 5102fi 5103 5104 fi ;; 5105esac 5106fi 5107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5108printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5109 EGREP="$ac_cv_path_EGREP" 5110 5111 EGREP_TRADITIONAL=$EGREP 5112 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5113 5114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5115printf %s "checking for fgrep... " >&6; } 5116if test ${ac_cv_path_FGREP+y} 5117then : 5118 printf %s "(cached) " >&6 5119else case e in #( 5120 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5121 then ac_cv_path_FGREP="$GREP -F" 5122 else 5123 if test -z "$FGREP"; then 5124 ac_path_FGREP_found=false 5125 # Loop through the user's path and test for each of PROGNAME-LIST 5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5128do 5129 IFS=$as_save_IFS 5130 case $as_dir in #((( 5131 '') as_dir=./ ;; 5132 */) ;; 5133 *) as_dir=$as_dir/ ;; 5134 esac 5135 for ac_prog in fgrep 5136 do 5137 for ac_exec_ext in '' $ac_executable_extensions; do 5138 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5139 as_fn_executable_p "$ac_path_FGREP" || continue 5140# Check for GNU ac_path_FGREP and select it if it is found. 5141 # Check for GNU $ac_path_FGREP 5142case `"$ac_path_FGREP" --version 2>&1` in #( 5143*GNU*) 5144 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5145#( 5146*) 5147 ac_count=0 5148 printf %s 0123456789 >"conftest.in" 5149 while : 5150 do 5151 cat "conftest.in" "conftest.in" >"conftest.tmp" 5152 mv "conftest.tmp" "conftest.in" 5153 cp "conftest.in" "conftest.nl" 5154 printf "%s\n" 'FGREP' >> "conftest.nl" 5155 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5157 as_fn_arith $ac_count + 1 && ac_count=$as_val 5158 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5159 # Best one so far, save it but keep looking for a better one 5160 ac_cv_path_FGREP="$ac_path_FGREP" 5161 ac_path_FGREP_max=$ac_count 5162 fi 5163 # 10*(2^10) chars as input seems more than enough 5164 test $ac_count -gt 10 && break 5165 done 5166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5167esac 5168 5169 $ac_path_FGREP_found && break 3 5170 done 5171 done 5172 done 5173IFS=$as_save_IFS 5174 if test -z "$ac_cv_path_FGREP"; then 5175 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5176 fi 5177else 5178 ac_cv_path_FGREP=$FGREP 5179fi 5180 5181 fi ;; 5182esac 5183fi 5184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5185printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5186 FGREP="$ac_cv_path_FGREP" 5187 5188 5189test -z "$GREP" && GREP=grep 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209# Check whether --with-gnu-ld was given. 5210if test ${with_gnu_ld+y} 5211then : 5212 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5213else case e in #( 5214 e) with_gnu_ld=no ;; 5215esac 5216fi 5217 5218ac_prog=ld 5219if test yes = "$GCC"; then 5220 # Check if gcc -print-prog-name=ld gives a path. 5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5222printf %s "checking for ld used by $CC... " >&6; } 5223 case $host in 5224 *-*-mingw* | *-*-windows*) 5225 # gcc leaves a trailing carriage return, which upsets mingw 5226 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5227 *) 5228 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5229 esac 5230 case $ac_prog in 5231 # Accept absolute paths. 5232 [\\/]* | ?:[\\/]*) 5233 re_direlt='/[^/][^/]*/\.\./' 5234 # Canonicalize the pathname of ld 5235 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5236 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5237 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5238 done 5239 test -z "$LD" && LD=$ac_prog 5240 ;; 5241 "") 5242 # If it fails, then pretend we aren't using GCC. 5243 ac_prog=ld 5244 ;; 5245 *) 5246 # If it is relative, then search for the first ld in PATH. 5247 with_gnu_ld=unknown 5248 ;; 5249 esac 5250elif test yes = "$with_gnu_ld"; then 5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5252printf %s "checking for GNU ld... " >&6; } 5253else 5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5255printf %s "checking for non-GNU ld... " >&6; } 5256fi 5257if test ${lt_cv_path_LD+y} 5258then : 5259 printf %s "(cached) " >&6 5260else case e in #( 5261 e) if test -z "$LD"; then 5262 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5263 for ac_dir in $PATH; do 5264 IFS=$lt_save_ifs 5265 test -z "$ac_dir" && ac_dir=. 5266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5267 lt_cv_path_LD=$ac_dir/$ac_prog 5268 # Check to see if the program is GNU ld. I'd rather use --version, 5269 # but apparently some variants of GNU ld only accept -v. 5270 # Break only if it was the GNU/non-GNU ld that we prefer. 5271 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5272 *GNU* | *'with BFD'*) 5273 test no != "$with_gnu_ld" && break 5274 ;; 5275 *) 5276 test yes != "$with_gnu_ld" && break 5277 ;; 5278 esac 5279 fi 5280 done 5281 IFS=$lt_save_ifs 5282else 5283 lt_cv_path_LD=$LD # Let the user override the test with a path. 5284fi ;; 5285esac 5286fi 5287 5288LD=$lt_cv_path_LD 5289if test -n "$LD"; then 5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5291printf "%s\n" "$LD" >&6; } 5292else 5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5294printf "%s\n" "no" >&6; } 5295fi 5296test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5298printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5299if test ${lt_cv_prog_gnu_ld+y} 5300then : 5301 printf %s "(cached) " >&6 5302else case e in #( 5303 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5304case `$LD -v 2>&1 </dev/null` in 5305*GNU* | *'with BFD'*) 5306 lt_cv_prog_gnu_ld=yes 5307 ;; 5308*) 5309 lt_cv_prog_gnu_ld=no 5310 ;; 5311esac ;; 5312esac 5313fi 5314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5315printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5316with_gnu_ld=$lt_cv_prog_gnu_ld 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5327printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5328if test ${lt_cv_path_NM+y} 5329then : 5330 printf %s "(cached) " >&6 5331else case e in #( 5332 e) if test -n "$NM"; then 5333 # Let the user override the test. 5334 lt_cv_path_NM=$NM 5335else 5336 lt_nm_to_check=${ac_tool_prefix}nm 5337 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5338 lt_nm_to_check="$lt_nm_to_check nm" 5339 fi 5340 for lt_tmp_nm in $lt_nm_to_check; do 5341 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5342 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5343 IFS=$lt_save_ifs 5344 test -z "$ac_dir" && ac_dir=. 5345 tmp_nm=$ac_dir/$lt_tmp_nm 5346 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5347 # Check to see if the nm accepts a BSD-compat flag. 5348 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5349 # nm: unknown option "B" ignored 5350 # Tru64's nm complains that /dev/null is an invalid object file 5351 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5352 case $build_os in 5353 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5354 *) lt_bad_file=/dev/null ;; 5355 esac 5356 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5357 *$lt_bad_file* | *'Invalid file or object type'*) 5358 lt_cv_path_NM="$tmp_nm -B" 5359 break 2 5360 ;; 5361 *) 5362 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5363 */dev/null*) 5364 lt_cv_path_NM="$tmp_nm -p" 5365 break 2 5366 ;; 5367 *) 5368 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5369 continue # so that we can try to find one that supports BSD flags 5370 ;; 5371 esac 5372 ;; 5373 esac 5374 fi 5375 done 5376 IFS=$lt_save_ifs 5377 done 5378 : ${lt_cv_path_NM=no} 5379fi ;; 5380esac 5381fi 5382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5383printf "%s\n" "$lt_cv_path_NM" >&6; } 5384if test no != "$lt_cv_path_NM"; then 5385 NM=$lt_cv_path_NM 5386else 5387 # Didn't find any BSD compatible name lister, look for dumpbin. 5388 if test -n "$DUMPBIN"; then : 5389 # Let the user override the test. 5390 else 5391 if test -n "$ac_tool_prefix"; then 5392 for ac_prog in dumpbin "link -dump" 5393 do 5394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5395set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5397printf %s "checking for $ac_word... " >&6; } 5398if test ${ac_cv_prog_DUMPBIN+y} 5399then : 5400 printf %s "(cached) " >&6 5401else case e in #( 5402 e) if test -n "$DUMPBIN"; then 5403 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5404else 5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5406for as_dir in $PATH 5407do 5408 IFS=$as_save_IFS 5409 case $as_dir in #((( 5410 '') as_dir=./ ;; 5411 */) ;; 5412 *) as_dir=$as_dir/ ;; 5413 esac 5414 for ac_exec_ext in '' $ac_executable_extensions; do 5415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5416 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5418 break 2 5419 fi 5420done 5421 done 5422IFS=$as_save_IFS 5423 5424fi ;; 5425esac 5426fi 5427DUMPBIN=$ac_cv_prog_DUMPBIN 5428if test -n "$DUMPBIN"; then 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5430printf "%s\n" "$DUMPBIN" >&6; } 5431else 5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5433printf "%s\n" "no" >&6; } 5434fi 5435 5436 5437 test -n "$DUMPBIN" && break 5438 done 5439fi 5440if test -z "$DUMPBIN"; then 5441 ac_ct_DUMPBIN=$DUMPBIN 5442 for ac_prog in dumpbin "link -dump" 5443do 5444 # Extract the first word of "$ac_prog", so it can be a program name with args. 5445set dummy $ac_prog; ac_word=$2 5446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5447printf %s "checking for $ac_word... " >&6; } 5448if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5449then : 5450 printf %s "(cached) " >&6 5451else case e in #( 5452 e) if test -n "$ac_ct_DUMPBIN"; then 5453 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5454else 5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5456for as_dir in $PATH 5457do 5458 IFS=$as_save_IFS 5459 case $as_dir in #((( 5460 '') as_dir=./ ;; 5461 */) ;; 5462 *) as_dir=$as_dir/ ;; 5463 esac 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5466 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470done 5471 done 5472IFS=$as_save_IFS 5473 5474fi ;; 5475esac 5476fi 5477ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5478if test -n "$ac_ct_DUMPBIN"; then 5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5480printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5481else 5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5483printf "%s\n" "no" >&6; } 5484fi 5485 5486 5487 test -n "$ac_ct_DUMPBIN" && break 5488done 5489 5490 if test "x$ac_ct_DUMPBIN" = x; then 5491 DUMPBIN=":" 5492 else 5493 case $cross_compiling:$ac_tool_warned in 5494yes:) 5495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5496printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5497ac_tool_warned=yes ;; 5498esac 5499 DUMPBIN=$ac_ct_DUMPBIN 5500 fi 5501fi 5502 5503 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5504 *COFF*) 5505 DUMPBIN="$DUMPBIN -symbols -headers" 5506 ;; 5507 *) 5508 DUMPBIN=: 5509 ;; 5510 esac 5511 fi 5512 5513 if test : != "$DUMPBIN"; then 5514 NM=$DUMPBIN 5515 fi 5516fi 5517test -z "$NM" && NM=nm 5518 5519 5520 5521 5522 5523 5524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5525printf %s "checking the name lister ($NM) interface... " >&6; } 5526if test ${lt_cv_nm_interface+y} 5527then : 5528 printf %s "(cached) " >&6 5529else case e in #( 5530 e) lt_cv_nm_interface="BSD nm" 5531 echo "int some_variable = 0;" > conftest.$ac_ext 5532 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5533 (eval "$ac_compile" 2>conftest.err) 5534 cat conftest.err >&5 5535 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5536 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5537 cat conftest.err >&5 5538 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5539 cat conftest.out >&5 5540 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5541 lt_cv_nm_interface="MS dumpbin" 5542 fi 5543 rm -f conftest* ;; 5544esac 5545fi 5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5547printf "%s\n" "$lt_cv_nm_interface" >&6; } 5548 5549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5550printf %s "checking whether ln -s works... " >&6; } 5551LN_S=$as_ln_s 5552if test "$LN_S" = "ln -s"; then 5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5554printf "%s\n" "yes" >&6; } 5555else 5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5557printf "%s\n" "no, using $LN_S" >&6; } 5558fi 5559 5560# find the maximum length of command line arguments 5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5562printf %s "checking the maximum length of command line arguments... " >&6; } 5563if test ${lt_cv_sys_max_cmd_len+y} 5564then : 5565 printf %s "(cached) " >&6 5566else case e in #( 5567 e) i=0 5568 teststring=ABCD 5569 5570 case $build_os in 5571 msdosdjgpp*) 5572 # On DJGPP, this test can blow up pretty badly due to problems in libc 5573 # (any single argument exceeding 2000 bytes causes a buffer overrun 5574 # during glob expansion). Even if it were fixed, the result of this 5575 # check would be larger than it should be. 5576 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5577 ;; 5578 5579 gnu* | ironclad*) 5580 # Under GNU Hurd and Ironclad, this test is not required because there 5581 # is no limit to the length of command line arguments. 5582 # Libtool will interpret -1 as no limit whatsoever 5583 lt_cv_sys_max_cmd_len=-1; 5584 ;; 5585 5586 cygwin* | mingw* | windows* | cegcc*) 5587 # On Win9x/ME, this test blows up -- it succeeds, but takes 5588 # about 5 minutes as the teststring grows exponentially. 5589 # Worse, since 9x/ME are not pre-emptively multitasking, 5590 # you end up with a "frozen" computer, even though with patience 5591 # the test eventually succeeds (with a max line length of 256k). 5592 # Instead, let's just punt: use the minimum linelength reported by 5593 # all of the supported platforms: 8192 (on NT/2K/XP). 5594 lt_cv_sys_max_cmd_len=8192; 5595 ;; 5596 5597 mint*) 5598 # On MiNT this can take a long time and run out of memory. 5599 lt_cv_sys_max_cmd_len=8192; 5600 ;; 5601 5602 amigaos*) 5603 # On AmigaOS with pdksh, this test takes hours, literally. 5604 # So we just punt and use a minimum line length of 8192. 5605 lt_cv_sys_max_cmd_len=8192; 5606 ;; 5607 5608 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5609 # This has been around since 386BSD, at least. Likely further. 5610 if test -x /sbin/sysctl; then 5611 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5612 elif test -x /usr/sbin/sysctl; then 5613 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5614 else 5615 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5616 fi 5617 # And add a safety zone 5618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5620 ;; 5621 5622 interix*) 5623 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5624 lt_cv_sys_max_cmd_len=196608 5625 ;; 5626 5627 os2*) 5628 # The test takes a long time on OS/2. 5629 lt_cv_sys_max_cmd_len=8192 5630 ;; 5631 5632 osf*) 5633 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5634 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5635 # nice to cause kernel panics so lets avoid the loop below. 5636 # First set a reasonable default. 5637 lt_cv_sys_max_cmd_len=16384 5638 # 5639 if test -x /sbin/sysconfig; then 5640 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5641 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5642 esac 5643 fi 5644 ;; 5645 sco3.2v5*) 5646 lt_cv_sys_max_cmd_len=102400 5647 ;; 5648 sysv5* | sco5v6* | sysv4.2uw2*) 5649 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5650 if test -n "$kargmax"; then 5651 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5652 else 5653 lt_cv_sys_max_cmd_len=32768 5654 fi 5655 ;; 5656 *) 5657 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5658 if test -n "$lt_cv_sys_max_cmd_len" && \ 5659 test undefined != "$lt_cv_sys_max_cmd_len"; then 5660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5662 else 5663 # Make teststring a little bigger before we do anything with it. 5664 # a 1K string should be a reasonable start. 5665 for i in 1 2 3 4 5 6 7 8; do 5666 teststring=$teststring$teststring 5667 done 5668 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5669 # If test is not a shell built-in, we'll probably end up computing a 5670 # maximum length that is only half of the actual maximum length, but 5671 # we can't tell. 5672 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5673 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5674 test 17 != "$i" # 1/2 MB should be enough 5675 do 5676 i=`expr $i + 1` 5677 teststring=$teststring$teststring 5678 done 5679 # Only check the string length outside the loop. 5680 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5681 teststring= 5682 # Add a significant safety factor because C++ compilers can tack on 5683 # massive amounts of additional arguments before passing them to the 5684 # linker. It appears as though 1/2 is a usable value. 5685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5686 fi 5687 ;; 5688 esac 5689 ;; 5690esac 5691fi 5692 5693if test -n "$lt_cv_sys_max_cmd_len"; then 5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5695printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5696else 5697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5698printf "%s\n" "none" >&6; } 5699fi 5700max_cmd_len=$lt_cv_sys_max_cmd_len 5701 5702 5703 5704 5705 5706 5707: ${CP="cp -f"} 5708: ${MV="mv -f"} 5709: ${RM="rm -f"} 5710 5711if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5712 lt_unset=unset 5713else 5714 lt_unset=false 5715fi 5716 5717 5718 5719 5720 5721# test EBCDIC or ASCII 5722case `echo X|tr X '\101'` in 5723 A) # ASCII based system 5724 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5725 lt_SP2NL='tr \040 \012' 5726 lt_NL2SP='tr \015\012 \040\040' 5727 ;; 5728 *) # EBCDIC based system 5729 lt_SP2NL='tr \100 \n' 5730 lt_NL2SP='tr \r\n \100\100' 5731 ;; 5732esac 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5743printf %s "checking how to convert $build file names to $host format... " >&6; } 5744if test ${lt_cv_to_host_file_cmd+y} 5745then : 5746 printf %s "(cached) " >&6 5747else case e in #( 5748 e) case $host in 5749 *-*-mingw* ) 5750 case $build in 5751 *-*-mingw* | *-*-windows* ) # actually msys 5752 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5753 ;; 5754 *-*-cygwin* ) 5755 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5756 ;; 5757 * ) # otherwise, assume *nix 5758 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5759 ;; 5760 esac 5761 ;; 5762 *-*-cygwin* ) 5763 case $build in 5764 *-*-mingw* | *-*-windows* ) # actually msys 5765 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5766 ;; 5767 *-*-cygwin* ) 5768 lt_cv_to_host_file_cmd=func_convert_file_noop 5769 ;; 5770 * ) # otherwise, assume *nix 5771 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5772 ;; 5773 esac 5774 ;; 5775 * ) # unhandled hosts (and "normal" native builds) 5776 lt_cv_to_host_file_cmd=func_convert_file_noop 5777 ;; 5778esac 5779 ;; 5780esac 5781fi 5782 5783to_host_file_cmd=$lt_cv_to_host_file_cmd 5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5785printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5786 5787 5788 5789 5790 5791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5792printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5793if test ${lt_cv_to_tool_file_cmd+y} 5794then : 5795 printf %s "(cached) " >&6 5796else case e in #( 5797 e) #assume ordinary cross tools, or native build. 5798lt_cv_to_tool_file_cmd=func_convert_file_noop 5799case $host in 5800 *-*-mingw* | *-*-windows* ) 5801 case $build in 5802 *-*-mingw* | *-*-windows* ) # actually msys 5803 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5804 ;; 5805 esac 5806 ;; 5807esac 5808 ;; 5809esac 5810fi 5811 5812to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5814printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5815 5816 5817 5818 5819 5820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5821printf %s "checking for $LD option to reload object files... " >&6; } 5822if test ${lt_cv_ld_reload_flag+y} 5823then : 5824 printf %s "(cached) " >&6 5825else case e in #( 5826 e) lt_cv_ld_reload_flag='-r' ;; 5827esac 5828fi 5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5830printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5831reload_flag=$lt_cv_ld_reload_flag 5832case $reload_flag in 5833"" | " "*) ;; 5834*) reload_flag=" $reload_flag" ;; 5835esac 5836reload_cmds='$LD$reload_flag -o $output$reload_objs' 5837case $host_os in 5838 cygwin* | mingw* | windows* | pw32* | cegcc*) 5839 if test yes != "$GCC"; then 5840 reload_cmds=false 5841 fi 5842 ;; 5843 darwin*) 5844 if test yes = "$GCC"; then 5845 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5846 else 5847 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5848 fi 5849 ;; 5850esac 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860# Extract the first word of "file", so it can be a program name with args. 5861set dummy file; ac_word=$2 5862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5863printf %s "checking for $ac_word... " >&6; } 5864if test ${ac_cv_prog_FILECMD+y} 5865then : 5866 printf %s "(cached) " >&6 5867else case e in #( 5868 e) if test -n "$FILECMD"; then 5869 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5870else 5871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5872for as_dir in $PATH 5873do 5874 IFS=$as_save_IFS 5875 case $as_dir in #((( 5876 '') as_dir=./ ;; 5877 */) ;; 5878 *) as_dir=$as_dir/ ;; 5879 esac 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5882 ac_cv_prog_FILECMD="file" 5883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886done 5887 done 5888IFS=$as_save_IFS 5889 5890 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 5891fi ;; 5892esac 5893fi 5894FILECMD=$ac_cv_prog_FILECMD 5895if test -n "$FILECMD"; then 5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5897printf "%s\n" "$FILECMD" >&6; } 5898else 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5900printf "%s\n" "no" >&6; } 5901fi 5902 5903 5904 5905 5906 5907 5908 5909 5910if test -n "$ac_tool_prefix"; then 5911 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5912set dummy ${ac_tool_prefix}objdump; ac_word=$2 5913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5914printf %s "checking for $ac_word... " >&6; } 5915if test ${ac_cv_prog_OBJDUMP+y} 5916then : 5917 printf %s "(cached) " >&6 5918else case e in #( 5919 e) if test -n "$OBJDUMP"; then 5920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5921else 5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5923for as_dir in $PATH 5924do 5925 IFS=$as_save_IFS 5926 case $as_dir in #((( 5927 '') as_dir=./ ;; 5928 */) ;; 5929 *) as_dir=$as_dir/ ;; 5930 esac 5931 for ac_exec_ext in '' $ac_executable_extensions; do 5932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5933 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5935 break 2 5936 fi 5937done 5938 done 5939IFS=$as_save_IFS 5940 5941fi ;; 5942esac 5943fi 5944OBJDUMP=$ac_cv_prog_OBJDUMP 5945if test -n "$OBJDUMP"; then 5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5947printf "%s\n" "$OBJDUMP" >&6; } 5948else 5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5950printf "%s\n" "no" >&6; } 5951fi 5952 5953 5954fi 5955if test -z "$ac_cv_prog_OBJDUMP"; then 5956 ac_ct_OBJDUMP=$OBJDUMP 5957 # Extract the first word of "objdump", so it can be a program name with args. 5958set dummy objdump; ac_word=$2 5959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5960printf %s "checking for $ac_word... " >&6; } 5961if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5962then : 5963 printf %s "(cached) " >&6 5964else case e in #( 5965 e) if test -n "$ac_ct_OBJDUMP"; then 5966 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5967else 5968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5969for as_dir in $PATH 5970do 5971 IFS=$as_save_IFS 5972 case $as_dir in #((( 5973 '') as_dir=./ ;; 5974 */) ;; 5975 *) as_dir=$as_dir/ ;; 5976 esac 5977 for ac_exec_ext in '' $ac_executable_extensions; do 5978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5979 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5981 break 2 5982 fi 5983done 5984 done 5985IFS=$as_save_IFS 5986 5987fi ;; 5988esac 5989fi 5990ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5991if test -n "$ac_ct_OBJDUMP"; then 5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5993printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5994else 5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5996printf "%s\n" "no" >&6; } 5997fi 5998 5999 if test "x$ac_ct_OBJDUMP" = x; then 6000 OBJDUMP="false" 6001 else 6002 case $cross_compiling:$ac_tool_warned in 6003yes:) 6004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6005printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6006ac_tool_warned=yes ;; 6007esac 6008 OBJDUMP=$ac_ct_OBJDUMP 6009 fi 6010else 6011 OBJDUMP="$ac_cv_prog_OBJDUMP" 6012fi 6013 6014test -z "$OBJDUMP" && OBJDUMP=objdump 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6025printf %s "checking how to recognize dependent libraries... " >&6; } 6026if test ${lt_cv_deplibs_check_method+y} 6027then : 6028 printf %s "(cached) " >&6 6029else case e in #( 6030 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6031lt_cv_file_magic_test_file= 6032lt_cv_deplibs_check_method='unknown' 6033# Need to set the preceding variable on all platforms that support 6034# interlibrary dependencies. 6035# 'none' -- dependencies not supported. 6036# 'unknown' -- same as none, but documents that we really don't know. 6037# 'pass_all' -- all dependencies passed with no checks. 6038# 'file_magic [[regex]]' -- check by looking for files in library path 6039# that responds to the $file_magic_cmd with a given extended regex. 6040# If you have 'file' or equivalent on your system and you're not sure 6041# whether 'pass_all' will *always* work, you probably want this one. 6042 6043case $host_os in 6044aix[4-9]*) 6045 lt_cv_deplibs_check_method=pass_all 6046 ;; 6047 6048beos*) 6049 lt_cv_deplibs_check_method=pass_all 6050 ;; 6051 6052bsdi[45]*) 6053 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6054 lt_cv_file_magic_cmd='$FILECMD -L' 6055 lt_cv_file_magic_test_file=/shlib/libc.so 6056 ;; 6057 6058cygwin*) 6059 # func_win32_libid is a shell function defined in ltmain.sh 6060 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6061 lt_cv_file_magic_cmd='func_win32_libid' 6062 ;; 6063 6064mingw* | windows* | pw32*) 6065 # Base MSYS/MinGW do not provide the 'file' command needed by 6066 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6067 # unless we find 'file', for example because we are cross-compiling. 6068 if ( file / ) >/dev/null 2>&1; then 6069 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6070 lt_cv_file_magic_cmd='func_win32_libid' 6071 else 6072 # Keep this pattern in sync with the one in func_win32_libid. 6073 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6074 lt_cv_file_magic_cmd='$OBJDUMP -f' 6075 fi 6076 ;; 6077 6078cegcc*) 6079 # use the weaker test based on 'objdump'. See mingw*. 6080 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6081 lt_cv_file_magic_cmd='$OBJDUMP -f' 6082 ;; 6083 6084darwin* | rhapsody*) 6085 lt_cv_deplibs_check_method=pass_all 6086 ;; 6087 6088freebsd* | dragonfly* | midnightbsd*) 6089 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6090 case $host_cpu in 6091 i*86 ) 6092 # Not sure whether the presence of OpenBSD here was a mistake. 6093 # Let's accept both of them until this is cleared up. 6094 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6095 lt_cv_file_magic_cmd=$FILECMD 6096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6097 ;; 6098 esac 6099 else 6100 lt_cv_deplibs_check_method=pass_all 6101 fi 6102 ;; 6103 6104haiku*) 6105 lt_cv_deplibs_check_method=pass_all 6106 ;; 6107 6108hpux10.20* | hpux11*) 6109 lt_cv_file_magic_cmd=$FILECMD 6110 case $host_cpu in 6111 ia64*) 6112 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6113 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6114 ;; 6115 hppa*64*) 6116 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]' 6117 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6118 ;; 6119 *) 6120 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6121 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6122 ;; 6123 esac 6124 ;; 6125 6126interix[3-9]*) 6127 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6129 ;; 6130 6131irix5* | irix6* | nonstopux*) 6132 case $LD in 6133 *-32|*"-32 ") libmagic=32-bit;; 6134 *-n32|*"-n32 ") libmagic=N32;; 6135 *-64|*"-64 ") libmagic=64-bit;; 6136 *) libmagic=never-match;; 6137 esac 6138 lt_cv_deplibs_check_method=pass_all 6139 ;; 6140 6141# This must be glibc/ELF. 6142linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6143 lt_cv_deplibs_check_method=pass_all 6144 ;; 6145 6146*-mlibc) 6147 lt_cv_deplibs_check_method=pass_all 6148 ;; 6149 6150netbsd* | netbsdelf*-gnu) 6151 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6153 else 6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6155 fi 6156 ;; 6157 6158newos6*) 6159 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6160 lt_cv_file_magic_cmd=$FILECMD 6161 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6162 ;; 6163 6164*nto* | *qnx*) 6165 lt_cv_deplibs_check_method=pass_all 6166 ;; 6167 6168openbsd*) 6169 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6171 else 6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6173 fi 6174 ;; 6175 6176osf3* | osf4* | osf5*) 6177 lt_cv_deplibs_check_method=pass_all 6178 ;; 6179 6180rdos*) 6181 lt_cv_deplibs_check_method=pass_all 6182 ;; 6183 6184serenity*) 6185 lt_cv_deplibs_check_method=pass_all 6186 ;; 6187 6188solaris*) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 6192sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6193 lt_cv_deplibs_check_method=pass_all 6194 ;; 6195 6196sysv4 | sysv4.3*) 6197 case $host_vendor in 6198 motorola) 6199 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]' 6200 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6201 ;; 6202 ncr) 6203 lt_cv_deplibs_check_method=pass_all 6204 ;; 6205 sequent) 6206 lt_cv_file_magic_cmd='/bin/file' 6207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6208 ;; 6209 sni) 6210 lt_cv_file_magic_cmd='/bin/file' 6211 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6212 lt_cv_file_magic_test_file=/lib/libc.so 6213 ;; 6214 siemens) 6215 lt_cv_deplibs_check_method=pass_all 6216 ;; 6217 pc) 6218 lt_cv_deplibs_check_method=pass_all 6219 ;; 6220 esac 6221 ;; 6222 6223tpf*) 6224 lt_cv_deplibs_check_method=pass_all 6225 ;; 6226os2*) 6227 lt_cv_deplibs_check_method=pass_all 6228 ;; 6229esac 6230 ;; 6231esac 6232fi 6233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6234printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6235 6236file_magic_glob= 6237want_nocaseglob=no 6238if test "$build" = "$host"; then 6239 case $host_os in 6240 mingw* | windows* | pw32*) 6241 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6242 want_nocaseglob=yes 6243 else 6244 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6245 fi 6246 ;; 6247 esac 6248fi 6249 6250file_magic_cmd=$lt_cv_file_magic_cmd 6251deplibs_check_method=$lt_cv_deplibs_check_method 6252test -z "$deplibs_check_method" && deplibs_check_method=unknown 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275if test -n "$ac_tool_prefix"; then 6276 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6277set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6279printf %s "checking for $ac_word... " >&6; } 6280if test ${ac_cv_prog_DLLTOOL+y} 6281then : 6282 printf %s "(cached) " >&6 6283else case e in #( 6284 e) if test -n "$DLLTOOL"; then 6285 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6286else 6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6288for as_dir in $PATH 6289do 6290 IFS=$as_save_IFS 6291 case $as_dir in #((( 6292 '') as_dir=./ ;; 6293 */) ;; 6294 *) as_dir=$as_dir/ ;; 6295 esac 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6298 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6300 break 2 6301 fi 6302done 6303 done 6304IFS=$as_save_IFS 6305 6306fi ;; 6307esac 6308fi 6309DLLTOOL=$ac_cv_prog_DLLTOOL 6310if test -n "$DLLTOOL"; then 6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6312printf "%s\n" "$DLLTOOL" >&6; } 6313else 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6315printf "%s\n" "no" >&6; } 6316fi 6317 6318 6319fi 6320if test -z "$ac_cv_prog_DLLTOOL"; then 6321 ac_ct_DLLTOOL=$DLLTOOL 6322 # Extract the first word of "dlltool", so it can be a program name with args. 6323set dummy dlltool; ac_word=$2 6324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6325printf %s "checking for $ac_word... " >&6; } 6326if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6327then : 6328 printf %s "(cached) " >&6 6329else case e in #( 6330 e) if test -n "$ac_ct_DLLTOOL"; then 6331 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6332else 6333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6334for as_dir in $PATH 6335do 6336 IFS=$as_save_IFS 6337 case $as_dir in #((( 6338 '') as_dir=./ ;; 6339 */) ;; 6340 *) as_dir=$as_dir/ ;; 6341 esac 6342 for ac_exec_ext in '' $ac_executable_extensions; do 6343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6344 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6346 break 2 6347 fi 6348done 6349 done 6350IFS=$as_save_IFS 6351 6352fi ;; 6353esac 6354fi 6355ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6356if test -n "$ac_ct_DLLTOOL"; then 6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6358printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6359else 6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6361printf "%s\n" "no" >&6; } 6362fi 6363 6364 if test "x$ac_ct_DLLTOOL" = x; then 6365 DLLTOOL="false" 6366 else 6367 case $cross_compiling:$ac_tool_warned in 6368yes:) 6369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6370printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6371ac_tool_warned=yes ;; 6372esac 6373 DLLTOOL=$ac_ct_DLLTOOL 6374 fi 6375else 6376 DLLTOOL="$ac_cv_prog_DLLTOOL" 6377fi 6378 6379test -z "$DLLTOOL" && DLLTOOL=dlltool 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6391printf %s "checking how to associate runtime and link libraries... " >&6; } 6392if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6393then : 6394 printf %s "(cached) " >&6 6395else case e in #( 6396 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6397 6398case $host_os in 6399cygwin* | mingw* | windows* | pw32* | cegcc*) 6400 # two different shell functions defined in ltmain.sh; 6401 # decide which one to use based on capabilities of $DLLTOOL 6402 case `$DLLTOOL --help 2>&1` in 6403 *--identify-strict*) 6404 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6405 ;; 6406 *) 6407 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6408 ;; 6409 esac 6410 ;; 6411*) 6412 # fallback: assume linklib IS sharedlib 6413 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6414 ;; 6415esac 6416 ;; 6417esac 6418fi 6419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6420printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6421sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6422test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6423 6424 6425 6426 6427 6428 6429 6430 6431if test -n "$ac_tool_prefix"; then 6432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6433set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435printf %s "checking for $ac_word... " >&6; } 6436if test ${ac_cv_prog_RANLIB+y} 6437then : 6438 printf %s "(cached) " >&6 6439else case e in #( 6440 e) if test -n "$RANLIB"; then 6441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6442else 6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6444for as_dir in $PATH 6445do 6446 IFS=$as_save_IFS 6447 case $as_dir in #((( 6448 '') as_dir=./ ;; 6449 */) ;; 6450 *) as_dir=$as_dir/ ;; 6451 esac 6452 for ac_exec_ext in '' $ac_executable_extensions; do 6453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6454 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6456 break 2 6457 fi 6458done 6459 done 6460IFS=$as_save_IFS 6461 6462fi ;; 6463esac 6464fi 6465RANLIB=$ac_cv_prog_RANLIB 6466if test -n "$RANLIB"; then 6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6468printf "%s\n" "$RANLIB" >&6; } 6469else 6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6471printf "%s\n" "no" >&6; } 6472fi 6473 6474 6475fi 6476if test -z "$ac_cv_prog_RANLIB"; then 6477 ac_ct_RANLIB=$RANLIB 6478 # Extract the first word of "ranlib", so it can be a program name with args. 6479set dummy ranlib; ac_word=$2 6480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6481printf %s "checking for $ac_word... " >&6; } 6482if test ${ac_cv_prog_ac_ct_RANLIB+y} 6483then : 6484 printf %s "(cached) " >&6 6485else case e in #( 6486 e) if test -n "$ac_ct_RANLIB"; then 6487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6488else 6489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490for as_dir in $PATH 6491do 6492 IFS=$as_save_IFS 6493 case $as_dir in #((( 6494 '') as_dir=./ ;; 6495 */) ;; 6496 *) as_dir=$as_dir/ ;; 6497 esac 6498 for ac_exec_ext in '' $ac_executable_extensions; do 6499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6500 ac_cv_prog_ac_ct_RANLIB="ranlib" 6501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6502 break 2 6503 fi 6504done 6505 done 6506IFS=$as_save_IFS 6507 6508fi ;; 6509esac 6510fi 6511ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6512if test -n "$ac_ct_RANLIB"; then 6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6514printf "%s\n" "$ac_ct_RANLIB" >&6; } 6515else 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6517printf "%s\n" "no" >&6; } 6518fi 6519 6520 if test "x$ac_ct_RANLIB" = x; then 6521 RANLIB=":" 6522 else 6523 case $cross_compiling:$ac_tool_warned in 6524yes:) 6525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6526printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6527ac_tool_warned=yes ;; 6528esac 6529 RANLIB=$ac_ct_RANLIB 6530 fi 6531else 6532 RANLIB="$ac_cv_prog_RANLIB" 6533fi 6534 6535if test -n "$ac_tool_prefix"; then 6536 for ac_prog in ar 6537 do 6538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6539set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6541printf %s "checking for $ac_word... " >&6; } 6542if test ${ac_cv_prog_AR+y} 6543then : 6544 printf %s "(cached) " >&6 6545else case e in #( 6546 e) if test -n "$AR"; then 6547 ac_cv_prog_AR="$AR" # Let the user override the test. 6548else 6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6550for as_dir in $PATH 6551do 6552 IFS=$as_save_IFS 6553 case $as_dir in #((( 6554 '') as_dir=./ ;; 6555 */) ;; 6556 *) as_dir=$as_dir/ ;; 6557 esac 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6560 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564done 6565 done 6566IFS=$as_save_IFS 6567 6568fi ;; 6569esac 6570fi 6571AR=$ac_cv_prog_AR 6572if test -n "$AR"; then 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6574printf "%s\n" "$AR" >&6; } 6575else 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6577printf "%s\n" "no" >&6; } 6578fi 6579 6580 6581 test -n "$AR" && break 6582 done 6583fi 6584if test -z "$AR"; then 6585 ac_ct_AR=$AR 6586 for ac_prog in ar 6587do 6588 # Extract the first word of "$ac_prog", so it can be a program name with args. 6589set dummy $ac_prog; 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_ac_ct_AR+y} 6593then : 6594 printf %s "(cached) " >&6 6595else case e in #( 6596 e) if test -n "$ac_ct_AR"; then 6597 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="$ac_prog" 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 ;; 6619esac 6620fi 6621ac_ct_AR=$ac_cv_prog_ac_ct_AR 6622if test -n "$ac_ct_AR"; then 6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6624printf "%s\n" "$ac_ct_AR" >&6; } 6625else 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6627printf "%s\n" "no" >&6; } 6628fi 6629 6630 6631 test -n "$ac_ct_AR" && break 6632done 6633 6634 if test "x$ac_ct_AR" = x; then 6635 AR="false" 6636 else 6637 case $cross_compiling:$ac_tool_warned in 6638yes:) 6639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6640printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6641ac_tool_warned=yes ;; 6642esac 6643 AR=$ac_ct_AR 6644 fi 6645fi 6646 6647: ${AR=ar} 6648 6649 6650 6651 6652 6653 6654# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6655# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6656# higher priority because that's what people were doing historically (setting 6657# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6658# variable obsoleted/removed. 6659 6660test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6661lt_ar_flags=$AR_FLAGS 6662 6663 6664 6665 6666 6667 6668# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6669# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6670 6671 6672 6673 6674 6675 6676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6677printf %s "checking for archiver @FILE support... " >&6; } 6678if test ${lt_cv_ar_at_file+y} 6679then : 6680 printf %s "(cached) " >&6 6681else case e in #( 6682 e) lt_cv_ar_at_file=no 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685 6686int 6687main (void) 6688{ 6689 6690 ; 6691 return 0; 6692} 6693_ACEOF 6694if ac_fn_c_try_compile "$LINENO" 6695then : 6696 echo conftest.$ac_objext > conftest.lst 6697 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6699 (eval $lt_ar_try) 2>&5 6700 ac_status=$? 6701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6702 test $ac_status = 0; } 6703 if test 0 -eq "$ac_status"; then 6704 # Ensure the archiver fails upon bogus file names. 6705 rm -f conftest.$ac_objext libconftest.a 6706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6707 (eval $lt_ar_try) 2>&5 6708 ac_status=$? 6709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; } 6711 if test 0 -ne "$ac_status"; then 6712 lt_cv_ar_at_file=@ 6713 fi 6714 fi 6715 rm -f conftest.* libconftest.a 6716 6717fi 6718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6719 ;; 6720esac 6721fi 6722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6723printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6724 6725if test no = "$lt_cv_ar_at_file"; then 6726 archiver_list_spec= 6727else 6728 archiver_list_spec=$lt_cv_ar_at_file 6729fi 6730 6731 6732 6733 6734 6735 6736 6737if test -n "$ac_tool_prefix"; then 6738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6739set dummy ${ac_tool_prefix}strip; ac_word=$2 6740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6741printf %s "checking for $ac_word... " >&6; } 6742if test ${ac_cv_prog_STRIP+y} 6743then : 6744 printf %s "(cached) " >&6 6745else case e in #( 6746 e) if test -n "$STRIP"; then 6747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6748else 6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750for as_dir in $PATH 6751do 6752 IFS=$as_save_IFS 6753 case $as_dir in #((( 6754 '') as_dir=./ ;; 6755 */) ;; 6756 *) as_dir=$as_dir/ ;; 6757 esac 6758 for ac_exec_ext in '' $ac_executable_extensions; do 6759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6760 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6762 break 2 6763 fi 6764done 6765 done 6766IFS=$as_save_IFS 6767 6768fi ;; 6769esac 6770fi 6771STRIP=$ac_cv_prog_STRIP 6772if test -n "$STRIP"; then 6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6774printf "%s\n" "$STRIP" >&6; } 6775else 6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6777printf "%s\n" "no" >&6; } 6778fi 6779 6780 6781fi 6782if test -z "$ac_cv_prog_STRIP"; then 6783 ac_ct_STRIP=$STRIP 6784 # Extract the first word of "strip", so it can be a program name with args. 6785set dummy strip; ac_word=$2 6786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6787printf %s "checking for $ac_word... " >&6; } 6788if test ${ac_cv_prog_ac_ct_STRIP+y} 6789then : 6790 printf %s "(cached) " >&6 6791else case e in #( 6792 e) if test -n "$ac_ct_STRIP"; then 6793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 case $as_dir in #((( 6800 '') as_dir=./ ;; 6801 */) ;; 6802 *) as_dir=$as_dir/ ;; 6803 esac 6804 for ac_exec_ext in '' $ac_executable_extensions; do 6805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6806 ac_cv_prog_ac_ct_STRIP="strip" 6807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6808 break 2 6809 fi 6810done 6811 done 6812IFS=$as_save_IFS 6813 6814fi ;; 6815esac 6816fi 6817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6818if test -n "$ac_ct_STRIP"; then 6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6820printf "%s\n" "$ac_ct_STRIP" >&6; } 6821else 6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6823printf "%s\n" "no" >&6; } 6824fi 6825 6826 if test "x$ac_ct_STRIP" = x; then 6827 STRIP=":" 6828 else 6829 case $cross_compiling:$ac_tool_warned in 6830yes:) 6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6832printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6833ac_tool_warned=yes ;; 6834esac 6835 STRIP=$ac_ct_STRIP 6836 fi 6837else 6838 STRIP="$ac_cv_prog_STRIP" 6839fi 6840 6841test -z "$STRIP" && STRIP=: 6842 6843 6844 6845 6846 6847 6848 6849test -z "$RANLIB" && RANLIB=: 6850 6851 6852 6853 6854 6855 6856# Determine commands to create old-style static archives. 6857old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6858old_postinstall_cmds='chmod 644 $oldlib' 6859old_postuninstall_cmds= 6860 6861if test -n "$RANLIB"; then 6862 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6863 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6864fi 6865 6866case $host_os in 6867 darwin*) 6868 lock_old_archive_extraction=yes ;; 6869 *) 6870 lock_old_archive_extraction=no ;; 6871esac 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911# If no C compiler was specified, use CC. 6912LTCC=${LTCC-"$CC"} 6913 6914# If no C compiler flags were specified, use CFLAGS. 6915LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6916 6917# Allow CC to be a program name with arguments. 6918compiler=$CC 6919 6920 6921# Check for command to grab the raw symbol name followed by C symbol from nm. 6922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6923printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6924if test ${lt_cv_sys_global_symbol_pipe+y} 6925then : 6926 printf %s "(cached) " >&6 6927else case e in #( 6928 e) 6929# These are sane defaults that work on at least a few old systems. 6930# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6931 6932# Character class describing NM global symbol codes. 6933symcode='[BCDEGRST]' 6934 6935# Regexp to match symbols that can be accessed directly from C. 6936sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6937 6938# Define system-specific variables. 6939case $host_os in 6940aix*) 6941 symcode='[BCDT]' 6942 ;; 6943cygwin* | mingw* | windows* | pw32* | cegcc*) 6944 symcode='[ABCDGISTW]' 6945 ;; 6946hpux*) 6947 if test ia64 = "$host_cpu"; then 6948 symcode='[ABCDEGRST]' 6949 fi 6950 ;; 6951irix* | nonstopux*) 6952 symcode='[BCDEGRST]' 6953 ;; 6954osf*) 6955 symcode='[BCDEGQRST]' 6956 ;; 6957solaris*) 6958 symcode='[BCDRT]' 6959 ;; 6960sco3.2v5*) 6961 symcode='[DT]' 6962 ;; 6963sysv4.2uw2*) 6964 symcode='[DT]' 6965 ;; 6966sysv5* | sco5v6* | unixware* | OpenUNIX*) 6967 symcode='[ABDT]' 6968 ;; 6969sysv4) 6970 symcode='[DFNSTU]' 6971 ;; 6972esac 6973 6974# If we're using GNU nm, then use its standard symbol codes. 6975case `$NM -V 2>&1` in 6976*GNU* | *'with BFD'*) 6977 symcode='[ABCDGIRSTW]' ;; 6978esac 6979 6980if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6981 # Gets list of data symbols to import. 6982 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6983 # Adjust the below global symbol transforms to fixup imported variables. 6984 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6985 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6986 lt_c_name_lib_hook="\ 6987 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6988 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6989else 6990 # Disable hooks by default. 6991 lt_cv_sys_global_symbol_to_import= 6992 lt_cdecl_hook= 6993 lt_c_name_hook= 6994 lt_c_name_lib_hook= 6995fi 6996 6997# Transform an extracted symbol line into a proper C declaration. 6998# Some systems (esp. on ia64) link data and code symbols differently, 6999# so use this general approach. 7000lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7001$lt_cdecl_hook\ 7002" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7003" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7004 7005# Transform an extracted symbol line into symbol name and symbol address 7006lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7007$lt_c_name_hook\ 7008" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7009" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7010 7011# Transform an extracted symbol line into symbol name with lib prefix and 7012# symbol address. 7013lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7014$lt_c_name_lib_hook\ 7015" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7016" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7017" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7018 7019# Handle CRLF in mingw tool chain 7020opt_cr= 7021case $build_os in 7022mingw* | windows*) 7023 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7024 ;; 7025esac 7026 7027# Try without a prefix underscore, then with it. 7028for ac_symprfx in "" "_"; do 7029 7030 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7031 symxfrm="\\1 $ac_symprfx\\2 \\2" 7032 7033 # Write the raw and C identifiers. 7034 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7035 # Fake it for dumpbin and say T for any non-static function, 7036 # D for any global variable and I for any imported variable. 7037 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7038 # which start with @ or ?. 7039 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7040" {last_section=section; section=\$ 3};"\ 7041" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7042" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7043" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7044" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7045" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7046" \$ 0!~/External *\|/{next};"\ 7047" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7048" {if(hide[section]) next};"\ 7049" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7050" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7051" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7052" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7053" ' prfx=^$ac_symprfx" 7054 else 7055 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7056 fi 7057 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7058 7059 # Check to see that the pipe works correctly. 7060 pipe_works=no 7061 7062 rm -f conftest* 7063 cat > conftest.$ac_ext <<_LT_EOF 7064#ifdef __cplusplus 7065extern "C" { 7066#endif 7067char nm_test_var; 7068void nm_test_func(void); 7069void nm_test_func(void){} 7070#ifdef __cplusplus 7071} 7072#endif 7073int main(void){nm_test_var='a';nm_test_func();return(0);} 7074_LT_EOF 7075 7076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7077 (eval $ac_compile) 2>&5 7078 ac_status=$? 7079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7080 test $ac_status = 0; }; then 7081 # Now try to grab the symbols. 7082 nlist=conftest.nm 7083 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7084 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7085 # Try sorting and uniquifying the output. 7086 if sort "$nlist" | uniq > "$nlist"T; then 7087 mv -f "$nlist"T "$nlist" 7088 else 7089 rm -f "$nlist"T 7090 fi 7091 7092 # Make sure that we snagged all the symbols we need. 7093 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7094 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7095 cat <<_LT_EOF > conftest.$ac_ext 7096/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7097#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7098/* DATA imports from DLLs on WIN32 can't be const, because runtime 7099 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7100# define LT_DLSYM_CONST 7101#elif defined __osf__ 7102/* This system does not cope well with relocations in const data. */ 7103# define LT_DLSYM_CONST 7104#else 7105# define LT_DLSYM_CONST const 7106#endif 7107 7108#ifdef __cplusplus 7109extern "C" { 7110#endif 7111 7112_LT_EOF 7113 # Now generate the symbol file. 7114 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7115 7116 cat <<_LT_EOF >> conftest.$ac_ext 7117 7118/* The mapping between symbol names and symbols. */ 7119LT_DLSYM_CONST struct { 7120 const char *name; 7121 void *address; 7122} 7123lt__PROGRAM__LTX_preloaded_symbols[] = 7124{ 7125 { "@PROGRAM@", (void *) 0 }, 7126_LT_EOF 7127 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7128 cat <<\_LT_EOF >> conftest.$ac_ext 7129 {0, (void *) 0} 7130}; 7131 7132/* This works around a problem in FreeBSD linker */ 7133#ifdef FREEBSD_WORKAROUND 7134static const void *lt_preloaded_setup() { 7135 return lt__PROGRAM__LTX_preloaded_symbols; 7136} 7137#endif 7138 7139#ifdef __cplusplus 7140} 7141#endif 7142_LT_EOF 7143 # Now try linking the two files. 7144 mv conftest.$ac_objext conftstm.$ac_objext 7145 lt_globsym_save_LIBS=$LIBS 7146 lt_globsym_save_CFLAGS=$CFLAGS 7147 LIBS=conftstm.$ac_objext 7148 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7150 (eval $ac_link) 2>&5 7151 ac_status=$? 7152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7153 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7154 pipe_works=yes 7155 fi 7156 LIBS=$lt_globsym_save_LIBS 7157 CFLAGS=$lt_globsym_save_CFLAGS 7158 else 7159 echo "cannot find nm_test_func in $nlist" >&5 7160 fi 7161 else 7162 echo "cannot find nm_test_var in $nlist" >&5 7163 fi 7164 else 7165 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7166 fi 7167 else 7168 echo "$progname: failed program was:" >&5 7169 cat conftest.$ac_ext >&5 7170 fi 7171 rm -rf conftest* conftst* 7172 7173 # Do not use the global_symbol_pipe unless it works. 7174 if test yes = "$pipe_works"; then 7175 break 7176 else 7177 lt_cv_sys_global_symbol_pipe= 7178 fi 7179done 7180 ;; 7181esac 7182fi 7183 7184if test -z "$lt_cv_sys_global_symbol_pipe"; then 7185 lt_cv_sys_global_symbol_to_cdecl= 7186fi 7187if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7189printf "%s\n" "failed" >&6; } 7190else 7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7192printf "%s\n" "ok" >&6; } 7193fi 7194 7195# Response file support. 7196if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7197 nm_file_list_spec='@' 7198elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7199 nm_file_list_spec='@' 7200fi 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7239printf %s "checking for sysroot... " >&6; } 7240 7241# Check whether --with-sysroot was given. 7242if test ${with_sysroot+y} 7243then : 7244 withval=$with_sysroot; 7245else case e in #( 7246 e) with_sysroot=no ;; 7247esac 7248fi 7249 7250 7251lt_sysroot= 7252case $with_sysroot in #( 7253 yes) 7254 if test yes = "$GCC"; then 7255 # Trim trailing / since we'll always append absolute paths and we want 7256 # to avoid //, if only for less confusing output for the user. 7257 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7258 fi 7259 ;; #( 7260 /*) 7261 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7262 ;; #( 7263 no|'') 7264 ;; #( 7265 *) 7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7267printf "%s\n" "$with_sysroot" >&6; } 7268 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7269 ;; 7270esac 7271 7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7273printf "%s\n" "${lt_sysroot:-no}" >&6; } 7274 7275 7276 7277 7278 7279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7280printf %s "checking for a working dd... " >&6; } 7281if test ${ac_cv_path_lt_DD+y} 7282then : 7283 printf %s "(cached) " >&6 7284else case e in #( 7285 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7286cat conftest.i conftest.i >conftest2.i 7287: ${lt_DD:=$DD} 7288if test -z "$lt_DD"; then 7289 ac_path_lt_DD_found=false 7290 # Loop through the user's path and test for each of PROGNAME-LIST 7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7292for as_dir in $PATH 7293do 7294 IFS=$as_save_IFS 7295 case $as_dir in #((( 7296 '') as_dir=./ ;; 7297 */) ;; 7298 *) as_dir=$as_dir/ ;; 7299 esac 7300 for ac_prog in dd 7301 do 7302 for ac_exec_ext in '' $ac_executable_extensions; do 7303 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7304 as_fn_executable_p "$ac_path_lt_DD" || continue 7305if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7306 cmp -s conftest.i conftest.out \ 7307 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7308fi 7309 $ac_path_lt_DD_found && break 3 7310 done 7311 done 7312 done 7313IFS=$as_save_IFS 7314 if test -z "$ac_cv_path_lt_DD"; then 7315 : 7316 fi 7317else 7318 ac_cv_path_lt_DD=$lt_DD 7319fi 7320 7321rm -f conftest.i conftest2.i conftest.out ;; 7322esac 7323fi 7324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7325printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7326 7327 7328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7329printf %s "checking how to truncate binary pipes... " >&6; } 7330if test ${lt_cv_truncate_bin+y} 7331then : 7332 printf %s "(cached) " >&6 7333else case e in #( 7334 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7335cat conftest.i conftest.i >conftest2.i 7336lt_cv_truncate_bin= 7337if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7338 cmp -s conftest.i conftest.out \ 7339 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7340fi 7341rm -f conftest.i conftest2.i conftest.out 7342test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7343esac 7344fi 7345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7346printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7347 7348 7349 7350 7351 7352 7353 7354# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7355func_cc_basename () 7356{ 7357 for cc_temp in $*""; do 7358 case $cc_temp in 7359 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7360 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7361 \-*) ;; 7362 *) break;; 7363 esac 7364 done 7365 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7366} 7367 7368# Check whether --enable-libtool-lock was given. 7369if test ${enable_libtool_lock+y} 7370then : 7371 enableval=$enable_libtool_lock; 7372fi 7373 7374test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7375 7376# Some flags need to be propagated to the compiler or linker for good 7377# libtool support. 7378case $host in 7379ia64-*-hpux*) 7380 # Find out what ABI is being produced by ac_compile, and set mode 7381 # options accordingly. 7382 echo 'int i;' > conftest.$ac_ext 7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7384 (eval $ac_compile) 2>&5 7385 ac_status=$? 7386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7387 test $ac_status = 0; }; then 7388 case `$FILECMD conftest.$ac_objext` in 7389 *ELF-32*) 7390 HPUX_IA64_MODE=32 7391 ;; 7392 *ELF-64*) 7393 HPUX_IA64_MODE=64 7394 ;; 7395 esac 7396 fi 7397 rm -rf conftest* 7398 ;; 7399*-*-irix6*) 7400 # Find out what ABI is being produced by ac_compile, and set linker 7401 # options accordingly. 7402 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7404 (eval $ac_compile) 2>&5 7405 ac_status=$? 7406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7407 test $ac_status = 0; }; then 7408 if test yes = "$lt_cv_prog_gnu_ld"; then 7409 case `$FILECMD conftest.$ac_objext` in 7410 *32-bit*) 7411 LD="${LD-ld} -melf32bsmip" 7412 ;; 7413 *N32*) 7414 LD="${LD-ld} -melf32bmipn32" 7415 ;; 7416 *64-bit*) 7417 LD="${LD-ld} -melf64bmip" 7418 ;; 7419 esac 7420 else 7421 case `$FILECMD conftest.$ac_objext` in 7422 *32-bit*) 7423 LD="${LD-ld} -32" 7424 ;; 7425 *N32*) 7426 LD="${LD-ld} -n32" 7427 ;; 7428 *64-bit*) 7429 LD="${LD-ld} -64" 7430 ;; 7431 esac 7432 fi 7433 fi 7434 rm -rf conftest* 7435 ;; 7436 7437mips64*-*linux*) 7438 # Find out what ABI is being produced by ac_compile, and set linker 7439 # options accordingly. 7440 echo '#line '$LINENO' "configure"' > 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 emul=elf 7447 case `$FILECMD conftest.$ac_objext` in 7448 *32-bit*) 7449 emul="${emul}32" 7450 ;; 7451 *64-bit*) 7452 emul="${emul}64" 7453 ;; 7454 esac 7455 case `$FILECMD conftest.$ac_objext` in 7456 *MSB*) 7457 emul="${emul}btsmip" 7458 ;; 7459 *LSB*) 7460 emul="${emul}ltsmip" 7461 ;; 7462 esac 7463 case `$FILECMD conftest.$ac_objext` in 7464 *N32*) 7465 emul="${emul}n32" 7466 ;; 7467 esac 7468 LD="${LD-ld} -m $emul" 7469 fi 7470 rm -rf conftest* 7471 ;; 7472 7473x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7474s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7475 # Find out what ABI is being produced by ac_compile, and set linker 7476 # options accordingly. Note that the listed cases only cover the 7477 # situations where additional linker options are needed (such as when 7478 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7479 # vice versa); the common cases where no linker options are needed do 7480 # not appear in the list. 7481 echo 'int i;' > conftest.$ac_ext 7482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7483 (eval $ac_compile) 2>&5 7484 ac_status=$? 7485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7486 test $ac_status = 0; }; then 7487 case `$FILECMD conftest.o` in 7488 *32-bit*) 7489 case $host in 7490 x86_64-*kfreebsd*-gnu) 7491 LD="${LD-ld} -m elf_i386_fbsd" 7492 ;; 7493 x86_64-*linux*|x86_64-gnu*) 7494 case `$FILECMD conftest.o` in 7495 *x86-64*) 7496 LD="${LD-ld} -m elf32_x86_64" 7497 ;; 7498 *) 7499 LD="${LD-ld} -m elf_i386" 7500 ;; 7501 esac 7502 ;; 7503 powerpc64le-*linux*) 7504 LD="${LD-ld} -m elf32lppclinux" 7505 ;; 7506 powerpc64-*linux*) 7507 LD="${LD-ld} -m elf32ppclinux" 7508 ;; 7509 s390x-*linux*) 7510 LD="${LD-ld} -m elf_s390" 7511 ;; 7512 sparc64-*linux*) 7513 LD="${LD-ld} -m elf32_sparc" 7514 ;; 7515 esac 7516 ;; 7517 *64-bit*) 7518 case $host in 7519 x86_64-*kfreebsd*-gnu) 7520 LD="${LD-ld} -m elf_x86_64_fbsd" 7521 ;; 7522 x86_64-*linux*|x86_64-gnu*) 7523 LD="${LD-ld} -m elf_x86_64" 7524 ;; 7525 powerpcle-*linux*) 7526 LD="${LD-ld} -m elf64lppc" 7527 ;; 7528 powerpc-*linux*) 7529 LD="${LD-ld} -m elf64ppc" 7530 ;; 7531 s390*-*linux*|s390*-*tpf*) 7532 LD="${LD-ld} -m elf64_s390" 7533 ;; 7534 sparc*-*linux*) 7535 LD="${LD-ld} -m elf64_sparc" 7536 ;; 7537 esac 7538 ;; 7539 esac 7540 fi 7541 rm -rf conftest* 7542 ;; 7543 7544*-*-sco3.2v5*) 7545 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7546 SAVE_CFLAGS=$CFLAGS 7547 CFLAGS="$CFLAGS -belf" 7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7549printf %s "checking whether the C compiler needs -belf... " >&6; } 7550if test ${lt_cv_cc_needs_belf+y} 7551then : 7552 printf %s "(cached) " >&6 7553else case e in #( 7554 e) ac_ext=c 7555ac_cpp='$CPP $CPPFLAGS' 7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7558ac_compiler_gnu=$ac_cv_c_compiler_gnu 7559 7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7561/* end confdefs.h. */ 7562 7563int 7564main (void) 7565{ 7566 7567 ; 7568 return 0; 7569} 7570_ACEOF 7571if ac_fn_c_try_link "$LINENO" 7572then : 7573 lt_cv_cc_needs_belf=yes 7574else case e in #( 7575 e) lt_cv_cc_needs_belf=no ;; 7576esac 7577fi 7578rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7579 conftest$ac_exeext conftest.$ac_ext 7580 ac_ext=c 7581ac_cpp='$CPP $CPPFLAGS' 7582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7584ac_compiler_gnu=$ac_cv_c_compiler_gnu 7585 ;; 7586esac 7587fi 7588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7589printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7590 if test yes != "$lt_cv_cc_needs_belf"; then 7591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7592 CFLAGS=$SAVE_CFLAGS 7593 fi 7594 ;; 7595*-*solaris*) 7596 # Find out what ABI is being produced by ac_compile, and set linker 7597 # options accordingly. 7598 echo 'int i;' > conftest.$ac_ext 7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7600 (eval $ac_compile) 2>&5 7601 ac_status=$? 7602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7603 test $ac_status = 0; }; then 7604 case `$FILECMD conftest.o` in 7605 *64-bit*) 7606 case $lt_cv_prog_gnu_ld in 7607 yes*) 7608 case $host in 7609 i?86-*-solaris*|x86_64-*-solaris*) 7610 LD="${LD-ld} -m elf_x86_64" 7611 ;; 7612 sparc*-*-solaris*) 7613 LD="${LD-ld} -m elf64_sparc" 7614 ;; 7615 esac 7616 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7617 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7618 LD=${LD-ld}_sol2 7619 fi 7620 ;; 7621 *) 7622 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7623 LD="${LD-ld} -64" 7624 fi 7625 ;; 7626 esac 7627 ;; 7628 esac 7629 fi 7630 rm -rf conftest* 7631 ;; 7632esac 7633 7634need_locks=$enable_libtool_lock 7635 7636if test -n "$ac_tool_prefix"; then 7637 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7638set dummy ${ac_tool_prefix}mt; ac_word=$2 7639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7640printf %s "checking for $ac_word... " >&6; } 7641if test ${ac_cv_prog_MANIFEST_TOOL+y} 7642then : 7643 printf %s "(cached) " >&6 7644else case e in #( 7645 e) if test -n "$MANIFEST_TOOL"; then 7646 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7647else 7648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7649for as_dir in $PATH 7650do 7651 IFS=$as_save_IFS 7652 case $as_dir in #((( 7653 '') as_dir=./ ;; 7654 */) ;; 7655 *) as_dir=$as_dir/ ;; 7656 esac 7657 for ac_exec_ext in '' $ac_executable_extensions; do 7658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7659 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7661 break 2 7662 fi 7663done 7664 done 7665IFS=$as_save_IFS 7666 7667fi ;; 7668esac 7669fi 7670MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7671if test -n "$MANIFEST_TOOL"; then 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7673printf "%s\n" "$MANIFEST_TOOL" >&6; } 7674else 7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7676printf "%s\n" "no" >&6; } 7677fi 7678 7679 7680fi 7681if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7682 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7683 # Extract the first word of "mt", so it can be a program name with args. 7684set dummy mt; ac_word=$2 7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7686printf %s "checking for $ac_word... " >&6; } 7687if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7688then : 7689 printf %s "(cached) " >&6 7690else case e in #( 7691 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7692 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7693else 7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7695for as_dir in $PATH 7696do 7697 IFS=$as_save_IFS 7698 case $as_dir in #((( 7699 '') as_dir=./ ;; 7700 */) ;; 7701 *) as_dir=$as_dir/ ;; 7702 esac 7703 for ac_exec_ext in '' $ac_executable_extensions; do 7704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7705 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7707 break 2 7708 fi 7709done 7710 done 7711IFS=$as_save_IFS 7712 7713fi ;; 7714esac 7715fi 7716ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7717if test -n "$ac_ct_MANIFEST_TOOL"; then 7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7719printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7720else 7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7722printf "%s\n" "no" >&6; } 7723fi 7724 7725 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7726 MANIFEST_TOOL=":" 7727 else 7728 case $cross_compiling:$ac_tool_warned in 7729yes:) 7730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7731printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7732ac_tool_warned=yes ;; 7733esac 7734 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7735 fi 7736else 7737 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7738fi 7739 7740test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7742printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7743if test ${lt_cv_path_manifest_tool+y} 7744then : 7745 printf %s "(cached) " >&6 7746else case e in #( 7747 e) lt_cv_path_manifest_tool=no 7748 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7749 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7750 cat conftest.err >&5 7751 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7752 lt_cv_path_manifest_tool=yes 7753 fi 7754 rm -f conftest* ;; 7755esac 7756fi 7757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 7758printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 7759if test yes != "$lt_cv_path_manifest_tool"; then 7760 MANIFEST_TOOL=: 7761fi 7762 7763 7764 7765 7766 7767 7768 case $host_os in 7769 rhapsody* | darwin*) 7770 if test -n "$ac_tool_prefix"; then 7771 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7772set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7774printf %s "checking for $ac_word... " >&6; } 7775if test ${ac_cv_prog_DSYMUTIL+y} 7776then : 7777 printf %s "(cached) " >&6 7778else case e in #( 7779 e) if test -n "$DSYMUTIL"; then 7780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7781else 7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7783for as_dir in $PATH 7784do 7785 IFS=$as_save_IFS 7786 case $as_dir in #((( 7787 '') as_dir=./ ;; 7788 */) ;; 7789 *) as_dir=$as_dir/ ;; 7790 esac 7791 for ac_exec_ext in '' $ac_executable_extensions; do 7792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7793 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7795 break 2 7796 fi 7797done 7798 done 7799IFS=$as_save_IFS 7800 7801fi ;; 7802esac 7803fi 7804DSYMUTIL=$ac_cv_prog_DSYMUTIL 7805if test -n "$DSYMUTIL"; then 7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7807printf "%s\n" "$DSYMUTIL" >&6; } 7808else 7809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7810printf "%s\n" "no" >&6; } 7811fi 7812 7813 7814fi 7815if test -z "$ac_cv_prog_DSYMUTIL"; then 7816 ac_ct_DSYMUTIL=$DSYMUTIL 7817 # Extract the first word of "dsymutil", so it can be a program name with args. 7818set dummy dsymutil; ac_word=$2 7819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7820printf %s "checking for $ac_word... " >&6; } 7821if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7822then : 7823 printf %s "(cached) " >&6 7824else case e in #( 7825 e) if test -n "$ac_ct_DSYMUTIL"; then 7826 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7827else 7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7829for as_dir in $PATH 7830do 7831 IFS=$as_save_IFS 7832 case $as_dir in #((( 7833 '') as_dir=./ ;; 7834 */) ;; 7835 *) as_dir=$as_dir/ ;; 7836 esac 7837 for ac_exec_ext in '' $ac_executable_extensions; do 7838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7839 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7841 break 2 7842 fi 7843done 7844 done 7845IFS=$as_save_IFS 7846 7847fi ;; 7848esac 7849fi 7850ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7851if test -n "$ac_ct_DSYMUTIL"; then 7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7853printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7854else 7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7856printf "%s\n" "no" >&6; } 7857fi 7858 7859 if test "x$ac_ct_DSYMUTIL" = x; then 7860 DSYMUTIL=":" 7861 else 7862 case $cross_compiling:$ac_tool_warned in 7863yes:) 7864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7865printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7866ac_tool_warned=yes ;; 7867esac 7868 DSYMUTIL=$ac_ct_DSYMUTIL 7869 fi 7870else 7871 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7872fi 7873 7874 if test -n "$ac_tool_prefix"; then 7875 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7876set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7878printf %s "checking for $ac_word... " >&6; } 7879if test ${ac_cv_prog_NMEDIT+y} 7880then : 7881 printf %s "(cached) " >&6 7882else case e in #( 7883 e) if test -n "$NMEDIT"; then 7884 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7885else 7886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7887for as_dir in $PATH 7888do 7889 IFS=$as_save_IFS 7890 case $as_dir in #((( 7891 '') as_dir=./ ;; 7892 */) ;; 7893 *) as_dir=$as_dir/ ;; 7894 esac 7895 for ac_exec_ext in '' $ac_executable_extensions; do 7896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7897 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7899 break 2 7900 fi 7901done 7902 done 7903IFS=$as_save_IFS 7904 7905fi ;; 7906esac 7907fi 7908NMEDIT=$ac_cv_prog_NMEDIT 7909if test -n "$NMEDIT"; then 7910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7911printf "%s\n" "$NMEDIT" >&6; } 7912else 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7914printf "%s\n" "no" >&6; } 7915fi 7916 7917 7918fi 7919if test -z "$ac_cv_prog_NMEDIT"; then 7920 ac_ct_NMEDIT=$NMEDIT 7921 # Extract the first word of "nmedit", so it can be a program name with args. 7922set dummy nmedit; ac_word=$2 7923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7924printf %s "checking for $ac_word... " >&6; } 7925if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7926then : 7927 printf %s "(cached) " >&6 7928else case e in #( 7929 e) if test -n "$ac_ct_NMEDIT"; then 7930 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7931else 7932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7933for as_dir in $PATH 7934do 7935 IFS=$as_save_IFS 7936 case $as_dir in #((( 7937 '') as_dir=./ ;; 7938 */) ;; 7939 *) as_dir=$as_dir/ ;; 7940 esac 7941 for ac_exec_ext in '' $ac_executable_extensions; do 7942 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7943 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7945 break 2 7946 fi 7947done 7948 done 7949IFS=$as_save_IFS 7950 7951fi ;; 7952esac 7953fi 7954ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7955if test -n "$ac_ct_NMEDIT"; then 7956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7957printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7958else 7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7960printf "%s\n" "no" >&6; } 7961fi 7962 7963 if test "x$ac_ct_NMEDIT" = x; then 7964 NMEDIT=":" 7965 else 7966 case $cross_compiling:$ac_tool_warned in 7967yes:) 7968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7969printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7970ac_tool_warned=yes ;; 7971esac 7972 NMEDIT=$ac_ct_NMEDIT 7973 fi 7974else 7975 NMEDIT="$ac_cv_prog_NMEDIT" 7976fi 7977 7978 if test -n "$ac_tool_prefix"; then 7979 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7980set dummy ${ac_tool_prefix}lipo; ac_word=$2 7981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7982printf %s "checking for $ac_word... " >&6; } 7983if test ${ac_cv_prog_LIPO+y} 7984then : 7985 printf %s "(cached) " >&6 7986else case e in #( 7987 e) if test -n "$LIPO"; then 7988 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7989else 7990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7991for as_dir in $PATH 7992do 7993 IFS=$as_save_IFS 7994 case $as_dir in #((( 7995 '') as_dir=./ ;; 7996 */) ;; 7997 *) as_dir=$as_dir/ ;; 7998 esac 7999 for ac_exec_ext in '' $ac_executable_extensions; do 8000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8001 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8003 break 2 8004 fi 8005done 8006 done 8007IFS=$as_save_IFS 8008 8009fi ;; 8010esac 8011fi 8012LIPO=$ac_cv_prog_LIPO 8013if test -n "$LIPO"; then 8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8015printf "%s\n" "$LIPO" >&6; } 8016else 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8018printf "%s\n" "no" >&6; } 8019fi 8020 8021 8022fi 8023if test -z "$ac_cv_prog_LIPO"; then 8024 ac_ct_LIPO=$LIPO 8025 # Extract the first word of "lipo", so it can be a program name with args. 8026set dummy lipo; ac_word=$2 8027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8028printf %s "checking for $ac_word... " >&6; } 8029if test ${ac_cv_prog_ac_ct_LIPO+y} 8030then : 8031 printf %s "(cached) " >&6 8032else case e in #( 8033 e) if test -n "$ac_ct_LIPO"; then 8034 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8035else 8036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8037for as_dir in $PATH 8038do 8039 IFS=$as_save_IFS 8040 case $as_dir in #((( 8041 '') as_dir=./ ;; 8042 */) ;; 8043 *) as_dir=$as_dir/ ;; 8044 esac 8045 for ac_exec_ext in '' $ac_executable_extensions; do 8046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8047 ac_cv_prog_ac_ct_LIPO="lipo" 8048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8049 break 2 8050 fi 8051done 8052 done 8053IFS=$as_save_IFS 8054 8055fi ;; 8056esac 8057fi 8058ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8059if test -n "$ac_ct_LIPO"; then 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8061printf "%s\n" "$ac_ct_LIPO" >&6; } 8062else 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064printf "%s\n" "no" >&6; } 8065fi 8066 8067 if test "x$ac_ct_LIPO" = x; then 8068 LIPO=":" 8069 else 8070 case $cross_compiling:$ac_tool_warned in 8071yes:) 8072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8073printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8074ac_tool_warned=yes ;; 8075esac 8076 LIPO=$ac_ct_LIPO 8077 fi 8078else 8079 LIPO="$ac_cv_prog_LIPO" 8080fi 8081 8082 if test -n "$ac_tool_prefix"; then 8083 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8084set dummy ${ac_tool_prefix}otool; ac_word=$2 8085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8086printf %s "checking for $ac_word... " >&6; } 8087if test ${ac_cv_prog_OTOOL+y} 8088then : 8089 printf %s "(cached) " >&6 8090else case e in #( 8091 e) if test -n "$OTOOL"; then 8092 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8093else 8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8095for as_dir in $PATH 8096do 8097 IFS=$as_save_IFS 8098 case $as_dir in #((( 8099 '') as_dir=./ ;; 8100 */) ;; 8101 *) as_dir=$as_dir/ ;; 8102 esac 8103 for ac_exec_ext in '' $ac_executable_extensions; do 8104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8105 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8107 break 2 8108 fi 8109done 8110 done 8111IFS=$as_save_IFS 8112 8113fi ;; 8114esac 8115fi 8116OTOOL=$ac_cv_prog_OTOOL 8117if test -n "$OTOOL"; then 8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8119printf "%s\n" "$OTOOL" >&6; } 8120else 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122printf "%s\n" "no" >&6; } 8123fi 8124 8125 8126fi 8127if test -z "$ac_cv_prog_OTOOL"; then 8128 ac_ct_OTOOL=$OTOOL 8129 # Extract the first word of "otool", so it can be a program name with args. 8130set dummy otool; ac_word=$2 8131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8132printf %s "checking for $ac_word... " >&6; } 8133if test ${ac_cv_prog_ac_ct_OTOOL+y} 8134then : 8135 printf %s "(cached) " >&6 8136else case e in #( 8137 e) if test -n "$ac_ct_OTOOL"; then 8138 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8139else 8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141for as_dir in $PATH 8142do 8143 IFS=$as_save_IFS 8144 case $as_dir in #((( 8145 '') as_dir=./ ;; 8146 */) ;; 8147 *) as_dir=$as_dir/ ;; 8148 esac 8149 for ac_exec_ext in '' $ac_executable_extensions; do 8150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8151 ac_cv_prog_ac_ct_OTOOL="otool" 8152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8153 break 2 8154 fi 8155done 8156 done 8157IFS=$as_save_IFS 8158 8159fi ;; 8160esac 8161fi 8162ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8163if test -n "$ac_ct_OTOOL"; then 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8165printf "%s\n" "$ac_ct_OTOOL" >&6; } 8166else 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8168printf "%s\n" "no" >&6; } 8169fi 8170 8171 if test "x$ac_ct_OTOOL" = x; then 8172 OTOOL=":" 8173 else 8174 case $cross_compiling:$ac_tool_warned in 8175yes:) 8176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8177printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8178ac_tool_warned=yes ;; 8179esac 8180 OTOOL=$ac_ct_OTOOL 8181 fi 8182else 8183 OTOOL="$ac_cv_prog_OTOOL" 8184fi 8185 8186 if test -n "$ac_tool_prefix"; then 8187 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8188set dummy ${ac_tool_prefix}otool64; ac_word=$2 8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8190printf %s "checking for $ac_word... " >&6; } 8191if test ${ac_cv_prog_OTOOL64+y} 8192then : 8193 printf %s "(cached) " >&6 8194else case e in #( 8195 e) if test -n "$OTOOL64"; then 8196 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8197else 8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8199for as_dir in $PATH 8200do 8201 IFS=$as_save_IFS 8202 case $as_dir in #((( 8203 '') as_dir=./ ;; 8204 */) ;; 8205 *) as_dir=$as_dir/ ;; 8206 esac 8207 for ac_exec_ext in '' $ac_executable_extensions; do 8208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8209 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8211 break 2 8212 fi 8213done 8214 done 8215IFS=$as_save_IFS 8216 8217fi ;; 8218esac 8219fi 8220OTOOL64=$ac_cv_prog_OTOOL64 8221if test -n "$OTOOL64"; then 8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8223printf "%s\n" "$OTOOL64" >&6; } 8224else 8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8226printf "%s\n" "no" >&6; } 8227fi 8228 8229 8230fi 8231if test -z "$ac_cv_prog_OTOOL64"; then 8232 ac_ct_OTOOL64=$OTOOL64 8233 # Extract the first word of "otool64", so it can be a program name with args. 8234set dummy otool64; ac_word=$2 8235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8236printf %s "checking for $ac_word... " >&6; } 8237if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8238then : 8239 printf %s "(cached) " >&6 8240else case e in #( 8241 e) if test -n "$ac_ct_OTOOL64"; then 8242 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8243else 8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8245for as_dir in $PATH 8246do 8247 IFS=$as_save_IFS 8248 case $as_dir in #((( 8249 '') as_dir=./ ;; 8250 */) ;; 8251 *) as_dir=$as_dir/ ;; 8252 esac 8253 for ac_exec_ext in '' $ac_executable_extensions; do 8254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8255 ac_cv_prog_ac_ct_OTOOL64="otool64" 8256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8257 break 2 8258 fi 8259done 8260 done 8261IFS=$as_save_IFS 8262 8263fi ;; 8264esac 8265fi 8266ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8267if test -n "$ac_ct_OTOOL64"; then 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8269printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8270else 8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8272printf "%s\n" "no" >&6; } 8273fi 8274 8275 if test "x$ac_ct_OTOOL64" = x; then 8276 OTOOL64=":" 8277 else 8278 case $cross_compiling:$ac_tool_warned in 8279yes:) 8280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8281printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8282ac_tool_warned=yes ;; 8283esac 8284 OTOOL64=$ac_ct_OTOOL64 8285 fi 8286else 8287 OTOOL64="$ac_cv_prog_OTOOL64" 8288fi 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8317printf %s "checking for -single_module linker flag... " >&6; } 8318if test ${lt_cv_apple_cc_single_mod+y} 8319then : 8320 printf %s "(cached) " >&6 8321else case e in #( 8322 e) lt_cv_apple_cc_single_mod=no 8323 if test -z "$LT_MULTI_MODULE"; then 8324 # By default we will add the -single_module flag. You can override 8325 # by either setting the environment variable LT_MULTI_MODULE 8326 # non-empty at configure time, or by adding -multi_module to the 8327 # link flags. 8328 rm -rf libconftest.dylib* 8329 echo "int foo(void){return 1;}" > conftest.c 8330 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8331-dynamiclib -Wl,-single_module conftest.c" >&5 8332 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8333 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8334 _lt_result=$? 8335 # If there is a non-empty error log, and "single_module" 8336 # appears in it, assume the flag caused a linker warning 8337 if test -s conftest.err && $GREP single_module conftest.err; then 8338 cat conftest.err >&5 8339 # Otherwise, if the output was created with a 0 exit code from 8340 # the compiler, it worked. 8341 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8342 lt_cv_apple_cc_single_mod=yes 8343 else 8344 cat conftest.err >&5 8345 fi 8346 rm -rf libconftest.dylib* 8347 rm -f conftest.* 8348 fi ;; 8349esac 8350fi 8351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8352printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8353 8354 # Feature test to disable chained fixups since it is not 8355 # compatible with '-undefined dynamic_lookup' 8356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8357printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8358if test ${lt_cv_support_no_fixup_chains+y} 8359then : 8360 printf %s "(cached) " >&6 8361else case e in #( 8362 e) save_LDFLAGS=$LDFLAGS 8363 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8365/* end confdefs.h. */ 8366 8367int 8368main (void) 8369{ 8370 8371 ; 8372 return 0; 8373} 8374_ACEOF 8375if ac_fn_c_try_link "$LINENO" 8376then : 8377 lt_cv_support_no_fixup_chains=yes 8378else case e in #( 8379 e) lt_cv_support_no_fixup_chains=no 8380 ;; 8381esac 8382fi 8383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8384 conftest$ac_exeext conftest.$ac_ext 8385 LDFLAGS=$save_LDFLAGS 8386 8387 ;; 8388esac 8389fi 8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8391printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8392 8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8394printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8395if test ${lt_cv_ld_exported_symbols_list+y} 8396then : 8397 printf %s "(cached) " >&6 8398else case e in #( 8399 e) lt_cv_ld_exported_symbols_list=no 8400 save_LDFLAGS=$LDFLAGS 8401 echo "_main" > conftest.sym 8402 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405 8406int 8407main (void) 8408{ 8409 8410 ; 8411 return 0; 8412} 8413_ACEOF 8414if ac_fn_c_try_link "$LINENO" 8415then : 8416 lt_cv_ld_exported_symbols_list=yes 8417else case e in #( 8418 e) lt_cv_ld_exported_symbols_list=no ;; 8419esac 8420fi 8421rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8422 conftest$ac_exeext conftest.$ac_ext 8423 LDFLAGS=$save_LDFLAGS 8424 ;; 8425esac 8426fi 8427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8428printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8429 8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8431printf %s "checking for -force_load linker flag... " >&6; } 8432if test ${lt_cv_ld_force_load+y} 8433then : 8434 printf %s "(cached) " >&6 8435else case e in #( 8436 e) lt_cv_ld_force_load=no 8437 cat > conftest.c << _LT_EOF 8438int forced_loaded() { return 2;} 8439_LT_EOF 8440 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8441 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8442 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8443 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8444 echo "$RANLIB libconftest.a" >&5 8445 $RANLIB libconftest.a 2>&5 8446 cat > conftest.c << _LT_EOF 8447int main(void) { return 0;} 8448_LT_EOF 8449 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8450 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8451 _lt_result=$? 8452 if test -s conftest.err && $GREP force_load conftest.err; then 8453 cat conftest.err >&5 8454 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8455 lt_cv_ld_force_load=yes 8456 else 8457 cat conftest.err >&5 8458 fi 8459 rm -f conftest.err libconftest.a conftest conftest.c 8460 rm -rf conftest.dSYM 8461 ;; 8462esac 8463fi 8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8465printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8466 case $host_os in 8467 rhapsody* | darwin1.[012]) 8468 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8469 darwin1.*) 8470 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8471 darwin*) 8472 case $MACOSX_DEPLOYMENT_TARGET,$host in 8473 10.[012],*|,*powerpc*-darwin[5-8]*) 8474 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8475 *) 8476 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8477 if test yes = "$lt_cv_support_no_fixup_chains"; then 8478 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8479 fi 8480 ;; 8481 esac 8482 ;; 8483 esac 8484 if test yes = "$lt_cv_apple_cc_single_mod"; then 8485 _lt_dar_single_mod='$single_module' 8486 fi 8487 _lt_dar_needs_single_mod=no 8488 case $host_os in 8489 rhapsody* | darwin1.*) 8490 _lt_dar_needs_single_mod=yes ;; 8491 darwin*) 8492 # When targeting Mac OS X 10.4 (darwin 8) or later, 8493 # -single_module is the default and -multi_module is unsupported. 8494 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8495 # target any OS version that needs -single_module. 8496 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8497 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8498 _lt_dar_needs_single_mod=yes ;; 8499 esac 8500 ;; 8501 esac 8502 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8503 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8504 else 8505 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8506 fi 8507 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8508 _lt_dsymutil='~$DSYMUTIL $lib || :' 8509 else 8510 _lt_dsymutil= 8511 fi 8512 ;; 8513 esac 8514 8515# func_munge_path_list VARIABLE PATH 8516# ----------------------------------- 8517# VARIABLE is name of variable containing _space_ separated list of 8518# directories to be munged by the contents of PATH, which is string 8519# having a format: 8520# "DIR[:DIR]:" 8521# string "DIR[ DIR]" will be prepended to VARIABLE 8522# ":DIR[:DIR]" 8523# string "DIR[ DIR]" will be appended to VARIABLE 8524# "DIRP[:DIRP]::[DIRA:]DIRA" 8525# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8526# "DIRA[ DIRA]" will be appended to VARIABLE 8527# "DIR[:DIR]" 8528# VARIABLE will be replaced by "DIR[ DIR]" 8529func_munge_path_list () 8530{ 8531 case x$2 in 8532 x) 8533 ;; 8534 *:) 8535 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8536 ;; 8537 x:*) 8538 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8539 ;; 8540 *::*) 8541 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8542 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8543 ;; 8544 *) 8545 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8546 ;; 8547 esac 8548} 8549 8550ac_header= ac_cache= 8551for ac_item in $ac_header_c_list 8552do 8553 if test $ac_cache; then 8554 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8555 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8556 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8557 fi 8558 ac_header= ac_cache= 8559 elif test $ac_header; then 8560 ac_cache=$ac_item 8561 else 8562 ac_header=$ac_item 8563 fi 8564done 8565 8566 8567 8568 8569 8570 8571 8572 8573if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8574then : 8575 8576printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8577 8578fi 8579ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8580" 8581if test "x$ac_cv_header_dlfcn_h" = xyes 8582then : 8583 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8584 8585fi 8586 8587 8588 8589 8590 8591# Set options 8592 8593 8594 8595 enable_dlopen=no 8596 8597 8598 enable_win32_dll=no 8599 8600 8601 # Check whether --enable-shared was given. 8602if test ${enable_shared+y} 8603then : 8604 enableval=$enable_shared; p=${PACKAGE-default} 8605 case $enableval in 8606 yes) enable_shared=yes ;; 8607 no) enable_shared=no ;; 8608 *) 8609 enable_shared=no 8610 # Look at the argument we got. We use all the common list separators. 8611 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8612 for pkg in $enableval; do 8613 IFS=$lt_save_ifs 8614 if test "X$pkg" = "X$p"; then 8615 enable_shared=yes 8616 fi 8617 done 8618 IFS=$lt_save_ifs 8619 ;; 8620 esac 8621else case e in #( 8622 e) enable_shared=yes ;; 8623esac 8624fi 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 # Check whether --enable-static was given. 8635if test ${enable_static+y} 8636then : 8637 enableval=$enable_static; p=${PACKAGE-default} 8638 case $enableval in 8639 yes) enable_static=yes ;; 8640 no) enable_static=no ;; 8641 *) 8642 enable_static=no 8643 # Look at the argument we got. We use all the common list separators. 8644 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8645 for pkg in $enableval; do 8646 IFS=$lt_save_ifs 8647 if test "X$pkg" = "X$p"; then 8648 enable_static=yes 8649 fi 8650 done 8651 IFS=$lt_save_ifs 8652 ;; 8653 esac 8654else case e in #( 8655 e) enable_static=yes ;; 8656esac 8657fi 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 # Check whether --enable-pic was given. 8668if test ${enable_pic+y} 8669then : 8670 enableval=$enable_pic; lt_p=${PACKAGE-default} 8671 case $enableval in 8672 yes|no) pic_mode=$enableval ;; 8673 *) 8674 pic_mode=default 8675 # Look at the argument we got. We use all the common list separators. 8676 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8677 for lt_pkg in $enableval; do 8678 IFS=$lt_save_ifs 8679 if test "X$lt_pkg" = "X$lt_p"; then 8680 pic_mode=yes 8681 fi 8682 done 8683 IFS=$lt_save_ifs 8684 ;; 8685 esac 8686else case e in #( 8687 e) # Check whether --with-pic was given. 8688if test ${with_pic+y} 8689then : 8690 withval=$with_pic; lt_p=${PACKAGE-default} 8691 case $withval in 8692 yes|no) pic_mode=$withval ;; 8693 *) 8694 pic_mode=default 8695 # Look at the argument we got. We use all the common list separators. 8696 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8697 for lt_pkg in $withval; do 8698 IFS=$lt_save_ifs 8699 if test "X$lt_pkg" = "X$lt_p"; then 8700 pic_mode=yes 8701 fi 8702 done 8703 IFS=$lt_save_ifs 8704 ;; 8705 esac 8706else case e in #( 8707 e) pic_mode=default ;; 8708esac 8709fi 8710 8711 ;; 8712esac 8713fi 8714 8715 8716 8717 8718 8719 8720 8721 8722 # Check whether --enable-fast-install was given. 8723if test ${enable_fast_install+y} 8724then : 8725 enableval=$enable_fast_install; p=${PACKAGE-default} 8726 case $enableval in 8727 yes) enable_fast_install=yes ;; 8728 no) enable_fast_install=no ;; 8729 *) 8730 enable_fast_install=no 8731 # Look at the argument we got. We use all the common list separators. 8732 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8733 for pkg in $enableval; do 8734 IFS=$lt_save_ifs 8735 if test "X$pkg" = "X$p"; then 8736 enable_fast_install=yes 8737 fi 8738 done 8739 IFS=$lt_save_ifs 8740 ;; 8741 esac 8742else case e in #( 8743 e) enable_fast_install=yes ;; 8744esac 8745fi 8746 8747 8748 8749 8750 8751 8752 8753 8754 shared_archive_member_spec= 8755case $host,$enable_shared in 8756power*-*-aix[5-9]*,yes) 8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8758printf %s "checking which variant of shared library versioning to provide... " >&6; } 8759 # Check whether --enable-aix-soname was given. 8760if test ${enable_aix_soname+y} 8761then : 8762 enableval=$enable_aix_soname; case $enableval in 8763 aix|svr4|both) 8764 ;; 8765 *) 8766 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 8767 ;; 8768 esac 8769 lt_cv_with_aix_soname=$enable_aix_soname 8770else case e in #( 8771 e) # Check whether --with-aix-soname was given. 8772if test ${with_aix_soname+y} 8773then : 8774 withval=$with_aix_soname; case $withval in 8775 aix|svr4|both) 8776 ;; 8777 *) 8778 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8779 ;; 8780 esac 8781 lt_cv_with_aix_soname=$with_aix_soname 8782else case e in #( 8783 e) if test ${lt_cv_with_aix_soname+y} 8784then : 8785 printf %s "(cached) " >&6 8786else case e in #( 8787 e) lt_cv_with_aix_soname=aix ;; 8788esac 8789fi 8790 ;; 8791esac 8792fi 8793 8794 enable_aix_soname=$lt_cv_with_aix_soname ;; 8795esac 8796fi 8797 8798 with_aix_soname=$enable_aix_soname 8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8800printf "%s\n" "$with_aix_soname" >&6; } 8801 if test aix != "$with_aix_soname"; then 8802 # For the AIX way of multilib, we name the shared archive member 8803 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8804 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8805 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8806 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8807 if test 64 = "${OBJECT_MODE-32}"; then 8808 shared_archive_member_spec=shr_64 8809 else 8810 shared_archive_member_spec=shr 8811 fi 8812 fi 8813 ;; 8814*) 8815 with_aix_soname=aix 8816 ;; 8817esac 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828# This can be used to rebuild libtool when needed 8829LIBTOOL_DEPS=$ltmain 8830 8831# Always use our own libtool. 8832LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863test -z "$LN_S" && LN_S="ln -s" 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878if test -n "${ZSH_VERSION+set}"; then 8879 setopt NO_GLOB_SUBST 8880fi 8881 8882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8883printf %s "checking for objdir... " >&6; } 8884if test ${lt_cv_objdir+y} 8885then : 8886 printf %s "(cached) " >&6 8887else case e in #( 8888 e) rm -f .libs 2>/dev/null 8889mkdir .libs 2>/dev/null 8890if test -d .libs; then 8891 lt_cv_objdir=.libs 8892else 8893 # MS-DOS does not allow filenames that begin with a dot. 8894 lt_cv_objdir=_libs 8895fi 8896rmdir .libs 2>/dev/null ;; 8897esac 8898fi 8899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8900printf "%s\n" "$lt_cv_objdir" >&6; } 8901objdir=$lt_cv_objdir 8902 8903 8904 8905 8906 8907printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8908 8909 8910 8911 8912case $host_os in 8913aix3*) 8914 # AIX sometimes has problems with the GCC collect2 program. For some 8915 # reason, if we set the COLLECT_NAMES environment variable, the problems 8916 # vanish in a puff of smoke. 8917 if test set != "${COLLECT_NAMES+set}"; then 8918 COLLECT_NAMES= 8919 export COLLECT_NAMES 8920 fi 8921 ;; 8922esac 8923 8924# Global variables: 8925ofile=libtool 8926can_build_shared=yes 8927 8928# All known linkers require a '.a' archive for static linking (except MSVC and 8929# ICC, which need '.lib'). 8930libext=a 8931 8932with_gnu_ld=$lt_cv_prog_gnu_ld 8933 8934old_CC=$CC 8935old_CFLAGS=$CFLAGS 8936 8937# Set sane defaults for various variables 8938test -z "$CC" && CC=cc 8939test -z "$LTCC" && LTCC=$CC 8940test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8941test -z "$LD" && LD=ld 8942test -z "$ac_objext" && ac_objext=o 8943 8944func_cc_basename $compiler 8945cc_basename=$func_cc_basename_result 8946 8947 8948# Only perform the check for file, if the check method requires it 8949test -z "$MAGIC_CMD" && MAGIC_CMD=file 8950case $deplibs_check_method in 8951file_magic*) 8952 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8954printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8955if test ${lt_cv_path_MAGIC_CMD+y} 8956then : 8957 printf %s "(cached) " >&6 8958else case e in #( 8959 e) case $MAGIC_CMD in 8960[\\/*] | ?:[\\/]*) 8961 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8962 ;; 8963*) 8964 lt_save_MAGIC_CMD=$MAGIC_CMD 8965 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8966 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8967 for ac_dir in $ac_dummy; do 8968 IFS=$lt_save_ifs 8969 test -z "$ac_dir" && ac_dir=. 8970 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8971 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8972 if test -n "$file_magic_test_file"; then 8973 case $deplibs_check_method in 8974 "file_magic "*) 8975 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8976 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8977 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8978 $EGREP "$file_magic_regex" > /dev/null; then 8979 : 8980 else 8981 cat <<_LT_EOF 1>&2 8982 8983*** Warning: the command libtool uses to detect shared libraries, 8984*** $file_magic_cmd, produces output that libtool cannot recognize. 8985*** The result is that libtool may fail to recognize shared libraries 8986*** as such. This will affect the creation of libtool libraries that 8987*** depend on shared libraries, but programs linked with such libtool 8988*** libraries will work regardless of this problem. Nevertheless, you 8989*** may want to report the problem to your system manager and/or to 8990*** bug-libtool@gnu.org 8991 8992_LT_EOF 8993 fi ;; 8994 esac 8995 fi 8996 break 8997 fi 8998 done 8999 IFS=$lt_save_ifs 9000 MAGIC_CMD=$lt_save_MAGIC_CMD 9001 ;; 9002esac ;; 9003esac 9004fi 9005 9006MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9007if test -n "$MAGIC_CMD"; then 9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9009printf "%s\n" "$MAGIC_CMD" >&6; } 9010else 9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9012printf "%s\n" "no" >&6; } 9013fi 9014 9015 9016 9017 9018 9019if test -z "$lt_cv_path_MAGIC_CMD"; then 9020 if test -n "$ac_tool_prefix"; then 9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9022printf %s "checking for file... " >&6; } 9023if test ${lt_cv_path_MAGIC_CMD+y} 9024then : 9025 printf %s "(cached) " >&6 9026else case e in #( 9027 e) case $MAGIC_CMD in 9028[\\/*] | ?:[\\/]*) 9029 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9030 ;; 9031*) 9032 lt_save_MAGIC_CMD=$MAGIC_CMD 9033 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9034 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9035 for ac_dir in $ac_dummy; do 9036 IFS=$lt_save_ifs 9037 test -z "$ac_dir" && ac_dir=. 9038 if test -f "$ac_dir/file"; then 9039 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9040 if test -n "$file_magic_test_file"; then 9041 case $deplibs_check_method in 9042 "file_magic "*) 9043 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9044 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9046 $EGREP "$file_magic_regex" > /dev/null; then 9047 : 9048 else 9049 cat <<_LT_EOF 1>&2 9050 9051*** Warning: the command libtool uses to detect shared libraries, 9052*** $file_magic_cmd, produces output that libtool cannot recognize. 9053*** The result is that libtool may fail to recognize shared libraries 9054*** as such. This will affect the creation of libtool libraries that 9055*** depend on shared libraries, but programs linked with such libtool 9056*** libraries will work regardless of this problem. Nevertheless, you 9057*** may want to report the problem to your system manager and/or to 9058*** bug-libtool@gnu.org 9059 9060_LT_EOF 9061 fi ;; 9062 esac 9063 fi 9064 break 9065 fi 9066 done 9067 IFS=$lt_save_ifs 9068 MAGIC_CMD=$lt_save_MAGIC_CMD 9069 ;; 9070esac ;; 9071esac 9072fi 9073 9074MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9075if test -n "$MAGIC_CMD"; then 9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9077printf "%s\n" "$MAGIC_CMD" >&6; } 9078else 9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9080printf "%s\n" "no" >&6; } 9081fi 9082 9083 9084 else 9085 MAGIC_CMD=: 9086 fi 9087fi 9088 9089 fi 9090 ;; 9091esac 9092 9093# Use C for the default configuration in the libtool script 9094 9095lt_save_CC=$CC 9096ac_ext=c 9097ac_cpp='$CPP $CPPFLAGS' 9098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9100ac_compiler_gnu=$ac_cv_c_compiler_gnu 9101 9102 9103# Source file extension for C test sources. 9104ac_ext=c 9105 9106# Object file extension for compiled C test sources. 9107objext=o 9108objext=$objext 9109 9110# Code to be used in simple compile tests 9111lt_simple_compile_test_code="int some_variable = 0;" 9112 9113# Code to be used in simple link tests 9114lt_simple_link_test_code='int main(void){return(0);}' 9115 9116 9117 9118 9119 9120 9121 9122# If no C compiler was specified, use CC. 9123LTCC=${LTCC-"$CC"} 9124 9125# If no C compiler flags were specified, use CFLAGS. 9126LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9127 9128# Allow CC to be a program name with arguments. 9129compiler=$CC 9130 9131# Save the default compiler, since it gets overwritten when the other 9132# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9133compiler_DEFAULT=$CC 9134 9135# save warnings/boilerplate of simple test code 9136ac_outfile=conftest.$ac_objext 9137echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9138eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9139_lt_compiler_boilerplate=`cat conftest.err` 9140$RM conftest* 9141 9142ac_outfile=conftest.$ac_objext 9143echo "$lt_simple_link_test_code" >conftest.$ac_ext 9144eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9145_lt_linker_boilerplate=`cat conftest.err` 9146$RM -r conftest* 9147 9148 9149## CAVEAT EMPTOR: 9150## There is no encapsulation within the following macros, do not change 9151## the running order or otherwise move them around unless you know exactly 9152## what you are doing... 9153if test -n "$compiler"; then 9154 9155lt_prog_compiler_no_builtin_flag= 9156 9157if test yes = "$GCC"; then 9158 case $cc_basename in 9159 nvcc*) 9160 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9161 *) 9162 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9163 esac 9164 9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9166printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9167if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9168then : 9169 printf %s "(cached) " >&6 9170else case e in #( 9171 e) lt_cv_prog_compiler_rtti_exceptions=no 9172 ac_outfile=conftest.$ac_objext 9173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9174 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9175 # Insert the option either (1) after the last *FLAGS variable, or 9176 # (2) before a word containing "conftest.", or (3) at the end. 9177 # Note that $ac_compile itself does not contain backslashes and begins 9178 # with a dollar sign (not a hyphen), so the echo should work correctly. 9179 # The option is referenced via a variable to avoid confusing sed. 9180 lt_compile=`echo "$ac_compile" | $SED \ 9181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9183 -e 's:$: $lt_compiler_flag:'` 9184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9185 (eval "$lt_compile" 2>conftest.err) 9186 ac_status=$? 9187 cat conftest.err >&5 9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9189 if (exit $ac_status) && test -s "$ac_outfile"; then 9190 # The compiler can only warn and ignore the option if not recognized 9191 # So say no if there are warnings other than the usual output. 9192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9195 lt_cv_prog_compiler_rtti_exceptions=yes 9196 fi 9197 fi 9198 $RM conftest* 9199 ;; 9200esac 9201fi 9202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9203printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9204 9205if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9206 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9207else 9208 : 9209fi 9210 9211fi 9212 9213 9214 9215 9216 9217 9218 lt_prog_compiler_wl= 9219lt_prog_compiler_pic= 9220lt_prog_compiler_static= 9221 9222 9223 if test yes = "$GCC"; then 9224 lt_prog_compiler_wl='-Wl,' 9225 lt_prog_compiler_static='-static' 9226 9227 case $host_os in 9228 aix*) 9229 # All AIX code is PIC. 9230 if test ia64 = "$host_cpu"; then 9231 # AIX 5 now supports IA64 processor 9232 lt_prog_compiler_static='-Bstatic' 9233 fi 9234 lt_prog_compiler_pic='-fPIC' 9235 ;; 9236 9237 amigaos*) 9238 case $host_cpu in 9239 powerpc) 9240 # see comment about AmigaOS4 .so support 9241 lt_prog_compiler_pic='-fPIC' 9242 ;; 9243 m68k) 9244 # FIXME: we need at least 68020 code to build shared libraries, but 9245 # adding the '-m68020' flag to GCC prevents building anything better, 9246 # like '-m68040'. 9247 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9248 ;; 9249 esac 9250 ;; 9251 9252 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9253 # PIC is the default for these OSes. 9254 ;; 9255 9256 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9257 # This hack is so that the source file can tell whether it is being 9258 # built for inclusion in a dll (and should export symbols for example). 9259 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9260 # (--disable-auto-import) libraries 9261 lt_prog_compiler_pic='-DDLL_EXPORT' 9262 case $host_os in 9263 os2*) 9264 lt_prog_compiler_static='$wl-static' 9265 ;; 9266 esac 9267 ;; 9268 9269 darwin* | rhapsody*) 9270 # PIC is the default on this platform 9271 # Common symbols not allowed in MH_DYLIB files 9272 lt_prog_compiler_pic='-fno-common' 9273 ;; 9274 9275 haiku*) 9276 # PIC is the default for Haiku. 9277 # The "-static" flag exists, but is broken. 9278 lt_prog_compiler_static= 9279 ;; 9280 9281 hpux*) 9282 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9283 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9284 # sets the default TLS model and affects inlining. 9285 case $host_cpu in 9286 hppa*64*) 9287 # +Z the default 9288 ;; 9289 *) 9290 lt_prog_compiler_pic='-fPIC' 9291 ;; 9292 esac 9293 ;; 9294 9295 interix[3-9]*) 9296 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9297 # Instead, we relocate shared libraries at runtime. 9298 ;; 9299 9300 msdosdjgpp*) 9301 # Just because we use GCC doesn't mean we suddenly get shared libraries 9302 # on systems that don't support them. 9303 lt_prog_compiler_can_build_shared=no 9304 enable_shared=no 9305 ;; 9306 9307 *nto* | *qnx*) 9308 # QNX uses GNU C++, but need to define -shared option too, otherwise 9309 # it will coredump. 9310 lt_prog_compiler_pic='-fPIC -shared' 9311 ;; 9312 9313 sysv4*MP*) 9314 if test -d /usr/nec; then 9315 lt_prog_compiler_pic=-Kconform_pic 9316 fi 9317 ;; 9318 9319 *) 9320 lt_prog_compiler_pic='-fPIC' 9321 ;; 9322 esac 9323 9324 case $cc_basename in 9325 nvcc*) # Cuda Compiler Driver 2.2 9326 lt_prog_compiler_wl='-Xlinker ' 9327 if test -n "$lt_prog_compiler_pic"; then 9328 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9329 fi 9330 ;; 9331 esac 9332 else 9333 # PORTME Check for flag to pass linker flags through the system compiler. 9334 case $host_os in 9335 aix*) 9336 lt_prog_compiler_wl='-Wl,' 9337 if test ia64 = "$host_cpu"; then 9338 # AIX 5 now supports IA64 processor 9339 lt_prog_compiler_static='-Bstatic' 9340 else 9341 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9342 fi 9343 ;; 9344 9345 darwin* | rhapsody*) 9346 # PIC is the default on this platform 9347 # Common symbols not allowed in MH_DYLIB files 9348 lt_prog_compiler_pic='-fno-common' 9349 case $cc_basename in 9350 nagfor*) 9351 # NAG Fortran compiler 9352 lt_prog_compiler_wl='-Wl,-Wl,,' 9353 lt_prog_compiler_pic='-PIC' 9354 lt_prog_compiler_static='-Bstatic' 9355 ;; 9356 esac 9357 ;; 9358 9359 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9360 # This hack is so that the source file can tell whether it is being 9361 # built for inclusion in a dll (and should export symbols for example). 9362 lt_prog_compiler_pic='-DDLL_EXPORT' 9363 case $host_os in 9364 os2*) 9365 lt_prog_compiler_static='$wl-static' 9366 ;; 9367 esac 9368 ;; 9369 9370 hpux9* | hpux10* | hpux11*) 9371 lt_prog_compiler_wl='-Wl,' 9372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9373 # not for PA HP-UX. 9374 case $host_cpu in 9375 hppa*64*|ia64*) 9376 # +Z the default 9377 ;; 9378 *) 9379 lt_prog_compiler_pic='+Z' 9380 ;; 9381 esac 9382 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9383 lt_prog_compiler_static='$wl-a ${wl}archive' 9384 ;; 9385 9386 irix5* | irix6* | nonstopux*) 9387 lt_prog_compiler_wl='-Wl,' 9388 # PIC (with -KPIC) is the default. 9389 lt_prog_compiler_static='-non_shared' 9390 ;; 9391 9392 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9393 case $cc_basename in 9394 # old Intel for x86_64, which still supported -KPIC. 9395 ecc*) 9396 lt_prog_compiler_wl='-Wl,' 9397 lt_prog_compiler_pic='-KPIC' 9398 lt_prog_compiler_static='-static' 9399 ;; 9400 *flang* | ftn | f18* | f95*) 9401 # Flang compiler. 9402 lt_prog_compiler_wl='-Wl,' 9403 lt_prog_compiler_pic='-fPIC' 9404 lt_prog_compiler_static='-static' 9405 ;; 9406 # icc used to be incompatible with GCC. 9407 # ICC 10 doesn't accept -KPIC any more. 9408 icc* | ifort*) 9409 lt_prog_compiler_wl='-Wl,' 9410 lt_prog_compiler_pic='-fPIC' 9411 lt_prog_compiler_static='-static' 9412 ;; 9413 # Lahey Fortran 8.1. 9414 lf95*) 9415 lt_prog_compiler_wl='-Wl,' 9416 lt_prog_compiler_pic='--shared' 9417 lt_prog_compiler_static='--static' 9418 ;; 9419 nagfor*) 9420 # NAG Fortran compiler 9421 lt_prog_compiler_wl='-Wl,-Wl,,' 9422 lt_prog_compiler_pic='-PIC' 9423 lt_prog_compiler_static='-Bstatic' 9424 ;; 9425 tcc*) 9426 # Fabrice Bellard et al's Tiny C Compiler 9427 lt_prog_compiler_wl='-Wl,' 9428 lt_prog_compiler_pic='-fPIC' 9429 lt_prog_compiler_static='-static' 9430 ;; 9431 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9432 # Portland Group compilers (*not* the Pentium gcc compiler, 9433 # which looks to be a dead project) 9434 lt_prog_compiler_wl='-Wl,' 9435 lt_prog_compiler_pic='-fpic' 9436 lt_prog_compiler_static='-Bstatic' 9437 ;; 9438 ccc*) 9439 lt_prog_compiler_wl='-Wl,' 9440 # All Alpha code is PIC. 9441 lt_prog_compiler_static='-non_shared' 9442 ;; 9443 xl* | bgxl* | bgf* | mpixl*) 9444 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9445 lt_prog_compiler_wl='-Wl,' 9446 lt_prog_compiler_pic='-qpic' 9447 lt_prog_compiler_static='-qstaticlink' 9448 ;; 9449 *) 9450 case `$CC -V 2>&1 | $SED 5q` in 9451 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9452 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9453 lt_prog_compiler_pic='-KPIC' 9454 lt_prog_compiler_static='-Bstatic' 9455 lt_prog_compiler_wl='' 9456 ;; 9457 *Sun\ F* | *Sun*Fortran*) 9458 lt_prog_compiler_pic='-KPIC' 9459 lt_prog_compiler_static='-Bstatic' 9460 lt_prog_compiler_wl='-Qoption ld ' 9461 ;; 9462 *Sun\ C*) 9463 # Sun C 5.9 9464 lt_prog_compiler_pic='-KPIC' 9465 lt_prog_compiler_static='-Bstatic' 9466 lt_prog_compiler_wl='-Wl,' 9467 ;; 9468 *Intel*\ [CF]*Compiler*) 9469 lt_prog_compiler_wl='-Wl,' 9470 lt_prog_compiler_pic='-fPIC' 9471 lt_prog_compiler_static='-static' 9472 ;; 9473 *Portland\ Group*) 9474 lt_prog_compiler_wl='-Wl,' 9475 lt_prog_compiler_pic='-fpic' 9476 lt_prog_compiler_static='-Bstatic' 9477 ;; 9478 esac 9479 ;; 9480 esac 9481 ;; 9482 9483 newsos6) 9484 lt_prog_compiler_pic='-KPIC' 9485 lt_prog_compiler_static='-Bstatic' 9486 ;; 9487 9488 *-mlibc) 9489 lt_prog_compiler_wl='-Wl,' 9490 lt_prog_compiler_pic='-fPIC' 9491 lt_prog_compiler_static='-static' 9492 ;; 9493 9494 *nto* | *qnx*) 9495 # QNX uses GNU C++, but need to define -shared option too, otherwise 9496 # it will coredump. 9497 lt_prog_compiler_pic='-fPIC -shared' 9498 ;; 9499 9500 osf3* | osf4* | osf5*) 9501 lt_prog_compiler_wl='-Wl,' 9502 # All OSF/1 code is PIC. 9503 lt_prog_compiler_static='-non_shared' 9504 ;; 9505 9506 rdos*) 9507 lt_prog_compiler_static='-non_shared' 9508 ;; 9509 9510 serenity*) 9511 ;; 9512 9513 solaris*) 9514 lt_prog_compiler_pic='-KPIC' 9515 lt_prog_compiler_static='-Bstatic' 9516 case $cc_basename in 9517 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9518 lt_prog_compiler_wl='-Qoption ld ';; 9519 *) 9520 lt_prog_compiler_wl='-Wl,';; 9521 esac 9522 ;; 9523 9524 sunos4*) 9525 lt_prog_compiler_wl='-Qoption ld ' 9526 lt_prog_compiler_pic='-PIC' 9527 lt_prog_compiler_static='-Bstatic' 9528 ;; 9529 9530 sysv4 | sysv4.2uw2* | sysv4.3*) 9531 lt_prog_compiler_wl='-Wl,' 9532 lt_prog_compiler_pic='-KPIC' 9533 lt_prog_compiler_static='-Bstatic' 9534 ;; 9535 9536 sysv4*MP*) 9537 if test -d /usr/nec; then 9538 lt_prog_compiler_pic='-Kconform_pic' 9539 lt_prog_compiler_static='-Bstatic' 9540 fi 9541 ;; 9542 9543 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9544 lt_prog_compiler_wl='-Wl,' 9545 lt_prog_compiler_pic='-KPIC' 9546 lt_prog_compiler_static='-Bstatic' 9547 ;; 9548 9549 unicos*) 9550 lt_prog_compiler_wl='-Wl,' 9551 lt_prog_compiler_can_build_shared=no 9552 ;; 9553 9554 uts4*) 9555 lt_prog_compiler_pic='-pic' 9556 lt_prog_compiler_static='-Bstatic' 9557 ;; 9558 9559 *) 9560 lt_prog_compiler_can_build_shared=no 9561 ;; 9562 esac 9563 fi 9564 9565case $host_os in 9566 # For platforms that do not support PIC, -DPIC is meaningless: 9567 *djgpp*) 9568 lt_prog_compiler_pic= 9569 ;; 9570 *) 9571 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9572 ;; 9573esac 9574 9575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9576printf %s "checking for $compiler option to produce PIC... " >&6; } 9577if test ${lt_cv_prog_compiler_pic+y} 9578then : 9579 printf %s "(cached) " >&6 9580else case e in #( 9581 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9582esac 9583fi 9584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9585printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9586lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9587 9588# 9589# Check to make sure the PIC flag actually works. 9590# 9591if test -n "$lt_prog_compiler_pic"; then 9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9593printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9594if test ${lt_cv_prog_compiler_pic_works+y} 9595then : 9596 printf %s "(cached) " >&6 9597else case e in #( 9598 e) lt_cv_prog_compiler_pic_works=no 9599 ac_outfile=conftest.$ac_objext 9600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9601 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9602 # Insert the option either (1) after the last *FLAGS variable, or 9603 # (2) before a word containing "conftest.", or (3) at the end. 9604 # Note that $ac_compile itself does not contain backslashes and begins 9605 # with a dollar sign (not a hyphen), so the echo should work correctly. 9606 # The option is referenced via a variable to avoid confusing sed. 9607 lt_compile=`echo "$ac_compile" | $SED \ 9608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9610 -e 's:$: $lt_compiler_flag:'` 9611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9612 (eval "$lt_compile" 2>conftest.err) 9613 ac_status=$? 9614 cat conftest.err >&5 9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 if (exit $ac_status) && test -s "$ac_outfile"; then 9617 # The compiler can only warn and ignore the option if not recognized 9618 # So say no if there are warnings other than the usual output. 9619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9622 lt_cv_prog_compiler_pic_works=yes 9623 fi 9624 fi 9625 $RM conftest* 9626 ;; 9627esac 9628fi 9629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9630printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9631 9632if test yes = "$lt_cv_prog_compiler_pic_works"; then 9633 case $lt_prog_compiler_pic in 9634 "" | " "*) ;; 9635 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9636 esac 9637else 9638 lt_prog_compiler_pic= 9639 lt_prog_compiler_can_build_shared=no 9640fi 9641 9642fi 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654# 9655# Check to make sure the static flag actually works. 9656# 9657wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9659printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9660if test ${lt_cv_prog_compiler_static_works+y} 9661then : 9662 printf %s "(cached) " >&6 9663else case e in #( 9664 e) lt_cv_prog_compiler_static_works=no 9665 save_LDFLAGS=$LDFLAGS 9666 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9667 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9669 # The linker can only warn and ignore the option if not recognized 9670 # So say no if there are warnings 9671 if test -s conftest.err; then 9672 # Append any errors to the config.log. 9673 cat conftest.err 1>&5 9674 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9676 if diff conftest.exp conftest.er2 >/dev/null; then 9677 lt_cv_prog_compiler_static_works=yes 9678 fi 9679 else 9680 lt_cv_prog_compiler_static_works=yes 9681 fi 9682 fi 9683 $RM -r conftest* 9684 LDFLAGS=$save_LDFLAGS 9685 ;; 9686esac 9687fi 9688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9689printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9690 9691if test yes = "$lt_cv_prog_compiler_static_works"; then 9692 : 9693else 9694 lt_prog_compiler_static= 9695fi 9696 9697 9698 9699 9700 9701 9702 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9704printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9705if test ${lt_cv_prog_compiler_c_o+y} 9706then : 9707 printf %s "(cached) " >&6 9708else case e in #( 9709 e) lt_cv_prog_compiler_c_o=no 9710 $RM -r conftest 2>/dev/null 9711 mkdir conftest 9712 cd conftest 9713 mkdir out 9714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9715 9716 lt_compiler_flag="-o out/conftest2.$ac_objext" 9717 # Insert the option either (1) after the last *FLAGS variable, or 9718 # (2) before a word containing "conftest.", or (3) at the end. 9719 # Note that $ac_compile itself does not contain backslashes and begins 9720 # with a dollar sign (not a hyphen), so the echo should work correctly. 9721 lt_compile=`echo "$ac_compile" | $SED \ 9722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9723 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9724 -e 's:$: $lt_compiler_flag:'` 9725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9726 (eval "$lt_compile" 2>out/conftest.err) 9727 ac_status=$? 9728 cat out/conftest.err >&5 9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9730 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9731 then 9732 # The compiler can only warn and ignore the option if not recognized 9733 # So say no if there are warnings 9734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9737 lt_cv_prog_compiler_c_o=yes 9738 fi 9739 fi 9740 chmod u+w . 2>&5 9741 $RM conftest* 9742 # SGI C++ compiler will create directory out/ii_files/ for 9743 # template instantiation 9744 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9745 $RM out/* && rmdir out 9746 cd .. 9747 $RM -r conftest 9748 $RM conftest* 9749 ;; 9750esac 9751fi 9752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9753printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9754 9755 9756 9757 9758 9759 9760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9761printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9762if test ${lt_cv_prog_compiler_c_o+y} 9763then : 9764 printf %s "(cached) " >&6 9765else case e in #( 9766 e) lt_cv_prog_compiler_c_o=no 9767 $RM -r conftest 2>/dev/null 9768 mkdir conftest 9769 cd conftest 9770 mkdir out 9771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9772 9773 lt_compiler_flag="-o out/conftest2.$ac_objext" 9774 # Insert the option either (1) after the last *FLAGS variable, or 9775 # (2) before a word containing "conftest.", or (3) at the end. 9776 # Note that $ac_compile itself does not contain backslashes and begins 9777 # with a dollar sign (not a hyphen), so the echo should work correctly. 9778 lt_compile=`echo "$ac_compile" | $SED \ 9779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9781 -e 's:$: $lt_compiler_flag:'` 9782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9783 (eval "$lt_compile" 2>out/conftest.err) 9784 ac_status=$? 9785 cat out/conftest.err >&5 9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9787 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9788 then 9789 # The compiler can only warn and ignore the option if not recognized 9790 # So say no if there are warnings 9791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9794 lt_cv_prog_compiler_c_o=yes 9795 fi 9796 fi 9797 chmod u+w . 2>&5 9798 $RM conftest* 9799 # SGI C++ compiler will create directory out/ii_files/ for 9800 # template instantiation 9801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9802 $RM out/* && rmdir out 9803 cd .. 9804 $RM -r conftest 9805 $RM conftest* 9806 ;; 9807esac 9808fi 9809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9810printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9811 9812 9813 9814 9815hard_links=nottested 9816if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9817 # do not overwrite the value of need_locks provided by the user 9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9819printf %s "checking if we can lock with hard links... " >&6; } 9820 hard_links=yes 9821 $RM conftest* 9822 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9823 touch conftest.a 9824 ln conftest.a conftest.b 2>&5 || hard_links=no 9825 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9827printf "%s\n" "$hard_links" >&6; } 9828 if test no = "$hard_links"; then 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9830printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9831 need_locks=warn 9832 fi 9833else 9834 need_locks=no 9835fi 9836 9837 9838 9839 9840 9841 9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9843printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9844 9845 runpath_var= 9846 allow_undefined_flag= 9847 always_export_symbols=no 9848 archive_cmds= 9849 archive_expsym_cmds= 9850 compiler_needs_object=no 9851 enable_shared_with_static_runtimes=no 9852 export_dynamic_flag_spec= 9853 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9854 hardcode_automatic=no 9855 hardcode_direct=no 9856 hardcode_direct_absolute=no 9857 hardcode_libdir_flag_spec= 9858 hardcode_libdir_separator= 9859 hardcode_minus_L=no 9860 hardcode_shlibpath_var=unsupported 9861 inherit_rpath=no 9862 link_all_deplibs=unknown 9863 module_cmds= 9864 module_expsym_cmds= 9865 old_archive_from_new_cmds= 9866 old_archive_from_expsyms_cmds= 9867 thread_safe_flag_spec= 9868 whole_archive_flag_spec= 9869 # include_expsyms should be a list of space-separated symbols to be *always* 9870 # included in the symbol list 9871 include_expsyms= 9872 # exclude_expsyms can be an extended regexp of symbols to exclude 9873 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9874 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9875 # as well as any symbol that contains 'd'. 9876 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9878 # platforms (ab)use it in PIC code, but their linkers get confused if 9879 # the symbol is explicitly referenced. Since portable code cannot 9880 # rely on this symbol name, it's probably fine to never include it in 9881 # preloaded symbol tables. 9882 # Exclude shared library initialization/finalization symbols. 9883 extract_expsyms_cmds= 9884 9885 case $host_os in 9886 cygwin* | mingw* | windows* | pw32* | cegcc*) 9887 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9888 # When not using gcc, we currently assume that we are using 9889 # Microsoft Visual C++ or Intel C++ Compiler. 9890 if test yes != "$GCC"; then 9891 with_gnu_ld=no 9892 fi 9893 ;; 9894 interix*) 9895 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9896 with_gnu_ld=yes 9897 ;; 9898 esac 9899 9900 ld_shlibs=yes 9901 9902 # On some targets, GNU ld is compatible enough with the native linker 9903 # that we're better off using the native interface for both. 9904 lt_use_gnu_ld_interface=no 9905 if test yes = "$with_gnu_ld"; then 9906 case $host_os in 9907 aix*) 9908 # The AIX port of GNU ld has always aspired to compatibility 9909 # with the native linker. However, as the warning in the GNU ld 9910 # block says, versions before 2.19.5* couldn't really create working 9911 # shared libraries, regardless of the interface used. 9912 case `$LD -v 2>&1` in 9913 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9914 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9915 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9916 *) 9917 lt_use_gnu_ld_interface=yes 9918 ;; 9919 esac 9920 ;; 9921 *) 9922 lt_use_gnu_ld_interface=yes 9923 ;; 9924 esac 9925 fi 9926 9927 if test yes = "$lt_use_gnu_ld_interface"; then 9928 # If archive_cmds runs LD, not CC, wlarc should be empty 9929 wlarc='$wl' 9930 9931 # Set some defaults for GNU ld with shared library support. These 9932 # are reset later if shared libraries are not supported. Putting them 9933 # here allows them to be overridden if necessary. 9934 runpath_var=LD_RUN_PATH 9935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9936 export_dynamic_flag_spec='$wl--export-dynamic' 9937 # ancient GNU ld didn't support --whole-archive et. al. 9938 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9939 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9940 else 9941 whole_archive_flag_spec= 9942 fi 9943 supports_anon_versioning=no 9944 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9945 *GNU\ gold*) supports_anon_versioning=yes ;; 9946 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9947 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9948 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9949 *\ 2.11.*) ;; # other 2.11 versions 9950 *) supports_anon_versioning=yes ;; 9951 esac 9952 9953 # See if GNU ld supports shared libraries. 9954 case $host_os in 9955 aix[3-9]*) 9956 # On AIX/PPC, the GNU linker is very broken 9957 if test ia64 != "$host_cpu"; then 9958 ld_shlibs=no 9959 cat <<_LT_EOF 1>&2 9960 9961*** Warning: the GNU linker, at least up to release 2.19, is reported 9962*** to be unable to reliably create shared libraries on AIX. 9963*** Therefore, libtool is disabling shared libraries support. If you 9964*** really care for shared libraries, you may want to install binutils 9965*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9966*** You will then need to restart the configuration process. 9967 9968_LT_EOF 9969 fi 9970 ;; 9971 9972 amigaos*) 9973 case $host_cpu in 9974 powerpc) 9975 # see comment about AmigaOS4 .so support 9976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9977 archive_expsym_cmds='' 9978 ;; 9979 m68k) 9980 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)' 9981 hardcode_libdir_flag_spec='-L$libdir' 9982 hardcode_minus_L=yes 9983 ;; 9984 esac 9985 ;; 9986 9987 beos*) 9988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9989 allow_undefined_flag=unsupported 9990 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9991 # support --undefined. This deserves some investigation. FIXME 9992 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9993 else 9994 ld_shlibs=no 9995 fi 9996 ;; 9997 9998 cygwin* | mingw* | windows* | pw32* | cegcc*) 9999 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10000 # as there is no search path for DLLs. 10001 hardcode_libdir_flag_spec='-L$libdir' 10002 export_dynamic_flag_spec='$wl--export-all-symbols' 10003 allow_undefined_flag=unsupported 10004 always_export_symbols=no 10005 enable_shared_with_static_runtimes=yes 10006 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' 10007 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10008 file_list_spec='@' 10009 10010 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10012 # If the export-symbols file already is a .def file, use it as 10013 # is; otherwise, prepend EXPORTS... 10014 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10015 cp $export_symbols $output_objdir/$soname.def; 10016 else 10017 echo EXPORTS > $output_objdir/$soname.def; 10018 cat $export_symbols >> $output_objdir/$soname.def; 10019 fi~ 10020 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10021 else 10022 ld_shlibs=no 10023 fi 10024 ;; 10025 10026 haiku*) 10027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10028 link_all_deplibs=no 10029 ;; 10030 10031 os2*) 10032 hardcode_libdir_flag_spec='-L$libdir' 10033 hardcode_minus_L=yes 10034 allow_undefined_flag=unsupported 10035 shrext_cmds=.dll 10036 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10037 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10038 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10039 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10040 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10042 emximp -o $lib $output_objdir/$libname.def' 10043 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10044 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10045 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10046 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10047 prefix_cmds="$SED"~ 10048 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10049 prefix_cmds="$prefix_cmds -e 1d"; 10050 fi~ 10051 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10052 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10053 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10054 emximp -o $lib $output_objdir/$libname.def' 10055 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10056 enable_shared_with_static_runtimes=yes 10057 file_list_spec='@' 10058 ;; 10059 10060 interix[3-9]*) 10061 hardcode_direct=no 10062 hardcode_shlibpath_var=no 10063 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10064 export_dynamic_flag_spec='$wl-E' 10065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10066 # Instead, shared libraries are loaded at an image base (0x10000000 by 10067 # default) and relocated if they conflict, which is a slow very memory 10068 # consuming and fragmenting process. To avoid this, we pick a random, 10069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10070 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10071 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10072 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' 10073 ;; 10074 10075 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10076 tmp_diet=no 10077 if test linux-dietlibc = "$host_os"; then 10078 case $cc_basename in 10079 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10080 esac 10081 fi 10082 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10083 && test no = "$tmp_diet" 10084 then 10085 tmp_addflag=' $pic_flag' 10086 tmp_sharedflag='-shared' 10087 case $cc_basename,$host_cpu in 10088 pgcc*) # Portland Group C compiler 10089 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' 10090 tmp_addflag=' $pic_flag' 10091 ;; 10092 pgf77* | pgf90* | pgf95* | pgfortran*) 10093 # Portland Group f77 and f90 compilers 10094 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' 10095 tmp_addflag=' $pic_flag -Mnomain' ;; 10096 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10097 tmp_addflag=' -i_dynamic' ;; 10098 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10099 tmp_addflag=' -i_dynamic -nofor_main' ;; 10100 ifc* | ifort*) # Intel Fortran compiler 10101 tmp_addflag=' -nofor_main' ;; 10102 lf95*) # Lahey Fortran 8.1 10103 whole_archive_flag_spec= 10104 tmp_sharedflag='--shared' ;; 10105 nagfor*) # NAGFOR 5.3 10106 tmp_sharedflag='-Wl,-shared' ;; 10107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10108 tmp_sharedflag='-qmkshrobj' 10109 tmp_addflag= ;; 10110 nvcc*) # Cuda Compiler Driver 2.2 10111 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' 10112 compiler_needs_object=yes 10113 ;; 10114 esac 10115 case `$CC -V 2>&1 | $SED 5q` in 10116 *Sun\ C*) # Sun C 5.9 10117 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' 10118 compiler_needs_object=yes 10119 tmp_sharedflag='-G' ;; 10120 *Sun\ F*) # Sun Fortran 8.3 10121 tmp_sharedflag='-G' ;; 10122 esac 10123 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10124 10125 if test yes = "$supports_anon_versioning"; then 10126 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10127 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10128 echo "local: *; };" >> $output_objdir/$libname.ver~ 10129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10130 fi 10131 10132 case $cc_basename in 10133 tcc*) 10134 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10135 export_dynamic_flag_spec='-rdynamic' 10136 ;; 10137 xlf* | bgf* | bgxlf* | mpixlf*) 10138 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10139 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10140 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10141 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10142 if test yes = "$supports_anon_versioning"; then 10143 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10144 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10145 echo "local: *; };" >> $output_objdir/$libname.ver~ 10146 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10147 fi 10148 ;; 10149 esac 10150 else 10151 ld_shlibs=no 10152 fi 10153 ;; 10154 10155 *-mlibc) 10156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10158 ;; 10159 10160 netbsd* | netbsdelf*-gnu) 10161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10163 wlarc= 10164 else 10165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10166 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10167 fi 10168 ;; 10169 10170 solaris*) 10171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10172 ld_shlibs=no 10173 cat <<_LT_EOF 1>&2 10174 10175*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10176*** create shared libraries on Solaris systems. Therefore, libtool 10177*** is disabling shared libraries support. We urge you to upgrade GNU 10178*** binutils to release 2.9.1 or newer. Another option is to modify 10179*** your PATH or compiler configuration so that the native linker is 10180*** used, and then restart. 10181 10182_LT_EOF 10183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10184 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10185 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10186 else 10187 ld_shlibs=no 10188 fi 10189 ;; 10190 10191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10192 case `$LD -v 2>&1` in 10193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10194 ld_shlibs=no 10195 cat <<_LT_EOF 1>&2 10196 10197*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10198*** reliably create shared libraries on SCO systems. Therefore, libtool 10199*** is disabling shared libraries support. We urge you to upgrade GNU 10200*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10201*** your PATH or compiler configuration so that the native linker is 10202*** used, and then restart. 10203 10204_LT_EOF 10205 ;; 10206 *) 10207 # For security reasons, it is highly recommended that you always 10208 # use absolute paths for naming shared libraries, and exclude the 10209 # DT_RUNPATH tag from executables and libraries. But doing so 10210 # requires that you compile everything twice, which is a pain. 10211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10212 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10215 else 10216 ld_shlibs=no 10217 fi 10218 ;; 10219 esac 10220 ;; 10221 10222 sunos4*) 10223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10224 wlarc= 10225 hardcode_direct=yes 10226 hardcode_shlibpath_var=no 10227 ;; 10228 10229 *) 10230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10232 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10233 else 10234 ld_shlibs=no 10235 fi 10236 ;; 10237 esac 10238 10239 if test no = "$ld_shlibs"; then 10240 runpath_var= 10241 hardcode_libdir_flag_spec= 10242 export_dynamic_flag_spec= 10243 whole_archive_flag_spec= 10244 fi 10245 else 10246 # PORTME fill in a description of your system's linker (not GNU ld) 10247 case $host_os in 10248 aix3*) 10249 allow_undefined_flag=unsupported 10250 always_export_symbols=yes 10251 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' 10252 # Note: this linker hardcodes the directories in LIBPATH if there 10253 # are no directories specified by -L. 10254 hardcode_minus_L=yes 10255 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10256 # Neither direct hardcoding nor static linking is supported with a 10257 # broken collect2. 10258 hardcode_direct=unsupported 10259 fi 10260 ;; 10261 10262 aix[4-9]*) 10263 if test ia64 = "$host_cpu"; then 10264 # On IA64, the linker does run time linking by default, so we don't 10265 # have to do anything special. 10266 aix_use_runtimelinking=no 10267 exp_sym_flag='-Bexport' 10268 no_entry_flag= 10269 else 10270 # If we're using GNU nm, then we don't want the "-C" option. 10271 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10272 # Without the "-l" option, or with the "-B" option, AIX nm treats 10273 # weak defined symbols like other global defined symbols, whereas 10274 # GNU nm marks them as "W". 10275 # While the 'weak' keyword is ignored in the Export File, we need 10276 # it in the Import File for the 'aix-soname' feature, so we have 10277 # to replace the "-B" option with "-P" for AIX nm. 10278 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10279 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' 10280 else 10281 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' 10282 fi 10283 aix_use_runtimelinking=no 10284 10285 # Test if we are trying to use run time linking or normal 10286 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10287 # have runtime linking enabled, and use it for executables. 10288 # For shared libraries, we enable/disable runtime linking 10289 # depending on the kind of the shared library created - 10290 # when "with_aix_soname,aix_use_runtimelinking" is: 10291 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10292 # "aix,yes" lib.so shared, rtl:yes, for executables 10293 # lib.a static archive 10294 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10295 # lib.a(lib.so.V) shared, rtl:no, for executables 10296 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10297 # lib.a(lib.so.V) shared, rtl:no 10298 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10299 # lib.a static archive 10300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10301 for ld_flag in $LDFLAGS; do 10302 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10303 aix_use_runtimelinking=yes 10304 break 10305 fi 10306 done 10307 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10308 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10309 # so we don't have lib.a shared libs to link our executables. 10310 # We have to force runtime linking in this case. 10311 aix_use_runtimelinking=yes 10312 LDFLAGS="$LDFLAGS -Wl,-brtl" 10313 fi 10314 ;; 10315 esac 10316 10317 exp_sym_flag='-bexport' 10318 no_entry_flag='-bnoentry' 10319 fi 10320 10321 # When large executables or shared objects are built, AIX ld can 10322 # have problems creating the table of contents. If linking a library 10323 # or program results in "error TOC overflow" add -mminimal-toc to 10324 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10325 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10326 10327 archive_cmds='' 10328 hardcode_direct=yes 10329 hardcode_direct_absolute=yes 10330 hardcode_libdir_separator=':' 10331 link_all_deplibs=yes 10332 file_list_spec='$wl-f,' 10333 case $with_aix_soname,$aix_use_runtimelinking in 10334 aix,*) ;; # traditional, no import file 10335 svr4,* | *,yes) # use import file 10336 # The Import File defines what to hardcode. 10337 hardcode_direct=no 10338 hardcode_direct_absolute=no 10339 ;; 10340 esac 10341 10342 if test yes = "$GCC"; then 10343 case $host_os in aix4.[012]|aix4.[012].*) 10344 # We only want to do this on AIX 4.2 and lower, the check 10345 # below for broken collect2 doesn't work under 4.3+ 10346 collect2name=`$CC -print-prog-name=collect2` 10347 if test -f "$collect2name" && 10348 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10349 then 10350 # We have reworked collect2 10351 : 10352 else 10353 # We have old collect2 10354 hardcode_direct=unsupported 10355 # It fails to find uninstalled libraries when the uninstalled 10356 # path is not listed in the libpath. Setting hardcode_minus_L 10357 # to unsupported forces relinking 10358 hardcode_minus_L=yes 10359 hardcode_libdir_flag_spec='-L$libdir' 10360 hardcode_libdir_separator= 10361 fi 10362 ;; 10363 esac 10364 shared_flag='-shared' 10365 if test yes = "$aix_use_runtimelinking"; then 10366 shared_flag="$shared_flag "'$wl-G' 10367 fi 10368 # Need to ensure runtime linking is disabled for the traditional 10369 # shared library, or the linker may eventually find shared libraries 10370 # /with/ Import File - we do not want to mix them. 10371 shared_flag_aix='-shared' 10372 shared_flag_svr4='-shared $wl-G' 10373 else 10374 # not using gcc 10375 if test ia64 = "$host_cpu"; then 10376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10377 # chokes on -Wl,-G. The following line is correct: 10378 shared_flag='-G' 10379 else 10380 if test yes = "$aix_use_runtimelinking"; then 10381 shared_flag='$wl-G' 10382 else 10383 shared_flag='$wl-bM:SRE' 10384 fi 10385 shared_flag_aix='$wl-bM:SRE' 10386 shared_flag_svr4='$wl-G' 10387 fi 10388 fi 10389 10390 export_dynamic_flag_spec='$wl-bexpall' 10391 # It seems that -bexpall does not export symbols beginning with 10392 # underscore (_), so it is better to generate a list of symbols to export. 10393 always_export_symbols=yes 10394 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10395 # Warning - without using the other runtime loading flags (-brtl), 10396 # -berok will link without error, but may produce a broken library. 10397 allow_undefined_flag='-berok' 10398 # Determine the default libpath from the value encoded in an 10399 # empty executable. 10400 if test set = "${lt_cv_aix_libpath+set}"; then 10401 aix_libpath=$lt_cv_aix_libpath 10402else 10403 if test ${lt_cv_aix_libpath_+y} 10404then : 10405 printf %s "(cached) " >&6 10406else case e in #( 10407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10408/* end confdefs.h. */ 10409 10410int 10411main (void) 10412{ 10413 10414 ; 10415 return 0; 10416} 10417_ACEOF 10418if ac_fn_c_try_link "$LINENO" 10419then : 10420 10421 lt_aix_libpath_sed=' 10422 /Import File Strings/,/^$/ { 10423 /^0/ { 10424 s/^0 *\([^ ]*\) *$/\1/ 10425 p 10426 } 10427 }' 10428 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10429 # Check for a 64-bit object if we didn't find anything. 10430 if test -z "$lt_cv_aix_libpath_"; then 10431 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10432 fi 10433fi 10434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10435 conftest$ac_exeext conftest.$ac_ext 10436 if test -z "$lt_cv_aix_libpath_"; then 10437 lt_cv_aix_libpath_=/usr/lib:/lib 10438 fi 10439 ;; 10440esac 10441fi 10442 10443 aix_libpath=$lt_cv_aix_libpath_ 10444fi 10445 10446 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10447 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 10448 else 10449 if test ia64 = "$host_cpu"; then 10450 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10451 allow_undefined_flag="-z nodefs" 10452 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" 10453 else 10454 # Determine the default libpath from the value encoded in an 10455 # empty executable. 10456 if test set = "${lt_cv_aix_libpath+set}"; then 10457 aix_libpath=$lt_cv_aix_libpath 10458else 10459 if test ${lt_cv_aix_libpath_+y} 10460then : 10461 printf %s "(cached) " >&6 10462else case e in #( 10463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10464/* end confdefs.h. */ 10465 10466int 10467main (void) 10468{ 10469 10470 ; 10471 return 0; 10472} 10473_ACEOF 10474if ac_fn_c_try_link "$LINENO" 10475then : 10476 10477 lt_aix_libpath_sed=' 10478 /Import File Strings/,/^$/ { 10479 /^0/ { 10480 s/^0 *\([^ ]*\) *$/\1/ 10481 p 10482 } 10483 }' 10484 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10485 # Check for a 64-bit object if we didn't find anything. 10486 if test -z "$lt_cv_aix_libpath_"; then 10487 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10488 fi 10489fi 10490rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10491 conftest$ac_exeext conftest.$ac_ext 10492 if test -z "$lt_cv_aix_libpath_"; then 10493 lt_cv_aix_libpath_=/usr/lib:/lib 10494 fi 10495 ;; 10496esac 10497fi 10498 10499 aix_libpath=$lt_cv_aix_libpath_ 10500fi 10501 10502 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10503 # Warning - without using the other run time loading flags, 10504 # -berok will link without error, but may produce a broken library. 10505 no_undefined_flag=' $wl-bernotok' 10506 allow_undefined_flag=' $wl-berok' 10507 if test yes = "$with_gnu_ld"; then 10508 # We only use this code for GNU lds that support --whole-archive. 10509 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10510 else 10511 # Exported symbols can be pulled into shared objects from archives 10512 whole_archive_flag_spec='$convenience' 10513 fi 10514 archive_cmds_need_lc=yes 10515 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10516 # -brtl affects multiple linker settings, -berok does not and is overridden later 10517 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10518 if test svr4 != "$with_aix_soname"; then 10519 # This is similar to how AIX traditionally builds its shared libraries. 10520 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' 10521 fi 10522 if test aix != "$with_aix_soname"; then 10523 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' 10524 else 10525 # used by -dlpreopen to get the symbols 10526 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10527 fi 10528 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10529 fi 10530 fi 10531 ;; 10532 10533 amigaos*) 10534 case $host_cpu in 10535 powerpc) 10536 # see comment about AmigaOS4 .so support 10537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10538 archive_expsym_cmds='' 10539 ;; 10540 m68k) 10541 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)' 10542 hardcode_libdir_flag_spec='-L$libdir' 10543 hardcode_minus_L=yes 10544 ;; 10545 esac 10546 ;; 10547 10548 bsdi[45]*) 10549 export_dynamic_flag_spec=-rdynamic 10550 ;; 10551 10552 cygwin* | mingw* | windows* | pw32* | cegcc*) 10553 # When not using gcc, we currently assume that we are using 10554 # Microsoft Visual C++ or Intel C++ Compiler. 10555 # hardcode_libdir_flag_spec is actually meaningless, as there is 10556 # no search path for DLLs. 10557 case $cc_basename in 10558 cl* | icl*) 10559 # Native MSVC or ICC 10560 hardcode_libdir_flag_spec=' ' 10561 allow_undefined_flag=unsupported 10562 always_export_symbols=yes 10563 file_list_spec='@' 10564 # Tell ltmain to make .lib files, not .a files. 10565 libext=lib 10566 # Tell ltmain to make .dll files, not .so files. 10567 shrext_cmds=.dll 10568 # FIXME: Setting linknames here is a bad hack. 10569 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10570 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10571 cp "$export_symbols" "$output_objdir/$soname.def"; 10572 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10573 else 10574 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10575 fi~ 10576 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10577 linknames=' 10578 # The linker will not automatically build a static lib if we build a DLL. 10579 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10580 enable_shared_with_static_runtimes=yes 10581 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10582 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10583 # Don't use ranlib 10584 old_postinstall_cmds='chmod 644 $oldlib' 10585 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10586 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10587 case $lt_outputfile in 10588 *.exe|*.EXE) ;; 10589 *) 10590 lt_outputfile=$lt_outputfile.exe 10591 lt_tool_outputfile=$lt_tool_outputfile.exe 10592 ;; 10593 esac~ 10594 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10595 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10596 $RM "$lt_outputfile.manifest"; 10597 fi' 10598 ;; 10599 *) 10600 # Assume MSVC and ICC wrapper 10601 hardcode_libdir_flag_spec=' ' 10602 allow_undefined_flag=unsupported 10603 # Tell ltmain to make .lib files, not .a files. 10604 libext=lib 10605 # Tell ltmain to make .dll files, not .so files. 10606 shrext_cmds=.dll 10607 # FIXME: Setting linknames here is a bad hack. 10608 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10609 # The linker will automatically build a .lib file if we build a DLL. 10610 old_archive_from_new_cmds='true' 10611 # FIXME: Should let the user specify the lib program. 10612 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10613 enable_shared_with_static_runtimes=yes 10614 ;; 10615 esac 10616 ;; 10617 10618 darwin* | rhapsody*) 10619 10620 10621 archive_cmds_need_lc=no 10622 hardcode_direct=no 10623 hardcode_automatic=yes 10624 hardcode_shlibpath_var=unsupported 10625 if test yes = "$lt_cv_ld_force_load"; then 10626 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\"`' 10627 10628 else 10629 whole_archive_flag_spec='' 10630 fi 10631 link_all_deplibs=yes 10632 allow_undefined_flag=$_lt_dar_allow_undefined 10633 case $cc_basename in 10634 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10635 *) _lt_dar_can_shared=$GCC ;; 10636 esac 10637 if test yes = "$_lt_dar_can_shared"; then 10638 output_verbose_link_cmd=func_echo_all 10639 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10640 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10641 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" 10642 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" 10643 10644 else 10645 ld_shlibs=no 10646 fi 10647 10648 ;; 10649 10650 dgux*) 10651 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10652 hardcode_libdir_flag_spec='-L$libdir' 10653 hardcode_shlibpath_var=no 10654 ;; 10655 10656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10657 # support. Future versions do this automatically, but an explicit c++rt0.o 10658 # does not break anything, and helps significantly (at the cost of a little 10659 # extra space). 10660 freebsd2.2*) 10661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10662 hardcode_libdir_flag_spec='-R$libdir' 10663 hardcode_direct=yes 10664 hardcode_shlibpath_var=no 10665 ;; 10666 10667 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10668 freebsd2.*) 10669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10670 hardcode_direct=yes 10671 hardcode_minus_L=yes 10672 hardcode_shlibpath_var=no 10673 ;; 10674 10675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10676 freebsd* | dragonfly* | midnightbsd*) 10677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10678 hardcode_libdir_flag_spec='-R$libdir' 10679 hardcode_direct=yes 10680 hardcode_shlibpath_var=no 10681 ;; 10682 10683 hpux9*) 10684 if test yes = "$GCC"; then 10685 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' 10686 else 10687 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' 10688 fi 10689 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10690 hardcode_libdir_separator=: 10691 hardcode_direct=yes 10692 10693 # hardcode_minus_L: Not really in the search PATH, 10694 # but as the default location of the library. 10695 hardcode_minus_L=yes 10696 export_dynamic_flag_spec='$wl-E' 10697 ;; 10698 10699 hpux10*) 10700 if test yes,no = "$GCC,$with_gnu_ld"; then 10701 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10702 else 10703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10704 fi 10705 if test no = "$with_gnu_ld"; then 10706 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10707 hardcode_libdir_separator=: 10708 hardcode_direct=yes 10709 hardcode_direct_absolute=yes 10710 export_dynamic_flag_spec='$wl-E' 10711 # hardcode_minus_L: Not really in the search PATH, 10712 # but as the default location of the library. 10713 hardcode_minus_L=yes 10714 fi 10715 ;; 10716 10717 hpux11*) 10718 if test yes,no = "$GCC,$with_gnu_ld"; then 10719 case $host_cpu in 10720 hppa*64*) 10721 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10722 ;; 10723 ia64*) 10724 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10725 ;; 10726 *) 10727 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10728 ;; 10729 esac 10730 else 10731 case $host_cpu in 10732 hppa*64*) 10733 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10734 ;; 10735 ia64*) 10736 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10737 ;; 10738 *) 10739 10740 # Older versions of the 11.00 compiler do not understand -b yet 10741 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10743printf %s "checking if $CC understands -b... " >&6; } 10744if test ${lt_cv_prog_compiler__b+y} 10745then : 10746 printf %s "(cached) " >&6 10747else case e in #( 10748 e) lt_cv_prog_compiler__b=no 10749 save_LDFLAGS=$LDFLAGS 10750 LDFLAGS="$LDFLAGS -b" 10751 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10753 # The linker can only warn and ignore the option if not recognized 10754 # So say no if there are warnings 10755 if test -s conftest.err; then 10756 # Append any errors to the config.log. 10757 cat conftest.err 1>&5 10758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10760 if diff conftest.exp conftest.er2 >/dev/null; then 10761 lt_cv_prog_compiler__b=yes 10762 fi 10763 else 10764 lt_cv_prog_compiler__b=yes 10765 fi 10766 fi 10767 $RM -r conftest* 10768 LDFLAGS=$save_LDFLAGS 10769 ;; 10770esac 10771fi 10772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10773printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10774 10775if test yes = "$lt_cv_prog_compiler__b"; then 10776 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10777else 10778 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10779fi 10780 10781 ;; 10782 esac 10783 fi 10784 if test no = "$with_gnu_ld"; then 10785 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10786 hardcode_libdir_separator=: 10787 10788 case $host_cpu in 10789 hppa*64*|ia64*) 10790 hardcode_direct=no 10791 hardcode_shlibpath_var=no 10792 ;; 10793 *) 10794 hardcode_direct=yes 10795 hardcode_direct_absolute=yes 10796 export_dynamic_flag_spec='$wl-E' 10797 10798 # hardcode_minus_L: Not really in the search PATH, 10799 # but as the default location of the library. 10800 hardcode_minus_L=yes 10801 ;; 10802 esac 10803 fi 10804 ;; 10805 10806 irix5* | irix6* | nonstopux*) 10807 if test yes = "$GCC"; then 10808 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' 10809 # Try to use the -exported_symbol ld option, if it does not 10810 # work, assume that -exports_file does not work either and 10811 # implicitly export all symbols. 10812 # This should be the same for all languages, so no per-tag cache variable. 10813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10814printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10815if test ${lt_cv_irix_exported_symbol+y} 10816then : 10817 printf %s "(cached) " >&6 10818else case e in #( 10819 e) save_LDFLAGS=$LDFLAGS 10820 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10822/* end confdefs.h. */ 10823int foo (void) { return 0; } 10824_ACEOF 10825if ac_fn_c_try_link "$LINENO" 10826then : 10827 lt_cv_irix_exported_symbol=yes 10828else case e in #( 10829 e) lt_cv_irix_exported_symbol=no ;; 10830esac 10831fi 10832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10833 conftest$ac_exeext conftest.$ac_ext 10834 LDFLAGS=$save_LDFLAGS ;; 10835esac 10836fi 10837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10838printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10839 if test yes = "$lt_cv_irix_exported_symbol"; then 10840 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' 10841 fi 10842 else 10843 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' 10844 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' 10845 fi 10846 archive_cmds_need_lc='no' 10847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10848 hardcode_libdir_separator=: 10849 inherit_rpath=yes 10850 link_all_deplibs=yes 10851 ;; 10852 10853 linux*) 10854 case $cc_basename in 10855 tcc*) 10856 # Fabrice Bellard et al's Tiny C Compiler 10857 ld_shlibs=yes 10858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10859 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10860 ;; 10861 esac 10862 ;; 10863 10864 *-mlibc) 10865 ;; 10866 10867 netbsd* | netbsdelf*-gnu) 10868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10870 else 10871 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10872 fi 10873 hardcode_libdir_flag_spec='-R$libdir' 10874 hardcode_direct=yes 10875 hardcode_shlibpath_var=no 10876 ;; 10877 10878 newsos6) 10879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10880 hardcode_direct=yes 10881 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10882 hardcode_libdir_separator=: 10883 hardcode_shlibpath_var=no 10884 ;; 10885 10886 *nto* | *qnx*) 10887 ;; 10888 10889 openbsd*) 10890 if test -f /usr/libexec/ld.so; then 10891 hardcode_direct=yes 10892 hardcode_shlibpath_var=no 10893 hardcode_direct_absolute=yes 10894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10895 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10896 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10897 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10898 export_dynamic_flag_spec='$wl-E' 10899 else 10900 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10901 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10902 fi 10903 else 10904 ld_shlibs=no 10905 fi 10906 ;; 10907 10908 os2*) 10909 hardcode_libdir_flag_spec='-L$libdir' 10910 hardcode_minus_L=yes 10911 allow_undefined_flag=unsupported 10912 shrext_cmds=.dll 10913 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10914 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10915 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10916 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10917 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10918 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10919 emximp -o $lib $output_objdir/$libname.def' 10920 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10921 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10922 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10923 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10924 prefix_cmds="$SED"~ 10925 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10926 prefix_cmds="$prefix_cmds -e 1d"; 10927 fi~ 10928 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10929 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10930 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10931 emximp -o $lib $output_objdir/$libname.def' 10932 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10933 enable_shared_with_static_runtimes=yes 10934 file_list_spec='@' 10935 ;; 10936 10937 osf3*) 10938 if test yes = "$GCC"; then 10939 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10940 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' 10941 else 10942 allow_undefined_flag=' -expect_unresolved \*' 10943 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' 10944 fi 10945 archive_cmds_need_lc='no' 10946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10947 hardcode_libdir_separator=: 10948 ;; 10949 10950 osf4* | osf5*) # as osf3* with the addition of -msym flag 10951 if test yes = "$GCC"; then 10952 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10953 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' 10954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10955 else 10956 allow_undefined_flag=' -expect_unresolved \*' 10957 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' 10958 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~ 10959 $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' 10960 10961 # Both c and cxx compiler support -rpath directly 10962 hardcode_libdir_flag_spec='-rpath $libdir' 10963 fi 10964 archive_cmds_need_lc='no' 10965 hardcode_libdir_separator=: 10966 ;; 10967 10968 serenity*) 10969 ;; 10970 10971 solaris*) 10972 no_undefined_flag=' -z defs' 10973 if test yes = "$GCC"; then 10974 wlarc='$wl' 10975 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10976 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10977 $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' 10978 else 10979 case `$CC -V 2>&1` in 10980 *"Compilers 5.0"*) 10981 wlarc='' 10982 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10983 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10984 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10985 ;; 10986 *) 10987 wlarc='$wl' 10988 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10989 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10990 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10991 ;; 10992 esac 10993 fi 10994 hardcode_libdir_flag_spec='-R$libdir' 10995 hardcode_shlibpath_var=no 10996 case $host_os in 10997 solaris2.[0-5] | solaris2.[0-5].*) ;; 10998 *) 10999 # The compiler driver will combine and reorder linker options, 11000 # but understands '-z linker_flag'. GCC discards it without '$wl', 11001 # but is careful enough not to reorder. 11002 # Supported since Solaris 2.6 (maybe 2.5.1?) 11003 if test yes = "$GCC"; then 11004 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11005 else 11006 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11007 fi 11008 ;; 11009 esac 11010 link_all_deplibs=yes 11011 ;; 11012 11013 sunos4*) 11014 if test sequent = "$host_vendor"; then 11015 # Use $CC to link under sequent, because it throws in some extra .o 11016 # files that make .init and .fini sections work. 11017 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11018 else 11019 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11020 fi 11021 hardcode_libdir_flag_spec='-L$libdir' 11022 hardcode_direct=yes 11023 hardcode_minus_L=yes 11024 hardcode_shlibpath_var=no 11025 ;; 11026 11027 sysv4) 11028 case $host_vendor in 11029 sni) 11030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11031 hardcode_direct=yes # is this really true??? 11032 ;; 11033 siemens) 11034 ## LD is ld it makes a PLAMLIB 11035 ## CC just makes a GrossModule. 11036 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11037 reload_cmds='$CC -r -o $output$reload_objs' 11038 hardcode_direct=no 11039 ;; 11040 motorola) 11041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11042 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11043 ;; 11044 esac 11045 runpath_var='LD_RUN_PATH' 11046 hardcode_shlibpath_var=no 11047 ;; 11048 11049 sysv4.3*) 11050 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11051 hardcode_shlibpath_var=no 11052 export_dynamic_flag_spec='-Bexport' 11053 ;; 11054 11055 sysv4*MP*) 11056 if test -d /usr/nec; then 11057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11058 hardcode_shlibpath_var=no 11059 runpath_var=LD_RUN_PATH 11060 hardcode_runpath_var=yes 11061 ld_shlibs=yes 11062 fi 11063 ;; 11064 11065 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11066 no_undefined_flag='$wl-z,text' 11067 archive_cmds_need_lc=no 11068 hardcode_shlibpath_var=no 11069 runpath_var='LD_RUN_PATH' 11070 11071 if test yes = "$GCC"; then 11072 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11073 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11074 else 11075 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11076 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11077 fi 11078 ;; 11079 11080 sysv5* | sco3.2v5* | sco5v6*) 11081 # Note: We CANNOT use -z defs as we might desire, because we do not 11082 # link with -lc, and that would cause any symbols used from libc to 11083 # always be unresolved, which means just about no library would 11084 # ever link correctly. If we're not using GNU ld we use -z text 11085 # though, which does catch some bad symbols but isn't as heavy-handed 11086 # as -z defs. 11087 no_undefined_flag='$wl-z,text' 11088 allow_undefined_flag='$wl-z,nodefs' 11089 archive_cmds_need_lc=no 11090 hardcode_shlibpath_var=no 11091 hardcode_libdir_flag_spec='$wl-R,$libdir' 11092 hardcode_libdir_separator=':' 11093 link_all_deplibs=yes 11094 export_dynamic_flag_spec='$wl-Bexport' 11095 runpath_var='LD_RUN_PATH' 11096 11097 if test yes = "$GCC"; then 11098 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11099 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11100 else 11101 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11102 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11103 fi 11104 ;; 11105 11106 uts4*) 11107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11108 hardcode_libdir_flag_spec='-L$libdir' 11109 hardcode_shlibpath_var=no 11110 ;; 11111 11112 *) 11113 ld_shlibs=no 11114 ;; 11115 esac 11116 11117 if test sni = "$host_vendor"; then 11118 case $host in 11119 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11120 export_dynamic_flag_spec='$wl-Blargedynsym' 11121 ;; 11122 esac 11123 fi 11124 fi 11125 11126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11127printf "%s\n" "$ld_shlibs" >&6; } 11128test no = "$ld_shlibs" && can_build_shared=no 11129 11130with_gnu_ld=$with_gnu_ld 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146# 11147# Do we need to explicitly link libc? 11148# 11149case "x$archive_cmds_need_lc" in 11150x|xyes) 11151 # Assume -lc should be added 11152 archive_cmds_need_lc=yes 11153 11154 if test yes,yes = "$GCC,$enable_shared"; then 11155 case $archive_cmds in 11156 *'~'*) 11157 # FIXME: we may have to deal with multi-command sequences. 11158 ;; 11159 '$CC '*) 11160 # Test whether the compiler implicitly links with -lc since on some 11161 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11162 # to ld, don't add -lc before -lgcc. 11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11164printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11165if test ${lt_cv_archive_cmds_need_lc+y} 11166then : 11167 printf %s "(cached) " >&6 11168else case e in #( 11169 e) $RM conftest* 11170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11171 11172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11173 (eval $ac_compile) 2>&5 11174 ac_status=$? 11175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11176 test $ac_status = 0; } 2>conftest.err; then 11177 soname=conftest 11178 lib=conftest 11179 libobjs=conftest.$ac_objext 11180 deplibs= 11181 wl=$lt_prog_compiler_wl 11182 pic_flag=$lt_prog_compiler_pic 11183 compiler_flags=-v 11184 linker_flags=-v 11185 verstring= 11186 output_objdir=. 11187 libname=conftest 11188 lt_save_allow_undefined_flag=$allow_undefined_flag 11189 allow_undefined_flag= 11190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11191 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11192 ac_status=$? 11193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11194 test $ac_status = 0; } 11195 then 11196 lt_cv_archive_cmds_need_lc=no 11197 else 11198 lt_cv_archive_cmds_need_lc=yes 11199 fi 11200 allow_undefined_flag=$lt_save_allow_undefined_flag 11201 else 11202 cat conftest.err 1>&5 11203 fi 11204 $RM conftest* 11205 ;; 11206esac 11207fi 11208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11209printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11210 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11211 ;; 11212 esac 11213 fi 11214 ;; 11215esac 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11369printf %s "checking dynamic linker characteristics... " >&6; } 11370 11371if test yes = "$GCC"; then 11372 case $host_os in 11373 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11374 *) lt_awk_arg='/^libraries:/' ;; 11375 esac 11376 case $host_os in 11377 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11378 *) lt_sed_strip_eq='s|=/|/|g' ;; 11379 esac 11380 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11381 case $lt_search_path_spec in 11382 *\;*) 11383 # if the path contains ";" then we assume it to be the separator 11384 # otherwise default to the standard path separator (i.e. ":") - it is 11385 # assumed that no part of a normal pathname contains ";" but that should 11386 # okay in the real world where ";" in dirpaths is itself problematic. 11387 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11388 ;; 11389 *) 11390 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11391 ;; 11392 esac 11393 # Ok, now we have the path, separated by spaces, we can step through it 11394 # and add multilib dir if necessary... 11395 lt_tmp_lt_search_path_spec= 11396 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11397 # ...but if some path component already ends with the multilib dir we assume 11398 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11399 case "$lt_multi_os_dir; $lt_search_path_spec " in 11400 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11401 lt_multi_os_dir= 11402 ;; 11403 esac 11404 for lt_sys_path in $lt_search_path_spec; do 11405 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11406 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11407 elif test -n "$lt_multi_os_dir"; then 11408 test -d "$lt_sys_path" && \ 11409 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11410 fi 11411 done 11412 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11413BEGIN {RS = " "; FS = "/|\n";} { 11414 lt_foo = ""; 11415 lt_count = 0; 11416 for (lt_i = NF; lt_i > 0; lt_i--) { 11417 if ($lt_i != "" && $lt_i != ".") { 11418 if ($lt_i == "..") { 11419 lt_count++; 11420 } else { 11421 if (lt_count == 0) { 11422 lt_foo = "/" $lt_i lt_foo; 11423 } else { 11424 lt_count--; 11425 } 11426 } 11427 } 11428 } 11429 if (lt_foo != "") { lt_freq[lt_foo]++; } 11430 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11431}'` 11432 # AWK program above erroneously prepends '/' to C:/dos/paths 11433 # for these hosts. 11434 case $host_os in 11435 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11436 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11437 esac 11438 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11439else 11440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11441fi 11442library_names_spec= 11443libname_spec='lib$name' 11444soname_spec= 11445shrext_cmds=.so 11446postinstall_cmds= 11447postuninstall_cmds= 11448finish_cmds= 11449finish_eval= 11450shlibpath_var= 11451shlibpath_overrides_runpath=unknown 11452version_type=none 11453dynamic_linker="$host_os ld.so" 11454sys_lib_dlsearch_path_spec="/lib /usr/lib" 11455need_lib_prefix=unknown 11456hardcode_into_libs=no 11457 11458# when you set need_version to no, make sure it does not cause -set_version 11459# flags to be left without arguments 11460need_version=unknown 11461 11462 11463 11464case $host_os in 11465aix3*) 11466 version_type=linux # correct to gnu/linux during the next big refactor 11467 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11468 shlibpath_var=LIBPATH 11469 11470 # AIX 3 has no versioning support, so we append a major version to the name. 11471 soname_spec='$libname$release$shared_ext$major' 11472 ;; 11473 11474aix[4-9]*) 11475 version_type=linux # correct to gnu/linux during the next big refactor 11476 need_lib_prefix=no 11477 need_version=no 11478 hardcode_into_libs=yes 11479 if test ia64 = "$host_cpu"; then 11480 # AIX 5 supports IA64 11481 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11482 shlibpath_var=LD_LIBRARY_PATH 11483 else 11484 # With GCC up to 2.95.x, collect2 would create an import file 11485 # for dependence libraries. The import file would start with 11486 # the line '#! .'. This would cause the generated library to 11487 # depend on '.', always an invalid library. This was fixed in 11488 # development snapshots of GCC prior to 3.0. 11489 case $host_os in 11490 aix4 | aix4.[01] | aix4.[01].*) 11491 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11492 echo ' yes ' 11493 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11494 : 11495 else 11496 can_build_shared=no 11497 fi 11498 ;; 11499 esac 11500 # Using Import Files as archive members, it is possible to support 11501 # filename-based versioning of shared library archives on AIX. While 11502 # this would work for both with and without runtime linking, it will 11503 # prevent static linking of such archives. So we do filename-based 11504 # shared library versioning with .so extension only, which is used 11505 # when both runtime linking and shared linking is enabled. 11506 # Unfortunately, runtime linking may impact performance, so we do 11507 # not want this to be the default eventually. Also, we use the 11508 # versioned .so libs for executables only if there is the -brtl 11509 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11510 # To allow for filename-based versioning support, we need to create 11511 # libNAME.so.V as an archive file, containing: 11512 # *) an Import File, referring to the versioned filename of the 11513 # archive as well as the shared archive member, telling the 11514 # bitwidth (32 or 64) of that shared object, and providing the 11515 # list of exported symbols of that shared object, eventually 11516 # decorated with the 'weak' keyword 11517 # *) the shared object with the F_LOADONLY flag set, to really avoid 11518 # it being seen by the linker. 11519 # At run time we better use the real file rather than another symlink, 11520 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11521 11522 case $with_aix_soname,$aix_use_runtimelinking in 11523 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11524 # soname into executable. Probably we can add versioning support to 11525 # collect2, so additional links can be useful in future. 11526 aix,yes) # traditional libtool 11527 dynamic_linker='AIX unversionable lib.so' 11528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11529 # instead of lib<name>.a to let people know that these are not 11530 # typical AIX shared libraries. 11531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11532 ;; 11533 aix,no) # traditional AIX only 11534 dynamic_linker='AIX lib.a(lib.so.V)' 11535 # We preserve .a as extension for shared libraries through AIX4.2 11536 # and later when we are not doing run time linking. 11537 library_names_spec='$libname$release.a $libname.a' 11538 soname_spec='$libname$release$shared_ext$major' 11539 ;; 11540 svr4,*) # full svr4 only 11541 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11542 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11543 # We do not specify a path in Import Files, so LIBPATH fires. 11544 shlibpath_overrides_runpath=yes 11545 ;; 11546 *,yes) # both, prefer svr4 11547 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11548 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11549 # unpreferred sharedlib libNAME.a needs extra handling 11550 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"' 11551 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"' 11552 # We do not specify a path in Import Files, so LIBPATH fires. 11553 shlibpath_overrides_runpath=yes 11554 ;; 11555 *,no) # both, prefer aix 11556 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11557 library_names_spec='$libname$release.a $libname.a' 11558 soname_spec='$libname$release$shared_ext$major' 11559 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11560 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)' 11561 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"' 11562 ;; 11563 esac 11564 shlibpath_var=LIBPATH 11565 fi 11566 ;; 11567 11568amigaos*) 11569 case $host_cpu in 11570 powerpc) 11571 # Since July 2007 AmigaOS4 officially supports .so libraries. 11572 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11574 ;; 11575 m68k) 11576 library_names_spec='$libname.ixlibrary $libname.a' 11577 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11578 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' 11579 ;; 11580 esac 11581 ;; 11582 11583beos*) 11584 library_names_spec='$libname$shared_ext' 11585 dynamic_linker="$host_os ld.so" 11586 shlibpath_var=LIBRARY_PATH 11587 ;; 11588 11589bsdi[45]*) 11590 version_type=linux # correct to gnu/linux during the next big refactor 11591 need_version=no 11592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11593 soname_spec='$libname$release$shared_ext$major' 11594 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11595 shlibpath_var=LD_LIBRARY_PATH 11596 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11597 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11598 # the default ld.so.conf also contains /usr/contrib/lib and 11599 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11600 # libtool to hard-code these into programs 11601 ;; 11602 11603cygwin* | mingw* | windows* | pw32* | cegcc*) 11604 version_type=windows 11605 shrext_cmds=.dll 11606 need_version=no 11607 need_lib_prefix=no 11608 11609 case $GCC,$cc_basename in 11610 yes,*) 11611 # gcc 11612 library_names_spec='$libname.dll.a' 11613 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11614 # If user builds GCC with multilib enabled, 11615 # it should just install on $(libdir) 11616 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 11617 if test xyes = x"$multilib"; then 11618 postinstall_cmds='base_file=`basename \$file`~ 11619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11620 dldir=$destdir/`dirname \$dlpath`~ 11621 $install_prog $dir/$dlname $destdir/$dlname~ 11622 chmod a+x $destdir/$dlname~ 11623 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11624 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 11625 fi' 11626 else 11627 postinstall_cmds='base_file=`basename \$file`~ 11628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11629 dldir=$destdir/`dirname \$dlpath`~ 11630 test -d \$dldir || mkdir -p \$dldir~ 11631 $install_prog $dir/$dlname \$dldir/$dlname~ 11632 chmod a+x \$dldir/$dlname~ 11633 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11634 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11635 fi' 11636 fi 11637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11638 dlpath=$dir/\$dldll~ 11639 $RM \$dlpath' 11640 shlibpath_overrides_runpath=yes 11641 11642 case $host_os in 11643 cygwin*) 11644 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11645 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11646 11647 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11648 ;; 11649 mingw* | windows* | cegcc*) 11650 # MinGW DLLs use traditional 'lib' prefix 11651 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11652 ;; 11653 pw32*) 11654 # pw32 DLLs use 'pw' prefix rather than 'lib' 11655 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11656 ;; 11657 esac 11658 dynamic_linker='Win32 ld.exe' 11659 ;; 11660 11661 *,cl* | *,icl*) 11662 # Native MSVC or ICC 11663 libname_spec='$name' 11664 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11665 library_names_spec='$libname.dll.lib' 11666 11667 case $build_os in 11668 mingw* | windows*) 11669 sys_lib_search_path_spec= 11670 lt_save_ifs=$IFS 11671 IFS=';' 11672 for lt_path in $LIB 11673 do 11674 IFS=$lt_save_ifs 11675 # Let DOS variable expansion print the short 8.3 style file name. 11676 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11677 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11678 done 11679 IFS=$lt_save_ifs 11680 # Convert to MSYS style. 11681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11682 ;; 11683 cygwin*) 11684 # Convert to unix form, then to dos form, then back to unix form 11685 # but this time dos style (no spaces!) so that the unix form looks 11686 # like /cygdrive/c/PROGRA~1:/cygdr... 11687 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11688 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11689 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11690 ;; 11691 *) 11692 sys_lib_search_path_spec=$LIB 11693 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11694 # It is most probably a Windows format PATH. 11695 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11696 else 11697 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11698 fi 11699 # FIXME: find the short name or the path components, as spaces are 11700 # common. (e.g. "Program Files" -> "PROGRA~1") 11701 ;; 11702 esac 11703 11704 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11705 postinstall_cmds='base_file=`basename \$file`~ 11706 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11707 dldir=$destdir/`dirname \$dlpath`~ 11708 test -d \$dldir || mkdir -p \$dldir~ 11709 $install_prog $dir/$dlname \$dldir/$dlname' 11710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11711 dlpath=$dir/\$dldll~ 11712 $RM \$dlpath' 11713 shlibpath_overrides_runpath=yes 11714 dynamic_linker='Win32 link.exe' 11715 ;; 11716 11717 *) 11718 # Assume MSVC and ICC wrapper 11719 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11720 dynamic_linker='Win32 ld.exe' 11721 ;; 11722 esac 11723 # FIXME: first we should search . and the directory the executable is in 11724 shlibpath_var=PATH 11725 ;; 11726 11727darwin* | rhapsody*) 11728 dynamic_linker="$host_os dyld" 11729 version_type=darwin 11730 need_lib_prefix=no 11731 need_version=no 11732 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11733 soname_spec='$libname$release$major$shared_ext' 11734 shlibpath_overrides_runpath=yes 11735 shlibpath_var=DYLD_LIBRARY_PATH 11736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11737 11738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11740 ;; 11741 11742dgux*) 11743 version_type=linux # correct to gnu/linux during the next big refactor 11744 need_lib_prefix=no 11745 need_version=no 11746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11747 soname_spec='$libname$release$shared_ext$major' 11748 shlibpath_var=LD_LIBRARY_PATH 11749 ;; 11750 11751freebsd* | dragonfly* | midnightbsd*) 11752 # DragonFly does not have aout. When/if they implement a new 11753 # versioning mechanism, adjust this. 11754 if test -x /usr/bin/objformat; then 11755 objformat=`/usr/bin/objformat` 11756 else 11757 case $host_os in 11758 freebsd[23].*) objformat=aout ;; 11759 *) objformat=elf ;; 11760 esac 11761 fi 11762 version_type=freebsd-$objformat 11763 case $version_type in 11764 freebsd-elf*) 11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11766 soname_spec='$libname$release$shared_ext$major' 11767 need_version=no 11768 need_lib_prefix=no 11769 ;; 11770 freebsd-*) 11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11772 need_version=yes 11773 ;; 11774 esac 11775 case $host_cpu in 11776 powerpc64) 11777 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 11778 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11780/* end confdefs.h. */ 11781int test_pointer_size[sizeof (void *) - 5]; 11782 11783_ACEOF 11784if ac_fn_c_try_compile "$LINENO" 11785then : 11786 shlibpath_var=LD_LIBRARY_PATH 11787else case e in #( 11788 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 11789esac 11790fi 11791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11792 ;; 11793 *) 11794 shlibpath_var=LD_LIBRARY_PATH 11795 ;; 11796 esac 11797 case $host_os in 11798 freebsd2.*) 11799 shlibpath_overrides_runpath=yes 11800 ;; 11801 freebsd3.[01]* | freebsdelf3.[01]*) 11802 shlibpath_overrides_runpath=yes 11803 hardcode_into_libs=yes 11804 ;; 11805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11807 shlibpath_overrides_runpath=no 11808 hardcode_into_libs=yes 11809 ;; 11810 *) # from 4.6 on, and DragonFly 11811 shlibpath_overrides_runpath=yes 11812 hardcode_into_libs=yes 11813 ;; 11814 esac 11815 ;; 11816 11817haiku*) 11818 version_type=linux # correct to gnu/linux during the next big refactor 11819 need_lib_prefix=no 11820 need_version=no 11821 dynamic_linker="$host_os runtime_loader" 11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11823 soname_spec='$libname$release$shared_ext$major' 11824 shlibpath_var=LIBRARY_PATH 11825 shlibpath_overrides_runpath=no 11826 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 11827 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 11828 hardcode_into_libs=no 11829 ;; 11830 11831hpux9* | hpux10* | hpux11*) 11832 # Give a soname corresponding to the major version so that dld.sl refuses to 11833 # link against other versions. 11834 version_type=sunos 11835 need_lib_prefix=no 11836 need_version=no 11837 case $host_cpu in 11838 ia64*) 11839 shrext_cmds='.so' 11840 hardcode_into_libs=yes 11841 dynamic_linker="$host_os dld.so" 11842 shlibpath_var=LD_LIBRARY_PATH 11843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11845 soname_spec='$libname$release$shared_ext$major' 11846 if test 32 = "$HPUX_IA64_MODE"; then 11847 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11848 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11849 else 11850 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11851 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11852 fi 11853 ;; 11854 hppa*64*) 11855 shrext_cmds='.sl' 11856 hardcode_into_libs=yes 11857 dynamic_linker="$host_os dld.sl" 11858 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11861 soname_spec='$libname$release$shared_ext$major' 11862 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11864 ;; 11865 *) 11866 shrext_cmds='.sl' 11867 dynamic_linker="$host_os dld.sl" 11868 shlibpath_var=SHLIB_PATH 11869 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11871 soname_spec='$libname$release$shared_ext$major' 11872 ;; 11873 esac 11874 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11875 postinstall_cmds='chmod 555 $lib' 11876 # or fails outright, so override atomically: 11877 install_override_mode=555 11878 ;; 11879 11880interix[3-9]*) 11881 version_type=linux # correct to gnu/linux during the next big refactor 11882 need_lib_prefix=no 11883 need_version=no 11884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11885 soname_spec='$libname$release$shared_ext$major' 11886 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11887 shlibpath_var=LD_LIBRARY_PATH 11888 shlibpath_overrides_runpath=no 11889 hardcode_into_libs=yes 11890 ;; 11891 11892irix5* | irix6* | nonstopux*) 11893 case $host_os in 11894 nonstopux*) version_type=nonstopux ;; 11895 *) 11896 if test yes = "$lt_cv_prog_gnu_ld"; then 11897 version_type=linux # correct to gnu/linux during the next big refactor 11898 else 11899 version_type=irix 11900 fi ;; 11901 esac 11902 need_lib_prefix=no 11903 need_version=no 11904 soname_spec='$libname$release$shared_ext$major' 11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11906 case $host_os in 11907 irix5* | nonstopux*) 11908 libsuff= shlibsuff= 11909 ;; 11910 *) 11911 case $LD in # libtool.m4 will add one of these switches to LD 11912 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11913 libsuff= shlibsuff= libmagic=32-bit;; 11914 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11915 libsuff=32 shlibsuff=N32 libmagic=N32;; 11916 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11917 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11918 *) libsuff= shlibsuff= libmagic=never-match;; 11919 esac 11920 ;; 11921 esac 11922 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11923 shlibpath_overrides_runpath=no 11924 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11925 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11926 hardcode_into_libs=yes 11927 ;; 11928 11929# No shared lib support for Linux oldld, aout, or coff. 11930linux*oldld* | linux*aout* | linux*coff*) 11931 dynamic_linker=no 11932 ;; 11933 11934linux*android*) 11935 version_type=none # Android doesn't support versioned libraries. 11936 need_lib_prefix=no 11937 need_version=no 11938 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 11939 soname_spec='$libname$release$shared_ext' 11940 finish_cmds= 11941 shlibpath_var=LD_LIBRARY_PATH 11942 shlibpath_overrides_runpath=yes 11943 11944 # This implies no fast_install, which is unacceptable. 11945 # Some rework will be needed to allow for fast_install 11946 # before this can be enabled. 11947 hardcode_into_libs=yes 11948 11949 dynamic_linker='Android linker' 11950 # -rpath works at least for libraries that are not overridden by 11951 # libraries installed in system locations. 11952 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11953 ;; 11954 11955# This must be glibc/ELF. 11956linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11957 version_type=linux # correct to gnu/linux during the next big refactor 11958 need_lib_prefix=no 11959 need_version=no 11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11961 soname_spec='$libname$release$shared_ext$major' 11962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11963 shlibpath_var=LD_LIBRARY_PATH 11964 shlibpath_overrides_runpath=no 11965 11966 # Some binutils ld are patched to set DT_RUNPATH 11967 if test ${lt_cv_shlibpath_overrides_runpath+y} 11968then : 11969 printf %s "(cached) " >&6 11970else case e in #( 11971 e) lt_cv_shlibpath_overrides_runpath=no 11972 save_LDFLAGS=$LDFLAGS 11973 save_libdir=$libdir 11974 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11975 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978 11979int 11980main (void) 11981{ 11982 11983 ; 11984 return 0; 11985} 11986_ACEOF 11987if ac_fn_c_try_link "$LINENO" 11988then : 11989 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11990then : 11991 lt_cv_shlibpath_overrides_runpath=yes 11992fi 11993fi 11994rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11995 conftest$ac_exeext conftest.$ac_ext 11996 LDFLAGS=$save_LDFLAGS 11997 libdir=$save_libdir 11998 ;; 11999esac 12000fi 12001 12002 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12003 12004 # This implies no fast_install, which is unacceptable. 12005 # Some rework will be needed to allow for fast_install 12006 # before this can be enabled. 12007 hardcode_into_libs=yes 12008 12009 # Ideally, we could use ldconfig to report *all* directories which are 12010 # searched for libraries, however this is still not possible. Aside from not 12011 # being certain /sbin/ldconfig is available, command 12012 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12013 # even though it is searched at run-time. Try to do the best guess by 12014 # appending ld.so.conf contents (and includes) to the search path. 12015 if test -f /etc/ld.so.conf; then 12016 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' ' '` 12017 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12018 fi 12019 12020 # We used to test for /lib/ld.so.1 and disable shared libraries on 12021 # powerpc, because MkLinux only supported shared libraries with the 12022 # GNU dynamic linker. Since this was broken with cross compilers, 12023 # most powerpc-linux boxes support dynamic linking these days and 12024 # people can always --disable-shared, the test was removed, and we 12025 # assume the GNU/Linux dynamic linker is in use. 12026 dynamic_linker='GNU/Linux ld.so' 12027 ;; 12028 12029netbsdelf*-gnu) 12030 version_type=linux 12031 need_lib_prefix=no 12032 need_version=no 12033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12034 soname_spec='$libname$release$shared_ext$major' 12035 shlibpath_var=LD_LIBRARY_PATH 12036 shlibpath_overrides_runpath=no 12037 hardcode_into_libs=yes 12038 dynamic_linker='NetBSD ld.elf_so' 12039 ;; 12040 12041netbsd*) 12042 version_type=sunos 12043 need_lib_prefix=no 12044 need_version=no 12045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12046 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12048 dynamic_linker='NetBSD (a.out) ld.so' 12049 else 12050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12051 soname_spec='$libname$release$shared_ext$major' 12052 dynamic_linker='NetBSD ld.elf_so' 12053 fi 12054 shlibpath_var=LD_LIBRARY_PATH 12055 shlibpath_overrides_runpath=yes 12056 hardcode_into_libs=yes 12057 ;; 12058 12059*-mlibc) 12060 version_type=linux # correct to gnu/linux during the next big refactor 12061 need_lib_prefix=no 12062 need_version=no 12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12064 soname_spec='$libname$release$shared_ext$major' 12065 dynamic_linker='mlibc ld.so' 12066 shlibpath_var=LD_LIBRARY_PATH 12067 shlibpath_overrides_runpath=no 12068 hardcode_into_libs=yes 12069 ;; 12070 12071newsos6) 12072 version_type=linux # correct to gnu/linux during the next big refactor 12073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12074 shlibpath_var=LD_LIBRARY_PATH 12075 shlibpath_overrides_runpath=yes 12076 ;; 12077 12078*nto* | *qnx*) 12079 version_type=qnx 12080 need_lib_prefix=no 12081 need_version=no 12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12083 soname_spec='$libname$release$shared_ext$major' 12084 shlibpath_var=LD_LIBRARY_PATH 12085 shlibpath_overrides_runpath=no 12086 hardcode_into_libs=yes 12087 dynamic_linker='ldqnx.so' 12088 ;; 12089 12090openbsd*) 12091 version_type=sunos 12092 sys_lib_dlsearch_path_spec=/usr/lib 12093 need_lib_prefix=no 12094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12095 need_version=no 12096 else 12097 need_version=yes 12098 fi 12099 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12101 shlibpath_var=LD_LIBRARY_PATH 12102 shlibpath_overrides_runpath=yes 12103 ;; 12104 12105os2*) 12106 libname_spec='$name' 12107 version_type=windows 12108 shrext_cmds=.dll 12109 need_version=no 12110 need_lib_prefix=no 12111 # OS/2 can only load a DLL with a base name of 8 characters or less. 12112 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12113 v=$($ECHO $release$versuffix | tr -d .-); 12114 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12115 $ECHO $n$v`$shared_ext' 12116 library_names_spec='${libname}_dll.$libext' 12117 dynamic_linker='OS/2 ld.exe' 12118 shlibpath_var=BEGINLIBPATH 12119 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12120 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12121 postinstall_cmds='base_file=`basename \$file`~ 12122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12123 dldir=$destdir/`dirname \$dlpath`~ 12124 test -d \$dldir || mkdir -p \$dldir~ 12125 $install_prog $dir/$dlname \$dldir/$dlname~ 12126 chmod a+x \$dldir/$dlname~ 12127 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12128 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12129 fi' 12130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12131 dlpath=$dir/\$dldll~ 12132 $RM \$dlpath' 12133 ;; 12134 12135osf3* | osf4* | osf5*) 12136 version_type=osf 12137 need_lib_prefix=no 12138 need_version=no 12139 soname_spec='$libname$release$shared_ext$major' 12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12141 shlibpath_var=LD_LIBRARY_PATH 12142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12143 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12144 ;; 12145 12146rdos*) 12147 dynamic_linker=no 12148 ;; 12149 12150serenity*) 12151 version_type=linux # correct to gnu/linux during the next big refactor 12152 need_lib_prefix=no 12153 need_version=no 12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12155 soname_spec='$libname$release$shared_ext$major' 12156 shlibpath_var=LD_LIBRARY_PATH 12157 shlibpath_overrides_runpath=no 12158 dynamic_linker='SerenityOS LibELF' 12159 ;; 12160 12161solaris*) 12162 version_type=linux # correct to gnu/linux during the next big refactor 12163 need_lib_prefix=no 12164 need_version=no 12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12166 soname_spec='$libname$release$shared_ext$major' 12167 shlibpath_var=LD_LIBRARY_PATH 12168 shlibpath_overrides_runpath=yes 12169 hardcode_into_libs=yes 12170 # ldd complains unless libraries are executable 12171 postinstall_cmds='chmod +x $lib' 12172 ;; 12173 12174sunos4*) 12175 version_type=sunos 12176 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12177 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12178 shlibpath_var=LD_LIBRARY_PATH 12179 shlibpath_overrides_runpath=yes 12180 if test yes = "$with_gnu_ld"; then 12181 need_lib_prefix=no 12182 fi 12183 need_version=yes 12184 ;; 12185 12186sysv4 | sysv4.3*) 12187 version_type=linux # correct to gnu/linux during the next big refactor 12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12189 soname_spec='$libname$release$shared_ext$major' 12190 shlibpath_var=LD_LIBRARY_PATH 12191 case $host_vendor in 12192 sni) 12193 shlibpath_overrides_runpath=no 12194 need_lib_prefix=no 12195 runpath_var=LD_RUN_PATH 12196 ;; 12197 siemens) 12198 need_lib_prefix=no 12199 ;; 12200 motorola) 12201 need_lib_prefix=no 12202 need_version=no 12203 shlibpath_overrides_runpath=no 12204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12205 ;; 12206 esac 12207 ;; 12208 12209sysv4*MP*) 12210 if test -d /usr/nec; then 12211 version_type=linux # correct to gnu/linux during the next big refactor 12212 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12213 soname_spec='$libname$shared_ext.$major' 12214 shlibpath_var=LD_LIBRARY_PATH 12215 fi 12216 ;; 12217 12218sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12219 version_type=sco 12220 need_lib_prefix=no 12221 need_version=no 12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12223 soname_spec='$libname$release$shared_ext$major' 12224 shlibpath_var=LD_LIBRARY_PATH 12225 shlibpath_overrides_runpath=yes 12226 hardcode_into_libs=yes 12227 if test yes = "$with_gnu_ld"; then 12228 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12229 else 12230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12231 case $host_os in 12232 sco3.2v5*) 12233 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12234 ;; 12235 esac 12236 fi 12237 sys_lib_dlsearch_path_spec='/usr/lib' 12238 ;; 12239 12240tpf*) 12241 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12242 version_type=linux # correct to gnu/linux during the next big refactor 12243 need_lib_prefix=no 12244 need_version=no 12245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12246 shlibpath_var=LD_LIBRARY_PATH 12247 shlibpath_overrides_runpath=no 12248 hardcode_into_libs=yes 12249 ;; 12250 12251uts4*) 12252 version_type=linux # correct to gnu/linux during the next big refactor 12253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12254 soname_spec='$libname$release$shared_ext$major' 12255 shlibpath_var=LD_LIBRARY_PATH 12256 ;; 12257 12258emscripten*) 12259 version_type=none 12260 need_lib_prefix=no 12261 need_version=no 12262 library_names_spec='$libname$release$shared_ext' 12263 soname_spec='$libname$release$shared_ext' 12264 finish_cmds= 12265 dynamic_linker="Emscripten linker" 12266 lt_prog_compiler_wl= 12267lt_prog_compiler_pic= 12268lt_prog_compiler_static= 12269 12270 12271 if test yes = "$GCC"; then 12272 lt_prog_compiler_wl='-Wl,' 12273 lt_prog_compiler_static='-static' 12274 12275 case $host_os in 12276 aix*) 12277 # All AIX code is PIC. 12278 if test ia64 = "$host_cpu"; then 12279 # AIX 5 now supports IA64 processor 12280 lt_prog_compiler_static='-Bstatic' 12281 fi 12282 lt_prog_compiler_pic='-fPIC' 12283 ;; 12284 12285 amigaos*) 12286 case $host_cpu in 12287 powerpc) 12288 # see comment about AmigaOS4 .so support 12289 lt_prog_compiler_pic='-fPIC' 12290 ;; 12291 m68k) 12292 # FIXME: we need at least 68020 code to build shared libraries, but 12293 # adding the '-m68020' flag to GCC prevents building anything better, 12294 # like '-m68040'. 12295 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12296 ;; 12297 esac 12298 ;; 12299 12300 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12301 # PIC is the default for these OSes. 12302 ;; 12303 12304 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12305 # This hack is so that the source file can tell whether it is being 12306 # built for inclusion in a dll (and should export symbols for example). 12307 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12308 # (--disable-auto-import) libraries 12309 lt_prog_compiler_pic='-DDLL_EXPORT' 12310 case $host_os in 12311 os2*) 12312 lt_prog_compiler_static='$wl-static' 12313 ;; 12314 esac 12315 ;; 12316 12317 darwin* | rhapsody*) 12318 # PIC is the default on this platform 12319 # Common symbols not allowed in MH_DYLIB files 12320 lt_prog_compiler_pic='-fno-common' 12321 ;; 12322 12323 haiku*) 12324 # PIC is the default for Haiku. 12325 # The "-static" flag exists, but is broken. 12326 lt_prog_compiler_static= 12327 ;; 12328 12329 hpux*) 12330 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12331 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12332 # sets the default TLS model and affects inlining. 12333 case $host_cpu in 12334 hppa*64*) 12335 # +Z the default 12336 ;; 12337 *) 12338 lt_prog_compiler_pic='-fPIC' 12339 ;; 12340 esac 12341 ;; 12342 12343 interix[3-9]*) 12344 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12345 # Instead, we relocate shared libraries at runtime. 12346 ;; 12347 12348 msdosdjgpp*) 12349 # Just because we use GCC doesn't mean we suddenly get shared libraries 12350 # on systems that don't support them. 12351 lt_prog_compiler_can_build_shared=no 12352 enable_shared=no 12353 ;; 12354 12355 *nto* | *qnx*) 12356 # QNX uses GNU C++, but need to define -shared option too, otherwise 12357 # it will coredump. 12358 lt_prog_compiler_pic='-fPIC -shared' 12359 ;; 12360 12361 sysv4*MP*) 12362 if test -d /usr/nec; then 12363 lt_prog_compiler_pic=-Kconform_pic 12364 fi 12365 ;; 12366 12367 *) 12368 lt_prog_compiler_pic='-fPIC' 12369 ;; 12370 esac 12371 12372 case $cc_basename in 12373 nvcc*) # Cuda Compiler Driver 2.2 12374 lt_prog_compiler_wl='-Xlinker ' 12375 if test -n "$lt_prog_compiler_pic"; then 12376 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12377 fi 12378 ;; 12379 esac 12380 else 12381 # PORTME Check for flag to pass linker flags through the system compiler. 12382 case $host_os in 12383 aix*) 12384 lt_prog_compiler_wl='-Wl,' 12385 if test ia64 = "$host_cpu"; then 12386 # AIX 5 now supports IA64 processor 12387 lt_prog_compiler_static='-Bstatic' 12388 else 12389 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12390 fi 12391 ;; 12392 12393 darwin* | rhapsody*) 12394 # PIC is the default on this platform 12395 # Common symbols not allowed in MH_DYLIB files 12396 lt_prog_compiler_pic='-fno-common' 12397 case $cc_basename in 12398 nagfor*) 12399 # NAG Fortran compiler 12400 lt_prog_compiler_wl='-Wl,-Wl,,' 12401 lt_prog_compiler_pic='-PIC' 12402 lt_prog_compiler_static='-Bstatic' 12403 ;; 12404 esac 12405 ;; 12406 12407 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12408 # This hack is so that the source file can tell whether it is being 12409 # built for inclusion in a dll (and should export symbols for example). 12410 lt_prog_compiler_pic='-DDLL_EXPORT' 12411 case $host_os in 12412 os2*) 12413 lt_prog_compiler_static='$wl-static' 12414 ;; 12415 esac 12416 ;; 12417 12418 hpux9* | hpux10* | hpux11*) 12419 lt_prog_compiler_wl='-Wl,' 12420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12421 # not for PA HP-UX. 12422 case $host_cpu in 12423 hppa*64*|ia64*) 12424 # +Z the default 12425 ;; 12426 *) 12427 lt_prog_compiler_pic='+Z' 12428 ;; 12429 esac 12430 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12431 lt_prog_compiler_static='$wl-a ${wl}archive' 12432 ;; 12433 12434 irix5* | irix6* | nonstopux*) 12435 lt_prog_compiler_wl='-Wl,' 12436 # PIC (with -KPIC) is the default. 12437 lt_prog_compiler_static='-non_shared' 12438 ;; 12439 12440 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12441 case $cc_basename in 12442 # old Intel for x86_64, which still supported -KPIC. 12443 ecc*) 12444 lt_prog_compiler_wl='-Wl,' 12445 lt_prog_compiler_pic='-KPIC' 12446 lt_prog_compiler_static='-static' 12447 ;; 12448 *flang* | ftn | f18* | f95*) 12449 # Flang compiler. 12450 lt_prog_compiler_wl='-Wl,' 12451 lt_prog_compiler_pic='-fPIC' 12452 lt_prog_compiler_static='-static' 12453 ;; 12454 # icc used to be incompatible with GCC. 12455 # ICC 10 doesn't accept -KPIC any more. 12456 icc* | ifort*) 12457 lt_prog_compiler_wl='-Wl,' 12458 lt_prog_compiler_pic='-fPIC' 12459 lt_prog_compiler_static='-static' 12460 ;; 12461 # Lahey Fortran 8.1. 12462 lf95*) 12463 lt_prog_compiler_wl='-Wl,' 12464 lt_prog_compiler_pic='--shared' 12465 lt_prog_compiler_static='--static' 12466 ;; 12467 nagfor*) 12468 # NAG Fortran compiler 12469 lt_prog_compiler_wl='-Wl,-Wl,,' 12470 lt_prog_compiler_pic='-PIC' 12471 lt_prog_compiler_static='-Bstatic' 12472 ;; 12473 tcc*) 12474 # Fabrice Bellard et al's Tiny C Compiler 12475 lt_prog_compiler_wl='-Wl,' 12476 lt_prog_compiler_pic='-fPIC' 12477 lt_prog_compiler_static='-static' 12478 ;; 12479 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12480 # Portland Group compilers (*not* the Pentium gcc compiler, 12481 # which looks to be a dead project) 12482 lt_prog_compiler_wl='-Wl,' 12483 lt_prog_compiler_pic='-fpic' 12484 lt_prog_compiler_static='-Bstatic' 12485 ;; 12486 ccc*) 12487 lt_prog_compiler_wl='-Wl,' 12488 # All Alpha code is PIC. 12489 lt_prog_compiler_static='-non_shared' 12490 ;; 12491 xl* | bgxl* | bgf* | mpixl*) 12492 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12493 lt_prog_compiler_wl='-Wl,' 12494 lt_prog_compiler_pic='-qpic' 12495 lt_prog_compiler_static='-qstaticlink' 12496 ;; 12497 *) 12498 case `$CC -V 2>&1 | $SED 5q` in 12499 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12500 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12501 lt_prog_compiler_pic='-KPIC' 12502 lt_prog_compiler_static='-Bstatic' 12503 lt_prog_compiler_wl='' 12504 ;; 12505 *Sun\ F* | *Sun*Fortran*) 12506 lt_prog_compiler_pic='-KPIC' 12507 lt_prog_compiler_static='-Bstatic' 12508 lt_prog_compiler_wl='-Qoption ld ' 12509 ;; 12510 *Sun\ C*) 12511 # Sun C 5.9 12512 lt_prog_compiler_pic='-KPIC' 12513 lt_prog_compiler_static='-Bstatic' 12514 lt_prog_compiler_wl='-Wl,' 12515 ;; 12516 *Intel*\ [CF]*Compiler*) 12517 lt_prog_compiler_wl='-Wl,' 12518 lt_prog_compiler_pic='-fPIC' 12519 lt_prog_compiler_static='-static' 12520 ;; 12521 *Portland\ Group*) 12522 lt_prog_compiler_wl='-Wl,' 12523 lt_prog_compiler_pic='-fpic' 12524 lt_prog_compiler_static='-Bstatic' 12525 ;; 12526 esac 12527 ;; 12528 esac 12529 ;; 12530 12531 newsos6) 12532 lt_prog_compiler_pic='-KPIC' 12533 lt_prog_compiler_static='-Bstatic' 12534 ;; 12535 12536 *-mlibc) 12537 lt_prog_compiler_wl='-Wl,' 12538 lt_prog_compiler_pic='-fPIC' 12539 lt_prog_compiler_static='-static' 12540 ;; 12541 12542 *nto* | *qnx*) 12543 # QNX uses GNU C++, but need to define -shared option too, otherwise 12544 # it will coredump. 12545 lt_prog_compiler_pic='-fPIC -shared' 12546 ;; 12547 12548 osf3* | osf4* | osf5*) 12549 lt_prog_compiler_wl='-Wl,' 12550 # All OSF/1 code is PIC. 12551 lt_prog_compiler_static='-non_shared' 12552 ;; 12553 12554 rdos*) 12555 lt_prog_compiler_static='-non_shared' 12556 ;; 12557 12558 serenity*) 12559 ;; 12560 12561 solaris*) 12562 lt_prog_compiler_pic='-KPIC' 12563 lt_prog_compiler_static='-Bstatic' 12564 case $cc_basename in 12565 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12566 lt_prog_compiler_wl='-Qoption ld ';; 12567 *) 12568 lt_prog_compiler_wl='-Wl,';; 12569 esac 12570 ;; 12571 12572 sunos4*) 12573 lt_prog_compiler_wl='-Qoption ld ' 12574 lt_prog_compiler_pic='-PIC' 12575 lt_prog_compiler_static='-Bstatic' 12576 ;; 12577 12578 sysv4 | sysv4.2uw2* | sysv4.3*) 12579 lt_prog_compiler_wl='-Wl,' 12580 lt_prog_compiler_pic='-KPIC' 12581 lt_prog_compiler_static='-Bstatic' 12582 ;; 12583 12584 sysv4*MP*) 12585 if test -d /usr/nec; then 12586 lt_prog_compiler_pic='-Kconform_pic' 12587 lt_prog_compiler_static='-Bstatic' 12588 fi 12589 ;; 12590 12591 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12592 lt_prog_compiler_wl='-Wl,' 12593 lt_prog_compiler_pic='-KPIC' 12594 lt_prog_compiler_static='-Bstatic' 12595 ;; 12596 12597 unicos*) 12598 lt_prog_compiler_wl='-Wl,' 12599 lt_prog_compiler_can_build_shared=no 12600 ;; 12601 12602 uts4*) 12603 lt_prog_compiler_pic='-pic' 12604 lt_prog_compiler_static='-Bstatic' 12605 ;; 12606 12607 *) 12608 lt_prog_compiler_can_build_shared=no 12609 ;; 12610 esac 12611 fi 12612 12613case $host_os in 12614 # For platforms that do not support PIC, -DPIC is meaningless: 12615 *djgpp*) 12616 lt_prog_compiler_pic= 12617 ;; 12618 *) 12619 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12620 ;; 12621esac 12622 12623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12624printf %s "checking for $compiler option to produce PIC... " >&6; } 12625if test ${lt_cv_prog_compiler_pic+y} 12626then : 12627 printf %s "(cached) " >&6 12628else case e in #( 12629 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 12630esac 12631fi 12632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12633printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12634lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12635 12636# 12637# Check to make sure the PIC flag actually works. 12638# 12639if test -n "$lt_prog_compiler_pic"; then 12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12641printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12642if test ${lt_cv_prog_compiler_pic_works+y} 12643then : 12644 printf %s "(cached) " >&6 12645else case e in #( 12646 e) lt_cv_prog_compiler_pic_works=no 12647 ac_outfile=conftest.$ac_objext 12648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12649 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12650 # Insert the option either (1) after the last *FLAGS variable, or 12651 # (2) before a word containing "conftest.", or (3) at the end. 12652 # Note that $ac_compile itself does not contain backslashes and begins 12653 # with a dollar sign (not a hyphen), so the echo should work correctly. 12654 # The option is referenced via a variable to avoid confusing sed. 12655 lt_compile=`echo "$ac_compile" | $SED \ 12656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12658 -e 's:$: $lt_compiler_flag:'` 12659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12660 (eval "$lt_compile" 2>conftest.err) 12661 ac_status=$? 12662 cat conftest.err >&5 12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12664 if (exit $ac_status) && test -s "$ac_outfile"; then 12665 # The compiler can only warn and ignore the option if not recognized 12666 # So say no if there are warnings other than the usual output. 12667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12670 lt_cv_prog_compiler_pic_works=yes 12671 fi 12672 fi 12673 $RM conftest* 12674 ;; 12675esac 12676fi 12677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12678printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12679 12680if test yes = "$lt_cv_prog_compiler_pic_works"; then 12681 case $lt_prog_compiler_pic in 12682 "" | " "*) ;; 12683 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12684 esac 12685else 12686 lt_prog_compiler_pic= 12687 lt_prog_compiler_can_build_shared=no 12688fi 12689 12690fi 12691 12692 12693 12694 12695 12696# 12697# Check to make sure the static flag actually works. 12698# 12699wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12701printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12702if test ${lt_cv_prog_compiler_static_works+y} 12703then : 12704 printf %s "(cached) " >&6 12705else case e in #( 12706 e) lt_cv_prog_compiler_static_works=no 12707 save_LDFLAGS=$LDFLAGS 12708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12709 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12711 # The linker can only warn and ignore the option if not recognized 12712 # So say no if there are warnings 12713 if test -s conftest.err; then 12714 # Append any errors to the config.log. 12715 cat conftest.err 1>&5 12716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12718 if diff conftest.exp conftest.er2 >/dev/null; then 12719 lt_cv_prog_compiler_static_works=yes 12720 fi 12721 else 12722 lt_cv_prog_compiler_static_works=yes 12723 fi 12724 fi 12725 $RM -r conftest* 12726 LDFLAGS=$save_LDFLAGS 12727 ;; 12728esac 12729fi 12730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12731printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12732 12733if test yes = "$lt_cv_prog_compiler_static_works"; then 12734 : 12735else 12736 lt_prog_compiler_static= 12737fi 12738 12739 12740 12741='-fPIC' 12742 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 12743 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 12744 archive_cmds_need_lc=no 12745 no_undefined_flag= 12746 ;; 12747 12748*) 12749 dynamic_linker=no 12750 ;; 12751esac 12752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12753printf "%s\n" "$dynamic_linker" >&6; } 12754test no = "$dynamic_linker" && can_build_shared=no 12755 12756variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12757if test yes = "$GCC"; then 12758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12759fi 12760 12761if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12762 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12763fi 12764 12765if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12766 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12767fi 12768 12769# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12770configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12771 12772# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12773func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12774 12775# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12776configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12875printf %s "checking how to hardcode library paths into programs... " >&6; } 12876hardcode_action= 12877if test -n "$hardcode_libdir_flag_spec" || 12878 test -n "$runpath_var" || 12879 test yes = "$hardcode_automatic"; then 12880 12881 # We can hardcode non-existent directories. 12882 if test no != "$hardcode_direct" && 12883 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12884 # have to relink, otherwise we might link with an installed library 12885 # when we should be linking with a yet-to-be-installed one 12886 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12887 test no != "$hardcode_minus_L"; then 12888 # Linking always hardcodes the temporary library directory. 12889 hardcode_action=relink 12890 else 12891 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12892 hardcode_action=immediate 12893 fi 12894else 12895 # We cannot hardcode anything, or else we can only hardcode existing 12896 # directories. 12897 hardcode_action=unsupported 12898fi 12899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12900printf "%s\n" "$hardcode_action" >&6; } 12901 12902if test relink = "$hardcode_action" || 12903 test yes = "$inherit_rpath"; then 12904 # Fast installation is not supported 12905 enable_fast_install=no 12906elif test yes = "$shlibpath_overrides_runpath" || 12907 test no = "$enable_shared"; then 12908 # Fast installation is not necessary 12909 enable_fast_install=needless 12910fi 12911 12912 12913 12914 12915 12916 12917 if test yes != "$enable_dlopen"; then 12918 enable_dlopen=unknown 12919 enable_dlopen_self=unknown 12920 enable_dlopen_self_static=unknown 12921else 12922 lt_cv_dlopen=no 12923 lt_cv_dlopen_libs= 12924 12925 case $host_os in 12926 beos*) 12927 lt_cv_dlopen=load_add_on 12928 lt_cv_dlopen_libs= 12929 lt_cv_dlopen_self=yes 12930 ;; 12931 12932 mingw* | windows* | pw32* | cegcc*) 12933 lt_cv_dlopen=LoadLibrary 12934 lt_cv_dlopen_libs= 12935 ;; 12936 12937 cygwin*) 12938 lt_cv_dlopen=dlopen 12939 lt_cv_dlopen_libs= 12940 ;; 12941 12942 darwin*) 12943 # if libdl is installed we need to link against it 12944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12945printf %s "checking for dlopen in -ldl... " >&6; } 12946if test ${ac_cv_lib_dl_dlopen+y} 12947then : 12948 printf %s "(cached) " >&6 12949else case e in #( 12950 e) ac_check_lib_save_LIBS=$LIBS 12951LIBS="-ldl $LIBS" 12952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12953/* end confdefs.h. */ 12954 12955/* Override any GCC internal prototype to avoid an error. 12956 Use char because int might match the return type of a GCC 12957 builtin and then its argument prototype would still apply. 12958 The 'extern "C"' is for builds by C++ compilers; 12959 although this is not generally supported in C code supporting it here 12960 has little cost and some practical benefit (sr 110532). */ 12961#ifdef __cplusplus 12962extern "C" 12963#endif 12964char dlopen (void); 12965int 12966main (void) 12967{ 12968return dlopen (); 12969 ; 12970 return 0; 12971} 12972_ACEOF 12973if ac_fn_c_try_link "$LINENO" 12974then : 12975 ac_cv_lib_dl_dlopen=yes 12976else case e in #( 12977 e) ac_cv_lib_dl_dlopen=no ;; 12978esac 12979fi 12980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12981 conftest$ac_exeext conftest.$ac_ext 12982LIBS=$ac_check_lib_save_LIBS ;; 12983esac 12984fi 12985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12986printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12987if test "x$ac_cv_lib_dl_dlopen" = xyes 12988then : 12989 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12990else case e in #( 12991 e) 12992 lt_cv_dlopen=dyld 12993 lt_cv_dlopen_libs= 12994 lt_cv_dlopen_self=yes 12995 ;; 12996esac 12997fi 12998 12999 ;; 13000 13001 tpf*) 13002 # Don't try to run any link tests for TPF. We know it's impossible 13003 # because TPF is a cross-compiler, and we know how we open DSOs. 13004 lt_cv_dlopen=dlopen 13005 lt_cv_dlopen_libs= 13006 lt_cv_dlopen_self=no 13007 ;; 13008 13009 *) 13010 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13011if test "x$ac_cv_func_shl_load" = xyes 13012then : 13013 lt_cv_dlopen=shl_load 13014else case e in #( 13015 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13016printf %s "checking for shl_load in -ldld... " >&6; } 13017if test ${ac_cv_lib_dld_shl_load+y} 13018then : 13019 printf %s "(cached) " >&6 13020else case e in #( 13021 e) ac_check_lib_save_LIBS=$LIBS 13022LIBS="-ldld $LIBS" 13023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13024/* end confdefs.h. */ 13025 13026/* Override any GCC internal prototype to avoid an error. 13027 Use char because int might match the return type of a GCC 13028 builtin and then its argument prototype would still apply. 13029 The 'extern "C"' is for builds by C++ compilers; 13030 although this is not generally supported in C code supporting it here 13031 has little cost and some practical benefit (sr 110532). */ 13032#ifdef __cplusplus 13033extern "C" 13034#endif 13035char shl_load (void); 13036int 13037main (void) 13038{ 13039return shl_load (); 13040 ; 13041 return 0; 13042} 13043_ACEOF 13044if ac_fn_c_try_link "$LINENO" 13045then : 13046 ac_cv_lib_dld_shl_load=yes 13047else case e in #( 13048 e) ac_cv_lib_dld_shl_load=no ;; 13049esac 13050fi 13051rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13052 conftest$ac_exeext conftest.$ac_ext 13053LIBS=$ac_check_lib_save_LIBS ;; 13054esac 13055fi 13056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13057printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13058if test "x$ac_cv_lib_dld_shl_load" = xyes 13059then : 13060 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13061else case e in #( 13062 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13063if test "x$ac_cv_func_dlopen" = xyes 13064then : 13065 lt_cv_dlopen=dlopen 13066else case e in #( 13067 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13068printf %s "checking for dlopen in -ldl... " >&6; } 13069if test ${ac_cv_lib_dl_dlopen+y} 13070then : 13071 printf %s "(cached) " >&6 13072else case e in #( 13073 e) ac_check_lib_save_LIBS=$LIBS 13074LIBS="-ldl $LIBS" 13075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13076/* end confdefs.h. */ 13077 13078/* Override any GCC internal prototype to avoid an error. 13079 Use char because int might match the return type of a GCC 13080 builtin and then its argument prototype would still apply. 13081 The 'extern "C"' is for builds by C++ compilers; 13082 although this is not generally supported in C code supporting it here 13083 has little cost and some practical benefit (sr 110532). */ 13084#ifdef __cplusplus 13085extern "C" 13086#endif 13087char dlopen (void); 13088int 13089main (void) 13090{ 13091return dlopen (); 13092 ; 13093 return 0; 13094} 13095_ACEOF 13096if ac_fn_c_try_link "$LINENO" 13097then : 13098 ac_cv_lib_dl_dlopen=yes 13099else case e in #( 13100 e) ac_cv_lib_dl_dlopen=no ;; 13101esac 13102fi 13103rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13104 conftest$ac_exeext conftest.$ac_ext 13105LIBS=$ac_check_lib_save_LIBS ;; 13106esac 13107fi 13108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13109printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13110if test "x$ac_cv_lib_dl_dlopen" = xyes 13111then : 13112 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13113else case e in #( 13114 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13115printf %s "checking for dlopen in -lsvld... " >&6; } 13116if test ${ac_cv_lib_svld_dlopen+y} 13117then : 13118 printf %s "(cached) " >&6 13119else case e in #( 13120 e) ac_check_lib_save_LIBS=$LIBS 13121LIBS="-lsvld $LIBS" 13122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13123/* end confdefs.h. */ 13124 13125/* Override any GCC internal prototype to avoid an error. 13126 Use char because int might match the return type of a GCC 13127 builtin and then its argument prototype would still apply. 13128 The 'extern "C"' is for builds by C++ compilers; 13129 although this is not generally supported in C code supporting it here 13130 has little cost and some practical benefit (sr 110532). */ 13131#ifdef __cplusplus 13132extern "C" 13133#endif 13134char dlopen (void); 13135int 13136main (void) 13137{ 13138return dlopen (); 13139 ; 13140 return 0; 13141} 13142_ACEOF 13143if ac_fn_c_try_link "$LINENO" 13144then : 13145 ac_cv_lib_svld_dlopen=yes 13146else case e in #( 13147 e) ac_cv_lib_svld_dlopen=no ;; 13148esac 13149fi 13150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13151 conftest$ac_exeext conftest.$ac_ext 13152LIBS=$ac_check_lib_save_LIBS ;; 13153esac 13154fi 13155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13156printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13157if test "x$ac_cv_lib_svld_dlopen" = xyes 13158then : 13159 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13160else case e in #( 13161 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13162printf %s "checking for dld_link in -ldld... " >&6; } 13163if test ${ac_cv_lib_dld_dld_link+y} 13164then : 13165 printf %s "(cached) " >&6 13166else case e in #( 13167 e) ac_check_lib_save_LIBS=$LIBS 13168LIBS="-ldld $LIBS" 13169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13170/* end confdefs.h. */ 13171 13172/* Override any GCC internal prototype to avoid an error. 13173 Use char because int might match the return type of a GCC 13174 builtin and then its argument prototype would still apply. 13175 The 'extern "C"' is for builds by C++ compilers; 13176 although this is not generally supported in C code supporting it here 13177 has little cost and some practical benefit (sr 110532). */ 13178#ifdef __cplusplus 13179extern "C" 13180#endif 13181char dld_link (void); 13182int 13183main (void) 13184{ 13185return dld_link (); 13186 ; 13187 return 0; 13188} 13189_ACEOF 13190if ac_fn_c_try_link "$LINENO" 13191then : 13192 ac_cv_lib_dld_dld_link=yes 13193else case e in #( 13194 e) ac_cv_lib_dld_dld_link=no ;; 13195esac 13196fi 13197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13198 conftest$ac_exeext conftest.$ac_ext 13199LIBS=$ac_check_lib_save_LIBS ;; 13200esac 13201fi 13202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13203printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13204if test "x$ac_cv_lib_dld_dld_link" = xyes 13205then : 13206 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13207fi 13208 13209 ;; 13210esac 13211fi 13212 13213 ;; 13214esac 13215fi 13216 13217 ;; 13218esac 13219fi 13220 13221 ;; 13222esac 13223fi 13224 13225 ;; 13226esac 13227fi 13228 13229 ;; 13230 esac 13231 13232 if test no = "$lt_cv_dlopen"; then 13233 enable_dlopen=no 13234 else 13235 enable_dlopen=yes 13236 fi 13237 13238 case $lt_cv_dlopen in 13239 dlopen) 13240 save_CPPFLAGS=$CPPFLAGS 13241 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13242 13243 save_LDFLAGS=$LDFLAGS 13244 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13245 13246 save_LIBS=$LIBS 13247 LIBS="$lt_cv_dlopen_libs $LIBS" 13248 13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13250printf %s "checking whether a program can dlopen itself... " >&6; } 13251if test ${lt_cv_dlopen_self+y} 13252then : 13253 printf %s "(cached) " >&6 13254else case e in #( 13255 e) if test yes = "$cross_compiling"; then : 13256 lt_cv_dlopen_self=cross 13257else 13258 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13259 lt_status=$lt_dlunknown 13260 cat > conftest.$ac_ext <<_LT_EOF 13261#line $LINENO "configure" 13262#include "confdefs.h" 13263 13264#if HAVE_DLFCN_H 13265#include <dlfcn.h> 13266#endif 13267 13268#include <stdio.h> 13269 13270#ifdef RTLD_GLOBAL 13271# define LT_DLGLOBAL RTLD_GLOBAL 13272#else 13273# ifdef DL_GLOBAL 13274# define LT_DLGLOBAL DL_GLOBAL 13275# else 13276# define LT_DLGLOBAL 0 13277# endif 13278#endif 13279 13280/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13281 find out it does not work in some platform. */ 13282#ifndef LT_DLLAZY_OR_NOW 13283# ifdef RTLD_LAZY 13284# define LT_DLLAZY_OR_NOW RTLD_LAZY 13285# else 13286# ifdef DL_LAZY 13287# define LT_DLLAZY_OR_NOW DL_LAZY 13288# else 13289# ifdef RTLD_NOW 13290# define LT_DLLAZY_OR_NOW RTLD_NOW 13291# else 13292# ifdef DL_NOW 13293# define LT_DLLAZY_OR_NOW DL_NOW 13294# else 13295# define LT_DLLAZY_OR_NOW 0 13296# endif 13297# endif 13298# endif 13299# endif 13300#endif 13301 13302/* When -fvisibility=hidden is used, assume the code has been annotated 13303 correspondingly for the symbols needed. */ 13304#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13305int fnord (void) __attribute__((visibility("default"))); 13306#endif 13307 13308int fnord (void) { return 42; } 13309int main (void) 13310{ 13311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13312 int status = $lt_dlunknown; 13313 13314 if (self) 13315 { 13316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13317 else 13318 { 13319 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13320 else puts (dlerror ()); 13321 } 13322 /* dlclose (self); */ 13323 } 13324 else 13325 puts (dlerror ()); 13326 13327 return status; 13328} 13329_LT_EOF 13330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13331 (eval $ac_link) 2>&5 13332 ac_status=$? 13333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13334 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13335 (./conftest; exit; ) >&5 2>/dev/null 13336 lt_status=$? 13337 case x$lt_status in 13338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13340 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13341 esac 13342 else : 13343 # compilation failed 13344 lt_cv_dlopen_self=no 13345 fi 13346fi 13347rm -fr conftest* 13348 13349 ;; 13350esac 13351fi 13352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13353printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13354 13355 if test yes = "$lt_cv_dlopen_self"; then 13356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13358printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13359if test ${lt_cv_dlopen_self_static+y} 13360then : 13361 printf %s "(cached) " >&6 13362else case e in #( 13363 e) if test yes = "$cross_compiling"; then : 13364 lt_cv_dlopen_self_static=cross 13365else 13366 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13367 lt_status=$lt_dlunknown 13368 cat > conftest.$ac_ext <<_LT_EOF 13369#line $LINENO "configure" 13370#include "confdefs.h" 13371 13372#if HAVE_DLFCN_H 13373#include <dlfcn.h> 13374#endif 13375 13376#include <stdio.h> 13377 13378#ifdef RTLD_GLOBAL 13379# define LT_DLGLOBAL RTLD_GLOBAL 13380#else 13381# ifdef DL_GLOBAL 13382# define LT_DLGLOBAL DL_GLOBAL 13383# else 13384# define LT_DLGLOBAL 0 13385# endif 13386#endif 13387 13388/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13389 find out it does not work in some platform. */ 13390#ifndef LT_DLLAZY_OR_NOW 13391# ifdef RTLD_LAZY 13392# define LT_DLLAZY_OR_NOW RTLD_LAZY 13393# else 13394# ifdef DL_LAZY 13395# define LT_DLLAZY_OR_NOW DL_LAZY 13396# else 13397# ifdef RTLD_NOW 13398# define LT_DLLAZY_OR_NOW RTLD_NOW 13399# else 13400# ifdef DL_NOW 13401# define LT_DLLAZY_OR_NOW DL_NOW 13402# else 13403# define LT_DLLAZY_OR_NOW 0 13404# endif 13405# endif 13406# endif 13407# endif 13408#endif 13409 13410/* When -fvisibility=hidden is used, assume the code has been annotated 13411 correspondingly for the symbols needed. */ 13412#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13413int fnord (void) __attribute__((visibility("default"))); 13414#endif 13415 13416int fnord (void) { return 42; } 13417int main (void) 13418{ 13419 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13420 int status = $lt_dlunknown; 13421 13422 if (self) 13423 { 13424 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13425 else 13426 { 13427 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13428 else puts (dlerror ()); 13429 } 13430 /* dlclose (self); */ 13431 } 13432 else 13433 puts (dlerror ()); 13434 13435 return status; 13436} 13437_LT_EOF 13438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13439 (eval $ac_link) 2>&5 13440 ac_status=$? 13441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13442 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13443 (./conftest; exit; ) >&5 2>/dev/null 13444 lt_status=$? 13445 case x$lt_status in 13446 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13447 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13448 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13449 esac 13450 else : 13451 # compilation failed 13452 lt_cv_dlopen_self_static=no 13453 fi 13454fi 13455rm -fr conftest* 13456 13457 ;; 13458esac 13459fi 13460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13461printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13462 fi 13463 13464 CPPFLAGS=$save_CPPFLAGS 13465 LDFLAGS=$save_LDFLAGS 13466 LIBS=$save_LIBS 13467 ;; 13468 esac 13469 13470 case $lt_cv_dlopen_self in 13471 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13472 *) enable_dlopen_self=unknown ;; 13473 esac 13474 13475 case $lt_cv_dlopen_self_static in 13476 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13477 *) enable_dlopen_self_static=unknown ;; 13478 esac 13479fi 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497striplib= 13498old_striplib= 13499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13500printf %s "checking whether stripping libraries is possible... " >&6; } 13501if test -z "$STRIP"; then 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13503printf "%s\n" "no" >&6; } 13504else 13505 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13506 old_striplib="$STRIP --strip-debug" 13507 striplib="$STRIP --strip-unneeded" 13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13509printf "%s\n" "yes" >&6; } 13510 else 13511 case $host_os in 13512 darwin*) 13513 # FIXME - insert some real tests, host_os isn't really good enough 13514 striplib="$STRIP -x" 13515 old_striplib="$STRIP -S" 13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13517printf "%s\n" "yes" >&6; } 13518 ;; 13519 freebsd*) 13520 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13521 old_striplib="$STRIP --strip-debug" 13522 striplib="$STRIP --strip-unneeded" 13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13524printf "%s\n" "yes" >&6; } 13525 else 13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13527printf "%s\n" "no" >&6; } 13528 fi 13529 ;; 13530 *) 13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13532printf "%s\n" "no" >&6; } 13533 ;; 13534 esac 13535 fi 13536fi 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 # Report what library types will actually be built 13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13551printf %s "checking if libtool supports shared libraries... " >&6; } 13552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13553printf "%s\n" "$can_build_shared" >&6; } 13554 13555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13556printf %s "checking whether to build shared libraries... " >&6; } 13557 test no = "$can_build_shared" && enable_shared=no 13558 13559 # On AIX, shared libraries and static libraries use the same namespace, and 13560 # are all built from PIC. 13561 case $host_os in 13562 aix3*) 13563 test yes = "$enable_shared" && enable_static=no 13564 if test -n "$RANLIB"; then 13565 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13566 postinstall_cmds='$RANLIB $lib' 13567 fi 13568 ;; 13569 13570 aix[4-9]*) 13571 if test ia64 != "$host_cpu"; then 13572 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13573 yes,aix,yes) ;; # shared object as lib.so file only 13574 yes,svr4,*) ;; # shared object as lib.so archive member only 13575 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13576 esac 13577 fi 13578 ;; 13579 esac 13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13581printf "%s\n" "$enable_shared" >&6; } 13582 13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13584printf %s "checking whether to build static libraries... " >&6; } 13585 # Make sure either enable_shared or enable_static is yes. 13586 test yes = "$enable_shared" || enable_static=yes 13587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13588printf "%s\n" "$enable_static" >&6; } 13589 13590 13591 13592 13593fi 13594ac_ext=c 13595ac_cpp='$CPP $CPPFLAGS' 13596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13598ac_compiler_gnu=$ac_cv_c_compiler_gnu 13599 13600CC=$lt_save_CC 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 ac_config_commands="$ac_config_commands libtool" 13617 13618 13619 13620 13621# Only expand once: 13622 13623 13624 13625# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13638printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13639if test ${ac_cv_c_undeclared_builtin_options+y} 13640then : 13641 printf %s "(cached) " >&6 13642else case e in #( 13643 e) ac_save_CFLAGS=$CFLAGS 13644 ac_cv_c_undeclared_builtin_options='cannot detect' 13645 for ac_arg in '' -fno-builtin; do 13646 CFLAGS="$ac_save_CFLAGS $ac_arg" 13647 # This test program should *not* compile successfully. 13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13649/* end confdefs.h. */ 13650 13651int 13652main (void) 13653{ 13654(void) strchr; 13655 ; 13656 return 0; 13657} 13658_ACEOF 13659if ac_fn_c_try_compile "$LINENO" 13660then : 13661 13662else case e in #( 13663 e) # This test program should compile successfully. 13664 # No library function is consistently available on 13665 # freestanding implementations, so test against a dummy 13666 # declaration. Include always-available headers on the 13667 # off chance that they somehow elicit warnings. 13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13669/* end confdefs.h. */ 13670#include <float.h> 13671#include <limits.h> 13672#include <stdarg.h> 13673#include <stddef.h> 13674extern void ac_decl (int, char *); 13675 13676int 13677main (void) 13678{ 13679(void) ac_decl (0, (char *) 0); 13680 (void) ac_decl; 13681 13682 ; 13683 return 0; 13684} 13685_ACEOF 13686if ac_fn_c_try_compile "$LINENO" 13687then : 13688 if test x"$ac_arg" = x 13689then : 13690 ac_cv_c_undeclared_builtin_options='none needed' 13691else case e in #( 13692 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13693esac 13694fi 13695 break 13696fi 13697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13698esac 13699fi 13700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13701 done 13702 CFLAGS=$ac_save_CFLAGS 13703 ;; 13704esac 13705fi 13706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13707printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13708 case $ac_cv_c_undeclared_builtin_options in #( 13709 'cannot detect') : 13710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13711printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13712as_fn_error $? "cannot make $CC report undeclared builtins 13713See 'config.log' for more details" "$LINENO" 5; } ;; #( 13714 'none needed') : 13715 ac_c_undeclared_builtin_options='' ;; #( 13716 *) : 13717 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13718esac 13719 13720 13721 13722 13723 13724ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13725if test "x$ac_cv_have_decl___clang__" = xyes 13726then : 13727 CLANGCC="yes" 13728else case e in #( 13729 e) CLANGCC="no" ;; 13730esac 13731fi 13732ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13733if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13734then : 13735 INTELCC="yes" 13736else case e in #( 13737 e) INTELCC="no" ;; 13738esac 13739fi 13740ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13741if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13742then : 13743 SUNCC="yes" 13744else case e in #( 13745 e) SUNCC="no" ;; 13746esac 13747fi 13748 13749 13750 13751 13752 13753 13754 13755 13756if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13757 if test -n "$ac_tool_prefix"; then 13758 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13759set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13761printf %s "checking for $ac_word... " >&6; } 13762if test ${ac_cv_path_PKG_CONFIG+y} 13763then : 13764 printf %s "(cached) " >&6 13765else case e in #( 13766 e) case $PKG_CONFIG in 13767 [\\/]* | ?:[\\/]*) 13768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13769 ;; 13770 *) 13771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13772for as_dir in $PATH 13773do 13774 IFS=$as_save_IFS 13775 case $as_dir in #((( 13776 '') as_dir=./ ;; 13777 */) ;; 13778 *) as_dir=$as_dir/ ;; 13779 esac 13780 for ac_exec_ext in '' $ac_executable_extensions; do 13781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13782 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13784 break 2 13785 fi 13786done 13787 done 13788IFS=$as_save_IFS 13789 13790 ;; 13791esac ;; 13792esac 13793fi 13794PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13795if test -n "$PKG_CONFIG"; then 13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13797printf "%s\n" "$PKG_CONFIG" >&6; } 13798else 13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13800printf "%s\n" "no" >&6; } 13801fi 13802 13803 13804fi 13805if test -z "$ac_cv_path_PKG_CONFIG"; then 13806 ac_pt_PKG_CONFIG=$PKG_CONFIG 13807 # Extract the first word of "pkg-config", so it can be a program name with args. 13808set dummy pkg-config; ac_word=$2 13809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13810printf %s "checking for $ac_word... " >&6; } 13811if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13812then : 13813 printf %s "(cached) " >&6 13814else case e in #( 13815 e) case $ac_pt_PKG_CONFIG in 13816 [\\/]* | ?:[\\/]*) 13817 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13818 ;; 13819 *) 13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13821for as_dir in $PATH 13822do 13823 IFS=$as_save_IFS 13824 case $as_dir in #((( 13825 '') as_dir=./ ;; 13826 */) ;; 13827 *) as_dir=$as_dir/ ;; 13828 esac 13829 for ac_exec_ext in '' $ac_executable_extensions; do 13830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13831 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13833 break 2 13834 fi 13835done 13836 done 13837IFS=$as_save_IFS 13838 13839 ;; 13840esac ;; 13841esac 13842fi 13843ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13844if test -n "$ac_pt_PKG_CONFIG"; then 13845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13846printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13847else 13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13849printf "%s\n" "no" >&6; } 13850fi 13851 13852 if test "x$ac_pt_PKG_CONFIG" = x; then 13853 PKG_CONFIG="" 13854 else 13855 case $cross_compiling:$ac_tool_warned in 13856yes:) 13857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13858printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13859ac_tool_warned=yes ;; 13860esac 13861 PKG_CONFIG=$ac_pt_PKG_CONFIG 13862 fi 13863else 13864 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13865fi 13866 13867fi 13868if test -n "$PKG_CONFIG"; then 13869 _pkg_min_version=0.9.0 13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13871printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13872 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13874printf "%s\n" "yes" >&6; } 13875 else 13876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13877printf "%s\n" "no" >&6; } 13878 PKG_CONFIG="" 13879 fi 13880fi 13881 13882 13883 13884 13885 13886# Check whether --enable-selective-werror was given. 13887if test ${enable_selective_werror+y} 13888then : 13889 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13890else case e in #( 13891 e) SELECTIVE_WERROR=yes ;; 13892esac 13893fi 13894 13895 13896 13897 13898 13899# -v is too short to test reliably with XORG_TESTSET_CFLAG 13900if test "x$SUNCC" = "xyes"; then 13901 BASE_CFLAGS="-v" 13902else 13903 BASE_CFLAGS="" 13904fi 13905 13906# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920xorg_testset_save_CFLAGS="$CFLAGS" 13921 13922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13926if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13927then : 13928 printf %s "(cached) " >&6 13929else case e in #( 13930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13931/* end confdefs.h. */ 13932int i; 13933_ACEOF 13934if ac_fn_c_try_compile "$LINENO" 13935then : 13936 xorg_cv_cc_flag_unknown_warning_option=yes 13937else case e in #( 13938 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13939esac 13940fi 13941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13942esac 13943fi 13944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13945printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13947 CFLAGS="$xorg_testset_save_CFLAGS" 13948fi 13949 13950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13953 fi 13954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13956printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13957if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13958then : 13959 printf %s "(cached) " >&6 13960else case e in #( 13961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13962/* end confdefs.h. */ 13963int i; 13964_ACEOF 13965if ac_fn_c_try_compile "$LINENO" 13966then : 13967 xorg_cv_cc_flag_unused_command_line_argument=yes 13968else case e in #( 13969 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13970esac 13971fi 13972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13973esac 13974fi 13975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13976printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13978 CFLAGS="$xorg_testset_save_CFLAGS" 13979fi 13980 13981found="no" 13982 13983 if test $found = "no" ; then 13984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13986 fi 13987 13988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13990 fi 13991 13992 CFLAGS="$CFLAGS -Wall" 13993 13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13995printf %s "checking if $CC supports -Wall... " >&6; } 13996 cacheid=xorg_cv_cc_flag__Wall 13997 if eval test \${$cacheid+y} 13998then : 13999 printf %s "(cached) " >&6 14000else case e in #( 14001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14002/* end confdefs.h. */ 14003int i; 14004int 14005main (void) 14006{ 14007 14008 ; 14009 return 0; 14010} 14011_ACEOF 14012if ac_fn_c_try_link "$LINENO" 14013then : 14014 eval $cacheid=yes 14015else case e in #( 14016 e) eval $cacheid=no ;; 14017esac 14018fi 14019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14020 conftest$ac_exeext conftest.$ac_ext ;; 14021esac 14022fi 14023 14024 14025 CFLAGS="$xorg_testset_save_CFLAGS" 14026 14027 eval supported=\$$cacheid 14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14029printf "%s\n" "$supported" >&6; } 14030 if test "$supported" = "yes" ; then 14031 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14032 found="yes" 14033 fi 14034 fi 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050xorg_testset_save_CFLAGS="$CFLAGS" 14051 14052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14055printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14056if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14057then : 14058 printf %s "(cached) " >&6 14059else case e in #( 14060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14061/* end confdefs.h. */ 14062int i; 14063_ACEOF 14064if ac_fn_c_try_compile "$LINENO" 14065then : 14066 xorg_cv_cc_flag_unknown_warning_option=yes 14067else case e in #( 14068 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14069esac 14070fi 14071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14072esac 14073fi 14074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14075printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14077 CFLAGS="$xorg_testset_save_CFLAGS" 14078fi 14079 14080if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14083 fi 14084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14086printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14087if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14088then : 14089 printf %s "(cached) " >&6 14090else case e in #( 14091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092/* end confdefs.h. */ 14093int i; 14094_ACEOF 14095if ac_fn_c_try_compile "$LINENO" 14096then : 14097 xorg_cv_cc_flag_unused_command_line_argument=yes 14098else case e in #( 14099 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14100esac 14101fi 14102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14103esac 14104fi 14105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14106printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14108 CFLAGS="$xorg_testset_save_CFLAGS" 14109fi 14110 14111found="no" 14112 14113 if test $found = "no" ; then 14114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14116 fi 14117 14118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14120 fi 14121 14122 CFLAGS="$CFLAGS -Wpointer-arith" 14123 14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14125printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14126 cacheid=xorg_cv_cc_flag__Wpointer_arith 14127 if eval test \${$cacheid+y} 14128then : 14129 printf %s "(cached) " >&6 14130else case e in #( 14131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14132/* end confdefs.h. */ 14133int i; 14134int 14135main (void) 14136{ 14137 14138 ; 14139 return 0; 14140} 14141_ACEOF 14142if ac_fn_c_try_link "$LINENO" 14143then : 14144 eval $cacheid=yes 14145else case e in #( 14146 e) eval $cacheid=no ;; 14147esac 14148fi 14149rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14150 conftest$ac_exeext conftest.$ac_ext ;; 14151esac 14152fi 14153 14154 14155 CFLAGS="$xorg_testset_save_CFLAGS" 14156 14157 eval supported=\$$cacheid 14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14159printf "%s\n" "$supported" >&6; } 14160 if test "$supported" = "yes" ; then 14161 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14162 found="yes" 14163 fi 14164 fi 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180xorg_testset_save_CFLAGS="$CFLAGS" 14181 14182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14185printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14186if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14187then : 14188 printf %s "(cached) " >&6 14189else case e in #( 14190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14191/* end confdefs.h. */ 14192int i; 14193_ACEOF 14194if ac_fn_c_try_compile "$LINENO" 14195then : 14196 xorg_cv_cc_flag_unknown_warning_option=yes 14197else case e in #( 14198 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14199esac 14200fi 14201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14202esac 14203fi 14204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14205printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14207 CFLAGS="$xorg_testset_save_CFLAGS" 14208fi 14209 14210if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14213 fi 14214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14216printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14217if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14218then : 14219 printf %s "(cached) " >&6 14220else case e in #( 14221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14222/* end confdefs.h. */ 14223int i; 14224_ACEOF 14225if ac_fn_c_try_compile "$LINENO" 14226then : 14227 xorg_cv_cc_flag_unused_command_line_argument=yes 14228else case e in #( 14229 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14230esac 14231fi 14232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14233esac 14234fi 14235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14236printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14238 CFLAGS="$xorg_testset_save_CFLAGS" 14239fi 14240 14241found="no" 14242 14243 if test $found = "no" ; then 14244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14246 fi 14247 14248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14250 fi 14251 14252 CFLAGS="$CFLAGS -Wmissing-declarations" 14253 14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14255printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14256 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14257 if eval test \${$cacheid+y} 14258then : 14259 printf %s "(cached) " >&6 14260else case e in #( 14261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14262/* end confdefs.h. */ 14263int i; 14264int 14265main (void) 14266{ 14267 14268 ; 14269 return 0; 14270} 14271_ACEOF 14272if ac_fn_c_try_link "$LINENO" 14273then : 14274 eval $cacheid=yes 14275else case e in #( 14276 e) eval $cacheid=no ;; 14277esac 14278fi 14279rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14280 conftest$ac_exeext conftest.$ac_ext ;; 14281esac 14282fi 14283 14284 14285 CFLAGS="$xorg_testset_save_CFLAGS" 14286 14287 eval supported=\$$cacheid 14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14289printf "%s\n" "$supported" >&6; } 14290 if test "$supported" = "yes" ; then 14291 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14292 found="yes" 14293 fi 14294 fi 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310xorg_testset_save_CFLAGS="$CFLAGS" 14311 14312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14316if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14317then : 14318 printf %s "(cached) " >&6 14319else case e in #( 14320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14321/* end confdefs.h. */ 14322int i; 14323_ACEOF 14324if ac_fn_c_try_compile "$LINENO" 14325then : 14326 xorg_cv_cc_flag_unknown_warning_option=yes 14327else case e in #( 14328 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14329esac 14330fi 14331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14332esac 14333fi 14334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14337 CFLAGS="$xorg_testset_save_CFLAGS" 14338fi 14339 14340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14343 fi 14344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14347if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14348then : 14349 printf %s "(cached) " >&6 14350else case e in #( 14351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14352/* end confdefs.h. */ 14353int i; 14354_ACEOF 14355if ac_fn_c_try_compile "$LINENO" 14356then : 14357 xorg_cv_cc_flag_unused_command_line_argument=yes 14358else case e in #( 14359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14360esac 14361fi 14362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14363esac 14364fi 14365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14368 CFLAGS="$xorg_testset_save_CFLAGS" 14369fi 14370 14371found="no" 14372 14373 if test $found = "no" ; then 14374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14376 fi 14377 14378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14380 fi 14381 14382 CFLAGS="$CFLAGS -Wformat=2" 14383 14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14385printf %s "checking if $CC supports -Wformat=2... " >&6; } 14386 cacheid=xorg_cv_cc_flag__Wformat_2 14387 if eval test \${$cacheid+y} 14388then : 14389 printf %s "(cached) " >&6 14390else case e in #( 14391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14392/* end confdefs.h. */ 14393int i; 14394int 14395main (void) 14396{ 14397 14398 ; 14399 return 0; 14400} 14401_ACEOF 14402if ac_fn_c_try_link "$LINENO" 14403then : 14404 eval $cacheid=yes 14405else case e in #( 14406 e) eval $cacheid=no ;; 14407esac 14408fi 14409rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14410 conftest$ac_exeext conftest.$ac_ext ;; 14411esac 14412fi 14413 14414 14415 CFLAGS="$xorg_testset_save_CFLAGS" 14416 14417 eval supported=\$$cacheid 14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14419printf "%s\n" "$supported" >&6; } 14420 if test "$supported" = "yes" ; then 14421 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14422 found="yes" 14423 fi 14424 fi 14425 14426 if test $found = "no" ; then 14427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14429 fi 14430 14431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14433 fi 14434 14435 CFLAGS="$CFLAGS -Wformat" 14436 14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14438printf %s "checking if $CC supports -Wformat... " >&6; } 14439 cacheid=xorg_cv_cc_flag__Wformat 14440 if eval test \${$cacheid+y} 14441then : 14442 printf %s "(cached) " >&6 14443else case e in #( 14444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14445/* end confdefs.h. */ 14446int i; 14447int 14448main (void) 14449{ 14450 14451 ; 14452 return 0; 14453} 14454_ACEOF 14455if ac_fn_c_try_link "$LINENO" 14456then : 14457 eval $cacheid=yes 14458else case e in #( 14459 e) eval $cacheid=no ;; 14460esac 14461fi 14462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14463 conftest$ac_exeext conftest.$ac_ext ;; 14464esac 14465fi 14466 14467 14468 CFLAGS="$xorg_testset_save_CFLAGS" 14469 14470 eval supported=\$$cacheid 14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14472printf "%s\n" "$supported" >&6; } 14473 if test "$supported" = "yes" ; then 14474 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14475 found="yes" 14476 fi 14477 fi 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495xorg_testset_save_CFLAGS="$CFLAGS" 14496 14497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14501if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14502then : 14503 printf %s "(cached) " >&6 14504else case e in #( 14505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14506/* end confdefs.h. */ 14507int i; 14508_ACEOF 14509if ac_fn_c_try_compile "$LINENO" 14510then : 14511 xorg_cv_cc_flag_unknown_warning_option=yes 14512else case e in #( 14513 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14514esac 14515fi 14516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14517esac 14518fi 14519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14522 CFLAGS="$xorg_testset_save_CFLAGS" 14523fi 14524 14525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14528 fi 14529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14532if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14533then : 14534 printf %s "(cached) " >&6 14535else case e in #( 14536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14537/* end confdefs.h. */ 14538int i; 14539_ACEOF 14540if ac_fn_c_try_compile "$LINENO" 14541then : 14542 xorg_cv_cc_flag_unused_command_line_argument=yes 14543else case e in #( 14544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14545esac 14546fi 14547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14548esac 14549fi 14550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14553 CFLAGS="$xorg_testset_save_CFLAGS" 14554fi 14555 14556found="no" 14557 14558 if test $found = "no" ; then 14559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14561 fi 14562 14563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14565 fi 14566 14567 CFLAGS="$CFLAGS -Wstrict-prototypes" 14568 14569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14570printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14571 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14572 if eval test \${$cacheid+y} 14573then : 14574 printf %s "(cached) " >&6 14575else case e in #( 14576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14577/* end confdefs.h. */ 14578int i; 14579int 14580main (void) 14581{ 14582 14583 ; 14584 return 0; 14585} 14586_ACEOF 14587if ac_fn_c_try_link "$LINENO" 14588then : 14589 eval $cacheid=yes 14590else case e in #( 14591 e) eval $cacheid=no ;; 14592esac 14593fi 14594rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14595 conftest$ac_exeext conftest.$ac_ext ;; 14596esac 14597fi 14598 14599 14600 CFLAGS="$xorg_testset_save_CFLAGS" 14601 14602 eval supported=\$$cacheid 14603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14604printf "%s\n" "$supported" >&6; } 14605 if test "$supported" = "yes" ; then 14606 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14607 found="yes" 14608 fi 14609 fi 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625xorg_testset_save_CFLAGS="$CFLAGS" 14626 14627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14632then : 14633 printf %s "(cached) " >&6 14634else case e in #( 14635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14636/* end confdefs.h. */ 14637int i; 14638_ACEOF 14639if ac_fn_c_try_compile "$LINENO" 14640then : 14641 xorg_cv_cc_flag_unknown_warning_option=yes 14642else case e in #( 14643 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14644esac 14645fi 14646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14647esac 14648fi 14649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14652 CFLAGS="$xorg_testset_save_CFLAGS" 14653fi 14654 14655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14658 fi 14659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14662if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14663then : 14664 printf %s "(cached) " >&6 14665else case e in #( 14666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14667/* end confdefs.h. */ 14668int i; 14669_ACEOF 14670if ac_fn_c_try_compile "$LINENO" 14671then : 14672 xorg_cv_cc_flag_unused_command_line_argument=yes 14673else case e in #( 14674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14675esac 14676fi 14677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14678esac 14679fi 14680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14683 CFLAGS="$xorg_testset_save_CFLAGS" 14684fi 14685 14686found="no" 14687 14688 if test $found = "no" ; then 14689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14691 fi 14692 14693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14695 fi 14696 14697 CFLAGS="$CFLAGS -Wmissing-prototypes" 14698 14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14700printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14701 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14702 if eval test \${$cacheid+y} 14703then : 14704 printf %s "(cached) " >&6 14705else case e in #( 14706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14707/* end confdefs.h. */ 14708int i; 14709int 14710main (void) 14711{ 14712 14713 ; 14714 return 0; 14715} 14716_ACEOF 14717if ac_fn_c_try_link "$LINENO" 14718then : 14719 eval $cacheid=yes 14720else case e in #( 14721 e) eval $cacheid=no ;; 14722esac 14723fi 14724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14725 conftest$ac_exeext conftest.$ac_ext ;; 14726esac 14727fi 14728 14729 14730 CFLAGS="$xorg_testset_save_CFLAGS" 14731 14732 eval supported=\$$cacheid 14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14734printf "%s\n" "$supported" >&6; } 14735 if test "$supported" = "yes" ; then 14736 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14737 found="yes" 14738 fi 14739 fi 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755xorg_testset_save_CFLAGS="$CFLAGS" 14756 14757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14761if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14762then : 14763 printf %s "(cached) " >&6 14764else case e in #( 14765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14766/* end confdefs.h. */ 14767int i; 14768_ACEOF 14769if ac_fn_c_try_compile "$LINENO" 14770then : 14771 xorg_cv_cc_flag_unknown_warning_option=yes 14772else case e in #( 14773 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14774esac 14775fi 14776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14777esac 14778fi 14779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14782 CFLAGS="$xorg_testset_save_CFLAGS" 14783fi 14784 14785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14788 fi 14789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14793then : 14794 printf %s "(cached) " >&6 14795else case e in #( 14796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14797/* end confdefs.h. */ 14798int i; 14799_ACEOF 14800if ac_fn_c_try_compile "$LINENO" 14801then : 14802 xorg_cv_cc_flag_unused_command_line_argument=yes 14803else case e in #( 14804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14805esac 14806fi 14807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14808esac 14809fi 14810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14813 CFLAGS="$xorg_testset_save_CFLAGS" 14814fi 14815 14816found="no" 14817 14818 if test $found = "no" ; then 14819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14821 fi 14822 14823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14825 fi 14826 14827 CFLAGS="$CFLAGS -Wnested-externs" 14828 14829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14830printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14831 cacheid=xorg_cv_cc_flag__Wnested_externs 14832 if eval test \${$cacheid+y} 14833then : 14834 printf %s "(cached) " >&6 14835else case e in #( 14836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14837/* end confdefs.h. */ 14838int i; 14839int 14840main (void) 14841{ 14842 14843 ; 14844 return 0; 14845} 14846_ACEOF 14847if ac_fn_c_try_link "$LINENO" 14848then : 14849 eval $cacheid=yes 14850else case e in #( 14851 e) eval $cacheid=no ;; 14852esac 14853fi 14854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14855 conftest$ac_exeext conftest.$ac_ext ;; 14856esac 14857fi 14858 14859 14860 CFLAGS="$xorg_testset_save_CFLAGS" 14861 14862 eval supported=\$$cacheid 14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14864printf "%s\n" "$supported" >&6; } 14865 if test "$supported" = "yes" ; then 14866 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14867 found="yes" 14868 fi 14869 fi 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885xorg_testset_save_CFLAGS="$CFLAGS" 14886 14887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14891if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14892then : 14893 printf %s "(cached) " >&6 14894else case e in #( 14895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14896/* end confdefs.h. */ 14897int i; 14898_ACEOF 14899if ac_fn_c_try_compile "$LINENO" 14900then : 14901 xorg_cv_cc_flag_unknown_warning_option=yes 14902else case e in #( 14903 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14904esac 14905fi 14906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14907esac 14908fi 14909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14912 CFLAGS="$xorg_testset_save_CFLAGS" 14913fi 14914 14915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14918 fi 14919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14922if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14923then : 14924 printf %s "(cached) " >&6 14925else case e in #( 14926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14927/* end confdefs.h. */ 14928int i; 14929_ACEOF 14930if ac_fn_c_try_compile "$LINENO" 14931then : 14932 xorg_cv_cc_flag_unused_command_line_argument=yes 14933else case e in #( 14934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14935esac 14936fi 14937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14938esac 14939fi 14940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14943 CFLAGS="$xorg_testset_save_CFLAGS" 14944fi 14945 14946found="no" 14947 14948 if test $found = "no" ; then 14949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14951 fi 14952 14953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14955 fi 14956 14957 CFLAGS="$CFLAGS -Wbad-function-cast" 14958 14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14960printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14961 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14962 if eval test \${$cacheid+y} 14963then : 14964 printf %s "(cached) " >&6 14965else case e in #( 14966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14967/* end confdefs.h. */ 14968int i; 14969int 14970main (void) 14971{ 14972 14973 ; 14974 return 0; 14975} 14976_ACEOF 14977if ac_fn_c_try_link "$LINENO" 14978then : 14979 eval $cacheid=yes 14980else case e in #( 14981 e) eval $cacheid=no ;; 14982esac 14983fi 14984rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14985 conftest$ac_exeext conftest.$ac_ext ;; 14986esac 14987fi 14988 14989 14990 CFLAGS="$xorg_testset_save_CFLAGS" 14991 14992 eval supported=\$$cacheid 14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14994printf "%s\n" "$supported" >&6; } 14995 if test "$supported" = "yes" ; then 14996 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14997 found="yes" 14998 fi 14999 fi 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015xorg_testset_save_CFLAGS="$CFLAGS" 15016 15017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15021if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15022then : 15023 printf %s "(cached) " >&6 15024else case e in #( 15025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15026/* end confdefs.h. */ 15027int i; 15028_ACEOF 15029if ac_fn_c_try_compile "$LINENO" 15030then : 15031 xorg_cv_cc_flag_unknown_warning_option=yes 15032else case e in #( 15033 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15034esac 15035fi 15036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15037esac 15038fi 15039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15042 CFLAGS="$xorg_testset_save_CFLAGS" 15043fi 15044 15045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15048 fi 15049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15053then : 15054 printf %s "(cached) " >&6 15055else case e in #( 15056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15057/* end confdefs.h. */ 15058int i; 15059_ACEOF 15060if ac_fn_c_try_compile "$LINENO" 15061then : 15062 xorg_cv_cc_flag_unused_command_line_argument=yes 15063else case e in #( 15064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15065esac 15066fi 15067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15068esac 15069fi 15070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15073 CFLAGS="$xorg_testset_save_CFLAGS" 15074fi 15075 15076found="no" 15077 15078 if test $found = "no" ; then 15079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15081 fi 15082 15083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15085 fi 15086 15087 CFLAGS="$CFLAGS -Wold-style-definition" 15088 15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15090printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15091 cacheid=xorg_cv_cc_flag__Wold_style_definition 15092 if eval test \${$cacheid+y} 15093then : 15094 printf %s "(cached) " >&6 15095else case e in #( 15096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15097/* end confdefs.h. */ 15098int i; 15099int 15100main (void) 15101{ 15102 15103 ; 15104 return 0; 15105} 15106_ACEOF 15107if ac_fn_c_try_link "$LINENO" 15108then : 15109 eval $cacheid=yes 15110else case e in #( 15111 e) eval $cacheid=no ;; 15112esac 15113fi 15114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15115 conftest$ac_exeext conftest.$ac_ext ;; 15116esac 15117fi 15118 15119 15120 CFLAGS="$xorg_testset_save_CFLAGS" 15121 15122 eval supported=\$$cacheid 15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15124printf "%s\n" "$supported" >&6; } 15125 if test "$supported" = "yes" ; then 15126 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15127 found="yes" 15128 fi 15129 fi 15130 15131 if test $found = "no" ; then 15132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15134 fi 15135 15136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15138 fi 15139 15140 CFLAGS="$CFLAGS -fd" 15141 15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15143printf %s "checking if $CC supports -fd... " >&6; } 15144 cacheid=xorg_cv_cc_flag__fd 15145 if eval test \${$cacheid+y} 15146then : 15147 printf %s "(cached) " >&6 15148else case e in #( 15149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15150/* end confdefs.h. */ 15151int i; 15152int 15153main (void) 15154{ 15155 15156 ; 15157 return 0; 15158} 15159_ACEOF 15160if ac_fn_c_try_link "$LINENO" 15161then : 15162 eval $cacheid=yes 15163else case e in #( 15164 e) eval $cacheid=no ;; 15165esac 15166fi 15167rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15168 conftest$ac_exeext conftest.$ac_ext ;; 15169esac 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 -fd" 15180 found="yes" 15181 fi 15182 fi 15183 15184 15185 15186 15187 15188# This chunk adds additional warnings that could catch undesired effects. 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202xorg_testset_save_CFLAGS="$CFLAGS" 15203 15204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15208if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15209then : 15210 printf %s "(cached) " >&6 15211else case e in #( 15212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15213/* end confdefs.h. */ 15214int i; 15215_ACEOF 15216if ac_fn_c_try_compile "$LINENO" 15217then : 15218 xorg_cv_cc_flag_unknown_warning_option=yes 15219else case e in #( 15220 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15221esac 15222fi 15223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15224esac 15225fi 15226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15227printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15229 CFLAGS="$xorg_testset_save_CFLAGS" 15230fi 15231 15232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15235 fi 15236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15238printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15239if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15240then : 15241 printf %s "(cached) " >&6 15242else case e in #( 15243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15244/* end confdefs.h. */ 15245int i; 15246_ACEOF 15247if ac_fn_c_try_compile "$LINENO" 15248then : 15249 xorg_cv_cc_flag_unused_command_line_argument=yes 15250else case e in #( 15251 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15252esac 15253fi 15254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15255esac 15256fi 15257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15258printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15259 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15260 CFLAGS="$xorg_testset_save_CFLAGS" 15261fi 15262 15263found="no" 15264 15265 if test $found = "no" ; then 15266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15268 fi 15269 15270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15272 fi 15273 15274 CFLAGS="$CFLAGS -Wunused" 15275 15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15277printf %s "checking if $CC supports -Wunused... " >&6; } 15278 cacheid=xorg_cv_cc_flag__Wunused 15279 if eval test \${$cacheid+y} 15280then : 15281 printf %s "(cached) " >&6 15282else case e in #( 15283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15284/* end confdefs.h. */ 15285int i; 15286int 15287main (void) 15288{ 15289 15290 ; 15291 return 0; 15292} 15293_ACEOF 15294if ac_fn_c_try_link "$LINENO" 15295then : 15296 eval $cacheid=yes 15297else case e in #( 15298 e) eval $cacheid=no ;; 15299esac 15300fi 15301rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15302 conftest$ac_exeext conftest.$ac_ext ;; 15303esac 15304fi 15305 15306 15307 CFLAGS="$xorg_testset_save_CFLAGS" 15308 15309 eval supported=\$$cacheid 15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15311printf "%s\n" "$supported" >&6; } 15312 if test "$supported" = "yes" ; then 15313 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15314 found="yes" 15315 fi 15316 fi 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332xorg_testset_save_CFLAGS="$CFLAGS" 15333 15334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15338if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15339then : 15340 printf %s "(cached) " >&6 15341else case e in #( 15342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15343/* end confdefs.h. */ 15344int i; 15345_ACEOF 15346if ac_fn_c_try_compile "$LINENO" 15347then : 15348 xorg_cv_cc_flag_unknown_warning_option=yes 15349else case e in #( 15350 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15351esac 15352fi 15353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15354esac 15355fi 15356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15359 CFLAGS="$xorg_testset_save_CFLAGS" 15360fi 15361 15362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15365 fi 15366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15369if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15370then : 15371 printf %s "(cached) " >&6 15372else case e in #( 15373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15374/* end confdefs.h. */ 15375int i; 15376_ACEOF 15377if ac_fn_c_try_compile "$LINENO" 15378then : 15379 xorg_cv_cc_flag_unused_command_line_argument=yes 15380else case e in #( 15381 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15382esac 15383fi 15384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15385esac 15386fi 15387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15388printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15390 CFLAGS="$xorg_testset_save_CFLAGS" 15391fi 15392 15393found="no" 15394 15395 if test $found = "no" ; then 15396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15398 fi 15399 15400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15402 fi 15403 15404 CFLAGS="$CFLAGS -Wuninitialized" 15405 15406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15407printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15408 cacheid=xorg_cv_cc_flag__Wuninitialized 15409 if eval test \${$cacheid+y} 15410then : 15411 printf %s "(cached) " >&6 15412else case e in #( 15413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15414/* end confdefs.h. */ 15415int i; 15416int 15417main (void) 15418{ 15419 15420 ; 15421 return 0; 15422} 15423_ACEOF 15424if ac_fn_c_try_link "$LINENO" 15425then : 15426 eval $cacheid=yes 15427else case e in #( 15428 e) eval $cacheid=no ;; 15429esac 15430fi 15431rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15432 conftest$ac_exeext conftest.$ac_ext ;; 15433esac 15434fi 15435 15436 15437 CFLAGS="$xorg_testset_save_CFLAGS" 15438 15439 eval supported=\$$cacheid 15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15441printf "%s\n" "$supported" >&6; } 15442 if test "$supported" = "yes" ; then 15443 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15444 found="yes" 15445 fi 15446 fi 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462xorg_testset_save_CFLAGS="$CFLAGS" 15463 15464if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15467printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15468if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15469then : 15470 printf %s "(cached) " >&6 15471else case e in #( 15472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15473/* end confdefs.h. */ 15474int i; 15475_ACEOF 15476if ac_fn_c_try_compile "$LINENO" 15477then : 15478 xorg_cv_cc_flag_unknown_warning_option=yes 15479else case e in #( 15480 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15481esac 15482fi 15483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15484esac 15485fi 15486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15489 CFLAGS="$xorg_testset_save_CFLAGS" 15490fi 15491 15492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15495 fi 15496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15499if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15500then : 15501 printf %s "(cached) " >&6 15502else case e in #( 15503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15504/* end confdefs.h. */ 15505int i; 15506_ACEOF 15507if ac_fn_c_try_compile "$LINENO" 15508then : 15509 xorg_cv_cc_flag_unused_command_line_argument=yes 15510else case e in #( 15511 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15512esac 15513fi 15514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15515esac 15516fi 15517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15519 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15520 CFLAGS="$xorg_testset_save_CFLAGS" 15521fi 15522 15523found="no" 15524 15525 if test $found = "no" ; then 15526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15528 fi 15529 15530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15532 fi 15533 15534 CFLAGS="$CFLAGS -Wshadow" 15535 15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15537printf %s "checking if $CC supports -Wshadow... " >&6; } 15538 cacheid=xorg_cv_cc_flag__Wshadow 15539 if eval test \${$cacheid+y} 15540then : 15541 printf %s "(cached) " >&6 15542else case e in #( 15543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15544/* end confdefs.h. */ 15545int i; 15546int 15547main (void) 15548{ 15549 15550 ; 15551 return 0; 15552} 15553_ACEOF 15554if ac_fn_c_try_link "$LINENO" 15555then : 15556 eval $cacheid=yes 15557else case e in #( 15558 e) eval $cacheid=no ;; 15559esac 15560fi 15561rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15562 conftest$ac_exeext conftest.$ac_ext ;; 15563esac 15564fi 15565 15566 15567 CFLAGS="$xorg_testset_save_CFLAGS" 15568 15569 eval supported=\$$cacheid 15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15571printf "%s\n" "$supported" >&6; } 15572 if test "$supported" = "yes" ; then 15573 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15574 found="yes" 15575 fi 15576 fi 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592xorg_testset_save_CFLAGS="$CFLAGS" 15593 15594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15597printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15598if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15599then : 15600 printf %s "(cached) " >&6 15601else case e in #( 15602 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15603/* end confdefs.h. */ 15604int i; 15605_ACEOF 15606if ac_fn_c_try_compile "$LINENO" 15607then : 15608 xorg_cv_cc_flag_unknown_warning_option=yes 15609else case e in #( 15610 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15611esac 15612fi 15613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15614esac 15615fi 15616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15619 CFLAGS="$xorg_testset_save_CFLAGS" 15620fi 15621 15622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15625 fi 15626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15629if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15630then : 15631 printf %s "(cached) " >&6 15632else case e in #( 15633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15634/* end confdefs.h. */ 15635int i; 15636_ACEOF 15637if ac_fn_c_try_compile "$LINENO" 15638then : 15639 xorg_cv_cc_flag_unused_command_line_argument=yes 15640else case e in #( 15641 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15642esac 15643fi 15644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15645esac 15646fi 15647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15648printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15650 CFLAGS="$xorg_testset_save_CFLAGS" 15651fi 15652 15653found="no" 15654 15655 if test $found = "no" ; then 15656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15658 fi 15659 15660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15662 fi 15663 15664 CFLAGS="$CFLAGS -Wmissing-noreturn" 15665 15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15667printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15668 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15669 if eval test \${$cacheid+y} 15670then : 15671 printf %s "(cached) " >&6 15672else case e in #( 15673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15674/* end confdefs.h. */ 15675int i; 15676int 15677main (void) 15678{ 15679 15680 ; 15681 return 0; 15682} 15683_ACEOF 15684if ac_fn_c_try_link "$LINENO" 15685then : 15686 eval $cacheid=yes 15687else case e in #( 15688 e) eval $cacheid=no ;; 15689esac 15690fi 15691rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15692 conftest$ac_exeext conftest.$ac_ext ;; 15693esac 15694fi 15695 15696 15697 CFLAGS="$xorg_testset_save_CFLAGS" 15698 15699 eval supported=\$$cacheid 15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15701printf "%s\n" "$supported" >&6; } 15702 if test "$supported" = "yes" ; then 15703 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15704 found="yes" 15705 fi 15706 fi 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722xorg_testset_save_CFLAGS="$CFLAGS" 15723 15724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15727printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15728if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15729then : 15730 printf %s "(cached) " >&6 15731else case e in #( 15732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15733/* end confdefs.h. */ 15734int i; 15735_ACEOF 15736if ac_fn_c_try_compile "$LINENO" 15737then : 15738 xorg_cv_cc_flag_unknown_warning_option=yes 15739else case e in #( 15740 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15741esac 15742fi 15743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15744esac 15745fi 15746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15747printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15749 CFLAGS="$xorg_testset_save_CFLAGS" 15750fi 15751 15752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15755 fi 15756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15758printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15759if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15760then : 15761 printf %s "(cached) " >&6 15762else case e in #( 15763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15764/* end confdefs.h. */ 15765int i; 15766_ACEOF 15767if ac_fn_c_try_compile "$LINENO" 15768then : 15769 xorg_cv_cc_flag_unused_command_line_argument=yes 15770else case e in #( 15771 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15772esac 15773fi 15774rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15775esac 15776fi 15777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15780 CFLAGS="$xorg_testset_save_CFLAGS" 15781fi 15782 15783found="no" 15784 15785 if test $found = "no" ; then 15786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15788 fi 15789 15790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15792 fi 15793 15794 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15795 15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15797printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15798 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15799 if eval test \${$cacheid+y} 15800then : 15801 printf %s "(cached) " >&6 15802else case e in #( 15803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15804/* end confdefs.h. */ 15805int i; 15806int 15807main (void) 15808{ 15809 15810 ; 15811 return 0; 15812} 15813_ACEOF 15814if ac_fn_c_try_link "$LINENO" 15815then : 15816 eval $cacheid=yes 15817else case e in #( 15818 e) eval $cacheid=no ;; 15819esac 15820fi 15821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15822 conftest$ac_exeext conftest.$ac_ext ;; 15823esac 15824fi 15825 15826 15827 CFLAGS="$xorg_testset_save_CFLAGS" 15828 15829 eval supported=\$$cacheid 15830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15831printf "%s\n" "$supported" >&6; } 15832 if test "$supported" = "yes" ; then 15833 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15834 found="yes" 15835 fi 15836 fi 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852xorg_testset_save_CFLAGS="$CFLAGS" 15853 15854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15857printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15858if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15859then : 15860 printf %s "(cached) " >&6 15861else case e in #( 15862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15863/* end confdefs.h. */ 15864int i; 15865_ACEOF 15866if ac_fn_c_try_compile "$LINENO" 15867then : 15868 xorg_cv_cc_flag_unknown_warning_option=yes 15869else case e in #( 15870 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15871esac 15872fi 15873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15874esac 15875fi 15876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15877printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15879 CFLAGS="$xorg_testset_save_CFLAGS" 15880fi 15881 15882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15885 fi 15886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15888printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15889if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15890then : 15891 printf %s "(cached) " >&6 15892else case e in #( 15893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15894/* end confdefs.h. */ 15895int i; 15896_ACEOF 15897if ac_fn_c_try_compile "$LINENO" 15898then : 15899 xorg_cv_cc_flag_unused_command_line_argument=yes 15900else case e in #( 15901 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15902esac 15903fi 15904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15905esac 15906fi 15907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15908printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15910 CFLAGS="$xorg_testset_save_CFLAGS" 15911fi 15912 15913found="no" 15914 15915 if test $found = "no" ; then 15916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15918 fi 15919 15920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15922 fi 15923 15924 CFLAGS="$CFLAGS -Wredundant-decls" 15925 15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15927printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15928 cacheid=xorg_cv_cc_flag__Wredundant_decls 15929 if eval test \${$cacheid+y} 15930then : 15931 printf %s "(cached) " >&6 15932else case e in #( 15933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15934/* end confdefs.h. */ 15935int i; 15936int 15937main (void) 15938{ 15939 15940 ; 15941 return 0; 15942} 15943_ACEOF 15944if ac_fn_c_try_link "$LINENO" 15945then : 15946 eval $cacheid=yes 15947else case e in #( 15948 e) eval $cacheid=no ;; 15949esac 15950fi 15951rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15952 conftest$ac_exeext conftest.$ac_ext ;; 15953esac 15954fi 15955 15956 15957 CFLAGS="$xorg_testset_save_CFLAGS" 15958 15959 eval supported=\$$cacheid 15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15961printf "%s\n" "$supported" >&6; } 15962 if test "$supported" = "yes" ; then 15963 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15964 found="yes" 15965 fi 15966 fi 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982xorg_testset_save_CFLAGS="$CFLAGS" 15983 15984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15988if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15989then : 15990 printf %s "(cached) " >&6 15991else case e in #( 15992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15993/* end confdefs.h. */ 15994int i; 15995_ACEOF 15996if ac_fn_c_try_compile "$LINENO" 15997then : 15998 xorg_cv_cc_flag_unknown_warning_option=yes 15999else case e in #( 16000 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16001esac 16002fi 16003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16004esac 16005fi 16006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16009 CFLAGS="$xorg_testset_save_CFLAGS" 16010fi 16011 16012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16015 fi 16016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16019if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16020then : 16021 printf %s "(cached) " >&6 16022else case e in #( 16023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16024/* end confdefs.h. */ 16025int i; 16026_ACEOF 16027if ac_fn_c_try_compile "$LINENO" 16028then : 16029 xorg_cv_cc_flag_unused_command_line_argument=yes 16030else case e in #( 16031 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16032esac 16033fi 16034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16035esac 16036fi 16037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16038printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16040 CFLAGS="$xorg_testset_save_CFLAGS" 16041fi 16042 16043found="no" 16044 16045 if test $found = "no" ; then 16046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16048 fi 16049 16050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16052 fi 16053 16054 CFLAGS="$CFLAGS -Wlogical-op" 16055 16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16057printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16058 cacheid=xorg_cv_cc_flag__Wlogical_op 16059 if eval test \${$cacheid+y} 16060then : 16061 printf %s "(cached) " >&6 16062else case e in #( 16063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16064/* end confdefs.h. */ 16065int i; 16066int 16067main (void) 16068{ 16069 16070 ; 16071 return 0; 16072} 16073_ACEOF 16074if ac_fn_c_try_link "$LINENO" 16075then : 16076 eval $cacheid=yes 16077else case e in #( 16078 e) eval $cacheid=no ;; 16079esac 16080fi 16081rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16082 conftest$ac_exeext conftest.$ac_ext ;; 16083esac 16084fi 16085 16086 16087 CFLAGS="$xorg_testset_save_CFLAGS" 16088 16089 eval supported=\$$cacheid 16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16091printf "%s\n" "$supported" >&6; } 16092 if test "$supported" = "yes" ; then 16093 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16094 found="yes" 16095 fi 16096 fi 16097 16098 16099 16100# These are currently disabled because they are noisy. They will be enabled 16101# in the future once the codebase is sufficiently modernized to silence 16102# them. For now, I don't want them to drown out the other warnings. 16103# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16104# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16105# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16106 16107# Turn some warnings into errors, so we don't accidentally get successful builds 16108# when there are problems that should be fixed. 16109 16110if test "x$SELECTIVE_WERROR" = "xyes" ; then 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124xorg_testset_save_CFLAGS="$CFLAGS" 16125 16126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16129printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16130if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16131then : 16132 printf %s "(cached) " >&6 16133else case e in #( 16134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16135/* end confdefs.h. */ 16136int i; 16137_ACEOF 16138if ac_fn_c_try_compile "$LINENO" 16139then : 16140 xorg_cv_cc_flag_unknown_warning_option=yes 16141else case e in #( 16142 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16143esac 16144fi 16145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16146esac 16147fi 16148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16149printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16151 CFLAGS="$xorg_testset_save_CFLAGS" 16152fi 16153 16154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16157 fi 16158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16160printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16161if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16162then : 16163 printf %s "(cached) " >&6 16164else case e in #( 16165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16166/* end confdefs.h. */ 16167int i; 16168_ACEOF 16169if ac_fn_c_try_compile "$LINENO" 16170then : 16171 xorg_cv_cc_flag_unused_command_line_argument=yes 16172else case e in #( 16173 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16174esac 16175fi 16176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16177esac 16178fi 16179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16180printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16181 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16182 CFLAGS="$xorg_testset_save_CFLAGS" 16183fi 16184 16185found="no" 16186 16187 if test $found = "no" ; then 16188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16190 fi 16191 16192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16194 fi 16195 16196 CFLAGS="$CFLAGS -Werror=implicit" 16197 16198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16199printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16200 cacheid=xorg_cv_cc_flag__Werror_implicit 16201 if eval test \${$cacheid+y} 16202then : 16203 printf %s "(cached) " >&6 16204else case e in #( 16205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16206/* end confdefs.h. */ 16207int i; 16208int 16209main (void) 16210{ 16211 16212 ; 16213 return 0; 16214} 16215_ACEOF 16216if ac_fn_c_try_link "$LINENO" 16217then : 16218 eval $cacheid=yes 16219else case e in #( 16220 e) eval $cacheid=no ;; 16221esac 16222fi 16223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16224 conftest$ac_exeext conftest.$ac_ext ;; 16225esac 16226fi 16227 16228 16229 CFLAGS="$xorg_testset_save_CFLAGS" 16230 16231 eval supported=\$$cacheid 16232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16233printf "%s\n" "$supported" >&6; } 16234 if test "$supported" = "yes" ; then 16235 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16236 found="yes" 16237 fi 16238 fi 16239 16240 if test $found = "no" ; then 16241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16243 fi 16244 16245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16247 fi 16248 16249 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16250 16251 { 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 16252printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16253 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16254 if eval test \${$cacheid+y} 16255then : 16256 printf %s "(cached) " >&6 16257else case e in #( 16258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16259/* end confdefs.h. */ 16260int i; 16261int 16262main (void) 16263{ 16264 16265 ; 16266 return 0; 16267} 16268_ACEOF 16269if ac_fn_c_try_link "$LINENO" 16270then : 16271 eval $cacheid=yes 16272else case e in #( 16273 e) eval $cacheid=no ;; 16274esac 16275fi 16276rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16277 conftest$ac_exeext conftest.$ac_ext ;; 16278esac 16279fi 16280 16281 16282 CFLAGS="$xorg_testset_save_CFLAGS" 16283 16284 eval supported=\$$cacheid 16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16286printf "%s\n" "$supported" >&6; } 16287 if test "$supported" = "yes" ; then 16288 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16289 found="yes" 16290 fi 16291 fi 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307xorg_testset_save_CFLAGS="$CFLAGS" 16308 16309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16313if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16314then : 16315 printf %s "(cached) " >&6 16316else case e in #( 16317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16318/* end confdefs.h. */ 16319int i; 16320_ACEOF 16321if ac_fn_c_try_compile "$LINENO" 16322then : 16323 xorg_cv_cc_flag_unknown_warning_option=yes 16324else case e in #( 16325 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16326esac 16327fi 16328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16329esac 16330fi 16331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16332printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16334 CFLAGS="$xorg_testset_save_CFLAGS" 16335fi 16336 16337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16340 fi 16341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16343printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16344if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16345then : 16346 printf %s "(cached) " >&6 16347else case e in #( 16348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16349/* end confdefs.h. */ 16350int i; 16351_ACEOF 16352if ac_fn_c_try_compile "$LINENO" 16353then : 16354 xorg_cv_cc_flag_unused_command_line_argument=yes 16355else case e in #( 16356 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16357esac 16358fi 16359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16360esac 16361fi 16362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16365 CFLAGS="$xorg_testset_save_CFLAGS" 16366fi 16367 16368found="no" 16369 16370 if test $found = "no" ; then 16371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16373 fi 16374 16375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16377 fi 16378 16379 CFLAGS="$CFLAGS -Werror=nonnull" 16380 16381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16382printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16383 cacheid=xorg_cv_cc_flag__Werror_nonnull 16384 if eval test \${$cacheid+y} 16385then : 16386 printf %s "(cached) " >&6 16387else case e in #( 16388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16389/* end confdefs.h. */ 16390int i; 16391int 16392main (void) 16393{ 16394 16395 ; 16396 return 0; 16397} 16398_ACEOF 16399if ac_fn_c_try_link "$LINENO" 16400then : 16401 eval $cacheid=yes 16402else case e in #( 16403 e) eval $cacheid=no ;; 16404esac 16405fi 16406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16407 conftest$ac_exeext conftest.$ac_ext ;; 16408esac 16409fi 16410 16411 16412 CFLAGS="$xorg_testset_save_CFLAGS" 16413 16414 eval supported=\$$cacheid 16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16416printf "%s\n" "$supported" >&6; } 16417 if test "$supported" = "yes" ; then 16418 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16419 found="yes" 16420 fi 16421 fi 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437xorg_testset_save_CFLAGS="$CFLAGS" 16438 16439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16442printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16443if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16444then : 16445 printf %s "(cached) " >&6 16446else case e in #( 16447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16448/* end confdefs.h. */ 16449int i; 16450_ACEOF 16451if ac_fn_c_try_compile "$LINENO" 16452then : 16453 xorg_cv_cc_flag_unknown_warning_option=yes 16454else case e in #( 16455 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16456esac 16457fi 16458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16459esac 16460fi 16461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16464 CFLAGS="$xorg_testset_save_CFLAGS" 16465fi 16466 16467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16470 fi 16471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16474if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16475then : 16476 printf %s "(cached) " >&6 16477else case e in #( 16478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16479/* end confdefs.h. */ 16480int i; 16481_ACEOF 16482if ac_fn_c_try_compile "$LINENO" 16483then : 16484 xorg_cv_cc_flag_unused_command_line_argument=yes 16485else case e in #( 16486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16487esac 16488fi 16489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16490esac 16491fi 16492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16495 CFLAGS="$xorg_testset_save_CFLAGS" 16496fi 16497 16498found="no" 16499 16500 if test $found = "no" ; then 16501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16503 fi 16504 16505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16507 fi 16508 16509 CFLAGS="$CFLAGS -Werror=init-self" 16510 16511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16512printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16513 cacheid=xorg_cv_cc_flag__Werror_init_self 16514 if eval test \${$cacheid+y} 16515then : 16516 printf %s "(cached) " >&6 16517else case e in #( 16518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16519/* end confdefs.h. */ 16520int i; 16521int 16522main (void) 16523{ 16524 16525 ; 16526 return 0; 16527} 16528_ACEOF 16529if ac_fn_c_try_link "$LINENO" 16530then : 16531 eval $cacheid=yes 16532else case e in #( 16533 e) eval $cacheid=no ;; 16534esac 16535fi 16536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16537 conftest$ac_exeext conftest.$ac_ext ;; 16538esac 16539fi 16540 16541 16542 CFLAGS="$xorg_testset_save_CFLAGS" 16543 16544 eval supported=\$$cacheid 16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16546printf "%s\n" "$supported" >&6; } 16547 if test "$supported" = "yes" ; then 16548 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16549 found="yes" 16550 fi 16551 fi 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567xorg_testset_save_CFLAGS="$CFLAGS" 16568 16569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16573if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16574then : 16575 printf %s "(cached) " >&6 16576else case e in #( 16577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16578/* end confdefs.h. */ 16579int i; 16580_ACEOF 16581if ac_fn_c_try_compile "$LINENO" 16582then : 16583 xorg_cv_cc_flag_unknown_warning_option=yes 16584else case e in #( 16585 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16586esac 16587fi 16588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16589esac 16590fi 16591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16594 CFLAGS="$xorg_testset_save_CFLAGS" 16595fi 16596 16597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16600 fi 16601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16604if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16605then : 16606 printf %s "(cached) " >&6 16607else case e in #( 16608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16609/* end confdefs.h. */ 16610int i; 16611_ACEOF 16612if ac_fn_c_try_compile "$LINENO" 16613then : 16614 xorg_cv_cc_flag_unused_command_line_argument=yes 16615else case e in #( 16616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16617esac 16618fi 16619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16620esac 16621fi 16622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16623printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16625 CFLAGS="$xorg_testset_save_CFLAGS" 16626fi 16627 16628found="no" 16629 16630 if test $found = "no" ; then 16631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16633 fi 16634 16635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16637 fi 16638 16639 CFLAGS="$CFLAGS -Werror=main" 16640 16641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16642printf %s "checking if $CC supports -Werror=main... " >&6; } 16643 cacheid=xorg_cv_cc_flag__Werror_main 16644 if eval test \${$cacheid+y} 16645then : 16646 printf %s "(cached) " >&6 16647else case e in #( 16648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16649/* end confdefs.h. */ 16650int i; 16651int 16652main (void) 16653{ 16654 16655 ; 16656 return 0; 16657} 16658_ACEOF 16659if ac_fn_c_try_link "$LINENO" 16660then : 16661 eval $cacheid=yes 16662else case e in #( 16663 e) eval $cacheid=no ;; 16664esac 16665fi 16666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16667 conftest$ac_exeext conftest.$ac_ext ;; 16668esac 16669fi 16670 16671 16672 CFLAGS="$xorg_testset_save_CFLAGS" 16673 16674 eval supported=\$$cacheid 16675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16676printf "%s\n" "$supported" >&6; } 16677 if test "$supported" = "yes" ; then 16678 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16679 found="yes" 16680 fi 16681 fi 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697xorg_testset_save_CFLAGS="$CFLAGS" 16698 16699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16704then : 16705 printf %s "(cached) " >&6 16706else case e in #( 16707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16708/* end confdefs.h. */ 16709int i; 16710_ACEOF 16711if ac_fn_c_try_compile "$LINENO" 16712then : 16713 xorg_cv_cc_flag_unknown_warning_option=yes 16714else case e in #( 16715 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16716esac 16717fi 16718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16719esac 16720fi 16721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16724 CFLAGS="$xorg_testset_save_CFLAGS" 16725fi 16726 16727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16730 fi 16731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16734if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16735then : 16736 printf %s "(cached) " >&6 16737else case e in #( 16738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740int i; 16741_ACEOF 16742if ac_fn_c_try_compile "$LINENO" 16743then : 16744 xorg_cv_cc_flag_unused_command_line_argument=yes 16745else case e in #( 16746 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16747esac 16748fi 16749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16750esac 16751fi 16752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16753printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16755 CFLAGS="$xorg_testset_save_CFLAGS" 16756fi 16757 16758found="no" 16759 16760 if test $found = "no" ; then 16761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16763 fi 16764 16765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16767 fi 16768 16769 CFLAGS="$CFLAGS -Werror=missing-braces" 16770 16771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16772printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16773 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16774 if eval test \${$cacheid+y} 16775then : 16776 printf %s "(cached) " >&6 16777else case e in #( 16778 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16779/* end confdefs.h. */ 16780int i; 16781int 16782main (void) 16783{ 16784 16785 ; 16786 return 0; 16787} 16788_ACEOF 16789if ac_fn_c_try_link "$LINENO" 16790then : 16791 eval $cacheid=yes 16792else case e in #( 16793 e) eval $cacheid=no ;; 16794esac 16795fi 16796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16797 conftest$ac_exeext conftest.$ac_ext ;; 16798esac 16799fi 16800 16801 16802 CFLAGS="$xorg_testset_save_CFLAGS" 16803 16804 eval supported=\$$cacheid 16805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16806printf "%s\n" "$supported" >&6; } 16807 if test "$supported" = "yes" ; then 16808 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16809 found="yes" 16810 fi 16811 fi 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827xorg_testset_save_CFLAGS="$CFLAGS" 16828 16829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16833if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16834then : 16835 printf %s "(cached) " >&6 16836else case e in #( 16837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16838/* end confdefs.h. */ 16839int i; 16840_ACEOF 16841if ac_fn_c_try_compile "$LINENO" 16842then : 16843 xorg_cv_cc_flag_unknown_warning_option=yes 16844else case e in #( 16845 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16846esac 16847fi 16848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16849esac 16850fi 16851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16852printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16854 CFLAGS="$xorg_testset_save_CFLAGS" 16855fi 16856 16857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16860 fi 16861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16863printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16864if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16865then : 16866 printf %s "(cached) " >&6 16867else case e in #( 16868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16869/* end confdefs.h. */ 16870int i; 16871_ACEOF 16872if ac_fn_c_try_compile "$LINENO" 16873then : 16874 xorg_cv_cc_flag_unused_command_line_argument=yes 16875else case e in #( 16876 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16877esac 16878fi 16879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16880esac 16881fi 16882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16885 CFLAGS="$xorg_testset_save_CFLAGS" 16886fi 16887 16888found="no" 16889 16890 if test $found = "no" ; then 16891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16893 fi 16894 16895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16897 fi 16898 16899 CFLAGS="$CFLAGS -Werror=sequence-point" 16900 16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16902printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16903 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16904 if eval test \${$cacheid+y} 16905then : 16906 printf %s "(cached) " >&6 16907else case e in #( 16908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16909/* end confdefs.h. */ 16910int i; 16911int 16912main (void) 16913{ 16914 16915 ; 16916 return 0; 16917} 16918_ACEOF 16919if ac_fn_c_try_link "$LINENO" 16920then : 16921 eval $cacheid=yes 16922else case e in #( 16923 e) eval $cacheid=no ;; 16924esac 16925fi 16926rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16927 conftest$ac_exeext conftest.$ac_ext ;; 16928esac 16929fi 16930 16931 16932 CFLAGS="$xorg_testset_save_CFLAGS" 16933 16934 eval supported=\$$cacheid 16935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16936printf "%s\n" "$supported" >&6; } 16937 if test "$supported" = "yes" ; then 16938 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16939 found="yes" 16940 fi 16941 fi 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957xorg_testset_save_CFLAGS="$CFLAGS" 16958 16959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16962printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16963if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16964then : 16965 printf %s "(cached) " >&6 16966else case e in #( 16967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16968/* end confdefs.h. */ 16969int i; 16970_ACEOF 16971if ac_fn_c_try_compile "$LINENO" 16972then : 16973 xorg_cv_cc_flag_unknown_warning_option=yes 16974else case e in #( 16975 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16976esac 16977fi 16978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16979esac 16980fi 16981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16984 CFLAGS="$xorg_testset_save_CFLAGS" 16985fi 16986 16987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16990 fi 16991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16994if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16995then : 16996 printf %s "(cached) " >&6 16997else case e in #( 16998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16999/* end confdefs.h. */ 17000int i; 17001_ACEOF 17002if ac_fn_c_try_compile "$LINENO" 17003then : 17004 xorg_cv_cc_flag_unused_command_line_argument=yes 17005else case e in #( 17006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17007esac 17008fi 17009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17010esac 17011fi 17012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17015 CFLAGS="$xorg_testset_save_CFLAGS" 17016fi 17017 17018found="no" 17019 17020 if test $found = "no" ; then 17021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17023 fi 17024 17025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17027 fi 17028 17029 CFLAGS="$CFLAGS -Werror=return-type" 17030 17031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17032printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17033 cacheid=xorg_cv_cc_flag__Werror_return_type 17034 if eval test \${$cacheid+y} 17035then : 17036 printf %s "(cached) " >&6 17037else case e in #( 17038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17039/* end confdefs.h. */ 17040int i; 17041int 17042main (void) 17043{ 17044 17045 ; 17046 return 0; 17047} 17048_ACEOF 17049if ac_fn_c_try_link "$LINENO" 17050then : 17051 eval $cacheid=yes 17052else case e in #( 17053 e) eval $cacheid=no ;; 17054esac 17055fi 17056rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17057 conftest$ac_exeext conftest.$ac_ext ;; 17058esac 17059fi 17060 17061 17062 CFLAGS="$xorg_testset_save_CFLAGS" 17063 17064 eval supported=\$$cacheid 17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17066printf "%s\n" "$supported" >&6; } 17067 if test "$supported" = "yes" ; then 17068 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17069 found="yes" 17070 fi 17071 fi 17072 17073 if test $found = "no" ; then 17074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17076 fi 17077 17078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17080 fi 17081 17082 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17083 17084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17085printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17086 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17087 if eval test \${$cacheid+y} 17088then : 17089 printf %s "(cached) " >&6 17090else case e in #( 17091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17092/* end confdefs.h. */ 17093int i; 17094int 17095main (void) 17096{ 17097 17098 ; 17099 return 0; 17100} 17101_ACEOF 17102if ac_fn_c_try_link "$LINENO" 17103then : 17104 eval $cacheid=yes 17105else case e in #( 17106 e) eval $cacheid=no ;; 17107esac 17108fi 17109rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17110 conftest$ac_exeext conftest.$ac_ext ;; 17111esac 17112fi 17113 17114 17115 CFLAGS="$xorg_testset_save_CFLAGS" 17116 17117 eval supported=\$$cacheid 17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17119printf "%s\n" "$supported" >&6; } 17120 if test "$supported" = "yes" ; then 17121 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17122 found="yes" 17123 fi 17124 fi 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140xorg_testset_save_CFLAGS="$CFLAGS" 17141 17142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17145printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17146if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17147then : 17148 printf %s "(cached) " >&6 17149else case e in #( 17150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17151/* end confdefs.h. */ 17152int i; 17153_ACEOF 17154if ac_fn_c_try_compile "$LINENO" 17155then : 17156 xorg_cv_cc_flag_unknown_warning_option=yes 17157else case e in #( 17158 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17159esac 17160fi 17161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17162esac 17163fi 17164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17167 CFLAGS="$xorg_testset_save_CFLAGS" 17168fi 17169 17170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17173 fi 17174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17177if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17178then : 17179 printf %s "(cached) " >&6 17180else case e in #( 17181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17182/* end confdefs.h. */ 17183int i; 17184_ACEOF 17185if ac_fn_c_try_compile "$LINENO" 17186then : 17187 xorg_cv_cc_flag_unused_command_line_argument=yes 17188else case e in #( 17189 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17190esac 17191fi 17192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17193esac 17194fi 17195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17196printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17198 CFLAGS="$xorg_testset_save_CFLAGS" 17199fi 17200 17201found="no" 17202 17203 if test $found = "no" ; then 17204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17206 fi 17207 17208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17210 fi 17211 17212 CFLAGS="$CFLAGS -Werror=trigraphs" 17213 17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17215printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17216 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17217 if eval test \${$cacheid+y} 17218then : 17219 printf %s "(cached) " >&6 17220else case e in #( 17221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17222/* end confdefs.h. */ 17223int i; 17224int 17225main (void) 17226{ 17227 17228 ; 17229 return 0; 17230} 17231_ACEOF 17232if ac_fn_c_try_link "$LINENO" 17233then : 17234 eval $cacheid=yes 17235else case e in #( 17236 e) eval $cacheid=no ;; 17237esac 17238fi 17239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17240 conftest$ac_exeext conftest.$ac_ext ;; 17241esac 17242fi 17243 17244 17245 CFLAGS="$xorg_testset_save_CFLAGS" 17246 17247 eval supported=\$$cacheid 17248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17249printf "%s\n" "$supported" >&6; } 17250 if test "$supported" = "yes" ; then 17251 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17252 found="yes" 17253 fi 17254 fi 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270xorg_testset_save_CFLAGS="$CFLAGS" 17271 17272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17276if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17277then : 17278 printf %s "(cached) " >&6 17279else case e in #( 17280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17281/* end confdefs.h. */ 17282int i; 17283_ACEOF 17284if ac_fn_c_try_compile "$LINENO" 17285then : 17286 xorg_cv_cc_flag_unknown_warning_option=yes 17287else case e in #( 17288 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17289esac 17290fi 17291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17292esac 17293fi 17294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17295printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17297 CFLAGS="$xorg_testset_save_CFLAGS" 17298fi 17299 17300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17303 fi 17304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17306printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17307if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17308then : 17309 printf %s "(cached) " >&6 17310else case e in #( 17311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17312/* end confdefs.h. */ 17313int i; 17314_ACEOF 17315if ac_fn_c_try_compile "$LINENO" 17316then : 17317 xorg_cv_cc_flag_unused_command_line_argument=yes 17318else case e in #( 17319 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17320esac 17321fi 17322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17323esac 17324fi 17325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17328 CFLAGS="$xorg_testset_save_CFLAGS" 17329fi 17330 17331found="no" 17332 17333 if test $found = "no" ; then 17334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17336 fi 17337 17338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17340 fi 17341 17342 CFLAGS="$CFLAGS -Werror=array-bounds" 17343 17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17345printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17346 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17347 if eval test \${$cacheid+y} 17348then : 17349 printf %s "(cached) " >&6 17350else case e in #( 17351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17352/* end confdefs.h. */ 17353int i; 17354int 17355main (void) 17356{ 17357 17358 ; 17359 return 0; 17360} 17361_ACEOF 17362if ac_fn_c_try_link "$LINENO" 17363then : 17364 eval $cacheid=yes 17365else case e in #( 17366 e) eval $cacheid=no ;; 17367esac 17368fi 17369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17370 conftest$ac_exeext conftest.$ac_ext ;; 17371esac 17372fi 17373 17374 17375 CFLAGS="$xorg_testset_save_CFLAGS" 17376 17377 eval supported=\$$cacheid 17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17379printf "%s\n" "$supported" >&6; } 17380 if test "$supported" = "yes" ; then 17381 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17382 found="yes" 17383 fi 17384 fi 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400xorg_testset_save_CFLAGS="$CFLAGS" 17401 17402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17405printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17406if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17407then : 17408 printf %s "(cached) " >&6 17409else case e in #( 17410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17411/* end confdefs.h. */ 17412int i; 17413_ACEOF 17414if ac_fn_c_try_compile "$LINENO" 17415then : 17416 xorg_cv_cc_flag_unknown_warning_option=yes 17417else case e in #( 17418 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17419esac 17420fi 17421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17422esac 17423fi 17424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17425printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17427 CFLAGS="$xorg_testset_save_CFLAGS" 17428fi 17429 17430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17433 fi 17434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17436printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17437if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17438then : 17439 printf %s "(cached) " >&6 17440else case e in #( 17441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17442/* end confdefs.h. */ 17443int i; 17444_ACEOF 17445if ac_fn_c_try_compile "$LINENO" 17446then : 17447 xorg_cv_cc_flag_unused_command_line_argument=yes 17448else case e in #( 17449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17450esac 17451fi 17452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17453esac 17454fi 17455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17456printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17458 CFLAGS="$xorg_testset_save_CFLAGS" 17459fi 17460 17461found="no" 17462 17463 if test $found = "no" ; then 17464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17466 fi 17467 17468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17470 fi 17471 17472 CFLAGS="$CFLAGS -Werror=write-strings" 17473 17474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17475printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17476 cacheid=xorg_cv_cc_flag__Werror_write_strings 17477 if eval test \${$cacheid+y} 17478then : 17479 printf %s "(cached) " >&6 17480else case e in #( 17481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17482/* end confdefs.h. */ 17483int i; 17484int 17485main (void) 17486{ 17487 17488 ; 17489 return 0; 17490} 17491_ACEOF 17492if ac_fn_c_try_link "$LINENO" 17493then : 17494 eval $cacheid=yes 17495else case e in #( 17496 e) eval $cacheid=no ;; 17497esac 17498fi 17499rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17500 conftest$ac_exeext conftest.$ac_ext ;; 17501esac 17502fi 17503 17504 17505 CFLAGS="$xorg_testset_save_CFLAGS" 17506 17507 eval supported=\$$cacheid 17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17509printf "%s\n" "$supported" >&6; } 17510 if test "$supported" = "yes" ; then 17511 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17512 found="yes" 17513 fi 17514 fi 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530xorg_testset_save_CFLAGS="$CFLAGS" 17531 17532if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17535printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17536if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17537then : 17538 printf %s "(cached) " >&6 17539else case e in #( 17540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17541/* end confdefs.h. */ 17542int i; 17543_ACEOF 17544if ac_fn_c_try_compile "$LINENO" 17545then : 17546 xorg_cv_cc_flag_unknown_warning_option=yes 17547else case e in #( 17548 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17549esac 17550fi 17551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17552esac 17553fi 17554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17557 CFLAGS="$xorg_testset_save_CFLAGS" 17558fi 17559 17560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17563 fi 17564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17567if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17568then : 17569 printf %s "(cached) " >&6 17570else case e in #( 17571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17572/* end confdefs.h. */ 17573int i; 17574_ACEOF 17575if ac_fn_c_try_compile "$LINENO" 17576then : 17577 xorg_cv_cc_flag_unused_command_line_argument=yes 17578else case e in #( 17579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17580esac 17581fi 17582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17583esac 17584fi 17585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17586printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17588 CFLAGS="$xorg_testset_save_CFLAGS" 17589fi 17590 17591found="no" 17592 17593 if test $found = "no" ; then 17594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17596 fi 17597 17598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17600 fi 17601 17602 CFLAGS="$CFLAGS -Werror=address" 17603 17604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17605printf %s "checking if $CC supports -Werror=address... " >&6; } 17606 cacheid=xorg_cv_cc_flag__Werror_address 17607 if eval test \${$cacheid+y} 17608then : 17609 printf %s "(cached) " >&6 17610else case e in #( 17611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17612/* end confdefs.h. */ 17613int i; 17614int 17615main (void) 17616{ 17617 17618 ; 17619 return 0; 17620} 17621_ACEOF 17622if ac_fn_c_try_link "$LINENO" 17623then : 17624 eval $cacheid=yes 17625else case e in #( 17626 e) eval $cacheid=no ;; 17627esac 17628fi 17629rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17630 conftest$ac_exeext conftest.$ac_ext ;; 17631esac 17632fi 17633 17634 17635 CFLAGS="$xorg_testset_save_CFLAGS" 17636 17637 eval supported=\$$cacheid 17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17639printf "%s\n" "$supported" >&6; } 17640 if test "$supported" = "yes" ; then 17641 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17642 found="yes" 17643 fi 17644 fi 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660xorg_testset_save_CFLAGS="$CFLAGS" 17661 17662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17666if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17667then : 17668 printf %s "(cached) " >&6 17669else case e in #( 17670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17671/* end confdefs.h. */ 17672int i; 17673_ACEOF 17674if ac_fn_c_try_compile "$LINENO" 17675then : 17676 xorg_cv_cc_flag_unknown_warning_option=yes 17677else case e in #( 17678 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17679esac 17680fi 17681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17682esac 17683fi 17684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17687 CFLAGS="$xorg_testset_save_CFLAGS" 17688fi 17689 17690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17693 fi 17694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17697if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17698then : 17699 printf %s "(cached) " >&6 17700else case e in #( 17701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17702/* end confdefs.h. */ 17703int i; 17704_ACEOF 17705if ac_fn_c_try_compile "$LINENO" 17706then : 17707 xorg_cv_cc_flag_unused_command_line_argument=yes 17708else case e in #( 17709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17710esac 17711fi 17712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17713esac 17714fi 17715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17718 CFLAGS="$xorg_testset_save_CFLAGS" 17719fi 17720 17721found="no" 17722 17723 if test $found = "no" ; then 17724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17726 fi 17727 17728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17730 fi 17731 17732 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17733 17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17735printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17736 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17737 if eval test \${$cacheid+y} 17738then : 17739 printf %s "(cached) " >&6 17740else case e in #( 17741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17742/* end confdefs.h. */ 17743int i; 17744int 17745main (void) 17746{ 17747 17748 ; 17749 return 0; 17750} 17751_ACEOF 17752if ac_fn_c_try_link "$LINENO" 17753then : 17754 eval $cacheid=yes 17755else case e in #( 17756 e) eval $cacheid=no ;; 17757esac 17758fi 17759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17760 conftest$ac_exeext conftest.$ac_ext ;; 17761esac 17762fi 17763 17764 17765 CFLAGS="$xorg_testset_save_CFLAGS" 17766 17767 eval supported=\$$cacheid 17768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17769printf "%s\n" "$supported" >&6; } 17770 if test "$supported" = "yes" ; then 17771 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17772 found="yes" 17773 fi 17774 fi 17775 17776 if test $found = "no" ; then 17777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17779 fi 17780 17781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17783 fi 17784 17785 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17786 17787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17788printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17789 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17790 if eval test \${$cacheid+y} 17791then : 17792 printf %s "(cached) " >&6 17793else case e in #( 17794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17795/* end confdefs.h. */ 17796int i; 17797int 17798main (void) 17799{ 17800 17801 ; 17802 return 0; 17803} 17804_ACEOF 17805if ac_fn_c_try_link "$LINENO" 17806then : 17807 eval $cacheid=yes 17808else case e in #( 17809 e) eval $cacheid=no ;; 17810esac 17811fi 17812rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17813 conftest$ac_exeext conftest.$ac_ext ;; 17814esac 17815fi 17816 17817 17818 CFLAGS="$xorg_testset_save_CFLAGS" 17819 17820 eval supported=\$$cacheid 17821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17822printf "%s\n" "$supported" >&6; } 17823 if test "$supported" = "yes" ; then 17824 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17825 found="yes" 17826 fi 17827 fi 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843xorg_testset_save_CFLAGS="$CFLAGS" 17844 17845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17849if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17850then : 17851 printf %s "(cached) " >&6 17852else case e in #( 17853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17854/* end confdefs.h. */ 17855int i; 17856_ACEOF 17857if ac_fn_c_try_compile "$LINENO" 17858then : 17859 xorg_cv_cc_flag_unknown_warning_option=yes 17860else case e in #( 17861 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17862esac 17863fi 17864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17865esac 17866fi 17867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17870 CFLAGS="$xorg_testset_save_CFLAGS" 17871fi 17872 17873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17876 fi 17877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17880if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17881then : 17882 printf %s "(cached) " >&6 17883else case e in #( 17884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17885/* end confdefs.h. */ 17886int i; 17887_ACEOF 17888if ac_fn_c_try_compile "$LINENO" 17889then : 17890 xorg_cv_cc_flag_unused_command_line_argument=yes 17891else case e in #( 17892 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17893esac 17894fi 17895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17896esac 17897fi 17898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17901 CFLAGS="$xorg_testset_save_CFLAGS" 17902fi 17903 17904found="no" 17905 17906 if test $found = "no" ; then 17907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17909 fi 17910 17911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17913 fi 17914 17915 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17916 17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17918printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17919 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17920 if eval test \${$cacheid+y} 17921then : 17922 printf %s "(cached) " >&6 17923else case e in #( 17924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17925/* end confdefs.h. */ 17926int i; 17927int 17928main (void) 17929{ 17930 17931 ; 17932 return 0; 17933} 17934_ACEOF 17935if ac_fn_c_try_link "$LINENO" 17936then : 17937 eval $cacheid=yes 17938else case e in #( 17939 e) eval $cacheid=no ;; 17940esac 17941fi 17942rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17943 conftest$ac_exeext conftest.$ac_ext ;; 17944esac 17945fi 17946 17947 17948 CFLAGS="$xorg_testset_save_CFLAGS" 17949 17950 eval supported=\$$cacheid 17951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17952printf "%s\n" "$supported" >&6; } 17953 if test "$supported" = "yes" ; then 17954 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17955 found="yes" 17956 fi 17957 fi 17958 17959 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17960else 17961{ 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 17962printf "%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;} 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976xorg_testset_save_CFLAGS="$CFLAGS" 17977 17978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17981printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17982if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17983then : 17984 printf %s "(cached) " >&6 17985else case e in #( 17986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17987/* end confdefs.h. */ 17988int i; 17989_ACEOF 17990if ac_fn_c_try_compile "$LINENO" 17991then : 17992 xorg_cv_cc_flag_unknown_warning_option=yes 17993else case e in #( 17994 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17995esac 17996fi 17997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17998esac 17999fi 18000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18001printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18002 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18003 CFLAGS="$xorg_testset_save_CFLAGS" 18004fi 18005 18006if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18009 fi 18010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18012printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18013if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18014then : 18015 printf %s "(cached) " >&6 18016else case e in #( 18017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18018/* end confdefs.h. */ 18019int i; 18020_ACEOF 18021if ac_fn_c_try_compile "$LINENO" 18022then : 18023 xorg_cv_cc_flag_unused_command_line_argument=yes 18024else case e in #( 18025 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18026esac 18027fi 18028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18029esac 18030fi 18031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18032printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18033 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18034 CFLAGS="$xorg_testset_save_CFLAGS" 18035fi 18036 18037found="no" 18038 18039 if test $found = "no" ; then 18040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18042 fi 18043 18044 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18046 fi 18047 18048 CFLAGS="$CFLAGS -Wimplicit" 18049 18050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18051printf %s "checking if $CC supports -Wimplicit... " >&6; } 18052 cacheid=xorg_cv_cc_flag__Wimplicit 18053 if eval test \${$cacheid+y} 18054then : 18055 printf %s "(cached) " >&6 18056else case e in #( 18057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18058/* end confdefs.h. */ 18059int i; 18060int 18061main (void) 18062{ 18063 18064 ; 18065 return 0; 18066} 18067_ACEOF 18068if ac_fn_c_try_link "$LINENO" 18069then : 18070 eval $cacheid=yes 18071else case e in #( 18072 e) eval $cacheid=no ;; 18073esac 18074fi 18075rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18076 conftest$ac_exeext conftest.$ac_ext ;; 18077esac 18078fi 18079 18080 18081 CFLAGS="$xorg_testset_save_CFLAGS" 18082 18083 eval supported=\$$cacheid 18084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18085printf "%s\n" "$supported" >&6; } 18086 if test "$supported" = "yes" ; then 18087 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18088 found="yes" 18089 fi 18090 fi 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106xorg_testset_save_CFLAGS="$CFLAGS" 18107 18108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18111printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18112if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18113then : 18114 printf %s "(cached) " >&6 18115else case e in #( 18116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18117/* end confdefs.h. */ 18118int i; 18119_ACEOF 18120if ac_fn_c_try_compile "$LINENO" 18121then : 18122 xorg_cv_cc_flag_unknown_warning_option=yes 18123else case e in #( 18124 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18125esac 18126fi 18127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18128esac 18129fi 18130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18133 CFLAGS="$xorg_testset_save_CFLAGS" 18134fi 18135 18136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18139 fi 18140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18143if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18144then : 18145 printf %s "(cached) " >&6 18146else case e in #( 18147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18148/* end confdefs.h. */ 18149int i; 18150_ACEOF 18151if ac_fn_c_try_compile "$LINENO" 18152then : 18153 xorg_cv_cc_flag_unused_command_line_argument=yes 18154else case e in #( 18155 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18156esac 18157fi 18158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18159esac 18160fi 18161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18164 CFLAGS="$xorg_testset_save_CFLAGS" 18165fi 18166 18167found="no" 18168 18169 if test $found = "no" ; then 18170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18172 fi 18173 18174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18176 fi 18177 18178 CFLAGS="$CFLAGS -Wnonnull" 18179 18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18181printf %s "checking if $CC supports -Wnonnull... " >&6; } 18182 cacheid=xorg_cv_cc_flag__Wnonnull 18183 if eval test \${$cacheid+y} 18184then : 18185 printf %s "(cached) " >&6 18186else case e in #( 18187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18188/* end confdefs.h. */ 18189int i; 18190int 18191main (void) 18192{ 18193 18194 ; 18195 return 0; 18196} 18197_ACEOF 18198if ac_fn_c_try_link "$LINENO" 18199then : 18200 eval $cacheid=yes 18201else case e in #( 18202 e) eval $cacheid=no ;; 18203esac 18204fi 18205rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18206 conftest$ac_exeext conftest.$ac_ext ;; 18207esac 18208fi 18209 18210 18211 CFLAGS="$xorg_testset_save_CFLAGS" 18212 18213 eval supported=\$$cacheid 18214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18215printf "%s\n" "$supported" >&6; } 18216 if test "$supported" = "yes" ; then 18217 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18218 found="yes" 18219 fi 18220 fi 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236xorg_testset_save_CFLAGS="$CFLAGS" 18237 18238if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18241printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18242if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18243then : 18244 printf %s "(cached) " >&6 18245else case e in #( 18246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18247/* end confdefs.h. */ 18248int i; 18249_ACEOF 18250if ac_fn_c_try_compile "$LINENO" 18251then : 18252 xorg_cv_cc_flag_unknown_warning_option=yes 18253else case e in #( 18254 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18255esac 18256fi 18257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18258esac 18259fi 18260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18263 CFLAGS="$xorg_testset_save_CFLAGS" 18264fi 18265 18266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18269 fi 18270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18274then : 18275 printf %s "(cached) " >&6 18276else case e in #( 18277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18278/* end confdefs.h. */ 18279int i; 18280_ACEOF 18281if ac_fn_c_try_compile "$LINENO" 18282then : 18283 xorg_cv_cc_flag_unused_command_line_argument=yes 18284else case e in #( 18285 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18286esac 18287fi 18288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18289esac 18290fi 18291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18292printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18294 CFLAGS="$xorg_testset_save_CFLAGS" 18295fi 18296 18297found="no" 18298 18299 if test $found = "no" ; then 18300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18302 fi 18303 18304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18306 fi 18307 18308 CFLAGS="$CFLAGS -Winit-self" 18309 18310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18311printf %s "checking if $CC supports -Winit-self... " >&6; } 18312 cacheid=xorg_cv_cc_flag__Winit_self 18313 if eval test \${$cacheid+y} 18314then : 18315 printf %s "(cached) " >&6 18316else case e in #( 18317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18318/* end confdefs.h. */ 18319int i; 18320int 18321main (void) 18322{ 18323 18324 ; 18325 return 0; 18326} 18327_ACEOF 18328if ac_fn_c_try_link "$LINENO" 18329then : 18330 eval $cacheid=yes 18331else case e in #( 18332 e) eval $cacheid=no ;; 18333esac 18334fi 18335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18336 conftest$ac_exeext conftest.$ac_ext ;; 18337esac 18338fi 18339 18340 18341 CFLAGS="$xorg_testset_save_CFLAGS" 18342 18343 eval supported=\$$cacheid 18344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18345printf "%s\n" "$supported" >&6; } 18346 if test "$supported" = "yes" ; then 18347 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18348 found="yes" 18349 fi 18350 fi 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366xorg_testset_save_CFLAGS="$CFLAGS" 18367 18368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18372if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18373then : 18374 printf %s "(cached) " >&6 18375else case e in #( 18376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18377/* end confdefs.h. */ 18378int i; 18379_ACEOF 18380if ac_fn_c_try_compile "$LINENO" 18381then : 18382 xorg_cv_cc_flag_unknown_warning_option=yes 18383else case e in #( 18384 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18385esac 18386fi 18387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18388esac 18389fi 18390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18393 CFLAGS="$xorg_testset_save_CFLAGS" 18394fi 18395 18396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18399 fi 18400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18403if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18404then : 18405 printf %s "(cached) " >&6 18406else case e in #( 18407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18408/* end confdefs.h. */ 18409int i; 18410_ACEOF 18411if ac_fn_c_try_compile "$LINENO" 18412then : 18413 xorg_cv_cc_flag_unused_command_line_argument=yes 18414else case e in #( 18415 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18416esac 18417fi 18418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18419esac 18420fi 18421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18424 CFLAGS="$xorg_testset_save_CFLAGS" 18425fi 18426 18427found="no" 18428 18429 if test $found = "no" ; then 18430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18432 fi 18433 18434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18436 fi 18437 18438 CFLAGS="$CFLAGS -Wmain" 18439 18440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18441printf %s "checking if $CC supports -Wmain... " >&6; } 18442 cacheid=xorg_cv_cc_flag__Wmain 18443 if eval test \${$cacheid+y} 18444then : 18445 printf %s "(cached) " >&6 18446else case e in #( 18447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18448/* end confdefs.h. */ 18449int i; 18450int 18451main (void) 18452{ 18453 18454 ; 18455 return 0; 18456} 18457_ACEOF 18458if ac_fn_c_try_link "$LINENO" 18459then : 18460 eval $cacheid=yes 18461else case e in #( 18462 e) eval $cacheid=no ;; 18463esac 18464fi 18465rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18466 conftest$ac_exeext conftest.$ac_ext ;; 18467esac 18468fi 18469 18470 18471 CFLAGS="$xorg_testset_save_CFLAGS" 18472 18473 eval supported=\$$cacheid 18474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18475printf "%s\n" "$supported" >&6; } 18476 if test "$supported" = "yes" ; then 18477 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18478 found="yes" 18479 fi 18480 fi 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496xorg_testset_save_CFLAGS="$CFLAGS" 18497 18498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18501printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18502if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18503then : 18504 printf %s "(cached) " >&6 18505else case e in #( 18506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18507/* end confdefs.h. */ 18508int i; 18509_ACEOF 18510if ac_fn_c_try_compile "$LINENO" 18511then : 18512 xorg_cv_cc_flag_unknown_warning_option=yes 18513else case e in #( 18514 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18515esac 18516fi 18517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18518esac 18519fi 18520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18523 CFLAGS="$xorg_testset_save_CFLAGS" 18524fi 18525 18526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18529 fi 18530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18533if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18534then : 18535 printf %s "(cached) " >&6 18536else case e in #( 18537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18538/* end confdefs.h. */ 18539int i; 18540_ACEOF 18541if ac_fn_c_try_compile "$LINENO" 18542then : 18543 xorg_cv_cc_flag_unused_command_line_argument=yes 18544else case e in #( 18545 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18546esac 18547fi 18548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18549esac 18550fi 18551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18552printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18554 CFLAGS="$xorg_testset_save_CFLAGS" 18555fi 18556 18557found="no" 18558 18559 if test $found = "no" ; then 18560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18562 fi 18563 18564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18566 fi 18567 18568 CFLAGS="$CFLAGS -Wmissing-braces" 18569 18570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18571printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18572 cacheid=xorg_cv_cc_flag__Wmissing_braces 18573 if eval test \${$cacheid+y} 18574then : 18575 printf %s "(cached) " >&6 18576else case e in #( 18577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18578/* end confdefs.h. */ 18579int i; 18580int 18581main (void) 18582{ 18583 18584 ; 18585 return 0; 18586} 18587_ACEOF 18588if ac_fn_c_try_link "$LINENO" 18589then : 18590 eval $cacheid=yes 18591else case e in #( 18592 e) eval $cacheid=no ;; 18593esac 18594fi 18595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18596 conftest$ac_exeext conftest.$ac_ext ;; 18597esac 18598fi 18599 18600 18601 CFLAGS="$xorg_testset_save_CFLAGS" 18602 18603 eval supported=\$$cacheid 18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18605printf "%s\n" "$supported" >&6; } 18606 if test "$supported" = "yes" ; then 18607 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18608 found="yes" 18609 fi 18610 fi 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626xorg_testset_save_CFLAGS="$CFLAGS" 18627 18628if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18631printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18632if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18633then : 18634 printf %s "(cached) " >&6 18635else case e in #( 18636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18637/* end confdefs.h. */ 18638int i; 18639_ACEOF 18640if ac_fn_c_try_compile "$LINENO" 18641then : 18642 xorg_cv_cc_flag_unknown_warning_option=yes 18643else case e in #( 18644 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18645esac 18646fi 18647rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18648esac 18649fi 18650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18651printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18653 CFLAGS="$xorg_testset_save_CFLAGS" 18654fi 18655 18656if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18659 fi 18660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18662printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18663if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18664then : 18665 printf %s "(cached) " >&6 18666else case e in #( 18667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18668/* end confdefs.h. */ 18669int i; 18670_ACEOF 18671if ac_fn_c_try_compile "$LINENO" 18672then : 18673 xorg_cv_cc_flag_unused_command_line_argument=yes 18674else case e in #( 18675 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18676esac 18677fi 18678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18679esac 18680fi 18681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18684 CFLAGS="$xorg_testset_save_CFLAGS" 18685fi 18686 18687found="no" 18688 18689 if test $found = "no" ; then 18690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18692 fi 18693 18694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18696 fi 18697 18698 CFLAGS="$CFLAGS -Wsequence-point" 18699 18700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18701printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18702 cacheid=xorg_cv_cc_flag__Wsequence_point 18703 if eval test \${$cacheid+y} 18704then : 18705 printf %s "(cached) " >&6 18706else case e in #( 18707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18708/* end confdefs.h. */ 18709int i; 18710int 18711main (void) 18712{ 18713 18714 ; 18715 return 0; 18716} 18717_ACEOF 18718if ac_fn_c_try_link "$LINENO" 18719then : 18720 eval $cacheid=yes 18721else case e in #( 18722 e) eval $cacheid=no ;; 18723esac 18724fi 18725rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18726 conftest$ac_exeext conftest.$ac_ext ;; 18727esac 18728fi 18729 18730 18731 CFLAGS="$xorg_testset_save_CFLAGS" 18732 18733 eval supported=\$$cacheid 18734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18735printf "%s\n" "$supported" >&6; } 18736 if test "$supported" = "yes" ; then 18737 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18738 found="yes" 18739 fi 18740 fi 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756xorg_testset_save_CFLAGS="$CFLAGS" 18757 18758if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18761printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18762if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18763then : 18764 printf %s "(cached) " >&6 18765else case e in #( 18766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18767/* end confdefs.h. */ 18768int i; 18769_ACEOF 18770if ac_fn_c_try_compile "$LINENO" 18771then : 18772 xorg_cv_cc_flag_unknown_warning_option=yes 18773else case e in #( 18774 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18775esac 18776fi 18777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18778esac 18779fi 18780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18783 CFLAGS="$xorg_testset_save_CFLAGS" 18784fi 18785 18786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18789 fi 18790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18793if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18794then : 18795 printf %s "(cached) " >&6 18796else case e in #( 18797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18798/* end confdefs.h. */ 18799int i; 18800_ACEOF 18801if ac_fn_c_try_compile "$LINENO" 18802then : 18803 xorg_cv_cc_flag_unused_command_line_argument=yes 18804else case e in #( 18805 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18806esac 18807fi 18808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18809esac 18810fi 18811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18814 CFLAGS="$xorg_testset_save_CFLAGS" 18815fi 18816 18817found="no" 18818 18819 if test $found = "no" ; then 18820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18822 fi 18823 18824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18826 fi 18827 18828 CFLAGS="$CFLAGS -Wreturn-type" 18829 18830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18831printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18832 cacheid=xorg_cv_cc_flag__Wreturn_type 18833 if eval test \${$cacheid+y} 18834then : 18835 printf %s "(cached) " >&6 18836else case e in #( 18837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18838/* end confdefs.h. */ 18839int i; 18840int 18841main (void) 18842{ 18843 18844 ; 18845 return 0; 18846} 18847_ACEOF 18848if ac_fn_c_try_link "$LINENO" 18849then : 18850 eval $cacheid=yes 18851else case e in #( 18852 e) eval $cacheid=no ;; 18853esac 18854fi 18855rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18856 conftest$ac_exeext conftest.$ac_ext ;; 18857esac 18858fi 18859 18860 18861 CFLAGS="$xorg_testset_save_CFLAGS" 18862 18863 eval supported=\$$cacheid 18864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18865printf "%s\n" "$supported" >&6; } 18866 if test "$supported" = "yes" ; then 18867 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18868 found="yes" 18869 fi 18870 fi 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886xorg_testset_save_CFLAGS="$CFLAGS" 18887 18888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18892if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18893then : 18894 printf %s "(cached) " >&6 18895else case e in #( 18896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18897/* end confdefs.h. */ 18898int i; 18899_ACEOF 18900if ac_fn_c_try_compile "$LINENO" 18901then : 18902 xorg_cv_cc_flag_unknown_warning_option=yes 18903else case e in #( 18904 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18905esac 18906fi 18907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18908esac 18909fi 18910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18911printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18913 CFLAGS="$xorg_testset_save_CFLAGS" 18914fi 18915 18916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18919 fi 18920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18922printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18923if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18924then : 18925 printf %s "(cached) " >&6 18926else case e in #( 18927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18928/* end confdefs.h. */ 18929int i; 18930_ACEOF 18931if ac_fn_c_try_compile "$LINENO" 18932then : 18933 xorg_cv_cc_flag_unused_command_line_argument=yes 18934else case e in #( 18935 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18936esac 18937fi 18938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18939esac 18940fi 18941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18942printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18944 CFLAGS="$xorg_testset_save_CFLAGS" 18945fi 18946 18947found="no" 18948 18949 if test $found = "no" ; then 18950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18952 fi 18953 18954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18956 fi 18957 18958 CFLAGS="$CFLAGS -Wtrigraphs" 18959 18960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18961printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18962 cacheid=xorg_cv_cc_flag__Wtrigraphs 18963 if eval test \${$cacheid+y} 18964then : 18965 printf %s "(cached) " >&6 18966else case e in #( 18967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18968/* end confdefs.h. */ 18969int i; 18970int 18971main (void) 18972{ 18973 18974 ; 18975 return 0; 18976} 18977_ACEOF 18978if ac_fn_c_try_link "$LINENO" 18979then : 18980 eval $cacheid=yes 18981else case e in #( 18982 e) eval $cacheid=no ;; 18983esac 18984fi 18985rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18986 conftest$ac_exeext conftest.$ac_ext ;; 18987esac 18988fi 18989 18990 18991 CFLAGS="$xorg_testset_save_CFLAGS" 18992 18993 eval supported=\$$cacheid 18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18995printf "%s\n" "$supported" >&6; } 18996 if test "$supported" = "yes" ; then 18997 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18998 found="yes" 18999 fi 19000 fi 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016xorg_testset_save_CFLAGS="$CFLAGS" 19017 19018if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19021printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19022if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19023then : 19024 printf %s "(cached) " >&6 19025else case e in #( 19026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19027/* end confdefs.h. */ 19028int i; 19029_ACEOF 19030if ac_fn_c_try_compile "$LINENO" 19031then : 19032 xorg_cv_cc_flag_unknown_warning_option=yes 19033else case e in #( 19034 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19035esac 19036fi 19037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19038esac 19039fi 19040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19041printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19043 CFLAGS="$xorg_testset_save_CFLAGS" 19044fi 19045 19046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19049 fi 19050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19052printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19053if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19054then : 19055 printf %s "(cached) " >&6 19056else case e in #( 19057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19058/* end confdefs.h. */ 19059int i; 19060_ACEOF 19061if ac_fn_c_try_compile "$LINENO" 19062then : 19063 xorg_cv_cc_flag_unused_command_line_argument=yes 19064else case e in #( 19065 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19066esac 19067fi 19068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19069esac 19070fi 19071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19072printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19074 CFLAGS="$xorg_testset_save_CFLAGS" 19075fi 19076 19077found="no" 19078 19079 if test $found = "no" ; then 19080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19082 fi 19083 19084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19086 fi 19087 19088 CFLAGS="$CFLAGS -Warray-bounds" 19089 19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19091printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19092 cacheid=xorg_cv_cc_flag__Warray_bounds 19093 if eval test \${$cacheid+y} 19094then : 19095 printf %s "(cached) " >&6 19096else case e in #( 19097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19098/* end confdefs.h. */ 19099int i; 19100int 19101main (void) 19102{ 19103 19104 ; 19105 return 0; 19106} 19107_ACEOF 19108if ac_fn_c_try_link "$LINENO" 19109then : 19110 eval $cacheid=yes 19111else case e in #( 19112 e) eval $cacheid=no ;; 19113esac 19114fi 19115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19116 conftest$ac_exeext conftest.$ac_ext ;; 19117esac 19118fi 19119 19120 19121 CFLAGS="$xorg_testset_save_CFLAGS" 19122 19123 eval supported=\$$cacheid 19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19125printf "%s\n" "$supported" >&6; } 19126 if test "$supported" = "yes" ; then 19127 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19128 found="yes" 19129 fi 19130 fi 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146xorg_testset_save_CFLAGS="$CFLAGS" 19147 19148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19153then : 19154 printf %s "(cached) " >&6 19155else case e in #( 19156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19157/* end confdefs.h. */ 19158int i; 19159_ACEOF 19160if ac_fn_c_try_compile "$LINENO" 19161then : 19162 xorg_cv_cc_flag_unknown_warning_option=yes 19163else case e in #( 19164 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19165esac 19166fi 19167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19168esac 19169fi 19170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19171printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19173 CFLAGS="$xorg_testset_save_CFLAGS" 19174fi 19175 19176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19179 fi 19180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19182printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19183if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19184then : 19185 printf %s "(cached) " >&6 19186else case e in #( 19187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19188/* end confdefs.h. */ 19189int i; 19190_ACEOF 19191if ac_fn_c_try_compile "$LINENO" 19192then : 19193 xorg_cv_cc_flag_unused_command_line_argument=yes 19194else case e in #( 19195 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19196esac 19197fi 19198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19199esac 19200fi 19201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19204 CFLAGS="$xorg_testset_save_CFLAGS" 19205fi 19206 19207found="no" 19208 19209 if test $found = "no" ; then 19210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19212 fi 19213 19214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19216 fi 19217 19218 CFLAGS="$CFLAGS -Wwrite-strings" 19219 19220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19221printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19222 cacheid=xorg_cv_cc_flag__Wwrite_strings 19223 if eval test \${$cacheid+y} 19224then : 19225 printf %s "(cached) " >&6 19226else case e in #( 19227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19228/* end confdefs.h. */ 19229int i; 19230int 19231main (void) 19232{ 19233 19234 ; 19235 return 0; 19236} 19237_ACEOF 19238if ac_fn_c_try_link "$LINENO" 19239then : 19240 eval $cacheid=yes 19241else case e in #( 19242 e) eval $cacheid=no ;; 19243esac 19244fi 19245rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19246 conftest$ac_exeext conftest.$ac_ext ;; 19247esac 19248fi 19249 19250 19251 CFLAGS="$xorg_testset_save_CFLAGS" 19252 19253 eval supported=\$$cacheid 19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19255printf "%s\n" "$supported" >&6; } 19256 if test "$supported" = "yes" ; then 19257 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19258 found="yes" 19259 fi 19260 fi 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276xorg_testset_save_CFLAGS="$CFLAGS" 19277 19278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19281printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19282if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19283then : 19284 printf %s "(cached) " >&6 19285else case e in #( 19286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19287/* end confdefs.h. */ 19288int i; 19289_ACEOF 19290if ac_fn_c_try_compile "$LINENO" 19291then : 19292 xorg_cv_cc_flag_unknown_warning_option=yes 19293else case e in #( 19294 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19295esac 19296fi 19297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19298esac 19299fi 19300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19301printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19303 CFLAGS="$xorg_testset_save_CFLAGS" 19304fi 19305 19306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19309 fi 19310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19312printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19313if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19314then : 19315 printf %s "(cached) " >&6 19316else case e in #( 19317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19318/* end confdefs.h. */ 19319int i; 19320_ACEOF 19321if ac_fn_c_try_compile "$LINENO" 19322then : 19323 xorg_cv_cc_flag_unused_command_line_argument=yes 19324else case e in #( 19325 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19326esac 19327fi 19328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19329esac 19330fi 19331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19332printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19334 CFLAGS="$xorg_testset_save_CFLAGS" 19335fi 19336 19337found="no" 19338 19339 if test $found = "no" ; then 19340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19342 fi 19343 19344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19346 fi 19347 19348 CFLAGS="$CFLAGS -Waddress" 19349 19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19351printf %s "checking if $CC supports -Waddress... " >&6; } 19352 cacheid=xorg_cv_cc_flag__Waddress 19353 if eval test \${$cacheid+y} 19354then : 19355 printf %s "(cached) " >&6 19356else case e in #( 19357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19358/* end confdefs.h. */ 19359int i; 19360int 19361main (void) 19362{ 19363 19364 ; 19365 return 0; 19366} 19367_ACEOF 19368if ac_fn_c_try_link "$LINENO" 19369then : 19370 eval $cacheid=yes 19371else case e in #( 19372 e) eval $cacheid=no ;; 19373esac 19374fi 19375rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19376 conftest$ac_exeext conftest.$ac_ext ;; 19377esac 19378fi 19379 19380 19381 CFLAGS="$xorg_testset_save_CFLAGS" 19382 19383 eval supported=\$$cacheid 19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19385printf "%s\n" "$supported" >&6; } 19386 if test "$supported" = "yes" ; then 19387 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19388 found="yes" 19389 fi 19390 fi 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406xorg_testset_save_CFLAGS="$CFLAGS" 19407 19408if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19409 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19411printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19412if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19413then : 19414 printf %s "(cached) " >&6 19415else case e in #( 19416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19417/* end confdefs.h. */ 19418int i; 19419_ACEOF 19420if ac_fn_c_try_compile "$LINENO" 19421then : 19422 xorg_cv_cc_flag_unknown_warning_option=yes 19423else case e in #( 19424 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19425esac 19426fi 19427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19428esac 19429fi 19430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19431printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19433 CFLAGS="$xorg_testset_save_CFLAGS" 19434fi 19435 19436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19439 fi 19440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19442printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19443if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19444then : 19445 printf %s "(cached) " >&6 19446else case e in #( 19447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19448/* end confdefs.h. */ 19449int i; 19450_ACEOF 19451if ac_fn_c_try_compile "$LINENO" 19452then : 19453 xorg_cv_cc_flag_unused_command_line_argument=yes 19454else case e in #( 19455 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19456esac 19457fi 19458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19459esac 19460fi 19461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19462printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19463 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19464 CFLAGS="$xorg_testset_save_CFLAGS" 19465fi 19466 19467found="no" 19468 19469 if test $found = "no" ; then 19470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19472 fi 19473 19474 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19476 fi 19477 19478 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19479 19480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19481printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19482 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19483 if eval test \${$cacheid+y} 19484then : 19485 printf %s "(cached) " >&6 19486else case e in #( 19487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19488/* end confdefs.h. */ 19489int i; 19490int 19491main (void) 19492{ 19493 19494 ; 19495 return 0; 19496} 19497_ACEOF 19498if ac_fn_c_try_link "$LINENO" 19499then : 19500 eval $cacheid=yes 19501else case e in #( 19502 e) eval $cacheid=no ;; 19503esac 19504fi 19505rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19506 conftest$ac_exeext conftest.$ac_ext ;; 19507esac 19508fi 19509 19510 19511 CFLAGS="$xorg_testset_save_CFLAGS" 19512 19513 eval supported=\$$cacheid 19514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19515printf "%s\n" "$supported" >&6; } 19516 if test "$supported" = "yes" ; then 19517 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19518 found="yes" 19519 fi 19520 fi 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536xorg_testset_save_CFLAGS="$CFLAGS" 19537 19538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19542if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19543then : 19544 printf %s "(cached) " >&6 19545else case e in #( 19546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19547/* end confdefs.h. */ 19548int i; 19549_ACEOF 19550if ac_fn_c_try_compile "$LINENO" 19551then : 19552 xorg_cv_cc_flag_unknown_warning_option=yes 19553else case e in #( 19554 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19555esac 19556fi 19557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19558esac 19559fi 19560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19561printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19562 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19563 CFLAGS="$xorg_testset_save_CFLAGS" 19564fi 19565 19566if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19569 fi 19570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19572printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19573if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19574then : 19575 printf %s "(cached) " >&6 19576else case e in #( 19577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19578/* end confdefs.h. */ 19579int i; 19580_ACEOF 19581if ac_fn_c_try_compile "$LINENO" 19582then : 19583 xorg_cv_cc_flag_unused_command_line_argument=yes 19584else case e in #( 19585 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19586esac 19587fi 19588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19589esac 19590fi 19591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19592printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19594 CFLAGS="$xorg_testset_save_CFLAGS" 19595fi 19596 19597found="no" 19598 19599 if test $found = "no" ; then 19600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19602 fi 19603 19604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19606 fi 19607 19608 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19609 19610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19611printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19612 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19613 if eval test \${$cacheid+y} 19614then : 19615 printf %s "(cached) " >&6 19616else case e in #( 19617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19618/* end confdefs.h. */ 19619int i; 19620int 19621main (void) 19622{ 19623 19624 ; 19625 return 0; 19626} 19627_ACEOF 19628if ac_fn_c_try_link "$LINENO" 19629then : 19630 eval $cacheid=yes 19631else case e in #( 19632 e) eval $cacheid=no ;; 19633esac 19634fi 19635rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19636 conftest$ac_exeext conftest.$ac_ext ;; 19637esac 19638fi 19639 19640 19641 CFLAGS="$xorg_testset_save_CFLAGS" 19642 19643 eval supported=\$$cacheid 19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19645printf "%s\n" "$supported" >&6; } 19646 if test "$supported" = "yes" ; then 19647 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19648 found="yes" 19649 fi 19650 fi 19651 19652 19653fi 19654 19655 19656 19657 19658 19659 19660 19661 CWARNFLAGS="$BASE_CFLAGS" 19662 if test "x$GCC" = xyes ; then 19663 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19664 fi 19665 19666 19667 19668 19669 19670 19671 19672 19673# Check whether --enable-strict-compilation was given. 19674if test ${enable_strict_compilation+y} 19675then : 19676 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19677else case e in #( 19678 e) STRICT_COMPILE=no ;; 19679esac 19680fi 19681 19682 19683 19684 19685 19686 19687STRICT_CFLAGS="" 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701xorg_testset_save_CFLAGS="$CFLAGS" 19702 19703if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19706printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19707if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19708then : 19709 printf %s "(cached) " >&6 19710else case e in #( 19711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19712/* end confdefs.h. */ 19713int i; 19714_ACEOF 19715if ac_fn_c_try_compile "$LINENO" 19716then : 19717 xorg_cv_cc_flag_unknown_warning_option=yes 19718else case e in #( 19719 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19720esac 19721fi 19722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19723esac 19724fi 19725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19728 CFLAGS="$xorg_testset_save_CFLAGS" 19729fi 19730 19731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19734 fi 19735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19738if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19739then : 19740 printf %s "(cached) " >&6 19741else case e in #( 19742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19743/* end confdefs.h. */ 19744int i; 19745_ACEOF 19746if ac_fn_c_try_compile "$LINENO" 19747then : 19748 xorg_cv_cc_flag_unused_command_line_argument=yes 19749else case e in #( 19750 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19751esac 19752fi 19753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19754esac 19755fi 19756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19757printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19759 CFLAGS="$xorg_testset_save_CFLAGS" 19760fi 19761 19762found="no" 19763 19764 if test $found = "no" ; then 19765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19767 fi 19768 19769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19771 fi 19772 19773 CFLAGS="$CFLAGS -pedantic" 19774 19775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19776printf %s "checking if $CC supports -pedantic... " >&6; } 19777 cacheid=xorg_cv_cc_flag__pedantic 19778 if eval test \${$cacheid+y} 19779then : 19780 printf %s "(cached) " >&6 19781else case e in #( 19782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19783/* end confdefs.h. */ 19784int i; 19785int 19786main (void) 19787{ 19788 19789 ; 19790 return 0; 19791} 19792_ACEOF 19793if ac_fn_c_try_link "$LINENO" 19794then : 19795 eval $cacheid=yes 19796else case e in #( 19797 e) eval $cacheid=no ;; 19798esac 19799fi 19800rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19801 conftest$ac_exeext conftest.$ac_ext ;; 19802esac 19803fi 19804 19805 19806 CFLAGS="$xorg_testset_save_CFLAGS" 19807 19808 eval supported=\$$cacheid 19809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19810printf "%s\n" "$supported" >&6; } 19811 if test "$supported" = "yes" ; then 19812 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19813 found="yes" 19814 fi 19815 fi 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831xorg_testset_save_CFLAGS="$CFLAGS" 19832 19833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19837if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19838then : 19839 printf %s "(cached) " >&6 19840else case e in #( 19841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19842/* end confdefs.h. */ 19843int i; 19844_ACEOF 19845if ac_fn_c_try_compile "$LINENO" 19846then : 19847 xorg_cv_cc_flag_unknown_warning_option=yes 19848else case e in #( 19849 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19850esac 19851fi 19852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19853esac 19854fi 19855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19856printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19858 CFLAGS="$xorg_testset_save_CFLAGS" 19859fi 19860 19861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19864 fi 19865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19867printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19868if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19869then : 19870 printf %s "(cached) " >&6 19871else case e in #( 19872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19873/* end confdefs.h. */ 19874int i; 19875_ACEOF 19876if ac_fn_c_try_compile "$LINENO" 19877then : 19878 xorg_cv_cc_flag_unused_command_line_argument=yes 19879else case e in #( 19880 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19881esac 19882fi 19883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19884esac 19885fi 19886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19889 CFLAGS="$xorg_testset_save_CFLAGS" 19890fi 19891 19892found="no" 19893 19894 if test $found = "no" ; then 19895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19897 fi 19898 19899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19901 fi 19902 19903 CFLAGS="$CFLAGS -Werror" 19904 19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19906printf %s "checking if $CC supports -Werror... " >&6; } 19907 cacheid=xorg_cv_cc_flag__Werror 19908 if eval test \${$cacheid+y} 19909then : 19910 printf %s "(cached) " >&6 19911else case e in #( 19912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19913/* end confdefs.h. */ 19914int i; 19915int 19916main (void) 19917{ 19918 19919 ; 19920 return 0; 19921} 19922_ACEOF 19923if ac_fn_c_try_link "$LINENO" 19924then : 19925 eval $cacheid=yes 19926else case e in #( 19927 e) eval $cacheid=no ;; 19928esac 19929fi 19930rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19931 conftest$ac_exeext conftest.$ac_ext ;; 19932esac 19933fi 19934 19935 19936 CFLAGS="$xorg_testset_save_CFLAGS" 19937 19938 eval supported=\$$cacheid 19939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19940printf "%s\n" "$supported" >&6; } 19941 if test "$supported" = "yes" ; then 19942 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19943 found="yes" 19944 fi 19945 fi 19946 19947 if test $found = "no" ; then 19948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19950 fi 19951 19952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19954 fi 19955 19956 CFLAGS="$CFLAGS -errwarn" 19957 19958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19959printf %s "checking if $CC supports -errwarn... " >&6; } 19960 cacheid=xorg_cv_cc_flag__errwarn 19961 if eval test \${$cacheid+y} 19962then : 19963 printf %s "(cached) " >&6 19964else case e in #( 19965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19966/* end confdefs.h. */ 19967int i; 19968int 19969main (void) 19970{ 19971 19972 ; 19973 return 0; 19974} 19975_ACEOF 19976if ac_fn_c_try_link "$LINENO" 19977then : 19978 eval $cacheid=yes 19979else case e in #( 19980 e) eval $cacheid=no ;; 19981esac 19982fi 19983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19984 conftest$ac_exeext conftest.$ac_ext ;; 19985esac 19986fi 19987 19988 19989 CFLAGS="$xorg_testset_save_CFLAGS" 19990 19991 eval supported=\$$cacheid 19992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19993printf "%s\n" "$supported" >&6; } 19994 if test "$supported" = "yes" ; then 19995 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19996 found="yes" 19997 fi 19998 fi 19999 20000 20001 20002# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20003# activate it with -Werror, so we add it here explicitly. 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017xorg_testset_save_CFLAGS="$CFLAGS" 20018 20019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20023if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20024then : 20025 printf %s "(cached) " >&6 20026else case e in #( 20027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20028/* end confdefs.h. */ 20029int i; 20030_ACEOF 20031if ac_fn_c_try_compile "$LINENO" 20032then : 20033 xorg_cv_cc_flag_unknown_warning_option=yes 20034else case e in #( 20035 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20036esac 20037fi 20038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20039esac 20040fi 20041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20044 CFLAGS="$xorg_testset_save_CFLAGS" 20045fi 20046 20047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20050 fi 20051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20054if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20055then : 20056 printf %s "(cached) " >&6 20057else case e in #( 20058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20059/* end confdefs.h. */ 20060int i; 20061_ACEOF 20062if ac_fn_c_try_compile "$LINENO" 20063then : 20064 xorg_cv_cc_flag_unused_command_line_argument=yes 20065else case e in #( 20066 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20067esac 20068fi 20069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20070esac 20071fi 20072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20075 CFLAGS="$xorg_testset_save_CFLAGS" 20076fi 20077 20078found="no" 20079 20080 if test $found = "no" ; then 20081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20083 fi 20084 20085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20087 fi 20088 20089 CFLAGS="$CFLAGS -Werror=attributes" 20090 20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20092printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20093 cacheid=xorg_cv_cc_flag__Werror_attributes 20094 if eval test \${$cacheid+y} 20095then : 20096 printf %s "(cached) " >&6 20097else case e in #( 20098 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20099/* end confdefs.h. */ 20100int i; 20101int 20102main (void) 20103{ 20104 20105 ; 20106 return 0; 20107} 20108_ACEOF 20109if ac_fn_c_try_link "$LINENO" 20110then : 20111 eval $cacheid=yes 20112else case e in #( 20113 e) eval $cacheid=no ;; 20114esac 20115fi 20116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20117 conftest$ac_exeext conftest.$ac_ext ;; 20118esac 20119fi 20120 20121 20122 CFLAGS="$xorg_testset_save_CFLAGS" 20123 20124 eval supported=\$$cacheid 20125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20126printf "%s\n" "$supported" >&6; } 20127 if test "$supported" = "yes" ; then 20128 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20129 found="yes" 20130 fi 20131 fi 20132 20133 20134 20135if test "x$STRICT_COMPILE" = "xyes"; then 20136 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20137 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20138fi 20139 20140 20141 20142 20143 20144 20145 20146 20147cat >>confdefs.h <<_ACEOF 20148#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20149_ACEOF 20150 20151 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20152 if test "x$PVM" = "x"; then 20153 PVM="0" 20154 fi 20155 20156printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20157 20158 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20159 if test "x$PVP" = "x"; then 20160 PVP="0" 20161 fi 20162 20163printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20164 20165 20166 20167CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20168mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20169|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20170touch \$(top_srcdir)/ChangeLog; \ 20171echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20172 20173 20174 20175 20176macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20177INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20178mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20179|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20180touch \$(top_srcdir)/INSTALL; \ 20181echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20182 20183 20184 20185 20186 20187 20188case $host_os in 20189 solaris*) 20190 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20191 # check for a man page file found in later versions that use 20192 # traditional section numbers instead 20193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20194printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20195if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20196then : 20197 printf %s "(cached) " >&6 20198else case e in #( 20199 e) test "$cross_compiling" = yes && 20200 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20201if test -r "/usr/share/man/man7/attributes.7"; then 20202 ac_cv_file__usr_share_man_man7_attributes_7=yes 20203else 20204 ac_cv_file__usr_share_man_man7_attributes_7=no 20205fi ;; 20206esac 20207fi 20208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20209printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20210if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20211then : 20212 SYSV_MAN_SECTIONS=false 20213else case e in #( 20214 e) SYSV_MAN_SECTIONS=true ;; 20215esac 20216fi 20217 20218 ;; 20219 *) SYSV_MAN_SECTIONS=false ;; 20220esac 20221 20222if test x$APP_MAN_SUFFIX = x ; then 20223 APP_MAN_SUFFIX=1 20224fi 20225if test x$APP_MAN_DIR = x ; then 20226 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20227fi 20228 20229if test x$LIB_MAN_SUFFIX = x ; then 20230 LIB_MAN_SUFFIX=3 20231fi 20232if test x$LIB_MAN_DIR = x ; then 20233 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20234fi 20235 20236if test x$FILE_MAN_SUFFIX = x ; then 20237 case $SYSV_MAN_SECTIONS in 20238 true) FILE_MAN_SUFFIX=4 ;; 20239 *) FILE_MAN_SUFFIX=5 ;; 20240 esac 20241fi 20242if test x$FILE_MAN_DIR = x ; then 20243 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20244fi 20245 20246if test x$MISC_MAN_SUFFIX = x ; then 20247 case $SYSV_MAN_SECTIONS in 20248 true) MISC_MAN_SUFFIX=5 ;; 20249 *) MISC_MAN_SUFFIX=7 ;; 20250 esac 20251fi 20252if test x$MISC_MAN_DIR = x ; then 20253 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20254fi 20255 20256if test x$DRIVER_MAN_SUFFIX = x ; then 20257 case $SYSV_MAN_SECTIONS in 20258 true) DRIVER_MAN_SUFFIX=7 ;; 20259 *) DRIVER_MAN_SUFFIX=4 ;; 20260 esac 20261fi 20262if test x$DRIVER_MAN_DIR = x ; then 20263 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20264fi 20265 20266if test x$ADMIN_MAN_SUFFIX = x ; then 20267 case $SYSV_MAN_SECTIONS in 20268 true) ADMIN_MAN_SUFFIX=1m ;; 20269 *) ADMIN_MAN_SUFFIX=8 ;; 20270 esac 20271fi 20272if test x$ADMIN_MAN_DIR = x ; then 20273 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20274fi 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290XORG_MAN_PAGE="X Version 11" 20291 20292MAN_SUBSTS="\ 20293 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20294 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20295 -e 's|__xservername__|Xorg|g' \ 20296 -e 's|__xconfigfile__|xorg.conf|g' \ 20297 -e 's|__projectroot__|\$(prefix)|g' \ 20298 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20299 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20300 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20301 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20302 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20303 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20304 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20305 20306 20307 20308 20309AM_DEFAULT_VERBOSITY=0 20310 20311 20312 20313# Check whether --enable-malloc0returnsnull was given. 20314if test ${enable_malloc0returnsnull+y} 20315then : 20316 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20317else case e in #( 20318 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 20319esac 20320fi 20321 20322 20323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 20324printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 20325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20326printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20327 20328if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20329 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20330 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20331 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20332else 20333 MALLOC_ZERO_CFLAGS="" 20334 XMALLOC_ZERO_CFLAGS="" 20335 XTMALLOC_ZERO_CFLAGS="" 20336fi 20337 20338 20339 20340 20341 20342 20343# Obtain compiler/linker options for dependencies 20344 20345pkg_failed=no 20346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XV" >&5 20347printf %s "checking for XV... " >&6; } 20348 20349if test -n "$XV_CFLAGS"; then 20350 pkg_cv_XV_CFLAGS="$XV_CFLAGS" 20351 elif test -n "$PKG_CONFIG"; then 20352 if test -n "$PKG_CONFIG" && \ 20353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5 20354 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5 20355 ac_status=$? 20356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20357 test $ac_status = 0; }; then 20358 pkg_cv_XV_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null` 20359 test "x$?" != "x0" && pkg_failed=yes 20360else 20361 pkg_failed=yes 20362fi 20363 else 20364 pkg_failed=untried 20365fi 20366if test -n "$XV_LIBS"; then 20367 pkg_cv_XV_LIBS="$XV_LIBS" 20368 elif test -n "$PKG_CONFIG"; then 20369 if test -n "$PKG_CONFIG" && \ 20370 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xextproto videoproto\""; } >&5 20371 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xextproto videoproto") 2>&5 20372 ac_status=$? 20373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20374 test $ac_status = 0; }; then 20375 pkg_cv_XV_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xextproto videoproto" 2>/dev/null` 20376 test "x$?" != "x0" && pkg_failed=yes 20377else 20378 pkg_failed=yes 20379fi 20380 else 20381 pkg_failed=untried 20382fi 20383 20384 20385 20386if test $pkg_failed = yes; then 20387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20388printf "%s\n" "no" >&6; } 20389 20390if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20391 _pkg_short_errors_supported=yes 20392else 20393 _pkg_short_errors_supported=no 20394fi 20395 if test $_pkg_short_errors_supported = yes; then 20396 XV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xextproto videoproto" 2>&1` 20397 else 20398 XV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xextproto videoproto" 2>&1` 20399 fi 20400 # Put the nasty error message in config.log where it belongs 20401 echo "$XV_PKG_ERRORS" >&5 20402 20403 as_fn_error $? "Package requirements (x11 >= 1.6 xext xextproto videoproto) were not met: 20404 20405$XV_PKG_ERRORS 20406 20407Consider adjusting the PKG_CONFIG_PATH environment variable if you 20408installed software in a non-standard prefix. 20409 20410Alternatively, you may set the environment variables XV_CFLAGS 20411and XV_LIBS to avoid the need to call pkg-config. 20412See the pkg-config man page for more details." "$LINENO" 5 20413elif test $pkg_failed = untried; then 20414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20415printf "%s\n" "no" >&6; } 20416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20417printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20418as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20419is in your PATH or set the PKG_CONFIG environment variable to the full 20420path to pkg-config. 20421 20422Alternatively, you may set the environment variables XV_CFLAGS 20423and XV_LIBS to avoid the need to call pkg-config. 20424See the pkg-config man page for more details. 20425 20426To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20427See 'config.log' for more details" "$LINENO" 5; } 20428else 20429 XV_CFLAGS=$pkg_cv_XV_CFLAGS 20430 XV_LIBS=$pkg_cv_XV_LIBS 20431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20432printf "%s\n" "yes" >&6; } 20433 20434fi 20435 20436# Allow checking code with lint, sparse, etc. 20437 20438 20439 20440 20441 20442# Check whether --with-lint was given. 20443if test ${with_lint+y} 20444then : 20445 withval=$with_lint; use_lint=$withval 20446else case e in #( 20447 e) use_lint=no ;; 20448esac 20449fi 20450 20451 20452# Obtain platform specific info like program name and options 20453# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20454case $host_os in 20455 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20456 lint_name=splint 20457 lint_options="-badflag" 20458 ;; 20459 *freebsd* | *netbsd*) 20460 lint_name=lint 20461 lint_options="-u -b" 20462 ;; 20463 *solaris*) 20464 lint_name=lint 20465 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20466 ;; 20467esac 20468 20469# Test for the presence of the program (either guessed by the code or spelled out by the user) 20470if test "x$use_lint" = x"yes" ; then 20471 # Extract the first word of "$lint_name", so it can be a program name with args. 20472set dummy $lint_name; ac_word=$2 20473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20474printf %s "checking for $ac_word... " >&6; } 20475if test ${ac_cv_path_LINT+y} 20476then : 20477 printf %s "(cached) " >&6 20478else case e in #( 20479 e) case $LINT in 20480 [\\/]* | ?:[\\/]*) 20481 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20482 ;; 20483 *) 20484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20485for as_dir in $PATH 20486do 20487 IFS=$as_save_IFS 20488 case $as_dir in #((( 20489 '') as_dir=./ ;; 20490 */) ;; 20491 *) as_dir=$as_dir/ ;; 20492 esac 20493 for ac_exec_ext in '' $ac_executable_extensions; do 20494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20495 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20497 break 2 20498 fi 20499done 20500 done 20501IFS=$as_save_IFS 20502 20503 ;; 20504esac ;; 20505esac 20506fi 20507LINT=$ac_cv_path_LINT 20508if test -n "$LINT"; then 20509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20510printf "%s\n" "$LINT" >&6; } 20511else 20512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20513printf "%s\n" "no" >&6; } 20514fi 20515 20516 20517 if test "x$LINT" = "x"; then 20518 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20519 fi 20520elif test "x$use_lint" = x"no" ; then 20521 if test "x$LINT" != "x"; then 20522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20523printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20524 fi 20525else 20526 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20527fi 20528 20529# User supplied flags override default flags 20530if test "x$LINT_FLAGS" != "x"; then 20531 lint_options=$LINT_FLAGS 20532fi 20533 20534LINT_FLAGS=$lint_options 20535 20536 if test "x$LINT" != x; then 20537 LINT_TRUE= 20538 LINT_FALSE='#' 20539else 20540 LINT_TRUE='#' 20541 LINT_FALSE= 20542fi 20543 20544 20545 20546 20547 20548# Check whether --enable-lint-library was given. 20549if test ${enable_lint_library+y} 20550then : 20551 enableval=$enable_lint_library; make_lint_lib=$enableval 20552else case e in #( 20553 e) make_lint_lib=no ;; 20554esac 20555fi 20556 20557 20558if test "x$make_lint_lib" = x"yes" ; then 20559 LINTLIB=llib-lXv.ln 20560 if test "x$LINT" = "x"; then 20561 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20562 fi 20563elif test "x$make_lint_lib" != x"no" ; then 20564 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20565fi 20566 20567 20568 if test x$make_lint_lib != xno; then 20569 MAKE_LINT_LIB_TRUE= 20570 MAKE_LINT_LIB_FALSE='#' 20571else 20572 MAKE_LINT_LIB_TRUE='#' 20573 MAKE_LINT_LIB_FALSE= 20574fi 20575 20576 20577 20578 20579ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile man/Makefile xv.pc" 20580 20581cat >confcache <<\_ACEOF 20582# This file is a shell script that caches the results of configure 20583# tests run on this system so they can be shared between configure 20584# scripts and configure runs, see configure's option --config-cache. 20585# It is not useful on other systems. If it contains results you don't 20586# want to keep, you may remove or edit it. 20587# 20588# config.status only pays attention to the cache file if you give it 20589# the --recheck option to rerun configure. 20590# 20591# 'ac_cv_env_foo' variables (set or unset) will be overridden when 20592# loading this file, other *unset* 'ac_cv_foo' will be assigned the 20593# following values. 20594 20595_ACEOF 20596 20597# The following way of writing the cache mishandles newlines in values, 20598# but we know of no workaround that is simple, portable, and efficient. 20599# So, we kill variables containing newlines. 20600# Ultrix sh set writes to stderr and can't be redirected directly, 20601# and sets the high bit in the cache file unless we assign to the vars. 20602( 20603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20604 eval ac_val=\$$ac_var 20605 case $ac_val in #( 20606 *${as_nl}*) 20607 case $ac_var in #( 20608 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20609printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20610 esac 20611 case $ac_var in #( 20612 _ | IFS | as_nl) ;; #( 20613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20614 *) { eval $ac_var=; unset $ac_var;} ;; 20615 esac ;; 20616 esac 20617 done 20618 20619 (set) 2>&1 | 20620 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20621 *${as_nl}ac_space=\ *) 20622 # 'set' does not quote correctly, so add quotes: double-quote 20623 # substitution turns \\\\ into \\, and sed turns \\ into \. 20624 sed -n \ 20625 "s/'/'\\\\''/g; 20626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20627 ;; #( 20628 *) 20629 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20631 ;; 20632 esac | 20633 sort 20634) | 20635 sed ' 20636 /^ac_cv_env_/b end 20637 t clear 20638 :clear 20639 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20640 t end 20641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20642 :end' >>confcache 20643if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20644 if test -w "$cache_file"; then 20645 if test "x$cache_file" != "x/dev/null"; then 20646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20647printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20648 if test ! -f "$cache_file" || test -h "$cache_file"; then 20649 cat confcache >"$cache_file" 20650 else 20651 case $cache_file in #( 20652 */* | ?:*) 20653 mv -f confcache "$cache_file"$$ && 20654 mv -f "$cache_file"$$ "$cache_file" ;; #( 20655 *) 20656 mv -f confcache "$cache_file" ;; 20657 esac 20658 fi 20659 fi 20660 else 20661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20662printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20663 fi 20664fi 20665rm -f confcache 20666 20667test "x$prefix" = xNONE && prefix=$ac_default_prefix 20668# Let make expand exec_prefix. 20669test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20670 20671DEFS=-DHAVE_CONFIG_H 20672 20673ac_libobjs= 20674ac_ltlibobjs= 20675U= 20676for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20677 # 1. Remove the extension, and $U if already installed. 20678 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20679 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20680 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20681 # will be set to the directory where LIBOBJS objects are built. 20682 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20683 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20684done 20685LIBOBJS=$ac_libobjs 20686 20687LTLIBOBJS=$ac_ltlibobjs 20688 20689 20690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20691printf %s "checking that generated files are newer than configure... " >&6; } 20692 if test -n "$am_sleep_pid"; then 20693 # Hide warnings about reused PIDs. 20694 wait $am_sleep_pid 2>/dev/null 20695 fi 20696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20697printf "%s\n" "done" >&6; } 20698case $enable_silent_rules in # ((( 20699 yes) AM_DEFAULT_VERBOSITY=0;; 20700 no) AM_DEFAULT_VERBOSITY=1;; 20701esac 20702if test $am_cv_make_support_nested_variables = yes; then 20703 AM_V='$(V)' 20704 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20705else 20706 AM_V=$AM_DEFAULT_VERBOSITY 20707 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20708fi 20709 20710 if test -n "$EXEEXT"; then 20711 am__EXEEXT_TRUE= 20712 am__EXEEXT_FALSE='#' 20713else 20714 am__EXEEXT_TRUE='#' 20715 am__EXEEXT_FALSE= 20716fi 20717 20718if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20719 as_fn_error $? "conditional \"AMDEP\" was never defined. 20720Usually this means the macro was only invoked conditionally." "$LINENO" 5 20721fi 20722if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20723 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20724Usually this means the macro was only invoked conditionally." "$LINENO" 5 20725fi 20726if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20727 as_fn_error $? "conditional \"LINT\" was never defined. 20728Usually this means the macro was only invoked conditionally." "$LINENO" 5 20729fi 20730if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 20731 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 20732Usually this means the macro was only invoked conditionally." "$LINENO" 5 20733fi 20734 20735: "${CONFIG_STATUS=./config.status}" 20736ac_write_fail=0 20737ac_clean_files_save=$ac_clean_files 20738ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20740printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20741as_write_fail=0 20742cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20743#! $SHELL 20744# Generated by $as_me. 20745# Run this file to recreate the current configuration. 20746# Compiler output produced by configure, useful for debugging 20747# configure, is in config.log if it exists. 20748 20749debug=false 20750ac_cs_recheck=false 20751ac_cs_silent=false 20752 20753SHELL=\${CONFIG_SHELL-$SHELL} 20754export SHELL 20755_ASEOF 20756cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20757## -------------------- ## 20758## M4sh Initialization. ## 20759## -------------------- ## 20760 20761# Be more Bourne compatible 20762DUALCASE=1; export DUALCASE # for MKS sh 20763if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20764then : 20765 emulate sh 20766 NULLCMD=: 20767 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20768 # is contrary to our usage. Disable this feature. 20769 alias -g '${1+"$@"}'='"$@"' 20770 setopt NO_GLOB_SUBST 20771else case e in #( 20772 e) case `(set -o) 2>/dev/null` in #( 20773 *posix*) : 20774 set -o posix ;; #( 20775 *) : 20776 ;; 20777esac ;; 20778esac 20779fi 20780 20781 20782 20783# Reset variables that may have inherited troublesome values from 20784# the environment. 20785 20786# IFS needs to be set, to space, tab, and newline, in precisely that order. 20787# (If _AS_PATH_WALK were called with IFS unset, it would have the 20788# side effect of setting IFS to empty, thus disabling word splitting.) 20789# Quoting is to prevent editors from complaining about space-tab. 20790as_nl=' 20791' 20792export as_nl 20793IFS=" "" $as_nl" 20794 20795PS1='$ ' 20796PS2='> ' 20797PS4='+ ' 20798 20799# Ensure predictable behavior from utilities with locale-dependent output. 20800LC_ALL=C 20801export LC_ALL 20802LANGUAGE=C 20803export LANGUAGE 20804 20805# We cannot yet rely on "unset" to work, but we need these variables 20806# to be unset--not just set to an empty or harmless value--now, to 20807# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20808# also avoids known problems related to "unset" and subshell syntax 20809# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20810for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20811do eval test \${$as_var+y} \ 20812 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20813done 20814 20815# Ensure that fds 0, 1, and 2 are open. 20816if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20817if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20818if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20819 20820# The user is always right. 20821if ${PATH_SEPARATOR+false} :; then 20822 PATH_SEPARATOR=: 20823 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20824 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20825 PATH_SEPARATOR=';' 20826 } 20827fi 20828 20829 20830# Find who we are. Look in the path if we contain no directory separator. 20831as_myself= 20832case $0 in #(( 20833 *[\\/]* ) as_myself=$0 ;; 20834 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20835for as_dir in $PATH 20836do 20837 IFS=$as_save_IFS 20838 case $as_dir in #((( 20839 '') as_dir=./ ;; 20840 */) ;; 20841 *) as_dir=$as_dir/ ;; 20842 esac 20843 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20844 done 20845IFS=$as_save_IFS 20846 20847 ;; 20848esac 20849# We did not find ourselves, most probably we were run as 'sh COMMAND' 20850# in which case we are not to be found in the path. 20851if test "x$as_myself" = x; then 20852 as_myself=$0 20853fi 20854if test ! -f "$as_myself"; then 20855 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20856 exit 1 20857fi 20858 20859 20860 20861# as_fn_error STATUS ERROR [LINENO LOG_FD] 20862# ---------------------------------------- 20863# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20864# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20865# script with STATUS, using 1 if that was 0. 20866as_fn_error () 20867{ 20868 as_status=$1; test $as_status -eq 0 && as_status=1 20869 if test "$4"; then 20870 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20872 fi 20873 printf "%s\n" "$as_me: error: $2" >&2 20874 as_fn_exit $as_status 20875} # as_fn_error 20876 20877 20878# as_fn_set_status STATUS 20879# ----------------------- 20880# Set $? to STATUS, without forking. 20881as_fn_set_status () 20882{ 20883 return $1 20884} # as_fn_set_status 20885 20886# as_fn_exit STATUS 20887# ----------------- 20888# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20889as_fn_exit () 20890{ 20891 set +e 20892 as_fn_set_status $1 20893 exit $1 20894} # as_fn_exit 20895 20896# as_fn_unset VAR 20897# --------------- 20898# Portably unset VAR. 20899as_fn_unset () 20900{ 20901 { eval $1=; unset $1;} 20902} 20903as_unset=as_fn_unset 20904 20905# as_fn_append VAR VALUE 20906# ---------------------- 20907# Append the text in VALUE to the end of the definition contained in VAR. Take 20908# advantage of any shell optimizations that allow amortized linear growth over 20909# repeated appends, instead of the typical quadratic growth present in naive 20910# implementations. 20911if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20912then : 20913 eval 'as_fn_append () 20914 { 20915 eval $1+=\$2 20916 }' 20917else case e in #( 20918 e) as_fn_append () 20919 { 20920 eval $1=\$$1\$2 20921 } ;; 20922esac 20923fi # as_fn_append 20924 20925# as_fn_arith ARG... 20926# ------------------ 20927# Perform arithmetic evaluation on the ARGs, and store the result in the 20928# global $as_val. Take advantage of shells that can avoid forks. The arguments 20929# must be portable across $(()) and expr. 20930if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20931then : 20932 eval 'as_fn_arith () 20933 { 20934 as_val=$(( $* )) 20935 }' 20936else case e in #( 20937 e) as_fn_arith () 20938 { 20939 as_val=`expr "$@" || test $? -eq 1` 20940 } ;; 20941esac 20942fi # as_fn_arith 20943 20944 20945if expr a : '\(a\)' >/dev/null 2>&1 && 20946 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20947 as_expr=expr 20948else 20949 as_expr=false 20950fi 20951 20952if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20953 as_basename=basename 20954else 20955 as_basename=false 20956fi 20957 20958if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20959 as_dirname=dirname 20960else 20961 as_dirname=false 20962fi 20963 20964as_me=`$as_basename -- "$0" || 20965$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20966 X"$0" : 'X\(//\)$' \| \ 20967 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20968printf "%s\n" X/"$0" | 20969 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20970 s//\1/ 20971 q 20972 } 20973 /^X\/\(\/\/\)$/{ 20974 s//\1/ 20975 q 20976 } 20977 /^X\/\(\/\).*/{ 20978 s//\1/ 20979 q 20980 } 20981 s/.*/./; q'` 20982 20983# Avoid depending upon Character Ranges. 20984as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20985as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20986as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20987as_cr_digits='0123456789' 20988as_cr_alnum=$as_cr_Letters$as_cr_digits 20989 20990 20991# Determine whether it's possible to make 'echo' print without a newline. 20992# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20993# for compatibility with existing Makefiles. 20994ECHO_C= ECHO_N= ECHO_T= 20995case `echo -n x` in #((((( 20996-n*) 20997 case `echo 'xy\c'` in 20998 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20999 xy) ECHO_C='\c';; 21000 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21001 ECHO_T=' ';; 21002 esac;; 21003*) 21004 ECHO_N='-n';; 21005esac 21006 21007# For backward compatibility with old third-party macros, we provide 21008# the shell variables $as_echo and $as_echo_n. New code should use 21009# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21010as_echo='printf %s\n' 21011as_echo_n='printf %s' 21012 21013rm -f conf$$ conf$$.exe conf$$.file 21014if test -d conf$$.dir; then 21015 rm -f conf$$.dir/conf$$.file 21016else 21017 rm -f conf$$.dir 21018 mkdir conf$$.dir 2>/dev/null 21019fi 21020if (echo >conf$$.file) 2>/dev/null; then 21021 if ln -s conf$$.file conf$$ 2>/dev/null; then 21022 as_ln_s='ln -s' 21023 # ... but there are two gotchas: 21024 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 21025 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 21026 # In both cases, we have to default to 'cp -pR'. 21027 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21028 as_ln_s='cp -pR' 21029 elif ln conf$$.file conf$$ 2>/dev/null; then 21030 as_ln_s=ln 21031 else 21032 as_ln_s='cp -pR' 21033 fi 21034else 21035 as_ln_s='cp -pR' 21036fi 21037rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21038rmdir conf$$.dir 2>/dev/null 21039 21040 21041# as_fn_mkdir_p 21042# ------------- 21043# Create "$as_dir" as a directory, including parents if necessary. 21044as_fn_mkdir_p () 21045{ 21046 21047 case $as_dir in #( 21048 -*) as_dir=./$as_dir;; 21049 esac 21050 test -d "$as_dir" || eval $as_mkdir_p || { 21051 as_dirs= 21052 while :; do 21053 case $as_dir in #( 21054 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21055 *) as_qdir=$as_dir;; 21056 esac 21057 as_dirs="'$as_qdir' $as_dirs" 21058 as_dir=`$as_dirname -- "$as_dir" || 21059$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21060 X"$as_dir" : 'X\(//\)[^/]' \| \ 21061 X"$as_dir" : 'X\(//\)$' \| \ 21062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21063printf "%s\n" X"$as_dir" | 21064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21065 s//\1/ 21066 q 21067 } 21068 /^X\(\/\/\)[^/].*/{ 21069 s//\1/ 21070 q 21071 } 21072 /^X\(\/\/\)$/{ 21073 s//\1/ 21074 q 21075 } 21076 /^X\(\/\).*/{ 21077 s//\1/ 21078 q 21079 } 21080 s/.*/./; q'` 21081 test -d "$as_dir" && break 21082 done 21083 test -z "$as_dirs" || eval "mkdir $as_dirs" 21084 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21085 21086 21087} # as_fn_mkdir_p 21088if mkdir -p . 2>/dev/null; then 21089 as_mkdir_p='mkdir -p "$as_dir"' 21090else 21091 test -d ./-p && rmdir ./-p 21092 as_mkdir_p=false 21093fi 21094 21095 21096# as_fn_executable_p FILE 21097# ----------------------- 21098# Test if FILE is an executable regular file. 21099as_fn_executable_p () 21100{ 21101 test -f "$1" && test -x "$1" 21102} # as_fn_executable_p 21103as_test_x='test -x' 21104as_executable_p=as_fn_executable_p 21105 21106# Sed expression to map a string onto a valid CPP name. 21107as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21108as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21109 21110# Sed expression to map a string onto a valid variable name. 21111as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21112as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21113 21114 21115exec 6>&1 21116## ----------------------------------- ## 21117## Main body of $CONFIG_STATUS script. ## 21118## ----------------------------------- ## 21119_ASEOF 21120test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21121 21122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21123# Save the log message, to keep $0 and so on meaningful, and to 21124# report actual input values of CONFIG_FILES etc. instead of their 21125# values after options handling. 21126ac_log=" 21127This file was extended by libXv $as_me 1.0.13, which was 21128generated by GNU Autoconf 2.72. Invocation command line was 21129 21130 CONFIG_FILES = $CONFIG_FILES 21131 CONFIG_HEADERS = $CONFIG_HEADERS 21132 CONFIG_LINKS = $CONFIG_LINKS 21133 CONFIG_COMMANDS = $CONFIG_COMMANDS 21134 $ $0 $@ 21135 21136on `(hostname || uname -n) 2>/dev/null | sed 1q` 21137" 21138 21139_ACEOF 21140 21141case $ac_config_files in *" 21142"*) set x $ac_config_files; shift; ac_config_files=$*;; 21143esac 21144 21145case $ac_config_headers in *" 21146"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21147esac 21148 21149 21150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21151# Files that config.status was made for. 21152config_files="$ac_config_files" 21153config_headers="$ac_config_headers" 21154config_commands="$ac_config_commands" 21155 21156_ACEOF 21157 21158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21159ac_cs_usage="\ 21160'$as_me' instantiates files and other configuration actions 21161from templates according to the current configuration. Unless the files 21162and actions are specified as TAGs, all are instantiated by default. 21163 21164Usage: $0 [OPTION]... [TAG]... 21165 21166 -h, --help print this help, then exit 21167 -V, --version print version number and configuration settings, then exit 21168 --config print configuration, then exit 21169 -q, --quiet, --silent 21170 do not print progress messages 21171 -d, --debug don't remove temporary files 21172 --recheck update $as_me by reconfiguring in the same conditions 21173 --file=FILE[:TEMPLATE] 21174 instantiate the configuration file FILE 21175 --header=FILE[:TEMPLATE] 21176 instantiate the configuration header FILE 21177 21178Configuration files: 21179$config_files 21180 21181Configuration headers: 21182$config_headers 21183 21184Configuration commands: 21185$config_commands 21186 21187Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxv/-/issues>." 21188 21189_ACEOF 21190ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21191ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21193ac_cs_config='$ac_cs_config_escaped' 21194ac_cs_version="\\ 21195libXv config.status 1.0.13 21196configured by $0, generated by GNU Autoconf 2.72, 21197 with options \\"\$ac_cs_config\\" 21198 21199Copyright (C) 2023 Free Software Foundation, Inc. 21200This config.status script is free software; the Free Software Foundation 21201gives unlimited permission to copy, distribute and modify it." 21202 21203ac_pwd='$ac_pwd' 21204srcdir='$srcdir' 21205INSTALL='$INSTALL' 21206MKDIR_P='$MKDIR_P' 21207AWK='$AWK' 21208test -n "\$AWK" || AWK=awk 21209_ACEOF 21210 21211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21212# The default lists apply if the user does not specify any file. 21213ac_need_defaults=: 21214while test $# != 0 21215do 21216 case $1 in 21217 --*=?*) 21218 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21220 ac_shift=: 21221 ;; 21222 --*=) 21223 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21224 ac_optarg= 21225 ac_shift=: 21226 ;; 21227 *) 21228 ac_option=$1 21229 ac_optarg=$2 21230 ac_shift=shift 21231 ;; 21232 esac 21233 21234 case $ac_option in 21235 # Handling of the options. 21236 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21237 ac_cs_recheck=: ;; 21238 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21239 printf "%s\n" "$ac_cs_version"; exit ;; 21240 --config | --confi | --conf | --con | --co | --c ) 21241 printf "%s\n" "$ac_cs_config"; exit ;; 21242 --debug | --debu | --deb | --de | --d | -d ) 21243 debug=: ;; 21244 --file | --fil | --fi | --f ) 21245 $ac_shift 21246 case $ac_optarg in 21247 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21248 '') as_fn_error $? "missing file argument" ;; 21249 esac 21250 as_fn_append CONFIG_FILES " '$ac_optarg'" 21251 ac_need_defaults=false;; 21252 --header | --heade | --head | --hea ) 21253 $ac_shift 21254 case $ac_optarg in 21255 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21256 esac 21257 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21258 ac_need_defaults=false;; 21259 --he | --h) 21260 # Conflict between --help and --header 21261 as_fn_error $? "ambiguous option: '$1' 21262Try '$0 --help' for more information.";; 21263 --help | --hel | -h ) 21264 printf "%s\n" "$ac_cs_usage"; exit ;; 21265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21266 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21267 ac_cs_silent=: ;; 21268 21269 # This is an error. 21270 -*) as_fn_error $? "unrecognized option: '$1' 21271Try '$0 --help' for more information." ;; 21272 21273 *) as_fn_append ac_config_targets " $1" 21274 ac_need_defaults=false ;; 21275 21276 esac 21277 shift 21278done 21279 21280ac_configure_extra_args= 21281 21282if $ac_cs_silent; then 21283 exec 6>/dev/null 21284 ac_configure_extra_args="$ac_configure_extra_args --silent" 21285fi 21286 21287_ACEOF 21288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21289if \$ac_cs_recheck; then 21290 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21291 shift 21292 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21293 CONFIG_SHELL='$SHELL' 21294 export CONFIG_SHELL 21295 exec "\$@" 21296fi 21297 21298_ACEOF 21299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21300exec 5>>config.log 21301{ 21302 echo 21303 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21304## Running $as_me. ## 21305_ASBOX 21306 printf "%s\n" "$ac_log" 21307} >&5 21308 21309_ACEOF 21310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21311# 21312# INIT-COMMANDS 21313# 21314AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21315 21316 21317# The HP-UX ksh and POSIX shell print the target directory to stdout 21318# if CDPATH is set. 21319(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21320 21321sed_quote_subst='$sed_quote_subst' 21322double_quote_subst='$double_quote_subst' 21323delay_variable_subst='$delay_variable_subst' 21324macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21325macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21326enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21327enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21328pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21329enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21330shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21331SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21332ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21333PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21334host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21335host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21336host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21337build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21338build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21339build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21340SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21341Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21342GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21343EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21344FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21345LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21346NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21347LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21348max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21349ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21350exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21351lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21352lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21353lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21354lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21355lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21356reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21357reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21358FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21359OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21360deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21361file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21362file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21363want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21364DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21365sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21366AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21367lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21368AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21369archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21370STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21371RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21372old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21373old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21374old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21375lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21376CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21377CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21378compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21379GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21380lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21381lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21382lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21383lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21384lt_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"`' 21385lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21386nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21387lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21388lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21389objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21390MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21391lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21392lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21393lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21394lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21395lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21396need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21397MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21398DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21399NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21400LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21401OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21402OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21403libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21404shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21405extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21406archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21407enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21408export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21409whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21410compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21411old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21412old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21413archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21414archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21415module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21416module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21417with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21418allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21419no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21420hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21421hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21422hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21423hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21424hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21425hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21426hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21427inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21428link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21429always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21430export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21431exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21432include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21433prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21434postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21435file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21436variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21437need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21438need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21439version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21440runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21441shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21442shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21443libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21444library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21445soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21446install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21447postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21448postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21449finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21450finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21451hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21452sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21453configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21454configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21455hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21456enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21457enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21458enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21459old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21460striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21461 21462LTCC='$LTCC' 21463LTCFLAGS='$LTCFLAGS' 21464compiler='$compiler_DEFAULT' 21465 21466# A function that is used when there is no print builtin or printf. 21467func_fallback_echo () 21468{ 21469 eval 'cat <<_LTECHO_EOF 21470\$1 21471_LTECHO_EOF' 21472} 21473 21474# Quote evaled strings. 21475for var in SHELL \ 21476ECHO \ 21477PATH_SEPARATOR \ 21478SED \ 21479GREP \ 21480EGREP \ 21481FGREP \ 21482LD \ 21483NM \ 21484LN_S \ 21485lt_SP2NL \ 21486lt_NL2SP \ 21487reload_flag \ 21488FILECMD \ 21489OBJDUMP \ 21490deplibs_check_method \ 21491file_magic_cmd \ 21492file_magic_glob \ 21493want_nocaseglob \ 21494DLLTOOL \ 21495sharedlib_from_linklib_cmd \ 21496AR \ 21497archiver_list_spec \ 21498STRIP \ 21499RANLIB \ 21500CC \ 21501CFLAGS \ 21502compiler \ 21503lt_cv_sys_global_symbol_pipe \ 21504lt_cv_sys_global_symbol_to_cdecl \ 21505lt_cv_sys_global_symbol_to_import \ 21506lt_cv_sys_global_symbol_to_c_name_address \ 21507lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21508lt_cv_nm_interface \ 21509nm_file_list_spec \ 21510lt_cv_truncate_bin \ 21511lt_prog_compiler_no_builtin_flag \ 21512lt_prog_compiler_pic \ 21513lt_prog_compiler_wl \ 21514lt_prog_compiler_static \ 21515lt_cv_prog_compiler_c_o \ 21516need_locks \ 21517MANIFEST_TOOL \ 21518DSYMUTIL \ 21519NMEDIT \ 21520LIPO \ 21521OTOOL \ 21522OTOOL64 \ 21523shrext_cmds \ 21524export_dynamic_flag_spec \ 21525whole_archive_flag_spec \ 21526compiler_needs_object \ 21527with_gnu_ld \ 21528allow_undefined_flag \ 21529no_undefined_flag \ 21530hardcode_libdir_flag_spec \ 21531hardcode_libdir_separator \ 21532exclude_expsyms \ 21533include_expsyms \ 21534file_list_spec \ 21535variables_saved_for_relink \ 21536libname_spec \ 21537library_names_spec \ 21538soname_spec \ 21539install_override_mode \ 21540finish_eval \ 21541old_striplib \ 21542striplib; do 21543 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21544 *[\\\\\\\`\\"\\\$]*) 21545 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21546 ;; 21547 *) 21548 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21549 ;; 21550 esac 21551done 21552 21553# Double-quote double-evaled strings. 21554for var in reload_cmds \ 21555old_postinstall_cmds \ 21556old_postuninstall_cmds \ 21557old_archive_cmds \ 21558extract_expsyms_cmds \ 21559old_archive_from_new_cmds \ 21560old_archive_from_expsyms_cmds \ 21561archive_cmds \ 21562archive_expsym_cmds \ 21563module_cmds \ 21564module_expsym_cmds \ 21565export_symbols_cmds \ 21566prelink_cmds \ 21567postlink_cmds \ 21568postinstall_cmds \ 21569postuninstall_cmds \ 21570finish_cmds \ 21571sys_lib_search_path_spec \ 21572configure_time_dlsearch_path \ 21573configure_time_lt_sys_library_path; do 21574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21575 *[\\\\\\\`\\"\\\$]*) 21576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21577 ;; 21578 *) 21579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21580 ;; 21581 esac 21582done 21583 21584ac_aux_dir='$ac_aux_dir' 21585 21586# See if we are running on zsh, and set the options that allow our 21587# commands through without removal of \ escapes INIT. 21588if test -n "\${ZSH_VERSION+set}"; then 21589 setopt NO_GLOB_SUBST 21590fi 21591 21592 21593 PACKAGE='$PACKAGE' 21594 VERSION='$VERSION' 21595 RM='$RM' 21596 ofile='$ofile' 21597 21598 21599 21600 21601_ACEOF 21602 21603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21604 21605# Handling of arguments. 21606for ac_config_target in $ac_config_targets 21607do 21608 case $ac_config_target in 21609 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21610 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21611 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21613 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21614 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;; 21615 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;; 21616 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21617 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21618 "xv.pc") CONFIG_FILES="$CONFIG_FILES xv.pc" ;; 21619 21620 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21621 esac 21622done 21623 21624 21625# If the user did not use the arguments to specify the items to instantiate, 21626# then the envvar interface is used. Set only those that are not. 21627# We use the long form for the default assignment because of an extremely 21628# bizarre bug on SunOS 4.1.3. 21629if $ac_need_defaults; then 21630 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21631 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21632 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21633fi 21634 21635# Have a temporary directory for convenience. Make it in the build tree 21636# simply because there is no reason against having it here, and in addition, 21637# creating and moving files from /tmp can sometimes cause problems. 21638# Hook for its removal unless debugging. 21639# Note that there is a small window in which the directory will not be cleaned: 21640# after its creation but before its name has been assigned to '$tmp'. 21641$debug || 21642{ 21643 tmp= ac_tmp= 21644 trap 'exit_status=$? 21645 : "${ac_tmp:=$tmp}" 21646 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21647' 0 21648 trap 'as_fn_exit 1' 1 2 13 15 21649} 21650# Create a (secure) tmp directory for tmp files. 21651 21652{ 21653 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21654 test -d "$tmp" 21655} || 21656{ 21657 tmp=./conf$$-$RANDOM 21658 (umask 077 && mkdir "$tmp") 21659} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21660ac_tmp=$tmp 21661 21662# Set up the scripts for CONFIG_FILES section. 21663# No need to generate them if there are no CONFIG_FILES. 21664# This happens for instance with './config.status config.h'. 21665if test -n "$CONFIG_FILES"; then 21666 21667 21668ac_cr=`echo X | tr X '\015'` 21669# On cygwin, bash can eat \r inside `` if the user requested igncr. 21670# But we know of no other shell where ac_cr would be empty at this 21671# point, so we can use a bashism as a fallback. 21672if test "x$ac_cr" = x; then 21673 eval ac_cr=\$\'\\r\' 21674fi 21675ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21676if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21677 ac_cs_awk_cr='\\r' 21678else 21679 ac_cs_awk_cr=$ac_cr 21680fi 21681 21682echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21683_ACEOF 21684 21685 21686{ 21687 echo "cat >conf$$subs.awk <<_ACEOF" && 21688 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21689 echo "_ACEOF" 21690} >conf$$subs.sh || 21691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21692ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21693ac_delim='%!_!# ' 21694for ac_last_try in false false false false false :; do 21695 . ./conf$$subs.sh || 21696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21697 21698 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21699 if test $ac_delim_n = $ac_delim_num; then 21700 break 21701 elif $ac_last_try; then 21702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21703 else 21704 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21705 fi 21706done 21707rm -f conf$$subs.sh 21708 21709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21710cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21711_ACEOF 21712sed -n ' 21713h 21714s/^/S["/; s/!.*/"]=/ 21715p 21716g 21717s/^[^!]*!// 21718:repl 21719t repl 21720s/'"$ac_delim"'$// 21721t delim 21722:nl 21723h 21724s/\(.\{148\}\)..*/\1/ 21725t more1 21726s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21727p 21728n 21729b repl 21730:more1 21731s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21732p 21733g 21734s/.\{148\}// 21735t nl 21736:delim 21737h 21738s/\(.\{148\}\)..*/\1/ 21739t more2 21740s/["\\]/\\&/g; s/^/"/; s/$/"/ 21741p 21742b 21743:more2 21744s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21745p 21746g 21747s/.\{148\}// 21748t delim 21749' <conf$$subs.awk | sed ' 21750/^[^""]/{ 21751 N 21752 s/\n// 21753} 21754' >>$CONFIG_STATUS || ac_write_fail=1 21755rm -f conf$$subs.awk 21756cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21757_ACAWK 21758cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21759 for (key in S) S_is_set[key] = 1 21760 FS = "" 21761 21762} 21763{ 21764 line = $ 0 21765 nfields = split(line, field, "@") 21766 substed = 0 21767 len = length(field[1]) 21768 for (i = 2; i < nfields; i++) { 21769 key = field[i] 21770 keylen = length(key) 21771 if (S_is_set[key]) { 21772 value = S[key] 21773 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21774 len += length(value) + length(field[++i]) 21775 substed = 1 21776 } else 21777 len += 1 + keylen 21778 } 21779 21780 print line 21781} 21782 21783_ACAWK 21784_ACEOF 21785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21786if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21787 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21788else 21789 cat 21790fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21791 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21792_ACEOF 21793 21794# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21795# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21796# trailing colons and then remove the whole line if VPATH becomes empty 21797# (actually we leave an empty line to preserve line numbers). 21798if test "x$srcdir" = x.; then 21799 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21800h 21801s/// 21802s/^/:/ 21803s/[ ]*$/:/ 21804s/:\$(srcdir):/:/g 21805s/:\${srcdir}:/:/g 21806s/:@srcdir@:/:/g 21807s/^:*// 21808s/:*$// 21809x 21810s/\(=[ ]*\).*/\1/ 21811G 21812s/\n// 21813s/^[^=]*=[ ]*$// 21814}' 21815fi 21816 21817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21818fi # test -n "$CONFIG_FILES" 21819 21820# Set up the scripts for CONFIG_HEADERS section. 21821# No need to generate them if there are no CONFIG_HEADERS. 21822# This happens for instance with './config.status Makefile'. 21823if test -n "$CONFIG_HEADERS"; then 21824cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21825BEGIN { 21826_ACEOF 21827 21828# Transform confdefs.h into an awk script 'defines.awk', embedded as 21829# here-document in config.status, that substitutes the proper values into 21830# config.h.in to produce config.h. 21831 21832# Create a delimiter string that does not exist in confdefs.h, to ease 21833# handling of long lines. 21834ac_delim='%!_!# ' 21835for ac_last_try in false false :; do 21836 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21837 if test -z "$ac_tt"; then 21838 break 21839 elif $ac_last_try; then 21840 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21841 else 21842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21843 fi 21844done 21845 21846# For the awk script, D is an array of macro values keyed by name, 21847# likewise P contains macro parameters if any. Preserve backslash 21848# newline sequences. 21849 21850ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21851sed -n ' 21852s/.\{148\}/&'"$ac_delim"'/g 21853t rset 21854:rset 21855s/^[ ]*#[ ]*define[ ][ ]*/ / 21856t def 21857d 21858:def 21859s/\\$// 21860t bsnl 21861s/["\\]/\\&/g 21862s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21863D["\1"]=" \3"/p 21864s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21865d 21866:bsnl 21867s/["\\]/\\&/g 21868s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21869D["\1"]=" \3\\\\\\n"\\/p 21870t cont 21871s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21872t cont 21873d 21874:cont 21875n 21876s/.\{148\}/&'"$ac_delim"'/g 21877t clear 21878:clear 21879s/\\$// 21880t bsnlc 21881s/["\\]/\\&/g; s/^/"/; s/$/"/p 21882d 21883:bsnlc 21884s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21885b cont 21886' <confdefs.h | sed ' 21887s/'"$ac_delim"'/"\\\ 21888"/g' >>$CONFIG_STATUS || ac_write_fail=1 21889 21890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21891 for (key in D) D_is_set[key] = 1 21892 FS = "" 21893} 21894/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21895 line = \$ 0 21896 split(line, arg, " ") 21897 if (arg[1] == "#") { 21898 defundef = arg[2] 21899 mac1 = arg[3] 21900 } else { 21901 defundef = substr(arg[1], 2) 21902 mac1 = arg[2] 21903 } 21904 split(mac1, mac2, "(") #) 21905 macro = mac2[1] 21906 prefix = substr(line, 1, index(line, defundef) - 1) 21907 if (D_is_set[macro]) { 21908 # Preserve the white space surrounding the "#". 21909 print prefix "define", macro P[macro] D[macro] 21910 next 21911 } else { 21912 # Replace #undef with comments. This is necessary, for example, 21913 # in the case of _POSIX_SOURCE, which is predefined and required 21914 # on some systems where configure will not decide to define it. 21915 if (defundef == "undef") { 21916 print "/*", prefix defundef, macro, "*/" 21917 next 21918 } 21919 } 21920} 21921{ print } 21922_ACAWK 21923_ACEOF 21924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21925 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21926fi # test -n "$CONFIG_HEADERS" 21927 21928 21929eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21930shift 21931for ac_tag 21932do 21933 case $ac_tag in 21934 :[FHLC]) ac_mode=$ac_tag; continue;; 21935 esac 21936 case $ac_mode$ac_tag in 21937 :[FHL]*:*);; 21938 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21939 :[FH]-) ac_tag=-:-;; 21940 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21941 esac 21942 ac_save_IFS=$IFS 21943 IFS=: 21944 set x $ac_tag 21945 IFS=$ac_save_IFS 21946 shift 21947 ac_file=$1 21948 shift 21949 21950 case $ac_mode in 21951 :L) ac_source=$1;; 21952 :[FH]) 21953 ac_file_inputs= 21954 for ac_f 21955 do 21956 case $ac_f in 21957 -) ac_f="$ac_tmp/stdin";; 21958 *) # Look for the file first in the build tree, then in the source tree 21959 # (if the path is not absolute). The absolute path cannot be DOS-style, 21960 # because $ac_f cannot contain ':'. 21961 test -f "$ac_f" || 21962 case $ac_f in 21963 [\\/$]*) false;; 21964 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21965 esac || 21966 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21967 esac 21968 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21969 as_fn_append ac_file_inputs " '$ac_f'" 21970 done 21971 21972 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21973 # use $as_me), people would be surprised to read: 21974 # /* config.h. Generated by config.status. */ 21975 configure_input='Generated from '` 21976 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21977 `' by configure.' 21978 if test x"$ac_file" != x-; then 21979 configure_input="$ac_file. $configure_input" 21980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21981printf "%s\n" "$as_me: creating $ac_file" >&6;} 21982 fi 21983 # Neutralize special characters interpreted by sed in replacement strings. 21984 case $configure_input in #( 21985 *\&* | *\|* | *\\* ) 21986 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21987 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21988 *) ac_sed_conf_input=$configure_input;; 21989 esac 21990 21991 case $ac_tag in 21992 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21993 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21994 esac 21995 ;; 21996 esac 21997 21998 ac_dir=`$as_dirname -- "$ac_file" || 21999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22000 X"$ac_file" : 'X\(//\)[^/]' \| \ 22001 X"$ac_file" : 'X\(//\)$' \| \ 22002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22003printf "%s\n" X"$ac_file" | 22004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22005 s//\1/ 22006 q 22007 } 22008 /^X\(\/\/\)[^/].*/{ 22009 s//\1/ 22010 q 22011 } 22012 /^X\(\/\/\)$/{ 22013 s//\1/ 22014 q 22015 } 22016 /^X\(\/\).*/{ 22017 s//\1/ 22018 q 22019 } 22020 s/.*/./; q'` 22021 as_dir="$ac_dir"; as_fn_mkdir_p 22022 ac_builddir=. 22023 22024case "$ac_dir" in 22025.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22026*) 22027 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22028 # A ".." for each directory in $ac_dir_suffix. 22029 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22030 case $ac_top_builddir_sub in 22031 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22032 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22033 esac ;; 22034esac 22035ac_abs_top_builddir=$ac_pwd 22036ac_abs_builddir=$ac_pwd$ac_dir_suffix 22037# for backward compatibility: 22038ac_top_builddir=$ac_top_build_prefix 22039 22040case $srcdir in 22041 .) # We are building in place. 22042 ac_srcdir=. 22043 ac_top_srcdir=$ac_top_builddir_sub 22044 ac_abs_top_srcdir=$ac_pwd ;; 22045 [\\/]* | ?:[\\/]* ) # Absolute name. 22046 ac_srcdir=$srcdir$ac_dir_suffix; 22047 ac_top_srcdir=$srcdir 22048 ac_abs_top_srcdir=$srcdir ;; 22049 *) # Relative name. 22050 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22051 ac_top_srcdir=$ac_top_build_prefix$srcdir 22052 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22053esac 22054ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22055 22056 22057 case $ac_mode in 22058 :F) 22059 # 22060 # CONFIG_FILE 22061 # 22062 22063 case $INSTALL in 22064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22065 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22066 esac 22067 ac_MKDIR_P=$MKDIR_P 22068 case $MKDIR_P in 22069 [\\/$]* | ?:[\\/]* ) ;; 22070 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22071 esac 22072_ACEOF 22073 22074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22075# If the template does not know about datarootdir, expand it. 22076# FIXME: This hack should be removed a few years after 2.60. 22077ac_datarootdir_hack=; ac_datarootdir_seen= 22078ac_sed_dataroot=' 22079/datarootdir/ { 22080 p 22081 q 22082} 22083/@datadir@/p 22084/@docdir@/p 22085/@infodir@/p 22086/@localedir@/p 22087/@mandir@/p' 22088case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22089*datarootdir*) ac_datarootdir_seen=yes;; 22090*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22092printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22093_ACEOF 22094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22095 ac_datarootdir_hack=' 22096 s&@datadir@&$datadir&g 22097 s&@docdir@&$docdir&g 22098 s&@infodir@&$infodir&g 22099 s&@localedir@&$localedir&g 22100 s&@mandir@&$mandir&g 22101 s&\\\${datarootdir}&$datarootdir&g' ;; 22102esac 22103_ACEOF 22104 22105# Neutralize VPATH when '$srcdir' = '.'. 22106# Shell code in configure.ac might set extrasub. 22107# FIXME: do we really want to maintain this feature? 22108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22109ac_sed_extra="$ac_vpsub 22110$extrasub 22111_ACEOF 22112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22113:t 22114/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22115s|@configure_input@|$ac_sed_conf_input|;t t 22116s&@top_builddir@&$ac_top_builddir_sub&;t t 22117s&@top_build_prefix@&$ac_top_build_prefix&;t t 22118s&@srcdir@&$ac_srcdir&;t t 22119s&@abs_srcdir@&$ac_abs_srcdir&;t t 22120s&@top_srcdir@&$ac_top_srcdir&;t t 22121s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22122s&@builddir@&$ac_builddir&;t t 22123s&@abs_builddir@&$ac_abs_builddir&;t t 22124s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22125s&@INSTALL@&$ac_INSTALL&;t t 22126s&@MKDIR_P@&$ac_MKDIR_P&;t t 22127$ac_datarootdir_hack 22128" 22129eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22130 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22131 22132test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22133 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22135 "$ac_tmp/out"`; test -z "$ac_out"; } && 22136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22137which seems to be undefined. Please make sure it is defined" >&5 22138printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22139which seems to be undefined. Please make sure it is defined" >&2;} 22140 22141 rm -f "$ac_tmp/stdin" 22142 case $ac_file in 22143 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22144 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22145 esac \ 22146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22147 ;; 22148 :H) 22149 # 22150 # CONFIG_HEADER 22151 # 22152 if test x"$ac_file" != x-; then 22153 { 22154 printf "%s\n" "/* $configure_input */" >&1 \ 22155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22156 } >"$ac_tmp/config.h" \ 22157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22158 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22160printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22161 else 22162 rm -f "$ac_file" 22163 mv "$ac_tmp/config.h" "$ac_file" \ 22164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22165 fi 22166 else 22167 printf "%s\n" "/* $configure_input */" >&1 \ 22168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22169 || as_fn_error $? "could not create -" "$LINENO" 5 22170 fi 22171# Compute "$ac_file"'s index in $config_headers. 22172_am_arg="$ac_file" 22173_am_stamp_count=1 22174for _am_header in $config_headers :; do 22175 case $_am_header in 22176 $_am_arg | $_am_arg:* ) 22177 break ;; 22178 * ) 22179 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22180 esac 22181done 22182echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22183$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22184 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22185 X"$_am_arg" : 'X\(//\)$' \| \ 22186 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22187printf "%s\n" X"$_am_arg" | 22188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22189 s//\1/ 22190 q 22191 } 22192 /^X\(\/\/\)[^/].*/{ 22193 s//\1/ 22194 q 22195 } 22196 /^X\(\/\/\)$/{ 22197 s//\1/ 22198 q 22199 } 22200 /^X\(\/\).*/{ 22201 s//\1/ 22202 q 22203 } 22204 s/.*/./; q'`/stamp-h$_am_stamp_count 22205 ;; 22206 22207 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22208printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22209 ;; 22210 esac 22211 22212 22213 case $ac_file$ac_mode in 22214 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22215 # Older Autoconf quotes --file arguments for eval, but not when files 22216 # are listed without --file. Let's play safe and only enable the eval 22217 # if we detect the quoting. 22218 # TODO: see whether this extra hack can be removed once we start 22219 # requiring Autoconf 2.70 or later. 22220 case $CONFIG_FILES in #( 22221 *\'*) : 22222 eval set x "$CONFIG_FILES" ;; #( 22223 *) : 22224 set x $CONFIG_FILES ;; #( 22225 *) : 22226 ;; 22227esac 22228 shift 22229 # Used to flag and report bootstrapping failures. 22230 am_rc=0 22231 for am_mf 22232 do 22233 # Strip MF so we end up with the name of the file. 22234 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22235 # Check whether this is an Automake generated Makefile which includes 22236 # dependency-tracking related rules and includes. 22237 # Grep'ing the whole file directly is not great: AIX grep has a line 22238 # limit of 2048, but all sed's we know have understand at least 4000. 22239 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22240 || continue 22241 am_dirpart=`$as_dirname -- "$am_mf" || 22242$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22243 X"$am_mf" : 'X\(//\)[^/]' \| \ 22244 X"$am_mf" : 'X\(//\)$' \| \ 22245 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22246printf "%s\n" X"$am_mf" | 22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22248 s//\1/ 22249 q 22250 } 22251 /^X\(\/\/\)[^/].*/{ 22252 s//\1/ 22253 q 22254 } 22255 /^X\(\/\/\)$/{ 22256 s//\1/ 22257 q 22258 } 22259 /^X\(\/\).*/{ 22260 s//\1/ 22261 q 22262 } 22263 s/.*/./; q'` 22264 am_filepart=`$as_basename -- "$am_mf" || 22265$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22266 X"$am_mf" : 'X\(//\)$' \| \ 22267 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22268printf "%s\n" X/"$am_mf" | 22269 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22270 s//\1/ 22271 q 22272 } 22273 /^X\/\(\/\/\)$/{ 22274 s//\1/ 22275 q 22276 } 22277 /^X\/\(\/\).*/{ 22278 s//\1/ 22279 q 22280 } 22281 s/.*/./; q'` 22282 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22283 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22284 | $MAKE -f - am--depfiles" >&5 22285 (cd "$am_dirpart" \ 22286 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22287 | $MAKE -f - am--depfiles) >&5 2>&5 22288 ac_status=$? 22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22290 (exit $ac_status); } || am_rc=$? 22291 done 22292 if test $am_rc -ne 0; then 22293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22294printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22295as_fn_error $? "Something went wrong bootstrapping makefile fragments 22296 for automatic dependency tracking. If GNU make was not used, consider 22297 re-running the configure script with MAKE=\"gmake\" (or whatever is 22298 necessary). You can also try re-running configure with the 22299 '--disable-dependency-tracking' option to at least be able to build 22300 the package (albeit without support for automatic dependency tracking). 22301See 'config.log' for more details" "$LINENO" 5; } 22302 fi 22303 { am_dirpart=; unset am_dirpart;} 22304 { am_filepart=; unset am_filepart;} 22305 { am_mf=; unset am_mf;} 22306 { am_rc=; unset am_rc;} 22307 rm -f conftest-deps.mk 22308} 22309 ;; 22310 "libtool":C) 22311 22312 # See if we are running on zsh, and set the options that allow our 22313 # commands through without removal of \ escapes. 22314 if test -n "${ZSH_VERSION+set}"; then 22315 setopt NO_GLOB_SUBST 22316 fi 22317 22318 cfgfile=${ofile}T 22319 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22320 $RM "$cfgfile" 22321 22322 cat <<_LT_EOF >> "$cfgfile" 22323#! $SHELL 22324# Generated automatically by $as_me ($PACKAGE) $VERSION 22325# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22326 22327# Provide generalized library-building support services. 22328# Written by Gordon Matzigkeit, 1996 22329 22330# Copyright (C) 2024 Free Software Foundation, Inc. 22331# This is free software; see the source for copying conditions. There is NO 22332# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22333 22334# GNU Libtool is free software; you can redistribute it and/or modify 22335# it under the terms of the GNU General Public License as published by 22336# the Free Software Foundation; either version 2 of the License, or 22337# (at your option) any later version. 22338# 22339# As a special exception to the GNU General Public License, if you 22340# distribute this file as part of a program or library that is built 22341# using GNU Libtool, you may include this file under the same 22342# distribution terms that you use for the rest of that program. 22343# 22344# GNU Libtool is distributed in the hope that it will be useful, but 22345# WITHOUT ANY WARRANTY; without even the implied warranty of 22346# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22347# GNU General Public License for more details. 22348# 22349# You should have received a copy of the GNU General Public License 22350# along with this program. If not, see <http://www.gnu.org/licenses/>. 22351 22352 22353# The names of the tagged configurations supported by this script. 22354available_tags='' 22355 22356# Configured defaults for sys_lib_dlsearch_path munging. 22357: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22358 22359# ### BEGIN LIBTOOL CONFIG 22360 22361# Which release of libtool.m4 was used? 22362macro_version=$macro_version 22363macro_revision=$macro_revision 22364 22365# Whether or not to build shared libraries. 22366build_libtool_libs=$enable_shared 22367 22368# Whether or not to build static libraries. 22369build_old_libs=$enable_static 22370 22371# What type of objects to build. 22372pic_mode=$pic_mode 22373 22374# Whether or not to optimize for fast installation. 22375fast_install=$enable_fast_install 22376 22377# Shared archive member basename,for filename based shared library versioning on AIX. 22378shared_archive_member_spec=$shared_archive_member_spec 22379 22380# Shell to use when invoking shell scripts. 22381SHELL=$lt_SHELL 22382 22383# An echo program that protects backslashes. 22384ECHO=$lt_ECHO 22385 22386# The PATH separator for the build system. 22387PATH_SEPARATOR=$lt_PATH_SEPARATOR 22388 22389# The host system. 22390host_alias=$host_alias 22391host=$host 22392host_os=$host_os 22393 22394# The build system. 22395build_alias=$build_alias 22396build=$build 22397build_os=$build_os 22398 22399# A sed program that does not truncate output. 22400SED=$lt_SED 22401 22402# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22403Xsed="\$SED -e 1s/^X//" 22404 22405# A grep program that handles long lines. 22406GREP=$lt_GREP 22407 22408# An ERE matcher. 22409EGREP=$lt_EGREP 22410 22411# A literal string matcher. 22412FGREP=$lt_FGREP 22413 22414# A BSD- or MS-compatible name lister. 22415NM=$lt_NM 22416 22417# Whether we need soft or hard links. 22418LN_S=$lt_LN_S 22419 22420# What is the maximum length of a command? 22421max_cmd_len=$max_cmd_len 22422 22423# Object file suffix (normally "o"). 22424objext=$ac_objext 22425 22426# Executable file suffix (normally ""). 22427exeext=$exeext 22428 22429# whether the shell understands "unset". 22430lt_unset=$lt_unset 22431 22432# turn spaces into newlines. 22433SP2NL=$lt_lt_SP2NL 22434 22435# turn newlines into spaces. 22436NL2SP=$lt_lt_NL2SP 22437 22438# convert \$build file names to \$host format. 22439to_host_file_cmd=$lt_cv_to_host_file_cmd 22440 22441# convert \$build files to toolchain format. 22442to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22443 22444# A file(cmd) program that detects file types. 22445FILECMD=$lt_FILECMD 22446 22447# An object symbol dumper. 22448OBJDUMP=$lt_OBJDUMP 22449 22450# Method to check whether dependent libraries are shared objects. 22451deplibs_check_method=$lt_deplibs_check_method 22452 22453# Command to use when deplibs_check_method = "file_magic". 22454file_magic_cmd=$lt_file_magic_cmd 22455 22456# How to find potential files when deplibs_check_method = "file_magic". 22457file_magic_glob=$lt_file_magic_glob 22458 22459# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22460want_nocaseglob=$lt_want_nocaseglob 22461 22462# DLL creation program. 22463DLLTOOL=$lt_DLLTOOL 22464 22465# Command to associate shared and link libraries. 22466sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22467 22468# The archiver. 22469AR=$lt_AR 22470 22471# Flags to create an archive (by configure). 22472lt_ar_flags=$lt_ar_flags 22473 22474# Flags to create an archive. 22475AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22476 22477# How to feed a file listing to the archiver. 22478archiver_list_spec=$lt_archiver_list_spec 22479 22480# A symbol stripping program. 22481STRIP=$lt_STRIP 22482 22483# Commands used to install an old-style archive. 22484RANLIB=$lt_RANLIB 22485old_postinstall_cmds=$lt_old_postinstall_cmds 22486old_postuninstall_cmds=$lt_old_postuninstall_cmds 22487 22488# Whether to use a lock for old archive extraction. 22489lock_old_archive_extraction=$lock_old_archive_extraction 22490 22491# A C compiler. 22492LTCC=$lt_CC 22493 22494# LTCC compiler flags. 22495LTCFLAGS=$lt_CFLAGS 22496 22497# Take the output of nm and produce a listing of raw symbols and C names. 22498global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22499 22500# Transform the output of nm in a proper C declaration. 22501global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22502 22503# Transform the output of nm into a list of symbols to manually relocate. 22504global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22505 22506# Transform the output of nm in a C name address pair. 22507global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22508 22509# Transform the output of nm in a C name address pair when lib prefix is needed. 22510global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22511 22512# The name lister interface. 22513nm_interface=$lt_lt_cv_nm_interface 22514 22515# Specify filename containing input files for \$NM. 22516nm_file_list_spec=$lt_nm_file_list_spec 22517 22518# The root where to search for dependent libraries,and where our libraries should be installed. 22519lt_sysroot=$lt_sysroot 22520 22521# Command to truncate a binary pipe. 22522lt_truncate_bin=$lt_lt_cv_truncate_bin 22523 22524# The name of the directory that contains temporary libtool files. 22525objdir=$objdir 22526 22527# Used to examine libraries when file_magic_cmd begins with "file". 22528MAGIC_CMD=$MAGIC_CMD 22529 22530# Must we lock files when doing compilation? 22531need_locks=$lt_need_locks 22532 22533# Manifest tool. 22534MANIFEST_TOOL=$lt_MANIFEST_TOOL 22535 22536# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22537DSYMUTIL=$lt_DSYMUTIL 22538 22539# Tool to change global to local symbols on Mac OS X. 22540NMEDIT=$lt_NMEDIT 22541 22542# Tool to manipulate fat objects and archives on Mac OS X. 22543LIPO=$lt_LIPO 22544 22545# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22546OTOOL=$lt_OTOOL 22547 22548# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22549OTOOL64=$lt_OTOOL64 22550 22551# Old archive suffix (normally "a"). 22552libext=$libext 22553 22554# Shared library suffix (normally ".so"). 22555shrext_cmds=$lt_shrext_cmds 22556 22557# The commands to extract the exported symbol list from a shared archive. 22558extract_expsyms_cmds=$lt_extract_expsyms_cmds 22559 22560# Variables whose values should be saved in libtool wrapper scripts and 22561# restored at link time. 22562variables_saved_for_relink=$lt_variables_saved_for_relink 22563 22564# Do we need the "lib" prefix for modules? 22565need_lib_prefix=$need_lib_prefix 22566 22567# Do we need a version for libraries? 22568need_version=$need_version 22569 22570# Library versioning type. 22571version_type=$version_type 22572 22573# Shared library runtime path variable. 22574runpath_var=$runpath_var 22575 22576# Shared library path variable. 22577shlibpath_var=$shlibpath_var 22578 22579# Is shlibpath searched before the hard-coded library search path? 22580shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22581 22582# Format of library name prefix. 22583libname_spec=$lt_libname_spec 22584 22585# List of archive names. First name is the real one, the rest are links. 22586# The last name is the one that the linker finds with -lNAME 22587library_names_spec=$lt_library_names_spec 22588 22589# The coded name of the library, if different from the real name. 22590soname_spec=$lt_soname_spec 22591 22592# Permission mode override for installation of shared libraries. 22593install_override_mode=$lt_install_override_mode 22594 22595# Command to use after installation of a shared archive. 22596postinstall_cmds=$lt_postinstall_cmds 22597 22598# Command to use after uninstallation of a shared archive. 22599postuninstall_cmds=$lt_postuninstall_cmds 22600 22601# Commands used to finish a libtool library installation in a directory. 22602finish_cmds=$lt_finish_cmds 22603 22604# As "finish_cmds", except a single script fragment to be evaled but 22605# not shown. 22606finish_eval=$lt_finish_eval 22607 22608# Whether we should hardcode library paths into libraries. 22609hardcode_into_libs=$hardcode_into_libs 22610 22611# Compile-time system search path for libraries. 22612sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22613 22614# Detected run-time system search path for libraries. 22615sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22616 22617# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22618configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22619 22620# Whether dlopen is supported. 22621dlopen_support=$enable_dlopen 22622 22623# Whether dlopen of programs is supported. 22624dlopen_self=$enable_dlopen_self 22625 22626# Whether dlopen of statically linked programs is supported. 22627dlopen_self_static=$enable_dlopen_self_static 22628 22629# Commands to strip libraries. 22630old_striplib=$lt_old_striplib 22631striplib=$lt_striplib 22632 22633 22634# The linker used to build libraries. 22635LD=$lt_LD 22636 22637# How to create reloadable object files. 22638reload_flag=$lt_reload_flag 22639reload_cmds=$lt_reload_cmds 22640 22641# Commands used to build an old-style archive. 22642old_archive_cmds=$lt_old_archive_cmds 22643 22644# A language specific compiler. 22645CC=$lt_compiler 22646 22647# Is the compiler the GNU compiler? 22648with_gcc=$GCC 22649 22650# Compiler flag to turn off builtin functions. 22651no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22652 22653# Additional compiler flags for building library objects. 22654pic_flag=$lt_lt_prog_compiler_pic 22655 22656# How to pass a linker flag through the compiler. 22657wl=$lt_lt_prog_compiler_wl 22658 22659# Compiler flag to prevent dynamic linking. 22660link_static_flag=$lt_lt_prog_compiler_static 22661 22662# Does compiler simultaneously support -c and -o options? 22663compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22664 22665# Whether or not to add -lc for building shared libraries. 22666build_libtool_need_lc=$archive_cmds_need_lc 22667 22668# Whether or not to disallow shared libs when runtime libs are static. 22669allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22670 22671# Compiler flag to allow reflexive dlopens. 22672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22673 22674# Compiler flag to generate shared objects directly from archives. 22675whole_archive_flag_spec=$lt_whole_archive_flag_spec 22676 22677# Whether the compiler copes with passing no objects directly. 22678compiler_needs_object=$lt_compiler_needs_object 22679 22680# Create an old-style archive from a shared archive. 22681old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22682 22683# Create a temporary old-style archive to link instead of a shared archive. 22684old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22685 22686# Commands used to build a shared archive. 22687archive_cmds=$lt_archive_cmds 22688archive_expsym_cmds=$lt_archive_expsym_cmds 22689 22690# Commands used to build a loadable module if different from building 22691# a shared archive. 22692module_cmds=$lt_module_cmds 22693module_expsym_cmds=$lt_module_expsym_cmds 22694 22695# Whether we are building with GNU ld or not. 22696with_gnu_ld=$lt_with_gnu_ld 22697 22698# Flag that allows shared libraries with undefined symbols to be built. 22699allow_undefined_flag=$lt_allow_undefined_flag 22700 22701# Flag that enforces no undefined symbols. 22702no_undefined_flag=$lt_no_undefined_flag 22703 22704# Flag to hardcode \$libdir into a binary during linking. 22705# This must work even if \$libdir does not exist 22706hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22707 22708# Whether we need a single "-rpath" flag with a separated argument. 22709hardcode_libdir_separator=$lt_hardcode_libdir_separator 22710 22711# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22712# DIR into the resulting binary. 22713hardcode_direct=$hardcode_direct 22714 22715# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22716# DIR into the resulting binary and the resulting library dependency is 22717# "absolute",i.e. impossible to change by setting \$shlibpath_var if the 22718# library is relocated. 22719hardcode_direct_absolute=$hardcode_direct_absolute 22720 22721# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22722# into the resulting binary. 22723hardcode_minus_L=$hardcode_minus_L 22724 22725# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22726# into the resulting binary. 22727hardcode_shlibpath_var=$hardcode_shlibpath_var 22728 22729# Set to "yes" if building a shared library automatically hardcodes DIR 22730# into the library and all subsequent libraries and executables linked 22731# against it. 22732hardcode_automatic=$hardcode_automatic 22733 22734# Set to yes if linker adds runtime paths of dependent libraries 22735# to runtime path list. 22736inherit_rpath=$inherit_rpath 22737 22738# Whether libtool must link a program against all its dependency libraries. 22739link_all_deplibs=$link_all_deplibs 22740 22741# Set to "yes" if exported symbols are required. 22742always_export_symbols=$always_export_symbols 22743 22744# The commands to list exported symbols. 22745export_symbols_cmds=$lt_export_symbols_cmds 22746 22747# Symbols that should not be listed in the preloaded symbols. 22748exclude_expsyms=$lt_exclude_expsyms 22749 22750# Symbols that must always be exported. 22751include_expsyms=$lt_include_expsyms 22752 22753# Commands necessary for linking programs (against libraries) with templates. 22754prelink_cmds=$lt_prelink_cmds 22755 22756# Commands necessary for finishing linking programs. 22757postlink_cmds=$lt_postlink_cmds 22758 22759# Specify filename containing input files. 22760file_list_spec=$lt_file_list_spec 22761 22762# How to hardcode a shared library path into an executable. 22763hardcode_action=$hardcode_action 22764 22765# ### END LIBTOOL CONFIG 22766 22767_LT_EOF 22768 22769 cat <<'_LT_EOF' >> "$cfgfile" 22770 22771# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22772 22773# func_munge_path_list VARIABLE PATH 22774# ----------------------------------- 22775# VARIABLE is name of variable containing _space_ separated list of 22776# directories to be munged by the contents of PATH, which is string 22777# having a format: 22778# "DIR[:DIR]:" 22779# string "DIR[ DIR]" will be prepended to VARIABLE 22780# ":DIR[:DIR]" 22781# string "DIR[ DIR]" will be appended to VARIABLE 22782# "DIRP[:DIRP]::[DIRA:]DIRA" 22783# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22784# "DIRA[ DIRA]" will be appended to VARIABLE 22785# "DIR[:DIR]" 22786# VARIABLE will be replaced by "DIR[ DIR]" 22787func_munge_path_list () 22788{ 22789 case x$2 in 22790 x) 22791 ;; 22792 *:) 22793 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22794 ;; 22795 x:*) 22796 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22797 ;; 22798 *::*) 22799 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22800 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22801 ;; 22802 *) 22803 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22804 ;; 22805 esac 22806} 22807 22808 22809# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22810func_cc_basename () 22811{ 22812 for cc_temp in $*""; do 22813 case $cc_temp in 22814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22816 \-*) ;; 22817 *) break;; 22818 esac 22819 done 22820 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22821} 22822 22823 22824# ### END FUNCTIONS SHARED WITH CONFIGURE 22825 22826_LT_EOF 22827 22828 case $host_os in 22829 aix3*) 22830 cat <<\_LT_EOF >> "$cfgfile" 22831# AIX sometimes has problems with the GCC collect2 program. For some 22832# reason, if we set the COLLECT_NAMES environment variable, the problems 22833# vanish in a puff of smoke. 22834if test set != "${COLLECT_NAMES+set}"; then 22835 COLLECT_NAMES= 22836 export COLLECT_NAMES 22837fi 22838_LT_EOF 22839 ;; 22840 esac 22841 22842 22843 22844ltmain=$ac_aux_dir/ltmain.sh 22845 22846 22847 # We use sed instead of cat because bash on DJGPP gets confused if 22848 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22849 # text mode, it properly converts lines to CR/LF. This bash problem 22850 # is reportedly fixed, but why not run on old versions too? 22851 $SED '$q' "$ltmain" >> "$cfgfile" \ 22852 || (rm -f "$cfgfile"; exit 1) 22853 22854 mv -f "$cfgfile" "$ofile" || 22855 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22856 chmod +x "$ofile" 22857 22858 ;; 22859 22860 esac 22861done # for ac_tag 22862 22863 22864as_fn_exit 0 22865_ACEOF 22866ac_clean_files=$ac_clean_files_save 22867 22868test $ac_write_fail = 0 || 22869 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22870 22871 22872# configure is writing to config.log, and then calls config.status. 22873# config.status does its own redirection, appending to config.log. 22874# Unfortunately, on DOS this fails, as config.log is still kept open 22875# by configure, so config.status won't be able to write to it; its 22876# output is simply discarded. So we exec the FD to /dev/null, 22877# effectively closing config.log, so it can be properly (re)opened and 22878# appended to by config.status. When coming back to configure, we 22879# need to make the FD available again. 22880if test "$no_create" != yes; then 22881 ac_cs_success=: 22882 ac_config_status_args= 22883 test "$silent" = yes && 22884 ac_config_status_args="$ac_config_status_args --quiet" 22885 exec 5>/dev/null 22886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22887 exec 5>>config.log 22888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22889 # would make configure fail if this is the last instruction. 22890 $ac_cs_success || as_fn_exit 1 22891fi 22892if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22894printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22895fi 22896 22897 22898