configure revision 3d05230f
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libxshmfence 1.3.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues 280$0: about your system, including any error possibly output 281$0: before this message. Then install a modern shell, or 282$0: manually run the script under such a shell if you do 283$0: have one." 284 fi 285 exit 1 286fi 287fi 288fi 289SHELL=${CONFIG_SHELL-/bin/sh} 290export SHELL 291# Unset more variables known to interfere with behavior of common tools. 292CLICOLOR_FORCE= GREP_OPTIONS= 293unset CLICOLOR_FORCE GREP_OPTIONS 294 295## --------------------- ## 296## M4sh Shell Functions. ## 297## --------------------- ## 298# as_fn_unset VAR 299# --------------- 300# Portably unset VAR. 301as_fn_unset () 302{ 303 { eval $1=; unset $1;} 304} 305as_unset=as_fn_unset 306 307 308# as_fn_set_status STATUS 309# ----------------------- 310# Set $? to STATUS, without forking. 311as_fn_set_status () 312{ 313 return $1 314} # as_fn_set_status 315 316# as_fn_exit STATUS 317# ----------------- 318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319as_fn_exit () 320{ 321 set +e 322 as_fn_set_status $1 323 exit $1 324} # as_fn_exit 325# as_fn_nop 326# --------- 327# Do nothing but, unlike ":", preserve the value of $?. 328as_fn_nop () 329{ 330 return $? 331} 332as_nop=as_fn_nop 333 334# as_fn_mkdir_p 335# ------------- 336# Create "$as_dir" as a directory, including parents if necessary. 337as_fn_mkdir_p () 338{ 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380} # as_fn_mkdir_p 381 382# as_fn_executable_p FILE 383# ----------------------- 384# Test if FILE is an executable regular file. 385as_fn_executable_p () 386{ 387 test -f "$1" && test -x "$1" 388} # as_fn_executable_p 389# as_fn_append VAR VALUE 390# ---------------------- 391# Append the text in VALUE to the end of the definition contained in VAR. Take 392# advantage of any shell optimizations that allow amortized linear growth over 393# repeated appends, instead of the typical quadratic growth present in naive 394# implementations. 395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406fi # as_fn_append 407 408# as_fn_arith ARG... 409# ------------------ 410# Perform arithmetic evaluation on the ARGs, and store the result in the 411# global $as_val. Take advantage of shells that can avoid forks. The arguments 412# must be portable across $(()) and expr. 413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424fi # as_fn_arith 425 426# as_fn_nop 427# --------- 428# Do nothing but, unlike ":", preserve the value of $?. 429as_fn_nop () 430{ 431 return $? 432} 433as_nop=as_fn_nop 434 435# as_fn_error STATUS ERROR [LINENO LOG_FD] 436# ---------------------------------------- 437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439# script with STATUS, using 1 if that was 0. 440as_fn_error () 441{ 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449} # as_fn_error 450 451if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454else 455 as_expr=false 456fi 457 458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460else 461 as_basename=false 462fi 463 464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466else 467 as_dirname=false 468fi 469 470as_me=`$as_basename -- "$0" || 471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489# Avoid depending upon Character Ranges. 490as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493as_cr_digits='0123456789' 494as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530} 531 532 533# Determine whether it's possible to make 'echo' print without a newline. 534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535# for compatibility with existing Makefiles. 536ECHO_C= ECHO_N= ECHO_T= 537case `echo -n x` in #((((( 538-n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545*) 546 ECHO_N='-n';; 547esac 548 549# For backward compatibility with old third-party macros, we provide 550# the shell variables $as_echo and $as_echo_n. New code should use 551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552as_echo='printf %s\n' 553as_echo_n='printf %s' 554 555 556rm -f conf$$ conf$$.exe conf$$.file 557if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562fi 563if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577else 578 as_ln_s='cp -pR' 579fi 580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581rmdir conf$$.dir 2>/dev/null 582 583if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588fi 589 590as_test_x='test -x' 591as_executable_p=as_fn_executable_p 592 593# Sed expression to map a string onto a valid CPP name. 594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596# Sed expression to map a string onto a valid variable name. 597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602test -n "$DJDIR" || exec 7<&0 </dev/null 603exec 6>&1 604 605# Name of the host. 606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607# so uname gets run too. 608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610# 611# Initializations. 612# 613ac_default_prefix=/usr/local 614ac_clean_files= 615ac_config_libobj_dir=. 616LIBOBJS= 617cross_compiling=no 618subdirs= 619MFLAGS= 620MAKEFLAGS= 621 622# Identity of this package. 623PACKAGE_NAME='libxshmfence' 624PACKAGE_TARNAME='libxshmfence' 625PACKAGE_VERSION='1.3.1' 626PACKAGE_STRING='libxshmfence 1.3.1' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667XPROTO_LIBS 668XPROTO_CFLAGS 669PTHREAD_FALSE 670PTHREAD_TRUE 671FUTEX_FALSE 672FUTEX_TRUE 673PTHREAD_LIBS 674LINT_FALSE 675LINT_TRUE 676LINT_FLAGS 677LINT 678MAN_SUBSTS 679XORG_MAN_PAGE 680ADMIN_MAN_DIR 681DRIVER_MAN_DIR 682MISC_MAN_DIR 683FILE_MAN_DIR 684LIB_MAN_DIR 685APP_MAN_DIR 686ADMIN_MAN_SUFFIX 687DRIVER_MAN_SUFFIX 688MISC_MAN_SUFFIX 689FILE_MAN_SUFFIX 690LIB_MAN_SUFFIX 691APP_MAN_SUFFIX 692INSTALL_CMD 693PKG_CONFIG_LIBDIR 694PKG_CONFIG_PATH 695PKG_CONFIG 696CHANGELOG_CMD 697STRICT_CFLAGS 698CWARNFLAGS 699BASE_CFLAGS 700LT_SYS_LIBRARY_PATH 701OTOOL64 702OTOOL 703LIPO 704NMEDIT 705DSYMUTIL 706MANIFEST_TOOL 707RANLIB 708ac_ct_AR 709AR 710DLLTOOL 711OBJDUMP 712FILECMD 713LN_S 714NM 715ac_ct_DUMPBIN 716DUMPBIN 717LD 718FGREP 719EGREP 720GREP 721SED 722host_os 723host_vendor 724host_cpu 725host 726build_os 727build_vendor 728build_cpu 729build 730LIBTOOL 731AM_BACKSLASH 732AM_DEFAULT_VERBOSITY 733AM_DEFAULT_V 734AM_V 735CSCOPE 736ETAGS 737CTAGS 738am__fastdepCC_FALSE 739am__fastdepCC_TRUE 740CCDEPMODE 741am__nodep 742AMDEPBACKSLASH 743AMDEP_FALSE 744AMDEP_TRUE 745am__include 746DEPDIR 747am__untar 748am__tar 749AMTAR 750am__leading_dot 751SET_MAKE 752AWK 753mkdir_p 754MKDIR_P 755INSTALL_STRIP_PROGRAM 756STRIP 757install_sh 758MAKEINFO 759AUTOHEADER 760AUTOMAKE 761AUTOCONF 762ACLOCAL 763VERSION 764PACKAGE 765CYGPATH_W 766am__isrc 767INSTALL_DATA 768INSTALL_SCRIPT 769INSTALL_PROGRAM 770OBJEXT 771EXEEXT 772ac_ct_CC 773CPPFLAGS 774LDFLAGS 775CFLAGS 776CC 777target_alias 778host_alias 779build_alias 780LIBS 781ECHO_T 782ECHO_N 783ECHO_C 784DEFS 785mandir 786localedir 787libdir 788psdir 789pdfdir 790dvidir 791htmldir 792infodir 793docdir 794oldincludedir 795includedir 796runstatedir 797localstatedir 798sharedstatedir 799sysconfdir 800datadir 801datarootdir 802libexecdir 803sbindir 804bindir 805program_transform_name 806prefix 807exec_prefix 808PACKAGE_URL 809PACKAGE_BUGREPORT 810PACKAGE_STRING 811PACKAGE_VERSION 812PACKAGE_TARNAME 813PACKAGE_NAME 814PATH_SEPARATOR 815SHELL 816am__quote' 817ac_subst_files='' 818ac_user_opts=' 819enable_option_checking 820enable_dependency_tracking 821enable_silent_rules 822enable_shared 823enable_static 824with_pic 825enable_fast_install 826with_aix_soname 827with_gnu_ld 828with_sysroot 829enable_libtool_lock 830enable_selective_werror 831enable_strict_compilation 832with_lint 833enable_futex 834enable_visibility 835with_shared_memory_dir 836' 837 ac_precious_vars='build_alias 838host_alias 839target_alias 840CC 841CFLAGS 842LDFLAGS 843LIBS 844CPPFLAGS 845LT_SYS_LIBRARY_PATH 846PKG_CONFIG 847PKG_CONFIG_PATH 848PKG_CONFIG_LIBDIR 849LINT 850LINT_FLAGS 851XPROTO_CFLAGS 852XPROTO_LIBS' 853 854 855# Initialize some variables set by options. 856ac_init_help= 857ac_init_version=false 858ac_unrecognized_opts= 859ac_unrecognized_sep= 860# The variables have the same names as the options, with 861# dashes changed to underlines. 862cache_file=/dev/null 863exec_prefix=NONE 864no_create= 865no_recursion= 866prefix=NONE 867program_prefix=NONE 868program_suffix=NONE 869program_transform_name=s,x,x, 870silent= 871site= 872srcdir= 873verbose= 874x_includes=NONE 875x_libraries=NONE 876 877# Installation directory options. 878# These are left unexpanded so users can "make install exec_prefix=/foo" 879# and all the variables that are supposed to be based on exec_prefix 880# by default will actually change. 881# Use braces instead of parens because sh, perl, etc. also accept them. 882# (The list follows the same order as the GNU Coding Standards.) 883bindir='${exec_prefix}/bin' 884sbindir='${exec_prefix}/sbin' 885libexecdir='${exec_prefix}/libexec' 886datarootdir='${prefix}/share' 887datadir='${datarootdir}' 888sysconfdir='${prefix}/etc' 889sharedstatedir='${prefix}/com' 890localstatedir='${prefix}/var' 891runstatedir='${localstatedir}/run' 892includedir='${prefix}/include' 893oldincludedir='/usr/include' 894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 895infodir='${datarootdir}/info' 896htmldir='${docdir}' 897dvidir='${docdir}' 898pdfdir='${docdir}' 899psdir='${docdir}' 900libdir='${exec_prefix}/lib' 901localedir='${datarootdir}/locale' 902mandir='${datarootdir}/man' 903 904ac_prev= 905ac_dashdash= 906for ac_option 907do 908 # If the previous option needs an argument, assign it. 909 if test -n "$ac_prev"; then 910 eval $ac_prev=\$ac_option 911 ac_prev= 912 continue 913 fi 914 915 case $ac_option in 916 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 917 *=) ac_optarg= ;; 918 *) ac_optarg=yes ;; 919 esac 920 921 case $ac_dashdash$ac_option in 922 --) 923 ac_dashdash=yes ;; 924 925 -bindir | --bindir | --bindi | --bind | --bin | --bi) 926 ac_prev=bindir ;; 927 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 928 bindir=$ac_optarg ;; 929 930 -build | --build | --buil | --bui | --bu) 931 ac_prev=build_alias ;; 932 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 933 build_alias=$ac_optarg ;; 934 935 -cache-file | --cache-file | --cache-fil | --cache-fi \ 936 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 937 ac_prev=cache_file ;; 938 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 939 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 940 cache_file=$ac_optarg ;; 941 942 --config-cache | -C) 943 cache_file=config.cache ;; 944 945 -datadir | --datadir | --datadi | --datad) 946 ac_prev=datadir ;; 947 -datadir=* | --datadir=* | --datadi=* | --datad=*) 948 datadir=$ac_optarg ;; 949 950 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 951 | --dataroo | --dataro | --datar) 952 ac_prev=datarootdir ;; 953 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 954 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 955 datarootdir=$ac_optarg ;; 956 957 -disable-* | --disable-*) 958 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 959 # Reject names that are not valid shell variable names. 960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 961 as_fn_error $? "invalid feature name: \`$ac_useropt'" 962 ac_useropt_orig=$ac_useropt 963 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 964 case $ac_user_opts in 965 *" 966"enable_$ac_useropt" 967"*) ;; 968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 969 ac_unrecognized_sep=', ';; 970 esac 971 eval enable_$ac_useropt=no ;; 972 973 -docdir | --docdir | --docdi | --doc | --do) 974 ac_prev=docdir ;; 975 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 976 docdir=$ac_optarg ;; 977 978 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 979 ac_prev=dvidir ;; 980 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 981 dvidir=$ac_optarg ;; 982 983 -enable-* | --enable-*) 984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 985 # Reject names that are not valid shell variable names. 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 987 as_fn_error $? "invalid feature name: \`$ac_useropt'" 988 ac_useropt_orig=$ac_useropt 989 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 990 case $ac_user_opts in 991 *" 992"enable_$ac_useropt" 993"*) ;; 994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 995 ac_unrecognized_sep=', ';; 996 esac 997 eval enable_$ac_useropt=\$ac_optarg ;; 998 999 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1000 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1001 | --exec | --exe | --ex) 1002 ac_prev=exec_prefix ;; 1003 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1004 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1005 | --exec=* | --exe=* | --ex=*) 1006 exec_prefix=$ac_optarg ;; 1007 1008 -gas | --gas | --ga | --g) 1009 # Obsolete; use --with-gas. 1010 with_gas=yes ;; 1011 1012 -help | --help | --hel | --he | -h) 1013 ac_init_help=long ;; 1014 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1015 ac_init_help=recursive ;; 1016 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1017 ac_init_help=short ;; 1018 1019 -host | --host | --hos | --ho) 1020 ac_prev=host_alias ;; 1021 -host=* | --host=* | --hos=* | --ho=*) 1022 host_alias=$ac_optarg ;; 1023 1024 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1025 ac_prev=htmldir ;; 1026 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1027 | --ht=*) 1028 htmldir=$ac_optarg ;; 1029 1030 -includedir | --includedir | --includedi | --included | --include \ 1031 | --includ | --inclu | --incl | --inc) 1032 ac_prev=includedir ;; 1033 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1034 | --includ=* | --inclu=* | --incl=* | --inc=*) 1035 includedir=$ac_optarg ;; 1036 1037 -infodir | --infodir | --infodi | --infod | --info | --inf) 1038 ac_prev=infodir ;; 1039 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1040 infodir=$ac_optarg ;; 1041 1042 -libdir | --libdir | --libdi | --libd) 1043 ac_prev=libdir ;; 1044 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1045 libdir=$ac_optarg ;; 1046 1047 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1048 | --libexe | --libex | --libe) 1049 ac_prev=libexecdir ;; 1050 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1051 | --libexe=* | --libex=* | --libe=*) 1052 libexecdir=$ac_optarg ;; 1053 1054 -localedir | --localedir | --localedi | --localed | --locale) 1055 ac_prev=localedir ;; 1056 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1057 localedir=$ac_optarg ;; 1058 1059 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1060 | --localstate | --localstat | --localsta | --localst | --locals) 1061 ac_prev=localstatedir ;; 1062 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1063 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1064 localstatedir=$ac_optarg ;; 1065 1066 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1067 ac_prev=mandir ;; 1068 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1069 mandir=$ac_optarg ;; 1070 1071 -nfp | --nfp | --nf) 1072 # Obsolete; use --without-fp. 1073 with_fp=no ;; 1074 1075 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1076 | --no-cr | --no-c | -n) 1077 no_create=yes ;; 1078 1079 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1080 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1081 no_recursion=yes ;; 1082 1083 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1084 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1085 | --oldin | --oldi | --old | --ol | --o) 1086 ac_prev=oldincludedir ;; 1087 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1088 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1089 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1090 oldincludedir=$ac_optarg ;; 1091 1092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1093 ac_prev=prefix ;; 1094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1095 prefix=$ac_optarg ;; 1096 1097 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1098 | --program-pre | --program-pr | --program-p) 1099 ac_prev=program_prefix ;; 1100 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1101 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1102 program_prefix=$ac_optarg ;; 1103 1104 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1105 | --program-suf | --program-su | --program-s) 1106 ac_prev=program_suffix ;; 1107 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1108 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1109 program_suffix=$ac_optarg ;; 1110 1111 -program-transform-name | --program-transform-name \ 1112 | --program-transform-nam | --program-transform-na \ 1113 | --program-transform-n | --program-transform- \ 1114 | --program-transform | --program-transfor \ 1115 | --program-transfo | --program-transf \ 1116 | --program-trans | --program-tran \ 1117 | --progr-tra | --program-tr | --program-t) 1118 ac_prev=program_transform_name ;; 1119 -program-transform-name=* | --program-transform-name=* \ 1120 | --program-transform-nam=* | --program-transform-na=* \ 1121 | --program-transform-n=* | --program-transform-=* \ 1122 | --program-transform=* | --program-transfor=* \ 1123 | --program-transfo=* | --program-transf=* \ 1124 | --program-trans=* | --program-tran=* \ 1125 | --progr-tra=* | --program-tr=* | --program-t=*) 1126 program_transform_name=$ac_optarg ;; 1127 1128 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1129 ac_prev=pdfdir ;; 1130 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1131 pdfdir=$ac_optarg ;; 1132 1133 -psdir | --psdir | --psdi | --psd | --ps) 1134 ac_prev=psdir ;; 1135 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1136 psdir=$ac_optarg ;; 1137 1138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1139 | -silent | --silent | --silen | --sile | --sil) 1140 silent=yes ;; 1141 1142 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1143 | --runstate | --runstat | --runsta | --runst | --runs \ 1144 | --run | --ru | --r) 1145 ac_prev=runstatedir ;; 1146 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1147 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1148 | --run=* | --ru=* | --r=*) 1149 runstatedir=$ac_optarg ;; 1150 1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1152 ac_prev=sbindir ;; 1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1154 | --sbi=* | --sb=*) 1155 sbindir=$ac_optarg ;; 1156 1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1159 | --sharedst | --shareds | --shared | --share | --shar \ 1160 | --sha | --sh) 1161 ac_prev=sharedstatedir ;; 1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1165 | --sha=* | --sh=*) 1166 sharedstatedir=$ac_optarg ;; 1167 1168 -site | --site | --sit) 1169 ac_prev=site ;; 1170 -site=* | --site=* | --sit=*) 1171 site=$ac_optarg ;; 1172 1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1174 ac_prev=srcdir ;; 1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1176 srcdir=$ac_optarg ;; 1177 1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1179 | --syscon | --sysco | --sysc | --sys | --sy) 1180 ac_prev=sysconfdir ;; 1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1183 sysconfdir=$ac_optarg ;; 1184 1185 -target | --target | --targe | --targ | --tar | --ta | --t) 1186 ac_prev=target_alias ;; 1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1188 target_alias=$ac_optarg ;; 1189 1190 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1191 verbose=yes ;; 1192 1193 -version | --version | --versio | --versi | --vers | -V) 1194 ac_init_version=: ;; 1195 1196 -with-* | --with-*) 1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1198 # Reject names that are not valid shell variable names. 1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1200 as_fn_error $? "invalid package name: \`$ac_useropt'" 1201 ac_useropt_orig=$ac_useropt 1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1203 case $ac_user_opts in 1204 *" 1205"with_$ac_useropt" 1206"*) ;; 1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1208 ac_unrecognized_sep=', ';; 1209 esac 1210 eval with_$ac_useropt=\$ac_optarg ;; 1211 1212 -without-* | --without-*) 1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1214 # Reject names that are not valid shell variable names. 1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1216 as_fn_error $? "invalid package name: \`$ac_useropt'" 1217 ac_useropt_orig=$ac_useropt 1218 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1219 case $ac_user_opts in 1220 *" 1221"with_$ac_useropt" 1222"*) ;; 1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1224 ac_unrecognized_sep=', ';; 1225 esac 1226 eval with_$ac_useropt=no ;; 1227 1228 --x) 1229 # Obsolete; use --with-x. 1230 with_x=yes ;; 1231 1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1233 | --x-incl | --x-inc | --x-in | --x-i) 1234 ac_prev=x_includes ;; 1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1237 x_includes=$ac_optarg ;; 1238 1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1241 ac_prev=x_libraries ;; 1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1244 x_libraries=$ac_optarg ;; 1245 1246 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1247Try \`$0 --help' for more information" 1248 ;; 1249 1250 *=*) 1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1252 # Reject names that are not valid shell variable names. 1253 case $ac_envvar in #( 1254 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1256 esac 1257 eval $ac_envvar=\$ac_optarg 1258 export $ac_envvar ;; 1259 1260 *) 1261 # FIXME: should be removed in autoconf 3.0. 1262 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1264 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1266 ;; 1267 1268 esac 1269done 1270 1271if test -n "$ac_prev"; then 1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1273 as_fn_error $? "missing argument to $ac_option" 1274fi 1275 1276if test -n "$ac_unrecognized_opts"; then 1277 case $enable_option_checking in 1278 no) ;; 1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1280 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1281 esac 1282fi 1283 1284# Check all directory arguments for consistency. 1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1286 datadir sysconfdir sharedstatedir localstatedir includedir \ 1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1288 libdir localedir mandir runstatedir 1289do 1290 eval ac_val=\$$ac_var 1291 # Remove trailing slashes. 1292 case $ac_val in 1293 */ ) 1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1295 eval $ac_var=\$ac_val;; 1296 esac 1297 # Be sure to have absolute directory names. 1298 case $ac_val in 1299 [\\/$]* | ?:[\\/]* ) continue;; 1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1301 esac 1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1303done 1304 1305# There might be people who depend on the old broken behavior: `$host' 1306# used to hold the argument of --host etc. 1307# FIXME: To remove some day. 1308build=$build_alias 1309host=$host_alias 1310target=$target_alias 1311 1312# FIXME: To remove some day. 1313if test "x$host_alias" != x; then 1314 if test "x$build_alias" = x; then 1315 cross_compiling=maybe 1316 elif test "x$build_alias" != "x$host_alias"; then 1317 cross_compiling=yes 1318 fi 1319fi 1320 1321ac_tool_prefix= 1322test -n "$host_alias" && ac_tool_prefix=$host_alias- 1323 1324test "$silent" = yes && exec 6>/dev/null 1325 1326 1327ac_pwd=`pwd` && test -n "$ac_pwd" && 1328ac_ls_di=`ls -di .` && 1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1330 as_fn_error $? "working directory cannot be determined" 1331test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1332 as_fn_error $? "pwd does not report name of working directory" 1333 1334 1335# Find the source files, if location was not specified. 1336if test -z "$srcdir"; then 1337 ac_srcdir_defaulted=yes 1338 # Try the directory containing this script, then the parent directory. 1339 ac_confdir=`$as_dirname -- "$as_myself" || 1340$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1341 X"$as_myself" : 'X\(//\)[^/]' \| \ 1342 X"$as_myself" : 'X\(//\)$' \| \ 1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1344printf "%s\n" X"$as_myself" | 1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)[^/].*/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\/\)$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\).*/{ 1358 s//\1/ 1359 q 1360 } 1361 s/.*/./; q'` 1362 srcdir=$ac_confdir 1363 if test ! -r "$srcdir/$ac_unique_file"; then 1364 srcdir=.. 1365 fi 1366else 1367 ac_srcdir_defaulted=no 1368fi 1369if test ! -r "$srcdir/$ac_unique_file"; then 1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1372fi 1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1374ac_abs_confdir=`( 1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1376 pwd)` 1377# When building in place, set srcdir=. 1378if test "$ac_abs_confdir" = "$ac_pwd"; then 1379 srcdir=. 1380fi 1381# Remove unnecessary trailing slashes from srcdir. 1382# Double slashes in file names in object file debugging info 1383# mess up M-x gdb in Emacs. 1384case $srcdir in 1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1386esac 1387for ac_var in $ac_precious_vars; do 1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_env_${ac_var}_value=\$${ac_var} 1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1392done 1393 1394# 1395# Report the --help message. 1396# 1397if test "$ac_init_help" = "long"; then 1398 # Omit some internal or obsolete options to make the list less imposing. 1399 # This message is too long to be a string in the A/UX 3.1 sh. 1400 cat <<_ACEOF 1401\`configure' configures libxshmfence 1.3.1 to adapt to many kinds of systems. 1402 1403Usage: $0 [OPTION]... [VAR=VALUE]... 1404 1405To assign environment variables (e.g., CC, CFLAGS...), specify them as 1406VAR=VALUE. See below for descriptions of some of the useful variables. 1407 1408Defaults for the options are specified in brackets. 1409 1410Configuration: 1411 -h, --help display this help and exit 1412 --help=short display options specific to this package 1413 --help=recursive display the short help of all the included packages 1414 -V, --version display version information and exit 1415 -q, --quiet, --silent do not print \`checking ...' messages 1416 --cache-file=FILE cache test results in FILE [disabled] 1417 -C, --config-cache alias for \`--cache-file=config.cache' 1418 -n, --no-create do not create output files 1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1420 1421Installation directories: 1422 --prefix=PREFIX install architecture-independent files in PREFIX 1423 [$ac_default_prefix] 1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1425 [PREFIX] 1426 1427By default, \`make install' will install all the files in 1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1429an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1430for instance \`--prefix=\$HOME'. 1431 1432For better control, use the options below. 1433 1434Fine tuning of the installation directories: 1435 --bindir=DIR user executables [EPREFIX/bin] 1436 --sbindir=DIR system admin executables [EPREFIX/sbin] 1437 --libexecdir=DIR program executables [EPREFIX/libexec] 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1441 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1442 --libdir=DIR object code libraries [EPREFIX/lib] 1443 --includedir=DIR C header files [PREFIX/include] 1444 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1447 --infodir=DIR info documentation [DATAROOTDIR/info] 1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1449 --mandir=DIR man documentation [DATAROOTDIR/man] 1450 --docdir=DIR documentation root [DATAROOTDIR/doc/libxshmfence] 1451 --htmldir=DIR html documentation [DOCDIR] 1452 --dvidir=DIR dvi documentation [DOCDIR] 1453 --pdfdir=DIR pdf documentation [DOCDIR] 1454 --psdir=DIR ps documentation [DOCDIR] 1455_ACEOF 1456 1457 cat <<\_ACEOF 1458 1459Program names: 1460 --program-prefix=PREFIX prepend PREFIX to installed program names 1461 --program-suffix=SUFFIX append SUFFIX to installed program names 1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1463 1464System types: 1465 --build=BUILD configure for building on BUILD [guessed] 1466 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1467_ACEOF 1468fi 1469 1470if test -n "$ac_init_help"; then 1471 case $ac_init_help in 1472 short | recursive ) echo "Configuration of libxshmfence 1.3.1:";; 1473 esac 1474 cat <<\_ACEOF 1475 1476Optional Features: 1477 --disable-option-checking ignore unrecognized --enable/--with options 1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --enable-silent-rules less verbose build output (undo: "make V=1") 1485 --disable-silent-rules verbose build output (undo: "make V=0") 1486 --enable-shared[=PKGS] build shared libraries [default=yes] 1487 --enable-static[=PKGS] build static libraries [default=yes] 1488 --enable-fast-install[=PKGS] 1489 optimize for fast installation [default=yes] 1490 --disable-libtool-lock avoid locking (might break parallel builds) 1491 --disable-selective-werror 1492 Turn off selective compiler errors. (default: 1493 enabled) 1494 --enable-strict-compilation 1495 Enable all warnings from compiler and make them 1496 errors (default: disabled) 1497 --enable-futex Enable futexes (default: auto) 1498 --enable-visibility Enable symbol visibility (default: auto) 1499 1500Optional Packages: 1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1504 both] 1505 --with-aix-soname=aix|svr4|both 1506 shared library versioning (aka "SONAME") variant to 1507 provide on AIX, [default=aix]. 1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1510 compiler's sysroot if not specified). 1511 --with-lint Use a lint-style source code checker (default: 1512 disabled) 1513 --with-shared-memory-dir=PATH 1514 Path to directory in a world-writable temporary 1515 directory for anonymous shared memory (default: 1516 auto) 1517 1518Some influential environment variables: 1519 CC C compiler command 1520 CFLAGS C compiler flags 1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1522 nonstandard directory <lib dir> 1523 LIBS libraries to pass to the linker, e.g. -l<library> 1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1525 you have headers in a nonstandard directory <include dir> 1526 LT_SYS_LIBRARY_PATH 1527 User-defined run-time library search path. 1528 PKG_CONFIG path to pkg-config utility 1529 PKG_CONFIG_PATH 1530 directories to add to pkg-config's search path 1531 PKG_CONFIG_LIBDIR 1532 path overriding pkg-config's built-in search path 1533 LINT Path to a lint-style command 1534 LINT_FLAGS Flags for the lint-style command 1535 XPROTO_CFLAGS 1536 C compiler flags for XPROTO, overriding pkg-config 1537 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config 1538 1539Use these variables to override the choices made by `configure' or to help 1540it to find libraries and programs with nonstandard names/locations. 1541 1542Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>. 1543_ACEOF 1544ac_status=$? 1545fi 1546 1547if test "$ac_init_help" = "recursive"; then 1548 # If there are subdirs, report their specific --help. 1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1550 test -d "$ac_dir" || 1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1552 continue 1553 ac_builddir=. 1554 1555case "$ac_dir" in 1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557*) 1558 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1559 # A ".." for each directory in $ac_dir_suffix. 1560 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1561 case $ac_top_builddir_sub in 1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1564 esac ;; 1565esac 1566ac_abs_top_builddir=$ac_pwd 1567ac_abs_builddir=$ac_pwd$ac_dir_suffix 1568# for backward compatibility: 1569ac_top_builddir=$ac_top_build_prefix 1570 1571case $srcdir in 1572 .) # We are building in place. 1573 ac_srcdir=. 1574 ac_top_srcdir=$ac_top_builddir_sub 1575 ac_abs_top_srcdir=$ac_pwd ;; 1576 [\\/]* | ?:[\\/]* ) # Absolute name. 1577 ac_srcdir=$srcdir$ac_dir_suffix; 1578 ac_top_srcdir=$srcdir 1579 ac_abs_top_srcdir=$srcdir ;; 1580 *) # Relative name. 1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1582 ac_top_srcdir=$ac_top_build_prefix$srcdir 1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1584esac 1585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1586 1587 cd "$ac_dir" || { ac_status=$?; continue; } 1588 # Check for configure.gnu first; this name is used for a wrapper for 1589 # Metaconfig's "Configure" on case-insensitive file systems. 1590 if test -f "$ac_srcdir/configure.gnu"; then 1591 echo && 1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1593 elif test -f "$ac_srcdir/configure"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure" --help=recursive 1596 else 1597 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1598 fi || ac_status=$? 1599 cd "$ac_pwd" || { ac_status=$?; break; } 1600 done 1601fi 1602 1603test -n "$ac_init_help" && exit $ac_status 1604if $ac_init_version; then 1605 cat <<\_ACEOF 1606libxshmfence configure 1.3.1 1607generated by GNU Autoconf 2.71 1608 1609Copyright (C) 2021 Free Software Foundation, Inc. 1610This configure script is free software; the Free Software Foundation 1611gives unlimited permission to copy, distribute and modify it. 1612_ACEOF 1613 exit 1614fi 1615 1616## ------------------------ ## 1617## Autoconf initialization. ## 1618## ------------------------ ## 1619 1620# ac_fn_c_try_compile LINENO 1621# -------------------------- 1622# Try to compile conftest.$ac_ext, and return whether this succeeded. 1623ac_fn_c_try_compile () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 rm -f conftest.$ac_objext conftest.beam 1627 if { { ac_try="$ac_compile" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633printf "%s\n" "$ac_try_echo"; } >&5 1634 (eval "$ac_compile") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { 1643 test -z "$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 } && test -s conftest.$ac_objext 1646then : 1647 ac_retval=0 1648else $as_nop 1649 printf "%s\n" "$as_me: failed program was:" >&5 1650sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=1 1653fi 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 as_fn_set_status $ac_retval 1656 1657} # ac_fn_c_try_compile 1658 1659# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1660# ------------------------------------------------------- 1661# Tests whether HEADER exists and can be compiled using the include files in 1662# INCLUDES, setting the cache variable VAR accordingly. 1663ac_fn_c_check_header_compile () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667printf %s "checking for $2... " >&6; } 1668if eval test \${$3+y} 1669then : 1670 printf %s "(cached) " >&6 1671else $as_nop 1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1673/* end confdefs.h. */ 1674$4 1675#include <$2> 1676_ACEOF 1677if ac_fn_c_try_compile "$LINENO" 1678then : 1679 eval "$3=yes" 1680else $as_nop 1681 eval "$3=no" 1682fi 1683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1684fi 1685eval ac_res=\$$3 1686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1687printf "%s\n" "$ac_res" >&6; } 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 1690} # ac_fn_c_check_header_compile 1691 1692# ac_fn_c_try_link LINENO 1693# ----------------------- 1694# Try to link conftest.$ac_ext, and return whether this succeeded. 1695ac_fn_c_try_link () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1699 if { { ac_try="$ac_link" 1700case "(($ac_try" in 1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1702 *) ac_try_echo=$ac_try;; 1703esac 1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1705printf "%s\n" "$ac_try_echo"; } >&5 1706 (eval "$ac_link") 2>conftest.err 1707 ac_status=$? 1708 if test -s conftest.err; then 1709 grep -v '^ *+' conftest.err >conftest.er1 1710 cat conftest.er1 >&5 1711 mv -f conftest.er1 conftest.err 1712 fi 1713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { 1715 test -z "$ac_c_werror_flag" || 1716 test ! -s conftest.err 1717 } && test -s conftest$ac_exeext && { 1718 test "$cross_compiling" = yes || 1719 test -x conftest$ac_exeext 1720 } 1721then : 1722 ac_retval=0 1723else $as_nop 1724 printf "%s\n" "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1731 # interfere with the next link command; also delete a directory that is 1732 # left behind by Apple's compiler. We do this before executing the actions. 1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_link 1738 1739# ac_fn_c_check_func LINENO FUNC VAR 1740# ---------------------------------- 1741# Tests whether FUNC exists, setting the cache variable VAR accordingly 1742ac_fn_c_check_func () 1743{ 1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1746printf %s "checking for $2... " >&6; } 1747if eval test \${$3+y} 1748then : 1749 printf %s "(cached) " >&6 1750else $as_nop 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1754 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1755#define $2 innocuous_$2 1756 1757/* System header to define __stub macros and hopefully few prototypes, 1758 which can conflict with char $2 (); below. */ 1759 1760#include <limits.h> 1761#undef $2 1762 1763/* Override any GCC internal prototype to avoid an error. 1764 Use char because int might match the return type of a GCC 1765 builtin and then its argument prototype would still apply. */ 1766#ifdef __cplusplus 1767extern "C" 1768#endif 1769char $2 (); 1770/* The GNU C library defines this for functions which it implements 1771 to always fail with ENOSYS. Some functions are actually named 1772 something starting with __ and the normal name is an alias. */ 1773#if defined __stub_$2 || defined __stub___$2 1774choke me 1775#endif 1776 1777int 1778main (void) 1779{ 1780return $2 (); 1781 ; 1782 return 0; 1783} 1784_ACEOF 1785if ac_fn_c_try_link "$LINENO" 1786then : 1787 eval "$3=yes" 1788else $as_nop 1789 eval "$3=no" 1790fi 1791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1792 conftest$ac_exeext conftest.$ac_ext 1793fi 1794eval ac_res=\$$3 1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1796printf "%s\n" "$ac_res" >&6; } 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 1799} # ac_fn_c_check_func 1800 1801# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1802# ------------------------------------------------------------------ 1803# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1804# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1805ac_fn_check_decl () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 as_decl_name=`echo $2|sed 's/ *(.*//'` 1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1810printf %s "checking whether $as_decl_name is declared... " >&6; } 1811if eval test \${$3+y} 1812then : 1813 printf %s "(cached) " >&6 1814else $as_nop 1815 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1816 eval ac_save_FLAGS=\$$6 1817 as_fn_append $6 " $5" 1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1819/* end confdefs.h. */ 1820$4 1821int 1822main (void) 1823{ 1824#ifndef $as_decl_name 1825#ifdef __cplusplus 1826 (void) $as_decl_use; 1827#else 1828 (void) $as_decl_name; 1829#endif 1830#endif 1831 1832 ; 1833 return 0; 1834} 1835_ACEOF 1836if ac_fn_c_try_compile "$LINENO" 1837then : 1838 eval "$3=yes" 1839else $as_nop 1840 eval "$3=no" 1841fi 1842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1843 eval $6=\$ac_save_FLAGS 1844 1845fi 1846eval ac_res=\$$3 1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1848printf "%s\n" "$ac_res" >&6; } 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 1851} # ac_fn_check_decl 1852ac_configure_args_raw= 1853for ac_arg 1854do 1855 case $ac_arg in 1856 *\'*) 1857 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1858 esac 1859 as_fn_append ac_configure_args_raw " '$ac_arg'" 1860done 1861 1862case $ac_configure_args_raw in 1863 *$as_nl*) 1864 ac_safe_unquote= ;; 1865 *) 1866 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1867 ac_unsafe_a="$ac_unsafe_z#~" 1868 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1869 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1870esac 1871 1872cat >config.log <<_ACEOF 1873This file contains any messages produced by compilers while 1874running configure, to aid debugging if configure makes a mistake. 1875 1876It was created by libxshmfence $as_me 1.3.1, which was 1877generated by GNU Autoconf 2.71. Invocation command line was 1878 1879 $ $0$ac_configure_args_raw 1880 1881_ACEOF 1882exec 5>>config.log 1883{ 1884cat <<_ASUNAME 1885## --------- ## 1886## Platform. ## 1887## --------- ## 1888 1889hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1890uname -m = `(uname -m) 2>/dev/null || echo unknown` 1891uname -r = `(uname -r) 2>/dev/null || echo unknown` 1892uname -s = `(uname -s) 2>/dev/null || echo unknown` 1893uname -v = `(uname -v) 2>/dev/null || echo unknown` 1894 1895/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1896/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1897 1898/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1899/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1900/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1901/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1902/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1903/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1904/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1905 1906_ASUNAME 1907 1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1909for as_dir in $PATH 1910do 1911 IFS=$as_save_IFS 1912 case $as_dir in #((( 1913 '') as_dir=./ ;; 1914 */) ;; 1915 *) as_dir=$as_dir/ ;; 1916 esac 1917 printf "%s\n" "PATH: $as_dir" 1918 done 1919IFS=$as_save_IFS 1920 1921} >&5 1922 1923cat >&5 <<_ACEOF 1924 1925 1926## ----------- ## 1927## Core tests. ## 1928## ----------- ## 1929 1930_ACEOF 1931 1932 1933# Keep a trace of the command line. 1934# Strip out --no-create and --no-recursion so they do not pile up. 1935# Strip out --silent because we don't want to record it for future runs. 1936# Also quote any args containing shell meta-characters. 1937# Make two passes to allow for proper duplicate-argument suppression. 1938ac_configure_args= 1939ac_configure_args0= 1940ac_configure_args1= 1941ac_must_keep_next=false 1942for ac_pass in 1 2 1943do 1944 for ac_arg 1945 do 1946 case $ac_arg in 1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1949 | -silent | --silent | --silen | --sile | --sil) 1950 continue ;; 1951 *\'*) 1952 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1953 esac 1954 case $ac_pass in 1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1956 2) 1957 as_fn_append ac_configure_args1 " '$ac_arg'" 1958 if test $ac_must_keep_next = true; then 1959 ac_must_keep_next=false # Got value, back to normal. 1960 else 1961 case $ac_arg in 1962 *=* | --config-cache | -C | -disable-* | --disable-* \ 1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1965 | -with-* | --with-* | -without-* | --without-* | --x) 1966 case "$ac_configure_args0 " in 1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1968 esac 1969 ;; 1970 -* ) ac_must_keep_next=true ;; 1971 esac 1972 fi 1973 as_fn_append ac_configure_args " '$ac_arg'" 1974 ;; 1975 esac 1976 done 1977done 1978{ ac_configure_args0=; unset ac_configure_args0;} 1979{ ac_configure_args1=; unset ac_configure_args1;} 1980 1981# When interrupted or exit'd, cleanup temporary files, and complete 1982# config.log. We remove comments because anyway the quotes in there 1983# would cause problems or look ugly. 1984# WARNING: Use '\'' to represent an apostrophe within the trap. 1985# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1986trap 'exit_status=$? 1987 # Sanitize IFS. 1988 IFS=" "" $as_nl" 1989 # Save into config.log some information that might help in debugging. 1990 { 1991 echo 1992 1993 printf "%s\n" "## ---------------- ## 1994## Cache variables. ## 1995## ---------------- ##" 1996 echo 1997 # The following way of writing the cache mishandles newlines in values, 1998( 1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2000 eval ac_val=\$$ac_var 2001 case $ac_val in #( 2002 *${as_nl}*) 2003 case $ac_var in #( 2004 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2005printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2006 esac 2007 case $ac_var in #( 2008 _ | IFS | as_nl) ;; #( 2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2010 *) { eval $ac_var=; unset $ac_var;} ;; 2011 esac ;; 2012 esac 2013 done 2014 (set) 2>&1 | 2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2016 *${as_nl}ac_space=\ *) 2017 sed -n \ 2018 "s/'\''/'\''\\\\'\'''\''/g; 2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2020 ;; #( 2021 *) 2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2023 ;; 2024 esac | 2025 sort 2026) 2027 echo 2028 2029 printf "%s\n" "## ----------------- ## 2030## Output variables. ## 2031## ----------------- ##" 2032 echo 2033 for ac_var in $ac_subst_vars 2034 do 2035 eval ac_val=\$$ac_var 2036 case $ac_val in 2037 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038 esac 2039 printf "%s\n" "$ac_var='\''$ac_val'\''" 2040 done | sort 2041 echo 2042 2043 if test -n "$ac_subst_files"; then 2044 printf "%s\n" "## ------------------- ## 2045## File substitutions. ## 2046## ------------------- ##" 2047 echo 2048 for ac_var in $ac_subst_files 2049 do 2050 eval ac_val=\$$ac_var 2051 case $ac_val in 2052 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2053 esac 2054 printf "%s\n" "$ac_var='\''$ac_val'\''" 2055 done | sort 2056 echo 2057 fi 2058 2059 if test -s confdefs.h; then 2060 printf "%s\n" "## ----------- ## 2061## confdefs.h. ## 2062## ----------- ##" 2063 echo 2064 cat confdefs.h 2065 echo 2066 fi 2067 test "$ac_signal" != 0 && 2068 printf "%s\n" "$as_me: caught signal $ac_signal" 2069 printf "%s\n" "$as_me: exit $exit_status" 2070 } >&5 2071 rm -f core *.core core.conftest.* && 2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2073 exit $exit_status 2074' 0 2075for ac_signal in 1 2 13 15; do 2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2077done 2078ac_signal=0 2079 2080# confdefs.h avoids OS command line length limits that DEFS can exceed. 2081rm -f -r conftest* confdefs.h 2082 2083printf "%s\n" "/* confdefs.h */" > confdefs.h 2084 2085# Predefined preprocessor variables. 2086 2087printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2088 2089printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2090 2091printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2092 2093printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2094 2095printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2096 2097printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2098 2099 2100# Let the site file select an alternate cache file if it wants to. 2101# Prefer an explicitly selected file to automatically selected ones. 2102if test -n "$CONFIG_SITE"; then 2103 ac_site_files="$CONFIG_SITE" 2104elif test "x$prefix" != xNONE; then 2105 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2106else 2107 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2108fi 2109 2110for ac_site_file in $ac_site_files 2111do 2112 case $ac_site_file in #( 2113 */*) : 2114 ;; #( 2115 *) : 2116 ac_site_file=./$ac_site_file ;; 2117esac 2118 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2120printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2121 sed 's/^/| /' "$ac_site_file" >&5 2122 . "$ac_site_file" \ 2123 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2124printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2125as_fn_error $? "failed to load site script $ac_site_file 2126See \`config.log' for more details" "$LINENO" 5; } 2127 fi 2128done 2129 2130if test -r "$cache_file"; then 2131 # Some versions of bash will fail to source /dev/null (special files 2132 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2133 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2135printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2136 case $cache_file in 2137 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2138 *) . "./$cache_file";; 2139 esac 2140 fi 2141else 2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2143printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2144 >$cache_file 2145fi 2146 2147as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 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 (p, i) 2164 char **p; 2165 int i; 2166{ 2167 return p[i]; 2168} 2169static char *f (char * (*g) (char **, int), char **p, ...) 2170{ 2171 char *s; 2172 va_list v; 2173 va_start (v,p); 2174 s = g (p, va_arg (v,int)); 2175 va_end (v); 2176 return s; 2177} 2178 2179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2180 function prototypes and stuff, but not \xHH hex character constants. 2181 These do not provoke an error unfortunately, instead are silently treated 2182 as an "x". The following induces an error, until -std is added to get 2183 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2184 array size at least. It is necessary to write \x00 == 0 to get something 2185 that is true only with -std. */ 2186int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2187 2188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2189 inside strings and character constants. */ 2190#define FOO(x) '\''x'\'' 2191int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2192 2193int test (int i, double x); 2194struct s1 {int (*f) (int a);}; 2195struct s2 {int (*f) (double a);}; 2196int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2197 int, int);' 2198 2199# Test code for whether the C compiler supports C89 (body of main). 2200ac_c_conftest_c89_main=' 2201ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2202' 2203 2204# Test code for whether the C compiler supports C99 (global declarations) 2205ac_c_conftest_c99_globals=' 2206// Does the compiler advertise C99 conformance? 2207#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2208# error "Compiler does not advertise C99 conformance" 2209#endif 2210 2211#include <stdbool.h> 2212extern int puts (const char *); 2213extern int printf (const char *, ...); 2214extern int dprintf (int, const char *, ...); 2215extern void *malloc (size_t); 2216 2217// Check varargs macros. These examples are taken from C99 6.10.3.5. 2218// dprintf is used instead of fprintf to avoid needing to declare 2219// FILE and stderr. 2220#define debug(...) dprintf (2, __VA_ARGS__) 2221#define showlist(...) puts (#__VA_ARGS__) 2222#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2223static void 2224test_varargs_macros (void) 2225{ 2226 int x = 1234; 2227 int y = 5678; 2228 debug ("Flag"); 2229 debug ("X = %d\n", x); 2230 showlist (The first, second, and third items.); 2231 report (x>y, "x is %d but y is %d", x, y); 2232} 2233 2234// Check long long types. 2235#define BIG64 18446744073709551615ull 2236#define BIG32 4294967295ul 2237#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2238#if !BIG_OK 2239 #error "your preprocessor is broken" 2240#endif 2241#if BIG_OK 2242#else 2243 #error "your preprocessor is broken" 2244#endif 2245static long long int bignum = -9223372036854775807LL; 2246static unsigned long long int ubignum = BIG64; 2247 2248struct incomplete_array 2249{ 2250 int datasize; 2251 double data[]; 2252}; 2253 2254struct named_init { 2255 int number; 2256 const wchar_t *name; 2257 double average; 2258}; 2259 2260typedef const char *ccp; 2261 2262static inline int 2263test_restrict (ccp restrict text) 2264{ 2265 // See if C++-style comments work. 2266 // Iterate through items via the restricted pointer. 2267 // Also check for declarations in for loops. 2268 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2269 continue; 2270 return 0; 2271} 2272 2273// Check varargs and va_copy. 2274static bool 2275test_varargs (const char *format, ...) 2276{ 2277 va_list args; 2278 va_start (args, format); 2279 va_list args_copy; 2280 va_copy (args_copy, args); 2281 2282 const char *str = ""; 2283 int number = 0; 2284 float fnumber = 0; 2285 2286 while (*format) 2287 { 2288 switch (*format++) 2289 { 2290 case '\''s'\'': // string 2291 str = va_arg (args_copy, const char *); 2292 break; 2293 case '\''d'\'': // int 2294 number = va_arg (args_copy, int); 2295 break; 2296 case '\''f'\'': // float 2297 fnumber = va_arg (args_copy, double); 2298 break; 2299 default: 2300 break; 2301 } 2302 } 2303 va_end (args_copy); 2304 va_end (args); 2305 2306 return *str && number && fnumber; 2307} 2308' 2309 2310# Test code for whether the C compiler supports C99 (body of main). 2311ac_c_conftest_c99_main=' 2312 // Check bool. 2313 _Bool success = false; 2314 success |= (argc != 0); 2315 2316 // Check restrict. 2317 if (test_restrict ("String literal") == 0) 2318 success = true; 2319 char *restrict newvar = "Another string"; 2320 2321 // Check varargs. 2322 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2323 test_varargs_macros (); 2324 2325 // Check flexible array members. 2326 struct incomplete_array *ia = 2327 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2328 ia->datasize = 10; 2329 for (int i = 0; i < ia->datasize; ++i) 2330 ia->data[i] = i * 1.234; 2331 2332 // Check named initializers. 2333 struct named_init ni = { 2334 .number = 34, 2335 .name = L"Test wide string", 2336 .average = 543.34343, 2337 }; 2338 2339 ni.number = 58; 2340 2341 int dynamic_array[ni.number]; 2342 dynamic_array[0] = argv[0][0]; 2343 dynamic_array[ni.number - 1] = 543; 2344 2345 // work around unused variable warnings 2346 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2347 || dynamic_array[ni.number - 1] != 543); 2348' 2349 2350# Test code for whether the C compiler supports C11 (global declarations) 2351ac_c_conftest_c11_globals=' 2352// Does the compiler advertise C11 conformance? 2353#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2354# error "Compiler does not advertise C11 conformance" 2355#endif 2356 2357// Check _Alignas. 2358char _Alignas (double) aligned_as_double; 2359char _Alignas (0) no_special_alignment; 2360extern char aligned_as_int; 2361char _Alignas (0) _Alignas (int) aligned_as_int; 2362 2363// Check _Alignof. 2364enum 2365{ 2366 int_alignment = _Alignof (int), 2367 int_array_alignment = _Alignof (int[100]), 2368 char_alignment = _Alignof (char) 2369}; 2370_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2371 2372// Check _Noreturn. 2373int _Noreturn does_not_return (void) { for (;;) continue; } 2374 2375// Check _Static_assert. 2376struct test_static_assert 2377{ 2378 int x; 2379 _Static_assert (sizeof (int) <= sizeof (long int), 2380 "_Static_assert does not work in struct"); 2381 long int y; 2382}; 2383 2384// Check UTF-8 literals. 2385#define u8 syntax error! 2386char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2387 2388// Check duplicate typedefs. 2389typedef long *long_ptr; 2390typedef long int *long_ptr; 2391typedef long_ptr long_ptr; 2392 2393// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2394struct anonymous 2395{ 2396 union { 2397 struct { int i; int j; }; 2398 struct { int k; long int l; } w; 2399 }; 2400 int m; 2401} v1; 2402' 2403 2404# Test code for whether the C compiler supports C11 (body of main). 2405ac_c_conftest_c11_main=' 2406 _Static_assert ((offsetof (struct anonymous, i) 2407 == offsetof (struct anonymous, w.k)), 2408 "Anonymous union alignment botch"); 2409 v1.i = 2; 2410 v1.w.k = 5; 2411 ok |= v1.i != 5; 2412' 2413 2414# Test code for whether the C compiler supports C11 (complete). 2415ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2416${ac_c_conftest_c99_globals} 2417${ac_c_conftest_c11_globals} 2418 2419int 2420main (int argc, char **argv) 2421{ 2422 int ok = 0; 2423 ${ac_c_conftest_c89_main} 2424 ${ac_c_conftest_c99_main} 2425 ${ac_c_conftest_c11_main} 2426 return ok; 2427} 2428" 2429 2430# Test code for whether the C compiler supports C99 (complete). 2431ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2432${ac_c_conftest_c99_globals} 2433 2434int 2435main (int argc, char **argv) 2436{ 2437 int ok = 0; 2438 ${ac_c_conftest_c89_main} 2439 ${ac_c_conftest_c99_main} 2440 return ok; 2441} 2442" 2443 2444# Test code for whether the C compiler supports C89 (complete). 2445ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2446 2447int 2448main (int argc, char **argv) 2449{ 2450 int ok = 0; 2451 ${ac_c_conftest_c89_main} 2452 return ok; 2453} 2454" 2455 2456as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2457as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2458as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2459as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2460as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2461as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2462as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2463as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2464as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2465as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2466 2467# Auxiliary files required by this configure script. 2468ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2469 2470# Locations in which to look for auxiliary files. 2471ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2472 2473# Search for a directory containing all of the required auxiliary files, 2474# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2475# If we don't find one directory that contains all the files we need, 2476# we report the set of missing files from the *first* directory in 2477# $ac_aux_dir_candidates and give up. 2478ac_missing_aux_files="" 2479ac_first_candidate=: 2480printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482as_found=false 2483for as_dir in $ac_aux_dir_candidates 2484do 2485 IFS=$as_save_IFS 2486 case $as_dir in #((( 2487 '') as_dir=./ ;; 2488 */) ;; 2489 *) as_dir=$as_dir/ ;; 2490 esac 2491 as_found=: 2492 2493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2494 ac_aux_dir_found=yes 2495 ac_install_sh= 2496 for ac_aux in $ac_aux_files 2497 do 2498 # As a special case, if "install-sh" is required, that requirement 2499 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2500 # and $ac_install_sh is set appropriately for whichever one is found. 2501 if test x"$ac_aux" = x"install-sh" 2502 then 2503 if test -f "${as_dir}install-sh"; then 2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2505 ac_install_sh="${as_dir}install-sh -c" 2506 elif test -f "${as_dir}install.sh"; then 2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2508 ac_install_sh="${as_dir}install.sh -c" 2509 elif test -f "${as_dir}shtool"; then 2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2511 ac_install_sh="${as_dir}shtool install -c" 2512 else 2513 ac_aux_dir_found=no 2514 if $ac_first_candidate; then 2515 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2516 else 2517 break 2518 fi 2519 fi 2520 else 2521 if test -f "${as_dir}${ac_aux}"; then 2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2523 else 2524 ac_aux_dir_found=no 2525 if $ac_first_candidate; then 2526 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2527 else 2528 break 2529 fi 2530 fi 2531 fi 2532 done 2533 if test "$ac_aux_dir_found" = yes; then 2534 ac_aux_dir="$as_dir" 2535 break 2536 fi 2537 ac_first_candidate=false 2538 2539 as_found=false 2540done 2541IFS=$as_save_IFS 2542if $as_found 2543then : 2544 2545else $as_nop 2546 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2547fi 2548 2549 2550# These three variables are undocumented and unsupported, 2551# and are intended to be withdrawn in a future Autoconf release. 2552# They can cause serious problems if a builder's source tree is in a directory 2553# whose full name contains unusual characters. 2554if test -f "${ac_aux_dir}config.guess"; then 2555 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2556fi 2557if test -f "${ac_aux_dir}config.sub"; then 2558 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2559fi 2560if test -f "$ac_aux_dir/configure"; then 2561 ac_configure="$SHELL ${ac_aux_dir}configure" 2562fi 2563 2564# Check that the precious variables saved in the cache have kept the same 2565# value. 2566ac_cache_corrupted=false 2567for ac_var in $ac_precious_vars; do 2568 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2569 eval ac_new_set=\$ac_env_${ac_var}_set 2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2571 eval ac_new_val=\$ac_env_${ac_var}_value 2572 case $ac_old_set,$ac_new_set in 2573 set,) 2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2575printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2576 ac_cache_corrupted=: ;; 2577 ,set) 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2579printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2580 ac_cache_corrupted=: ;; 2581 ,);; 2582 *) 2583 if test "x$ac_old_val" != "x$ac_new_val"; then 2584 # differences in whitespace do not lead to failure. 2585 ac_old_val_w=`echo x $ac_old_val` 2586 ac_new_val_w=`echo x $ac_new_val` 2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2589printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2590 ac_cache_corrupted=: 2591 else 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2593printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2594 eval $ac_var=\$ac_old_val 2595 fi 2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2597printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2599printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2600 fi;; 2601 esac 2602 # Pass precious variables to config.status. 2603 if test "$ac_new_set" = set; then 2604 case $ac_new_val in 2605 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2606 *) ac_arg=$ac_var=$ac_new_val ;; 2607 esac 2608 case " $ac_configure_args " in 2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2610 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2611 esac 2612 fi 2613done 2614if $ac_cache_corrupted; then 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2616printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2618printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2619 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2620 and start over" "$LINENO" 5 2621fi 2622## -------------------- ## 2623## Main body of script. ## 2624## -------------------- ## 2625 2626ac_ext=c 2627ac_cpp='$CPP $CPPFLAGS' 2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2630ac_compiler_gnu=$ac_cv_c_compiler_gnu 2631 2632 2633 2634ac_config_headers="$ac_config_headers config.h" 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648# Expand $ac_aux_dir to an absolute path. 2649am_aux_dir=`cd "$ac_aux_dir" && pwd` 2650 2651ac_ext=c 2652ac_cpp='$CPP $CPPFLAGS' 2653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2655ac_compiler_gnu=$ac_cv_c_compiler_gnu 2656if test -n "$ac_tool_prefix"; then 2657 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2658set dummy ${ac_tool_prefix}gcc; ac_word=$2 2659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2660printf %s "checking for $ac_word... " >&6; } 2661if test ${ac_cv_prog_CC+y} 2662then : 2663 printf %s "(cached) " >&6 2664else $as_nop 2665 if test -n "$CC"; then 2666 ac_cv_prog_CC="$CC" # Let the user override the test. 2667else 2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2669for as_dir in $PATH 2670do 2671 IFS=$as_save_IFS 2672 case $as_dir in #((( 2673 '') as_dir=./ ;; 2674 */) ;; 2675 *) as_dir=$as_dir/ ;; 2676 esac 2677 for ac_exec_ext in '' $ac_executable_extensions; do 2678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2679 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2681 break 2 2682 fi 2683done 2684 done 2685IFS=$as_save_IFS 2686 2687fi 2688fi 2689CC=$ac_cv_prog_CC 2690if test -n "$CC"; then 2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2692printf "%s\n" "$CC" >&6; } 2693else 2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2695printf "%s\n" "no" >&6; } 2696fi 2697 2698 2699fi 2700if test -z "$ac_cv_prog_CC"; then 2701 ac_ct_CC=$CC 2702 # Extract the first word of "gcc", so it can be a program name with args. 2703set dummy gcc; ac_word=$2 2704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2705printf %s "checking for $ac_word... " >&6; } 2706if test ${ac_cv_prog_ac_ct_CC+y} 2707then : 2708 printf %s "(cached) " >&6 2709else $as_nop 2710 if test -n "$ac_ct_CC"; then 2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2712else 2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714for as_dir in $PATH 2715do 2716 IFS=$as_save_IFS 2717 case $as_dir in #((( 2718 '') as_dir=./ ;; 2719 */) ;; 2720 *) as_dir=$as_dir/ ;; 2721 esac 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2724 ac_cv_prog_ac_ct_CC="gcc" 2725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2726 break 2 2727 fi 2728done 2729 done 2730IFS=$as_save_IFS 2731 2732fi 2733fi 2734ac_ct_CC=$ac_cv_prog_ac_ct_CC 2735if test -n "$ac_ct_CC"; then 2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2737printf "%s\n" "$ac_ct_CC" >&6; } 2738else 2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2740printf "%s\n" "no" >&6; } 2741fi 2742 2743 if test "x$ac_ct_CC" = x; then 2744 CC="" 2745 else 2746 case $cross_compiling:$ac_tool_warned in 2747yes:) 2748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2749printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2750ac_tool_warned=yes ;; 2751esac 2752 CC=$ac_ct_CC 2753 fi 2754else 2755 CC="$ac_cv_prog_CC" 2756fi 2757 2758if test -z "$CC"; then 2759 if test -n "$ac_tool_prefix"; then 2760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2761set dummy ${ac_tool_prefix}cc; ac_word=$2 2762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2763printf %s "checking for $ac_word... " >&6; } 2764if test ${ac_cv_prog_CC+y} 2765then : 2766 printf %s "(cached) " >&6 2767else $as_nop 2768 if test -n "$CC"; then 2769 ac_cv_prog_CC="$CC" # Let the user override the test. 2770else 2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2772for as_dir in $PATH 2773do 2774 IFS=$as_save_IFS 2775 case $as_dir in #((( 2776 '') as_dir=./ ;; 2777 */) ;; 2778 *) as_dir=$as_dir/ ;; 2779 esac 2780 for ac_exec_ext in '' $ac_executable_extensions; do 2781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2782 ac_cv_prog_CC="${ac_tool_prefix}cc" 2783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2784 break 2 2785 fi 2786done 2787 done 2788IFS=$as_save_IFS 2789 2790fi 2791fi 2792CC=$ac_cv_prog_CC 2793if test -n "$CC"; then 2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2795printf "%s\n" "$CC" >&6; } 2796else 2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2798printf "%s\n" "no" >&6; } 2799fi 2800 2801 2802 fi 2803fi 2804if test -z "$CC"; then 2805 # Extract the first word of "cc", so it can be a program name with args. 2806set dummy cc; ac_word=$2 2807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2808printf %s "checking for $ac_word... " >&6; } 2809if test ${ac_cv_prog_CC+y} 2810then : 2811 printf %s "(cached) " >&6 2812else $as_nop 2813 if test -n "$CC"; then 2814 ac_cv_prog_CC="$CC" # Let the user override the test. 2815else 2816 ac_prog_rejected=no 2817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH 2819do 2820 IFS=$as_save_IFS 2821 case $as_dir in #((( 2822 '') as_dir=./ ;; 2823 */) ;; 2824 *) as_dir=$as_dir/ ;; 2825 esac 2826 for ac_exec_ext in '' $ac_executable_extensions; do 2827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2828 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2829 ac_prog_rejected=yes 2830 continue 2831 fi 2832 ac_cv_prog_CC="cc" 2833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2834 break 2 2835 fi 2836done 2837 done 2838IFS=$as_save_IFS 2839 2840if test $ac_prog_rejected = yes; then 2841 # We found a bogon in the path, so make sure we never use it. 2842 set dummy $ac_cv_prog_CC 2843 shift 2844 if test $# != 0; then 2845 # We chose a different compiler from the bogus one. 2846 # However, it has the same basename, so the bogon will be chosen 2847 # first if we set CC to just the basename; use the full file name. 2848 shift 2849 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2850 fi 2851fi 2852fi 2853fi 2854CC=$ac_cv_prog_CC 2855if test -n "$CC"; then 2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2857printf "%s\n" "$CC" >&6; } 2858else 2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2860printf "%s\n" "no" >&6; } 2861fi 2862 2863 2864fi 2865if test -z "$CC"; then 2866 if test -n "$ac_tool_prefix"; then 2867 for ac_prog in cl.exe 2868 do 2869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2870set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2872printf %s "checking for $ac_word... " >&6; } 2873if test ${ac_cv_prog_CC+y} 2874then : 2875 printf %s "(cached) " >&6 2876else $as_nop 2877 if test -n "$CC"; then 2878 ac_cv_prog_CC="$CC" # Let the user override the test. 2879else 2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2881for as_dir in $PATH 2882do 2883 IFS=$as_save_IFS 2884 case $as_dir in #((( 2885 '') as_dir=./ ;; 2886 */) ;; 2887 *) as_dir=$as_dir/ ;; 2888 esac 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2891 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896 done 2897IFS=$as_save_IFS 2898 2899fi 2900fi 2901CC=$ac_cv_prog_CC 2902if test -n "$CC"; then 2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2904printf "%s\n" "$CC" >&6; } 2905else 2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2907printf "%s\n" "no" >&6; } 2908fi 2909 2910 2911 test -n "$CC" && break 2912 done 2913fi 2914if test -z "$CC"; then 2915 ac_ct_CC=$CC 2916 for ac_prog in cl.exe 2917do 2918 # Extract the first word of "$ac_prog", so it can be a program name with args. 2919set dummy $ac_prog; ac_word=$2 2920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2921printf %s "checking for $ac_word... " >&6; } 2922if test ${ac_cv_prog_ac_ct_CC+y} 2923then : 2924 printf %s "(cached) " >&6 2925else $as_nop 2926 if test -n "$ac_ct_CC"; then 2927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 case $as_dir in #((( 2934 '') as_dir=./ ;; 2935 */) ;; 2936 *) as_dir=$as_dir/ ;; 2937 esac 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2940 ac_cv_prog_ac_ct_CC="$ac_prog" 2941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948fi 2949fi 2950ac_ct_CC=$ac_cv_prog_ac_ct_CC 2951if test -n "$ac_ct_CC"; then 2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2953printf "%s\n" "$ac_ct_CC" >&6; } 2954else 2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956printf "%s\n" "no" >&6; } 2957fi 2958 2959 2960 test -n "$ac_ct_CC" && break 2961done 2962 2963 if test "x$ac_ct_CC" = x; then 2964 CC="" 2965 else 2966 case $cross_compiling:$ac_tool_warned in 2967yes:) 2968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2969printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2970ac_tool_warned=yes ;; 2971esac 2972 CC=$ac_ct_CC 2973 fi 2974fi 2975 2976fi 2977if test -z "$CC"; then 2978 if test -n "$ac_tool_prefix"; then 2979 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2980set dummy ${ac_tool_prefix}clang; ac_word=$2 2981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2982printf %s "checking for $ac_word... " >&6; } 2983if test ${ac_cv_prog_CC+y} 2984then : 2985 printf %s "(cached) " >&6 2986else $as_nop 2987 if test -n "$CC"; then 2988 ac_cv_prog_CC="$CC" # Let the user override the test. 2989else 2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2991for as_dir in $PATH 2992do 2993 IFS=$as_save_IFS 2994 case $as_dir in #((( 2995 '') as_dir=./ ;; 2996 */) ;; 2997 *) as_dir=$as_dir/ ;; 2998 esac 2999 for ac_exec_ext in '' $ac_executable_extensions; do 3000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3001 ac_cv_prog_CC="${ac_tool_prefix}clang" 3002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3003 break 2 3004 fi 3005done 3006 done 3007IFS=$as_save_IFS 3008 3009fi 3010fi 3011CC=$ac_cv_prog_CC 3012if test -n "$CC"; then 3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3014printf "%s\n" "$CC" >&6; } 3015else 3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3017printf "%s\n" "no" >&6; } 3018fi 3019 3020 3021fi 3022if test -z "$ac_cv_prog_CC"; then 3023 ac_ct_CC=$CC 3024 # Extract the first word of "clang", so it can be a program name with args. 3025set dummy clang; ac_word=$2 3026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3027printf %s "checking for $ac_word... " >&6; } 3028if test ${ac_cv_prog_ac_ct_CC+y} 3029then : 3030 printf %s "(cached) " >&6 3031else $as_nop 3032 if test -n "$ac_ct_CC"; then 3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3034else 3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036for as_dir in $PATH 3037do 3038 IFS=$as_save_IFS 3039 case $as_dir in #((( 3040 '') as_dir=./ ;; 3041 */) ;; 3042 *) as_dir=$as_dir/ ;; 3043 esac 3044 for ac_exec_ext in '' $ac_executable_extensions; do 3045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3046 ac_cv_prog_ac_ct_CC="clang" 3047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3048 break 2 3049 fi 3050done 3051 done 3052IFS=$as_save_IFS 3053 3054fi 3055fi 3056ac_ct_CC=$ac_cv_prog_ac_ct_CC 3057if test -n "$ac_ct_CC"; then 3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3059printf "%s\n" "$ac_ct_CC" >&6; } 3060else 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062printf "%s\n" "no" >&6; } 3063fi 3064 3065 if test "x$ac_ct_CC" = x; then 3066 CC="" 3067 else 3068 case $cross_compiling:$ac_tool_warned in 3069yes:) 3070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3071printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3072ac_tool_warned=yes ;; 3073esac 3074 CC=$ac_ct_CC 3075 fi 3076else 3077 CC="$ac_cv_prog_CC" 3078fi 3079 3080fi 3081 3082 3083test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3084printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3085as_fn_error $? "no acceptable C compiler found in \$PATH 3086See \`config.log' for more details" "$LINENO" 5; } 3087 3088# Provide some information about the compiler. 3089printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3090set X $ac_compile 3091ac_compiler=$2 3092for ac_option in --version -v -V -qversion -version; do 3093 { { ac_try="$ac_compiler $ac_option >&5" 3094case "(($ac_try" in 3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3096 *) ac_try_echo=$ac_try;; 3097esac 3098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3099printf "%s\n" "$ac_try_echo"; } >&5 3100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3101 ac_status=$? 3102 if test -s conftest.err; then 3103 sed '10a\ 3104... rest of stderr output deleted ... 3105 10q' conftest.err >conftest.er1 3106 cat conftest.er1 >&5 3107 fi 3108 rm -f conftest.er1 conftest.err 3109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3110 test $ac_status = 0; } 3111done 3112 3113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3114/* end confdefs.h. */ 3115 3116int 3117main (void) 3118{ 3119 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124ac_clean_files_save=$ac_clean_files 3125ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3126# Try to create an executable without -o first, disregard a.out. 3127# It will help us diagnose broken compilers, and finding out an intuition 3128# of exeext. 3129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3130printf %s "checking whether the C compiler works... " >&6; } 3131ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3132 3133# The possible output files: 3134ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3135 3136ac_rmfiles= 3137for ac_file in $ac_files 3138do 3139 case $ac_file in 3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3141 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3142 esac 3143done 3144rm -f $ac_rmfiles 3145 3146if { { ac_try="$ac_link_default" 3147case "(($ac_try" in 3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3149 *) ac_try_echo=$ac_try;; 3150esac 3151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3152printf "%s\n" "$ac_try_echo"; } >&5 3153 (eval "$ac_link_default") 2>&5 3154 ac_status=$? 3155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3156 test $ac_status = 0; } 3157then : 3158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3159# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3160# in a Makefile. We should not override ac_cv_exeext if it was cached, 3161# so that the user can short-circuit this test for compilers unknown to 3162# Autoconf. 3163for ac_file in $ac_files '' 3164do 3165 test -f "$ac_file" || continue 3166 case $ac_file in 3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3168 ;; 3169 [ab].out ) 3170 # We found the default executable, but exeext='' is most 3171 # certainly right. 3172 break;; 3173 *.* ) 3174 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3175 then :; else 3176 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3177 fi 3178 # We set ac_cv_exeext here because the later test for it is not 3179 # safe: cross compilers may not add the suffix if given an `-o' 3180 # argument, so we may need to know it at that point already. 3181 # Even if this section looks crufty: it has the advantage of 3182 # actually working. 3183 break;; 3184 * ) 3185 break;; 3186 esac 3187done 3188test "$ac_cv_exeext" = no && ac_cv_exeext= 3189 3190else $as_nop 3191 ac_file='' 3192fi 3193if test -z "$ac_file" 3194then : 3195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196printf "%s\n" "no" >&6; } 3197printf "%s\n" "$as_me: failed program was:" >&5 3198sed 's/^/| /' conftest.$ac_ext >&5 3199 3200{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3201printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3202as_fn_error 77 "C compiler cannot create executables 3203See \`config.log' for more details" "$LINENO" 5; } 3204else $as_nop 3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3206printf "%s\n" "yes" >&6; } 3207fi 3208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3209printf %s "checking for C compiler default output file name... " >&6; } 3210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3211printf "%s\n" "$ac_file" >&6; } 3212ac_exeext=$ac_cv_exeext 3213 3214rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3215ac_clean_files=$ac_clean_files_save 3216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3217printf %s "checking for suffix of executables... " >&6; } 3218if { { ac_try="$ac_link" 3219case "(($ac_try" in 3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3221 *) ac_try_echo=$ac_try;; 3222esac 3223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3224printf "%s\n" "$ac_try_echo"; } >&5 3225 (eval "$ac_link") 2>&5 3226 ac_status=$? 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3228 test $ac_status = 0; } 3229then : 3230 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3231# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3232# work properly (i.e., refer to `conftest.exe'), while it won't with 3233# `rm'. 3234for ac_file in conftest.exe conftest conftest.*; do 3235 test -f "$ac_file" || continue 3236 case $ac_file in 3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3239 break;; 3240 * ) break;; 3241 esac 3242done 3243else $as_nop 3244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3245printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3246as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3247See \`config.log' for more details" "$LINENO" 5; } 3248fi 3249rm -f conftest conftest$ac_cv_exeext 3250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3251printf "%s\n" "$ac_cv_exeext" >&6; } 3252 3253rm -f conftest.$ac_ext 3254EXEEXT=$ac_cv_exeext 3255ac_exeext=$EXEEXT 3256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257/* end confdefs.h. */ 3258#include <stdio.h> 3259int 3260main (void) 3261{ 3262FILE *f = fopen ("conftest.out", "w"); 3263 return ferror (f) || fclose (f) != 0; 3264 3265 ; 3266 return 0; 3267} 3268_ACEOF 3269ac_clean_files="$ac_clean_files conftest.out" 3270# Check that the compiler produces executables we can run. If not, either 3271# the compiler is broken, or we cross compile. 3272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3273printf %s "checking whether we are cross compiling... " >&6; } 3274if test "$cross_compiling" != yes; then 3275 { { ac_try="$ac_link" 3276case "(($ac_try" in 3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3278 *) ac_try_echo=$ac_try;; 3279esac 3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3281printf "%s\n" "$ac_try_echo"; } >&5 3282 (eval "$ac_link") 2>&5 3283 ac_status=$? 3284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3285 test $ac_status = 0; } 3286 if { ac_try='./conftest$ac_cv_exeext' 3287 { { case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290esac 3291eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3292printf "%s\n" "$ac_try_echo"; } >&5 3293 (eval "$ac_try") 2>&5 3294 ac_status=$? 3295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; }; }; then 3297 cross_compiling=no 3298 else 3299 if test "$cross_compiling" = maybe; then 3300 cross_compiling=yes 3301 else 3302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3303printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3304as_fn_error 77 "cannot run C compiled programs. 3305If you meant to cross compile, use \`--host'. 3306See \`config.log' for more details" "$LINENO" 5; } 3307 fi 3308 fi 3309fi 3310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3311printf "%s\n" "$cross_compiling" >&6; } 3312 3313rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3314ac_clean_files=$ac_clean_files_save 3315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3316printf %s "checking for suffix of object files... " >&6; } 3317if test ${ac_cv_objext+y} 3318then : 3319 printf %s "(cached) " >&6 3320else $as_nop 3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3322/* end confdefs.h. */ 3323 3324int 3325main (void) 3326{ 3327 3328 ; 3329 return 0; 3330} 3331_ACEOF 3332rm -f conftest.o conftest.obj 3333if { { ac_try="$ac_compile" 3334case "(($ac_try" in 3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3336 *) ac_try_echo=$ac_try;; 3337esac 3338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3339printf "%s\n" "$ac_try_echo"; } >&5 3340 (eval "$ac_compile") 2>&5 3341 ac_status=$? 3342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3343 test $ac_status = 0; } 3344then : 3345 for ac_file in conftest.o conftest.obj conftest.*; do 3346 test -f "$ac_file" || continue; 3347 case $ac_file in 3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3350 break;; 3351 esac 3352done 3353else $as_nop 3354 printf "%s\n" "$as_me: failed program was:" >&5 3355sed 's/^/| /' conftest.$ac_ext >&5 3356 3357{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3358printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3359as_fn_error $? "cannot compute suffix of object files: cannot compile 3360See \`config.log' for more details" "$LINENO" 5; } 3361fi 3362rm -f conftest.$ac_cv_objext conftest.$ac_ext 3363fi 3364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3365printf "%s\n" "$ac_cv_objext" >&6; } 3366OBJEXT=$ac_cv_objext 3367ac_objext=$OBJEXT 3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3369printf %s "checking whether the compiler supports GNU C... " >&6; } 3370if test ${ac_cv_c_compiler_gnu+y} 3371then : 3372 printf %s "(cached) " >&6 3373else $as_nop 3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3375/* end confdefs.h. */ 3376 3377int 3378main (void) 3379{ 3380#ifndef __GNUC__ 3381 choke me 3382#endif 3383 3384 ; 3385 return 0; 3386} 3387_ACEOF 3388if ac_fn_c_try_compile "$LINENO" 3389then : 3390 ac_compiler_gnu=yes 3391else $as_nop 3392 ac_compiler_gnu=no 3393fi 3394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3395ac_cv_c_compiler_gnu=$ac_compiler_gnu 3396 3397fi 3398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3399printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3400ac_compiler_gnu=$ac_cv_c_compiler_gnu 3401 3402if test $ac_compiler_gnu = yes; then 3403 GCC=yes 3404else 3405 GCC= 3406fi 3407ac_test_CFLAGS=${CFLAGS+y} 3408ac_save_CFLAGS=$CFLAGS 3409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3410printf %s "checking whether $CC accepts -g... " >&6; } 3411if test ${ac_cv_prog_cc_g+y} 3412then : 3413 printf %s "(cached) " >&6 3414else $as_nop 3415 ac_save_c_werror_flag=$ac_c_werror_flag 3416 ac_c_werror_flag=yes 3417 ac_cv_prog_cc_g=no 3418 CFLAGS="-g" 3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3420/* end confdefs.h. */ 3421 3422int 3423main (void) 3424{ 3425 3426 ; 3427 return 0; 3428} 3429_ACEOF 3430if ac_fn_c_try_compile "$LINENO" 3431then : 3432 ac_cv_prog_cc_g=yes 3433else $as_nop 3434 CFLAGS="" 3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3436/* end confdefs.h. */ 3437 3438int 3439main (void) 3440{ 3441 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446if ac_fn_c_try_compile "$LINENO" 3447then : 3448 3449else $as_nop 3450 ac_c_werror_flag=$ac_save_c_werror_flag 3451 CFLAGS="-g" 3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3453/* end confdefs.h. */ 3454 3455int 3456main (void) 3457{ 3458 3459 ; 3460 return 0; 3461} 3462_ACEOF 3463if ac_fn_c_try_compile "$LINENO" 3464then : 3465 ac_cv_prog_cc_g=yes 3466fi 3467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3468fi 3469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3470fi 3471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3472 ac_c_werror_flag=$ac_save_c_werror_flag 3473fi 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3475printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3476if test $ac_test_CFLAGS; then 3477 CFLAGS=$ac_save_CFLAGS 3478elif test $ac_cv_prog_cc_g = yes; then 3479 if test "$GCC" = yes; then 3480 CFLAGS="-g -O2" 3481 else 3482 CFLAGS="-g" 3483 fi 3484else 3485 if test "$GCC" = yes; then 3486 CFLAGS="-O2" 3487 else 3488 CFLAGS= 3489 fi 3490fi 3491ac_prog_cc_stdc=no 3492if test x$ac_prog_cc_stdc = xno 3493then : 3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3495printf %s "checking for $CC option to enable C11 features... " >&6; } 3496if test ${ac_cv_prog_cc_c11+y} 3497then : 3498 printf %s "(cached) " >&6 3499else $as_nop 3500 ac_cv_prog_cc_c11=no 3501ac_save_CC=$CC 3502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3503/* end confdefs.h. */ 3504$ac_c_conftest_c11_program 3505_ACEOF 3506for ac_arg in '' -std=gnu11 3507do 3508 CC="$ac_save_CC $ac_arg" 3509 if ac_fn_c_try_compile "$LINENO" 3510then : 3511 ac_cv_prog_cc_c11=$ac_arg 3512fi 3513rm -f core conftest.err conftest.$ac_objext conftest.beam 3514 test "x$ac_cv_prog_cc_c11" != "xno" && break 3515done 3516rm -f conftest.$ac_ext 3517CC=$ac_save_CC 3518fi 3519 3520if test "x$ac_cv_prog_cc_c11" = xno 3521then : 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3523printf "%s\n" "unsupported" >&6; } 3524else $as_nop 3525 if test "x$ac_cv_prog_cc_c11" = x 3526then : 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3528printf "%s\n" "none needed" >&6; } 3529else $as_nop 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3531printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3532 CC="$CC $ac_cv_prog_cc_c11" 3533fi 3534 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3535 ac_prog_cc_stdc=c11 3536fi 3537fi 3538if test x$ac_prog_cc_stdc = xno 3539then : 3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3541printf %s "checking for $CC option to enable C99 features... " >&6; } 3542if test ${ac_cv_prog_cc_c99+y} 3543then : 3544 printf %s "(cached) " >&6 3545else $as_nop 3546 ac_cv_prog_cc_c99=no 3547ac_save_CC=$CC 3548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3549/* end confdefs.h. */ 3550$ac_c_conftest_c99_program 3551_ACEOF 3552for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3553do 3554 CC="$ac_save_CC $ac_arg" 3555 if ac_fn_c_try_compile "$LINENO" 3556then : 3557 ac_cv_prog_cc_c99=$ac_arg 3558fi 3559rm -f core conftest.err conftest.$ac_objext conftest.beam 3560 test "x$ac_cv_prog_cc_c99" != "xno" && break 3561done 3562rm -f conftest.$ac_ext 3563CC=$ac_save_CC 3564fi 3565 3566if test "x$ac_cv_prog_cc_c99" = xno 3567then : 3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3569printf "%s\n" "unsupported" >&6; } 3570else $as_nop 3571 if test "x$ac_cv_prog_cc_c99" = x 3572then : 3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3574printf "%s\n" "none needed" >&6; } 3575else $as_nop 3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3577printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3578 CC="$CC $ac_cv_prog_cc_c99" 3579fi 3580 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3581 ac_prog_cc_stdc=c99 3582fi 3583fi 3584if test x$ac_prog_cc_stdc = xno 3585then : 3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3587printf %s "checking for $CC option to enable C89 features... " >&6; } 3588if test ${ac_cv_prog_cc_c89+y} 3589then : 3590 printf %s "(cached) " >&6 3591else $as_nop 3592 ac_cv_prog_cc_c89=no 3593ac_save_CC=$CC 3594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3595/* end confdefs.h. */ 3596$ac_c_conftest_c89_program 3597_ACEOF 3598for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3599do 3600 CC="$ac_save_CC $ac_arg" 3601 if ac_fn_c_try_compile "$LINENO" 3602then : 3603 ac_cv_prog_cc_c89=$ac_arg 3604fi 3605rm -f core conftest.err conftest.$ac_objext conftest.beam 3606 test "x$ac_cv_prog_cc_c89" != "xno" && break 3607done 3608rm -f conftest.$ac_ext 3609CC=$ac_save_CC 3610fi 3611 3612if test "x$ac_cv_prog_cc_c89" = xno 3613then : 3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3615printf "%s\n" "unsupported" >&6; } 3616else $as_nop 3617 if test "x$ac_cv_prog_cc_c89" = x 3618then : 3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3620printf "%s\n" "none needed" >&6; } 3621else $as_nop 3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3623printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3624 CC="$CC $ac_cv_prog_cc_c89" 3625fi 3626 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3627 ac_prog_cc_stdc=c89 3628fi 3629fi 3630 3631ac_ext=c 3632ac_cpp='$CPP $CPPFLAGS' 3633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3635ac_compiler_gnu=$ac_cv_c_compiler_gnu 3636 3637 3638 ac_ext=c 3639ac_cpp='$CPP $CPPFLAGS' 3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3642ac_compiler_gnu=$ac_cv_c_compiler_gnu 3643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3644printf %s "checking whether $CC understands -c and -o together... " >&6; } 3645if test ${am_cv_prog_cc_c_o+y} 3646then : 3647 printf %s "(cached) " >&6 3648else $as_nop 3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3650/* end confdefs.h. */ 3651 3652int 3653main (void) 3654{ 3655 3656 ; 3657 return 0; 3658} 3659_ACEOF 3660 # Make sure it works both with $CC and with simple cc. 3661 # Following AC_PROG_CC_C_O, we do the test twice because some 3662 # compilers refuse to overwrite an existing .o file with -o, 3663 # though they will create one. 3664 am_cv_prog_cc_c_o=yes 3665 for am_i in 1 2; do 3666 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3667 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3668 ac_status=$? 3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3670 (exit $ac_status); } \ 3671 && test -f conftest2.$ac_objext; then 3672 : OK 3673 else 3674 am_cv_prog_cc_c_o=no 3675 break 3676 fi 3677 done 3678 rm -f core conftest* 3679 unset am_i 3680fi 3681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3682printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3683if test "$am_cv_prog_cc_c_o" != yes; then 3684 # Losing compiler, so override with the script. 3685 # FIXME: It is wrong to rewrite CC. 3686 # But if we don't then we get into trouble of one sort or another. 3687 # A longer-term fix would be to have automake use am__CC in this case, 3688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3689 CC="$am_aux_dir/compile $CC" 3690fi 3691ac_ext=c 3692ac_cpp='$CPP $CPPFLAGS' 3693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3695ac_compiler_gnu=$ac_cv_c_compiler_gnu 3696 3697 3698 3699ac_header= ac_cache= 3700for ac_item in $ac_header_c_list 3701do 3702 if test $ac_cache; then 3703 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3704 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3705 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3706 fi 3707 ac_header= ac_cache= 3708 elif test $ac_header; then 3709 ac_cache=$ac_item 3710 else 3711 ac_header=$ac_item 3712 fi 3713done 3714 3715 3716 3717 3718 3719 3720 3721 3722if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3723then : 3724 3725printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3726 3727fi 3728 3729 3730 3731 3732 3733 3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3735printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3736if test ${ac_cv_safe_to_define___extensions__+y} 3737then : 3738 printf %s "(cached) " >&6 3739else $as_nop 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742 3743# define __EXTENSIONS__ 1 3744 $ac_includes_default 3745int 3746main (void) 3747{ 3748 3749 ; 3750 return 0; 3751} 3752_ACEOF 3753if ac_fn_c_try_compile "$LINENO" 3754then : 3755 ac_cv_safe_to_define___extensions__=yes 3756else $as_nop 3757 ac_cv_safe_to_define___extensions__=no 3758fi 3759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3760fi 3761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3762printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3763 3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3765printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3766if test ${ac_cv_should_define__xopen_source+y} 3767then : 3768 printf %s "(cached) " >&6 3769else $as_nop 3770 ac_cv_should_define__xopen_source=no 3771 if test $ac_cv_header_wchar_h = yes 3772then : 3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3774/* end confdefs.h. */ 3775 3776 #include <wchar.h> 3777 mbstate_t x; 3778int 3779main (void) 3780{ 3781 3782 ; 3783 return 0; 3784} 3785_ACEOF 3786if ac_fn_c_try_compile "$LINENO" 3787then : 3788 3789else $as_nop 3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3791/* end confdefs.h. */ 3792 3793 #define _XOPEN_SOURCE 500 3794 #include <wchar.h> 3795 mbstate_t x; 3796int 3797main (void) 3798{ 3799 3800 ; 3801 return 0; 3802} 3803_ACEOF 3804if ac_fn_c_try_compile "$LINENO" 3805then : 3806 ac_cv_should_define__xopen_source=yes 3807fi 3808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3809fi 3810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3811fi 3812fi 3813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3814printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3815 3816 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3817 3818 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3819 3820 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3821 3822 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3823 3824 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3825 3826 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3827 3828 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3829 3830 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3831 3832 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3833 3834 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3835 3836 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3837 3838 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3839 3840 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3841 3842 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3843 3844 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3845 3846 if test $ac_cv_header_minix_config_h = yes 3847then : 3848 MINIX=yes 3849 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3850 3851 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3852 3853 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3854 3855else $as_nop 3856 MINIX= 3857fi 3858 if test $ac_cv_safe_to_define___extensions__ = yes 3859then : 3860 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3861 3862fi 3863 if test $ac_cv_should_define__xopen_source = yes 3864then : 3865 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3866 3867fi 3868 3869 3870# Initialize Automake 3871am__api_version='1.16' 3872 3873 3874 # Find a good install program. We prefer a C program (faster), 3875# so one script is as good as another. But avoid the broken or 3876# incompatible versions: 3877# SysV /etc/install, /usr/sbin/install 3878# SunOS /usr/etc/install 3879# IRIX /sbin/install 3880# AIX /bin/install 3881# AmigaOS /C/install, which installs bootblocks on floppy discs 3882# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3883# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3884# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3885# OS/2's system install, which has a completely different semantic 3886# ./install, which can be erroneously created by make from ./install.sh. 3887# Reject install programs that cannot install multiple files. 3888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3889printf %s "checking for a BSD-compatible install... " >&6; } 3890if test -z "$INSTALL"; then 3891if test ${ac_cv_path_install+y} 3892then : 3893 printf %s "(cached) " >&6 3894else $as_nop 3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3896for as_dir in $PATH 3897do 3898 IFS=$as_save_IFS 3899 case $as_dir in #((( 3900 '') as_dir=./ ;; 3901 */) ;; 3902 *) as_dir=$as_dir/ ;; 3903 esac 3904 # Account for fact that we put trailing slashes in our PATH walk. 3905case $as_dir in #(( 3906 ./ | /[cC]/* | \ 3907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3908 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3909 /usr/ucb/* ) ;; 3910 *) 3911 # OSF1 and SCO ODT 3.0 have their own names for install. 3912 # Don't use installbsd from OSF since it installs stuff as root 3913 # by default. 3914 for ac_prog in ginstall scoinst install; do 3915 for ac_exec_ext in '' $ac_executable_extensions; do 3916 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3917 if test $ac_prog = install && 3918 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3919 # AIX install. It has an incompatible calling convention. 3920 : 3921 elif test $ac_prog = install && 3922 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3923 # program-specific install script used by HP pwplus--don't use. 3924 : 3925 else 3926 rm -rf conftest.one conftest.two conftest.dir 3927 echo one > conftest.one 3928 echo two > conftest.two 3929 mkdir conftest.dir 3930 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3931 test -s conftest.one && test -s conftest.two && 3932 test -s conftest.dir/conftest.one && 3933 test -s conftest.dir/conftest.two 3934 then 3935 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3936 break 3 3937 fi 3938 fi 3939 fi 3940 done 3941 done 3942 ;; 3943esac 3944 3945 done 3946IFS=$as_save_IFS 3947 3948rm -rf conftest.one conftest.two conftest.dir 3949 3950fi 3951 if test ${ac_cv_path_install+y}; then 3952 INSTALL=$ac_cv_path_install 3953 else 3954 # As a last resort, use the slow shell script. Don't cache a 3955 # value for INSTALL within a source directory, because that will 3956 # break other packages using the cache if that directory is 3957 # removed, or if the value is a relative name. 3958 INSTALL=$ac_install_sh 3959 fi 3960fi 3961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3962printf "%s\n" "$INSTALL" >&6; } 3963 3964# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3965# It thinks the first close brace ends the variable substitution. 3966test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3967 3968test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3969 3970test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3971 3972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3973printf %s "checking whether build environment is sane... " >&6; } 3974# Reject unsafe characters in $srcdir or the absolute working directory 3975# name. Accept space and tab only in the latter. 3976am_lf=' 3977' 3978case `pwd` in 3979 *[\\\"\#\$\&\'\`$am_lf]*) 3980 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3981esac 3982case $srcdir in 3983 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3984 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3985esac 3986 3987# Do 'set' in a subshell so we don't clobber the current shell's 3988# arguments. Must try -L first in case configure is actually a 3989# symlink; some systems play weird games with the mod time of symlinks 3990# (eg FreeBSD returns the mod time of the symlink's containing 3991# directory). 3992if ( 3993 am_has_slept=no 3994 for am_try in 1 2; do 3995 echo "timestamp, slept: $am_has_slept" > conftest.file 3996 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3997 if test "$*" = "X"; then 3998 # -L didn't work. 3999 set X `ls -t "$srcdir/configure" conftest.file` 4000 fi 4001 if test "$*" != "X $srcdir/configure conftest.file" \ 4002 && test "$*" != "X conftest.file $srcdir/configure"; then 4003 4004 # If neither matched, then we have a broken ls. This can happen 4005 # if, for instance, CONFIG_SHELL is bash and it inherits a 4006 # broken ls alias from the environment. This has actually 4007 # happened. Such a system could not be considered "sane". 4008 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4009 alias in your environment" "$LINENO" 5 4010 fi 4011 if test "$2" = conftest.file || test $am_try -eq 2; then 4012 break 4013 fi 4014 # Just in case. 4015 sleep 1 4016 am_has_slept=yes 4017 done 4018 test "$2" = conftest.file 4019 ) 4020then 4021 # Ok. 4022 : 4023else 4024 as_fn_error $? "newly created file is older than distributed files! 4025Check your system clock" "$LINENO" 5 4026fi 4027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4028printf "%s\n" "yes" >&6; } 4029# If we didn't sleep, we still need to ensure time stamps of config.status and 4030# generated files are strictly newer. 4031am_sleep_pid= 4032if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4033 ( sleep 1 ) & 4034 am_sleep_pid=$! 4035fi 4036 4037rm -f conftest.file 4038 4039test "$program_prefix" != NONE && 4040 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4041# Use a double $ so make ignores it. 4042test "$program_suffix" != NONE && 4043 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4044# Double any \ or $. 4045# By default was `s,x,x', remove it if useless. 4046ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4047program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4048 4049 4050 if test x"${MISSING+set}" != xset; then 4051 MISSING="\${SHELL} '$am_aux_dir/missing'" 4052fi 4053# Use eval to expand $SHELL 4054if eval "$MISSING --is-lightweight"; then 4055 am_missing_run="$MISSING " 4056else 4057 am_missing_run= 4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4059printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4060fi 4061 4062if test x"${install_sh+set}" != xset; then 4063 case $am_aux_dir in 4064 *\ * | *\ *) 4065 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4066 *) 4067 install_sh="\${SHELL} $am_aux_dir/install-sh" 4068 esac 4069fi 4070 4071# Installed binaries are usually stripped using 'strip' when the user 4072# run "make install-strip". However 'strip' might not be the right 4073# tool to use in cross-compilation environments, therefore Automake 4074# will honor the 'STRIP' environment variable to overrule this program. 4075if test "$cross_compiling" != no; then 4076 if test -n "$ac_tool_prefix"; then 4077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4078set dummy ${ac_tool_prefix}strip; ac_word=$2 4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4080printf %s "checking for $ac_word... " >&6; } 4081if test ${ac_cv_prog_STRIP+y} 4082then : 4083 printf %s "(cached) " >&6 4084else $as_nop 4085 if test -n "$STRIP"; then 4086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4087else 4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4089for as_dir in $PATH 4090do 4091 IFS=$as_save_IFS 4092 case $as_dir in #((( 4093 '') as_dir=./ ;; 4094 */) ;; 4095 *) as_dir=$as_dir/ ;; 4096 esac 4097 for ac_exec_ext in '' $ac_executable_extensions; do 4098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4099 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4101 break 2 4102 fi 4103done 4104 done 4105IFS=$as_save_IFS 4106 4107fi 4108fi 4109STRIP=$ac_cv_prog_STRIP 4110if test -n "$STRIP"; then 4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4112printf "%s\n" "$STRIP" >&6; } 4113else 4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4115printf "%s\n" "no" >&6; } 4116fi 4117 4118 4119fi 4120if test -z "$ac_cv_prog_STRIP"; then 4121 ac_ct_STRIP=$STRIP 4122 # Extract the first word of "strip", so it can be a program name with args. 4123set dummy strip; ac_word=$2 4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4125printf %s "checking for $ac_word... " >&6; } 4126if test ${ac_cv_prog_ac_ct_STRIP+y} 4127then : 4128 printf %s "(cached) " >&6 4129else $as_nop 4130 if test -n "$ac_ct_STRIP"; then 4131 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4132else 4133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4134for as_dir in $PATH 4135do 4136 IFS=$as_save_IFS 4137 case $as_dir in #((( 4138 '') as_dir=./ ;; 4139 */) ;; 4140 *) as_dir=$as_dir/ ;; 4141 esac 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4144 ac_cv_prog_ac_ct_STRIP="strip" 4145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4146 break 2 4147 fi 4148done 4149 done 4150IFS=$as_save_IFS 4151 4152fi 4153fi 4154ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4155if test -n "$ac_ct_STRIP"; then 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4157printf "%s\n" "$ac_ct_STRIP" >&6; } 4158else 4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4160printf "%s\n" "no" >&6; } 4161fi 4162 4163 if test "x$ac_ct_STRIP" = x; then 4164 STRIP=":" 4165 else 4166 case $cross_compiling:$ac_tool_warned in 4167yes:) 4168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4169printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4170ac_tool_warned=yes ;; 4171esac 4172 STRIP=$ac_ct_STRIP 4173 fi 4174else 4175 STRIP="$ac_cv_prog_STRIP" 4176fi 4177 4178fi 4179INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4180 4181 4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4183printf %s "checking for a race-free mkdir -p... " >&6; } 4184if test -z "$MKDIR_P"; then 4185 if test ${ac_cv_path_mkdir+y} 4186then : 4187 printf %s "(cached) " >&6 4188else $as_nop 4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4190for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4191do 4192 IFS=$as_save_IFS 4193 case $as_dir in #((( 4194 '') as_dir=./ ;; 4195 */) ;; 4196 *) as_dir=$as_dir/ ;; 4197 esac 4198 for ac_prog in mkdir gmkdir; do 4199 for ac_exec_ext in '' $ac_executable_extensions; do 4200 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4201 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4202 'mkdir ('*'coreutils) '* | \ 4203 'BusyBox '* | \ 4204 'mkdir (fileutils) '4.1*) 4205 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4206 break 3;; 4207 esac 4208 done 4209 done 4210 done 4211IFS=$as_save_IFS 4212 4213fi 4214 4215 test -d ./--version && rmdir ./--version 4216 if test ${ac_cv_path_mkdir+y}; then 4217 MKDIR_P="$ac_cv_path_mkdir -p" 4218 else 4219 # As a last resort, use the slow shell script. Don't cache a 4220 # value for MKDIR_P within a source directory, because that will 4221 # break other packages using the cache if that directory is 4222 # removed, or if the value is a relative name. 4223 MKDIR_P="$ac_install_sh -d" 4224 fi 4225fi 4226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4227printf "%s\n" "$MKDIR_P" >&6; } 4228 4229for ac_prog in gawk mawk nawk awk 4230do 4231 # Extract the first word of "$ac_prog", so it can be a program name with args. 4232set dummy $ac_prog; ac_word=$2 4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4234printf %s "checking for $ac_word... " >&6; } 4235if test ${ac_cv_prog_AWK+y} 4236then : 4237 printf %s "(cached) " >&6 4238else $as_nop 4239 if test -n "$AWK"; then 4240 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4241else 4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4243for as_dir in $PATH 4244do 4245 IFS=$as_save_IFS 4246 case $as_dir in #((( 4247 '') as_dir=./ ;; 4248 */) ;; 4249 *) as_dir=$as_dir/ ;; 4250 esac 4251 for ac_exec_ext in '' $ac_executable_extensions; do 4252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4253 ac_cv_prog_AWK="$ac_prog" 4254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4255 break 2 4256 fi 4257done 4258 done 4259IFS=$as_save_IFS 4260 4261fi 4262fi 4263AWK=$ac_cv_prog_AWK 4264if test -n "$AWK"; then 4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4266printf "%s\n" "$AWK" >&6; } 4267else 4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4269printf "%s\n" "no" >&6; } 4270fi 4271 4272 4273 test -n "$AWK" && break 4274done 4275 4276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4277printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4278set x ${MAKE-make} 4279ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4280if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4281then : 4282 printf %s "(cached) " >&6 4283else $as_nop 4284 cat >conftest.make <<\_ACEOF 4285SHELL = /bin/sh 4286all: 4287 @echo '@@@%%%=$(MAKE)=@@@%%%' 4288_ACEOF 4289# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4290case `${MAKE-make} -f conftest.make 2>/dev/null` in 4291 *@@@%%%=?*=@@@%%%*) 4292 eval ac_cv_prog_make_${ac_make}_set=yes;; 4293 *) 4294 eval ac_cv_prog_make_${ac_make}_set=no;; 4295esac 4296rm -f conftest.make 4297fi 4298if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4300printf "%s\n" "yes" >&6; } 4301 SET_MAKE= 4302else 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4304printf "%s\n" "no" >&6; } 4305 SET_MAKE="MAKE=${MAKE-make}" 4306fi 4307 4308rm -rf .tst 2>/dev/null 4309mkdir .tst 2>/dev/null 4310if test -d .tst; then 4311 am__leading_dot=. 4312else 4313 am__leading_dot=_ 4314fi 4315rmdir .tst 2>/dev/null 4316 4317DEPDIR="${am__leading_dot}deps" 4318 4319ac_config_commands="$ac_config_commands depfiles" 4320 4321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4322printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4323cat > confinc.mk << 'END' 4324am__doit: 4325 @echo this is the am__doit target >confinc.out 4326.PHONY: am__doit 4327END 4328am__include="#" 4329am__quote= 4330# BSD make does it like this. 4331echo '.include "confinc.mk" # ignored' > confmf.BSD 4332# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4333echo 'include confinc.mk # ignored' > confmf.GNU 4334_am_result=no 4335for s in GNU BSD; do 4336 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4337 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4338 ac_status=$? 4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4340 (exit $ac_status); } 4341 case $?:`cat confinc.out 2>/dev/null` in #( 4342 '0:this is the am__doit target') : 4343 case $s in #( 4344 BSD) : 4345 am__include='.include' am__quote='"' ;; #( 4346 *) : 4347 am__include='include' am__quote='' ;; 4348esac ;; #( 4349 *) : 4350 ;; 4351esac 4352 if test "$am__include" != "#"; then 4353 _am_result="yes ($s style)" 4354 break 4355 fi 4356done 4357rm -f confinc.* confmf.* 4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4359printf "%s\n" "${_am_result}" >&6; } 4360 4361# Check whether --enable-dependency-tracking was given. 4362if test ${enable_dependency_tracking+y} 4363then : 4364 enableval=$enable_dependency_tracking; 4365fi 4366 4367if test "x$enable_dependency_tracking" != xno; then 4368 am_depcomp="$ac_aux_dir/depcomp" 4369 AMDEPBACKSLASH='\' 4370 am__nodep='_no' 4371fi 4372 if test "x$enable_dependency_tracking" != xno; then 4373 AMDEP_TRUE= 4374 AMDEP_FALSE='#' 4375else 4376 AMDEP_TRUE='#' 4377 AMDEP_FALSE= 4378fi 4379 4380 4381# Check whether --enable-silent-rules was given. 4382if test ${enable_silent_rules+y} 4383then : 4384 enableval=$enable_silent_rules; 4385fi 4386 4387case $enable_silent_rules in # ((( 4388 yes) AM_DEFAULT_VERBOSITY=0;; 4389 no) AM_DEFAULT_VERBOSITY=1;; 4390 *) AM_DEFAULT_VERBOSITY=1;; 4391esac 4392am_make=${MAKE-make} 4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4394printf %s "checking whether $am_make supports nested variables... " >&6; } 4395if test ${am_cv_make_support_nested_variables+y} 4396then : 4397 printf %s "(cached) " >&6 4398else $as_nop 4399 if printf "%s\n" 'TRUE=$(BAR$(V)) 4400BAR0=false 4401BAR1=true 4402V=1 4403am__doit: 4404 @$(TRUE) 4405.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4406 am_cv_make_support_nested_variables=yes 4407else 4408 am_cv_make_support_nested_variables=no 4409fi 4410fi 4411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4412printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4413if test $am_cv_make_support_nested_variables = yes; then 4414 AM_V='$(V)' 4415 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4416else 4417 AM_V=$AM_DEFAULT_VERBOSITY 4418 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4419fi 4420AM_BACKSLASH='\' 4421 4422if test "`cd $srcdir && pwd`" != "`pwd`"; then 4423 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4424 # is not polluted with repeated "-I." 4425 am__isrc=' -I$(srcdir)' 4426 # test to see if srcdir already configured 4427 if test -f $srcdir/config.status; then 4428 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4429 fi 4430fi 4431 4432# test whether we have cygpath 4433if test -z "$CYGPATH_W"; then 4434 if (cygpath --version) >/dev/null 2>/dev/null; then 4435 CYGPATH_W='cygpath -w' 4436 else 4437 CYGPATH_W=echo 4438 fi 4439fi 4440 4441 4442# Define the identity of the package. 4443 PACKAGE='libxshmfence' 4444 VERSION='1.3.1' 4445 4446 4447printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4448 4449 4450printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4451 4452# Some tools Automake needs. 4453 4454ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4455 4456 4457AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4458 4459 4460AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4461 4462 4463AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4464 4465 4466MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4467 4468# For better backward compatibility. To be removed once Automake 1.9.x 4469# dies out for good. For more background, see: 4470# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4471# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4472mkdir_p='$(MKDIR_P)' 4473 4474# We need awk for the "check" target (and possibly the TAP driver). The 4475# system "awk" is bad on some platforms. 4476# Always define AMTAR for backward compatibility. Yes, it's still used 4477# in the wild :-( We should find a proper way to deprecate it ... 4478AMTAR='$${TAR-tar}' 4479 4480 4481# We'll loop over all known methods to create a tar archive until one works. 4482_am_tools='gnutar pax cpio none' 4483 4484am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4485 4486 4487 4488 4489 4490depcc="$CC" am_compiler_list= 4491 4492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4493printf %s "checking dependency style of $depcc... " >&6; } 4494if test ${am_cv_CC_dependencies_compiler_type+y} 4495then : 4496 printf %s "(cached) " >&6 4497else $as_nop 4498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4499 # We make a subdir and do the tests there. Otherwise we can end up 4500 # making bogus files that we don't know about and never remove. For 4501 # instance it was reported that on HP-UX the gcc test will end up 4502 # making a dummy file named 'D' -- because '-MD' means "put the output 4503 # in D". 4504 rm -rf conftest.dir 4505 mkdir conftest.dir 4506 # Copy depcomp to subdir because otherwise we won't find it if we're 4507 # using a relative directory. 4508 cp "$am_depcomp" conftest.dir 4509 cd conftest.dir 4510 # We will build objects and dependencies in a subdirectory because 4511 # it helps to detect inapplicable dependency modes. For instance 4512 # both Tru64's cc and ICC support -MD to output dependencies as a 4513 # side effect of compilation, but ICC will put the dependencies in 4514 # the current directory while Tru64 will put them in the object 4515 # directory. 4516 mkdir sub 4517 4518 am_cv_CC_dependencies_compiler_type=none 4519 if test "$am_compiler_list" = ""; then 4520 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4521 fi 4522 am__universal=false 4523 case " $depcc " in #( 4524 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4525 esac 4526 4527 for depmode in $am_compiler_list; do 4528 # Setup a source with many dependencies, because some compilers 4529 # like to wrap large dependency lists on column 80 (with \), and 4530 # we should not choose a depcomp mode which is confused by this. 4531 # 4532 # We need to recreate these files for each test, as the compiler may 4533 # overwrite some of them when testing with obscure command lines. 4534 # This happens at least with the AIX C compiler. 4535 : > sub/conftest.c 4536 for i in 1 2 3 4 5 6; do 4537 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4538 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4539 # Solaris 10 /bin/sh. 4540 echo '/* dummy */' > sub/conftst$i.h 4541 done 4542 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4543 4544 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4545 # mode. It turns out that the SunPro C++ compiler does not properly 4546 # handle '-M -o', and we need to detect this. Also, some Intel 4547 # versions had trouble with output in subdirs. 4548 am__obj=sub/conftest.${OBJEXT-o} 4549 am__minus_obj="-o $am__obj" 4550 case $depmode in 4551 gcc) 4552 # This depmode causes a compiler race in universal mode. 4553 test "$am__universal" = false || continue 4554 ;; 4555 nosideeffect) 4556 # After this tag, mechanisms are not by side-effect, so they'll 4557 # only be used when explicitly requested. 4558 if test "x$enable_dependency_tracking" = xyes; then 4559 continue 4560 else 4561 break 4562 fi 4563 ;; 4564 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4565 # This compiler won't grok '-c -o', but also, the minuso test has 4566 # not run yet. These depmodes are late enough in the game, and 4567 # so weak that their functioning should not be impacted. 4568 am__obj=conftest.${OBJEXT-o} 4569 am__minus_obj= 4570 ;; 4571 none) break ;; 4572 esac 4573 if depmode=$depmode \ 4574 source=sub/conftest.c object=$am__obj \ 4575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4576 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4577 >/dev/null 2>conftest.err && 4578 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4580 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4582 # icc doesn't choke on unknown options, it will just issue warnings 4583 # or remarks (even with -Werror). So we grep stderr for any message 4584 # that says an option was ignored or not supported. 4585 # When given -MP, icc 7.0 and 7.1 complain thusly: 4586 # icc: Command line warning: ignoring option '-M'; no argument required 4587 # The diagnosis changed in icc 8.0: 4588 # icc: Command line remark: option '-MP' not supported 4589 if (grep 'ignoring option' conftest.err || 4590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4591 am_cv_CC_dependencies_compiler_type=$depmode 4592 break 4593 fi 4594 fi 4595 done 4596 4597 cd .. 4598 rm -rf conftest.dir 4599else 4600 am_cv_CC_dependencies_compiler_type=none 4601fi 4602 4603fi 4604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4605printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4606CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4607 4608 if 4609 test "x$enable_dependency_tracking" != xno \ 4610 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4611 am__fastdepCC_TRUE= 4612 am__fastdepCC_FALSE='#' 4613else 4614 am__fastdepCC_TRUE='#' 4615 am__fastdepCC_FALSE= 4616fi 4617 4618 4619# Variables for tags utilities; see am/tags.am 4620if test -z "$CTAGS"; then 4621 CTAGS=ctags 4622fi 4623 4624if test -z "$ETAGS"; then 4625 ETAGS=etags 4626fi 4627 4628if test -z "$CSCOPE"; then 4629 CSCOPE=cscope 4630fi 4631 4632 4633 4634# POSIX will say in a future version that running "rm -f" with no argument 4635# is OK; and we want to be able to make that assumption in our Makefile 4636# recipes. So use an aggressive probe to check that the usage we want is 4637# actually supported "in the wild" to an acceptable degree. 4638# See automake bug#10828. 4639# To make any issue more visible, cause the running configure to be aborted 4640# by default if the 'rm' program in use doesn't match our expectations; the 4641# user can still override this though. 4642if rm -f && rm -fr && rm -rf; then : OK; else 4643 cat >&2 <<'END' 4644Oops! 4645 4646Your 'rm' program seems unable to run without file operands specified 4647on the command line, even when the '-f' option is present. This is contrary 4648to the behaviour of most rm programs out there, and not conforming with 4649the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4650 4651Please tell bug-automake@gnu.org about your system, including the value 4652of your $PATH and any error possibly output before this message. This 4653can help us improve future automake versions. 4654 4655END 4656 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4657 echo 'Configuration will proceed anyway, since you have set the' >&2 4658 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4659 echo >&2 4660 else 4661 cat >&2 <<'END' 4662Aborting the configuration process, to ensure you take notice of the issue. 4663 4664You can download and install GNU coreutils to get an 'rm' implementation 4665that behaves properly: <https://www.gnu.org/software/coreutils/>. 4666 4667If you want to complete the configuration process using your problematic 4668'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4669to "yes", and re-run configure. 4670 4671END 4672 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4673 fi 4674fi 4675 4676 4677# Initialize libtool 4678case `pwd` in 4679 *\ * | *\ *) 4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4681printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4682esac 4683 4684 4685 4686macro_version='2.4.7' 4687macro_revision='2.4.7' 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702ltmain=$ac_aux_dir/ltmain.sh 4703 4704 4705 4706 # Make sure we can run config.sub. 4707$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4708 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4709 4710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4711printf %s "checking build system type... " >&6; } 4712if test ${ac_cv_build+y} 4713then : 4714 printf %s "(cached) " >&6 4715else $as_nop 4716 ac_build_alias=$build_alias 4717test "x$ac_build_alias" = x && 4718 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4719test "x$ac_build_alias" = x && 4720 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4721ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4722 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4723 4724fi 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4726printf "%s\n" "$ac_cv_build" >&6; } 4727case $ac_cv_build in 4728*-*-*) ;; 4729*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4730esac 4731build=$ac_cv_build 4732ac_save_IFS=$IFS; IFS='-' 4733set x $ac_cv_build 4734shift 4735build_cpu=$1 4736build_vendor=$2 4737shift; shift 4738# Remember, the first character of IFS is used to create $*, 4739# except with old shells: 4740build_os=$* 4741IFS=$ac_save_IFS 4742case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4743 4744 4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4746printf %s "checking host system type... " >&6; } 4747if test ${ac_cv_host+y} 4748then : 4749 printf %s "(cached) " >&6 4750else $as_nop 4751 if test "x$host_alias" = x; then 4752 ac_cv_host=$ac_cv_build 4753else 4754 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4755 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4756fi 4757 4758fi 4759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4760printf "%s\n" "$ac_cv_host" >&6; } 4761case $ac_cv_host in 4762*-*-*) ;; 4763*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4764esac 4765host=$ac_cv_host 4766ac_save_IFS=$IFS; IFS='-' 4767set x $ac_cv_host 4768shift 4769host_cpu=$1 4770host_vendor=$2 4771shift; shift 4772# Remember, the first character of IFS is used to create $*, 4773# except with old shells: 4774host_os=$* 4775IFS=$ac_save_IFS 4776case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4777 4778 4779# Backslashify metacharacters that are still active within 4780# double-quoted strings. 4781sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4782 4783# Same as above, but do not quote variable references. 4784double_quote_subst='s/\(["`\\]\)/\\\1/g' 4785 4786# Sed substitution to delay expansion of an escaped shell variable in a 4787# double_quote_subst'ed string. 4788delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4789 4790# Sed substitution to delay expansion of an escaped single quote. 4791delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4792 4793# Sed substitution to avoid accidental globbing in evaled expressions 4794no_glob_subst='s/\*/\\\*/g' 4795 4796ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4797ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4798ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4799 4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4801printf %s "checking how to print strings... " >&6; } 4802# Test print first, because it will be a builtin if present. 4803if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4804 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4805 ECHO='print -r --' 4806elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4807 ECHO='printf %s\n' 4808else 4809 # Use this function as a fallback that always works. 4810 func_fallback_echo () 4811 { 4812 eval 'cat <<_LTECHO_EOF 4813$1 4814_LTECHO_EOF' 4815 } 4816 ECHO='func_fallback_echo' 4817fi 4818 4819# func_echo_all arg... 4820# Invoke $ECHO with all args, space-separated. 4821func_echo_all () 4822{ 4823 $ECHO "" 4824} 4825 4826case $ECHO in 4827 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4828printf "%s\n" "printf" >&6; } ;; 4829 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4830printf "%s\n" "print -r" >&6; } ;; 4831 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4832printf "%s\n" "cat" >&6; } ;; 4833esac 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4849printf %s "checking for a sed that does not truncate output... " >&6; } 4850if test ${ac_cv_path_SED+y} 4851then : 4852 printf %s "(cached) " >&6 4853else $as_nop 4854 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4855 for ac_i in 1 2 3 4 5 6 7; do 4856 ac_script="$ac_script$as_nl$ac_script" 4857 done 4858 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4859 { ac_script=; unset ac_script;} 4860 if test -z "$SED"; then 4861 ac_path_SED_found=false 4862 # Loop through the user's path and test for each of PROGNAME-LIST 4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4864for as_dir in $PATH 4865do 4866 IFS=$as_save_IFS 4867 case $as_dir in #((( 4868 '') as_dir=./ ;; 4869 */) ;; 4870 *) as_dir=$as_dir/ ;; 4871 esac 4872 for ac_prog in sed gsed 4873 do 4874 for ac_exec_ext in '' $ac_executable_extensions; do 4875 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4876 as_fn_executable_p "$ac_path_SED" || continue 4877# Check for GNU ac_path_SED and select it if it is found. 4878 # Check for GNU $ac_path_SED 4879case `"$ac_path_SED" --version 2>&1` in 4880*GNU*) 4881 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4882*) 4883 ac_count=0 4884 printf %s 0123456789 >"conftest.in" 4885 while : 4886 do 4887 cat "conftest.in" "conftest.in" >"conftest.tmp" 4888 mv "conftest.tmp" "conftest.in" 4889 cp "conftest.in" "conftest.nl" 4890 printf "%s\n" '' >> "conftest.nl" 4891 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4893 as_fn_arith $ac_count + 1 && ac_count=$as_val 4894 if test $ac_count -gt ${ac_path_SED_max-0}; then 4895 # Best one so far, save it but keep looking for a better one 4896 ac_cv_path_SED="$ac_path_SED" 4897 ac_path_SED_max=$ac_count 4898 fi 4899 # 10*(2^10) chars as input seems more than enough 4900 test $ac_count -gt 10 && break 4901 done 4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4903esac 4904 4905 $ac_path_SED_found && break 3 4906 done 4907 done 4908 done 4909IFS=$as_save_IFS 4910 if test -z "$ac_cv_path_SED"; then 4911 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4912 fi 4913else 4914 ac_cv_path_SED=$SED 4915fi 4916 4917fi 4918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4919printf "%s\n" "$ac_cv_path_SED" >&6; } 4920 SED="$ac_cv_path_SED" 4921 rm -f conftest.sed 4922 4923test -z "$SED" && SED=sed 4924Xsed="$SED -e 1s/^X//" 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4937printf %s "checking for grep that handles long lines and -e... " >&6; } 4938if test ${ac_cv_path_GREP+y} 4939then : 4940 printf %s "(cached) " >&6 4941else $as_nop 4942 if test -z "$GREP"; then 4943 ac_path_GREP_found=false 4944 # Loop through the user's path and test for each of PROGNAME-LIST 4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4947do 4948 IFS=$as_save_IFS 4949 case $as_dir in #((( 4950 '') as_dir=./ ;; 4951 */) ;; 4952 *) as_dir=$as_dir/ ;; 4953 esac 4954 for ac_prog in grep ggrep 4955 do 4956 for ac_exec_ext in '' $ac_executable_extensions; do 4957 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4958 as_fn_executable_p "$ac_path_GREP" || continue 4959# Check for GNU ac_path_GREP and select it if it is found. 4960 # Check for GNU $ac_path_GREP 4961case `"$ac_path_GREP" --version 2>&1` in 4962*GNU*) 4963 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4964*) 4965 ac_count=0 4966 printf %s 0123456789 >"conftest.in" 4967 while : 4968 do 4969 cat "conftest.in" "conftest.in" >"conftest.tmp" 4970 mv "conftest.tmp" "conftest.in" 4971 cp "conftest.in" "conftest.nl" 4972 printf "%s\n" 'GREP' >> "conftest.nl" 4973 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4975 as_fn_arith $ac_count + 1 && ac_count=$as_val 4976 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4977 # Best one so far, save it but keep looking for a better one 4978 ac_cv_path_GREP="$ac_path_GREP" 4979 ac_path_GREP_max=$ac_count 4980 fi 4981 # 10*(2^10) chars as input seems more than enough 4982 test $ac_count -gt 10 && break 4983 done 4984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4985esac 4986 4987 $ac_path_GREP_found && break 3 4988 done 4989 done 4990 done 4991IFS=$as_save_IFS 4992 if test -z "$ac_cv_path_GREP"; then 4993 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4994 fi 4995else 4996 ac_cv_path_GREP=$GREP 4997fi 4998 4999fi 5000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5001printf "%s\n" "$ac_cv_path_GREP" >&6; } 5002 GREP="$ac_cv_path_GREP" 5003 5004 5005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5006printf %s "checking for egrep... " >&6; } 5007if test ${ac_cv_path_EGREP+y} 5008then : 5009 printf %s "(cached) " >&6 5010else $as_nop 5011 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5012 then ac_cv_path_EGREP="$GREP -E" 5013 else 5014 if test -z "$EGREP"; then 5015 ac_path_EGREP_found=false 5016 # Loop through the user's path and test for each of PROGNAME-LIST 5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5018for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5019do 5020 IFS=$as_save_IFS 5021 case $as_dir in #((( 5022 '') as_dir=./ ;; 5023 */) ;; 5024 *) as_dir=$as_dir/ ;; 5025 esac 5026 for ac_prog in egrep 5027 do 5028 for ac_exec_ext in '' $ac_executable_extensions; do 5029 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5030 as_fn_executable_p "$ac_path_EGREP" || continue 5031# Check for GNU ac_path_EGREP and select it if it is found. 5032 # Check for GNU $ac_path_EGREP 5033case `"$ac_path_EGREP" --version 2>&1` in 5034*GNU*) 5035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5036*) 5037 ac_count=0 5038 printf %s 0123456789 >"conftest.in" 5039 while : 5040 do 5041 cat "conftest.in" "conftest.in" >"conftest.tmp" 5042 mv "conftest.tmp" "conftest.in" 5043 cp "conftest.in" "conftest.nl" 5044 printf "%s\n" 'EGREP' >> "conftest.nl" 5045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5047 as_fn_arith $ac_count + 1 && ac_count=$as_val 5048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5049 # Best one so far, save it but keep looking for a better one 5050 ac_cv_path_EGREP="$ac_path_EGREP" 5051 ac_path_EGREP_max=$ac_count 5052 fi 5053 # 10*(2^10) chars as input seems more than enough 5054 test $ac_count -gt 10 && break 5055 done 5056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5057esac 5058 5059 $ac_path_EGREP_found && break 3 5060 done 5061 done 5062 done 5063IFS=$as_save_IFS 5064 if test -z "$ac_cv_path_EGREP"; then 5065 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5066 fi 5067else 5068 ac_cv_path_EGREP=$EGREP 5069fi 5070 5071 fi 5072fi 5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5074printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5075 EGREP="$ac_cv_path_EGREP" 5076 5077 5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5079printf %s "checking for fgrep... " >&6; } 5080if test ${ac_cv_path_FGREP+y} 5081then : 5082 printf %s "(cached) " >&6 5083else $as_nop 5084 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5085 then ac_cv_path_FGREP="$GREP -F" 5086 else 5087 if test -z "$FGREP"; then 5088 ac_path_FGREP_found=false 5089 # Loop through the user's path and test for each of PROGNAME-LIST 5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5091for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5092do 5093 IFS=$as_save_IFS 5094 case $as_dir in #((( 5095 '') as_dir=./ ;; 5096 */) ;; 5097 *) as_dir=$as_dir/ ;; 5098 esac 5099 for ac_prog in fgrep 5100 do 5101 for ac_exec_ext in '' $ac_executable_extensions; do 5102 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5103 as_fn_executable_p "$ac_path_FGREP" || continue 5104# Check for GNU ac_path_FGREP and select it if it is found. 5105 # Check for GNU $ac_path_FGREP 5106case `"$ac_path_FGREP" --version 2>&1` in 5107*GNU*) 5108 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5109*) 5110 ac_count=0 5111 printf %s 0123456789 >"conftest.in" 5112 while : 5113 do 5114 cat "conftest.in" "conftest.in" >"conftest.tmp" 5115 mv "conftest.tmp" "conftest.in" 5116 cp "conftest.in" "conftest.nl" 5117 printf "%s\n" 'FGREP' >> "conftest.nl" 5118 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5119 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5120 as_fn_arith $ac_count + 1 && ac_count=$as_val 5121 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5122 # Best one so far, save it but keep looking for a better one 5123 ac_cv_path_FGREP="$ac_path_FGREP" 5124 ac_path_FGREP_max=$ac_count 5125 fi 5126 # 10*(2^10) chars as input seems more than enough 5127 test $ac_count -gt 10 && break 5128 done 5129 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5130esac 5131 5132 $ac_path_FGREP_found && break 3 5133 done 5134 done 5135 done 5136IFS=$as_save_IFS 5137 if test -z "$ac_cv_path_FGREP"; then 5138 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5139 fi 5140else 5141 ac_cv_path_FGREP=$FGREP 5142fi 5143 5144 fi 5145fi 5146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5147printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5148 FGREP="$ac_cv_path_FGREP" 5149 5150 5151test -z "$GREP" && GREP=grep 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171# Check whether --with-gnu-ld was given. 5172if test ${with_gnu_ld+y} 5173then : 5174 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5175else $as_nop 5176 with_gnu_ld=no 5177fi 5178 5179ac_prog=ld 5180if test yes = "$GCC"; then 5181 # Check if gcc -print-prog-name=ld gives a path. 5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5183printf %s "checking for ld used by $CC... " >&6; } 5184 case $host in 5185 *-*-mingw*) 5186 # gcc leaves a trailing carriage return, which upsets mingw 5187 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5188 *) 5189 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5190 esac 5191 case $ac_prog in 5192 # Accept absolute paths. 5193 [\\/]* | ?:[\\/]*) 5194 re_direlt='/[^/][^/]*/\.\./' 5195 # Canonicalize the pathname of ld 5196 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5197 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5198 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5199 done 5200 test -z "$LD" && LD=$ac_prog 5201 ;; 5202 "") 5203 # If it fails, then pretend we aren't using GCC. 5204 ac_prog=ld 5205 ;; 5206 *) 5207 # If it is relative, then search for the first ld in PATH. 5208 with_gnu_ld=unknown 5209 ;; 5210 esac 5211elif test yes = "$with_gnu_ld"; then 5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5213printf %s "checking for GNU ld... " >&6; } 5214else 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5216printf %s "checking for non-GNU ld... " >&6; } 5217fi 5218if test ${lt_cv_path_LD+y} 5219then : 5220 printf %s "(cached) " >&6 5221else $as_nop 5222 if test -z "$LD"; then 5223 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5224 for ac_dir in $PATH; do 5225 IFS=$lt_save_ifs 5226 test -z "$ac_dir" && ac_dir=. 5227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5228 lt_cv_path_LD=$ac_dir/$ac_prog 5229 # Check to see if the program is GNU ld. I'd rather use --version, 5230 # but apparently some variants of GNU ld only accept -v. 5231 # Break only if it was the GNU/non-GNU ld that we prefer. 5232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5233 *GNU* | *'with BFD'*) 5234 test no != "$with_gnu_ld" && break 5235 ;; 5236 *) 5237 test yes != "$with_gnu_ld" && break 5238 ;; 5239 esac 5240 fi 5241 done 5242 IFS=$lt_save_ifs 5243else 5244 lt_cv_path_LD=$LD # Let the user override the test with a path. 5245fi 5246fi 5247 5248LD=$lt_cv_path_LD 5249if test -n "$LD"; then 5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5251printf "%s\n" "$LD" >&6; } 5252else 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5254printf "%s\n" "no" >&6; } 5255fi 5256test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5258printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5259if test ${lt_cv_prog_gnu_ld+y} 5260then : 5261 printf %s "(cached) " >&6 5262else $as_nop 5263 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5264case `$LD -v 2>&1 </dev/null` in 5265*GNU* | *'with BFD'*) 5266 lt_cv_prog_gnu_ld=yes 5267 ;; 5268*) 5269 lt_cv_prog_gnu_ld=no 5270 ;; 5271esac 5272fi 5273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5274printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5275with_gnu_ld=$lt_cv_prog_gnu_ld 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5286printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5287if test ${lt_cv_path_NM+y} 5288then : 5289 printf %s "(cached) " >&6 5290else $as_nop 5291 if test -n "$NM"; then 5292 # Let the user override the test. 5293 lt_cv_path_NM=$NM 5294else 5295 lt_nm_to_check=${ac_tool_prefix}nm 5296 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5297 lt_nm_to_check="$lt_nm_to_check nm" 5298 fi 5299 for lt_tmp_nm in $lt_nm_to_check; do 5300 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5301 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5302 IFS=$lt_save_ifs 5303 test -z "$ac_dir" && ac_dir=. 5304 tmp_nm=$ac_dir/$lt_tmp_nm 5305 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5306 # Check to see if the nm accepts a BSD-compat flag. 5307 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5308 # nm: unknown option "B" ignored 5309 # Tru64's nm complains that /dev/null is an invalid object file 5310 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5311 case $build_os in 5312 mingw*) lt_bad_file=conftest.nm/nofile ;; 5313 *) lt_bad_file=/dev/null ;; 5314 esac 5315 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5316 *$lt_bad_file* | *'Invalid file or object type'*) 5317 lt_cv_path_NM="$tmp_nm -B" 5318 break 2 5319 ;; 5320 *) 5321 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5322 */dev/null*) 5323 lt_cv_path_NM="$tmp_nm -p" 5324 break 2 5325 ;; 5326 *) 5327 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5328 continue # so that we can try to find one that supports BSD flags 5329 ;; 5330 esac 5331 ;; 5332 esac 5333 fi 5334 done 5335 IFS=$lt_save_ifs 5336 done 5337 : ${lt_cv_path_NM=no} 5338fi 5339fi 5340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5341printf "%s\n" "$lt_cv_path_NM" >&6; } 5342if test no != "$lt_cv_path_NM"; then 5343 NM=$lt_cv_path_NM 5344else 5345 # Didn't find any BSD compatible name lister, look for dumpbin. 5346 if test -n "$DUMPBIN"; then : 5347 # Let the user override the test. 5348 else 5349 if test -n "$ac_tool_prefix"; then 5350 for ac_prog in dumpbin "link -dump" 5351 do 5352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5353set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5355printf %s "checking for $ac_word... " >&6; } 5356if test ${ac_cv_prog_DUMPBIN+y} 5357then : 5358 printf %s "(cached) " >&6 5359else $as_nop 5360 if test -n "$DUMPBIN"; then 5361 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5362else 5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5364for as_dir in $PATH 5365do 5366 IFS=$as_save_IFS 5367 case $as_dir in #((( 5368 '') as_dir=./ ;; 5369 */) ;; 5370 *) as_dir=$as_dir/ ;; 5371 esac 5372 for ac_exec_ext in '' $ac_executable_extensions; do 5373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5374 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5376 break 2 5377 fi 5378done 5379 done 5380IFS=$as_save_IFS 5381 5382fi 5383fi 5384DUMPBIN=$ac_cv_prog_DUMPBIN 5385if test -n "$DUMPBIN"; then 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5387printf "%s\n" "$DUMPBIN" >&6; } 5388else 5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5390printf "%s\n" "no" >&6; } 5391fi 5392 5393 5394 test -n "$DUMPBIN" && break 5395 done 5396fi 5397if test -z "$DUMPBIN"; then 5398 ac_ct_DUMPBIN=$DUMPBIN 5399 for ac_prog in dumpbin "link -dump" 5400do 5401 # Extract the first word of "$ac_prog", so it can be a program name with args. 5402set dummy $ac_prog; ac_word=$2 5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5404printf %s "checking for $ac_word... " >&6; } 5405if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5406then : 5407 printf %s "(cached) " >&6 5408else $as_nop 5409 if test -n "$ac_ct_DUMPBIN"; then 5410 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5411else 5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413for as_dir in $PATH 5414do 5415 IFS=$as_save_IFS 5416 case $as_dir in #((( 5417 '') as_dir=./ ;; 5418 */) ;; 5419 *) as_dir=$as_dir/ ;; 5420 esac 5421 for ac_exec_ext in '' $ac_executable_extensions; do 5422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5423 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5425 break 2 5426 fi 5427done 5428 done 5429IFS=$as_save_IFS 5430 5431fi 5432fi 5433ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5434if test -n "$ac_ct_DUMPBIN"; then 5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5436printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5437else 5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5439printf "%s\n" "no" >&6; } 5440fi 5441 5442 5443 test -n "$ac_ct_DUMPBIN" && break 5444done 5445 5446 if test "x$ac_ct_DUMPBIN" = x; then 5447 DUMPBIN=":" 5448 else 5449 case $cross_compiling:$ac_tool_warned in 5450yes:) 5451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5452printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5453ac_tool_warned=yes ;; 5454esac 5455 DUMPBIN=$ac_ct_DUMPBIN 5456 fi 5457fi 5458 5459 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5460 *COFF*) 5461 DUMPBIN="$DUMPBIN -symbols -headers" 5462 ;; 5463 *) 5464 DUMPBIN=: 5465 ;; 5466 esac 5467 fi 5468 5469 if test : != "$DUMPBIN"; then 5470 NM=$DUMPBIN 5471 fi 5472fi 5473test -z "$NM" && NM=nm 5474 5475 5476 5477 5478 5479 5480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5481printf %s "checking the name lister ($NM) interface... " >&6; } 5482if test ${lt_cv_nm_interface+y} 5483then : 5484 printf %s "(cached) " >&6 5485else $as_nop 5486 lt_cv_nm_interface="BSD nm" 5487 echo "int some_variable = 0;" > conftest.$ac_ext 5488 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5489 (eval "$ac_compile" 2>conftest.err) 5490 cat conftest.err >&5 5491 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5492 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5493 cat conftest.err >&5 5494 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5495 cat conftest.out >&5 5496 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5497 lt_cv_nm_interface="MS dumpbin" 5498 fi 5499 rm -f conftest* 5500fi 5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5502printf "%s\n" "$lt_cv_nm_interface" >&6; } 5503 5504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5505printf %s "checking whether ln -s works... " >&6; } 5506LN_S=$as_ln_s 5507if test "$LN_S" = "ln -s"; then 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5509printf "%s\n" "yes" >&6; } 5510else 5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5512printf "%s\n" "no, using $LN_S" >&6; } 5513fi 5514 5515# find the maximum length of command line arguments 5516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5517printf %s "checking the maximum length of command line arguments... " >&6; } 5518if test ${lt_cv_sys_max_cmd_len+y} 5519then : 5520 printf %s "(cached) " >&6 5521else $as_nop 5522 i=0 5523 teststring=ABCD 5524 5525 case $build_os in 5526 msdosdjgpp*) 5527 # On DJGPP, this test can blow up pretty badly due to problems in libc 5528 # (any single argument exceeding 2000 bytes causes a buffer overrun 5529 # during glob expansion). Even if it were fixed, the result of this 5530 # check would be larger than it should be. 5531 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5532 ;; 5533 5534 gnu*) 5535 # Under GNU Hurd, this test is not required because there is 5536 # no limit to the length of command line arguments. 5537 # Libtool will interpret -1 as no limit whatsoever 5538 lt_cv_sys_max_cmd_len=-1; 5539 ;; 5540 5541 cygwin* | mingw* | cegcc*) 5542 # On Win9x/ME, this test blows up -- it succeeds, but takes 5543 # about 5 minutes as the teststring grows exponentially. 5544 # Worse, since 9x/ME are not pre-emptively multitasking, 5545 # you end up with a "frozen" computer, even though with patience 5546 # the test eventually succeeds (with a max line length of 256k). 5547 # Instead, let's just punt: use the minimum linelength reported by 5548 # all of the supported platforms: 8192 (on NT/2K/XP). 5549 lt_cv_sys_max_cmd_len=8192; 5550 ;; 5551 5552 mint*) 5553 # On MiNT this can take a long time and run out of memory. 5554 lt_cv_sys_max_cmd_len=8192; 5555 ;; 5556 5557 amigaos*) 5558 # On AmigaOS with pdksh, this test takes hours, literally. 5559 # So we just punt and use a minimum line length of 8192. 5560 lt_cv_sys_max_cmd_len=8192; 5561 ;; 5562 5563 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5564 # This has been around since 386BSD, at least. Likely further. 5565 if test -x /sbin/sysctl; then 5566 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5567 elif test -x /usr/sbin/sysctl; then 5568 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5569 else 5570 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5571 fi 5572 # And add a safety zone 5573 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5575 ;; 5576 5577 interix*) 5578 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5579 lt_cv_sys_max_cmd_len=196608 5580 ;; 5581 5582 os2*) 5583 # The test takes a long time on OS/2. 5584 lt_cv_sys_max_cmd_len=8192 5585 ;; 5586 5587 osf*) 5588 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5589 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5590 # nice to cause kernel panics so lets avoid the loop below. 5591 # First set a reasonable default. 5592 lt_cv_sys_max_cmd_len=16384 5593 # 5594 if test -x /sbin/sysconfig; then 5595 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5596 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5597 esac 5598 fi 5599 ;; 5600 sco3.2v5*) 5601 lt_cv_sys_max_cmd_len=102400 5602 ;; 5603 sysv5* | sco5v6* | sysv4.2uw2*) 5604 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5605 if test -n "$kargmax"; then 5606 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5607 else 5608 lt_cv_sys_max_cmd_len=32768 5609 fi 5610 ;; 5611 *) 5612 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5613 if test -n "$lt_cv_sys_max_cmd_len" && \ 5614 test undefined != "$lt_cv_sys_max_cmd_len"; then 5615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5617 else 5618 # Make teststring a little bigger before we do anything with it. 5619 # a 1K string should be a reasonable start. 5620 for i in 1 2 3 4 5 6 7 8; do 5621 teststring=$teststring$teststring 5622 done 5623 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5624 # If test is not a shell built-in, we'll probably end up computing a 5625 # maximum length that is only half of the actual maximum length, but 5626 # we can't tell. 5627 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5628 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5629 test 17 != "$i" # 1/2 MB should be enough 5630 do 5631 i=`expr $i + 1` 5632 teststring=$teststring$teststring 5633 done 5634 # Only check the string length outside the loop. 5635 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5636 teststring= 5637 # Add a significant safety factor because C++ compilers can tack on 5638 # massive amounts of additional arguments before passing them to the 5639 # linker. It appears as though 1/2 is a usable value. 5640 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5641 fi 5642 ;; 5643 esac 5644 5645fi 5646 5647if test -n "$lt_cv_sys_max_cmd_len"; then 5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5649printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5650else 5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5652printf "%s\n" "none" >&6; } 5653fi 5654max_cmd_len=$lt_cv_sys_max_cmd_len 5655 5656 5657 5658 5659 5660 5661: ${CP="cp -f"} 5662: ${MV="mv -f"} 5663: ${RM="rm -f"} 5664 5665if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5666 lt_unset=unset 5667else 5668 lt_unset=false 5669fi 5670 5671 5672 5673 5674 5675# test EBCDIC or ASCII 5676case `echo X|tr X '\101'` in 5677 A) # ASCII based system 5678 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5679 lt_SP2NL='tr \040 \012' 5680 lt_NL2SP='tr \015\012 \040\040' 5681 ;; 5682 *) # EBCDIC based system 5683 lt_SP2NL='tr \100 \n' 5684 lt_NL2SP='tr \r\n \100\100' 5685 ;; 5686esac 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5697printf %s "checking how to convert $build file names to $host format... " >&6; } 5698if test ${lt_cv_to_host_file_cmd+y} 5699then : 5700 printf %s "(cached) " >&6 5701else $as_nop 5702 case $host in 5703 *-*-mingw* ) 5704 case $build in 5705 *-*-mingw* ) # actually msys 5706 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5707 ;; 5708 *-*-cygwin* ) 5709 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5710 ;; 5711 * ) # otherwise, assume *nix 5712 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5713 ;; 5714 esac 5715 ;; 5716 *-*-cygwin* ) 5717 case $build in 5718 *-*-mingw* ) # actually msys 5719 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5720 ;; 5721 *-*-cygwin* ) 5722 lt_cv_to_host_file_cmd=func_convert_file_noop 5723 ;; 5724 * ) # otherwise, assume *nix 5725 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5726 ;; 5727 esac 5728 ;; 5729 * ) # unhandled hosts (and "normal" native builds) 5730 lt_cv_to_host_file_cmd=func_convert_file_noop 5731 ;; 5732esac 5733 5734fi 5735 5736to_host_file_cmd=$lt_cv_to_host_file_cmd 5737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5738printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5739 5740 5741 5742 5743 5744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5745printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5746if test ${lt_cv_to_tool_file_cmd+y} 5747then : 5748 printf %s "(cached) " >&6 5749else $as_nop 5750 #assume ordinary cross tools, or native build. 5751lt_cv_to_tool_file_cmd=func_convert_file_noop 5752case $host in 5753 *-*-mingw* ) 5754 case $build in 5755 *-*-mingw* ) # actually msys 5756 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5757 ;; 5758 esac 5759 ;; 5760esac 5761 5762fi 5763 5764to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5766printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5767 5768 5769 5770 5771 5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5773printf %s "checking for $LD option to reload object files... " >&6; } 5774if test ${lt_cv_ld_reload_flag+y} 5775then : 5776 printf %s "(cached) " >&6 5777else $as_nop 5778 lt_cv_ld_reload_flag='-r' 5779fi 5780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5781printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5782reload_flag=$lt_cv_ld_reload_flag 5783case $reload_flag in 5784"" | " "*) ;; 5785*) reload_flag=" $reload_flag" ;; 5786esac 5787reload_cmds='$LD$reload_flag -o $output$reload_objs' 5788case $host_os in 5789 cygwin* | mingw* | pw32* | cegcc*) 5790 if test yes != "$GCC"; then 5791 reload_cmds=false 5792 fi 5793 ;; 5794 darwin*) 5795 if test yes = "$GCC"; then 5796 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5797 else 5798 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5799 fi 5800 ;; 5801esac 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811if test -n "$ac_tool_prefix"; then 5812 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5813set dummy ${ac_tool_prefix}file; ac_word=$2 5814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5815printf %s "checking for $ac_word... " >&6; } 5816if test ${ac_cv_prog_FILECMD+y} 5817then : 5818 printf %s "(cached) " >&6 5819else $as_nop 5820 if test -n "$FILECMD"; then 5821 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5822else 5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824for as_dir in $PATH 5825do 5826 IFS=$as_save_IFS 5827 case $as_dir in #((( 5828 '') as_dir=./ ;; 5829 */) ;; 5830 *) as_dir=$as_dir/ ;; 5831 esac 5832 for ac_exec_ext in '' $ac_executable_extensions; do 5833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5834 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5836 break 2 5837 fi 5838done 5839 done 5840IFS=$as_save_IFS 5841 5842fi 5843fi 5844FILECMD=$ac_cv_prog_FILECMD 5845if test -n "$FILECMD"; then 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5847printf "%s\n" "$FILECMD" >&6; } 5848else 5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5850printf "%s\n" "no" >&6; } 5851fi 5852 5853 5854fi 5855if test -z "$ac_cv_prog_FILECMD"; then 5856 ac_ct_FILECMD=$FILECMD 5857 # Extract the first word of "file", so it can be a program name with args. 5858set dummy file; ac_word=$2 5859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5860printf %s "checking for $ac_word... " >&6; } 5861if test ${ac_cv_prog_ac_ct_FILECMD+y} 5862then : 5863 printf %s "(cached) " >&6 5864else $as_nop 5865 if test -n "$ac_ct_FILECMD"; then 5866 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5867else 5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869for as_dir in $PATH 5870do 5871 IFS=$as_save_IFS 5872 case $as_dir in #((( 5873 '') as_dir=./ ;; 5874 */) ;; 5875 *) as_dir=$as_dir/ ;; 5876 esac 5877 for ac_exec_ext in '' $ac_executable_extensions; do 5878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5879 ac_cv_prog_ac_ct_FILECMD="file" 5880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5881 break 2 5882 fi 5883done 5884 done 5885IFS=$as_save_IFS 5886 5887fi 5888fi 5889ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5890if test -n "$ac_ct_FILECMD"; then 5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5892printf "%s\n" "$ac_ct_FILECMD" >&6; } 5893else 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5895printf "%s\n" "no" >&6; } 5896fi 5897 5898 if test "x$ac_ct_FILECMD" = x; then 5899 FILECMD=":" 5900 else 5901 case $cross_compiling:$ac_tool_warned in 5902yes:) 5903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5904printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5905ac_tool_warned=yes ;; 5906esac 5907 FILECMD=$ac_ct_FILECMD 5908 fi 5909else 5910 FILECMD="$ac_cv_prog_FILECMD" 5911fi 5912 5913 5914 5915 5916 5917 5918 5919if test -n "$ac_tool_prefix"; then 5920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5921set dummy ${ac_tool_prefix}objdump; ac_word=$2 5922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5923printf %s "checking for $ac_word... " >&6; } 5924if test ${ac_cv_prog_OBJDUMP+y} 5925then : 5926 printf %s "(cached) " >&6 5927else $as_nop 5928 if test -n "$OBJDUMP"; then 5929 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5930else 5931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5932for as_dir in $PATH 5933do 5934 IFS=$as_save_IFS 5935 case $as_dir in #((( 5936 '') as_dir=./ ;; 5937 */) ;; 5938 *) as_dir=$as_dir/ ;; 5939 esac 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5942 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5944 break 2 5945 fi 5946done 5947 done 5948IFS=$as_save_IFS 5949 5950fi 5951fi 5952OBJDUMP=$ac_cv_prog_OBJDUMP 5953if test -n "$OBJDUMP"; then 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5955printf "%s\n" "$OBJDUMP" >&6; } 5956else 5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5958printf "%s\n" "no" >&6; } 5959fi 5960 5961 5962fi 5963if test -z "$ac_cv_prog_OBJDUMP"; then 5964 ac_ct_OBJDUMP=$OBJDUMP 5965 # Extract the first word of "objdump", so it can be a program name with args. 5966set dummy objdump; ac_word=$2 5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5968printf %s "checking for $ac_word... " >&6; } 5969if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5970then : 5971 printf %s "(cached) " >&6 5972else $as_nop 5973 if test -n "$ac_ct_OBJDUMP"; then 5974 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5975else 5976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5977for as_dir in $PATH 5978do 5979 IFS=$as_save_IFS 5980 case $as_dir in #((( 5981 '') as_dir=./ ;; 5982 */) ;; 5983 *) as_dir=$as_dir/ ;; 5984 esac 5985 for ac_exec_ext in '' $ac_executable_extensions; do 5986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5987 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5989 break 2 5990 fi 5991done 5992 done 5993IFS=$as_save_IFS 5994 5995fi 5996fi 5997ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5998if test -n "$ac_ct_OBJDUMP"; then 5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6000printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6001else 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6003printf "%s\n" "no" >&6; } 6004fi 6005 6006 if test "x$ac_ct_OBJDUMP" = x; then 6007 OBJDUMP="false" 6008 else 6009 case $cross_compiling:$ac_tool_warned in 6010yes:) 6011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6012printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6013ac_tool_warned=yes ;; 6014esac 6015 OBJDUMP=$ac_ct_OBJDUMP 6016 fi 6017else 6018 OBJDUMP="$ac_cv_prog_OBJDUMP" 6019fi 6020 6021test -z "$OBJDUMP" && OBJDUMP=objdump 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6032printf %s "checking how to recognize dependent libraries... " >&6; } 6033if test ${lt_cv_deplibs_check_method+y} 6034then : 6035 printf %s "(cached) " >&6 6036else $as_nop 6037 lt_cv_file_magic_cmd='$MAGIC_CMD' 6038lt_cv_file_magic_test_file= 6039lt_cv_deplibs_check_method='unknown' 6040# Need to set the preceding variable on all platforms that support 6041# interlibrary dependencies. 6042# 'none' -- dependencies not supported. 6043# 'unknown' -- same as none, but documents that we really don't know. 6044# 'pass_all' -- all dependencies passed with no checks. 6045# 'test_compile' -- check by making test program. 6046# 'file_magic [[regex]]' -- check by looking for files in library path 6047# that responds to the $file_magic_cmd with a given extended regex. 6048# If you have 'file' or equivalent on your system and you're not sure 6049# whether 'pass_all' will *always* work, you probably want this one. 6050 6051case $host_os in 6052aix[4-9]*) 6053 lt_cv_deplibs_check_method=pass_all 6054 ;; 6055 6056beos*) 6057 lt_cv_deplibs_check_method=pass_all 6058 ;; 6059 6060bsdi[45]*) 6061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6062 lt_cv_file_magic_cmd='$FILECMD -L' 6063 lt_cv_file_magic_test_file=/shlib/libc.so 6064 ;; 6065 6066cygwin*) 6067 # func_win32_libid is a shell function defined in ltmain.sh 6068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6069 lt_cv_file_magic_cmd='func_win32_libid' 6070 ;; 6071 6072mingw* | pw32*) 6073 # Base MSYS/MinGW do not provide the 'file' command needed by 6074 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6075 # unless we find 'file', for example because we are cross-compiling. 6076 if ( file / ) >/dev/null 2>&1; then 6077 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6078 lt_cv_file_magic_cmd='func_win32_libid' 6079 else 6080 # Keep this pattern in sync with the one in func_win32_libid. 6081 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6082 lt_cv_file_magic_cmd='$OBJDUMP -f' 6083 fi 6084 ;; 6085 6086cegcc*) 6087 # use the weaker test based on 'objdump'. See mingw*. 6088 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6089 lt_cv_file_magic_cmd='$OBJDUMP -f' 6090 ;; 6091 6092darwin* | rhapsody*) 6093 lt_cv_deplibs_check_method=pass_all 6094 ;; 6095 6096freebsd* | dragonfly* | midnightbsd*) 6097 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6098 case $host_cpu in 6099 i*86 ) 6100 # Not sure whether the presence of OpenBSD here was a mistake. 6101 # Let's accept both of them until this is cleared up. 6102 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6103 lt_cv_file_magic_cmd=$FILECMD 6104 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6105 ;; 6106 esac 6107 else 6108 lt_cv_deplibs_check_method=pass_all 6109 fi 6110 ;; 6111 6112haiku*) 6113 lt_cv_deplibs_check_method=pass_all 6114 ;; 6115 6116hpux10.20* | hpux11*) 6117 lt_cv_file_magic_cmd=$FILECMD 6118 case $host_cpu in 6119 ia64*) 6120 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6121 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6122 ;; 6123 hppa*64*) 6124 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]' 6125 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6126 ;; 6127 *) 6128 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6129 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6130 ;; 6131 esac 6132 ;; 6133 6134interix[3-9]*) 6135 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6137 ;; 6138 6139irix5* | irix6* | nonstopux*) 6140 case $LD in 6141 *-32|*"-32 ") libmagic=32-bit;; 6142 *-n32|*"-n32 ") libmagic=N32;; 6143 *-64|*"-64 ") libmagic=64-bit;; 6144 *) libmagic=never-match;; 6145 esac 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148 6149# This must be glibc/ELF. 6150linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 6154netbsd*) 6155 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6157 else 6158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6159 fi 6160 ;; 6161 6162newos6*) 6163 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6164 lt_cv_file_magic_cmd=$FILECMD 6165 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6166 ;; 6167 6168*nto* | *qnx*) 6169 lt_cv_deplibs_check_method=pass_all 6170 ;; 6171 6172openbsd* | bitrig*) 6173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6175 else 6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6177 fi 6178 ;; 6179 6180osf3* | osf4* | osf5*) 6181 lt_cv_deplibs_check_method=pass_all 6182 ;; 6183 6184rdos*) 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 6231fi 6232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6233printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6234 6235file_magic_glob= 6236want_nocaseglob=no 6237if test "$build" = "$host"; then 6238 case $host_os in 6239 mingw* | pw32*) 6240 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6241 want_nocaseglob=yes 6242 else 6243 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6244 fi 6245 ;; 6246 esac 6247fi 6248 6249file_magic_cmd=$lt_cv_file_magic_cmd 6250deplibs_check_method=$lt_cv_deplibs_check_method 6251test -z "$deplibs_check_method" && deplibs_check_method=unknown 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274if test -n "$ac_tool_prefix"; then 6275 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6276set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6278printf %s "checking for $ac_word... " >&6; } 6279if test ${ac_cv_prog_DLLTOOL+y} 6280then : 6281 printf %s "(cached) " >&6 6282else $as_nop 6283 if test -n "$DLLTOOL"; then 6284 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6285else 6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6287for as_dir in $PATH 6288do 6289 IFS=$as_save_IFS 6290 case $as_dir in #((( 6291 '') as_dir=./ ;; 6292 */) ;; 6293 *) as_dir=$as_dir/ ;; 6294 esac 6295 for ac_exec_ext in '' $ac_executable_extensions; do 6296 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6297 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6299 break 2 6300 fi 6301done 6302 done 6303IFS=$as_save_IFS 6304 6305fi 6306fi 6307DLLTOOL=$ac_cv_prog_DLLTOOL 6308if test -n "$DLLTOOL"; then 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6310printf "%s\n" "$DLLTOOL" >&6; } 6311else 6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6313printf "%s\n" "no" >&6; } 6314fi 6315 6316 6317fi 6318if test -z "$ac_cv_prog_DLLTOOL"; then 6319 ac_ct_DLLTOOL=$DLLTOOL 6320 # Extract the first word of "dlltool", so it can be a program name with args. 6321set dummy dlltool; ac_word=$2 6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6323printf %s "checking for $ac_word... " >&6; } 6324if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6325then : 6326 printf %s "(cached) " >&6 6327else $as_nop 6328 if test -n "$ac_ct_DLLTOOL"; then 6329 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6330else 6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332for as_dir in $PATH 6333do 6334 IFS=$as_save_IFS 6335 case $as_dir in #((( 6336 '') as_dir=./ ;; 6337 */) ;; 6338 *) as_dir=$as_dir/ ;; 6339 esac 6340 for ac_exec_ext in '' $ac_executable_extensions; do 6341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6342 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6344 break 2 6345 fi 6346done 6347 done 6348IFS=$as_save_IFS 6349 6350fi 6351fi 6352ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6353if test -n "$ac_ct_DLLTOOL"; then 6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6355printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6356else 6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6358printf "%s\n" "no" >&6; } 6359fi 6360 6361 if test "x$ac_ct_DLLTOOL" = x; then 6362 DLLTOOL="false" 6363 else 6364 case $cross_compiling:$ac_tool_warned in 6365yes:) 6366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6367printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6368ac_tool_warned=yes ;; 6369esac 6370 DLLTOOL=$ac_ct_DLLTOOL 6371 fi 6372else 6373 DLLTOOL="$ac_cv_prog_DLLTOOL" 6374fi 6375 6376test -z "$DLLTOOL" && DLLTOOL=dlltool 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6388printf %s "checking how to associate runtime and link libraries... " >&6; } 6389if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6390then : 6391 printf %s "(cached) " >&6 6392else $as_nop 6393 lt_cv_sharedlib_from_linklib_cmd='unknown' 6394 6395case $host_os in 6396cygwin* | mingw* | pw32* | cegcc*) 6397 # two different shell functions defined in ltmain.sh; 6398 # decide which one to use based on capabilities of $DLLTOOL 6399 case `$DLLTOOL --help 2>&1` in 6400 *--identify-strict*) 6401 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6402 ;; 6403 *) 6404 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6405 ;; 6406 esac 6407 ;; 6408*) 6409 # fallback: assume linklib IS sharedlib 6410 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6411 ;; 6412esac 6413 6414fi 6415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6416printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6417sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6418test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6419 6420 6421 6422 6423 6424 6425 6426if test -n "$ac_tool_prefix"; then 6427 for ac_prog in ar 6428 do 6429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6430set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432printf %s "checking for $ac_word... " >&6; } 6433if test ${ac_cv_prog_AR+y} 6434then : 6435 printf %s "(cached) " >&6 6436else $as_nop 6437 if test -n "$AR"; then 6438 ac_cv_prog_AR="$AR" # Let the user override the test. 6439else 6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6441for as_dir in $PATH 6442do 6443 IFS=$as_save_IFS 6444 case $as_dir in #((( 6445 '') as_dir=./ ;; 6446 */) ;; 6447 *) as_dir=$as_dir/ ;; 6448 esac 6449 for ac_exec_ext in '' $ac_executable_extensions; do 6450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6451 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6453 break 2 6454 fi 6455done 6456 done 6457IFS=$as_save_IFS 6458 6459fi 6460fi 6461AR=$ac_cv_prog_AR 6462if test -n "$AR"; then 6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6464printf "%s\n" "$AR" >&6; } 6465else 6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467printf "%s\n" "no" >&6; } 6468fi 6469 6470 6471 test -n "$AR" && break 6472 done 6473fi 6474if test -z "$AR"; then 6475 ac_ct_AR=$AR 6476 for ac_prog in ar 6477do 6478 # Extract the first word of "$ac_prog", so it can be a program name with args. 6479set dummy $ac_prog; 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_AR+y} 6483then : 6484 printf %s "(cached) " >&6 6485else $as_nop 6486 if test -n "$ac_ct_AR"; then 6487 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="$ac_prog" 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 6509fi 6510ac_ct_AR=$ac_cv_prog_ac_ct_AR 6511if test -n "$ac_ct_AR"; then 6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6513printf "%s\n" "$ac_ct_AR" >&6; } 6514else 6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6516printf "%s\n" "no" >&6; } 6517fi 6518 6519 6520 test -n "$ac_ct_AR" && break 6521done 6522 6523 if test "x$ac_ct_AR" = x; then 6524 AR="false" 6525 else 6526 case $cross_compiling:$ac_tool_warned in 6527yes:) 6528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6529printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6530ac_tool_warned=yes ;; 6531esac 6532 AR=$ac_ct_AR 6533 fi 6534fi 6535 6536: ${AR=ar} 6537 6538 6539 6540 6541 6542 6543# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6544# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6545# higher priority because thats what people were doing historically (setting 6546# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6547# variable obsoleted/removed. 6548 6549test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6550lt_ar_flags=$AR_FLAGS 6551 6552 6553 6554 6555 6556 6557# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6558# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6559 6560 6561 6562 6563 6564 6565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6566printf %s "checking for archiver @FILE support... " >&6; } 6567if test ${lt_cv_ar_at_file+y} 6568then : 6569 printf %s "(cached) " >&6 6570else $as_nop 6571 lt_cv_ar_at_file=no 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574 6575int 6576main (void) 6577{ 6578 6579 ; 6580 return 0; 6581} 6582_ACEOF 6583if ac_fn_c_try_compile "$LINENO" 6584then : 6585 echo conftest.$ac_objext > conftest.lst 6586 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6588 (eval $lt_ar_try) 2>&5 6589 ac_status=$? 6590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6591 test $ac_status = 0; } 6592 if test 0 -eq "$ac_status"; then 6593 # Ensure the archiver fails upon bogus file names. 6594 rm -f conftest.$ac_objext libconftest.a 6595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6596 (eval $lt_ar_try) 2>&5 6597 ac_status=$? 6598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6599 test $ac_status = 0; } 6600 if test 0 -ne "$ac_status"; then 6601 lt_cv_ar_at_file=@ 6602 fi 6603 fi 6604 rm -f conftest.* libconftest.a 6605 6606fi 6607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6608 6609fi 6610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6611printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6612 6613if test no = "$lt_cv_ar_at_file"; then 6614 archiver_list_spec= 6615else 6616 archiver_list_spec=$lt_cv_ar_at_file 6617fi 6618 6619 6620 6621 6622 6623 6624 6625if test -n "$ac_tool_prefix"; then 6626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6627set dummy ${ac_tool_prefix}strip; ac_word=$2 6628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6629printf %s "checking for $ac_word... " >&6; } 6630if test ${ac_cv_prog_STRIP+y} 6631then : 6632 printf %s "(cached) " >&6 6633else $as_nop 6634 if test -n "$STRIP"; then 6635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6636else 6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6638for as_dir in $PATH 6639do 6640 IFS=$as_save_IFS 6641 case $as_dir in #((( 6642 '') as_dir=./ ;; 6643 */) ;; 6644 *) as_dir=$as_dir/ ;; 6645 esac 6646 for ac_exec_ext in '' $ac_executable_extensions; do 6647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6648 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6650 break 2 6651 fi 6652done 6653 done 6654IFS=$as_save_IFS 6655 6656fi 6657fi 6658STRIP=$ac_cv_prog_STRIP 6659if test -n "$STRIP"; then 6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6661printf "%s\n" "$STRIP" >&6; } 6662else 6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6664printf "%s\n" "no" >&6; } 6665fi 6666 6667 6668fi 6669if test -z "$ac_cv_prog_STRIP"; then 6670 ac_ct_STRIP=$STRIP 6671 # Extract the first word of "strip", so it can be a program name with args. 6672set dummy strip; ac_word=$2 6673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6674printf %s "checking for $ac_word... " >&6; } 6675if test ${ac_cv_prog_ac_ct_STRIP+y} 6676then : 6677 printf %s "(cached) " >&6 6678else $as_nop 6679 if test -n "$ac_ct_STRIP"; then 6680 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6681else 6682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6683for as_dir in $PATH 6684do 6685 IFS=$as_save_IFS 6686 case $as_dir in #((( 6687 '') as_dir=./ ;; 6688 */) ;; 6689 *) as_dir=$as_dir/ ;; 6690 esac 6691 for ac_exec_ext in '' $ac_executable_extensions; do 6692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6693 ac_cv_prog_ac_ct_STRIP="strip" 6694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6695 break 2 6696 fi 6697done 6698 done 6699IFS=$as_save_IFS 6700 6701fi 6702fi 6703ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6704if test -n "$ac_ct_STRIP"; then 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6706printf "%s\n" "$ac_ct_STRIP" >&6; } 6707else 6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6709printf "%s\n" "no" >&6; } 6710fi 6711 6712 if test "x$ac_ct_STRIP" = x; then 6713 STRIP=":" 6714 else 6715 case $cross_compiling:$ac_tool_warned in 6716yes:) 6717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6719ac_tool_warned=yes ;; 6720esac 6721 STRIP=$ac_ct_STRIP 6722 fi 6723else 6724 STRIP="$ac_cv_prog_STRIP" 6725fi 6726 6727test -z "$STRIP" && STRIP=: 6728 6729 6730 6731 6732 6733 6734if test -n "$ac_tool_prefix"; then 6735 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6736set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738printf %s "checking for $ac_word... " >&6; } 6739if test ${ac_cv_prog_RANLIB+y} 6740then : 6741 printf %s "(cached) " >&6 6742else $as_nop 6743 if test -n "$RANLIB"; then 6744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6745else 6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6747for as_dir in $PATH 6748do 6749 IFS=$as_save_IFS 6750 case $as_dir in #((( 6751 '') as_dir=./ ;; 6752 */) ;; 6753 *) as_dir=$as_dir/ ;; 6754 esac 6755 for ac_exec_ext in '' $ac_executable_extensions; do 6756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6759 break 2 6760 fi 6761done 6762 done 6763IFS=$as_save_IFS 6764 6765fi 6766fi 6767RANLIB=$ac_cv_prog_RANLIB 6768if test -n "$RANLIB"; then 6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6770printf "%s\n" "$RANLIB" >&6; } 6771else 6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6773printf "%s\n" "no" >&6; } 6774fi 6775 6776 6777fi 6778if test -z "$ac_cv_prog_RANLIB"; then 6779 ac_ct_RANLIB=$RANLIB 6780 # Extract the first word of "ranlib", so it can be a program name with args. 6781set dummy ranlib; ac_word=$2 6782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6783printf %s "checking for $ac_word... " >&6; } 6784if test ${ac_cv_prog_ac_ct_RANLIB+y} 6785then : 6786 printf %s "(cached) " >&6 6787else $as_nop 6788 if test -n "$ac_ct_RANLIB"; then 6789 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6790else 6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792for as_dir in $PATH 6793do 6794 IFS=$as_save_IFS 6795 case $as_dir in #((( 6796 '') as_dir=./ ;; 6797 */) ;; 6798 *) as_dir=$as_dir/ ;; 6799 esac 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6802 ac_cv_prog_ac_ct_RANLIB="ranlib" 6803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6813if test -n "$ac_ct_RANLIB"; then 6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6815printf "%s\n" "$ac_ct_RANLIB" >&6; } 6816else 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818printf "%s\n" "no" >&6; } 6819fi 6820 6821 if test "x$ac_ct_RANLIB" = x; then 6822 RANLIB=":" 6823 else 6824 case $cross_compiling:$ac_tool_warned in 6825yes:) 6826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6827printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6828ac_tool_warned=yes ;; 6829esac 6830 RANLIB=$ac_ct_RANLIB 6831 fi 6832else 6833 RANLIB="$ac_cv_prog_RANLIB" 6834fi 6835 6836test -z "$RANLIB" && RANLIB=: 6837 6838 6839 6840 6841 6842 6843# Determine commands to create old-style static archives. 6844old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6845old_postinstall_cmds='chmod 644 $oldlib' 6846old_postuninstall_cmds= 6847 6848if test -n "$RANLIB"; then 6849 case $host_os in 6850 bitrig* | openbsd*) 6851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6852 ;; 6853 *) 6854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6855 ;; 6856 esac 6857 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6858fi 6859 6860case $host_os in 6861 darwin*) 6862 lock_old_archive_extraction=yes ;; 6863 *) 6864 lock_old_archive_extraction=no ;; 6865esac 6866 6867 6868 6869 6870 6871 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# If no C compiler was specified, use CC. 6906LTCC=${LTCC-"$CC"} 6907 6908# If no C compiler flags were specified, use CFLAGS. 6909LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6910 6911# Allow CC to be a program name with arguments. 6912compiler=$CC 6913 6914 6915# Check for command to grab the raw symbol name followed by C symbol from nm. 6916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6917printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6918if test ${lt_cv_sys_global_symbol_pipe+y} 6919then : 6920 printf %s "(cached) " >&6 6921else $as_nop 6922 6923# These are sane defaults that work on at least a few old systems. 6924# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6925 6926# Character class describing NM global symbol codes. 6927symcode='[BCDEGRST]' 6928 6929# Regexp to match symbols that can be accessed directly from C. 6930sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6931 6932# Define system-specific variables. 6933case $host_os in 6934aix*) 6935 symcode='[BCDT]' 6936 ;; 6937cygwin* | mingw* | pw32* | cegcc*) 6938 symcode='[ABCDGISTW]' 6939 ;; 6940hpux*) 6941 if test ia64 = "$host_cpu"; then 6942 symcode='[ABCDEGRST]' 6943 fi 6944 ;; 6945irix* | nonstopux*) 6946 symcode='[BCDEGRST]' 6947 ;; 6948osf*) 6949 symcode='[BCDEGQRST]' 6950 ;; 6951solaris*) 6952 symcode='[BDRT]' 6953 ;; 6954sco3.2v5*) 6955 symcode='[DT]' 6956 ;; 6957sysv4.2uw2*) 6958 symcode='[DT]' 6959 ;; 6960sysv5* | sco5v6* | unixware* | OpenUNIX*) 6961 symcode='[ABDT]' 6962 ;; 6963sysv4) 6964 symcode='[DFNSTU]' 6965 ;; 6966esac 6967 6968# If we're using GNU nm, then use its standard symbol codes. 6969case `$NM -V 2>&1` in 6970*GNU* | *'with BFD'*) 6971 symcode='[ABCDGIRSTW]' ;; 6972esac 6973 6974if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6975 # Gets list of data symbols to import. 6976 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6977 # Adjust the below global symbol transforms to fixup imported variables. 6978 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6979 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6980 lt_c_name_lib_hook="\ 6981 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6982 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6983else 6984 # Disable hooks by default. 6985 lt_cv_sys_global_symbol_to_import= 6986 lt_cdecl_hook= 6987 lt_c_name_hook= 6988 lt_c_name_lib_hook= 6989fi 6990 6991# Transform an extracted symbol line into a proper C declaration. 6992# Some systems (esp. on ia64) link data and code symbols differently, 6993# so use this general approach. 6994lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6995$lt_cdecl_hook\ 6996" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6997" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6998 6999# Transform an extracted symbol line into symbol name and symbol address 7000lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7001$lt_c_name_hook\ 7002" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7003" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7004 7005# Transform an extracted symbol line into symbol name with lib prefix and 7006# symbol address. 7007lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7008$lt_c_name_lib_hook\ 7009" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7010" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7011" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7012 7013# Handle CRLF in mingw tool chain 7014opt_cr= 7015case $build_os in 7016mingw*) 7017 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7018 ;; 7019esac 7020 7021# Try without a prefix underscore, then with it. 7022for ac_symprfx in "" "_"; do 7023 7024 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7025 symxfrm="\\1 $ac_symprfx\\2 \\2" 7026 7027 # Write the raw and C identifiers. 7028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7029 # Fake it for dumpbin and say T for any non-static function, 7030 # D for any global variable and I for any imported variable. 7031 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7032 # which start with @ or ?. 7033 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7034" {last_section=section; section=\$ 3};"\ 7035" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7036" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7037" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7038" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7039" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7040" \$ 0!~/External *\|/{next};"\ 7041" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7042" {if(hide[section]) next};"\ 7043" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7044" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7045" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7046" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7047" ' prfx=^$ac_symprfx" 7048 else 7049 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7050 fi 7051 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7052 7053 # Check to see that the pipe works correctly. 7054 pipe_works=no 7055 7056 rm -f conftest* 7057 cat > conftest.$ac_ext <<_LT_EOF 7058#ifdef __cplusplus 7059extern "C" { 7060#endif 7061char nm_test_var; 7062void nm_test_func(void); 7063void nm_test_func(void){} 7064#ifdef __cplusplus 7065} 7066#endif 7067int main(){nm_test_var='a';nm_test_func();return(0);} 7068_LT_EOF 7069 7070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7071 (eval $ac_compile) 2>&5 7072 ac_status=$? 7073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7074 test $ac_status = 0; }; then 7075 # Now try to grab the symbols. 7076 nlist=conftest.nm 7077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7078 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7079 ac_status=$? 7080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7081 test $ac_status = 0; } && test -s "$nlist"; then 7082 # Try sorting and uniquifying the output. 7083 if sort "$nlist" | uniq > "$nlist"T; then 7084 mv -f "$nlist"T "$nlist" 7085 else 7086 rm -f "$nlist"T 7087 fi 7088 7089 # Make sure that we snagged all the symbols we need. 7090 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7091 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7092 cat <<_LT_EOF > conftest.$ac_ext 7093/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7094#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7095/* DATA imports from DLLs on WIN32 can't be const, because runtime 7096 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7097# define LT_DLSYM_CONST 7098#elif defined __osf__ 7099/* This system does not cope well with relocations in const data. */ 7100# define LT_DLSYM_CONST 7101#else 7102# define LT_DLSYM_CONST const 7103#endif 7104 7105#ifdef __cplusplus 7106extern "C" { 7107#endif 7108 7109_LT_EOF 7110 # Now generate the symbol file. 7111 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7112 7113 cat <<_LT_EOF >> conftest.$ac_ext 7114 7115/* The mapping between symbol names and symbols. */ 7116LT_DLSYM_CONST struct { 7117 const char *name; 7118 void *address; 7119} 7120lt__PROGRAM__LTX_preloaded_symbols[] = 7121{ 7122 { "@PROGRAM@", (void *) 0 }, 7123_LT_EOF 7124 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7125 cat <<\_LT_EOF >> conftest.$ac_ext 7126 {0, (void *) 0} 7127}; 7128 7129/* This works around a problem in FreeBSD linker */ 7130#ifdef FREEBSD_WORKAROUND 7131static const void *lt_preloaded_setup() { 7132 return lt__PROGRAM__LTX_preloaded_symbols; 7133} 7134#endif 7135 7136#ifdef __cplusplus 7137} 7138#endif 7139_LT_EOF 7140 # Now try linking the two files. 7141 mv conftest.$ac_objext conftstm.$ac_objext 7142 lt_globsym_save_LIBS=$LIBS 7143 lt_globsym_save_CFLAGS=$CFLAGS 7144 LIBS=conftstm.$ac_objext 7145 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7147 (eval $ac_link) 2>&5 7148 ac_status=$? 7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7150 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7151 pipe_works=yes 7152 fi 7153 LIBS=$lt_globsym_save_LIBS 7154 CFLAGS=$lt_globsym_save_CFLAGS 7155 else 7156 echo "cannot find nm_test_func in $nlist" >&5 7157 fi 7158 else 7159 echo "cannot find nm_test_var in $nlist" >&5 7160 fi 7161 else 7162 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7163 fi 7164 else 7165 echo "$progname: failed program was:" >&5 7166 cat conftest.$ac_ext >&5 7167 fi 7168 rm -rf conftest* conftst* 7169 7170 # Do not use the global_symbol_pipe unless it works. 7171 if test yes = "$pipe_works"; then 7172 break 7173 else 7174 lt_cv_sys_global_symbol_pipe= 7175 fi 7176done 7177 7178fi 7179 7180if test -z "$lt_cv_sys_global_symbol_pipe"; then 7181 lt_cv_sys_global_symbol_to_cdecl= 7182fi 7183if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7185printf "%s\n" "failed" >&6; } 7186else 7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7188printf "%s\n" "ok" >&6; } 7189fi 7190 7191# Response file support. 7192if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7193 nm_file_list_spec='@' 7194elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7195 nm_file_list_spec='@' 7196fi 7197 7198 7199 7200 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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7235printf %s "checking for sysroot... " >&6; } 7236 7237# Check whether --with-sysroot was given. 7238if test ${with_sysroot+y} 7239then : 7240 withval=$with_sysroot; 7241else $as_nop 7242 with_sysroot=no 7243fi 7244 7245 7246lt_sysroot= 7247case $with_sysroot in #( 7248 yes) 7249 if test yes = "$GCC"; then 7250 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7251 fi 7252 ;; #( 7253 /*) 7254 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7255 ;; #( 7256 no|'') 7257 ;; #( 7258 *) 7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7260printf "%s\n" "$with_sysroot" >&6; } 7261 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7262 ;; 7263esac 7264 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7266printf "%s\n" "${lt_sysroot:-no}" >&6; } 7267 7268 7269 7270 7271 7272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7273printf %s "checking for a working dd... " >&6; } 7274if test ${ac_cv_path_lt_DD+y} 7275then : 7276 printf %s "(cached) " >&6 7277else $as_nop 7278 printf 0123456789abcdef0123456789abcdef >conftest.i 7279cat conftest.i conftest.i >conftest2.i 7280: ${lt_DD:=$DD} 7281if test -z "$lt_DD"; then 7282 ac_path_lt_DD_found=false 7283 # Loop through the user's path and test for each of PROGNAME-LIST 7284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7285for as_dir in $PATH 7286do 7287 IFS=$as_save_IFS 7288 case $as_dir in #((( 7289 '') as_dir=./ ;; 7290 */) ;; 7291 *) as_dir=$as_dir/ ;; 7292 esac 7293 for ac_prog in dd 7294 do 7295 for ac_exec_ext in '' $ac_executable_extensions; do 7296 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7297 as_fn_executable_p "$ac_path_lt_DD" || continue 7298if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7299 cmp -s conftest.i conftest.out \ 7300 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7301fi 7302 $ac_path_lt_DD_found && break 3 7303 done 7304 done 7305 done 7306IFS=$as_save_IFS 7307 if test -z "$ac_cv_path_lt_DD"; then 7308 : 7309 fi 7310else 7311 ac_cv_path_lt_DD=$lt_DD 7312fi 7313 7314rm -f conftest.i conftest2.i conftest.out 7315fi 7316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7317printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7318 7319 7320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7321printf %s "checking how to truncate binary pipes... " >&6; } 7322if test ${lt_cv_truncate_bin+y} 7323then : 7324 printf %s "(cached) " >&6 7325else $as_nop 7326 printf 0123456789abcdef0123456789abcdef >conftest.i 7327cat conftest.i conftest.i >conftest2.i 7328lt_cv_truncate_bin= 7329if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7330 cmp -s conftest.i conftest.out \ 7331 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7332fi 7333rm -f conftest.i conftest2.i conftest.out 7334test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7335fi 7336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7337printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7338 7339 7340 7341 7342 7343 7344 7345# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7346func_cc_basename () 7347{ 7348 for cc_temp in $*""; do 7349 case $cc_temp in 7350 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7351 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7352 \-*) ;; 7353 *) break;; 7354 esac 7355 done 7356 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7357} 7358 7359# Check whether --enable-libtool-lock was given. 7360if test ${enable_libtool_lock+y} 7361then : 7362 enableval=$enable_libtool_lock; 7363fi 7364 7365test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7366 7367# Some flags need to be propagated to the compiler or linker for good 7368# libtool support. 7369case $host in 7370ia64-*-hpux*) 7371 # Find out what ABI is being produced by ac_compile, and set mode 7372 # options accordingly. 7373 echo 'int i;' > conftest.$ac_ext 7374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7375 (eval $ac_compile) 2>&5 7376 ac_status=$? 7377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7378 test $ac_status = 0; }; then 7379 case `$FILECMD conftest.$ac_objext` in 7380 *ELF-32*) 7381 HPUX_IA64_MODE=32 7382 ;; 7383 *ELF-64*) 7384 HPUX_IA64_MODE=64 7385 ;; 7386 esac 7387 fi 7388 rm -rf conftest* 7389 ;; 7390*-*-irix6*) 7391 # Find out what ABI is being produced by ac_compile, and set linker 7392 # options accordingly. 7393 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7395 (eval $ac_compile) 2>&5 7396 ac_status=$? 7397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7398 test $ac_status = 0; }; then 7399 if test yes = "$lt_cv_prog_gnu_ld"; then 7400 case `$FILECMD conftest.$ac_objext` in 7401 *32-bit*) 7402 LD="${LD-ld} -melf32bsmip" 7403 ;; 7404 *N32*) 7405 LD="${LD-ld} -melf32bmipn32" 7406 ;; 7407 *64-bit*) 7408 LD="${LD-ld} -melf64bmip" 7409 ;; 7410 esac 7411 else 7412 case `$FILECMD conftest.$ac_objext` in 7413 *32-bit*) 7414 LD="${LD-ld} -32" 7415 ;; 7416 *N32*) 7417 LD="${LD-ld} -n32" 7418 ;; 7419 *64-bit*) 7420 LD="${LD-ld} -64" 7421 ;; 7422 esac 7423 fi 7424 fi 7425 rm -rf conftest* 7426 ;; 7427 7428mips64*-*linux*) 7429 # Find out what ABI is being produced by ac_compile, and set linker 7430 # options accordingly. 7431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7433 (eval $ac_compile) 2>&5 7434 ac_status=$? 7435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7436 test $ac_status = 0; }; then 7437 emul=elf 7438 case `$FILECMD conftest.$ac_objext` in 7439 *32-bit*) 7440 emul="${emul}32" 7441 ;; 7442 *64-bit*) 7443 emul="${emul}64" 7444 ;; 7445 esac 7446 case `$FILECMD conftest.$ac_objext` in 7447 *MSB*) 7448 emul="${emul}btsmip" 7449 ;; 7450 *LSB*) 7451 emul="${emul}ltsmip" 7452 ;; 7453 esac 7454 case `$FILECMD conftest.$ac_objext` in 7455 *N32*) 7456 emul="${emul}n32" 7457 ;; 7458 esac 7459 LD="${LD-ld} -m $emul" 7460 fi 7461 rm -rf conftest* 7462 ;; 7463 7464x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7465s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7466 # Find out what ABI is being produced by ac_compile, and set linker 7467 # options accordingly. Note that the listed cases only cover the 7468 # situations where additional linker options are needed (such as when 7469 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7470 # vice versa); the common cases where no linker options are needed do 7471 # not appear in the list. 7472 echo 'int i;' > conftest.$ac_ext 7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7474 (eval $ac_compile) 2>&5 7475 ac_status=$? 7476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7477 test $ac_status = 0; }; then 7478 case `$FILECMD conftest.o` in 7479 *32-bit*) 7480 case $host in 7481 x86_64-*kfreebsd*-gnu) 7482 LD="${LD-ld} -m elf_i386_fbsd" 7483 ;; 7484 x86_64-*linux*) 7485 case `$FILECMD conftest.o` in 7486 *x86-64*) 7487 LD="${LD-ld} -m elf32_x86_64" 7488 ;; 7489 *) 7490 LD="${LD-ld} -m elf_i386" 7491 ;; 7492 esac 7493 ;; 7494 powerpc64le-*linux*) 7495 LD="${LD-ld} -m elf32lppclinux" 7496 ;; 7497 powerpc64-*linux*) 7498 LD="${LD-ld} -m elf32ppclinux" 7499 ;; 7500 s390x-*linux*) 7501 LD="${LD-ld} -m elf_s390" 7502 ;; 7503 sparc64-*linux*) 7504 LD="${LD-ld} -m elf32_sparc" 7505 ;; 7506 esac 7507 ;; 7508 *64-bit*) 7509 case $host in 7510 x86_64-*kfreebsd*-gnu) 7511 LD="${LD-ld} -m elf_x86_64_fbsd" 7512 ;; 7513 x86_64-*linux*) 7514 LD="${LD-ld} -m elf_x86_64" 7515 ;; 7516 powerpcle-*linux*) 7517 LD="${LD-ld} -m elf64lppc" 7518 ;; 7519 powerpc-*linux*) 7520 LD="${LD-ld} -m elf64ppc" 7521 ;; 7522 s390*-*linux*|s390*-*tpf*) 7523 LD="${LD-ld} -m elf64_s390" 7524 ;; 7525 sparc*-*linux*) 7526 LD="${LD-ld} -m elf64_sparc" 7527 ;; 7528 esac 7529 ;; 7530 esac 7531 fi 7532 rm -rf conftest* 7533 ;; 7534 7535*-*-sco3.2v5*) 7536 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7537 SAVE_CFLAGS=$CFLAGS 7538 CFLAGS="$CFLAGS -belf" 7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7540printf %s "checking whether the C compiler needs -belf... " >&6; } 7541if test ${lt_cv_cc_needs_belf+y} 7542then : 7543 printf %s "(cached) " >&6 7544else $as_nop 7545 ac_ext=c 7546ac_cpp='$CPP $CPPFLAGS' 7547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7549ac_compiler_gnu=$ac_cv_c_compiler_gnu 7550 7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7552/* end confdefs.h. */ 7553 7554int 7555main (void) 7556{ 7557 7558 ; 7559 return 0; 7560} 7561_ACEOF 7562if ac_fn_c_try_link "$LINENO" 7563then : 7564 lt_cv_cc_needs_belf=yes 7565else $as_nop 7566 lt_cv_cc_needs_belf=no 7567fi 7568rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7569 conftest$ac_exeext conftest.$ac_ext 7570 ac_ext=c 7571ac_cpp='$CPP $CPPFLAGS' 7572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7574ac_compiler_gnu=$ac_cv_c_compiler_gnu 7575 7576fi 7577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7578printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7579 if test yes != "$lt_cv_cc_needs_belf"; then 7580 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7581 CFLAGS=$SAVE_CFLAGS 7582 fi 7583 ;; 7584*-*solaris*) 7585 # Find out what ABI is being produced by ac_compile, and set linker 7586 # options accordingly. 7587 echo 'int i;' > conftest.$ac_ext 7588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7589 (eval $ac_compile) 2>&5 7590 ac_status=$? 7591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7592 test $ac_status = 0; }; then 7593 case `$FILECMD conftest.o` in 7594 *64-bit*) 7595 case $lt_cv_prog_gnu_ld in 7596 yes*) 7597 case $host in 7598 i?86-*-solaris*|x86_64-*-solaris*) 7599 LD="${LD-ld} -m elf_x86_64" 7600 ;; 7601 sparc*-*-solaris*) 7602 LD="${LD-ld} -m elf64_sparc" 7603 ;; 7604 esac 7605 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7606 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7607 LD=${LD-ld}_sol2 7608 fi 7609 ;; 7610 *) 7611 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7612 LD="${LD-ld} -64" 7613 fi 7614 ;; 7615 esac 7616 ;; 7617 esac 7618 fi 7619 rm -rf conftest* 7620 ;; 7621esac 7622 7623need_locks=$enable_libtool_lock 7624 7625if test -n "$ac_tool_prefix"; then 7626 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7627set dummy ${ac_tool_prefix}mt; ac_word=$2 7628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7629printf %s "checking for $ac_word... " >&6; } 7630if test ${ac_cv_prog_MANIFEST_TOOL+y} 7631then : 7632 printf %s "(cached) " >&6 7633else $as_nop 7634 if test -n "$MANIFEST_TOOL"; then 7635 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7636else 7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638for as_dir in $PATH 7639do 7640 IFS=$as_save_IFS 7641 case $as_dir in #((( 7642 '') as_dir=./ ;; 7643 */) ;; 7644 *) as_dir=$as_dir/ ;; 7645 esac 7646 for ac_exec_ext in '' $ac_executable_extensions; do 7647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7648 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7650 break 2 7651 fi 7652done 7653 done 7654IFS=$as_save_IFS 7655 7656fi 7657fi 7658MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7659if test -n "$MANIFEST_TOOL"; then 7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7661printf "%s\n" "$MANIFEST_TOOL" >&6; } 7662else 7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7664printf "%s\n" "no" >&6; } 7665fi 7666 7667 7668fi 7669if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7670 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7671 # Extract the first word of "mt", so it can be a program name with args. 7672set dummy mt; ac_word=$2 7673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7674printf %s "checking for $ac_word... " >&6; } 7675if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7676then : 7677 printf %s "(cached) " >&6 7678else $as_nop 7679 if test -n "$ac_ct_MANIFEST_TOOL"; then 7680 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7681else 7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7683for as_dir in $PATH 7684do 7685 IFS=$as_save_IFS 7686 case $as_dir in #((( 7687 '') as_dir=./ ;; 7688 */) ;; 7689 *) as_dir=$as_dir/ ;; 7690 esac 7691 for ac_exec_ext in '' $ac_executable_extensions; do 7692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7693 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7695 break 2 7696 fi 7697done 7698 done 7699IFS=$as_save_IFS 7700 7701fi 7702fi 7703ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7704if test -n "$ac_ct_MANIFEST_TOOL"; then 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7706printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7707else 7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7709printf "%s\n" "no" >&6; } 7710fi 7711 7712 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7713 MANIFEST_TOOL=":" 7714 else 7715 case $cross_compiling:$ac_tool_warned in 7716yes:) 7717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7719ac_tool_warned=yes ;; 7720esac 7721 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7722 fi 7723else 7724 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7725fi 7726 7727test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7729printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7730if test ${lt_cv_path_mainfest_tool+y} 7731then : 7732 printf %s "(cached) " >&6 7733else $as_nop 7734 lt_cv_path_mainfest_tool=no 7735 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7736 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7737 cat conftest.err >&5 7738 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7739 lt_cv_path_mainfest_tool=yes 7740 fi 7741 rm -f conftest* 7742fi 7743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7744printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7745if test yes != "$lt_cv_path_mainfest_tool"; then 7746 MANIFEST_TOOL=: 7747fi 7748 7749 7750 7751 7752 7753 7754 case $host_os in 7755 rhapsody* | darwin*) 7756 if test -n "$ac_tool_prefix"; then 7757 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7758set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7760printf %s "checking for $ac_word... " >&6; } 7761if test ${ac_cv_prog_DSYMUTIL+y} 7762then : 7763 printf %s "(cached) " >&6 7764else $as_nop 7765 if test -n "$DSYMUTIL"; then 7766 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7767else 7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7769for as_dir in $PATH 7770do 7771 IFS=$as_save_IFS 7772 case $as_dir in #((( 7773 '') as_dir=./ ;; 7774 */) ;; 7775 *) as_dir=$as_dir/ ;; 7776 esac 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7779 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783done 7784 done 7785IFS=$as_save_IFS 7786 7787fi 7788fi 7789DSYMUTIL=$ac_cv_prog_DSYMUTIL 7790if test -n "$DSYMUTIL"; then 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7792printf "%s\n" "$DSYMUTIL" >&6; } 7793else 7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7795printf "%s\n" "no" >&6; } 7796fi 7797 7798 7799fi 7800if test -z "$ac_cv_prog_DSYMUTIL"; then 7801 ac_ct_DSYMUTIL=$DSYMUTIL 7802 # Extract the first word of "dsymutil", so it can be a program name with args. 7803set dummy dsymutil; ac_word=$2 7804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7805printf %s "checking for $ac_word... " >&6; } 7806if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7807then : 7808 printf %s "(cached) " >&6 7809else $as_nop 7810 if test -n "$ac_ct_DSYMUTIL"; then 7811 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7812else 7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7814for as_dir in $PATH 7815do 7816 IFS=$as_save_IFS 7817 case $as_dir in #((( 7818 '') as_dir=./ ;; 7819 */) ;; 7820 *) as_dir=$as_dir/ ;; 7821 esac 7822 for ac_exec_ext in '' $ac_executable_extensions; do 7823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7824 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7826 break 2 7827 fi 7828done 7829 done 7830IFS=$as_save_IFS 7831 7832fi 7833fi 7834ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7835if test -n "$ac_ct_DSYMUTIL"; then 7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7837printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7838else 7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7840printf "%s\n" "no" >&6; } 7841fi 7842 7843 if test "x$ac_ct_DSYMUTIL" = x; then 7844 DSYMUTIL=":" 7845 else 7846 case $cross_compiling:$ac_tool_warned in 7847yes:) 7848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7849printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7850ac_tool_warned=yes ;; 7851esac 7852 DSYMUTIL=$ac_ct_DSYMUTIL 7853 fi 7854else 7855 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7856fi 7857 7858 if test -n "$ac_tool_prefix"; then 7859 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7860set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7862printf %s "checking for $ac_word... " >&6; } 7863if test ${ac_cv_prog_NMEDIT+y} 7864then : 7865 printf %s "(cached) " >&6 7866else $as_nop 7867 if test -n "$NMEDIT"; then 7868 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7869else 7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7871for as_dir in $PATH 7872do 7873 IFS=$as_save_IFS 7874 case $as_dir in #((( 7875 '') as_dir=./ ;; 7876 */) ;; 7877 *) as_dir=$as_dir/ ;; 7878 esac 7879 for ac_exec_ext in '' $ac_executable_extensions; do 7880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7883 break 2 7884 fi 7885done 7886 done 7887IFS=$as_save_IFS 7888 7889fi 7890fi 7891NMEDIT=$ac_cv_prog_NMEDIT 7892if test -n "$NMEDIT"; then 7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7894printf "%s\n" "$NMEDIT" >&6; } 7895else 7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7897printf "%s\n" "no" >&6; } 7898fi 7899 7900 7901fi 7902if test -z "$ac_cv_prog_NMEDIT"; then 7903 ac_ct_NMEDIT=$NMEDIT 7904 # Extract the first word of "nmedit", so it can be a program name with args. 7905set dummy nmedit; ac_word=$2 7906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7907printf %s "checking for $ac_word... " >&6; } 7908if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7909then : 7910 printf %s "(cached) " >&6 7911else $as_nop 7912 if test -n "$ac_ct_NMEDIT"; then 7913 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7914else 7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7916for as_dir in $PATH 7917do 7918 IFS=$as_save_IFS 7919 case $as_dir in #((( 7920 '') as_dir=./ ;; 7921 */) ;; 7922 *) as_dir=$as_dir/ ;; 7923 esac 7924 for ac_exec_ext in '' $ac_executable_extensions; do 7925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7926 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7928 break 2 7929 fi 7930done 7931 done 7932IFS=$as_save_IFS 7933 7934fi 7935fi 7936ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7937if test -n "$ac_ct_NMEDIT"; then 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7939printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7940else 7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942printf "%s\n" "no" >&6; } 7943fi 7944 7945 if test "x$ac_ct_NMEDIT" = x; then 7946 NMEDIT=":" 7947 else 7948 case $cross_compiling:$ac_tool_warned in 7949yes:) 7950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7951printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7952ac_tool_warned=yes ;; 7953esac 7954 NMEDIT=$ac_ct_NMEDIT 7955 fi 7956else 7957 NMEDIT="$ac_cv_prog_NMEDIT" 7958fi 7959 7960 if test -n "$ac_tool_prefix"; then 7961 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7962set dummy ${ac_tool_prefix}lipo; ac_word=$2 7963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7964printf %s "checking for $ac_word... " >&6; } 7965if test ${ac_cv_prog_LIPO+y} 7966then : 7967 printf %s "(cached) " >&6 7968else $as_nop 7969 if test -n "$LIPO"; then 7970 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7971else 7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7973for as_dir in $PATH 7974do 7975 IFS=$as_save_IFS 7976 case $as_dir in #((( 7977 '') as_dir=./ ;; 7978 */) ;; 7979 *) as_dir=$as_dir/ ;; 7980 esac 7981 for ac_exec_ext in '' $ac_executable_extensions; do 7982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7983 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7985 break 2 7986 fi 7987done 7988 done 7989IFS=$as_save_IFS 7990 7991fi 7992fi 7993LIPO=$ac_cv_prog_LIPO 7994if test -n "$LIPO"; then 7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7996printf "%s\n" "$LIPO" >&6; } 7997else 7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7999printf "%s\n" "no" >&6; } 8000fi 8001 8002 8003fi 8004if test -z "$ac_cv_prog_LIPO"; then 8005 ac_ct_LIPO=$LIPO 8006 # Extract the first word of "lipo", so it can be a program name with args. 8007set dummy lipo; ac_word=$2 8008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8009printf %s "checking for $ac_word... " >&6; } 8010if test ${ac_cv_prog_ac_ct_LIPO+y} 8011then : 8012 printf %s "(cached) " >&6 8013else $as_nop 8014 if test -n "$ac_ct_LIPO"; then 8015 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8016else 8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8018for as_dir in $PATH 8019do 8020 IFS=$as_save_IFS 8021 case $as_dir in #((( 8022 '') as_dir=./ ;; 8023 */) ;; 8024 *) as_dir=$as_dir/ ;; 8025 esac 8026 for ac_exec_ext in '' $ac_executable_extensions; do 8027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8028 ac_cv_prog_ac_ct_LIPO="lipo" 8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8030 break 2 8031 fi 8032done 8033 done 8034IFS=$as_save_IFS 8035 8036fi 8037fi 8038ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8039if test -n "$ac_ct_LIPO"; then 8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8041printf "%s\n" "$ac_ct_LIPO" >&6; } 8042else 8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8044printf "%s\n" "no" >&6; } 8045fi 8046 8047 if test "x$ac_ct_LIPO" = x; then 8048 LIPO=":" 8049 else 8050 case $cross_compiling:$ac_tool_warned in 8051yes:) 8052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8053printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8054ac_tool_warned=yes ;; 8055esac 8056 LIPO=$ac_ct_LIPO 8057 fi 8058else 8059 LIPO="$ac_cv_prog_LIPO" 8060fi 8061 8062 if test -n "$ac_tool_prefix"; then 8063 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8064set dummy ${ac_tool_prefix}otool; ac_word=$2 8065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8066printf %s "checking for $ac_word... " >&6; } 8067if test ${ac_cv_prog_OTOOL+y} 8068then : 8069 printf %s "(cached) " >&6 8070else $as_nop 8071 if test -n "$OTOOL"; then 8072 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8073else 8074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8075for as_dir in $PATH 8076do 8077 IFS=$as_save_IFS 8078 case $as_dir in #((( 8079 '') as_dir=./ ;; 8080 */) ;; 8081 *) as_dir=$as_dir/ ;; 8082 esac 8083 for ac_exec_ext in '' $ac_executable_extensions; do 8084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8085 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8087 break 2 8088 fi 8089done 8090 done 8091IFS=$as_save_IFS 8092 8093fi 8094fi 8095OTOOL=$ac_cv_prog_OTOOL 8096if test -n "$OTOOL"; then 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8098printf "%s\n" "$OTOOL" >&6; } 8099else 8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8101printf "%s\n" "no" >&6; } 8102fi 8103 8104 8105fi 8106if test -z "$ac_cv_prog_OTOOL"; then 8107 ac_ct_OTOOL=$OTOOL 8108 # Extract the first word of "otool", so it can be a program name with args. 8109set dummy otool; ac_word=$2 8110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8111printf %s "checking for $ac_word... " >&6; } 8112if test ${ac_cv_prog_ac_ct_OTOOL+y} 8113then : 8114 printf %s "(cached) " >&6 8115else $as_nop 8116 if test -n "$ac_ct_OTOOL"; then 8117 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8118else 8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8120for as_dir in $PATH 8121do 8122 IFS=$as_save_IFS 8123 case $as_dir in #((( 8124 '') as_dir=./ ;; 8125 */) ;; 8126 *) as_dir=$as_dir/ ;; 8127 esac 8128 for ac_exec_ext in '' $ac_executable_extensions; do 8129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8130 ac_cv_prog_ac_ct_OTOOL="otool" 8131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8132 break 2 8133 fi 8134done 8135 done 8136IFS=$as_save_IFS 8137 8138fi 8139fi 8140ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8141if test -n "$ac_ct_OTOOL"; then 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8143printf "%s\n" "$ac_ct_OTOOL" >&6; } 8144else 8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8146printf "%s\n" "no" >&6; } 8147fi 8148 8149 if test "x$ac_ct_OTOOL" = x; then 8150 OTOOL=":" 8151 else 8152 case $cross_compiling:$ac_tool_warned in 8153yes:) 8154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8155printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8156ac_tool_warned=yes ;; 8157esac 8158 OTOOL=$ac_ct_OTOOL 8159 fi 8160else 8161 OTOOL="$ac_cv_prog_OTOOL" 8162fi 8163 8164 if test -n "$ac_tool_prefix"; then 8165 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8166set dummy ${ac_tool_prefix}otool64; ac_word=$2 8167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8168printf %s "checking for $ac_word... " >&6; } 8169if test ${ac_cv_prog_OTOOL64+y} 8170then : 8171 printf %s "(cached) " >&6 8172else $as_nop 8173 if test -n "$OTOOL64"; then 8174 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8175else 8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8177for as_dir in $PATH 8178do 8179 IFS=$as_save_IFS 8180 case $as_dir in #((( 8181 '') as_dir=./ ;; 8182 */) ;; 8183 *) as_dir=$as_dir/ ;; 8184 esac 8185 for ac_exec_ext in '' $ac_executable_extensions; do 8186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8187 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8189 break 2 8190 fi 8191done 8192 done 8193IFS=$as_save_IFS 8194 8195fi 8196fi 8197OTOOL64=$ac_cv_prog_OTOOL64 8198if test -n "$OTOOL64"; then 8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8200printf "%s\n" "$OTOOL64" >&6; } 8201else 8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8203printf "%s\n" "no" >&6; } 8204fi 8205 8206 8207fi 8208if test -z "$ac_cv_prog_OTOOL64"; then 8209 ac_ct_OTOOL64=$OTOOL64 8210 # Extract the first word of "otool64", so it can be a program name with args. 8211set dummy otool64; ac_word=$2 8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8213printf %s "checking for $ac_word... " >&6; } 8214if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8215then : 8216 printf %s "(cached) " >&6 8217else $as_nop 8218 if test -n "$ac_ct_OTOOL64"; then 8219 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8220else 8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8222for as_dir in $PATH 8223do 8224 IFS=$as_save_IFS 8225 case $as_dir in #((( 8226 '') as_dir=./ ;; 8227 */) ;; 8228 *) as_dir=$as_dir/ ;; 8229 esac 8230 for ac_exec_ext in '' $ac_executable_extensions; do 8231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8232 ac_cv_prog_ac_ct_OTOOL64="otool64" 8233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8234 break 2 8235 fi 8236done 8237 done 8238IFS=$as_save_IFS 8239 8240fi 8241fi 8242ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8243if test -n "$ac_ct_OTOOL64"; then 8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8245printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8246else 8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8248printf "%s\n" "no" >&6; } 8249fi 8250 8251 if test "x$ac_ct_OTOOL64" = x; then 8252 OTOOL64=":" 8253 else 8254 case $cross_compiling:$ac_tool_warned in 8255yes:) 8256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8257printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8258ac_tool_warned=yes ;; 8259esac 8260 OTOOL64=$ac_ct_OTOOL64 8261 fi 8262else 8263 OTOOL64="$ac_cv_prog_OTOOL64" 8264fi 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8293printf %s "checking for -single_module linker flag... " >&6; } 8294if test ${lt_cv_apple_cc_single_mod+y} 8295then : 8296 printf %s "(cached) " >&6 8297else $as_nop 8298 lt_cv_apple_cc_single_mod=no 8299 if test -z "$LT_MULTI_MODULE"; then 8300 # By default we will add the -single_module flag. You can override 8301 # by either setting the environment variable LT_MULTI_MODULE 8302 # non-empty at configure time, or by adding -multi_module to the 8303 # link flags. 8304 rm -rf libconftest.dylib* 8305 echo "int foo(void){return 1;}" > conftest.c 8306 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8307-dynamiclib -Wl,-single_module conftest.c" >&5 8308 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8309 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8310 _lt_result=$? 8311 # If there is a non-empty error log, and "single_module" 8312 # appears in it, assume the flag caused a linker warning 8313 if test -s conftest.err && $GREP single_module conftest.err; then 8314 cat conftest.err >&5 8315 # Otherwise, if the output was created with a 0 exit code from 8316 # the compiler, it worked. 8317 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8318 lt_cv_apple_cc_single_mod=yes 8319 else 8320 cat conftest.err >&5 8321 fi 8322 rm -rf libconftest.dylib* 8323 rm -f conftest.* 8324 fi 8325fi 8326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8327printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8328 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8330printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8331if test ${lt_cv_ld_exported_symbols_list+y} 8332then : 8333 printf %s "(cached) " >&6 8334else $as_nop 8335 lt_cv_ld_exported_symbols_list=no 8336 save_LDFLAGS=$LDFLAGS 8337 echo "_main" > conftest.sym 8338 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8340/* end confdefs.h. */ 8341 8342int 8343main (void) 8344{ 8345 8346 ; 8347 return 0; 8348} 8349_ACEOF 8350if ac_fn_c_try_link "$LINENO" 8351then : 8352 lt_cv_ld_exported_symbols_list=yes 8353else $as_nop 8354 lt_cv_ld_exported_symbols_list=no 8355fi 8356rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8357 conftest$ac_exeext conftest.$ac_ext 8358 LDFLAGS=$save_LDFLAGS 8359 8360fi 8361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8362printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8363 8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8365printf %s "checking for -force_load linker flag... " >&6; } 8366if test ${lt_cv_ld_force_load+y} 8367then : 8368 printf %s "(cached) " >&6 8369else $as_nop 8370 lt_cv_ld_force_load=no 8371 cat > conftest.c << _LT_EOF 8372int forced_loaded() { return 2;} 8373_LT_EOF 8374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8376 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8377 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8378 echo "$RANLIB libconftest.a" >&5 8379 $RANLIB libconftest.a 2>&5 8380 cat > conftest.c << _LT_EOF 8381int main() { return 0;} 8382_LT_EOF 8383 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8384 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8385 _lt_result=$? 8386 if test -s conftest.err && $GREP force_load conftest.err; then 8387 cat conftest.err >&5 8388 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8389 lt_cv_ld_force_load=yes 8390 else 8391 cat conftest.err >&5 8392 fi 8393 rm -f conftest.err libconftest.a conftest conftest.c 8394 rm -rf conftest.dSYM 8395 8396fi 8397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8398printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8399 case $host_os in 8400 rhapsody* | darwin1.[012]) 8401 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8402 darwin1.*) 8403 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8404 darwin*) 8405 case $MACOSX_DEPLOYMENT_TARGET,$host in 8406 10.[012],*|,*powerpc*-darwin[5-8]*) 8407 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8408 *) 8409 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8410 esac 8411 ;; 8412 esac 8413 if test yes = "$lt_cv_apple_cc_single_mod"; then 8414 _lt_dar_single_mod='$single_module' 8415 fi 8416 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8417 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8418 else 8419 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8420 fi 8421 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8422 _lt_dsymutil='~$DSYMUTIL $lib || :' 8423 else 8424 _lt_dsymutil= 8425 fi 8426 ;; 8427 esac 8428 8429# func_munge_path_list VARIABLE PATH 8430# ----------------------------------- 8431# VARIABLE is name of variable containing _space_ separated list of 8432# directories to be munged by the contents of PATH, which is string 8433# having a format: 8434# "DIR[:DIR]:" 8435# string "DIR[ DIR]" will be prepended to VARIABLE 8436# ":DIR[:DIR]" 8437# string "DIR[ DIR]" will be appended to VARIABLE 8438# "DIRP[:DIRP]::[DIRA:]DIRA" 8439# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8440# "DIRA[ DIRA]" will be appended to VARIABLE 8441# "DIR[:DIR]" 8442# VARIABLE will be replaced by "DIR[ DIR]" 8443func_munge_path_list () 8444{ 8445 case x$2 in 8446 x) 8447 ;; 8448 *:) 8449 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8450 ;; 8451 x:*) 8452 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8453 ;; 8454 *::*) 8455 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8456 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8457 ;; 8458 *) 8459 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8460 ;; 8461 esac 8462} 8463 8464ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8465" 8466if test "x$ac_cv_header_dlfcn_h" = xyes 8467then : 8468 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8469 8470fi 8471 8472 8473 8474 8475 8476# Set options 8477 8478 8479 8480 enable_dlopen=no 8481 8482 8483 enable_win32_dll=no 8484 8485 8486 # Check whether --enable-shared was given. 8487if test ${enable_shared+y} 8488then : 8489 enableval=$enable_shared; p=${PACKAGE-default} 8490 case $enableval in 8491 yes) enable_shared=yes ;; 8492 no) enable_shared=no ;; 8493 *) 8494 enable_shared=no 8495 # Look at the argument we got. We use all the common list separators. 8496 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8497 for pkg in $enableval; do 8498 IFS=$lt_save_ifs 8499 if test "X$pkg" = "X$p"; then 8500 enable_shared=yes 8501 fi 8502 done 8503 IFS=$lt_save_ifs 8504 ;; 8505 esac 8506else $as_nop 8507 enable_shared=yes 8508fi 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 # Check whether --enable-static was given. 8519if test ${enable_static+y} 8520then : 8521 enableval=$enable_static; p=${PACKAGE-default} 8522 case $enableval in 8523 yes) enable_static=yes ;; 8524 no) enable_static=no ;; 8525 *) 8526 enable_static=no 8527 # Look at the argument we got. We use all the common list separators. 8528 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8529 for pkg in $enableval; do 8530 IFS=$lt_save_ifs 8531 if test "X$pkg" = "X$p"; then 8532 enable_static=yes 8533 fi 8534 done 8535 IFS=$lt_save_ifs 8536 ;; 8537 esac 8538else $as_nop 8539 enable_static=yes 8540fi 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551# Check whether --with-pic was given. 8552if test ${with_pic+y} 8553then : 8554 withval=$with_pic; lt_p=${PACKAGE-default} 8555 case $withval in 8556 yes|no) pic_mode=$withval ;; 8557 *) 8558 pic_mode=default 8559 # Look at the argument we got. We use all the common list separators. 8560 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8561 for lt_pkg in $withval; do 8562 IFS=$lt_save_ifs 8563 if test "X$lt_pkg" = "X$lt_p"; then 8564 pic_mode=yes 8565 fi 8566 done 8567 IFS=$lt_save_ifs 8568 ;; 8569 esac 8570else $as_nop 8571 pic_mode=default 8572fi 8573 8574 8575 8576 8577 8578 8579 8580 8581 # Check whether --enable-fast-install was given. 8582if test ${enable_fast_install+y} 8583then : 8584 enableval=$enable_fast_install; p=${PACKAGE-default} 8585 case $enableval in 8586 yes) enable_fast_install=yes ;; 8587 no) enable_fast_install=no ;; 8588 *) 8589 enable_fast_install=no 8590 # Look at the argument we got. We use all the common list separators. 8591 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8592 for pkg in $enableval; do 8593 IFS=$lt_save_ifs 8594 if test "X$pkg" = "X$p"; then 8595 enable_fast_install=yes 8596 fi 8597 done 8598 IFS=$lt_save_ifs 8599 ;; 8600 esac 8601else $as_nop 8602 enable_fast_install=yes 8603fi 8604 8605 8606 8607 8608 8609 8610 8611 8612 shared_archive_member_spec= 8613case $host,$enable_shared in 8614power*-*-aix[5-9]*,yes) 8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8616printf %s "checking which variant of shared library versioning to provide... " >&6; } 8617 8618# Check whether --with-aix-soname was given. 8619if test ${with_aix_soname+y} 8620then : 8621 withval=$with_aix_soname; case $withval in 8622 aix|svr4|both) 8623 ;; 8624 *) 8625 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8626 ;; 8627 esac 8628 lt_cv_with_aix_soname=$with_aix_soname 8629else $as_nop 8630 if test ${lt_cv_with_aix_soname+y} 8631then : 8632 printf %s "(cached) " >&6 8633else $as_nop 8634 lt_cv_with_aix_soname=aix 8635fi 8636 8637 with_aix_soname=$lt_cv_with_aix_soname 8638fi 8639 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8641printf "%s\n" "$with_aix_soname" >&6; } 8642 if test aix != "$with_aix_soname"; then 8643 # For the AIX way of multilib, we name the shared archive member 8644 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8645 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8646 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8647 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8648 if test 64 = "${OBJECT_MODE-32}"; then 8649 shared_archive_member_spec=shr_64 8650 else 8651 shared_archive_member_spec=shr 8652 fi 8653 fi 8654 ;; 8655*) 8656 with_aix_soname=aix 8657 ;; 8658esac 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669# This can be used to rebuild libtool when needed 8670LIBTOOL_DEPS=$ltmain 8671 8672# Always use our own libtool. 8673LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704test -z "$LN_S" && LN_S="ln -s" 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719if test -n "${ZSH_VERSION+set}"; then 8720 setopt NO_GLOB_SUBST 8721fi 8722 8723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8724printf %s "checking for objdir... " >&6; } 8725if test ${lt_cv_objdir+y} 8726then : 8727 printf %s "(cached) " >&6 8728else $as_nop 8729 rm -f .libs 2>/dev/null 8730mkdir .libs 2>/dev/null 8731if test -d .libs; then 8732 lt_cv_objdir=.libs 8733else 8734 # MS-DOS does not allow filenames that begin with a dot. 8735 lt_cv_objdir=_libs 8736fi 8737rmdir .libs 2>/dev/null 8738fi 8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8740printf "%s\n" "$lt_cv_objdir" >&6; } 8741objdir=$lt_cv_objdir 8742 8743 8744 8745 8746 8747printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8748 8749 8750 8751 8752case $host_os in 8753aix3*) 8754 # AIX sometimes has problems with the GCC collect2 program. For some 8755 # reason, if we set the COLLECT_NAMES environment variable, the problems 8756 # vanish in a puff of smoke. 8757 if test set != "${COLLECT_NAMES+set}"; then 8758 COLLECT_NAMES= 8759 export COLLECT_NAMES 8760 fi 8761 ;; 8762esac 8763 8764# Global variables: 8765ofile=libtool 8766can_build_shared=yes 8767 8768# All known linkers require a '.a' archive for static linking (except MSVC and 8769# ICC, which need '.lib'). 8770libext=a 8771 8772with_gnu_ld=$lt_cv_prog_gnu_ld 8773 8774old_CC=$CC 8775old_CFLAGS=$CFLAGS 8776 8777# Set sane defaults for various variables 8778test -z "$CC" && CC=cc 8779test -z "$LTCC" && LTCC=$CC 8780test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8781test -z "$LD" && LD=ld 8782test -z "$ac_objext" && ac_objext=o 8783 8784func_cc_basename $compiler 8785cc_basename=$func_cc_basename_result 8786 8787 8788# Only perform the check for file, if the check method requires it 8789test -z "$MAGIC_CMD" && MAGIC_CMD=file 8790case $deplibs_check_method in 8791file_magic*) 8792 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8794printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8795if test ${lt_cv_path_MAGIC_CMD+y} 8796then : 8797 printf %s "(cached) " >&6 8798else $as_nop 8799 case $MAGIC_CMD in 8800[\\/*] | ?:[\\/]*) 8801 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8802 ;; 8803*) 8804 lt_save_MAGIC_CMD=$MAGIC_CMD 8805 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8807 for ac_dir in $ac_dummy; do 8808 IFS=$lt_save_ifs 8809 test -z "$ac_dir" && ac_dir=. 8810 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8811 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8812 if test -n "$file_magic_test_file"; then 8813 case $deplibs_check_method in 8814 "file_magic "*) 8815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8818 $EGREP "$file_magic_regex" > /dev/null; then 8819 : 8820 else 8821 cat <<_LT_EOF 1>&2 8822 8823*** Warning: the command libtool uses to detect shared libraries, 8824*** $file_magic_cmd, produces output that libtool cannot recognize. 8825*** The result is that libtool may fail to recognize shared libraries 8826*** as such. This will affect the creation of libtool libraries that 8827*** depend on shared libraries, but programs linked with such libtool 8828*** libraries will work regardless of this problem. Nevertheless, you 8829*** may want to report the problem to your system manager and/or to 8830*** bug-libtool@gnu.org 8831 8832_LT_EOF 8833 fi ;; 8834 esac 8835 fi 8836 break 8837 fi 8838 done 8839 IFS=$lt_save_ifs 8840 MAGIC_CMD=$lt_save_MAGIC_CMD 8841 ;; 8842esac 8843fi 8844 8845MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8846if test -n "$MAGIC_CMD"; then 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8848printf "%s\n" "$MAGIC_CMD" >&6; } 8849else 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851printf "%s\n" "no" >&6; } 8852fi 8853 8854 8855 8856 8857 8858if test -z "$lt_cv_path_MAGIC_CMD"; then 8859 if test -n "$ac_tool_prefix"; then 8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8861printf %s "checking for file... " >&6; } 8862if test ${lt_cv_path_MAGIC_CMD+y} 8863then : 8864 printf %s "(cached) " >&6 8865else $as_nop 8866 case $MAGIC_CMD in 8867[\\/*] | ?:[\\/]*) 8868 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8869 ;; 8870*) 8871 lt_save_MAGIC_CMD=$MAGIC_CMD 8872 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8873 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8874 for ac_dir in $ac_dummy; do 8875 IFS=$lt_save_ifs 8876 test -z "$ac_dir" && ac_dir=. 8877 if test -f "$ac_dir/file"; then 8878 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8879 if test -n "$file_magic_test_file"; then 8880 case $deplibs_check_method in 8881 "file_magic "*) 8882 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8883 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8884 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8885 $EGREP "$file_magic_regex" > /dev/null; then 8886 : 8887 else 8888 cat <<_LT_EOF 1>&2 8889 8890*** Warning: the command libtool uses to detect shared libraries, 8891*** $file_magic_cmd, produces output that libtool cannot recognize. 8892*** The result is that libtool may fail to recognize shared libraries 8893*** as such. This will affect the creation of libtool libraries that 8894*** depend on shared libraries, but programs linked with such libtool 8895*** libraries will work regardless of this problem. Nevertheless, you 8896*** may want to report the problem to your system manager and/or to 8897*** bug-libtool@gnu.org 8898 8899_LT_EOF 8900 fi ;; 8901 esac 8902 fi 8903 break 8904 fi 8905 done 8906 IFS=$lt_save_ifs 8907 MAGIC_CMD=$lt_save_MAGIC_CMD 8908 ;; 8909esac 8910fi 8911 8912MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8913if test -n "$MAGIC_CMD"; then 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8915printf "%s\n" "$MAGIC_CMD" >&6; } 8916else 8917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8918printf "%s\n" "no" >&6; } 8919fi 8920 8921 8922 else 8923 MAGIC_CMD=: 8924 fi 8925fi 8926 8927 fi 8928 ;; 8929esac 8930 8931# Use C for the default configuration in the libtool script 8932 8933lt_save_CC=$CC 8934ac_ext=c 8935ac_cpp='$CPP $CPPFLAGS' 8936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8938ac_compiler_gnu=$ac_cv_c_compiler_gnu 8939 8940 8941# Source file extension for C test sources. 8942ac_ext=c 8943 8944# Object file extension for compiled C test sources. 8945objext=o 8946objext=$objext 8947 8948# Code to be used in simple compile tests 8949lt_simple_compile_test_code="int some_variable = 0;" 8950 8951# Code to be used in simple link tests 8952lt_simple_link_test_code='int main(){return(0);}' 8953 8954 8955 8956 8957 8958 8959 8960# If no C compiler was specified, use CC. 8961LTCC=${LTCC-"$CC"} 8962 8963# If no C compiler flags were specified, use CFLAGS. 8964LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8965 8966# Allow CC to be a program name with arguments. 8967compiler=$CC 8968 8969# Save the default compiler, since it gets overwritten when the other 8970# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8971compiler_DEFAULT=$CC 8972 8973# save warnings/boilerplate of simple test code 8974ac_outfile=conftest.$ac_objext 8975echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8977_lt_compiler_boilerplate=`cat conftest.err` 8978$RM conftest* 8979 8980ac_outfile=conftest.$ac_objext 8981echo "$lt_simple_link_test_code" >conftest.$ac_ext 8982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8983_lt_linker_boilerplate=`cat conftest.err` 8984$RM -r conftest* 8985 8986 8987if test -n "$compiler"; then 8988 8989lt_prog_compiler_no_builtin_flag= 8990 8991if test yes = "$GCC"; then 8992 case $cc_basename in 8993 nvcc*) 8994 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8995 *) 8996 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8997 esac 8998 8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9000printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9001if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9002then : 9003 printf %s "(cached) " >&6 9004else $as_nop 9005 lt_cv_prog_compiler_rtti_exceptions=no 9006 ac_outfile=conftest.$ac_objext 9007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9008 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9009 # Insert the option either (1) after the last *FLAGS variable, or 9010 # (2) before a word containing "conftest.", or (3) at the end. 9011 # Note that $ac_compile itself does not contain backslashes and begins 9012 # with a dollar sign (not a hyphen), so the echo should work correctly. 9013 # The option is referenced via a variable to avoid confusing sed. 9014 lt_compile=`echo "$ac_compile" | $SED \ 9015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9017 -e 's:$: $lt_compiler_flag:'` 9018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9019 (eval "$lt_compile" 2>conftest.err) 9020 ac_status=$? 9021 cat conftest.err >&5 9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9023 if (exit $ac_status) && test -s "$ac_outfile"; then 9024 # The compiler can only warn and ignore the option if not recognized 9025 # So say no if there are warnings other than the usual output. 9026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9029 lt_cv_prog_compiler_rtti_exceptions=yes 9030 fi 9031 fi 9032 $RM conftest* 9033 9034fi 9035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9036printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9037 9038if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9039 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9040else 9041 : 9042fi 9043 9044fi 9045 9046 9047 9048 9049 9050 9051 lt_prog_compiler_wl= 9052lt_prog_compiler_pic= 9053lt_prog_compiler_static= 9054 9055 9056 if test yes = "$GCC"; then 9057 lt_prog_compiler_wl='-Wl,' 9058 lt_prog_compiler_static='-static' 9059 9060 case $host_os in 9061 aix*) 9062 # All AIX code is PIC. 9063 if test ia64 = "$host_cpu"; then 9064 # AIX 5 now supports IA64 processor 9065 lt_prog_compiler_static='-Bstatic' 9066 fi 9067 lt_prog_compiler_pic='-fPIC' 9068 ;; 9069 9070 amigaos*) 9071 case $host_cpu in 9072 powerpc) 9073 # see comment about AmigaOS4 .so support 9074 lt_prog_compiler_pic='-fPIC' 9075 ;; 9076 m68k) 9077 # FIXME: we need at least 68020 code to build shared libraries, but 9078 # adding the '-m68020' flag to GCC prevents building anything better, 9079 # like '-m68040'. 9080 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9081 ;; 9082 esac 9083 ;; 9084 9085 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9086 # PIC is the default for these OSes. 9087 ;; 9088 9089 mingw* | cygwin* | pw32* | os2* | cegcc*) 9090 # This hack is so that the source file can tell whether it is being 9091 # built for inclusion in a dll (and should export symbols for example). 9092 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9093 # (--disable-auto-import) libraries 9094 lt_prog_compiler_pic='-DDLL_EXPORT' 9095 case $host_os in 9096 os2*) 9097 lt_prog_compiler_static='$wl-static' 9098 ;; 9099 esac 9100 ;; 9101 9102 darwin* | rhapsody*) 9103 # PIC is the default on this platform 9104 # Common symbols not allowed in MH_DYLIB files 9105 lt_prog_compiler_pic='-fno-common' 9106 ;; 9107 9108 haiku*) 9109 # PIC is the default for Haiku. 9110 # The "-static" flag exists, but is broken. 9111 lt_prog_compiler_static= 9112 ;; 9113 9114 hpux*) 9115 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9116 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9117 # sets the default TLS model and affects inlining. 9118 case $host_cpu in 9119 hppa*64*) 9120 # +Z the default 9121 ;; 9122 *) 9123 lt_prog_compiler_pic='-fPIC' 9124 ;; 9125 esac 9126 ;; 9127 9128 interix[3-9]*) 9129 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9130 # Instead, we relocate shared libraries at runtime. 9131 ;; 9132 9133 msdosdjgpp*) 9134 # Just because we use GCC doesn't mean we suddenly get shared libraries 9135 # on systems that don't support them. 9136 lt_prog_compiler_can_build_shared=no 9137 enable_shared=no 9138 ;; 9139 9140 *nto* | *qnx*) 9141 # QNX uses GNU C++, but need to define -shared option too, otherwise 9142 # it will coredump. 9143 lt_prog_compiler_pic='-fPIC -shared' 9144 ;; 9145 9146 sysv4*MP*) 9147 if test -d /usr/nec; then 9148 lt_prog_compiler_pic=-Kconform_pic 9149 fi 9150 ;; 9151 9152 *) 9153 lt_prog_compiler_pic='-fPIC' 9154 ;; 9155 esac 9156 9157 case $cc_basename in 9158 nvcc*) # Cuda Compiler Driver 2.2 9159 lt_prog_compiler_wl='-Xlinker ' 9160 if test -n "$lt_prog_compiler_pic"; then 9161 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9162 fi 9163 ;; 9164 esac 9165 else 9166 # PORTME Check for flag to pass linker flags through the system compiler. 9167 case $host_os in 9168 aix*) 9169 lt_prog_compiler_wl='-Wl,' 9170 if test ia64 = "$host_cpu"; then 9171 # AIX 5 now supports IA64 processor 9172 lt_prog_compiler_static='-Bstatic' 9173 else 9174 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9175 fi 9176 ;; 9177 9178 darwin* | rhapsody*) 9179 # PIC is the default on this platform 9180 # Common symbols not allowed in MH_DYLIB files 9181 lt_prog_compiler_pic='-fno-common' 9182 case $cc_basename in 9183 nagfor*) 9184 # NAG Fortran compiler 9185 lt_prog_compiler_wl='-Wl,-Wl,,' 9186 lt_prog_compiler_pic='-PIC' 9187 lt_prog_compiler_static='-Bstatic' 9188 ;; 9189 esac 9190 ;; 9191 9192 mingw* | cygwin* | pw32* | os2* | cegcc*) 9193 # This hack is so that the source file can tell whether it is being 9194 # built for inclusion in a dll (and should export symbols for example). 9195 lt_prog_compiler_pic='-DDLL_EXPORT' 9196 case $host_os in 9197 os2*) 9198 lt_prog_compiler_static='$wl-static' 9199 ;; 9200 esac 9201 ;; 9202 9203 hpux9* | hpux10* | hpux11*) 9204 lt_prog_compiler_wl='-Wl,' 9205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9206 # not for PA HP-UX. 9207 case $host_cpu in 9208 hppa*64*|ia64*) 9209 # +Z the default 9210 ;; 9211 *) 9212 lt_prog_compiler_pic='+Z' 9213 ;; 9214 esac 9215 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9216 lt_prog_compiler_static='$wl-a ${wl}archive' 9217 ;; 9218 9219 irix5* | irix6* | nonstopux*) 9220 lt_prog_compiler_wl='-Wl,' 9221 # PIC (with -KPIC) is the default. 9222 lt_prog_compiler_static='-non_shared' 9223 ;; 9224 9225 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9226 case $cc_basename in 9227 # old Intel for x86_64, which still supported -KPIC. 9228 ecc*) 9229 lt_prog_compiler_wl='-Wl,' 9230 lt_prog_compiler_pic='-KPIC' 9231 lt_prog_compiler_static='-static' 9232 ;; 9233 # icc used to be incompatible with GCC. 9234 # ICC 10 doesn't accept -KPIC any more. 9235 icc* | ifort*) 9236 lt_prog_compiler_wl='-Wl,' 9237 lt_prog_compiler_pic='-fPIC' 9238 lt_prog_compiler_static='-static' 9239 ;; 9240 # Lahey Fortran 8.1. 9241 lf95*) 9242 lt_prog_compiler_wl='-Wl,' 9243 lt_prog_compiler_pic='--shared' 9244 lt_prog_compiler_static='--static' 9245 ;; 9246 nagfor*) 9247 # NAG Fortran compiler 9248 lt_prog_compiler_wl='-Wl,-Wl,,' 9249 lt_prog_compiler_pic='-PIC' 9250 lt_prog_compiler_static='-Bstatic' 9251 ;; 9252 tcc*) 9253 # Fabrice Bellard et al's Tiny C Compiler 9254 lt_prog_compiler_wl='-Wl,' 9255 lt_prog_compiler_pic='-fPIC' 9256 lt_prog_compiler_static='-static' 9257 ;; 9258 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9259 # Portland Group compilers (*not* the Pentium gcc compiler, 9260 # which looks to be a dead project) 9261 lt_prog_compiler_wl='-Wl,' 9262 lt_prog_compiler_pic='-fpic' 9263 lt_prog_compiler_static='-Bstatic' 9264 ;; 9265 ccc*) 9266 lt_prog_compiler_wl='-Wl,' 9267 # All Alpha code is PIC. 9268 lt_prog_compiler_static='-non_shared' 9269 ;; 9270 xl* | bgxl* | bgf* | mpixl*) 9271 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9272 lt_prog_compiler_wl='-Wl,' 9273 lt_prog_compiler_pic='-qpic' 9274 lt_prog_compiler_static='-qstaticlink' 9275 ;; 9276 *) 9277 case `$CC -V 2>&1 | $SED 5q` in 9278 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9279 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9280 lt_prog_compiler_pic='-KPIC' 9281 lt_prog_compiler_static='-Bstatic' 9282 lt_prog_compiler_wl='' 9283 ;; 9284 *Sun\ F* | *Sun*Fortran*) 9285 lt_prog_compiler_pic='-KPIC' 9286 lt_prog_compiler_static='-Bstatic' 9287 lt_prog_compiler_wl='-Qoption ld ' 9288 ;; 9289 *Sun\ C*) 9290 # Sun C 5.9 9291 lt_prog_compiler_pic='-KPIC' 9292 lt_prog_compiler_static='-Bstatic' 9293 lt_prog_compiler_wl='-Wl,' 9294 ;; 9295 *Intel*\ [CF]*Compiler*) 9296 lt_prog_compiler_wl='-Wl,' 9297 lt_prog_compiler_pic='-fPIC' 9298 lt_prog_compiler_static='-static' 9299 ;; 9300 *Portland\ Group*) 9301 lt_prog_compiler_wl='-Wl,' 9302 lt_prog_compiler_pic='-fpic' 9303 lt_prog_compiler_static='-Bstatic' 9304 ;; 9305 esac 9306 ;; 9307 esac 9308 ;; 9309 9310 newsos6) 9311 lt_prog_compiler_pic='-KPIC' 9312 lt_prog_compiler_static='-Bstatic' 9313 ;; 9314 9315 *nto* | *qnx*) 9316 # QNX uses GNU C++, but need to define -shared option too, otherwise 9317 # it will coredump. 9318 lt_prog_compiler_pic='-fPIC -shared' 9319 ;; 9320 9321 osf3* | osf4* | osf5*) 9322 lt_prog_compiler_wl='-Wl,' 9323 # All OSF/1 code is PIC. 9324 lt_prog_compiler_static='-non_shared' 9325 ;; 9326 9327 rdos*) 9328 lt_prog_compiler_static='-non_shared' 9329 ;; 9330 9331 solaris*) 9332 lt_prog_compiler_pic='-KPIC' 9333 lt_prog_compiler_static='-Bstatic' 9334 case $cc_basename in 9335 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9336 lt_prog_compiler_wl='-Qoption ld ';; 9337 *) 9338 lt_prog_compiler_wl='-Wl,';; 9339 esac 9340 ;; 9341 9342 sunos4*) 9343 lt_prog_compiler_wl='-Qoption ld ' 9344 lt_prog_compiler_pic='-PIC' 9345 lt_prog_compiler_static='-Bstatic' 9346 ;; 9347 9348 sysv4 | sysv4.2uw2* | sysv4.3*) 9349 lt_prog_compiler_wl='-Wl,' 9350 lt_prog_compiler_pic='-KPIC' 9351 lt_prog_compiler_static='-Bstatic' 9352 ;; 9353 9354 sysv4*MP*) 9355 if test -d /usr/nec; then 9356 lt_prog_compiler_pic='-Kconform_pic' 9357 lt_prog_compiler_static='-Bstatic' 9358 fi 9359 ;; 9360 9361 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9362 lt_prog_compiler_wl='-Wl,' 9363 lt_prog_compiler_pic='-KPIC' 9364 lt_prog_compiler_static='-Bstatic' 9365 ;; 9366 9367 unicos*) 9368 lt_prog_compiler_wl='-Wl,' 9369 lt_prog_compiler_can_build_shared=no 9370 ;; 9371 9372 uts4*) 9373 lt_prog_compiler_pic='-pic' 9374 lt_prog_compiler_static='-Bstatic' 9375 ;; 9376 9377 *) 9378 lt_prog_compiler_can_build_shared=no 9379 ;; 9380 esac 9381 fi 9382 9383case $host_os in 9384 # For platforms that do not support PIC, -DPIC is meaningless: 9385 *djgpp*) 9386 lt_prog_compiler_pic= 9387 ;; 9388 *) 9389 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9390 ;; 9391esac 9392 9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9394printf %s "checking for $compiler option to produce PIC... " >&6; } 9395if test ${lt_cv_prog_compiler_pic+y} 9396then : 9397 printf %s "(cached) " >&6 9398else $as_nop 9399 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9400fi 9401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9402printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9403lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9404 9405# 9406# Check to make sure the PIC flag actually works. 9407# 9408if test -n "$lt_prog_compiler_pic"; then 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9410printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9411if test ${lt_cv_prog_compiler_pic_works+y} 9412then : 9413 printf %s "(cached) " >&6 9414else $as_nop 9415 lt_cv_prog_compiler_pic_works=no 9416 ac_outfile=conftest.$ac_objext 9417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9418 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9419 # Insert the option either (1) after the last *FLAGS variable, or 9420 # (2) before a word containing "conftest.", or (3) at the end. 9421 # Note that $ac_compile itself does not contain backslashes and begins 9422 # with a dollar sign (not a hyphen), so the echo should work correctly. 9423 # The option is referenced via a variable to avoid confusing sed. 9424 lt_compile=`echo "$ac_compile" | $SED \ 9425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9427 -e 's:$: $lt_compiler_flag:'` 9428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9429 (eval "$lt_compile" 2>conftest.err) 9430 ac_status=$? 9431 cat conftest.err >&5 9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9433 if (exit $ac_status) && test -s "$ac_outfile"; then 9434 # The compiler can only warn and ignore the option if not recognized 9435 # So say no if there are warnings other than the usual output. 9436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9439 lt_cv_prog_compiler_pic_works=yes 9440 fi 9441 fi 9442 $RM conftest* 9443 9444fi 9445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9446printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9447 9448if test yes = "$lt_cv_prog_compiler_pic_works"; then 9449 case $lt_prog_compiler_pic in 9450 "" | " "*) ;; 9451 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9452 esac 9453else 9454 lt_prog_compiler_pic= 9455 lt_prog_compiler_can_build_shared=no 9456fi 9457 9458fi 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470# 9471# Check to make sure the static flag actually works. 9472# 9473wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9475printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9476if test ${lt_cv_prog_compiler_static_works+y} 9477then : 9478 printf %s "(cached) " >&6 9479else $as_nop 9480 lt_cv_prog_compiler_static_works=no 9481 save_LDFLAGS=$LDFLAGS 9482 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9483 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9484 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9485 # The linker can only warn and ignore the option if not recognized 9486 # So say no if there are warnings 9487 if test -s conftest.err; then 9488 # Append any errors to the config.log. 9489 cat conftest.err 1>&5 9490 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9491 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9492 if diff conftest.exp conftest.er2 >/dev/null; then 9493 lt_cv_prog_compiler_static_works=yes 9494 fi 9495 else 9496 lt_cv_prog_compiler_static_works=yes 9497 fi 9498 fi 9499 $RM -r conftest* 9500 LDFLAGS=$save_LDFLAGS 9501 9502fi 9503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9504printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9505 9506if test yes = "$lt_cv_prog_compiler_static_works"; then 9507 : 9508else 9509 lt_prog_compiler_static= 9510fi 9511 9512 9513 9514 9515 9516 9517 9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9519printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9520if test ${lt_cv_prog_compiler_c_o+y} 9521then : 9522 printf %s "(cached) " >&6 9523else $as_nop 9524 lt_cv_prog_compiler_c_o=no 9525 $RM -r conftest 2>/dev/null 9526 mkdir conftest 9527 cd conftest 9528 mkdir out 9529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9530 9531 lt_compiler_flag="-o out/conftest2.$ac_objext" 9532 # Insert the option either (1) after the last *FLAGS variable, or 9533 # (2) before a word containing "conftest.", or (3) at the end. 9534 # Note that $ac_compile itself does not contain backslashes and begins 9535 # with a dollar sign (not a hyphen), so the echo should work correctly. 9536 lt_compile=`echo "$ac_compile" | $SED \ 9537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9539 -e 's:$: $lt_compiler_flag:'` 9540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9541 (eval "$lt_compile" 2>out/conftest.err) 9542 ac_status=$? 9543 cat out/conftest.err >&5 9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9545 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9546 then 9547 # The compiler can only warn and ignore the option if not recognized 9548 # So say no if there are warnings 9549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9552 lt_cv_prog_compiler_c_o=yes 9553 fi 9554 fi 9555 chmod u+w . 2>&5 9556 $RM conftest* 9557 # SGI C++ compiler will create directory out/ii_files/ for 9558 # template instantiation 9559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9560 $RM out/* && rmdir out 9561 cd .. 9562 $RM -r conftest 9563 $RM conftest* 9564 9565fi 9566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9567printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9568 9569 9570 9571 9572 9573 9574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9575printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9576if test ${lt_cv_prog_compiler_c_o+y} 9577then : 9578 printf %s "(cached) " >&6 9579else $as_nop 9580 lt_cv_prog_compiler_c_o=no 9581 $RM -r conftest 2>/dev/null 9582 mkdir conftest 9583 cd conftest 9584 mkdir out 9585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9586 9587 lt_compiler_flag="-o out/conftest2.$ac_objext" 9588 # Insert the option either (1) after the last *FLAGS variable, or 9589 # (2) before a word containing "conftest.", or (3) at the end. 9590 # Note that $ac_compile itself does not contain backslashes and begins 9591 # with a dollar sign (not a hyphen), so the echo should work correctly. 9592 lt_compile=`echo "$ac_compile" | $SED \ 9593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9595 -e 's:$: $lt_compiler_flag:'` 9596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9597 (eval "$lt_compile" 2>out/conftest.err) 9598 ac_status=$? 9599 cat out/conftest.err >&5 9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9601 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9602 then 9603 # The compiler can only warn and ignore the option if not recognized 9604 # So say no if there are warnings 9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9608 lt_cv_prog_compiler_c_o=yes 9609 fi 9610 fi 9611 chmod u+w . 2>&5 9612 $RM conftest* 9613 # SGI C++ compiler will create directory out/ii_files/ for 9614 # template instantiation 9615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9616 $RM out/* && rmdir out 9617 cd .. 9618 $RM -r conftest 9619 $RM conftest* 9620 9621fi 9622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9623printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9624 9625 9626 9627 9628hard_links=nottested 9629if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9630 # do not overwrite the value of need_locks provided by the user 9631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9632printf %s "checking if we can lock with hard links... " >&6; } 9633 hard_links=yes 9634 $RM conftest* 9635 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9636 touch conftest.a 9637 ln conftest.a conftest.b 2>&5 || hard_links=no 9638 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9640printf "%s\n" "$hard_links" >&6; } 9641 if test no = "$hard_links"; then 9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9643printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9644 need_locks=warn 9645 fi 9646else 9647 need_locks=no 9648fi 9649 9650 9651 9652 9653 9654 9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9656printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9657 9658 runpath_var= 9659 allow_undefined_flag= 9660 always_export_symbols=no 9661 archive_cmds= 9662 archive_expsym_cmds= 9663 compiler_needs_object=no 9664 enable_shared_with_static_runtimes=no 9665 export_dynamic_flag_spec= 9666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9667 hardcode_automatic=no 9668 hardcode_direct=no 9669 hardcode_direct_absolute=no 9670 hardcode_libdir_flag_spec= 9671 hardcode_libdir_separator= 9672 hardcode_minus_L=no 9673 hardcode_shlibpath_var=unsupported 9674 inherit_rpath=no 9675 link_all_deplibs=unknown 9676 module_cmds= 9677 module_expsym_cmds= 9678 old_archive_from_new_cmds= 9679 old_archive_from_expsyms_cmds= 9680 thread_safe_flag_spec= 9681 whole_archive_flag_spec= 9682 # include_expsyms should be a list of space-separated symbols to be *always* 9683 # included in the symbol list 9684 include_expsyms= 9685 # exclude_expsyms can be an extended regexp of symbols to exclude 9686 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9687 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9688 # as well as any symbol that contains 'd'. 9689 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9690 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9691 # platforms (ab)use it in PIC code, but their linkers get confused if 9692 # the symbol is explicitly referenced. Since portable code cannot 9693 # rely on this symbol name, it's probably fine to never include it in 9694 # preloaded symbol tables. 9695 # Exclude shared library initialization/finalization symbols. 9696 extract_expsyms_cmds= 9697 9698 case $host_os in 9699 cygwin* | mingw* | pw32* | cegcc*) 9700 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9701 # When not using gcc, we currently assume that we are using 9702 # Microsoft Visual C++ or Intel C++ Compiler. 9703 if test yes != "$GCC"; then 9704 with_gnu_ld=no 9705 fi 9706 ;; 9707 interix*) 9708 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9709 with_gnu_ld=yes 9710 ;; 9711 openbsd* | bitrig*) 9712 with_gnu_ld=no 9713 ;; 9714 esac 9715 9716 ld_shlibs=yes 9717 9718 # On some targets, GNU ld is compatible enough with the native linker 9719 # that we're better off using the native interface for both. 9720 lt_use_gnu_ld_interface=no 9721 if test yes = "$with_gnu_ld"; then 9722 case $host_os in 9723 aix*) 9724 # The AIX port of GNU ld has always aspired to compatibility 9725 # with the native linker. However, as the warning in the GNU ld 9726 # block says, versions before 2.19.5* couldn't really create working 9727 # shared libraries, regardless of the interface used. 9728 case `$LD -v 2>&1` in 9729 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9730 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9731 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9732 *) 9733 lt_use_gnu_ld_interface=yes 9734 ;; 9735 esac 9736 ;; 9737 *) 9738 lt_use_gnu_ld_interface=yes 9739 ;; 9740 esac 9741 fi 9742 9743 if test yes = "$lt_use_gnu_ld_interface"; then 9744 # If archive_cmds runs LD, not CC, wlarc should be empty 9745 wlarc='$wl' 9746 9747 # Set some defaults for GNU ld with shared library support. These 9748 # are reset later if shared libraries are not supported. Putting them 9749 # here allows them to be overridden if necessary. 9750 runpath_var=LD_RUN_PATH 9751 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9752 export_dynamic_flag_spec='$wl--export-dynamic' 9753 # ancient GNU ld didn't support --whole-archive et. al. 9754 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9755 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9756 else 9757 whole_archive_flag_spec= 9758 fi 9759 supports_anon_versioning=no 9760 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9761 *GNU\ gold*) supports_anon_versioning=yes ;; 9762 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9763 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9764 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9765 *\ 2.11.*) ;; # other 2.11 versions 9766 *) supports_anon_versioning=yes ;; 9767 esac 9768 9769 # See if GNU ld supports shared libraries. 9770 case $host_os in 9771 aix[3-9]*) 9772 # On AIX/PPC, the GNU linker is very broken 9773 if test ia64 != "$host_cpu"; then 9774 ld_shlibs=no 9775 cat <<_LT_EOF 1>&2 9776 9777*** Warning: the GNU linker, at least up to release 2.19, is reported 9778*** to be unable to reliably create shared libraries on AIX. 9779*** Therefore, libtool is disabling shared libraries support. If you 9780*** really care for shared libraries, you may want to install binutils 9781*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9782*** You will then need to restart the configuration process. 9783 9784_LT_EOF 9785 fi 9786 ;; 9787 9788 amigaos*) 9789 case $host_cpu in 9790 powerpc) 9791 # see comment about AmigaOS4 .so support 9792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9793 archive_expsym_cmds='' 9794 ;; 9795 m68k) 9796 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)' 9797 hardcode_libdir_flag_spec='-L$libdir' 9798 hardcode_minus_L=yes 9799 ;; 9800 esac 9801 ;; 9802 9803 beos*) 9804 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9805 allow_undefined_flag=unsupported 9806 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9807 # support --undefined. This deserves some investigation. FIXME 9808 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9809 else 9810 ld_shlibs=no 9811 fi 9812 ;; 9813 9814 cygwin* | mingw* | pw32* | cegcc*) 9815 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9816 # as there is no search path for DLLs. 9817 hardcode_libdir_flag_spec='-L$libdir' 9818 export_dynamic_flag_spec='$wl--export-all-symbols' 9819 allow_undefined_flag=unsupported 9820 always_export_symbols=no 9821 enable_shared_with_static_runtimes=yes 9822 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' 9823 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9824 9825 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9827 # If the export-symbols file already is a .def file, use it as 9828 # is; otherwise, prepend EXPORTS... 9829 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9830 cp $export_symbols $output_objdir/$soname.def; 9831 else 9832 echo EXPORTS > $output_objdir/$soname.def; 9833 cat $export_symbols >> $output_objdir/$soname.def; 9834 fi~ 9835 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9836 else 9837 ld_shlibs=no 9838 fi 9839 ;; 9840 9841 haiku*) 9842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9843 link_all_deplibs=yes 9844 ;; 9845 9846 os2*) 9847 hardcode_libdir_flag_spec='-L$libdir' 9848 hardcode_minus_L=yes 9849 allow_undefined_flag=unsupported 9850 shrext_cmds=.dll 9851 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9852 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9853 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9854 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9855 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9856 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9857 emximp -o $lib $output_objdir/$libname.def' 9858 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9859 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9860 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9861 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9862 prefix_cmds="$SED"~ 9863 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9864 prefix_cmds="$prefix_cmds -e 1d"; 9865 fi~ 9866 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9867 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9868 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9869 emximp -o $lib $output_objdir/$libname.def' 9870 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9871 enable_shared_with_static_runtimes=yes 9872 file_list_spec='@' 9873 ;; 9874 9875 interix[3-9]*) 9876 hardcode_direct=no 9877 hardcode_shlibpath_var=no 9878 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9879 export_dynamic_flag_spec='$wl-E' 9880 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9881 # Instead, shared libraries are loaded at an image base (0x10000000 by 9882 # default) and relocated if they conflict, which is a slow very memory 9883 # consuming and fragmenting process. To avoid this, we pick a random, 9884 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9885 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9887 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' 9888 ;; 9889 9890 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9891 tmp_diet=no 9892 if test linux-dietlibc = "$host_os"; then 9893 case $cc_basename in 9894 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9895 esac 9896 fi 9897 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9898 && test no = "$tmp_diet" 9899 then 9900 tmp_addflag=' $pic_flag' 9901 tmp_sharedflag='-shared' 9902 case $cc_basename,$host_cpu in 9903 pgcc*) # Portland Group C compiler 9904 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' 9905 tmp_addflag=' $pic_flag' 9906 ;; 9907 pgf77* | pgf90* | pgf95* | pgfortran*) 9908 # Portland Group f77 and f90 compilers 9909 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' 9910 tmp_addflag=' $pic_flag -Mnomain' ;; 9911 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9912 tmp_addflag=' -i_dynamic' ;; 9913 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9914 tmp_addflag=' -i_dynamic -nofor_main' ;; 9915 ifc* | ifort*) # Intel Fortran compiler 9916 tmp_addflag=' -nofor_main' ;; 9917 lf95*) # Lahey Fortran 8.1 9918 whole_archive_flag_spec= 9919 tmp_sharedflag='--shared' ;; 9920 nagfor*) # NAGFOR 5.3 9921 tmp_sharedflag='-Wl,-shared' ;; 9922 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9923 tmp_sharedflag='-qmkshrobj' 9924 tmp_addflag= ;; 9925 nvcc*) # Cuda Compiler Driver 2.2 9926 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' 9927 compiler_needs_object=yes 9928 ;; 9929 esac 9930 case `$CC -V 2>&1 | $SED 5q` in 9931 *Sun\ C*) # Sun C 5.9 9932 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' 9933 compiler_needs_object=yes 9934 tmp_sharedflag='-G' ;; 9935 *Sun\ F*) # Sun Fortran 8.3 9936 tmp_sharedflag='-G' ;; 9937 esac 9938 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9939 9940 if test yes = "$supports_anon_versioning"; then 9941 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9942 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9943 echo "local: *; };" >> $output_objdir/$libname.ver~ 9944 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9945 fi 9946 9947 case $cc_basename in 9948 tcc*) 9949 export_dynamic_flag_spec='-rdynamic' 9950 ;; 9951 xlf* | bgf* | bgxlf* | mpixlf*) 9952 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9953 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9955 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9956 if test yes = "$supports_anon_versioning"; then 9957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9958 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9959 echo "local: *; };" >> $output_objdir/$libname.ver~ 9960 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9961 fi 9962 ;; 9963 esac 9964 else 9965 ld_shlibs=no 9966 fi 9967 ;; 9968 9969 netbsd*) 9970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9972 wlarc= 9973 else 9974 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9975 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9976 fi 9977 ;; 9978 9979 solaris*) 9980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9981 ld_shlibs=no 9982 cat <<_LT_EOF 1>&2 9983 9984*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9985*** create shared libraries on Solaris systems. Therefore, libtool 9986*** is disabling shared libraries support. We urge you to upgrade GNU 9987*** binutils to release 2.9.1 or newer. Another option is to modify 9988*** your PATH or compiler configuration so that the native linker is 9989*** used, and then restart. 9990 9991_LT_EOF 9992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9993 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9994 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9995 else 9996 ld_shlibs=no 9997 fi 9998 ;; 9999 10000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10001 case `$LD -v 2>&1` in 10002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10003 ld_shlibs=no 10004 cat <<_LT_EOF 1>&2 10005 10006*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10007*** reliably create shared libraries on SCO systems. Therefore, libtool 10008*** is disabling shared libraries support. We urge you to upgrade GNU 10009*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10010*** your PATH or compiler configuration so that the native linker is 10011*** used, and then restart. 10012 10013_LT_EOF 10014 ;; 10015 *) 10016 # For security reasons, it is highly recommended that you always 10017 # use absolute paths for naming shared libraries, and exclude the 10018 # DT_RUNPATH tag from executables and libraries. But doing so 10019 # requires that you compile everything twice, which is a pain. 10020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10024 else 10025 ld_shlibs=no 10026 fi 10027 ;; 10028 esac 10029 ;; 10030 10031 sunos4*) 10032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10033 wlarc= 10034 hardcode_direct=yes 10035 hardcode_shlibpath_var=no 10036 ;; 10037 10038 *) 10039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10042 else 10043 ld_shlibs=no 10044 fi 10045 ;; 10046 esac 10047 10048 if test no = "$ld_shlibs"; then 10049 runpath_var= 10050 hardcode_libdir_flag_spec= 10051 export_dynamic_flag_spec= 10052 whole_archive_flag_spec= 10053 fi 10054 else 10055 # PORTME fill in a description of your system's linker (not GNU ld) 10056 case $host_os in 10057 aix3*) 10058 allow_undefined_flag=unsupported 10059 always_export_symbols=yes 10060 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' 10061 # Note: this linker hardcodes the directories in LIBPATH if there 10062 # are no directories specified by -L. 10063 hardcode_minus_L=yes 10064 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10065 # Neither direct hardcoding nor static linking is supported with a 10066 # broken collect2. 10067 hardcode_direct=unsupported 10068 fi 10069 ;; 10070 10071 aix[4-9]*) 10072 if test ia64 = "$host_cpu"; then 10073 # On IA64, the linker does run time linking by default, so we don't 10074 # have to do anything special. 10075 aix_use_runtimelinking=no 10076 exp_sym_flag='-Bexport' 10077 no_entry_flag= 10078 else 10079 # If we're using GNU nm, then we don't want the "-C" option. 10080 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10081 # Without the "-l" option, or with the "-B" option, AIX nm treats 10082 # weak defined symbols like other global defined symbols, whereas 10083 # GNU nm marks them as "W". 10084 # While the 'weak' keyword is ignored in the Export File, we need 10085 # it in the Import File for the 'aix-soname' feature, so we have 10086 # to replace the "-B" option with "-P" for AIX nm. 10087 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10088 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' 10089 else 10090 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' 10091 fi 10092 aix_use_runtimelinking=no 10093 10094 # Test if we are trying to use run time linking or normal 10095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10096 # have runtime linking enabled, and use it for executables. 10097 # For shared libraries, we enable/disable runtime linking 10098 # depending on the kind of the shared library created - 10099 # when "with_aix_soname,aix_use_runtimelinking" is: 10100 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10101 # "aix,yes" lib.so shared, rtl:yes, for executables 10102 # lib.a static archive 10103 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10104 # lib.a(lib.so.V) shared, rtl:no, for executables 10105 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10106 # lib.a(lib.so.V) shared, rtl:no 10107 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10108 # lib.a static archive 10109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10110 for ld_flag in $LDFLAGS; do 10111 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10112 aix_use_runtimelinking=yes 10113 break 10114 fi 10115 done 10116 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10117 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10118 # so we don't have lib.a shared libs to link our executables. 10119 # We have to force runtime linking in this case. 10120 aix_use_runtimelinking=yes 10121 LDFLAGS="$LDFLAGS -Wl,-brtl" 10122 fi 10123 ;; 10124 esac 10125 10126 exp_sym_flag='-bexport' 10127 no_entry_flag='-bnoentry' 10128 fi 10129 10130 # When large executables or shared objects are built, AIX ld can 10131 # have problems creating the table of contents. If linking a library 10132 # or program results in "error TOC overflow" add -mminimal-toc to 10133 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10134 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10135 10136 archive_cmds='' 10137 hardcode_direct=yes 10138 hardcode_direct_absolute=yes 10139 hardcode_libdir_separator=':' 10140 link_all_deplibs=yes 10141 file_list_spec='$wl-f,' 10142 case $with_aix_soname,$aix_use_runtimelinking in 10143 aix,*) ;; # traditional, no import file 10144 svr4,* | *,yes) # use import file 10145 # The Import File defines what to hardcode. 10146 hardcode_direct=no 10147 hardcode_direct_absolute=no 10148 ;; 10149 esac 10150 10151 if test yes = "$GCC"; then 10152 case $host_os in aix4.[012]|aix4.[012].*) 10153 # We only want to do this on AIX 4.2 and lower, the check 10154 # below for broken collect2 doesn't work under 4.3+ 10155 collect2name=`$CC -print-prog-name=collect2` 10156 if test -f "$collect2name" && 10157 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10158 then 10159 # We have reworked collect2 10160 : 10161 else 10162 # We have old collect2 10163 hardcode_direct=unsupported 10164 # It fails to find uninstalled libraries when the uninstalled 10165 # path is not listed in the libpath. Setting hardcode_minus_L 10166 # to unsupported forces relinking 10167 hardcode_minus_L=yes 10168 hardcode_libdir_flag_spec='-L$libdir' 10169 hardcode_libdir_separator= 10170 fi 10171 ;; 10172 esac 10173 shared_flag='-shared' 10174 if test yes = "$aix_use_runtimelinking"; then 10175 shared_flag="$shared_flag "'$wl-G' 10176 fi 10177 # Need to ensure runtime linking is disabled for the traditional 10178 # shared library, or the linker may eventually find shared libraries 10179 # /with/ Import File - we do not want to mix them. 10180 shared_flag_aix='-shared' 10181 shared_flag_svr4='-shared $wl-G' 10182 else 10183 # not using gcc 10184 if test ia64 = "$host_cpu"; then 10185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10186 # chokes on -Wl,-G. The following line is correct: 10187 shared_flag='-G' 10188 else 10189 if test yes = "$aix_use_runtimelinking"; then 10190 shared_flag='$wl-G' 10191 else 10192 shared_flag='$wl-bM:SRE' 10193 fi 10194 shared_flag_aix='$wl-bM:SRE' 10195 shared_flag_svr4='$wl-G' 10196 fi 10197 fi 10198 10199 export_dynamic_flag_spec='$wl-bexpall' 10200 # It seems that -bexpall does not export symbols beginning with 10201 # underscore (_), so it is better to generate a list of symbols to export. 10202 always_export_symbols=yes 10203 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10204 # Warning - without using the other runtime loading flags (-brtl), 10205 # -berok will link without error, but may produce a broken library. 10206 allow_undefined_flag='-berok' 10207 # Determine the default libpath from the value encoded in an 10208 # empty executable. 10209 if test set = "${lt_cv_aix_libpath+set}"; then 10210 aix_libpath=$lt_cv_aix_libpath 10211else 10212 if test ${lt_cv_aix_libpath_+y} 10213then : 10214 printf %s "(cached) " >&6 10215else $as_nop 10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10217/* end confdefs.h. */ 10218 10219int 10220main (void) 10221{ 10222 10223 ; 10224 return 0; 10225} 10226_ACEOF 10227if ac_fn_c_try_link "$LINENO" 10228then : 10229 10230 lt_aix_libpath_sed=' 10231 /Import File Strings/,/^$/ { 10232 /^0/ { 10233 s/^0 *\([^ ]*\) *$/\1/ 10234 p 10235 } 10236 }' 10237 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10238 # Check for a 64-bit object if we didn't find anything. 10239 if test -z "$lt_cv_aix_libpath_"; then 10240 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10241 fi 10242fi 10243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10244 conftest$ac_exeext conftest.$ac_ext 10245 if test -z "$lt_cv_aix_libpath_"; then 10246 lt_cv_aix_libpath_=/usr/lib:/lib 10247 fi 10248 10249fi 10250 10251 aix_libpath=$lt_cv_aix_libpath_ 10252fi 10253 10254 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10255 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 10256 else 10257 if test ia64 = "$host_cpu"; then 10258 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10259 allow_undefined_flag="-z nodefs" 10260 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" 10261 else 10262 # Determine the default libpath from the value encoded in an 10263 # empty executable. 10264 if test set = "${lt_cv_aix_libpath+set}"; then 10265 aix_libpath=$lt_cv_aix_libpath 10266else 10267 if test ${lt_cv_aix_libpath_+y} 10268then : 10269 printf %s "(cached) " >&6 10270else $as_nop 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273 10274int 10275main (void) 10276{ 10277 10278 ; 10279 return 0; 10280} 10281_ACEOF 10282if ac_fn_c_try_link "$LINENO" 10283then : 10284 10285 lt_aix_libpath_sed=' 10286 /Import File Strings/,/^$/ { 10287 /^0/ { 10288 s/^0 *\([^ ]*\) *$/\1/ 10289 p 10290 } 10291 }' 10292 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10293 # Check for a 64-bit object if we didn't find anything. 10294 if test -z "$lt_cv_aix_libpath_"; then 10295 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10296 fi 10297fi 10298rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10299 conftest$ac_exeext conftest.$ac_ext 10300 if test -z "$lt_cv_aix_libpath_"; then 10301 lt_cv_aix_libpath_=/usr/lib:/lib 10302 fi 10303 10304fi 10305 10306 aix_libpath=$lt_cv_aix_libpath_ 10307fi 10308 10309 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10310 # Warning - without using the other run time loading flags, 10311 # -berok will link without error, but may produce a broken library. 10312 no_undefined_flag=' $wl-bernotok' 10313 allow_undefined_flag=' $wl-berok' 10314 if test yes = "$with_gnu_ld"; then 10315 # We only use this code for GNU lds that support --whole-archive. 10316 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10317 else 10318 # Exported symbols can be pulled into shared objects from archives 10319 whole_archive_flag_spec='$convenience' 10320 fi 10321 archive_cmds_need_lc=yes 10322 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10323 # -brtl affects multiple linker settings, -berok does not and is overridden later 10324 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10325 if test svr4 != "$with_aix_soname"; then 10326 # This is similar to how AIX traditionally builds its shared libraries. 10327 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' 10328 fi 10329 if test aix != "$with_aix_soname"; then 10330 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' 10331 else 10332 # used by -dlpreopen to get the symbols 10333 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10334 fi 10335 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10336 fi 10337 fi 10338 ;; 10339 10340 amigaos*) 10341 case $host_cpu in 10342 powerpc) 10343 # see comment about AmigaOS4 .so support 10344 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10345 archive_expsym_cmds='' 10346 ;; 10347 m68k) 10348 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)' 10349 hardcode_libdir_flag_spec='-L$libdir' 10350 hardcode_minus_L=yes 10351 ;; 10352 esac 10353 ;; 10354 10355 bsdi[45]*) 10356 export_dynamic_flag_spec=-rdynamic 10357 ;; 10358 10359 cygwin* | mingw* | pw32* | cegcc*) 10360 # When not using gcc, we currently assume that we are using 10361 # Microsoft Visual C++ or Intel C++ Compiler. 10362 # hardcode_libdir_flag_spec is actually meaningless, as there is 10363 # no search path for DLLs. 10364 case $cc_basename in 10365 cl* | icl*) 10366 # Native MSVC or ICC 10367 hardcode_libdir_flag_spec=' ' 10368 allow_undefined_flag=unsupported 10369 always_export_symbols=yes 10370 file_list_spec='@' 10371 # Tell ltmain to make .lib files, not .a files. 10372 libext=lib 10373 # Tell ltmain to make .dll files, not .so files. 10374 shrext_cmds=.dll 10375 # FIXME: Setting linknames here is a bad hack. 10376 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10377 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10378 cp "$export_symbols" "$output_objdir/$soname.def"; 10379 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10380 else 10381 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10382 fi~ 10383 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10384 linknames=' 10385 # The linker will not automatically build a static lib if we build a DLL. 10386 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10387 enable_shared_with_static_runtimes=yes 10388 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10389 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10390 # Don't use ranlib 10391 old_postinstall_cmds='chmod 644 $oldlib' 10392 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10393 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10394 case $lt_outputfile in 10395 *.exe|*.EXE) ;; 10396 *) 10397 lt_outputfile=$lt_outputfile.exe 10398 lt_tool_outputfile=$lt_tool_outputfile.exe 10399 ;; 10400 esac~ 10401 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10402 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10403 $RM "$lt_outputfile.manifest"; 10404 fi' 10405 ;; 10406 *) 10407 # Assume MSVC and ICC wrapper 10408 hardcode_libdir_flag_spec=' ' 10409 allow_undefined_flag=unsupported 10410 # Tell ltmain to make .lib files, not .a files. 10411 libext=lib 10412 # Tell ltmain to make .dll files, not .so files. 10413 shrext_cmds=.dll 10414 # FIXME: Setting linknames here is a bad hack. 10415 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10416 # The linker will automatically build a .lib file if we build a DLL. 10417 old_archive_from_new_cmds='true' 10418 # FIXME: Should let the user specify the lib program. 10419 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10420 enable_shared_with_static_runtimes=yes 10421 ;; 10422 esac 10423 ;; 10424 10425 darwin* | rhapsody*) 10426 10427 10428 archive_cmds_need_lc=no 10429 hardcode_direct=no 10430 hardcode_automatic=yes 10431 hardcode_shlibpath_var=unsupported 10432 if test yes = "$lt_cv_ld_force_load"; then 10433 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\"`' 10434 10435 else 10436 whole_archive_flag_spec='' 10437 fi 10438 link_all_deplibs=yes 10439 allow_undefined_flag=$_lt_dar_allow_undefined 10440 case $cc_basename in 10441 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10442 *) _lt_dar_can_shared=$GCC ;; 10443 esac 10444 if test yes = "$_lt_dar_can_shared"; then 10445 output_verbose_link_cmd=func_echo_all 10446 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10447 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10448 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" 10449 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" 10450 10451 else 10452 ld_shlibs=no 10453 fi 10454 10455 ;; 10456 10457 dgux*) 10458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10459 hardcode_libdir_flag_spec='-L$libdir' 10460 hardcode_shlibpath_var=no 10461 ;; 10462 10463 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10464 # support. Future versions do this automatically, but an explicit c++rt0.o 10465 # does not break anything, and helps significantly (at the cost of a little 10466 # extra space). 10467 freebsd2.2*) 10468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10469 hardcode_libdir_flag_spec='-R$libdir' 10470 hardcode_direct=yes 10471 hardcode_shlibpath_var=no 10472 ;; 10473 10474 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10475 freebsd2.*) 10476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10477 hardcode_direct=yes 10478 hardcode_minus_L=yes 10479 hardcode_shlibpath_var=no 10480 ;; 10481 10482 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10483 freebsd* | dragonfly* | midnightbsd*) 10484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10485 hardcode_libdir_flag_spec='-R$libdir' 10486 hardcode_direct=yes 10487 hardcode_shlibpath_var=no 10488 ;; 10489 10490 hpux9*) 10491 if test yes = "$GCC"; then 10492 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' 10493 else 10494 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' 10495 fi 10496 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10497 hardcode_libdir_separator=: 10498 hardcode_direct=yes 10499 10500 # hardcode_minus_L: Not really in the search PATH, 10501 # but as the default location of the library. 10502 hardcode_minus_L=yes 10503 export_dynamic_flag_spec='$wl-E' 10504 ;; 10505 10506 hpux10*) 10507 if test yes,no = "$GCC,$with_gnu_ld"; then 10508 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10509 else 10510 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10511 fi 10512 if test no = "$with_gnu_ld"; then 10513 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10514 hardcode_libdir_separator=: 10515 hardcode_direct=yes 10516 hardcode_direct_absolute=yes 10517 export_dynamic_flag_spec='$wl-E' 10518 # hardcode_minus_L: Not really in the search PATH, 10519 # but as the default location of the library. 10520 hardcode_minus_L=yes 10521 fi 10522 ;; 10523 10524 hpux11*) 10525 if test yes,no = "$GCC,$with_gnu_ld"; then 10526 case $host_cpu in 10527 hppa*64*) 10528 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10529 ;; 10530 ia64*) 10531 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10532 ;; 10533 *) 10534 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10535 ;; 10536 esac 10537 else 10538 case $host_cpu in 10539 hppa*64*) 10540 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10541 ;; 10542 ia64*) 10543 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10544 ;; 10545 *) 10546 10547 # Older versions of the 11.00 compiler do not understand -b yet 10548 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10550printf %s "checking if $CC understands -b... " >&6; } 10551if test ${lt_cv_prog_compiler__b+y} 10552then : 10553 printf %s "(cached) " >&6 10554else $as_nop 10555 lt_cv_prog_compiler__b=no 10556 save_LDFLAGS=$LDFLAGS 10557 LDFLAGS="$LDFLAGS -b" 10558 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10559 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10560 # The linker can only warn and ignore the option if not recognized 10561 # So say no if there are warnings 10562 if test -s conftest.err; then 10563 # Append any errors to the config.log. 10564 cat conftest.err 1>&5 10565 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10567 if diff conftest.exp conftest.er2 >/dev/null; then 10568 lt_cv_prog_compiler__b=yes 10569 fi 10570 else 10571 lt_cv_prog_compiler__b=yes 10572 fi 10573 fi 10574 $RM -r conftest* 10575 LDFLAGS=$save_LDFLAGS 10576 10577fi 10578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10579printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10580 10581if test yes = "$lt_cv_prog_compiler__b"; then 10582 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10583else 10584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10585fi 10586 10587 ;; 10588 esac 10589 fi 10590 if test no = "$with_gnu_ld"; then 10591 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10592 hardcode_libdir_separator=: 10593 10594 case $host_cpu in 10595 hppa*64*|ia64*) 10596 hardcode_direct=no 10597 hardcode_shlibpath_var=no 10598 ;; 10599 *) 10600 hardcode_direct=yes 10601 hardcode_direct_absolute=yes 10602 export_dynamic_flag_spec='$wl-E' 10603 10604 # hardcode_minus_L: Not really in the search PATH, 10605 # but as the default location of the library. 10606 hardcode_minus_L=yes 10607 ;; 10608 esac 10609 fi 10610 ;; 10611 10612 irix5* | irix6* | nonstopux*) 10613 if test yes = "$GCC"; then 10614 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' 10615 # Try to use the -exported_symbol ld option, if it does not 10616 # work, assume that -exports_file does not work either and 10617 # implicitly export all symbols. 10618 # This should be the same for all languages, so no per-tag cache variable. 10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10620printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10621if test ${lt_cv_irix_exported_symbol+y} 10622then : 10623 printf %s "(cached) " >&6 10624else $as_nop 10625 save_LDFLAGS=$LDFLAGS 10626 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10628/* end confdefs.h. */ 10629int foo (void) { return 0; } 10630_ACEOF 10631if ac_fn_c_try_link "$LINENO" 10632then : 10633 lt_cv_irix_exported_symbol=yes 10634else $as_nop 10635 lt_cv_irix_exported_symbol=no 10636fi 10637rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10638 conftest$ac_exeext conftest.$ac_ext 10639 LDFLAGS=$save_LDFLAGS 10640fi 10641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10642printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10643 if test yes = "$lt_cv_irix_exported_symbol"; then 10644 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' 10645 fi 10646 else 10647 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' 10648 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' 10649 fi 10650 archive_cmds_need_lc='no' 10651 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10652 hardcode_libdir_separator=: 10653 inherit_rpath=yes 10654 link_all_deplibs=yes 10655 ;; 10656 10657 linux*) 10658 case $cc_basename in 10659 tcc*) 10660 # Fabrice Bellard et al's Tiny C Compiler 10661 ld_shlibs=yes 10662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10663 ;; 10664 esac 10665 ;; 10666 10667 netbsd*) 10668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10670 else 10671 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10672 fi 10673 hardcode_libdir_flag_spec='-R$libdir' 10674 hardcode_direct=yes 10675 hardcode_shlibpath_var=no 10676 ;; 10677 10678 newsos6) 10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10680 hardcode_direct=yes 10681 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10682 hardcode_libdir_separator=: 10683 hardcode_shlibpath_var=no 10684 ;; 10685 10686 *nto* | *qnx*) 10687 ;; 10688 10689 openbsd* | bitrig*) 10690 if test -f /usr/libexec/ld.so; then 10691 hardcode_direct=yes 10692 hardcode_shlibpath_var=no 10693 hardcode_direct_absolute=yes 10694 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10695 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10696 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10697 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10698 export_dynamic_flag_spec='$wl-E' 10699 else 10700 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10701 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10702 fi 10703 else 10704 ld_shlibs=no 10705 fi 10706 ;; 10707 10708 os2*) 10709 hardcode_libdir_flag_spec='-L$libdir' 10710 hardcode_minus_L=yes 10711 allow_undefined_flag=unsupported 10712 shrext_cmds=.dll 10713 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10714 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10715 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10716 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10717 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10718 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10719 emximp -o $lib $output_objdir/$libname.def' 10720 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10721 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10722 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10723 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10724 prefix_cmds="$SED"~ 10725 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10726 prefix_cmds="$prefix_cmds -e 1d"; 10727 fi~ 10728 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10729 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10730 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10731 emximp -o $lib $output_objdir/$libname.def' 10732 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10733 enable_shared_with_static_runtimes=yes 10734 file_list_spec='@' 10735 ;; 10736 10737 osf3*) 10738 if test yes = "$GCC"; then 10739 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10740 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' 10741 else 10742 allow_undefined_flag=' -expect_unresolved \*' 10743 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' 10744 fi 10745 archive_cmds_need_lc='no' 10746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10747 hardcode_libdir_separator=: 10748 ;; 10749 10750 osf4* | osf5*) # as osf3* with the addition of -msym flag 10751 if test yes = "$GCC"; then 10752 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10753 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' 10754 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10755 else 10756 allow_undefined_flag=' -expect_unresolved \*' 10757 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' 10758 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~ 10759 $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' 10760 10761 # Both c and cxx compiler support -rpath directly 10762 hardcode_libdir_flag_spec='-rpath $libdir' 10763 fi 10764 archive_cmds_need_lc='no' 10765 hardcode_libdir_separator=: 10766 ;; 10767 10768 solaris*) 10769 no_undefined_flag=' -z defs' 10770 if test yes = "$GCC"; then 10771 wlarc='$wl' 10772 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10773 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10774 $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' 10775 else 10776 case `$CC -V 2>&1` in 10777 *"Compilers 5.0"*) 10778 wlarc='' 10779 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10780 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10781 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10782 ;; 10783 *) 10784 wlarc='$wl' 10785 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10787 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10788 ;; 10789 esac 10790 fi 10791 hardcode_libdir_flag_spec='-R$libdir' 10792 hardcode_shlibpath_var=no 10793 case $host_os in 10794 solaris2.[0-5] | solaris2.[0-5].*) ;; 10795 *) 10796 # The compiler driver will combine and reorder linker options, 10797 # but understands '-z linker_flag'. GCC discards it without '$wl', 10798 # but is careful enough not to reorder. 10799 # Supported since Solaris 2.6 (maybe 2.5.1?) 10800 if test yes = "$GCC"; then 10801 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10802 else 10803 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10804 fi 10805 ;; 10806 esac 10807 link_all_deplibs=yes 10808 ;; 10809 10810 sunos4*) 10811 if test sequent = "$host_vendor"; then 10812 # Use $CC to link under sequent, because it throws in some extra .o 10813 # files that make .init and .fini sections work. 10814 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10815 else 10816 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10817 fi 10818 hardcode_libdir_flag_spec='-L$libdir' 10819 hardcode_direct=yes 10820 hardcode_minus_L=yes 10821 hardcode_shlibpath_var=no 10822 ;; 10823 10824 sysv4) 10825 case $host_vendor in 10826 sni) 10827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10828 hardcode_direct=yes # is this really true??? 10829 ;; 10830 siemens) 10831 ## LD is ld it makes a PLAMLIB 10832 ## CC just makes a GrossModule. 10833 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10834 reload_cmds='$CC -r -o $output$reload_objs' 10835 hardcode_direct=no 10836 ;; 10837 motorola) 10838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10839 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10840 ;; 10841 esac 10842 runpath_var='LD_RUN_PATH' 10843 hardcode_shlibpath_var=no 10844 ;; 10845 10846 sysv4.3*) 10847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10848 hardcode_shlibpath_var=no 10849 export_dynamic_flag_spec='-Bexport' 10850 ;; 10851 10852 sysv4*MP*) 10853 if test -d /usr/nec; then 10854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10855 hardcode_shlibpath_var=no 10856 runpath_var=LD_RUN_PATH 10857 hardcode_runpath_var=yes 10858 ld_shlibs=yes 10859 fi 10860 ;; 10861 10862 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10863 no_undefined_flag='$wl-z,text' 10864 archive_cmds_need_lc=no 10865 hardcode_shlibpath_var=no 10866 runpath_var='LD_RUN_PATH' 10867 10868 if test yes = "$GCC"; then 10869 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10870 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10871 else 10872 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10873 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10874 fi 10875 ;; 10876 10877 sysv5* | sco3.2v5* | sco5v6*) 10878 # Note: We CANNOT use -z defs as we might desire, because we do not 10879 # link with -lc, and that would cause any symbols used from libc to 10880 # always be unresolved, which means just about no library would 10881 # ever link correctly. If we're not using GNU ld we use -z text 10882 # though, which does catch some bad symbols but isn't as heavy-handed 10883 # as -z defs. 10884 no_undefined_flag='$wl-z,text' 10885 allow_undefined_flag='$wl-z,nodefs' 10886 archive_cmds_need_lc=no 10887 hardcode_shlibpath_var=no 10888 hardcode_libdir_flag_spec='$wl-R,$libdir' 10889 hardcode_libdir_separator=':' 10890 link_all_deplibs=yes 10891 export_dynamic_flag_spec='$wl-Bexport' 10892 runpath_var='LD_RUN_PATH' 10893 10894 if test yes = "$GCC"; then 10895 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10896 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10897 else 10898 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10899 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10900 fi 10901 ;; 10902 10903 uts4*) 10904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10905 hardcode_libdir_flag_spec='-L$libdir' 10906 hardcode_shlibpath_var=no 10907 ;; 10908 10909 *) 10910 ld_shlibs=no 10911 ;; 10912 esac 10913 10914 if test sni = "$host_vendor"; then 10915 case $host in 10916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10917 export_dynamic_flag_spec='$wl-Blargedynsym' 10918 ;; 10919 esac 10920 fi 10921 fi 10922 10923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10924printf "%s\n" "$ld_shlibs" >&6; } 10925test no = "$ld_shlibs" && can_build_shared=no 10926 10927with_gnu_ld=$with_gnu_ld 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943# 10944# Do we need to explicitly link libc? 10945# 10946case "x$archive_cmds_need_lc" in 10947x|xyes) 10948 # Assume -lc should be added 10949 archive_cmds_need_lc=yes 10950 10951 if test yes,yes = "$GCC,$enable_shared"; then 10952 case $archive_cmds in 10953 *'~'*) 10954 # FIXME: we may have to deal with multi-command sequences. 10955 ;; 10956 '$CC '*) 10957 # Test whether the compiler implicitly links with -lc since on some 10958 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10959 # to ld, don't add -lc before -lgcc. 10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10961printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10962if test ${lt_cv_archive_cmds_need_lc+y} 10963then : 10964 printf %s "(cached) " >&6 10965else $as_nop 10966 $RM conftest* 10967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10968 10969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10970 (eval $ac_compile) 2>&5 10971 ac_status=$? 10972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10973 test $ac_status = 0; } 2>conftest.err; then 10974 soname=conftest 10975 lib=conftest 10976 libobjs=conftest.$ac_objext 10977 deplibs= 10978 wl=$lt_prog_compiler_wl 10979 pic_flag=$lt_prog_compiler_pic 10980 compiler_flags=-v 10981 linker_flags=-v 10982 verstring= 10983 output_objdir=. 10984 libname=conftest 10985 lt_save_allow_undefined_flag=$allow_undefined_flag 10986 allow_undefined_flag= 10987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10988 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10989 ac_status=$? 10990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10991 test $ac_status = 0; } 10992 then 10993 lt_cv_archive_cmds_need_lc=no 10994 else 10995 lt_cv_archive_cmds_need_lc=yes 10996 fi 10997 allow_undefined_flag=$lt_save_allow_undefined_flag 10998 else 10999 cat conftest.err 1>&5 11000 fi 11001 $RM conftest* 11002 11003fi 11004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11005printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11006 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11007 ;; 11008 esac 11009 fi 11010 ;; 11011esac 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11165printf %s "checking dynamic linker characteristics... " >&6; } 11166 11167if test yes = "$GCC"; then 11168 case $host_os in 11169 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11170 *) lt_awk_arg='/^libraries:/' ;; 11171 esac 11172 case $host_os in 11173 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11174 *) lt_sed_strip_eq='s|=/|/|g' ;; 11175 esac 11176 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11177 case $lt_search_path_spec in 11178 *\;*) 11179 # if the path contains ";" then we assume it to be the separator 11180 # otherwise default to the standard path separator (i.e. ":") - it is 11181 # assumed that no part of a normal pathname contains ";" but that should 11182 # okay in the real world where ";" in dirpaths is itself problematic. 11183 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11184 ;; 11185 *) 11186 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11187 ;; 11188 esac 11189 # Ok, now we have the path, separated by spaces, we can step through it 11190 # and add multilib dir if necessary... 11191 lt_tmp_lt_search_path_spec= 11192 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11193 # ...but if some path component already ends with the multilib dir we assume 11194 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11195 case "$lt_multi_os_dir; $lt_search_path_spec " in 11196 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11197 lt_multi_os_dir= 11198 ;; 11199 esac 11200 for lt_sys_path in $lt_search_path_spec; do 11201 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11203 elif test -n "$lt_multi_os_dir"; then 11204 test -d "$lt_sys_path" && \ 11205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11206 fi 11207 done 11208 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11209BEGIN {RS = " "; FS = "/|\n";} { 11210 lt_foo = ""; 11211 lt_count = 0; 11212 for (lt_i = NF; lt_i > 0; lt_i--) { 11213 if ($lt_i != "" && $lt_i != ".") { 11214 if ($lt_i == "..") { 11215 lt_count++; 11216 } else { 11217 if (lt_count == 0) { 11218 lt_foo = "/" $lt_i lt_foo; 11219 } else { 11220 lt_count--; 11221 } 11222 } 11223 } 11224 } 11225 if (lt_foo != "") { lt_freq[lt_foo]++; } 11226 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11227}'` 11228 # AWK program above erroneously prepends '/' to C:/dos/paths 11229 # for these hosts. 11230 case $host_os in 11231 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11232 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11233 esac 11234 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11235else 11236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11237fi 11238library_names_spec= 11239libname_spec='lib$name' 11240soname_spec= 11241shrext_cmds=.so 11242postinstall_cmds= 11243postuninstall_cmds= 11244finish_cmds= 11245finish_eval= 11246shlibpath_var= 11247shlibpath_overrides_runpath=unknown 11248version_type=none 11249dynamic_linker="$host_os ld.so" 11250sys_lib_dlsearch_path_spec="/lib /usr/lib" 11251need_lib_prefix=unknown 11252hardcode_into_libs=no 11253 11254# when you set need_version to no, make sure it does not cause -set_version 11255# flags to be left without arguments 11256need_version=unknown 11257 11258 11259 11260case $host_os in 11261aix3*) 11262 version_type=linux # correct to gnu/linux during the next big refactor 11263 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11264 shlibpath_var=LIBPATH 11265 11266 # AIX 3 has no versioning support, so we append a major version to the name. 11267 soname_spec='$libname$release$shared_ext$major' 11268 ;; 11269 11270aix[4-9]*) 11271 version_type=linux # correct to gnu/linux during the next big refactor 11272 need_lib_prefix=no 11273 need_version=no 11274 hardcode_into_libs=yes 11275 if test ia64 = "$host_cpu"; then 11276 # AIX 5 supports IA64 11277 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11278 shlibpath_var=LD_LIBRARY_PATH 11279 else 11280 # With GCC up to 2.95.x, collect2 would create an import file 11281 # for dependence libraries. The import file would start with 11282 # the line '#! .'. This would cause the generated library to 11283 # depend on '.', always an invalid library. This was fixed in 11284 # development snapshots of GCC prior to 3.0. 11285 case $host_os in 11286 aix4 | aix4.[01] | aix4.[01].*) 11287 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11288 echo ' yes ' 11289 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11290 : 11291 else 11292 can_build_shared=no 11293 fi 11294 ;; 11295 esac 11296 # Using Import Files as archive members, it is possible to support 11297 # filename-based versioning of shared library archives on AIX. While 11298 # this would work for both with and without runtime linking, it will 11299 # prevent static linking of such archives. So we do filename-based 11300 # shared library versioning with .so extension only, which is used 11301 # when both runtime linking and shared linking is enabled. 11302 # Unfortunately, runtime linking may impact performance, so we do 11303 # not want this to be the default eventually. Also, we use the 11304 # versioned .so libs for executables only if there is the -brtl 11305 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11306 # To allow for filename-based versioning support, we need to create 11307 # libNAME.so.V as an archive file, containing: 11308 # *) an Import File, referring to the versioned filename of the 11309 # archive as well as the shared archive member, telling the 11310 # bitwidth (32 or 64) of that shared object, and providing the 11311 # list of exported symbols of that shared object, eventually 11312 # decorated with the 'weak' keyword 11313 # *) the shared object with the F_LOADONLY flag set, to really avoid 11314 # it being seen by the linker. 11315 # At run time we better use the real file rather than another symlink, 11316 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11317 11318 case $with_aix_soname,$aix_use_runtimelinking in 11319 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11320 # soname into executable. Probably we can add versioning support to 11321 # collect2, so additional links can be useful in future. 11322 aix,yes) # traditional libtool 11323 dynamic_linker='AIX unversionable lib.so' 11324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11325 # instead of lib<name>.a to let people know that these are not 11326 # typical AIX shared libraries. 11327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11328 ;; 11329 aix,no) # traditional AIX only 11330 dynamic_linker='AIX lib.a(lib.so.V)' 11331 # We preserve .a as extension for shared libraries through AIX4.2 11332 # and later when we are not doing run time linking. 11333 library_names_spec='$libname$release.a $libname.a' 11334 soname_spec='$libname$release$shared_ext$major' 11335 ;; 11336 svr4,*) # full svr4 only 11337 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11338 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11339 # We do not specify a path in Import Files, so LIBPATH fires. 11340 shlibpath_overrides_runpath=yes 11341 ;; 11342 *,yes) # both, prefer svr4 11343 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11344 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11345 # unpreferred sharedlib libNAME.a needs extra handling 11346 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"' 11347 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"' 11348 # We do not specify a path in Import Files, so LIBPATH fires. 11349 shlibpath_overrides_runpath=yes 11350 ;; 11351 *,no) # both, prefer aix 11352 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11353 library_names_spec='$libname$release.a $libname.a' 11354 soname_spec='$libname$release$shared_ext$major' 11355 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11356 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)' 11357 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"' 11358 ;; 11359 esac 11360 shlibpath_var=LIBPATH 11361 fi 11362 ;; 11363 11364amigaos*) 11365 case $host_cpu in 11366 powerpc) 11367 # Since July 2007 AmigaOS4 officially supports .so libraries. 11368 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11370 ;; 11371 m68k) 11372 library_names_spec='$libname.ixlibrary $libname.a' 11373 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11374 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' 11375 ;; 11376 esac 11377 ;; 11378 11379beos*) 11380 library_names_spec='$libname$shared_ext' 11381 dynamic_linker="$host_os ld.so" 11382 shlibpath_var=LIBRARY_PATH 11383 ;; 11384 11385bsdi[45]*) 11386 version_type=linux # correct to gnu/linux during the next big refactor 11387 need_version=no 11388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11389 soname_spec='$libname$release$shared_ext$major' 11390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11391 shlibpath_var=LD_LIBRARY_PATH 11392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11394 # the default ld.so.conf also contains /usr/contrib/lib and 11395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11396 # libtool to hard-code these into programs 11397 ;; 11398 11399cygwin* | mingw* | pw32* | cegcc*) 11400 version_type=windows 11401 shrext_cmds=.dll 11402 need_version=no 11403 need_lib_prefix=no 11404 11405 case $GCC,$cc_basename in 11406 yes,*) 11407 # gcc 11408 library_names_spec='$libname.dll.a' 11409 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11410 postinstall_cmds='base_file=`basename \$file`~ 11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11412 dldir=$destdir/`dirname \$dlpath`~ 11413 test -d \$dldir || mkdir -p \$dldir~ 11414 $install_prog $dir/$dlname \$dldir/$dlname~ 11415 chmod a+x \$dldir/$dlname~ 11416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11418 fi' 11419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11420 dlpath=$dir/\$dldll~ 11421 $RM \$dlpath' 11422 shlibpath_overrides_runpath=yes 11423 11424 case $host_os in 11425 cygwin*) 11426 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11427 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11428 11429 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11430 ;; 11431 mingw* | cegcc*) 11432 # MinGW DLLs use traditional 'lib' prefix 11433 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11434 ;; 11435 pw32*) 11436 # pw32 DLLs use 'pw' prefix rather than 'lib' 11437 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11438 ;; 11439 esac 11440 dynamic_linker='Win32 ld.exe' 11441 ;; 11442 11443 *,cl* | *,icl*) 11444 # Native MSVC or ICC 11445 libname_spec='$name' 11446 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11447 library_names_spec='$libname.dll.lib' 11448 11449 case $build_os in 11450 mingw*) 11451 sys_lib_search_path_spec= 11452 lt_save_ifs=$IFS 11453 IFS=';' 11454 for lt_path in $LIB 11455 do 11456 IFS=$lt_save_ifs 11457 # Let DOS variable expansion print the short 8.3 style file name. 11458 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11459 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11460 done 11461 IFS=$lt_save_ifs 11462 # Convert to MSYS style. 11463 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11464 ;; 11465 cygwin*) 11466 # Convert to unix form, then to dos form, then back to unix form 11467 # but this time dos style (no spaces!) so that the unix form looks 11468 # like /cygdrive/c/PROGRA~1:/cygdr... 11469 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11470 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11471 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11472 ;; 11473 *) 11474 sys_lib_search_path_spec=$LIB 11475 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11476 # It is most probably a Windows format PATH. 11477 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11478 else 11479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11480 fi 11481 # FIXME: find the short name or the path components, as spaces are 11482 # common. (e.g. "Program Files" -> "PROGRA~1") 11483 ;; 11484 esac 11485 11486 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11487 postinstall_cmds='base_file=`basename \$file`~ 11488 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11489 dldir=$destdir/`dirname \$dlpath`~ 11490 test -d \$dldir || mkdir -p \$dldir~ 11491 $install_prog $dir/$dlname \$dldir/$dlname' 11492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11493 dlpath=$dir/\$dldll~ 11494 $RM \$dlpath' 11495 shlibpath_overrides_runpath=yes 11496 dynamic_linker='Win32 link.exe' 11497 ;; 11498 11499 *) 11500 # Assume MSVC and ICC wrapper 11501 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11502 dynamic_linker='Win32 ld.exe' 11503 ;; 11504 esac 11505 # FIXME: first we should search . and the directory the executable is in 11506 shlibpath_var=PATH 11507 ;; 11508 11509darwin* | rhapsody*) 11510 dynamic_linker="$host_os dyld" 11511 version_type=darwin 11512 need_lib_prefix=no 11513 need_version=no 11514 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11515 soname_spec='$libname$release$major$shared_ext' 11516 shlibpath_overrides_runpath=yes 11517 shlibpath_var=DYLD_LIBRARY_PATH 11518 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11519 11520 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11521 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11522 ;; 11523 11524dgux*) 11525 version_type=linux # correct to gnu/linux during the next big refactor 11526 need_lib_prefix=no 11527 need_version=no 11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11529 soname_spec='$libname$release$shared_ext$major' 11530 shlibpath_var=LD_LIBRARY_PATH 11531 ;; 11532 11533freebsd* | dragonfly* | midnightbsd*) 11534 # DragonFly does not have aout. When/if they implement a new 11535 # versioning mechanism, adjust this. 11536 if test -x /usr/bin/objformat; then 11537 objformat=`/usr/bin/objformat` 11538 else 11539 case $host_os in 11540 freebsd[23].*) objformat=aout ;; 11541 *) objformat=elf ;; 11542 esac 11543 fi 11544 version_type=freebsd-$objformat 11545 case $version_type in 11546 freebsd-elf*) 11547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11548 soname_spec='$libname$release$shared_ext$major' 11549 need_version=no 11550 need_lib_prefix=no 11551 ;; 11552 freebsd-*) 11553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11554 need_version=yes 11555 ;; 11556 esac 11557 shlibpath_var=LD_LIBRARY_PATH 11558 case $host_os in 11559 freebsd2.*) 11560 shlibpath_overrides_runpath=yes 11561 ;; 11562 freebsd3.[01]* | freebsdelf3.[01]*) 11563 shlibpath_overrides_runpath=yes 11564 hardcode_into_libs=yes 11565 ;; 11566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11568 shlibpath_overrides_runpath=no 11569 hardcode_into_libs=yes 11570 ;; 11571 *) # from 4.6 on, and DragonFly 11572 shlibpath_overrides_runpath=yes 11573 hardcode_into_libs=yes 11574 ;; 11575 esac 11576 ;; 11577 11578haiku*) 11579 version_type=linux # correct to gnu/linux during the next big refactor 11580 need_lib_prefix=no 11581 need_version=no 11582 dynamic_linker="$host_os runtime_loader" 11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11584 soname_spec='$libname$release$shared_ext$major' 11585 shlibpath_var=LIBRARY_PATH 11586 shlibpath_overrides_runpath=no 11587 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11588 hardcode_into_libs=yes 11589 ;; 11590 11591hpux9* | hpux10* | hpux11*) 11592 # Give a soname corresponding to the major version so that dld.sl refuses to 11593 # link against other versions. 11594 version_type=sunos 11595 need_lib_prefix=no 11596 need_version=no 11597 case $host_cpu in 11598 ia64*) 11599 shrext_cmds='.so' 11600 hardcode_into_libs=yes 11601 dynamic_linker="$host_os dld.so" 11602 shlibpath_var=LD_LIBRARY_PATH 11603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11605 soname_spec='$libname$release$shared_ext$major' 11606 if test 32 = "$HPUX_IA64_MODE"; then 11607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11608 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11609 else 11610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11611 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11612 fi 11613 ;; 11614 hppa*64*) 11615 shrext_cmds='.sl' 11616 hardcode_into_libs=yes 11617 dynamic_linker="$host_os dld.sl" 11618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11621 soname_spec='$libname$release$shared_ext$major' 11622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11624 ;; 11625 *) 11626 shrext_cmds='.sl' 11627 dynamic_linker="$host_os dld.sl" 11628 shlibpath_var=SHLIB_PATH 11629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11631 soname_spec='$libname$release$shared_ext$major' 11632 ;; 11633 esac 11634 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11635 postinstall_cmds='chmod 555 $lib' 11636 # or fails outright, so override atomically: 11637 install_override_mode=555 11638 ;; 11639 11640interix[3-9]*) 11641 version_type=linux # correct to gnu/linux during the next big refactor 11642 need_lib_prefix=no 11643 need_version=no 11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11645 soname_spec='$libname$release$shared_ext$major' 11646 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11647 shlibpath_var=LD_LIBRARY_PATH 11648 shlibpath_overrides_runpath=no 11649 hardcode_into_libs=yes 11650 ;; 11651 11652irix5* | irix6* | nonstopux*) 11653 case $host_os in 11654 nonstopux*) version_type=nonstopux ;; 11655 *) 11656 if test yes = "$lt_cv_prog_gnu_ld"; then 11657 version_type=linux # correct to gnu/linux during the next big refactor 11658 else 11659 version_type=irix 11660 fi ;; 11661 esac 11662 need_lib_prefix=no 11663 need_version=no 11664 soname_spec='$libname$release$shared_ext$major' 11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11666 case $host_os in 11667 irix5* | nonstopux*) 11668 libsuff= shlibsuff= 11669 ;; 11670 *) 11671 case $LD in # libtool.m4 will add one of these switches to LD 11672 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11673 libsuff= shlibsuff= libmagic=32-bit;; 11674 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11675 libsuff=32 shlibsuff=N32 libmagic=N32;; 11676 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11677 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11678 *) libsuff= shlibsuff= libmagic=never-match;; 11679 esac 11680 ;; 11681 esac 11682 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11683 shlibpath_overrides_runpath=no 11684 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11685 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11686 hardcode_into_libs=yes 11687 ;; 11688 11689# No shared lib support for Linux oldld, aout, or coff. 11690linux*oldld* | linux*aout* | linux*coff*) 11691 dynamic_linker=no 11692 ;; 11693 11694linux*android*) 11695 version_type=none # Android doesn't support versioned libraries. 11696 need_lib_prefix=no 11697 need_version=no 11698 library_names_spec='$libname$release$shared_ext' 11699 soname_spec='$libname$release$shared_ext' 11700 finish_cmds= 11701 shlibpath_var=LD_LIBRARY_PATH 11702 shlibpath_overrides_runpath=yes 11703 11704 # This implies no fast_install, which is unacceptable. 11705 # Some rework will be needed to allow for fast_install 11706 # before this can be enabled. 11707 hardcode_into_libs=yes 11708 11709 dynamic_linker='Android linker' 11710 # Don't embed -rpath directories since the linker doesn't support them. 11711 hardcode_libdir_flag_spec='-L$libdir' 11712 ;; 11713 11714# This must be glibc/ELF. 11715linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11716 version_type=linux # correct to gnu/linux during the next big refactor 11717 need_lib_prefix=no 11718 need_version=no 11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11720 soname_spec='$libname$release$shared_ext$major' 11721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11722 shlibpath_var=LD_LIBRARY_PATH 11723 shlibpath_overrides_runpath=no 11724 11725 # Some binutils ld are patched to set DT_RUNPATH 11726 if test ${lt_cv_shlibpath_overrides_runpath+y} 11727then : 11728 printf %s "(cached) " >&6 11729else $as_nop 11730 lt_cv_shlibpath_overrides_runpath=no 11731 save_LDFLAGS=$LDFLAGS 11732 save_libdir=$libdir 11733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11736/* end confdefs.h. */ 11737 11738int 11739main (void) 11740{ 11741 11742 ; 11743 return 0; 11744} 11745_ACEOF 11746if ac_fn_c_try_link "$LINENO" 11747then : 11748 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11749then : 11750 lt_cv_shlibpath_overrides_runpath=yes 11751fi 11752fi 11753rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11754 conftest$ac_exeext conftest.$ac_ext 11755 LDFLAGS=$save_LDFLAGS 11756 libdir=$save_libdir 11757 11758fi 11759 11760 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11761 11762 # This implies no fast_install, which is unacceptable. 11763 # Some rework will be needed to allow for fast_install 11764 # before this can be enabled. 11765 hardcode_into_libs=yes 11766 11767 # Ideally, we could use ldconfig to report *all* directores which are 11768 # searched for libraries, however this is still not possible. Aside from not 11769 # being certain /sbin/ldconfig is available, command 11770 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11771 # even though it is searched at run-time. Try to do the best guess by 11772 # appending ld.so.conf contents (and includes) to the search path. 11773 if test -f /etc/ld.so.conf; then 11774 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' ' '` 11775 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11776 fi 11777 11778 # We used to test for /lib/ld.so.1 and disable shared libraries on 11779 # powerpc, because MkLinux only supported shared libraries with the 11780 # GNU dynamic linker. Since this was broken with cross compilers, 11781 # most powerpc-linux boxes support dynamic linking these days and 11782 # people can always --disable-shared, the test was removed, and we 11783 # assume the GNU/Linux dynamic linker is in use. 11784 dynamic_linker='GNU/Linux ld.so' 11785 ;; 11786 11787netbsd*) 11788 version_type=sunos 11789 need_lib_prefix=no 11790 need_version=no 11791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11794 dynamic_linker='NetBSD (a.out) ld.so' 11795 else 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11797 soname_spec='$libname$release$shared_ext$major' 11798 dynamic_linker='NetBSD ld.elf_so' 11799 fi 11800 shlibpath_var=LD_LIBRARY_PATH 11801 shlibpath_overrides_runpath=yes 11802 hardcode_into_libs=yes 11803 ;; 11804 11805newsos6) 11806 version_type=linux # correct to gnu/linux during the next big refactor 11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11808 shlibpath_var=LD_LIBRARY_PATH 11809 shlibpath_overrides_runpath=yes 11810 ;; 11811 11812*nto* | *qnx*) 11813 version_type=qnx 11814 need_lib_prefix=no 11815 need_version=no 11816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11817 soname_spec='$libname$release$shared_ext$major' 11818 shlibpath_var=LD_LIBRARY_PATH 11819 shlibpath_overrides_runpath=no 11820 hardcode_into_libs=yes 11821 dynamic_linker='ldqnx.so' 11822 ;; 11823 11824openbsd* | bitrig*) 11825 version_type=sunos 11826 sys_lib_dlsearch_path_spec=/usr/lib 11827 need_lib_prefix=no 11828 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11829 need_version=no 11830 else 11831 need_version=yes 11832 fi 11833 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11835 shlibpath_var=LD_LIBRARY_PATH 11836 shlibpath_overrides_runpath=yes 11837 ;; 11838 11839os2*) 11840 libname_spec='$name' 11841 version_type=windows 11842 shrext_cmds=.dll 11843 need_version=no 11844 need_lib_prefix=no 11845 # OS/2 can only load a DLL with a base name of 8 characters or less. 11846 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11847 v=$($ECHO $release$versuffix | tr -d .-); 11848 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11849 $ECHO $n$v`$shared_ext' 11850 library_names_spec='${libname}_dll.$libext' 11851 dynamic_linker='OS/2 ld.exe' 11852 shlibpath_var=BEGINLIBPATH 11853 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11855 postinstall_cmds='base_file=`basename \$file`~ 11856 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11857 dldir=$destdir/`dirname \$dlpath`~ 11858 test -d \$dldir || mkdir -p \$dldir~ 11859 $install_prog $dir/$dlname \$dldir/$dlname~ 11860 chmod a+x \$dldir/$dlname~ 11861 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11862 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11863 fi' 11864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11865 dlpath=$dir/\$dldll~ 11866 $RM \$dlpath' 11867 ;; 11868 11869osf3* | osf4* | osf5*) 11870 version_type=osf 11871 need_lib_prefix=no 11872 need_version=no 11873 soname_spec='$libname$release$shared_ext$major' 11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11875 shlibpath_var=LD_LIBRARY_PATH 11876 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11877 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11878 ;; 11879 11880rdos*) 11881 dynamic_linker=no 11882 ;; 11883 11884solaris*) 11885 version_type=linux # correct to gnu/linux during the next big refactor 11886 need_lib_prefix=no 11887 need_version=no 11888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11889 soname_spec='$libname$release$shared_ext$major' 11890 shlibpath_var=LD_LIBRARY_PATH 11891 shlibpath_overrides_runpath=yes 11892 hardcode_into_libs=yes 11893 # ldd complains unless libraries are executable 11894 postinstall_cmds='chmod +x $lib' 11895 ;; 11896 11897sunos4*) 11898 version_type=sunos 11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11900 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11901 shlibpath_var=LD_LIBRARY_PATH 11902 shlibpath_overrides_runpath=yes 11903 if test yes = "$with_gnu_ld"; then 11904 need_lib_prefix=no 11905 fi 11906 need_version=yes 11907 ;; 11908 11909sysv4 | sysv4.3*) 11910 version_type=linux # correct to gnu/linux during the next big refactor 11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11912 soname_spec='$libname$release$shared_ext$major' 11913 shlibpath_var=LD_LIBRARY_PATH 11914 case $host_vendor in 11915 sni) 11916 shlibpath_overrides_runpath=no 11917 need_lib_prefix=no 11918 runpath_var=LD_RUN_PATH 11919 ;; 11920 siemens) 11921 need_lib_prefix=no 11922 ;; 11923 motorola) 11924 need_lib_prefix=no 11925 need_version=no 11926 shlibpath_overrides_runpath=no 11927 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11928 ;; 11929 esac 11930 ;; 11931 11932sysv4*MP*) 11933 if test -d /usr/nec; then 11934 version_type=linux # correct to gnu/linux during the next big refactor 11935 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11936 soname_spec='$libname$shared_ext.$major' 11937 shlibpath_var=LD_LIBRARY_PATH 11938 fi 11939 ;; 11940 11941sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11942 version_type=sco 11943 need_lib_prefix=no 11944 need_version=no 11945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11946 soname_spec='$libname$release$shared_ext$major' 11947 shlibpath_var=LD_LIBRARY_PATH 11948 shlibpath_overrides_runpath=yes 11949 hardcode_into_libs=yes 11950 if test yes = "$with_gnu_ld"; then 11951 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11952 else 11953 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11954 case $host_os in 11955 sco3.2v5*) 11956 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11957 ;; 11958 esac 11959 fi 11960 sys_lib_dlsearch_path_spec='/usr/lib' 11961 ;; 11962 11963tpf*) 11964 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11965 version_type=linux # correct to gnu/linux during the next big refactor 11966 need_lib_prefix=no 11967 need_version=no 11968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11969 shlibpath_var=LD_LIBRARY_PATH 11970 shlibpath_overrides_runpath=no 11971 hardcode_into_libs=yes 11972 ;; 11973 11974uts4*) 11975 version_type=linux # correct to gnu/linux during the next big refactor 11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11977 soname_spec='$libname$release$shared_ext$major' 11978 shlibpath_var=LD_LIBRARY_PATH 11979 ;; 11980 11981*) 11982 dynamic_linker=no 11983 ;; 11984esac 11985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11986printf "%s\n" "$dynamic_linker" >&6; } 11987test no = "$dynamic_linker" && can_build_shared=no 11988 11989variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11990if test yes = "$GCC"; then 11991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11992fi 11993 11994if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11995 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11996fi 11997 11998if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11999 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12000fi 12001 12002# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12003configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12004 12005# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12006func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12007 12008# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12009configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12108printf %s "checking how to hardcode library paths into programs... " >&6; } 12109hardcode_action= 12110if test -n "$hardcode_libdir_flag_spec" || 12111 test -n "$runpath_var" || 12112 test yes = "$hardcode_automatic"; then 12113 12114 # We can hardcode non-existent directories. 12115 if test no != "$hardcode_direct" && 12116 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12117 # have to relink, otherwise we might link with an installed library 12118 # when we should be linking with a yet-to-be-installed one 12119 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12120 test no != "$hardcode_minus_L"; then 12121 # Linking always hardcodes the temporary library directory. 12122 hardcode_action=relink 12123 else 12124 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12125 hardcode_action=immediate 12126 fi 12127else 12128 # We cannot hardcode anything, or else we can only hardcode existing 12129 # directories. 12130 hardcode_action=unsupported 12131fi 12132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12133printf "%s\n" "$hardcode_action" >&6; } 12134 12135if test relink = "$hardcode_action" || 12136 test yes = "$inherit_rpath"; then 12137 # Fast installation is not supported 12138 enable_fast_install=no 12139elif test yes = "$shlibpath_overrides_runpath" || 12140 test no = "$enable_shared"; then 12141 # Fast installation is not necessary 12142 enable_fast_install=needless 12143fi 12144 12145 12146 12147 12148 12149 12150 if test yes != "$enable_dlopen"; then 12151 enable_dlopen=unknown 12152 enable_dlopen_self=unknown 12153 enable_dlopen_self_static=unknown 12154else 12155 lt_cv_dlopen=no 12156 lt_cv_dlopen_libs= 12157 12158 case $host_os in 12159 beos*) 12160 lt_cv_dlopen=load_add_on 12161 lt_cv_dlopen_libs= 12162 lt_cv_dlopen_self=yes 12163 ;; 12164 12165 mingw* | pw32* | cegcc*) 12166 lt_cv_dlopen=LoadLibrary 12167 lt_cv_dlopen_libs= 12168 ;; 12169 12170 cygwin*) 12171 lt_cv_dlopen=dlopen 12172 lt_cv_dlopen_libs= 12173 ;; 12174 12175 darwin*) 12176 # if libdl is installed we need to link against it 12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12178printf %s "checking for dlopen in -ldl... " >&6; } 12179if test ${ac_cv_lib_dl_dlopen+y} 12180then : 12181 printf %s "(cached) " >&6 12182else $as_nop 12183 ac_check_lib_save_LIBS=$LIBS 12184LIBS="-ldl $LIBS" 12185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12186/* end confdefs.h. */ 12187 12188/* Override any GCC internal prototype to avoid an error. 12189 Use char because int might match the return type of a GCC 12190 builtin and then its argument prototype would still apply. */ 12191char dlopen (); 12192int 12193main (void) 12194{ 12195return dlopen (); 12196 ; 12197 return 0; 12198} 12199_ACEOF 12200if ac_fn_c_try_link "$LINENO" 12201then : 12202 ac_cv_lib_dl_dlopen=yes 12203else $as_nop 12204 ac_cv_lib_dl_dlopen=no 12205fi 12206rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12207 conftest$ac_exeext conftest.$ac_ext 12208LIBS=$ac_check_lib_save_LIBS 12209fi 12210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12211printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12212if test "x$ac_cv_lib_dl_dlopen" = xyes 12213then : 12214 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12215else $as_nop 12216 12217 lt_cv_dlopen=dyld 12218 lt_cv_dlopen_libs= 12219 lt_cv_dlopen_self=yes 12220 12221fi 12222 12223 ;; 12224 12225 tpf*) 12226 # Don't try to run any link tests for TPF. We know it's impossible 12227 # because TPF is a cross-compiler, and we know how we open DSOs. 12228 lt_cv_dlopen=dlopen 12229 lt_cv_dlopen_libs= 12230 lt_cv_dlopen_self=no 12231 ;; 12232 12233 *) 12234 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12235if test "x$ac_cv_func_shl_load" = xyes 12236then : 12237 lt_cv_dlopen=shl_load 12238else $as_nop 12239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12240printf %s "checking for shl_load in -ldld... " >&6; } 12241if test ${ac_cv_lib_dld_shl_load+y} 12242then : 12243 printf %s "(cached) " >&6 12244else $as_nop 12245 ac_check_lib_save_LIBS=$LIBS 12246LIBS="-ldld $LIBS" 12247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12248/* end confdefs.h. */ 12249 12250/* Override any GCC internal prototype to avoid an error. 12251 Use char because int might match the return type of a GCC 12252 builtin and then its argument prototype would still apply. */ 12253char shl_load (); 12254int 12255main (void) 12256{ 12257return shl_load (); 12258 ; 12259 return 0; 12260} 12261_ACEOF 12262if ac_fn_c_try_link "$LINENO" 12263then : 12264 ac_cv_lib_dld_shl_load=yes 12265else $as_nop 12266 ac_cv_lib_dld_shl_load=no 12267fi 12268rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12269 conftest$ac_exeext conftest.$ac_ext 12270LIBS=$ac_check_lib_save_LIBS 12271fi 12272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12273printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12274if test "x$ac_cv_lib_dld_shl_load" = xyes 12275then : 12276 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12277else $as_nop 12278 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12279if test "x$ac_cv_func_dlopen" = xyes 12280then : 12281 lt_cv_dlopen=dlopen 12282else $as_nop 12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12284printf %s "checking for dlopen in -ldl... " >&6; } 12285if test ${ac_cv_lib_dl_dlopen+y} 12286then : 12287 printf %s "(cached) " >&6 12288else $as_nop 12289 ac_check_lib_save_LIBS=$LIBS 12290LIBS="-ldl $LIBS" 12291cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12292/* end confdefs.h. */ 12293 12294/* Override any GCC internal prototype to avoid an error. 12295 Use char because int might match the return type of a GCC 12296 builtin and then its argument prototype would still apply. */ 12297char dlopen (); 12298int 12299main (void) 12300{ 12301return dlopen (); 12302 ; 12303 return 0; 12304} 12305_ACEOF 12306if ac_fn_c_try_link "$LINENO" 12307then : 12308 ac_cv_lib_dl_dlopen=yes 12309else $as_nop 12310 ac_cv_lib_dl_dlopen=no 12311fi 12312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12313 conftest$ac_exeext conftest.$ac_ext 12314LIBS=$ac_check_lib_save_LIBS 12315fi 12316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12317printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12318if test "x$ac_cv_lib_dl_dlopen" = xyes 12319then : 12320 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12321else $as_nop 12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12323printf %s "checking for dlopen in -lsvld... " >&6; } 12324if test ${ac_cv_lib_svld_dlopen+y} 12325then : 12326 printf %s "(cached) " >&6 12327else $as_nop 12328 ac_check_lib_save_LIBS=$LIBS 12329LIBS="-lsvld $LIBS" 12330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12331/* end confdefs.h. */ 12332 12333/* Override any GCC internal prototype to avoid an error. 12334 Use char because int might match the return type of a GCC 12335 builtin and then its argument prototype would still apply. */ 12336char dlopen (); 12337int 12338main (void) 12339{ 12340return dlopen (); 12341 ; 12342 return 0; 12343} 12344_ACEOF 12345if ac_fn_c_try_link "$LINENO" 12346then : 12347 ac_cv_lib_svld_dlopen=yes 12348else $as_nop 12349 ac_cv_lib_svld_dlopen=no 12350fi 12351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12352 conftest$ac_exeext conftest.$ac_ext 12353LIBS=$ac_check_lib_save_LIBS 12354fi 12355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12356printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12357if test "x$ac_cv_lib_svld_dlopen" = xyes 12358then : 12359 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12360else $as_nop 12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12362printf %s "checking for dld_link in -ldld... " >&6; } 12363if test ${ac_cv_lib_dld_dld_link+y} 12364then : 12365 printf %s "(cached) " >&6 12366else $as_nop 12367 ac_check_lib_save_LIBS=$LIBS 12368LIBS="-ldld $LIBS" 12369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12370/* end confdefs.h. */ 12371 12372/* Override any GCC internal prototype to avoid an error. 12373 Use char because int might match the return type of a GCC 12374 builtin and then its argument prototype would still apply. */ 12375char dld_link (); 12376int 12377main (void) 12378{ 12379return dld_link (); 12380 ; 12381 return 0; 12382} 12383_ACEOF 12384if ac_fn_c_try_link "$LINENO" 12385then : 12386 ac_cv_lib_dld_dld_link=yes 12387else $as_nop 12388 ac_cv_lib_dld_dld_link=no 12389fi 12390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12391 conftest$ac_exeext conftest.$ac_ext 12392LIBS=$ac_check_lib_save_LIBS 12393fi 12394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12395printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12396if test "x$ac_cv_lib_dld_dld_link" = xyes 12397then : 12398 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12399fi 12400 12401 12402fi 12403 12404 12405fi 12406 12407 12408fi 12409 12410 12411fi 12412 12413 12414fi 12415 12416 ;; 12417 esac 12418 12419 if test no = "$lt_cv_dlopen"; then 12420 enable_dlopen=no 12421 else 12422 enable_dlopen=yes 12423 fi 12424 12425 case $lt_cv_dlopen in 12426 dlopen) 12427 save_CPPFLAGS=$CPPFLAGS 12428 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12429 12430 save_LDFLAGS=$LDFLAGS 12431 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12432 12433 save_LIBS=$LIBS 12434 LIBS="$lt_cv_dlopen_libs $LIBS" 12435 12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12437printf %s "checking whether a program can dlopen itself... " >&6; } 12438if test ${lt_cv_dlopen_self+y} 12439then : 12440 printf %s "(cached) " >&6 12441else $as_nop 12442 if test yes = "$cross_compiling"; then : 12443 lt_cv_dlopen_self=cross 12444else 12445 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12446 lt_status=$lt_dlunknown 12447 cat > conftest.$ac_ext <<_LT_EOF 12448#line $LINENO "configure" 12449#include "confdefs.h" 12450 12451#if HAVE_DLFCN_H 12452#include <dlfcn.h> 12453#endif 12454 12455#include <stdio.h> 12456 12457#ifdef RTLD_GLOBAL 12458# define LT_DLGLOBAL RTLD_GLOBAL 12459#else 12460# ifdef DL_GLOBAL 12461# define LT_DLGLOBAL DL_GLOBAL 12462# else 12463# define LT_DLGLOBAL 0 12464# endif 12465#endif 12466 12467/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12468 find out it does not work in some platform. */ 12469#ifndef LT_DLLAZY_OR_NOW 12470# ifdef RTLD_LAZY 12471# define LT_DLLAZY_OR_NOW RTLD_LAZY 12472# else 12473# ifdef DL_LAZY 12474# define LT_DLLAZY_OR_NOW DL_LAZY 12475# else 12476# ifdef RTLD_NOW 12477# define LT_DLLAZY_OR_NOW RTLD_NOW 12478# else 12479# ifdef DL_NOW 12480# define LT_DLLAZY_OR_NOW DL_NOW 12481# else 12482# define LT_DLLAZY_OR_NOW 0 12483# endif 12484# endif 12485# endif 12486# endif 12487#endif 12488 12489/* When -fvisibility=hidden is used, assume the code has been annotated 12490 correspondingly for the symbols needed. */ 12491#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12492int fnord () __attribute__((visibility("default"))); 12493#endif 12494 12495int fnord () { return 42; } 12496int main () 12497{ 12498 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12499 int status = $lt_dlunknown; 12500 12501 if (self) 12502 { 12503 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12504 else 12505 { 12506 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12507 else puts (dlerror ()); 12508 } 12509 /* dlclose (self); */ 12510 } 12511 else 12512 puts (dlerror ()); 12513 12514 return status; 12515} 12516_LT_EOF 12517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12518 (eval $ac_link) 2>&5 12519 ac_status=$? 12520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12521 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12522 (./conftest; exit; ) >&5 2>/dev/null 12523 lt_status=$? 12524 case x$lt_status in 12525 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12526 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12527 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12528 esac 12529 else : 12530 # compilation failed 12531 lt_cv_dlopen_self=no 12532 fi 12533fi 12534rm -fr conftest* 12535 12536 12537fi 12538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12539printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12540 12541 if test yes = "$lt_cv_dlopen_self"; then 12542 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12544printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12545if test ${lt_cv_dlopen_self_static+y} 12546then : 12547 printf %s "(cached) " >&6 12548else $as_nop 12549 if test yes = "$cross_compiling"; then : 12550 lt_cv_dlopen_self_static=cross 12551else 12552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12553 lt_status=$lt_dlunknown 12554 cat > conftest.$ac_ext <<_LT_EOF 12555#line $LINENO "configure" 12556#include "confdefs.h" 12557 12558#if HAVE_DLFCN_H 12559#include <dlfcn.h> 12560#endif 12561 12562#include <stdio.h> 12563 12564#ifdef RTLD_GLOBAL 12565# define LT_DLGLOBAL RTLD_GLOBAL 12566#else 12567# ifdef DL_GLOBAL 12568# define LT_DLGLOBAL DL_GLOBAL 12569# else 12570# define LT_DLGLOBAL 0 12571# endif 12572#endif 12573 12574/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12575 find out it does not work in some platform. */ 12576#ifndef LT_DLLAZY_OR_NOW 12577# ifdef RTLD_LAZY 12578# define LT_DLLAZY_OR_NOW RTLD_LAZY 12579# else 12580# ifdef DL_LAZY 12581# define LT_DLLAZY_OR_NOW DL_LAZY 12582# else 12583# ifdef RTLD_NOW 12584# define LT_DLLAZY_OR_NOW RTLD_NOW 12585# else 12586# ifdef DL_NOW 12587# define LT_DLLAZY_OR_NOW DL_NOW 12588# else 12589# define LT_DLLAZY_OR_NOW 0 12590# endif 12591# endif 12592# endif 12593# endif 12594#endif 12595 12596/* When -fvisibility=hidden is used, assume the code has been annotated 12597 correspondingly for the symbols needed. */ 12598#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12599int fnord () __attribute__((visibility("default"))); 12600#endif 12601 12602int fnord () { return 42; } 12603int main () 12604{ 12605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12606 int status = $lt_dlunknown; 12607 12608 if (self) 12609 { 12610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12611 else 12612 { 12613 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12614 else puts (dlerror ()); 12615 } 12616 /* dlclose (self); */ 12617 } 12618 else 12619 puts (dlerror ()); 12620 12621 return status; 12622} 12623_LT_EOF 12624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12625 (eval $ac_link) 2>&5 12626 ac_status=$? 12627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12628 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12629 (./conftest; exit; ) >&5 2>/dev/null 12630 lt_status=$? 12631 case x$lt_status in 12632 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12633 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12634 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12635 esac 12636 else : 12637 # compilation failed 12638 lt_cv_dlopen_self_static=no 12639 fi 12640fi 12641rm -fr conftest* 12642 12643 12644fi 12645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12646printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12647 fi 12648 12649 CPPFLAGS=$save_CPPFLAGS 12650 LDFLAGS=$save_LDFLAGS 12651 LIBS=$save_LIBS 12652 ;; 12653 esac 12654 12655 case $lt_cv_dlopen_self in 12656 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12657 *) enable_dlopen_self=unknown ;; 12658 esac 12659 12660 case $lt_cv_dlopen_self_static in 12661 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12662 *) enable_dlopen_self_static=unknown ;; 12663 esac 12664fi 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682striplib= 12683old_striplib= 12684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12685printf %s "checking whether stripping libraries is possible... " >&6; } 12686if test -z "$STRIP"; then 12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12688printf "%s\n" "no" >&6; } 12689else 12690 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12691 old_striplib="$STRIP --strip-debug" 12692 striplib="$STRIP --strip-unneeded" 12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12694printf "%s\n" "yes" >&6; } 12695 else 12696 case $host_os in 12697 darwin*) 12698 # FIXME - insert some real tests, host_os isn't really good enough 12699 striplib="$STRIP -x" 12700 old_striplib="$STRIP -S" 12701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12702printf "%s\n" "yes" >&6; } 12703 ;; 12704 freebsd*) 12705 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12706 old_striplib="$STRIP --strip-debug" 12707 striplib="$STRIP --strip-unneeded" 12708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12709printf "%s\n" "yes" >&6; } 12710 else 12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12712printf "%s\n" "no" >&6; } 12713 fi 12714 ;; 12715 *) 12716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12717printf "%s\n" "no" >&6; } 12718 ;; 12719 esac 12720 fi 12721fi 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 # Report what library types will actually be built 12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12736printf %s "checking if libtool supports shared libraries... " >&6; } 12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12738printf "%s\n" "$can_build_shared" >&6; } 12739 12740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12741printf %s "checking whether to build shared libraries... " >&6; } 12742 test no = "$can_build_shared" && enable_shared=no 12743 12744 # On AIX, shared libraries and static libraries use the same namespace, and 12745 # are all built from PIC. 12746 case $host_os in 12747 aix3*) 12748 test yes = "$enable_shared" && enable_static=no 12749 if test -n "$RANLIB"; then 12750 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12751 postinstall_cmds='$RANLIB $lib' 12752 fi 12753 ;; 12754 12755 aix[4-9]*) 12756 if test ia64 != "$host_cpu"; then 12757 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12758 yes,aix,yes) ;; # shared object as lib.so file only 12759 yes,svr4,*) ;; # shared object as lib.so archive member only 12760 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12761 esac 12762 fi 12763 ;; 12764 esac 12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12766printf "%s\n" "$enable_shared" >&6; } 12767 12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12769printf %s "checking whether to build static libraries... " >&6; } 12770 # Make sure either enable_shared or enable_static is yes. 12771 test yes = "$enable_shared" || enable_static=yes 12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12773printf "%s\n" "$enable_static" >&6; } 12774 12775 12776 12777 12778fi 12779ac_ext=c 12780ac_cpp='$CPP $CPPFLAGS' 12781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12783ac_compiler_gnu=$ac_cv_c_compiler_gnu 12784 12785CC=$lt_save_CC 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 ac_config_commands="$ac_config_commands libtool" 12802 12803 12804 12805 12806# Only expand once: 12807 12808 12809 12810# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12824printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12825if test ${ac_cv_c_undeclared_builtin_options+y} 12826then : 12827 printf %s "(cached) " >&6 12828else $as_nop 12829 ac_save_CFLAGS=$CFLAGS 12830 ac_cv_c_undeclared_builtin_options='cannot detect' 12831 for ac_arg in '' -fno-builtin; do 12832 CFLAGS="$ac_save_CFLAGS $ac_arg" 12833 # This test program should *not* compile successfully. 12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12835/* end confdefs.h. */ 12836 12837int 12838main (void) 12839{ 12840(void) strchr; 12841 ; 12842 return 0; 12843} 12844_ACEOF 12845if ac_fn_c_try_compile "$LINENO" 12846then : 12847 12848else $as_nop 12849 # This test program should compile successfully. 12850 # No library function is consistently available on 12851 # freestanding implementations, so test against a dummy 12852 # declaration. Include always-available headers on the 12853 # off chance that they somehow elicit warnings. 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856#include <float.h> 12857#include <limits.h> 12858#include <stdarg.h> 12859#include <stddef.h> 12860extern void ac_decl (int, char *); 12861 12862int 12863main (void) 12864{ 12865(void) ac_decl (0, (char *) 0); 12866 (void) ac_decl; 12867 12868 ; 12869 return 0; 12870} 12871_ACEOF 12872if ac_fn_c_try_compile "$LINENO" 12873then : 12874 if test x"$ac_arg" = x 12875then : 12876 ac_cv_c_undeclared_builtin_options='none needed' 12877else $as_nop 12878 ac_cv_c_undeclared_builtin_options=$ac_arg 12879fi 12880 break 12881fi 12882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12883fi 12884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12885 done 12886 CFLAGS=$ac_save_CFLAGS 12887 12888fi 12889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12890printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12891 case $ac_cv_c_undeclared_builtin_options in #( 12892 'cannot detect') : 12893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12894printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12895as_fn_error $? "cannot make $CC report undeclared builtins 12896See \`config.log' for more details" "$LINENO" 5; } ;; #( 12897 'none needed') : 12898 ac_c_undeclared_builtin_options='' ;; #( 12899 *) : 12900 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12901esac 12902 12903 12904 12905 12906 12907ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12908if test "x$ac_cv_have_decl___clang__" = xyes 12909then : 12910 CLANGCC="yes" 12911else $as_nop 12912 CLANGCC="no" 12913fi 12914ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12915if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12916then : 12917 INTELCC="yes" 12918else $as_nop 12919 INTELCC="no" 12920fi 12921ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12922if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12923then : 12924 SUNCC="yes" 12925else $as_nop 12926 SUNCC="no" 12927fi 12928 12929 12930 12931 12932 12933 12934 12935 12936if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12937 if test -n "$ac_tool_prefix"; then 12938 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12939set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12941printf %s "checking for $ac_word... " >&6; } 12942if test ${ac_cv_path_PKG_CONFIG+y} 12943then : 12944 printf %s "(cached) " >&6 12945else $as_nop 12946 case $PKG_CONFIG in 12947 [\\/]* | ?:[\\/]*) 12948 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12949 ;; 12950 *) 12951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12952for as_dir in $PATH 12953do 12954 IFS=$as_save_IFS 12955 case $as_dir in #((( 12956 '') as_dir=./ ;; 12957 */) ;; 12958 *) as_dir=$as_dir/ ;; 12959 esac 12960 for ac_exec_ext in '' $ac_executable_extensions; do 12961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12962 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12964 break 2 12965 fi 12966done 12967 done 12968IFS=$as_save_IFS 12969 12970 ;; 12971esac 12972fi 12973PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12974if test -n "$PKG_CONFIG"; then 12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12976printf "%s\n" "$PKG_CONFIG" >&6; } 12977else 12978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12979printf "%s\n" "no" >&6; } 12980fi 12981 12982 12983fi 12984if test -z "$ac_cv_path_PKG_CONFIG"; then 12985 ac_pt_PKG_CONFIG=$PKG_CONFIG 12986 # Extract the first word of "pkg-config", so it can be a program name with args. 12987set dummy pkg-config; ac_word=$2 12988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12989printf %s "checking for $ac_word... " >&6; } 12990if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12991then : 12992 printf %s "(cached) " >&6 12993else $as_nop 12994 case $ac_pt_PKG_CONFIG in 12995 [\\/]* | ?:[\\/]*) 12996 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12997 ;; 12998 *) 12999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13000for as_dir in $PATH 13001do 13002 IFS=$as_save_IFS 13003 case $as_dir in #((( 13004 '') as_dir=./ ;; 13005 */) ;; 13006 *) as_dir=$as_dir/ ;; 13007 esac 13008 for ac_exec_ext in '' $ac_executable_extensions; do 13009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13010 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13012 break 2 13013 fi 13014done 13015 done 13016IFS=$as_save_IFS 13017 13018 ;; 13019esac 13020fi 13021ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13022if test -n "$ac_pt_PKG_CONFIG"; then 13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13024printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13025else 13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13027printf "%s\n" "no" >&6; } 13028fi 13029 13030 if test "x$ac_pt_PKG_CONFIG" = x; then 13031 PKG_CONFIG="" 13032 else 13033 case $cross_compiling:$ac_tool_warned in 13034yes:) 13035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13036printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13037ac_tool_warned=yes ;; 13038esac 13039 PKG_CONFIG=$ac_pt_PKG_CONFIG 13040 fi 13041else 13042 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13043fi 13044 13045fi 13046if test -n "$PKG_CONFIG"; then 13047 _pkg_min_version=0.9.0 13048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13049printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13050 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13052printf "%s\n" "yes" >&6; } 13053 else 13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13055printf "%s\n" "no" >&6; } 13056 PKG_CONFIG="" 13057 fi 13058fi 13059 13060 13061 13062 13063 13064# Check whether --enable-selective-werror was given. 13065if test ${enable_selective_werror+y} 13066then : 13067 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13068else $as_nop 13069 SELECTIVE_WERROR=yes 13070fi 13071 13072 13073 13074 13075 13076# -v is too short to test reliably with XORG_TESTSET_CFLAG 13077if test "x$SUNCC" = "xyes"; then 13078 BASE_CFLAGS="-v" 13079else 13080 BASE_CFLAGS="" 13081fi 13082 13083# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097xorg_testset_save_CFLAGS="$CFLAGS" 13098 13099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13103if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13104then : 13105 printf %s "(cached) " >&6 13106else $as_nop 13107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13108/* end confdefs.h. */ 13109int i; 13110_ACEOF 13111if ac_fn_c_try_compile "$LINENO" 13112then : 13113 xorg_cv_cc_flag_unknown_warning_option=yes 13114else $as_nop 13115 xorg_cv_cc_flag_unknown_warning_option=no 13116fi 13117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13118fi 13119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13120printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13122 CFLAGS="$xorg_testset_save_CFLAGS" 13123fi 13124 13125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13128 fi 13129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13131printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13132if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13133then : 13134 printf %s "(cached) " >&6 13135else $as_nop 13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13137/* end confdefs.h. */ 13138int i; 13139_ACEOF 13140if ac_fn_c_try_compile "$LINENO" 13141then : 13142 xorg_cv_cc_flag_unused_command_line_argument=yes 13143else $as_nop 13144 xorg_cv_cc_flag_unused_command_line_argument=no 13145fi 13146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13147fi 13148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13149printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13151 CFLAGS="$xorg_testset_save_CFLAGS" 13152fi 13153 13154found="no" 13155 13156 if test $found = "no" ; then 13157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13159 fi 13160 13161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13163 fi 13164 13165 CFLAGS="$CFLAGS -Wall" 13166 13167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13168printf %s "checking if $CC supports -Wall... " >&6; } 13169 cacheid=xorg_cv_cc_flag__Wall 13170 if eval test \${$cacheid+y} 13171then : 13172 printf %s "(cached) " >&6 13173else $as_nop 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176int i; 13177int 13178main (void) 13179{ 13180 13181 ; 13182 return 0; 13183} 13184_ACEOF 13185if ac_fn_c_try_link "$LINENO" 13186then : 13187 eval $cacheid=yes 13188else $as_nop 13189 eval $cacheid=no 13190fi 13191rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13192 conftest$ac_exeext conftest.$ac_ext 13193fi 13194 13195 13196 CFLAGS="$xorg_testset_save_CFLAGS" 13197 13198 eval supported=\$$cacheid 13199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13200printf "%s\n" "$supported" >&6; } 13201 if test "$supported" = "yes" ; then 13202 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13203 found="yes" 13204 fi 13205 fi 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221xorg_testset_save_CFLAGS="$CFLAGS" 13222 13223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13226printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13227if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13228then : 13229 printf %s "(cached) " >&6 13230else $as_nop 13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13232/* end confdefs.h. */ 13233int i; 13234_ACEOF 13235if ac_fn_c_try_compile "$LINENO" 13236then : 13237 xorg_cv_cc_flag_unknown_warning_option=yes 13238else $as_nop 13239 xorg_cv_cc_flag_unknown_warning_option=no 13240fi 13241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13242fi 13243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13244printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13245 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13246 CFLAGS="$xorg_testset_save_CFLAGS" 13247fi 13248 13249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13251 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13252 fi 13253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13255printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13256if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13257then : 13258 printf %s "(cached) " >&6 13259else $as_nop 13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13261/* end confdefs.h. */ 13262int i; 13263_ACEOF 13264if ac_fn_c_try_compile "$LINENO" 13265then : 13266 xorg_cv_cc_flag_unused_command_line_argument=yes 13267else $as_nop 13268 xorg_cv_cc_flag_unused_command_line_argument=no 13269fi 13270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13271fi 13272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13273printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13274 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13275 CFLAGS="$xorg_testset_save_CFLAGS" 13276fi 13277 13278found="no" 13279 13280 if test $found = "no" ; then 13281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13283 fi 13284 13285 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13287 fi 13288 13289 CFLAGS="$CFLAGS -Wpointer-arith" 13290 13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13292printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13293 cacheid=xorg_cv_cc_flag__Wpointer_arith 13294 if eval test \${$cacheid+y} 13295then : 13296 printf %s "(cached) " >&6 13297else $as_nop 13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13299/* end confdefs.h. */ 13300int i; 13301int 13302main (void) 13303{ 13304 13305 ; 13306 return 0; 13307} 13308_ACEOF 13309if ac_fn_c_try_link "$LINENO" 13310then : 13311 eval $cacheid=yes 13312else $as_nop 13313 eval $cacheid=no 13314fi 13315rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13316 conftest$ac_exeext conftest.$ac_ext 13317fi 13318 13319 13320 CFLAGS="$xorg_testset_save_CFLAGS" 13321 13322 eval supported=\$$cacheid 13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13324printf "%s\n" "$supported" >&6; } 13325 if test "$supported" = "yes" ; then 13326 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13327 found="yes" 13328 fi 13329 fi 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345xorg_testset_save_CFLAGS="$CFLAGS" 13346 13347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13350printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13351if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13352then : 13353 printf %s "(cached) " >&6 13354else $as_nop 13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13356/* end confdefs.h. */ 13357int i; 13358_ACEOF 13359if ac_fn_c_try_compile "$LINENO" 13360then : 13361 xorg_cv_cc_flag_unknown_warning_option=yes 13362else $as_nop 13363 xorg_cv_cc_flag_unknown_warning_option=no 13364fi 13365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13366fi 13367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13368printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13370 CFLAGS="$xorg_testset_save_CFLAGS" 13371fi 13372 13373if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13376 fi 13377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13379printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13380if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13381then : 13382 printf %s "(cached) " >&6 13383else $as_nop 13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13385/* end confdefs.h. */ 13386int i; 13387_ACEOF 13388if ac_fn_c_try_compile "$LINENO" 13389then : 13390 xorg_cv_cc_flag_unused_command_line_argument=yes 13391else $as_nop 13392 xorg_cv_cc_flag_unused_command_line_argument=no 13393fi 13394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13395fi 13396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13397printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13399 CFLAGS="$xorg_testset_save_CFLAGS" 13400fi 13401 13402found="no" 13403 13404 if test $found = "no" ; then 13405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13407 fi 13408 13409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13411 fi 13412 13413 CFLAGS="$CFLAGS -Wmissing-declarations" 13414 13415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13416printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13417 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13418 if eval test \${$cacheid+y} 13419then : 13420 printf %s "(cached) " >&6 13421else $as_nop 13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13423/* end confdefs.h. */ 13424int i; 13425int 13426main (void) 13427{ 13428 13429 ; 13430 return 0; 13431} 13432_ACEOF 13433if ac_fn_c_try_link "$LINENO" 13434then : 13435 eval $cacheid=yes 13436else $as_nop 13437 eval $cacheid=no 13438fi 13439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13440 conftest$ac_exeext conftest.$ac_ext 13441fi 13442 13443 13444 CFLAGS="$xorg_testset_save_CFLAGS" 13445 13446 eval supported=\$$cacheid 13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13448printf "%s\n" "$supported" >&6; } 13449 if test "$supported" = "yes" ; then 13450 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13451 found="yes" 13452 fi 13453 fi 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469xorg_testset_save_CFLAGS="$CFLAGS" 13470 13471if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13474printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13475if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13476then : 13477 printf %s "(cached) " >&6 13478else $as_nop 13479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13480/* end confdefs.h. */ 13481int i; 13482_ACEOF 13483if ac_fn_c_try_compile "$LINENO" 13484then : 13485 xorg_cv_cc_flag_unknown_warning_option=yes 13486else $as_nop 13487 xorg_cv_cc_flag_unknown_warning_option=no 13488fi 13489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13490fi 13491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13494 CFLAGS="$xorg_testset_save_CFLAGS" 13495fi 13496 13497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13500 fi 13501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13504if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13505then : 13506 printf %s "(cached) " >&6 13507else $as_nop 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510int i; 13511_ACEOF 13512if ac_fn_c_try_compile "$LINENO" 13513then : 13514 xorg_cv_cc_flag_unused_command_line_argument=yes 13515else $as_nop 13516 xorg_cv_cc_flag_unused_command_line_argument=no 13517fi 13518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13519fi 13520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13521printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13523 CFLAGS="$xorg_testset_save_CFLAGS" 13524fi 13525 13526found="no" 13527 13528 if test $found = "no" ; then 13529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13531 fi 13532 13533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13535 fi 13536 13537 CFLAGS="$CFLAGS -Wformat=2" 13538 13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13540printf %s "checking if $CC supports -Wformat=2... " >&6; } 13541 cacheid=xorg_cv_cc_flag__Wformat_2 13542 if eval test \${$cacheid+y} 13543then : 13544 printf %s "(cached) " >&6 13545else $as_nop 13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13547/* end confdefs.h. */ 13548int i; 13549int 13550main (void) 13551{ 13552 13553 ; 13554 return 0; 13555} 13556_ACEOF 13557if ac_fn_c_try_link "$LINENO" 13558then : 13559 eval $cacheid=yes 13560else $as_nop 13561 eval $cacheid=no 13562fi 13563rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13564 conftest$ac_exeext conftest.$ac_ext 13565fi 13566 13567 13568 CFLAGS="$xorg_testset_save_CFLAGS" 13569 13570 eval supported=\$$cacheid 13571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13572printf "%s\n" "$supported" >&6; } 13573 if test "$supported" = "yes" ; then 13574 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13575 found="yes" 13576 fi 13577 fi 13578 13579 if test $found = "no" ; then 13580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13582 fi 13583 13584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13586 fi 13587 13588 CFLAGS="$CFLAGS -Wformat" 13589 13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13591printf %s "checking if $CC supports -Wformat... " >&6; } 13592 cacheid=xorg_cv_cc_flag__Wformat 13593 if eval test \${$cacheid+y} 13594then : 13595 printf %s "(cached) " >&6 13596else $as_nop 13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13598/* end confdefs.h. */ 13599int i; 13600int 13601main (void) 13602{ 13603 13604 ; 13605 return 0; 13606} 13607_ACEOF 13608if ac_fn_c_try_link "$LINENO" 13609then : 13610 eval $cacheid=yes 13611else $as_nop 13612 eval $cacheid=no 13613fi 13614rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13615 conftest$ac_exeext conftest.$ac_ext 13616fi 13617 13618 13619 CFLAGS="$xorg_testset_save_CFLAGS" 13620 13621 eval supported=\$$cacheid 13622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13623printf "%s\n" "$supported" >&6; } 13624 if test "$supported" = "yes" ; then 13625 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13626 found="yes" 13627 fi 13628 fi 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646xorg_testset_save_CFLAGS="$CFLAGS" 13647 13648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13652if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13653then : 13654 printf %s "(cached) " >&6 13655else $as_nop 13656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13657/* end confdefs.h. */ 13658int i; 13659_ACEOF 13660if ac_fn_c_try_compile "$LINENO" 13661then : 13662 xorg_cv_cc_flag_unknown_warning_option=yes 13663else $as_nop 13664 xorg_cv_cc_flag_unknown_warning_option=no 13665fi 13666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13667fi 13668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13669printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13671 CFLAGS="$xorg_testset_save_CFLAGS" 13672fi 13673 13674if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13677 fi 13678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13680printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13681if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13682then : 13683 printf %s "(cached) " >&6 13684else $as_nop 13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13686/* end confdefs.h. */ 13687int i; 13688_ACEOF 13689if ac_fn_c_try_compile "$LINENO" 13690then : 13691 xorg_cv_cc_flag_unused_command_line_argument=yes 13692else $as_nop 13693 xorg_cv_cc_flag_unused_command_line_argument=no 13694fi 13695rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13696fi 13697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13698printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13700 CFLAGS="$xorg_testset_save_CFLAGS" 13701fi 13702 13703found="no" 13704 13705 if test $found = "no" ; then 13706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13708 fi 13709 13710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13712 fi 13713 13714 CFLAGS="$CFLAGS -Wstrict-prototypes" 13715 13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13717printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13718 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13719 if eval test \${$cacheid+y} 13720then : 13721 printf %s "(cached) " >&6 13722else $as_nop 13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13724/* end confdefs.h. */ 13725int i; 13726int 13727main (void) 13728{ 13729 13730 ; 13731 return 0; 13732} 13733_ACEOF 13734if ac_fn_c_try_link "$LINENO" 13735then : 13736 eval $cacheid=yes 13737else $as_nop 13738 eval $cacheid=no 13739fi 13740rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13741 conftest$ac_exeext conftest.$ac_ext 13742fi 13743 13744 13745 CFLAGS="$xorg_testset_save_CFLAGS" 13746 13747 eval supported=\$$cacheid 13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13749printf "%s\n" "$supported" >&6; } 13750 if test "$supported" = "yes" ; then 13751 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13752 found="yes" 13753 fi 13754 fi 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770xorg_testset_save_CFLAGS="$CFLAGS" 13771 13772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13775printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13776if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13777then : 13778 printf %s "(cached) " >&6 13779else $as_nop 13780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13781/* end confdefs.h. */ 13782int i; 13783_ACEOF 13784if ac_fn_c_try_compile "$LINENO" 13785then : 13786 xorg_cv_cc_flag_unknown_warning_option=yes 13787else $as_nop 13788 xorg_cv_cc_flag_unknown_warning_option=no 13789fi 13790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13791fi 13792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13793printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13795 CFLAGS="$xorg_testset_save_CFLAGS" 13796fi 13797 13798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13801 fi 13802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13804printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13805if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13806then : 13807 printf %s "(cached) " >&6 13808else $as_nop 13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13810/* end confdefs.h. */ 13811int i; 13812_ACEOF 13813if ac_fn_c_try_compile "$LINENO" 13814then : 13815 xorg_cv_cc_flag_unused_command_line_argument=yes 13816else $as_nop 13817 xorg_cv_cc_flag_unused_command_line_argument=no 13818fi 13819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13820fi 13821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13824 CFLAGS="$xorg_testset_save_CFLAGS" 13825fi 13826 13827found="no" 13828 13829 if test $found = "no" ; then 13830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13832 fi 13833 13834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13836 fi 13837 13838 CFLAGS="$CFLAGS -Wmissing-prototypes" 13839 13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13841printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13842 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13843 if eval test \${$cacheid+y} 13844then : 13845 printf %s "(cached) " >&6 13846else $as_nop 13847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13848/* end confdefs.h. */ 13849int i; 13850int 13851main (void) 13852{ 13853 13854 ; 13855 return 0; 13856} 13857_ACEOF 13858if ac_fn_c_try_link "$LINENO" 13859then : 13860 eval $cacheid=yes 13861else $as_nop 13862 eval $cacheid=no 13863fi 13864rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13865 conftest$ac_exeext conftest.$ac_ext 13866fi 13867 13868 13869 CFLAGS="$xorg_testset_save_CFLAGS" 13870 13871 eval supported=\$$cacheid 13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13873printf "%s\n" "$supported" >&6; } 13874 if test "$supported" = "yes" ; then 13875 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13876 found="yes" 13877 fi 13878 fi 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894xorg_testset_save_CFLAGS="$CFLAGS" 13895 13896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13899printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13900if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13901then : 13902 printf %s "(cached) " >&6 13903else $as_nop 13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13905/* end confdefs.h. */ 13906int i; 13907_ACEOF 13908if ac_fn_c_try_compile "$LINENO" 13909then : 13910 xorg_cv_cc_flag_unknown_warning_option=yes 13911else $as_nop 13912 xorg_cv_cc_flag_unknown_warning_option=no 13913fi 13914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13915fi 13916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13917printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13919 CFLAGS="$xorg_testset_save_CFLAGS" 13920fi 13921 13922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13925 fi 13926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13928printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13929if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13930then : 13931 printf %s "(cached) " >&6 13932else $as_nop 13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13934/* end confdefs.h. */ 13935int i; 13936_ACEOF 13937if ac_fn_c_try_compile "$LINENO" 13938then : 13939 xorg_cv_cc_flag_unused_command_line_argument=yes 13940else $as_nop 13941 xorg_cv_cc_flag_unused_command_line_argument=no 13942fi 13943rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13944fi 13945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13946printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13948 CFLAGS="$xorg_testset_save_CFLAGS" 13949fi 13950 13951found="no" 13952 13953 if test $found = "no" ; then 13954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13956 fi 13957 13958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13960 fi 13961 13962 CFLAGS="$CFLAGS -Wnested-externs" 13963 13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13965printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13966 cacheid=xorg_cv_cc_flag__Wnested_externs 13967 if eval test \${$cacheid+y} 13968then : 13969 printf %s "(cached) " >&6 13970else $as_nop 13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13972/* end confdefs.h. */ 13973int i; 13974int 13975main (void) 13976{ 13977 13978 ; 13979 return 0; 13980} 13981_ACEOF 13982if ac_fn_c_try_link "$LINENO" 13983then : 13984 eval $cacheid=yes 13985else $as_nop 13986 eval $cacheid=no 13987fi 13988rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13989 conftest$ac_exeext conftest.$ac_ext 13990fi 13991 13992 13993 CFLAGS="$xorg_testset_save_CFLAGS" 13994 13995 eval supported=\$$cacheid 13996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13997printf "%s\n" "$supported" >&6; } 13998 if test "$supported" = "yes" ; then 13999 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14000 found="yes" 14001 fi 14002 fi 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018xorg_testset_save_CFLAGS="$CFLAGS" 14019 14020if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14023printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14024if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14025then : 14026 printf %s "(cached) " >&6 14027else $as_nop 14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14029/* end confdefs.h. */ 14030int i; 14031_ACEOF 14032if ac_fn_c_try_compile "$LINENO" 14033then : 14034 xorg_cv_cc_flag_unknown_warning_option=yes 14035else $as_nop 14036 xorg_cv_cc_flag_unknown_warning_option=no 14037fi 14038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14039fi 14040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14041printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14043 CFLAGS="$xorg_testset_save_CFLAGS" 14044fi 14045 14046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14049 fi 14050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14052printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14053if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14054then : 14055 printf %s "(cached) " >&6 14056else $as_nop 14057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14058/* end confdefs.h. */ 14059int i; 14060_ACEOF 14061if ac_fn_c_try_compile "$LINENO" 14062then : 14063 xorg_cv_cc_flag_unused_command_line_argument=yes 14064else $as_nop 14065 xorg_cv_cc_flag_unused_command_line_argument=no 14066fi 14067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14068fi 14069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14070printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14072 CFLAGS="$xorg_testset_save_CFLAGS" 14073fi 14074 14075found="no" 14076 14077 if test $found = "no" ; then 14078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14080 fi 14081 14082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14084 fi 14085 14086 CFLAGS="$CFLAGS -Wbad-function-cast" 14087 14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14089printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14090 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14091 if eval test \${$cacheid+y} 14092then : 14093 printf %s "(cached) " >&6 14094else $as_nop 14095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14096/* end confdefs.h. */ 14097int i; 14098int 14099main (void) 14100{ 14101 14102 ; 14103 return 0; 14104} 14105_ACEOF 14106if ac_fn_c_try_link "$LINENO" 14107then : 14108 eval $cacheid=yes 14109else $as_nop 14110 eval $cacheid=no 14111fi 14112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14113 conftest$ac_exeext conftest.$ac_ext 14114fi 14115 14116 14117 CFLAGS="$xorg_testset_save_CFLAGS" 14118 14119 eval supported=\$$cacheid 14120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14121printf "%s\n" "$supported" >&6; } 14122 if test "$supported" = "yes" ; then 14123 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14124 found="yes" 14125 fi 14126 fi 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142xorg_testset_save_CFLAGS="$CFLAGS" 14143 14144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14148if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14149then : 14150 printf %s "(cached) " >&6 14151else $as_nop 14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14153/* end confdefs.h. */ 14154int i; 14155_ACEOF 14156if ac_fn_c_try_compile "$LINENO" 14157then : 14158 xorg_cv_cc_flag_unknown_warning_option=yes 14159else $as_nop 14160 xorg_cv_cc_flag_unknown_warning_option=no 14161fi 14162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14163fi 14164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14167 CFLAGS="$xorg_testset_save_CFLAGS" 14168fi 14169 14170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14173 fi 14174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14177if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14178then : 14179 printf %s "(cached) " >&6 14180else $as_nop 14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14182/* end confdefs.h. */ 14183int i; 14184_ACEOF 14185if ac_fn_c_try_compile "$LINENO" 14186then : 14187 xorg_cv_cc_flag_unused_command_line_argument=yes 14188else $as_nop 14189 xorg_cv_cc_flag_unused_command_line_argument=no 14190fi 14191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14192fi 14193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14196 CFLAGS="$xorg_testset_save_CFLAGS" 14197fi 14198 14199found="no" 14200 14201 if test $found = "no" ; then 14202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14204 fi 14205 14206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14208 fi 14209 14210 CFLAGS="$CFLAGS -Wold-style-definition" 14211 14212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14213printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14214 cacheid=xorg_cv_cc_flag__Wold_style_definition 14215 if eval test \${$cacheid+y} 14216then : 14217 printf %s "(cached) " >&6 14218else $as_nop 14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14220/* end confdefs.h. */ 14221int i; 14222int 14223main (void) 14224{ 14225 14226 ; 14227 return 0; 14228} 14229_ACEOF 14230if ac_fn_c_try_link "$LINENO" 14231then : 14232 eval $cacheid=yes 14233else $as_nop 14234 eval $cacheid=no 14235fi 14236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14237 conftest$ac_exeext conftest.$ac_ext 14238fi 14239 14240 14241 CFLAGS="$xorg_testset_save_CFLAGS" 14242 14243 eval supported=\$$cacheid 14244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14245printf "%s\n" "$supported" >&6; } 14246 if test "$supported" = "yes" ; then 14247 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14248 found="yes" 14249 fi 14250 fi 14251 14252 if test $found = "no" ; then 14253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14255 fi 14256 14257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14259 fi 14260 14261 CFLAGS="$CFLAGS -fd" 14262 14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14264printf %s "checking if $CC supports -fd... " >&6; } 14265 cacheid=xorg_cv_cc_flag__fd 14266 if eval test \${$cacheid+y} 14267then : 14268 printf %s "(cached) " >&6 14269else $as_nop 14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14271/* end confdefs.h. */ 14272int i; 14273int 14274main (void) 14275{ 14276 14277 ; 14278 return 0; 14279} 14280_ACEOF 14281if ac_fn_c_try_link "$LINENO" 14282then : 14283 eval $cacheid=yes 14284else $as_nop 14285 eval $cacheid=no 14286fi 14287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14288 conftest$ac_exeext conftest.$ac_ext 14289fi 14290 14291 14292 CFLAGS="$xorg_testset_save_CFLAGS" 14293 14294 eval supported=\$$cacheid 14295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14296printf "%s\n" "$supported" >&6; } 14297 if test "$supported" = "yes" ; then 14298 BASE_CFLAGS="$BASE_CFLAGS -fd" 14299 found="yes" 14300 fi 14301 fi 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317xorg_testset_save_CFLAGS="$CFLAGS" 14318 14319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14323if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14324then : 14325 printf %s "(cached) " >&6 14326else $as_nop 14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14328/* end confdefs.h. */ 14329int i; 14330_ACEOF 14331if ac_fn_c_try_compile "$LINENO" 14332then : 14333 xorg_cv_cc_flag_unknown_warning_option=yes 14334else $as_nop 14335 xorg_cv_cc_flag_unknown_warning_option=no 14336fi 14337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14338fi 14339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14342 CFLAGS="$xorg_testset_save_CFLAGS" 14343fi 14344 14345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14348 fi 14349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14352if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14353then : 14354 printf %s "(cached) " >&6 14355else $as_nop 14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14357/* end confdefs.h. */ 14358int i; 14359_ACEOF 14360if ac_fn_c_try_compile "$LINENO" 14361then : 14362 xorg_cv_cc_flag_unused_command_line_argument=yes 14363else $as_nop 14364 xorg_cv_cc_flag_unused_command_line_argument=no 14365fi 14366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14367fi 14368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14371 CFLAGS="$xorg_testset_save_CFLAGS" 14372fi 14373 14374found="no" 14375 14376 if test $found = "no" ; then 14377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14379 fi 14380 14381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14383 fi 14384 14385 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14386 14387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14388printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14389 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14390 if eval test \${$cacheid+y} 14391then : 14392 printf %s "(cached) " >&6 14393else $as_nop 14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14395/* end confdefs.h. */ 14396int i; 14397int 14398main (void) 14399{ 14400 14401 ; 14402 return 0; 14403} 14404_ACEOF 14405if ac_fn_c_try_link "$LINENO" 14406then : 14407 eval $cacheid=yes 14408else $as_nop 14409 eval $cacheid=no 14410fi 14411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14412 conftest$ac_exeext conftest.$ac_ext 14413fi 14414 14415 14416 CFLAGS="$xorg_testset_save_CFLAGS" 14417 14418 eval supported=\$$cacheid 14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14420printf "%s\n" "$supported" >&6; } 14421 if test "$supported" = "yes" ; then 14422 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14423 found="yes" 14424 fi 14425 fi 14426 14427 14428 14429 14430 14431# This chunk adds additional warnings that could catch undesired effects. 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445xorg_testset_save_CFLAGS="$CFLAGS" 14446 14447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14450printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14451if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14452then : 14453 printf %s "(cached) " >&6 14454else $as_nop 14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14456/* end confdefs.h. */ 14457int i; 14458_ACEOF 14459if ac_fn_c_try_compile "$LINENO" 14460then : 14461 xorg_cv_cc_flag_unknown_warning_option=yes 14462else $as_nop 14463 xorg_cv_cc_flag_unknown_warning_option=no 14464fi 14465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14466fi 14467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14468printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14470 CFLAGS="$xorg_testset_save_CFLAGS" 14471fi 14472 14473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14476 fi 14477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14479printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14480if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14481then : 14482 printf %s "(cached) " >&6 14483else $as_nop 14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14485/* end confdefs.h. */ 14486int i; 14487_ACEOF 14488if ac_fn_c_try_compile "$LINENO" 14489then : 14490 xorg_cv_cc_flag_unused_command_line_argument=yes 14491else $as_nop 14492 xorg_cv_cc_flag_unused_command_line_argument=no 14493fi 14494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14495fi 14496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14497printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14499 CFLAGS="$xorg_testset_save_CFLAGS" 14500fi 14501 14502found="no" 14503 14504 if test $found = "no" ; then 14505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14507 fi 14508 14509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14511 fi 14512 14513 CFLAGS="$CFLAGS -Wunused" 14514 14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14516printf %s "checking if $CC supports -Wunused... " >&6; } 14517 cacheid=xorg_cv_cc_flag__Wunused 14518 if eval test \${$cacheid+y} 14519then : 14520 printf %s "(cached) " >&6 14521else $as_nop 14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14523/* end confdefs.h. */ 14524int i; 14525int 14526main (void) 14527{ 14528 14529 ; 14530 return 0; 14531} 14532_ACEOF 14533if ac_fn_c_try_link "$LINENO" 14534then : 14535 eval $cacheid=yes 14536else $as_nop 14537 eval $cacheid=no 14538fi 14539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14540 conftest$ac_exeext conftest.$ac_ext 14541fi 14542 14543 14544 CFLAGS="$xorg_testset_save_CFLAGS" 14545 14546 eval supported=\$$cacheid 14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14548printf "%s\n" "$supported" >&6; } 14549 if test "$supported" = "yes" ; then 14550 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14551 found="yes" 14552 fi 14553 fi 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569xorg_testset_save_CFLAGS="$CFLAGS" 14570 14571if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14574printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14575if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14576then : 14577 printf %s "(cached) " >&6 14578else $as_nop 14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14580/* end confdefs.h. */ 14581int i; 14582_ACEOF 14583if ac_fn_c_try_compile "$LINENO" 14584then : 14585 xorg_cv_cc_flag_unknown_warning_option=yes 14586else $as_nop 14587 xorg_cv_cc_flag_unknown_warning_option=no 14588fi 14589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14590fi 14591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14592printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14594 CFLAGS="$xorg_testset_save_CFLAGS" 14595fi 14596 14597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14600 fi 14601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14603printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14604if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14605then : 14606 printf %s "(cached) " >&6 14607else $as_nop 14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14609/* end confdefs.h. */ 14610int i; 14611_ACEOF 14612if ac_fn_c_try_compile "$LINENO" 14613then : 14614 xorg_cv_cc_flag_unused_command_line_argument=yes 14615else $as_nop 14616 xorg_cv_cc_flag_unused_command_line_argument=no 14617fi 14618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14619fi 14620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14621printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14623 CFLAGS="$xorg_testset_save_CFLAGS" 14624fi 14625 14626found="no" 14627 14628 if test $found = "no" ; then 14629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14631 fi 14632 14633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14635 fi 14636 14637 CFLAGS="$CFLAGS -Wuninitialized" 14638 14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14640printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14641 cacheid=xorg_cv_cc_flag__Wuninitialized 14642 if eval test \${$cacheid+y} 14643then : 14644 printf %s "(cached) " >&6 14645else $as_nop 14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14647/* end confdefs.h. */ 14648int i; 14649int 14650main (void) 14651{ 14652 14653 ; 14654 return 0; 14655} 14656_ACEOF 14657if ac_fn_c_try_link "$LINENO" 14658then : 14659 eval $cacheid=yes 14660else $as_nop 14661 eval $cacheid=no 14662fi 14663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14664 conftest$ac_exeext conftest.$ac_ext 14665fi 14666 14667 14668 CFLAGS="$xorg_testset_save_CFLAGS" 14669 14670 eval supported=\$$cacheid 14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14672printf "%s\n" "$supported" >&6; } 14673 if test "$supported" = "yes" ; then 14674 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14675 found="yes" 14676 fi 14677 fi 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693xorg_testset_save_CFLAGS="$CFLAGS" 14694 14695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14698printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14699if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14700then : 14701 printf %s "(cached) " >&6 14702else $as_nop 14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14704/* end confdefs.h. */ 14705int i; 14706_ACEOF 14707if ac_fn_c_try_compile "$LINENO" 14708then : 14709 xorg_cv_cc_flag_unknown_warning_option=yes 14710else $as_nop 14711 xorg_cv_cc_flag_unknown_warning_option=no 14712fi 14713rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14714fi 14715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14716printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14718 CFLAGS="$xorg_testset_save_CFLAGS" 14719fi 14720 14721if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14724 fi 14725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14727printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14728if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14729then : 14730 printf %s "(cached) " >&6 14731else $as_nop 14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14733/* end confdefs.h. */ 14734int i; 14735_ACEOF 14736if ac_fn_c_try_compile "$LINENO" 14737then : 14738 xorg_cv_cc_flag_unused_command_line_argument=yes 14739else $as_nop 14740 xorg_cv_cc_flag_unused_command_line_argument=no 14741fi 14742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14743fi 14744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14745printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14747 CFLAGS="$xorg_testset_save_CFLAGS" 14748fi 14749 14750found="no" 14751 14752 if test $found = "no" ; then 14753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14755 fi 14756 14757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14759 fi 14760 14761 CFLAGS="$CFLAGS -Wshadow" 14762 14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14764printf %s "checking if $CC supports -Wshadow... " >&6; } 14765 cacheid=xorg_cv_cc_flag__Wshadow 14766 if eval test \${$cacheid+y} 14767then : 14768 printf %s "(cached) " >&6 14769else $as_nop 14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14771/* end confdefs.h. */ 14772int i; 14773int 14774main (void) 14775{ 14776 14777 ; 14778 return 0; 14779} 14780_ACEOF 14781if ac_fn_c_try_link "$LINENO" 14782then : 14783 eval $cacheid=yes 14784else $as_nop 14785 eval $cacheid=no 14786fi 14787rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14788 conftest$ac_exeext conftest.$ac_ext 14789fi 14790 14791 14792 CFLAGS="$xorg_testset_save_CFLAGS" 14793 14794 eval supported=\$$cacheid 14795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14796printf "%s\n" "$supported" >&6; } 14797 if test "$supported" = "yes" ; then 14798 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14799 found="yes" 14800 fi 14801 fi 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817xorg_testset_save_CFLAGS="$CFLAGS" 14818 14819if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14822printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14823if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14824then : 14825 printf %s "(cached) " >&6 14826else $as_nop 14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14828/* end confdefs.h. */ 14829int i; 14830_ACEOF 14831if ac_fn_c_try_compile "$LINENO" 14832then : 14833 xorg_cv_cc_flag_unknown_warning_option=yes 14834else $as_nop 14835 xorg_cv_cc_flag_unknown_warning_option=no 14836fi 14837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14838fi 14839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14840printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14842 CFLAGS="$xorg_testset_save_CFLAGS" 14843fi 14844 14845if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14848 fi 14849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14851printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14852if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14853then : 14854 printf %s "(cached) " >&6 14855else $as_nop 14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14857/* end confdefs.h. */ 14858int i; 14859_ACEOF 14860if ac_fn_c_try_compile "$LINENO" 14861then : 14862 xorg_cv_cc_flag_unused_command_line_argument=yes 14863else $as_nop 14864 xorg_cv_cc_flag_unused_command_line_argument=no 14865fi 14866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14867fi 14868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14869printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14871 CFLAGS="$xorg_testset_save_CFLAGS" 14872fi 14873 14874found="no" 14875 14876 if test $found = "no" ; then 14877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14879 fi 14880 14881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14883 fi 14884 14885 CFLAGS="$CFLAGS -Wmissing-noreturn" 14886 14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14888printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14889 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14890 if eval test \${$cacheid+y} 14891then : 14892 printf %s "(cached) " >&6 14893else $as_nop 14894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896int i; 14897int 14898main (void) 14899{ 14900 14901 ; 14902 return 0; 14903} 14904_ACEOF 14905if ac_fn_c_try_link "$LINENO" 14906then : 14907 eval $cacheid=yes 14908else $as_nop 14909 eval $cacheid=no 14910fi 14911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14912 conftest$ac_exeext conftest.$ac_ext 14913fi 14914 14915 14916 CFLAGS="$xorg_testset_save_CFLAGS" 14917 14918 eval supported=\$$cacheid 14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14920printf "%s\n" "$supported" >&6; } 14921 if test "$supported" = "yes" ; then 14922 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14923 found="yes" 14924 fi 14925 fi 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941xorg_testset_save_CFLAGS="$CFLAGS" 14942 14943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14944 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14946printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14947if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14948then : 14949 printf %s "(cached) " >&6 14950else $as_nop 14951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14952/* end confdefs.h. */ 14953int i; 14954_ACEOF 14955if ac_fn_c_try_compile "$LINENO" 14956then : 14957 xorg_cv_cc_flag_unknown_warning_option=yes 14958else $as_nop 14959 xorg_cv_cc_flag_unknown_warning_option=no 14960fi 14961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14962fi 14963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14966 CFLAGS="$xorg_testset_save_CFLAGS" 14967fi 14968 14969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14972 fi 14973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14976if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14977then : 14978 printf %s "(cached) " >&6 14979else $as_nop 14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14981/* end confdefs.h. */ 14982int i; 14983_ACEOF 14984if ac_fn_c_try_compile "$LINENO" 14985then : 14986 xorg_cv_cc_flag_unused_command_line_argument=yes 14987else $as_nop 14988 xorg_cv_cc_flag_unused_command_line_argument=no 14989fi 14990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14991fi 14992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14993printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14994 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14995 CFLAGS="$xorg_testset_save_CFLAGS" 14996fi 14997 14998found="no" 14999 15000 if test $found = "no" ; then 15001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15003 fi 15004 15005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15007 fi 15008 15009 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15010 15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15012printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15013 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15014 if eval test \${$cacheid+y} 15015then : 15016 printf %s "(cached) " >&6 15017else $as_nop 15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15019/* end confdefs.h. */ 15020int i; 15021int 15022main (void) 15023{ 15024 15025 ; 15026 return 0; 15027} 15028_ACEOF 15029if ac_fn_c_try_link "$LINENO" 15030then : 15031 eval $cacheid=yes 15032else $as_nop 15033 eval $cacheid=no 15034fi 15035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15036 conftest$ac_exeext conftest.$ac_ext 15037fi 15038 15039 15040 CFLAGS="$xorg_testset_save_CFLAGS" 15041 15042 eval supported=\$$cacheid 15043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15044printf "%s\n" "$supported" >&6; } 15045 if test "$supported" = "yes" ; then 15046 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15047 found="yes" 15048 fi 15049 fi 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065xorg_testset_save_CFLAGS="$CFLAGS" 15066 15067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15070printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15071if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15072then : 15073 printf %s "(cached) " >&6 15074else $as_nop 15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15076/* end confdefs.h. */ 15077int i; 15078_ACEOF 15079if ac_fn_c_try_compile "$LINENO" 15080then : 15081 xorg_cv_cc_flag_unknown_warning_option=yes 15082else $as_nop 15083 xorg_cv_cc_flag_unknown_warning_option=no 15084fi 15085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15086fi 15087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15088printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15090 CFLAGS="$xorg_testset_save_CFLAGS" 15091fi 15092 15093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15096 fi 15097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15099printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15100if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15101then : 15102 printf %s "(cached) " >&6 15103else $as_nop 15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15105/* end confdefs.h. */ 15106int i; 15107_ACEOF 15108if ac_fn_c_try_compile "$LINENO" 15109then : 15110 xorg_cv_cc_flag_unused_command_line_argument=yes 15111else $as_nop 15112 xorg_cv_cc_flag_unused_command_line_argument=no 15113fi 15114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15115fi 15116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15117printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15119 CFLAGS="$xorg_testset_save_CFLAGS" 15120fi 15121 15122found="no" 15123 15124 if test $found = "no" ; then 15125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15127 fi 15128 15129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15131 fi 15132 15133 CFLAGS="$CFLAGS -Wredundant-decls" 15134 15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15136printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15137 cacheid=xorg_cv_cc_flag__Wredundant_decls 15138 if eval test \${$cacheid+y} 15139then : 15140 printf %s "(cached) " >&6 15141else $as_nop 15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15143/* end confdefs.h. */ 15144int i; 15145int 15146main (void) 15147{ 15148 15149 ; 15150 return 0; 15151} 15152_ACEOF 15153if ac_fn_c_try_link "$LINENO" 15154then : 15155 eval $cacheid=yes 15156else $as_nop 15157 eval $cacheid=no 15158fi 15159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15160 conftest$ac_exeext conftest.$ac_ext 15161fi 15162 15163 15164 CFLAGS="$xorg_testset_save_CFLAGS" 15165 15166 eval supported=\$$cacheid 15167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15168printf "%s\n" "$supported" >&6; } 15169 if test "$supported" = "yes" ; then 15170 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15171 found="yes" 15172 fi 15173 fi 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189xorg_testset_save_CFLAGS="$CFLAGS" 15190 15191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15194printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15195if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15196then : 15197 printf %s "(cached) " >&6 15198else $as_nop 15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15200/* end confdefs.h. */ 15201int i; 15202_ACEOF 15203if ac_fn_c_try_compile "$LINENO" 15204then : 15205 xorg_cv_cc_flag_unknown_warning_option=yes 15206else $as_nop 15207 xorg_cv_cc_flag_unknown_warning_option=no 15208fi 15209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15210fi 15211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15212printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15214 CFLAGS="$xorg_testset_save_CFLAGS" 15215fi 15216 15217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15220 fi 15221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15223printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15224if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15225then : 15226 printf %s "(cached) " >&6 15227else $as_nop 15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15229/* end confdefs.h. */ 15230int i; 15231_ACEOF 15232if ac_fn_c_try_compile "$LINENO" 15233then : 15234 xorg_cv_cc_flag_unused_command_line_argument=yes 15235else $as_nop 15236 xorg_cv_cc_flag_unused_command_line_argument=no 15237fi 15238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15239fi 15240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15241printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15243 CFLAGS="$xorg_testset_save_CFLAGS" 15244fi 15245 15246found="no" 15247 15248 if test $found = "no" ; then 15249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15251 fi 15252 15253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15255 fi 15256 15257 CFLAGS="$CFLAGS -Wlogical-op" 15258 15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15260printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15261 cacheid=xorg_cv_cc_flag__Wlogical_op 15262 if eval test \${$cacheid+y} 15263then : 15264 printf %s "(cached) " >&6 15265else $as_nop 15266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15267/* end confdefs.h. */ 15268int i; 15269int 15270main (void) 15271{ 15272 15273 ; 15274 return 0; 15275} 15276_ACEOF 15277if ac_fn_c_try_link "$LINENO" 15278then : 15279 eval $cacheid=yes 15280else $as_nop 15281 eval $cacheid=no 15282fi 15283rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15284 conftest$ac_exeext conftest.$ac_ext 15285fi 15286 15287 15288 CFLAGS="$xorg_testset_save_CFLAGS" 15289 15290 eval supported=\$$cacheid 15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15292printf "%s\n" "$supported" >&6; } 15293 if test "$supported" = "yes" ; then 15294 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15295 found="yes" 15296 fi 15297 fi 15298 15299 15300 15301# These are currently disabled because they are noisy. They will be enabled 15302# in the future once the codebase is sufficiently modernized to silence 15303# them. For now, I don't want them to drown out the other warnings. 15304# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15305# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15306# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15307 15308# Turn some warnings into errors, so we don't accidently get successful builds 15309# when there are problems that should be fixed. 15310 15311if test "x$SELECTIVE_WERROR" = "xyes" ; then 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325xorg_testset_save_CFLAGS="$CFLAGS" 15326 15327if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15330printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15331if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15332then : 15333 printf %s "(cached) " >&6 15334else $as_nop 15335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15336/* end confdefs.h. */ 15337int i; 15338_ACEOF 15339if ac_fn_c_try_compile "$LINENO" 15340then : 15341 xorg_cv_cc_flag_unknown_warning_option=yes 15342else $as_nop 15343 xorg_cv_cc_flag_unknown_warning_option=no 15344fi 15345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15346fi 15347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15348printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15350 CFLAGS="$xorg_testset_save_CFLAGS" 15351fi 15352 15353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15356 fi 15357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15359printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15360if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15361then : 15362 printf %s "(cached) " >&6 15363else $as_nop 15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15365/* end confdefs.h. */ 15366int i; 15367_ACEOF 15368if ac_fn_c_try_compile "$LINENO" 15369then : 15370 xorg_cv_cc_flag_unused_command_line_argument=yes 15371else $as_nop 15372 xorg_cv_cc_flag_unused_command_line_argument=no 15373fi 15374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15375fi 15376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15377printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15379 CFLAGS="$xorg_testset_save_CFLAGS" 15380fi 15381 15382found="no" 15383 15384 if test $found = "no" ; then 15385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15387 fi 15388 15389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15391 fi 15392 15393 CFLAGS="$CFLAGS -Werror=implicit" 15394 15395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15396printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15397 cacheid=xorg_cv_cc_flag__Werror_implicit 15398 if eval test \${$cacheid+y} 15399then : 15400 printf %s "(cached) " >&6 15401else $as_nop 15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15403/* end confdefs.h. */ 15404int i; 15405int 15406main (void) 15407{ 15408 15409 ; 15410 return 0; 15411} 15412_ACEOF 15413if ac_fn_c_try_link "$LINENO" 15414then : 15415 eval $cacheid=yes 15416else $as_nop 15417 eval $cacheid=no 15418fi 15419rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15420 conftest$ac_exeext conftest.$ac_ext 15421fi 15422 15423 15424 CFLAGS="$xorg_testset_save_CFLAGS" 15425 15426 eval supported=\$$cacheid 15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15428printf "%s\n" "$supported" >&6; } 15429 if test "$supported" = "yes" ; then 15430 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15431 found="yes" 15432 fi 15433 fi 15434 15435 if test $found = "no" ; then 15436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15438 fi 15439 15440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15442 fi 15443 15444 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15445 15446 { 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 15447printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15448 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15449 if eval test \${$cacheid+y} 15450then : 15451 printf %s "(cached) " >&6 15452else $as_nop 15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15454/* end confdefs.h. */ 15455int i; 15456int 15457main (void) 15458{ 15459 15460 ; 15461 return 0; 15462} 15463_ACEOF 15464if ac_fn_c_try_link "$LINENO" 15465then : 15466 eval $cacheid=yes 15467else $as_nop 15468 eval $cacheid=no 15469fi 15470rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15471 conftest$ac_exeext conftest.$ac_ext 15472fi 15473 15474 15475 CFLAGS="$xorg_testset_save_CFLAGS" 15476 15477 eval supported=\$$cacheid 15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15479printf "%s\n" "$supported" >&6; } 15480 if test "$supported" = "yes" ; then 15481 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15482 found="yes" 15483 fi 15484 fi 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500xorg_testset_save_CFLAGS="$CFLAGS" 15501 15502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15505printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15506if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15507then : 15508 printf %s "(cached) " >&6 15509else $as_nop 15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15511/* end confdefs.h. */ 15512int i; 15513_ACEOF 15514if ac_fn_c_try_compile "$LINENO" 15515then : 15516 xorg_cv_cc_flag_unknown_warning_option=yes 15517else $as_nop 15518 xorg_cv_cc_flag_unknown_warning_option=no 15519fi 15520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15521fi 15522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15523printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15525 CFLAGS="$xorg_testset_save_CFLAGS" 15526fi 15527 15528if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15530 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15531 fi 15532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15534printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15535if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15536then : 15537 printf %s "(cached) " >&6 15538else $as_nop 15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15540/* end confdefs.h. */ 15541int i; 15542_ACEOF 15543if ac_fn_c_try_compile "$LINENO" 15544then : 15545 xorg_cv_cc_flag_unused_command_line_argument=yes 15546else $as_nop 15547 xorg_cv_cc_flag_unused_command_line_argument=no 15548fi 15549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15550fi 15551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15552printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15554 CFLAGS="$xorg_testset_save_CFLAGS" 15555fi 15556 15557found="no" 15558 15559 if test $found = "no" ; then 15560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15562 fi 15563 15564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15566 fi 15567 15568 CFLAGS="$CFLAGS -Werror=nonnull" 15569 15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15571printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15572 cacheid=xorg_cv_cc_flag__Werror_nonnull 15573 if eval test \${$cacheid+y} 15574then : 15575 printf %s "(cached) " >&6 15576else $as_nop 15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15578/* end confdefs.h. */ 15579int i; 15580int 15581main (void) 15582{ 15583 15584 ; 15585 return 0; 15586} 15587_ACEOF 15588if ac_fn_c_try_link "$LINENO" 15589then : 15590 eval $cacheid=yes 15591else $as_nop 15592 eval $cacheid=no 15593fi 15594rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15595 conftest$ac_exeext conftest.$ac_ext 15596fi 15597 15598 15599 CFLAGS="$xorg_testset_save_CFLAGS" 15600 15601 eval supported=\$$cacheid 15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15603printf "%s\n" "$supported" >&6; } 15604 if test "$supported" = "yes" ; then 15605 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15606 found="yes" 15607 fi 15608 fi 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624xorg_testset_save_CFLAGS="$CFLAGS" 15625 15626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15630if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15631then : 15632 printf %s "(cached) " >&6 15633else $as_nop 15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15635/* end confdefs.h. */ 15636int i; 15637_ACEOF 15638if ac_fn_c_try_compile "$LINENO" 15639then : 15640 xorg_cv_cc_flag_unknown_warning_option=yes 15641else $as_nop 15642 xorg_cv_cc_flag_unknown_warning_option=no 15643fi 15644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15645fi 15646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15647printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15649 CFLAGS="$xorg_testset_save_CFLAGS" 15650fi 15651 15652if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15655 fi 15656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15658printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15659if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15660then : 15661 printf %s "(cached) " >&6 15662else $as_nop 15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15664/* end confdefs.h. */ 15665int i; 15666_ACEOF 15667if ac_fn_c_try_compile "$LINENO" 15668then : 15669 xorg_cv_cc_flag_unused_command_line_argument=yes 15670else $as_nop 15671 xorg_cv_cc_flag_unused_command_line_argument=no 15672fi 15673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15674fi 15675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15676printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15677 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15678 CFLAGS="$xorg_testset_save_CFLAGS" 15679fi 15680 15681found="no" 15682 15683 if test $found = "no" ; then 15684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15686 fi 15687 15688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15690 fi 15691 15692 CFLAGS="$CFLAGS -Werror=init-self" 15693 15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15695printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15696 cacheid=xorg_cv_cc_flag__Werror_init_self 15697 if eval test \${$cacheid+y} 15698then : 15699 printf %s "(cached) " >&6 15700else $as_nop 15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15702/* end confdefs.h. */ 15703int i; 15704int 15705main (void) 15706{ 15707 15708 ; 15709 return 0; 15710} 15711_ACEOF 15712if ac_fn_c_try_link "$LINENO" 15713then : 15714 eval $cacheid=yes 15715else $as_nop 15716 eval $cacheid=no 15717fi 15718rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15719 conftest$ac_exeext conftest.$ac_ext 15720fi 15721 15722 15723 CFLAGS="$xorg_testset_save_CFLAGS" 15724 15725 eval supported=\$$cacheid 15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15727printf "%s\n" "$supported" >&6; } 15728 if test "$supported" = "yes" ; then 15729 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15730 found="yes" 15731 fi 15732 fi 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748xorg_testset_save_CFLAGS="$CFLAGS" 15749 15750if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15753printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15754if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15755then : 15756 printf %s "(cached) " >&6 15757else $as_nop 15758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15759/* end confdefs.h. */ 15760int i; 15761_ACEOF 15762if ac_fn_c_try_compile "$LINENO" 15763then : 15764 xorg_cv_cc_flag_unknown_warning_option=yes 15765else $as_nop 15766 xorg_cv_cc_flag_unknown_warning_option=no 15767fi 15768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15769fi 15770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15771printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15772 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15773 CFLAGS="$xorg_testset_save_CFLAGS" 15774fi 15775 15776if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15779 fi 15780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15782printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15783if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15784then : 15785 printf %s "(cached) " >&6 15786else $as_nop 15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15788/* end confdefs.h. */ 15789int i; 15790_ACEOF 15791if ac_fn_c_try_compile "$LINENO" 15792then : 15793 xorg_cv_cc_flag_unused_command_line_argument=yes 15794else $as_nop 15795 xorg_cv_cc_flag_unused_command_line_argument=no 15796fi 15797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15798fi 15799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15800printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15802 CFLAGS="$xorg_testset_save_CFLAGS" 15803fi 15804 15805found="no" 15806 15807 if test $found = "no" ; then 15808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15810 fi 15811 15812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15814 fi 15815 15816 CFLAGS="$CFLAGS -Werror=main" 15817 15818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15819printf %s "checking if $CC supports -Werror=main... " >&6; } 15820 cacheid=xorg_cv_cc_flag__Werror_main 15821 if eval test \${$cacheid+y} 15822then : 15823 printf %s "(cached) " >&6 15824else $as_nop 15825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15826/* end confdefs.h. */ 15827int i; 15828int 15829main (void) 15830{ 15831 15832 ; 15833 return 0; 15834} 15835_ACEOF 15836if ac_fn_c_try_link "$LINENO" 15837then : 15838 eval $cacheid=yes 15839else $as_nop 15840 eval $cacheid=no 15841fi 15842rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15843 conftest$ac_exeext conftest.$ac_ext 15844fi 15845 15846 15847 CFLAGS="$xorg_testset_save_CFLAGS" 15848 15849 eval supported=\$$cacheid 15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15851printf "%s\n" "$supported" >&6; } 15852 if test "$supported" = "yes" ; then 15853 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15854 found="yes" 15855 fi 15856 fi 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872xorg_testset_save_CFLAGS="$CFLAGS" 15873 15874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15878if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15879then : 15880 printf %s "(cached) " >&6 15881else $as_nop 15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15883/* end confdefs.h. */ 15884int i; 15885_ACEOF 15886if ac_fn_c_try_compile "$LINENO" 15887then : 15888 xorg_cv_cc_flag_unknown_warning_option=yes 15889else $as_nop 15890 xorg_cv_cc_flag_unknown_warning_option=no 15891fi 15892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15893fi 15894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15895printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15897 CFLAGS="$xorg_testset_save_CFLAGS" 15898fi 15899 15900if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15903 fi 15904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15906printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15907if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15908then : 15909 printf %s "(cached) " >&6 15910else $as_nop 15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15912/* end confdefs.h. */ 15913int i; 15914_ACEOF 15915if ac_fn_c_try_compile "$LINENO" 15916then : 15917 xorg_cv_cc_flag_unused_command_line_argument=yes 15918else $as_nop 15919 xorg_cv_cc_flag_unused_command_line_argument=no 15920fi 15921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15922fi 15923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15924printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15926 CFLAGS="$xorg_testset_save_CFLAGS" 15927fi 15928 15929found="no" 15930 15931 if test $found = "no" ; then 15932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15934 fi 15935 15936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15938 fi 15939 15940 CFLAGS="$CFLAGS -Werror=missing-braces" 15941 15942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15943printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15944 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15945 if eval test \${$cacheid+y} 15946then : 15947 printf %s "(cached) " >&6 15948else $as_nop 15949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15950/* end confdefs.h. */ 15951int i; 15952int 15953main (void) 15954{ 15955 15956 ; 15957 return 0; 15958} 15959_ACEOF 15960if ac_fn_c_try_link "$LINENO" 15961then : 15962 eval $cacheid=yes 15963else $as_nop 15964 eval $cacheid=no 15965fi 15966rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15967 conftest$ac_exeext conftest.$ac_ext 15968fi 15969 15970 15971 CFLAGS="$xorg_testset_save_CFLAGS" 15972 15973 eval supported=\$$cacheid 15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15975printf "%s\n" "$supported" >&6; } 15976 if test "$supported" = "yes" ; then 15977 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15978 found="yes" 15979 fi 15980 fi 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996xorg_testset_save_CFLAGS="$CFLAGS" 15997 15998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16001printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16002if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16003then : 16004 printf %s "(cached) " >&6 16005else $as_nop 16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16007/* end confdefs.h. */ 16008int i; 16009_ACEOF 16010if ac_fn_c_try_compile "$LINENO" 16011then : 16012 xorg_cv_cc_flag_unknown_warning_option=yes 16013else $as_nop 16014 xorg_cv_cc_flag_unknown_warning_option=no 16015fi 16016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16017fi 16018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16019printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16021 CFLAGS="$xorg_testset_save_CFLAGS" 16022fi 16023 16024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16027 fi 16028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16030printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16031if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16032then : 16033 printf %s "(cached) " >&6 16034else $as_nop 16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16036/* end confdefs.h. */ 16037int i; 16038_ACEOF 16039if ac_fn_c_try_compile "$LINENO" 16040then : 16041 xorg_cv_cc_flag_unused_command_line_argument=yes 16042else $as_nop 16043 xorg_cv_cc_flag_unused_command_line_argument=no 16044fi 16045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16046fi 16047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16048printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16050 CFLAGS="$xorg_testset_save_CFLAGS" 16051fi 16052 16053found="no" 16054 16055 if test $found = "no" ; then 16056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16058 fi 16059 16060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16062 fi 16063 16064 CFLAGS="$CFLAGS -Werror=sequence-point" 16065 16066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16067printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16068 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16069 if eval test \${$cacheid+y} 16070then : 16071 printf %s "(cached) " >&6 16072else $as_nop 16073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16074/* end confdefs.h. */ 16075int i; 16076int 16077main (void) 16078{ 16079 16080 ; 16081 return 0; 16082} 16083_ACEOF 16084if ac_fn_c_try_link "$LINENO" 16085then : 16086 eval $cacheid=yes 16087else $as_nop 16088 eval $cacheid=no 16089fi 16090rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16091 conftest$ac_exeext conftest.$ac_ext 16092fi 16093 16094 16095 CFLAGS="$xorg_testset_save_CFLAGS" 16096 16097 eval supported=\$$cacheid 16098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16099printf "%s\n" "$supported" >&6; } 16100 if test "$supported" = "yes" ; then 16101 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16102 found="yes" 16103 fi 16104 fi 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120xorg_testset_save_CFLAGS="$CFLAGS" 16121 16122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16125printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16126if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16127then : 16128 printf %s "(cached) " >&6 16129else $as_nop 16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16131/* end confdefs.h. */ 16132int i; 16133_ACEOF 16134if ac_fn_c_try_compile "$LINENO" 16135then : 16136 xorg_cv_cc_flag_unknown_warning_option=yes 16137else $as_nop 16138 xorg_cv_cc_flag_unknown_warning_option=no 16139fi 16140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16141fi 16142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16143printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16145 CFLAGS="$xorg_testset_save_CFLAGS" 16146fi 16147 16148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16151 fi 16152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16154printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16155if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16156then : 16157 printf %s "(cached) " >&6 16158else $as_nop 16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16160/* end confdefs.h. */ 16161int i; 16162_ACEOF 16163if ac_fn_c_try_compile "$LINENO" 16164then : 16165 xorg_cv_cc_flag_unused_command_line_argument=yes 16166else $as_nop 16167 xorg_cv_cc_flag_unused_command_line_argument=no 16168fi 16169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16170fi 16171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16174 CFLAGS="$xorg_testset_save_CFLAGS" 16175fi 16176 16177found="no" 16178 16179 if test $found = "no" ; then 16180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16182 fi 16183 16184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16186 fi 16187 16188 CFLAGS="$CFLAGS -Werror=return-type" 16189 16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16191printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16192 cacheid=xorg_cv_cc_flag__Werror_return_type 16193 if eval test \${$cacheid+y} 16194then : 16195 printf %s "(cached) " >&6 16196else $as_nop 16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16198/* end confdefs.h. */ 16199int i; 16200int 16201main (void) 16202{ 16203 16204 ; 16205 return 0; 16206} 16207_ACEOF 16208if ac_fn_c_try_link "$LINENO" 16209then : 16210 eval $cacheid=yes 16211else $as_nop 16212 eval $cacheid=no 16213fi 16214rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16215 conftest$ac_exeext conftest.$ac_ext 16216fi 16217 16218 16219 CFLAGS="$xorg_testset_save_CFLAGS" 16220 16221 eval supported=\$$cacheid 16222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16223printf "%s\n" "$supported" >&6; } 16224 if test "$supported" = "yes" ; then 16225 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16226 found="yes" 16227 fi 16228 fi 16229 16230 if test $found = "no" ; then 16231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16233 fi 16234 16235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16237 fi 16238 16239 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16240 16241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16242printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16243 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16244 if eval test \${$cacheid+y} 16245then : 16246 printf %s "(cached) " >&6 16247else $as_nop 16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16249/* end confdefs.h. */ 16250int i; 16251int 16252main (void) 16253{ 16254 16255 ; 16256 return 0; 16257} 16258_ACEOF 16259if ac_fn_c_try_link "$LINENO" 16260then : 16261 eval $cacheid=yes 16262else $as_nop 16263 eval $cacheid=no 16264fi 16265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16266 conftest$ac_exeext conftest.$ac_ext 16267fi 16268 16269 16270 CFLAGS="$xorg_testset_save_CFLAGS" 16271 16272 eval supported=\$$cacheid 16273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16274printf "%s\n" "$supported" >&6; } 16275 if test "$supported" = "yes" ; then 16276 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16277 found="yes" 16278 fi 16279 fi 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295xorg_testset_save_CFLAGS="$CFLAGS" 16296 16297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16300printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16301if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16302then : 16303 printf %s "(cached) " >&6 16304else $as_nop 16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16306/* end confdefs.h. */ 16307int i; 16308_ACEOF 16309if ac_fn_c_try_compile "$LINENO" 16310then : 16311 xorg_cv_cc_flag_unknown_warning_option=yes 16312else $as_nop 16313 xorg_cv_cc_flag_unknown_warning_option=no 16314fi 16315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16316fi 16317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16318printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16320 CFLAGS="$xorg_testset_save_CFLAGS" 16321fi 16322 16323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16326 fi 16327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16329printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16330if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16331then : 16332 printf %s "(cached) " >&6 16333else $as_nop 16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16335/* end confdefs.h. */ 16336int i; 16337_ACEOF 16338if ac_fn_c_try_compile "$LINENO" 16339then : 16340 xorg_cv_cc_flag_unused_command_line_argument=yes 16341else $as_nop 16342 xorg_cv_cc_flag_unused_command_line_argument=no 16343fi 16344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16345fi 16346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16349 CFLAGS="$xorg_testset_save_CFLAGS" 16350fi 16351 16352found="no" 16353 16354 if test $found = "no" ; then 16355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16357 fi 16358 16359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16361 fi 16362 16363 CFLAGS="$CFLAGS -Werror=trigraphs" 16364 16365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16366printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16367 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16368 if eval test \${$cacheid+y} 16369then : 16370 printf %s "(cached) " >&6 16371else $as_nop 16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16373/* end confdefs.h. */ 16374int i; 16375int 16376main (void) 16377{ 16378 16379 ; 16380 return 0; 16381} 16382_ACEOF 16383if ac_fn_c_try_link "$LINENO" 16384then : 16385 eval $cacheid=yes 16386else $as_nop 16387 eval $cacheid=no 16388fi 16389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16390 conftest$ac_exeext conftest.$ac_ext 16391fi 16392 16393 16394 CFLAGS="$xorg_testset_save_CFLAGS" 16395 16396 eval supported=\$$cacheid 16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16398printf "%s\n" "$supported" >&6; } 16399 if test "$supported" = "yes" ; then 16400 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16401 found="yes" 16402 fi 16403 fi 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419xorg_testset_save_CFLAGS="$CFLAGS" 16420 16421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16424printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16425if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16426then : 16427 printf %s "(cached) " >&6 16428else $as_nop 16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16430/* end confdefs.h. */ 16431int i; 16432_ACEOF 16433if ac_fn_c_try_compile "$LINENO" 16434then : 16435 xorg_cv_cc_flag_unknown_warning_option=yes 16436else $as_nop 16437 xorg_cv_cc_flag_unknown_warning_option=no 16438fi 16439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16440fi 16441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16442printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16444 CFLAGS="$xorg_testset_save_CFLAGS" 16445fi 16446 16447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16450 fi 16451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16453printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16454if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16455then : 16456 printf %s "(cached) " >&6 16457else $as_nop 16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16459/* end confdefs.h. */ 16460int i; 16461_ACEOF 16462if ac_fn_c_try_compile "$LINENO" 16463then : 16464 xorg_cv_cc_flag_unused_command_line_argument=yes 16465else $as_nop 16466 xorg_cv_cc_flag_unused_command_line_argument=no 16467fi 16468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16469fi 16470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16471printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16473 CFLAGS="$xorg_testset_save_CFLAGS" 16474fi 16475 16476found="no" 16477 16478 if test $found = "no" ; then 16479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16481 fi 16482 16483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16485 fi 16486 16487 CFLAGS="$CFLAGS -Werror=array-bounds" 16488 16489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16490printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16491 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16492 if eval test \${$cacheid+y} 16493then : 16494 printf %s "(cached) " >&6 16495else $as_nop 16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16497/* end confdefs.h. */ 16498int i; 16499int 16500main (void) 16501{ 16502 16503 ; 16504 return 0; 16505} 16506_ACEOF 16507if ac_fn_c_try_link "$LINENO" 16508then : 16509 eval $cacheid=yes 16510else $as_nop 16511 eval $cacheid=no 16512fi 16513rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16514 conftest$ac_exeext conftest.$ac_ext 16515fi 16516 16517 16518 CFLAGS="$xorg_testset_save_CFLAGS" 16519 16520 eval supported=\$$cacheid 16521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16522printf "%s\n" "$supported" >&6; } 16523 if test "$supported" = "yes" ; then 16524 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16525 found="yes" 16526 fi 16527 fi 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543xorg_testset_save_CFLAGS="$CFLAGS" 16544 16545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16548printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16549if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16550then : 16551 printf %s "(cached) " >&6 16552else $as_nop 16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16554/* end confdefs.h. */ 16555int i; 16556_ACEOF 16557if ac_fn_c_try_compile "$LINENO" 16558then : 16559 xorg_cv_cc_flag_unknown_warning_option=yes 16560else $as_nop 16561 xorg_cv_cc_flag_unknown_warning_option=no 16562fi 16563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16564fi 16565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16566printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16568 CFLAGS="$xorg_testset_save_CFLAGS" 16569fi 16570 16571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16574 fi 16575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16577printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16578if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16579then : 16580 printf %s "(cached) " >&6 16581else $as_nop 16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16583/* end confdefs.h. */ 16584int i; 16585_ACEOF 16586if ac_fn_c_try_compile "$LINENO" 16587then : 16588 xorg_cv_cc_flag_unused_command_line_argument=yes 16589else $as_nop 16590 xorg_cv_cc_flag_unused_command_line_argument=no 16591fi 16592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16593fi 16594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16597 CFLAGS="$xorg_testset_save_CFLAGS" 16598fi 16599 16600found="no" 16601 16602 if test $found = "no" ; then 16603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16605 fi 16606 16607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16609 fi 16610 16611 CFLAGS="$CFLAGS -Werror=write-strings" 16612 16613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16614printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16615 cacheid=xorg_cv_cc_flag__Werror_write_strings 16616 if eval test \${$cacheid+y} 16617then : 16618 printf %s "(cached) " >&6 16619else $as_nop 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622int i; 16623int 16624main (void) 16625{ 16626 16627 ; 16628 return 0; 16629} 16630_ACEOF 16631if ac_fn_c_try_link "$LINENO" 16632then : 16633 eval $cacheid=yes 16634else $as_nop 16635 eval $cacheid=no 16636fi 16637rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16638 conftest$ac_exeext conftest.$ac_ext 16639fi 16640 16641 16642 CFLAGS="$xorg_testset_save_CFLAGS" 16643 16644 eval supported=\$$cacheid 16645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16646printf "%s\n" "$supported" >&6; } 16647 if test "$supported" = "yes" ; then 16648 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16649 found="yes" 16650 fi 16651 fi 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667xorg_testset_save_CFLAGS="$CFLAGS" 16668 16669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16673if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16674then : 16675 printf %s "(cached) " >&6 16676else $as_nop 16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16678/* end confdefs.h. */ 16679int i; 16680_ACEOF 16681if ac_fn_c_try_compile "$LINENO" 16682then : 16683 xorg_cv_cc_flag_unknown_warning_option=yes 16684else $as_nop 16685 xorg_cv_cc_flag_unknown_warning_option=no 16686fi 16687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16688fi 16689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16692 CFLAGS="$xorg_testset_save_CFLAGS" 16693fi 16694 16695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16698 fi 16699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16702if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16703then : 16704 printf %s "(cached) " >&6 16705else $as_nop 16706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16707/* end confdefs.h. */ 16708int i; 16709_ACEOF 16710if ac_fn_c_try_compile "$LINENO" 16711then : 16712 xorg_cv_cc_flag_unused_command_line_argument=yes 16713else $as_nop 16714 xorg_cv_cc_flag_unused_command_line_argument=no 16715fi 16716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16717fi 16718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16721 CFLAGS="$xorg_testset_save_CFLAGS" 16722fi 16723 16724found="no" 16725 16726 if test $found = "no" ; then 16727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16729 fi 16730 16731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16733 fi 16734 16735 CFLAGS="$CFLAGS -Werror=address" 16736 16737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16738printf %s "checking if $CC supports -Werror=address... " >&6; } 16739 cacheid=xorg_cv_cc_flag__Werror_address 16740 if eval test \${$cacheid+y} 16741then : 16742 printf %s "(cached) " >&6 16743else $as_nop 16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16745/* end confdefs.h. */ 16746int i; 16747int 16748main (void) 16749{ 16750 16751 ; 16752 return 0; 16753} 16754_ACEOF 16755if ac_fn_c_try_link "$LINENO" 16756then : 16757 eval $cacheid=yes 16758else $as_nop 16759 eval $cacheid=no 16760fi 16761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16762 conftest$ac_exeext conftest.$ac_ext 16763fi 16764 16765 16766 CFLAGS="$xorg_testset_save_CFLAGS" 16767 16768 eval supported=\$$cacheid 16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16770printf "%s\n" "$supported" >&6; } 16771 if test "$supported" = "yes" ; then 16772 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16773 found="yes" 16774 fi 16775 fi 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791xorg_testset_save_CFLAGS="$CFLAGS" 16792 16793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16797if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16798then : 16799 printf %s "(cached) " >&6 16800else $as_nop 16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16802/* end confdefs.h. */ 16803int i; 16804_ACEOF 16805if ac_fn_c_try_compile "$LINENO" 16806then : 16807 xorg_cv_cc_flag_unknown_warning_option=yes 16808else $as_nop 16809 xorg_cv_cc_flag_unknown_warning_option=no 16810fi 16811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16812fi 16813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16816 CFLAGS="$xorg_testset_save_CFLAGS" 16817fi 16818 16819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16822 fi 16823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16826if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16827then : 16828 printf %s "(cached) " >&6 16829else $as_nop 16830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16831/* end confdefs.h. */ 16832int i; 16833_ACEOF 16834if ac_fn_c_try_compile "$LINENO" 16835then : 16836 xorg_cv_cc_flag_unused_command_line_argument=yes 16837else $as_nop 16838 xorg_cv_cc_flag_unused_command_line_argument=no 16839fi 16840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16841fi 16842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16845 CFLAGS="$xorg_testset_save_CFLAGS" 16846fi 16847 16848found="no" 16849 16850 if test $found = "no" ; then 16851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16853 fi 16854 16855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16857 fi 16858 16859 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16860 16861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16862printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16863 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16864 if eval test \${$cacheid+y} 16865then : 16866 printf %s "(cached) " >&6 16867else $as_nop 16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16869/* end confdefs.h. */ 16870int i; 16871int 16872main (void) 16873{ 16874 16875 ; 16876 return 0; 16877} 16878_ACEOF 16879if ac_fn_c_try_link "$LINENO" 16880then : 16881 eval $cacheid=yes 16882else $as_nop 16883 eval $cacheid=no 16884fi 16885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16886 conftest$ac_exeext conftest.$ac_ext 16887fi 16888 16889 16890 CFLAGS="$xorg_testset_save_CFLAGS" 16891 16892 eval supported=\$$cacheid 16893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16894printf "%s\n" "$supported" >&6; } 16895 if test "$supported" = "yes" ; then 16896 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16897 found="yes" 16898 fi 16899 fi 16900 16901 if test $found = "no" ; then 16902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16904 fi 16905 16906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16908 fi 16909 16910 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16911 16912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16913printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16914 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16915 if eval test \${$cacheid+y} 16916then : 16917 printf %s "(cached) " >&6 16918else $as_nop 16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922int 16923main (void) 16924{ 16925 16926 ; 16927 return 0; 16928} 16929_ACEOF 16930if ac_fn_c_try_link "$LINENO" 16931then : 16932 eval $cacheid=yes 16933else $as_nop 16934 eval $cacheid=no 16935fi 16936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16937 conftest$ac_exeext conftest.$ac_ext 16938fi 16939 16940 16941 CFLAGS="$xorg_testset_save_CFLAGS" 16942 16943 eval supported=\$$cacheid 16944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16945printf "%s\n" "$supported" >&6; } 16946 if test "$supported" = "yes" ; then 16947 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16948 found="yes" 16949 fi 16950 fi 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966xorg_testset_save_CFLAGS="$CFLAGS" 16967 16968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16972if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16973then : 16974 printf %s "(cached) " >&6 16975else $as_nop 16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977/* end confdefs.h. */ 16978int i; 16979_ACEOF 16980if ac_fn_c_try_compile "$LINENO" 16981then : 16982 xorg_cv_cc_flag_unknown_warning_option=yes 16983else $as_nop 16984 xorg_cv_cc_flag_unknown_warning_option=no 16985fi 16986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16987fi 16988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16991 CFLAGS="$xorg_testset_save_CFLAGS" 16992fi 16993 16994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16997 fi 16998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17001if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17002then : 17003 printf %s "(cached) " >&6 17004else $as_nop 17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17006/* end confdefs.h. */ 17007int i; 17008_ACEOF 17009if ac_fn_c_try_compile "$LINENO" 17010then : 17011 xorg_cv_cc_flag_unused_command_line_argument=yes 17012else $as_nop 17013 xorg_cv_cc_flag_unused_command_line_argument=no 17014fi 17015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17016fi 17017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17020 CFLAGS="$xorg_testset_save_CFLAGS" 17021fi 17022 17023found="no" 17024 17025 if test $found = "no" ; then 17026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17028 fi 17029 17030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17032 fi 17033 17034 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17035 17036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17037printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17038 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17039 if eval test \${$cacheid+y} 17040then : 17041 printf %s "(cached) " >&6 17042else $as_nop 17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17044/* end confdefs.h. */ 17045int i; 17046int 17047main (void) 17048{ 17049 17050 ; 17051 return 0; 17052} 17053_ACEOF 17054if ac_fn_c_try_link "$LINENO" 17055then : 17056 eval $cacheid=yes 17057else $as_nop 17058 eval $cacheid=no 17059fi 17060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17061 conftest$ac_exeext conftest.$ac_ext 17062fi 17063 17064 17065 CFLAGS="$xorg_testset_save_CFLAGS" 17066 17067 eval supported=\$$cacheid 17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17069printf "%s\n" "$supported" >&6; } 17070 if test "$supported" = "yes" ; then 17071 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17072 found="yes" 17073 fi 17074 fi 17075 17076 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17077else 17078{ 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 17079printf "%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;} 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093xorg_testset_save_CFLAGS="$CFLAGS" 17094 17095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17098printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17099if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17100then : 17101 printf %s "(cached) " >&6 17102else $as_nop 17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17104/* end confdefs.h. */ 17105int i; 17106_ACEOF 17107if ac_fn_c_try_compile "$LINENO" 17108then : 17109 xorg_cv_cc_flag_unknown_warning_option=yes 17110else $as_nop 17111 xorg_cv_cc_flag_unknown_warning_option=no 17112fi 17113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17114fi 17115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17116printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17118 CFLAGS="$xorg_testset_save_CFLAGS" 17119fi 17120 17121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17124 fi 17125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17127printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17128if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17129then : 17130 printf %s "(cached) " >&6 17131else $as_nop 17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17133/* end confdefs.h. */ 17134int i; 17135_ACEOF 17136if ac_fn_c_try_compile "$LINENO" 17137then : 17138 xorg_cv_cc_flag_unused_command_line_argument=yes 17139else $as_nop 17140 xorg_cv_cc_flag_unused_command_line_argument=no 17141fi 17142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17143fi 17144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17145printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17147 CFLAGS="$xorg_testset_save_CFLAGS" 17148fi 17149 17150found="no" 17151 17152 if test $found = "no" ; then 17153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17155 fi 17156 17157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17159 fi 17160 17161 CFLAGS="$CFLAGS -Wimplicit" 17162 17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17164printf %s "checking if $CC supports -Wimplicit... " >&6; } 17165 cacheid=xorg_cv_cc_flag__Wimplicit 17166 if eval test \${$cacheid+y} 17167then : 17168 printf %s "(cached) " >&6 17169else $as_nop 17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17171/* end confdefs.h. */ 17172int i; 17173int 17174main (void) 17175{ 17176 17177 ; 17178 return 0; 17179} 17180_ACEOF 17181if ac_fn_c_try_link "$LINENO" 17182then : 17183 eval $cacheid=yes 17184else $as_nop 17185 eval $cacheid=no 17186fi 17187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17188 conftest$ac_exeext conftest.$ac_ext 17189fi 17190 17191 17192 CFLAGS="$xorg_testset_save_CFLAGS" 17193 17194 eval supported=\$$cacheid 17195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17196printf "%s\n" "$supported" >&6; } 17197 if test "$supported" = "yes" ; then 17198 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17199 found="yes" 17200 fi 17201 fi 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217xorg_testset_save_CFLAGS="$CFLAGS" 17218 17219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17222printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17223if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17224then : 17225 printf %s "(cached) " >&6 17226else $as_nop 17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17228/* end confdefs.h. */ 17229int i; 17230_ACEOF 17231if ac_fn_c_try_compile "$LINENO" 17232then : 17233 xorg_cv_cc_flag_unknown_warning_option=yes 17234else $as_nop 17235 xorg_cv_cc_flag_unknown_warning_option=no 17236fi 17237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17238fi 17239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17240printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17242 CFLAGS="$xorg_testset_save_CFLAGS" 17243fi 17244 17245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17248 fi 17249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17251printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17252if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17253then : 17254 printf %s "(cached) " >&6 17255else $as_nop 17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17257/* end confdefs.h. */ 17258int i; 17259_ACEOF 17260if ac_fn_c_try_compile "$LINENO" 17261then : 17262 xorg_cv_cc_flag_unused_command_line_argument=yes 17263else $as_nop 17264 xorg_cv_cc_flag_unused_command_line_argument=no 17265fi 17266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17267fi 17268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17269printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17271 CFLAGS="$xorg_testset_save_CFLAGS" 17272fi 17273 17274found="no" 17275 17276 if test $found = "no" ; then 17277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17279 fi 17280 17281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17283 fi 17284 17285 CFLAGS="$CFLAGS -Wnonnull" 17286 17287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17288printf %s "checking if $CC supports -Wnonnull... " >&6; } 17289 cacheid=xorg_cv_cc_flag__Wnonnull 17290 if eval test \${$cacheid+y} 17291then : 17292 printf %s "(cached) " >&6 17293else $as_nop 17294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17295/* end confdefs.h. */ 17296int i; 17297int 17298main (void) 17299{ 17300 17301 ; 17302 return 0; 17303} 17304_ACEOF 17305if ac_fn_c_try_link "$LINENO" 17306then : 17307 eval $cacheid=yes 17308else $as_nop 17309 eval $cacheid=no 17310fi 17311rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17312 conftest$ac_exeext conftest.$ac_ext 17313fi 17314 17315 17316 CFLAGS="$xorg_testset_save_CFLAGS" 17317 17318 eval supported=\$$cacheid 17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17320printf "%s\n" "$supported" >&6; } 17321 if test "$supported" = "yes" ; then 17322 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17323 found="yes" 17324 fi 17325 fi 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341xorg_testset_save_CFLAGS="$CFLAGS" 17342 17343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17346printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17347if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17348then : 17349 printf %s "(cached) " >&6 17350else $as_nop 17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17352/* end confdefs.h. */ 17353int i; 17354_ACEOF 17355if ac_fn_c_try_compile "$LINENO" 17356then : 17357 xorg_cv_cc_flag_unknown_warning_option=yes 17358else $as_nop 17359 xorg_cv_cc_flag_unknown_warning_option=no 17360fi 17361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17362fi 17363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17364printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17366 CFLAGS="$xorg_testset_save_CFLAGS" 17367fi 17368 17369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17372 fi 17373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17375printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17376if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17377then : 17378 printf %s "(cached) " >&6 17379else $as_nop 17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17381/* end confdefs.h. */ 17382int i; 17383_ACEOF 17384if ac_fn_c_try_compile "$LINENO" 17385then : 17386 xorg_cv_cc_flag_unused_command_line_argument=yes 17387else $as_nop 17388 xorg_cv_cc_flag_unused_command_line_argument=no 17389fi 17390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17391fi 17392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17393printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17395 CFLAGS="$xorg_testset_save_CFLAGS" 17396fi 17397 17398found="no" 17399 17400 if test $found = "no" ; then 17401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17403 fi 17404 17405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17407 fi 17408 17409 CFLAGS="$CFLAGS -Winit-self" 17410 17411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17412printf %s "checking if $CC supports -Winit-self... " >&6; } 17413 cacheid=xorg_cv_cc_flag__Winit_self 17414 if eval test \${$cacheid+y} 17415then : 17416 printf %s "(cached) " >&6 17417else $as_nop 17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419/* end confdefs.h. */ 17420int i; 17421int 17422main (void) 17423{ 17424 17425 ; 17426 return 0; 17427} 17428_ACEOF 17429if ac_fn_c_try_link "$LINENO" 17430then : 17431 eval $cacheid=yes 17432else $as_nop 17433 eval $cacheid=no 17434fi 17435rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17436 conftest$ac_exeext conftest.$ac_ext 17437fi 17438 17439 17440 CFLAGS="$xorg_testset_save_CFLAGS" 17441 17442 eval supported=\$$cacheid 17443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17444printf "%s\n" "$supported" >&6; } 17445 if test "$supported" = "yes" ; then 17446 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17447 found="yes" 17448 fi 17449 fi 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465xorg_testset_save_CFLAGS="$CFLAGS" 17466 17467if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17470printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17471if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17472then : 17473 printf %s "(cached) " >&6 17474else $as_nop 17475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17476/* end confdefs.h. */ 17477int i; 17478_ACEOF 17479if ac_fn_c_try_compile "$LINENO" 17480then : 17481 xorg_cv_cc_flag_unknown_warning_option=yes 17482else $as_nop 17483 xorg_cv_cc_flag_unknown_warning_option=no 17484fi 17485rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17486fi 17487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17488printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17490 CFLAGS="$xorg_testset_save_CFLAGS" 17491fi 17492 17493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17496 fi 17497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17499printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17500if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17501then : 17502 printf %s "(cached) " >&6 17503else $as_nop 17504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17505/* end confdefs.h. */ 17506int i; 17507_ACEOF 17508if ac_fn_c_try_compile "$LINENO" 17509then : 17510 xorg_cv_cc_flag_unused_command_line_argument=yes 17511else $as_nop 17512 xorg_cv_cc_flag_unused_command_line_argument=no 17513fi 17514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17515fi 17516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17517printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17519 CFLAGS="$xorg_testset_save_CFLAGS" 17520fi 17521 17522found="no" 17523 17524 if test $found = "no" ; then 17525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17527 fi 17528 17529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17531 fi 17532 17533 CFLAGS="$CFLAGS -Wmain" 17534 17535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17536printf %s "checking if $CC supports -Wmain... " >&6; } 17537 cacheid=xorg_cv_cc_flag__Wmain 17538 if eval test \${$cacheid+y} 17539then : 17540 printf %s "(cached) " >&6 17541else $as_nop 17542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17543/* end confdefs.h. */ 17544int i; 17545int 17546main (void) 17547{ 17548 17549 ; 17550 return 0; 17551} 17552_ACEOF 17553if ac_fn_c_try_link "$LINENO" 17554then : 17555 eval $cacheid=yes 17556else $as_nop 17557 eval $cacheid=no 17558fi 17559rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17560 conftest$ac_exeext conftest.$ac_ext 17561fi 17562 17563 17564 CFLAGS="$xorg_testset_save_CFLAGS" 17565 17566 eval supported=\$$cacheid 17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17568printf "%s\n" "$supported" >&6; } 17569 if test "$supported" = "yes" ; then 17570 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17571 found="yes" 17572 fi 17573 fi 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589xorg_testset_save_CFLAGS="$CFLAGS" 17590 17591if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17594printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17595if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17596then : 17597 printf %s "(cached) " >&6 17598else $as_nop 17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17600/* end confdefs.h. */ 17601int i; 17602_ACEOF 17603if ac_fn_c_try_compile "$LINENO" 17604then : 17605 xorg_cv_cc_flag_unknown_warning_option=yes 17606else $as_nop 17607 xorg_cv_cc_flag_unknown_warning_option=no 17608fi 17609rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17610fi 17611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17612printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17613 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17614 CFLAGS="$xorg_testset_save_CFLAGS" 17615fi 17616 17617if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17620 fi 17621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17623printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17624if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17625then : 17626 printf %s "(cached) " >&6 17627else $as_nop 17628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17629/* end confdefs.h. */ 17630int i; 17631_ACEOF 17632if ac_fn_c_try_compile "$LINENO" 17633then : 17634 xorg_cv_cc_flag_unused_command_line_argument=yes 17635else $as_nop 17636 xorg_cv_cc_flag_unused_command_line_argument=no 17637fi 17638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17639fi 17640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17641printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17643 CFLAGS="$xorg_testset_save_CFLAGS" 17644fi 17645 17646found="no" 17647 17648 if test $found = "no" ; then 17649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17651 fi 17652 17653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17655 fi 17656 17657 CFLAGS="$CFLAGS -Wmissing-braces" 17658 17659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17660printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17661 cacheid=xorg_cv_cc_flag__Wmissing_braces 17662 if eval test \${$cacheid+y} 17663then : 17664 printf %s "(cached) " >&6 17665else $as_nop 17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17667/* end confdefs.h. */ 17668int i; 17669int 17670main (void) 17671{ 17672 17673 ; 17674 return 0; 17675} 17676_ACEOF 17677if ac_fn_c_try_link "$LINENO" 17678then : 17679 eval $cacheid=yes 17680else $as_nop 17681 eval $cacheid=no 17682fi 17683rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17684 conftest$ac_exeext conftest.$ac_ext 17685fi 17686 17687 17688 CFLAGS="$xorg_testset_save_CFLAGS" 17689 17690 eval supported=\$$cacheid 17691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17692printf "%s\n" "$supported" >&6; } 17693 if test "$supported" = "yes" ; then 17694 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17695 found="yes" 17696 fi 17697 fi 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713xorg_testset_save_CFLAGS="$CFLAGS" 17714 17715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17718printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17719if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17720then : 17721 printf %s "(cached) " >&6 17722else $as_nop 17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17724/* end confdefs.h. */ 17725int i; 17726_ACEOF 17727if ac_fn_c_try_compile "$LINENO" 17728then : 17729 xorg_cv_cc_flag_unknown_warning_option=yes 17730else $as_nop 17731 xorg_cv_cc_flag_unknown_warning_option=no 17732fi 17733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17734fi 17735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17736printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17738 CFLAGS="$xorg_testset_save_CFLAGS" 17739fi 17740 17741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17744 fi 17745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17747printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17748if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17749then : 17750 printf %s "(cached) " >&6 17751else $as_nop 17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17753/* end confdefs.h. */ 17754int i; 17755_ACEOF 17756if ac_fn_c_try_compile "$LINENO" 17757then : 17758 xorg_cv_cc_flag_unused_command_line_argument=yes 17759else $as_nop 17760 xorg_cv_cc_flag_unused_command_line_argument=no 17761fi 17762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17763fi 17764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17765printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17767 CFLAGS="$xorg_testset_save_CFLAGS" 17768fi 17769 17770found="no" 17771 17772 if test $found = "no" ; then 17773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17775 fi 17776 17777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17779 fi 17780 17781 CFLAGS="$CFLAGS -Wsequence-point" 17782 17783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17784printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17785 cacheid=xorg_cv_cc_flag__Wsequence_point 17786 if eval test \${$cacheid+y} 17787then : 17788 printf %s "(cached) " >&6 17789else $as_nop 17790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17791/* end confdefs.h. */ 17792int i; 17793int 17794main (void) 17795{ 17796 17797 ; 17798 return 0; 17799} 17800_ACEOF 17801if ac_fn_c_try_link "$LINENO" 17802then : 17803 eval $cacheid=yes 17804else $as_nop 17805 eval $cacheid=no 17806fi 17807rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17808 conftest$ac_exeext conftest.$ac_ext 17809fi 17810 17811 17812 CFLAGS="$xorg_testset_save_CFLAGS" 17813 17814 eval supported=\$$cacheid 17815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17816printf "%s\n" "$supported" >&6; } 17817 if test "$supported" = "yes" ; then 17818 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17819 found="yes" 17820 fi 17821 fi 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837xorg_testset_save_CFLAGS="$CFLAGS" 17838 17839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17843if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17844then : 17845 printf %s "(cached) " >&6 17846else $as_nop 17847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17848/* end confdefs.h. */ 17849int i; 17850_ACEOF 17851if ac_fn_c_try_compile "$LINENO" 17852then : 17853 xorg_cv_cc_flag_unknown_warning_option=yes 17854else $as_nop 17855 xorg_cv_cc_flag_unknown_warning_option=no 17856fi 17857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17858fi 17859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17860printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17862 CFLAGS="$xorg_testset_save_CFLAGS" 17863fi 17864 17865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17868 fi 17869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17871printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17872if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17873then : 17874 printf %s "(cached) " >&6 17875else $as_nop 17876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17877/* end confdefs.h. */ 17878int i; 17879_ACEOF 17880if ac_fn_c_try_compile "$LINENO" 17881then : 17882 xorg_cv_cc_flag_unused_command_line_argument=yes 17883else $as_nop 17884 xorg_cv_cc_flag_unused_command_line_argument=no 17885fi 17886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17887fi 17888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17891 CFLAGS="$xorg_testset_save_CFLAGS" 17892fi 17893 17894found="no" 17895 17896 if test $found = "no" ; then 17897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17899 fi 17900 17901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17903 fi 17904 17905 CFLAGS="$CFLAGS -Wreturn-type" 17906 17907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17908printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17909 cacheid=xorg_cv_cc_flag__Wreturn_type 17910 if eval test \${$cacheid+y} 17911then : 17912 printf %s "(cached) " >&6 17913else $as_nop 17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17915/* end confdefs.h. */ 17916int i; 17917int 17918main (void) 17919{ 17920 17921 ; 17922 return 0; 17923} 17924_ACEOF 17925if ac_fn_c_try_link "$LINENO" 17926then : 17927 eval $cacheid=yes 17928else $as_nop 17929 eval $cacheid=no 17930fi 17931rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17932 conftest$ac_exeext conftest.$ac_ext 17933fi 17934 17935 17936 CFLAGS="$xorg_testset_save_CFLAGS" 17937 17938 eval supported=\$$cacheid 17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17940printf "%s\n" "$supported" >&6; } 17941 if test "$supported" = "yes" ; then 17942 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17943 found="yes" 17944 fi 17945 fi 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961xorg_testset_save_CFLAGS="$CFLAGS" 17962 17963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17966printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17967if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17968then : 17969 printf %s "(cached) " >&6 17970else $as_nop 17971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17972/* end confdefs.h. */ 17973int i; 17974_ACEOF 17975if ac_fn_c_try_compile "$LINENO" 17976then : 17977 xorg_cv_cc_flag_unknown_warning_option=yes 17978else $as_nop 17979 xorg_cv_cc_flag_unknown_warning_option=no 17980fi 17981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17982fi 17983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17984printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17986 CFLAGS="$xorg_testset_save_CFLAGS" 17987fi 17988 17989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17992 fi 17993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17995printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17996if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17997then : 17998 printf %s "(cached) " >&6 17999else $as_nop 18000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18001/* end confdefs.h. */ 18002int i; 18003_ACEOF 18004if ac_fn_c_try_compile "$LINENO" 18005then : 18006 xorg_cv_cc_flag_unused_command_line_argument=yes 18007else $as_nop 18008 xorg_cv_cc_flag_unused_command_line_argument=no 18009fi 18010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18011fi 18012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18013printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18015 CFLAGS="$xorg_testset_save_CFLAGS" 18016fi 18017 18018found="no" 18019 18020 if test $found = "no" ; then 18021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18023 fi 18024 18025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18027 fi 18028 18029 CFLAGS="$CFLAGS -Wtrigraphs" 18030 18031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18032printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18033 cacheid=xorg_cv_cc_flag__Wtrigraphs 18034 if eval test \${$cacheid+y} 18035then : 18036 printf %s "(cached) " >&6 18037else $as_nop 18038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18039/* end confdefs.h. */ 18040int i; 18041int 18042main (void) 18043{ 18044 18045 ; 18046 return 0; 18047} 18048_ACEOF 18049if ac_fn_c_try_link "$LINENO" 18050then : 18051 eval $cacheid=yes 18052else $as_nop 18053 eval $cacheid=no 18054fi 18055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18056 conftest$ac_exeext conftest.$ac_ext 18057fi 18058 18059 18060 CFLAGS="$xorg_testset_save_CFLAGS" 18061 18062 eval supported=\$$cacheid 18063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18064printf "%s\n" "$supported" >&6; } 18065 if test "$supported" = "yes" ; then 18066 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18067 found="yes" 18068 fi 18069 fi 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085xorg_testset_save_CFLAGS="$CFLAGS" 18086 18087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18090printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18091if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18092then : 18093 printf %s "(cached) " >&6 18094else $as_nop 18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18096/* end confdefs.h. */ 18097int i; 18098_ACEOF 18099if ac_fn_c_try_compile "$LINENO" 18100then : 18101 xorg_cv_cc_flag_unknown_warning_option=yes 18102else $as_nop 18103 xorg_cv_cc_flag_unknown_warning_option=no 18104fi 18105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18106fi 18107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18108printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18110 CFLAGS="$xorg_testset_save_CFLAGS" 18111fi 18112 18113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18115 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18116 fi 18117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18119printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18120if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18121then : 18122 printf %s "(cached) " >&6 18123else $as_nop 18124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18125/* end confdefs.h. */ 18126int i; 18127_ACEOF 18128if ac_fn_c_try_compile "$LINENO" 18129then : 18130 xorg_cv_cc_flag_unused_command_line_argument=yes 18131else $as_nop 18132 xorg_cv_cc_flag_unused_command_line_argument=no 18133fi 18134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18135fi 18136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18137printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18139 CFLAGS="$xorg_testset_save_CFLAGS" 18140fi 18141 18142found="no" 18143 18144 if test $found = "no" ; then 18145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18147 fi 18148 18149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18151 fi 18152 18153 CFLAGS="$CFLAGS -Warray-bounds" 18154 18155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18156printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18157 cacheid=xorg_cv_cc_flag__Warray_bounds 18158 if eval test \${$cacheid+y} 18159then : 18160 printf %s "(cached) " >&6 18161else $as_nop 18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18163/* end confdefs.h. */ 18164int i; 18165int 18166main (void) 18167{ 18168 18169 ; 18170 return 0; 18171} 18172_ACEOF 18173if ac_fn_c_try_link "$LINENO" 18174then : 18175 eval $cacheid=yes 18176else $as_nop 18177 eval $cacheid=no 18178fi 18179rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18180 conftest$ac_exeext conftest.$ac_ext 18181fi 18182 18183 18184 CFLAGS="$xorg_testset_save_CFLAGS" 18185 18186 eval supported=\$$cacheid 18187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18188printf "%s\n" "$supported" >&6; } 18189 if test "$supported" = "yes" ; then 18190 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18191 found="yes" 18192 fi 18193 fi 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209xorg_testset_save_CFLAGS="$CFLAGS" 18210 18211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18215if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18216then : 18217 printf %s "(cached) " >&6 18218else $as_nop 18219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18220/* end confdefs.h. */ 18221int i; 18222_ACEOF 18223if ac_fn_c_try_compile "$LINENO" 18224then : 18225 xorg_cv_cc_flag_unknown_warning_option=yes 18226else $as_nop 18227 xorg_cv_cc_flag_unknown_warning_option=no 18228fi 18229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18230fi 18231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18232printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18234 CFLAGS="$xorg_testset_save_CFLAGS" 18235fi 18236 18237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18240 fi 18241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18243printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18244if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18245then : 18246 printf %s "(cached) " >&6 18247else $as_nop 18248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18249/* end confdefs.h. */ 18250int i; 18251_ACEOF 18252if ac_fn_c_try_compile "$LINENO" 18253then : 18254 xorg_cv_cc_flag_unused_command_line_argument=yes 18255else $as_nop 18256 xorg_cv_cc_flag_unused_command_line_argument=no 18257fi 18258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18259fi 18260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18263 CFLAGS="$xorg_testset_save_CFLAGS" 18264fi 18265 18266found="no" 18267 18268 if test $found = "no" ; then 18269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18271 fi 18272 18273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18275 fi 18276 18277 CFLAGS="$CFLAGS -Wwrite-strings" 18278 18279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18280printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18281 cacheid=xorg_cv_cc_flag__Wwrite_strings 18282 if eval test \${$cacheid+y} 18283then : 18284 printf %s "(cached) " >&6 18285else $as_nop 18286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18287/* end confdefs.h. */ 18288int i; 18289int 18290main (void) 18291{ 18292 18293 ; 18294 return 0; 18295} 18296_ACEOF 18297if ac_fn_c_try_link "$LINENO" 18298then : 18299 eval $cacheid=yes 18300else $as_nop 18301 eval $cacheid=no 18302fi 18303rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18304 conftest$ac_exeext conftest.$ac_ext 18305fi 18306 18307 18308 CFLAGS="$xorg_testset_save_CFLAGS" 18309 18310 eval supported=\$$cacheid 18311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18312printf "%s\n" "$supported" >&6; } 18313 if test "$supported" = "yes" ; then 18314 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18315 found="yes" 18316 fi 18317 fi 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333xorg_testset_save_CFLAGS="$CFLAGS" 18334 18335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18338printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18339if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18340then : 18341 printf %s "(cached) " >&6 18342else $as_nop 18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18344/* end confdefs.h. */ 18345int i; 18346_ACEOF 18347if ac_fn_c_try_compile "$LINENO" 18348then : 18349 xorg_cv_cc_flag_unknown_warning_option=yes 18350else $as_nop 18351 xorg_cv_cc_flag_unknown_warning_option=no 18352fi 18353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18354fi 18355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18358 CFLAGS="$xorg_testset_save_CFLAGS" 18359fi 18360 18361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18364 fi 18365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18368if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18369then : 18370 printf %s "(cached) " >&6 18371else $as_nop 18372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18373/* end confdefs.h. */ 18374int i; 18375_ACEOF 18376if ac_fn_c_try_compile "$LINENO" 18377then : 18378 xorg_cv_cc_flag_unused_command_line_argument=yes 18379else $as_nop 18380 xorg_cv_cc_flag_unused_command_line_argument=no 18381fi 18382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18383fi 18384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18385printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18387 CFLAGS="$xorg_testset_save_CFLAGS" 18388fi 18389 18390found="no" 18391 18392 if test $found = "no" ; then 18393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18395 fi 18396 18397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18399 fi 18400 18401 CFLAGS="$CFLAGS -Waddress" 18402 18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18404printf %s "checking if $CC supports -Waddress... " >&6; } 18405 cacheid=xorg_cv_cc_flag__Waddress 18406 if eval test \${$cacheid+y} 18407then : 18408 printf %s "(cached) " >&6 18409else $as_nop 18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18411/* end confdefs.h. */ 18412int i; 18413int 18414main (void) 18415{ 18416 18417 ; 18418 return 0; 18419} 18420_ACEOF 18421if ac_fn_c_try_link "$LINENO" 18422then : 18423 eval $cacheid=yes 18424else $as_nop 18425 eval $cacheid=no 18426fi 18427rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18428 conftest$ac_exeext conftest.$ac_ext 18429fi 18430 18431 18432 CFLAGS="$xorg_testset_save_CFLAGS" 18433 18434 eval supported=\$$cacheid 18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18436printf "%s\n" "$supported" >&6; } 18437 if test "$supported" = "yes" ; then 18438 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18439 found="yes" 18440 fi 18441 fi 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457xorg_testset_save_CFLAGS="$CFLAGS" 18458 18459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18462printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18463if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18464then : 18465 printf %s "(cached) " >&6 18466else $as_nop 18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18468/* end confdefs.h. */ 18469int i; 18470_ACEOF 18471if ac_fn_c_try_compile "$LINENO" 18472then : 18473 xorg_cv_cc_flag_unknown_warning_option=yes 18474else $as_nop 18475 xorg_cv_cc_flag_unknown_warning_option=no 18476fi 18477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18478fi 18479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18480printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18482 CFLAGS="$xorg_testset_save_CFLAGS" 18483fi 18484 18485if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18488 fi 18489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18491printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18492if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18493then : 18494 printf %s "(cached) " >&6 18495else $as_nop 18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497/* end confdefs.h. */ 18498int i; 18499_ACEOF 18500if ac_fn_c_try_compile "$LINENO" 18501then : 18502 xorg_cv_cc_flag_unused_command_line_argument=yes 18503else $as_nop 18504 xorg_cv_cc_flag_unused_command_line_argument=no 18505fi 18506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18507fi 18508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18510 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18511 CFLAGS="$xorg_testset_save_CFLAGS" 18512fi 18513 18514found="no" 18515 18516 if test $found = "no" ; then 18517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18519 fi 18520 18521 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18523 fi 18524 18525 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18526 18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18528printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18529 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18530 if eval test \${$cacheid+y} 18531then : 18532 printf %s "(cached) " >&6 18533else $as_nop 18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18535/* end confdefs.h. */ 18536int i; 18537int 18538main (void) 18539{ 18540 18541 ; 18542 return 0; 18543} 18544_ACEOF 18545if ac_fn_c_try_link "$LINENO" 18546then : 18547 eval $cacheid=yes 18548else $as_nop 18549 eval $cacheid=no 18550fi 18551rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18552 conftest$ac_exeext conftest.$ac_ext 18553fi 18554 18555 18556 CFLAGS="$xorg_testset_save_CFLAGS" 18557 18558 eval supported=\$$cacheid 18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18560printf "%s\n" "$supported" >&6; } 18561 if test "$supported" = "yes" ; then 18562 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18563 found="yes" 18564 fi 18565 fi 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581xorg_testset_save_CFLAGS="$CFLAGS" 18582 18583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18586printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18587if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18588then : 18589 printf %s "(cached) " >&6 18590else $as_nop 18591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18592/* end confdefs.h. */ 18593int i; 18594_ACEOF 18595if ac_fn_c_try_compile "$LINENO" 18596then : 18597 xorg_cv_cc_flag_unknown_warning_option=yes 18598else $as_nop 18599 xorg_cv_cc_flag_unknown_warning_option=no 18600fi 18601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18602fi 18603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18606 CFLAGS="$xorg_testset_save_CFLAGS" 18607fi 18608 18609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18612 fi 18613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18616if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18617then : 18618 printf %s "(cached) " >&6 18619else $as_nop 18620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18621/* end confdefs.h. */ 18622int i; 18623_ACEOF 18624if ac_fn_c_try_compile "$LINENO" 18625then : 18626 xorg_cv_cc_flag_unused_command_line_argument=yes 18627else $as_nop 18628 xorg_cv_cc_flag_unused_command_line_argument=no 18629fi 18630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18631fi 18632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18633printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18634 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18635 CFLAGS="$xorg_testset_save_CFLAGS" 18636fi 18637 18638found="no" 18639 18640 if test $found = "no" ; then 18641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18643 fi 18644 18645 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18647 fi 18648 18649 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18650 18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18652printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18653 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18654 if eval test \${$cacheid+y} 18655then : 18656 printf %s "(cached) " >&6 18657else $as_nop 18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18659/* end confdefs.h. */ 18660int i; 18661int 18662main (void) 18663{ 18664 18665 ; 18666 return 0; 18667} 18668_ACEOF 18669if ac_fn_c_try_link "$LINENO" 18670then : 18671 eval $cacheid=yes 18672else $as_nop 18673 eval $cacheid=no 18674fi 18675rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18676 conftest$ac_exeext conftest.$ac_ext 18677fi 18678 18679 18680 CFLAGS="$xorg_testset_save_CFLAGS" 18681 18682 eval supported=\$$cacheid 18683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18684printf "%s\n" "$supported" >&6; } 18685 if test "$supported" = "yes" ; then 18686 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18687 found="yes" 18688 fi 18689 fi 18690 18691 18692fi 18693 18694 18695 18696 18697 18698 18699 18700 CWARNFLAGS="$BASE_CFLAGS" 18701 if test "x$GCC" = xyes ; then 18702 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18703 fi 18704 18705 18706 18707 18708 18709 18710 18711 18712# Check whether --enable-strict-compilation was given. 18713if test ${enable_strict_compilation+y} 18714then : 18715 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18716else $as_nop 18717 STRICT_COMPILE=no 18718fi 18719 18720 18721 18722 18723 18724 18725STRICT_CFLAGS="" 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739xorg_testset_save_CFLAGS="$CFLAGS" 18740 18741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18744printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18745if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18746then : 18747 printf %s "(cached) " >&6 18748else $as_nop 18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18750/* end confdefs.h. */ 18751int i; 18752_ACEOF 18753if ac_fn_c_try_compile "$LINENO" 18754then : 18755 xorg_cv_cc_flag_unknown_warning_option=yes 18756else $as_nop 18757 xorg_cv_cc_flag_unknown_warning_option=no 18758fi 18759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18760fi 18761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18762printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18764 CFLAGS="$xorg_testset_save_CFLAGS" 18765fi 18766 18767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18770 fi 18771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18773printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18774if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18775then : 18776 printf %s "(cached) " >&6 18777else $as_nop 18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18779/* end confdefs.h. */ 18780int i; 18781_ACEOF 18782if ac_fn_c_try_compile "$LINENO" 18783then : 18784 xorg_cv_cc_flag_unused_command_line_argument=yes 18785else $as_nop 18786 xorg_cv_cc_flag_unused_command_line_argument=no 18787fi 18788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18789fi 18790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18791printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18793 CFLAGS="$xorg_testset_save_CFLAGS" 18794fi 18795 18796found="no" 18797 18798 if test $found = "no" ; then 18799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18801 fi 18802 18803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18805 fi 18806 18807 CFLAGS="$CFLAGS -pedantic" 18808 18809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18810printf %s "checking if $CC supports -pedantic... " >&6; } 18811 cacheid=xorg_cv_cc_flag__pedantic 18812 if eval test \${$cacheid+y} 18813then : 18814 printf %s "(cached) " >&6 18815else $as_nop 18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18817/* end confdefs.h. */ 18818int i; 18819int 18820main (void) 18821{ 18822 18823 ; 18824 return 0; 18825} 18826_ACEOF 18827if ac_fn_c_try_link "$LINENO" 18828then : 18829 eval $cacheid=yes 18830else $as_nop 18831 eval $cacheid=no 18832fi 18833rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18834 conftest$ac_exeext conftest.$ac_ext 18835fi 18836 18837 18838 CFLAGS="$xorg_testset_save_CFLAGS" 18839 18840 eval supported=\$$cacheid 18841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18842printf "%s\n" "$supported" >&6; } 18843 if test "$supported" = "yes" ; then 18844 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18845 found="yes" 18846 fi 18847 fi 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863xorg_testset_save_CFLAGS="$CFLAGS" 18864 18865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18868printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18869if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18870then : 18871 printf %s "(cached) " >&6 18872else $as_nop 18873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18874/* end confdefs.h. */ 18875int i; 18876_ACEOF 18877if ac_fn_c_try_compile "$LINENO" 18878then : 18879 xorg_cv_cc_flag_unknown_warning_option=yes 18880else $as_nop 18881 xorg_cv_cc_flag_unknown_warning_option=no 18882fi 18883rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18884fi 18885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18888 CFLAGS="$xorg_testset_save_CFLAGS" 18889fi 18890 18891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18894 fi 18895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18898if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18899then : 18900 printf %s "(cached) " >&6 18901else $as_nop 18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18903/* end confdefs.h. */ 18904int i; 18905_ACEOF 18906if ac_fn_c_try_compile "$LINENO" 18907then : 18908 xorg_cv_cc_flag_unused_command_line_argument=yes 18909else $as_nop 18910 xorg_cv_cc_flag_unused_command_line_argument=no 18911fi 18912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18913fi 18914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18915printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18917 CFLAGS="$xorg_testset_save_CFLAGS" 18918fi 18919 18920found="no" 18921 18922 if test $found = "no" ; then 18923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18925 fi 18926 18927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18929 fi 18930 18931 CFLAGS="$CFLAGS -Werror" 18932 18933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18934printf %s "checking if $CC supports -Werror... " >&6; } 18935 cacheid=xorg_cv_cc_flag__Werror 18936 if eval test \${$cacheid+y} 18937then : 18938 printf %s "(cached) " >&6 18939else $as_nop 18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18941/* end confdefs.h. */ 18942int i; 18943int 18944main (void) 18945{ 18946 18947 ; 18948 return 0; 18949} 18950_ACEOF 18951if ac_fn_c_try_link "$LINENO" 18952then : 18953 eval $cacheid=yes 18954else $as_nop 18955 eval $cacheid=no 18956fi 18957rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18958 conftest$ac_exeext conftest.$ac_ext 18959fi 18960 18961 18962 CFLAGS="$xorg_testset_save_CFLAGS" 18963 18964 eval supported=\$$cacheid 18965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18966printf "%s\n" "$supported" >&6; } 18967 if test "$supported" = "yes" ; then 18968 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18969 found="yes" 18970 fi 18971 fi 18972 18973 if test $found = "no" ; then 18974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18976 fi 18977 18978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18980 fi 18981 18982 CFLAGS="$CFLAGS -errwarn" 18983 18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18985printf %s "checking if $CC supports -errwarn... " >&6; } 18986 cacheid=xorg_cv_cc_flag__errwarn 18987 if eval test \${$cacheid+y} 18988then : 18989 printf %s "(cached) " >&6 18990else $as_nop 18991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18992/* end confdefs.h. */ 18993int i; 18994int 18995main (void) 18996{ 18997 18998 ; 18999 return 0; 19000} 19001_ACEOF 19002if ac_fn_c_try_link "$LINENO" 19003then : 19004 eval $cacheid=yes 19005else $as_nop 19006 eval $cacheid=no 19007fi 19008rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19009 conftest$ac_exeext conftest.$ac_ext 19010fi 19011 19012 19013 CFLAGS="$xorg_testset_save_CFLAGS" 19014 19015 eval supported=\$$cacheid 19016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19017printf "%s\n" "$supported" >&6; } 19018 if test "$supported" = "yes" ; then 19019 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19020 found="yes" 19021 fi 19022 fi 19023 19024 19025 19026# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19027# activate it with -Werror, so we add it here explicitly. 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041xorg_testset_save_CFLAGS="$CFLAGS" 19042 19043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19047if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19048then : 19049 printf %s "(cached) " >&6 19050else $as_nop 19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19052/* end confdefs.h. */ 19053int i; 19054_ACEOF 19055if ac_fn_c_try_compile "$LINENO" 19056then : 19057 xorg_cv_cc_flag_unknown_warning_option=yes 19058else $as_nop 19059 xorg_cv_cc_flag_unknown_warning_option=no 19060fi 19061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19062fi 19063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19066 CFLAGS="$xorg_testset_save_CFLAGS" 19067fi 19068 19069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19072 fi 19073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19076if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19077then : 19078 printf %s "(cached) " >&6 19079else $as_nop 19080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19081/* end confdefs.h. */ 19082int i; 19083_ACEOF 19084if ac_fn_c_try_compile "$LINENO" 19085then : 19086 xorg_cv_cc_flag_unused_command_line_argument=yes 19087else $as_nop 19088 xorg_cv_cc_flag_unused_command_line_argument=no 19089fi 19090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19091fi 19092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19095 CFLAGS="$xorg_testset_save_CFLAGS" 19096fi 19097 19098found="no" 19099 19100 if test $found = "no" ; then 19101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19103 fi 19104 19105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19107 fi 19108 19109 CFLAGS="$CFLAGS -Werror=attributes" 19110 19111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19112printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19113 cacheid=xorg_cv_cc_flag__Werror_attributes 19114 if eval test \${$cacheid+y} 19115then : 19116 printf %s "(cached) " >&6 19117else $as_nop 19118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19119/* end confdefs.h. */ 19120int i; 19121int 19122main (void) 19123{ 19124 19125 ; 19126 return 0; 19127} 19128_ACEOF 19129if ac_fn_c_try_link "$LINENO" 19130then : 19131 eval $cacheid=yes 19132else $as_nop 19133 eval $cacheid=no 19134fi 19135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19136 conftest$ac_exeext conftest.$ac_ext 19137fi 19138 19139 19140 CFLAGS="$xorg_testset_save_CFLAGS" 19141 19142 eval supported=\$$cacheid 19143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19144printf "%s\n" "$supported" >&6; } 19145 if test "$supported" = "yes" ; then 19146 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19147 found="yes" 19148 fi 19149 fi 19150 19151 19152 19153if test "x$STRICT_COMPILE" = "xyes"; then 19154 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19155 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19156fi 19157 19158 19159 19160 19161 19162 19163cat >>confdefs.h <<_ACEOF 19164#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19165_ACEOF 19166 19167 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19168 if test "x$PVM" = "x"; then 19169 PVM="0" 19170 fi 19171 19172printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19173 19174 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19175 if test "x$PVP" = "x"; then 19176 PVP="0" 19177 fi 19178 19179printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19180 19181 19182 19183CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19184mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19185|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19186touch \$(top_srcdir)/ChangeLog; \ 19187echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19188 19189 19190 19191 19192macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19193INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19194mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19195|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19196touch \$(top_srcdir)/INSTALL; \ 19197echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19198 19199 19200 19201 19202 19203 19204case $host_os in 19205 solaris*) 19206 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19207 # check for a man page file found in later versions that use 19208 # traditional section numbers instead 19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19210printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19211if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19212then : 19213 printf %s "(cached) " >&6 19214else $as_nop 19215 test "$cross_compiling" = yes && 19216 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19217if test -r "/usr/share/man/man7/attributes.7"; then 19218 ac_cv_file__usr_share_man_man7_attributes_7=yes 19219else 19220 ac_cv_file__usr_share_man_man7_attributes_7=no 19221fi 19222fi 19223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19224printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19225if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19226then : 19227 SYSV_MAN_SECTIONS=false 19228else $as_nop 19229 SYSV_MAN_SECTIONS=true 19230fi 19231 19232 ;; 19233 *) SYSV_MAN_SECTIONS=false ;; 19234esac 19235 19236if test x$APP_MAN_SUFFIX = x ; then 19237 APP_MAN_SUFFIX=1 19238fi 19239if test x$APP_MAN_DIR = x ; then 19240 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19241fi 19242 19243if test x$LIB_MAN_SUFFIX = x ; then 19244 LIB_MAN_SUFFIX=3 19245fi 19246if test x$LIB_MAN_DIR = x ; then 19247 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19248fi 19249 19250if test x$FILE_MAN_SUFFIX = x ; then 19251 case $SYSV_MAN_SECTIONS in 19252 true) FILE_MAN_SUFFIX=4 ;; 19253 *) FILE_MAN_SUFFIX=5 ;; 19254 esac 19255fi 19256if test x$FILE_MAN_DIR = x ; then 19257 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19258fi 19259 19260if test x$MISC_MAN_SUFFIX = x ; then 19261 case $SYSV_MAN_SECTIONS in 19262 true) MISC_MAN_SUFFIX=5 ;; 19263 *) MISC_MAN_SUFFIX=7 ;; 19264 esac 19265fi 19266if test x$MISC_MAN_DIR = x ; then 19267 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19268fi 19269 19270if test x$DRIVER_MAN_SUFFIX = x ; then 19271 case $SYSV_MAN_SECTIONS in 19272 true) DRIVER_MAN_SUFFIX=7 ;; 19273 *) DRIVER_MAN_SUFFIX=4 ;; 19274 esac 19275fi 19276if test x$DRIVER_MAN_DIR = x ; then 19277 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19278fi 19279 19280if test x$ADMIN_MAN_SUFFIX = x ; then 19281 case $SYSV_MAN_SECTIONS in 19282 true) ADMIN_MAN_SUFFIX=1m ;; 19283 *) ADMIN_MAN_SUFFIX=8 ;; 19284 esac 19285fi 19286if test x$ADMIN_MAN_DIR = x ; then 19287 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19288fi 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304XORG_MAN_PAGE="X Version 11" 19305 19306MAN_SUBSTS="\ 19307 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19308 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19309 -e 's|__xservername__|Xorg|g' \ 19310 -e 's|__xconfigfile__|xorg.conf|g' \ 19311 -e 's|__projectroot__|\$(prefix)|g' \ 19312 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19313 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19314 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19315 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19316 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19317 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19318 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19319 19320 19321 19322# Check whether --enable-silent-rules was given. 19323if test ${enable_silent_rules+y} 19324then : 19325 enableval=$enable_silent_rules; 19326fi 19327 19328case $enable_silent_rules in # ((( 19329 yes) AM_DEFAULT_VERBOSITY=0;; 19330 no) AM_DEFAULT_VERBOSITY=1;; 19331 *) AM_DEFAULT_VERBOSITY=0;; 19332esac 19333am_make=${MAKE-make} 19334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19335printf %s "checking whether $am_make supports nested variables... " >&6; } 19336if test ${am_cv_make_support_nested_variables+y} 19337then : 19338 printf %s "(cached) " >&6 19339else $as_nop 19340 if printf "%s\n" 'TRUE=$(BAR$(V)) 19341BAR0=false 19342BAR1=true 19343V=1 19344am__doit: 19345 @$(TRUE) 19346.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19347 am_cv_make_support_nested_variables=yes 19348else 19349 am_cv_make_support_nested_variables=no 19350fi 19351fi 19352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19353printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19354if test $am_cv_make_support_nested_variables = yes; then 19355 AM_V='$(V)' 19356 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19357else 19358 AM_V=$AM_DEFAULT_VERBOSITY 19359 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19360fi 19361AM_BACKSLASH='\' 19362 19363 19364 19365 19366 19367 19368 19369 19370# Check whether --with-lint was given. 19371if test ${with_lint+y} 19372then : 19373 withval=$with_lint; use_lint=$withval 19374else $as_nop 19375 use_lint=no 19376fi 19377 19378 19379# Obtain platform specific info like program name and options 19380# The lint program on FreeBSD and NetBSD is different from the one on Solaris 19381case $host_os in 19382 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19383 lint_name=splint 19384 lint_options="-badflag" 19385 ;; 19386 *freebsd* | *netbsd*) 19387 lint_name=lint 19388 lint_options="-u -b" 19389 ;; 19390 *solaris*) 19391 lint_name=lint 19392 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19393 ;; 19394esac 19395 19396# Test for the presence of the program (either guessed by the code or spelled out by the user) 19397if test "x$use_lint" = x"yes" ; then 19398 # Extract the first word of "$lint_name", so it can be a program name with args. 19399set dummy $lint_name; ac_word=$2 19400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19401printf %s "checking for $ac_word... " >&6; } 19402if test ${ac_cv_path_LINT+y} 19403then : 19404 printf %s "(cached) " >&6 19405else $as_nop 19406 case $LINT in 19407 [\\/]* | ?:[\\/]*) 19408 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19409 ;; 19410 *) 19411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19412for as_dir in $PATH 19413do 19414 IFS=$as_save_IFS 19415 case $as_dir in #((( 19416 '') as_dir=./ ;; 19417 */) ;; 19418 *) as_dir=$as_dir/ ;; 19419 esac 19420 for ac_exec_ext in '' $ac_executable_extensions; do 19421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19422 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 19423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19424 break 2 19425 fi 19426done 19427 done 19428IFS=$as_save_IFS 19429 19430 ;; 19431esac 19432fi 19433LINT=$ac_cv_path_LINT 19434if test -n "$LINT"; then 19435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 19436printf "%s\n" "$LINT" >&6; } 19437else 19438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19439printf "%s\n" "no" >&6; } 19440fi 19441 19442 19443 if test "x$LINT" = "x"; then 19444 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 19445 fi 19446elif test "x$use_lint" = x"no" ; then 19447 if test "x$LINT" != "x"; then 19448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 19449printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 19450 fi 19451else 19452 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 19453fi 19454 19455# User supplied flags override default flags 19456if test "x$LINT_FLAGS" != "x"; then 19457 lint_options=$LINT_FLAGS 19458fi 19459 19460LINT_FLAGS=$lint_options 19461 19462 if test "x$LINT" != x; then 19463 LINT_TRUE= 19464 LINT_FALSE='#' 19465else 19466 LINT_TRUE='#' 19467 LINT_FALSE= 19468fi 19469 19470 19471 19472LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}" 19473 19474 19475 19476# Check whether --enable-futex was given. 19477if test ${enable_futex+y} 19478then : 19479 enableval=$enable_futex; FUTEX=$enableval 19480else $as_nop 19481 FUTEX=auto 19482fi 19483 19484 19485if test "x$FUTEX" = "xauto"; then 19486 ac_fn_c_check_header_compile "$LINENO" "linux/futex.h" "ac_cv_header_linux_futex_h" "$ac_includes_default" 19487if test "x$ac_cv_header_linux_futex_h" = xyes 19488then : 19489 FUTEX=yes 19490fi 19491 19492fi 19493 19494if test "x$FUTEX" = "xauto"; then 19495 ac_fn_c_check_header_compile "$LINENO" "sys/umtx.h" "ac_cv_header_sys_umtx_h" "#include <errno.h> 19496 #include <sys/types.h> 19497" 19498if test "x$ac_cv_header_sys_umtx_h" = xyes 19499then : 19500 FUTEX=yes 19501else $as_nop 19502 FUTEX=no 19503fi 19504 19505 if test "x$FUTEX" = "xyes"; then 19506 19507printf "%s\n" "#define HAVE_UMTX 1" >>confdefs.h 19508 19509 fi 19510fi 19511 19512if test "x$FUTEX" = "xyes"; then 19513 PTHREAD=no 19514 19515printf "%s\n" "#define HAVE_FUTEX 1" >>confdefs.h 19516 19517else 19518 PTHREAD=yes 19519 19520printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 19521 19522fi 19523 19524PTHREAD_LIBS= 19525if test "x$PTHREAD" = "xyes"; then 19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 19527printf %s "checking for pthread_create in -lpthread... " >&6; } 19528if test ${ac_cv_lib_pthread_pthread_create+y} 19529then : 19530 printf %s "(cached) " >&6 19531else $as_nop 19532 ac_check_lib_save_LIBS=$LIBS 19533LIBS="-lpthread $LIBS" 19534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19535/* end confdefs.h. */ 19536 19537/* Override any GCC internal prototype to avoid an error. 19538 Use char because int might match the return type of a GCC 19539 builtin and then its argument prototype would still apply. */ 19540char pthread_create (); 19541int 19542main (void) 19543{ 19544return pthread_create (); 19545 ; 19546 return 0; 19547} 19548_ACEOF 19549if ac_fn_c_try_link "$LINENO" 19550then : 19551 ac_cv_lib_pthread_pthread_create=yes 19552else $as_nop 19553 ac_cv_lib_pthread_pthread_create=no 19554fi 19555rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19556 conftest$ac_exeext conftest.$ac_ext 19557LIBS=$ac_check_lib_save_LIBS 19558fi 19559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 19560printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } 19561if test "x$ac_cv_lib_pthread_pthread_create" = xyes 19562then : 19563 PTHREAD_LIBS=-lpthread 19564else $as_nop 19565 PTHREAD_LIBS= 19566fi 19567 19568fi 19569 19570 19571 19572 if test x"$FUTEX" = xyes; then 19573 FUTEX_TRUE= 19574 FUTEX_FALSE='#' 19575else 19576 FUTEX_TRUE='#' 19577 FUTEX_FALSE= 19578fi 19579 19580 if test x"$PTHREAD" = xyes; then 19581 PTHREAD_TRUE= 19582 PTHREAD_FALSE='#' 19583else 19584 PTHREAD_TRUE='#' 19585 PTHREAD_FALSE= 19586fi 19587 19588 19589 19590pkg_failed=no 19591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5 19592printf %s "checking for XPROTO... " >&6; } 19593 19594if test -n "$XPROTO_CFLAGS"; then 19595 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS" 19596 elif test -n "$PKG_CONFIG"; then 19597 if test -n "$PKG_CONFIG" && \ 19598 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 19599 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 19600 ac_status=$? 19601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19602 test $ac_status = 0; }; then 19603 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 19604 test "x$?" != "x0" && pkg_failed=yes 19605else 19606 pkg_failed=yes 19607fi 19608 else 19609 pkg_failed=untried 19610fi 19611if test -n "$XPROTO_LIBS"; then 19612 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS" 19613 elif test -n "$PKG_CONFIG"; then 19614 if test -n "$PKG_CONFIG" && \ 19615 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 19616 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 19617 ac_status=$? 19618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19619 test $ac_status = 0; }; then 19620 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 19621 test "x$?" != "x0" && pkg_failed=yes 19622else 19623 pkg_failed=yes 19624fi 19625 else 19626 pkg_failed=untried 19627fi 19628 19629 19630 19631if test $pkg_failed = yes; then 19632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19633printf "%s\n" "no" >&6; } 19634 19635if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19636 _pkg_short_errors_supported=yes 19637else 19638 _pkg_short_errors_supported=no 19639fi 19640 if test $_pkg_short_errors_supported = yes; then 19641 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1` 19642 else 19643 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1` 19644 fi 19645 # Put the nasty error message in config.log where it belongs 19646 echo "$XPROTO_PKG_ERRORS" >&5 19647 19648 as_fn_error $? "Package requirements (xproto) were not met: 19649 19650$XPROTO_PKG_ERRORS 19651 19652Consider adjusting the PKG_CONFIG_PATH environment variable if you 19653installed software in a non-standard prefix. 19654 19655Alternatively, you may set the environment variables XPROTO_CFLAGS 19656and XPROTO_LIBS to avoid the need to call pkg-config. 19657See the pkg-config man page for more details." "$LINENO" 5 19658elif test $pkg_failed = untried; then 19659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19660printf "%s\n" "no" >&6; } 19661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19662printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19663as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19664is in your PATH or set the PKG_CONFIG environment variable to the full 19665path to pkg-config. 19666 19667Alternatively, you may set the environment variables XPROTO_CFLAGS 19668and XPROTO_LIBS to avoid the need to call pkg-config. 19669See the pkg-config man page for more details. 19670 19671To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19672See \`config.log' for more details" "$LINENO" 5; } 19673else 19674 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS 19675 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS 19676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19677printf "%s\n" "yes" >&6; } 19678 19679fi 19680 19681 19682 19683CFLAGS="$CFLAGS $XPROTO_CFLAGS" 19684 19685ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 19686if test "x$ac_cv_func_memfd_create" = xyes 19687then : 19688 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 19689 19690fi 19691ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 19692if test "x$ac_cv_func_mkostemp" = xyes 19693then : 19694 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 19695 19696fi 19697 19698 19699ac_fn_check_decl "$LINENO" "__NR_memfd_create" "ac_cv_have_decl___NR_memfd_create" "#include <asm/unistd.h> 19700" "$ac_c_undeclared_builtin_options" "CFLAGS" 19701if test "x$ac_cv_have_decl___NR_memfd_create" = xyes 19702then : 19703 ac_have_decl=1 19704else $as_nop 19705 ac_have_decl=0 19706fi 19707printf "%s\n" "#define HAVE_DECL___NR_MEMFD_CREATE $ac_have_decl" >>confdefs.h 19708 19709 19710 for ac_header in sys/memfd.h 19711do : 19712 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default" 19713if test "x$ac_cv_header_sys_memfd_h" = xyes 19714then : 19715 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h 19716 19717printf "%s\n" "#define HAVE_MEMFD_H 1" >>confdefs.h 19718 19719fi 19720 19721done 19722 19723# Check whether --enable-visibility was given. 19724if test ${enable_visibility+y} 19725then : 19726 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 19727else $as_nop 19728 SYMBOL_VISIBILITY=auto 19729fi 19730 19731 19732symbol_visibility= 19733have_visibility=disabled 19734if test x$SYMBOL_VISIBILITY != xno; then 19735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 19736printf %s "checking for symbol visibility support... " >&6; } 19737 if test x$GCC = xyes; then 19738 VISIBILITY_CFLAGS="-fvisibility=hidden" 19739 else 19740 if test x$SUNCC = xyes; then 19741 VISIBILITY_CFLAGS="-xldscope=hidden" 19742 else 19743 have_visibility=no 19744 fi 19745 fi 19746 if test x$have_visibility != xno; then 19747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19748/* end confdefs.h. */ 19749#include <X11/Xfuncproto.h> 19750 extern _X_HIDDEN int hidden_int; 19751 extern _X_EXPORT int public_int; 19752 extern _X_HIDDEN int hidden_int_func(void); 19753 extern _X_EXPORT int public_int_func(void); 19754int 19755main (void) 19756{ 19757 19758 ; 19759 return 0; 19760} 19761_ACEOF 19762if ac_fn_c_try_compile "$LINENO" 19763then : 19764 have_visibility=yes 19765else $as_nop 19766 have_visibility=no 19767fi 19768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19769 fi 19770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 19771printf "%s\n" "$have_visibility" >&6; } 19772 if test x$have_visibility != xno; then 19773 symbol_visibility=$VISIBILITY_CFLAGS 19774 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" 19775 fi 19776fi 19777 19778 19779# Check whether --with-shared-memory-dir was given. 19780if test ${with_shared_memory_dir+y} 19781then : 19782 withval=$with_shared_memory_dir; 19783else $as_nop 19784 with_shared_memory_dir=yes 19785fi 19786 19787 19788shmdirs="/run/shm /dev/shm /var/tmp /tmp" 19789 19790case x"$with_shared_memory_dir" in 19791xyes) 19792 for dir in $shmdirs; do 19793 case x"$with_shared_memory_dir" in 19794 xyes) 19795 echo Checking temp dir "$dir" 19796 if test -d "$dir"; then 19797 with_shared_memory_dir="$dir" 19798 fi 19799 ;; 19800 esac 19801 done 19802 ;; 19803x/*) 19804 ;; 19805xno) 19806 ;; 19807*) 19808 as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5 19809 ;; 19810esac 19811 19812case x"$with_shared_memory_dir" in 19813xyes) 19814 as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5 19815 ;; 19816xno) 19817 ;; 19818*) 19819 19820printf "%s\n" "#define SHMDIR \"$with_shared_memory_dir\"" >>confdefs.h 19821 19822 ;; 19823esac 19824 19825ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile xshmfence.pc" 19826 19827cat >confcache <<\_ACEOF 19828# This file is a shell script that caches the results of configure 19829# tests run on this system so they can be shared between configure 19830# scripts and configure runs, see configure's option --config-cache. 19831# It is not useful on other systems. If it contains results you don't 19832# want to keep, you may remove or edit it. 19833# 19834# config.status only pays attention to the cache file if you give it 19835# the --recheck option to rerun configure. 19836# 19837# `ac_cv_env_foo' variables (set or unset) will be overridden when 19838# loading this file, other *unset* `ac_cv_foo' will be assigned the 19839# following values. 19840 19841_ACEOF 19842 19843# The following way of writing the cache mishandles newlines in values, 19844# but we know of no workaround that is simple, portable, and efficient. 19845# So, we kill variables containing newlines. 19846# Ultrix sh set writes to stderr and can't be redirected directly, 19847# and sets the high bit in the cache file unless we assign to the vars. 19848( 19849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19850 eval ac_val=\$$ac_var 19851 case $ac_val in #( 19852 *${as_nl}*) 19853 case $ac_var in #( 19854 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19855printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19856 esac 19857 case $ac_var in #( 19858 _ | IFS | as_nl) ;; #( 19859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19860 *) { eval $ac_var=; unset $ac_var;} ;; 19861 esac ;; 19862 esac 19863 done 19864 19865 (set) 2>&1 | 19866 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19867 *${as_nl}ac_space=\ *) 19868 # `set' does not quote correctly, so add quotes: double-quote 19869 # substitution turns \\\\ into \\, and sed turns \\ into \. 19870 sed -n \ 19871 "s/'/'\\\\''/g; 19872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19873 ;; #( 19874 *) 19875 # `set' quotes correctly as required by POSIX, so do not add quotes. 19876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19877 ;; 19878 esac | 19879 sort 19880) | 19881 sed ' 19882 /^ac_cv_env_/b end 19883 t clear 19884 :clear 19885 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19886 t end 19887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19888 :end' >>confcache 19889if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19890 if test -w "$cache_file"; then 19891 if test "x$cache_file" != "x/dev/null"; then 19892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19893printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19894 if test ! -f "$cache_file" || test -h "$cache_file"; then 19895 cat confcache >"$cache_file" 19896 else 19897 case $cache_file in #( 19898 */* | ?:*) 19899 mv -f confcache "$cache_file"$$ && 19900 mv -f "$cache_file"$$ "$cache_file" ;; #( 19901 *) 19902 mv -f confcache "$cache_file" ;; 19903 esac 19904 fi 19905 fi 19906 else 19907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19908printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19909 fi 19910fi 19911rm -f confcache 19912 19913test "x$prefix" = xNONE && prefix=$ac_default_prefix 19914# Let make expand exec_prefix. 19915test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19916 19917DEFS=-DHAVE_CONFIG_H 19918 19919ac_libobjs= 19920ac_ltlibobjs= 19921U= 19922for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19923 # 1. Remove the extension, and $U if already installed. 19924 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19925 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19926 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19927 # will be set to the directory where LIBOBJS objects are built. 19928 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19929 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19930done 19931LIBOBJS=$ac_libobjs 19932 19933LTLIBOBJS=$ac_ltlibobjs 19934 19935 19936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19937printf %s "checking that generated files are newer than configure... " >&6; } 19938 if test -n "$am_sleep_pid"; then 19939 # Hide warnings about reused PIDs. 19940 wait $am_sleep_pid 2>/dev/null 19941 fi 19942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19943printf "%s\n" "done" >&6; } 19944if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19945 as_fn_error $? "conditional \"AMDEP\" was never defined. 19946Usually this means the macro was only invoked conditionally." "$LINENO" 5 19947fi 19948if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19949 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19950Usually this means the macro was only invoked conditionally." "$LINENO" 5 19951fi 19952 if test -n "$EXEEXT"; then 19953 am__EXEEXT_TRUE= 19954 am__EXEEXT_FALSE='#' 19955else 19956 am__EXEEXT_TRUE='#' 19957 am__EXEEXT_FALSE= 19958fi 19959 19960if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19961 as_fn_error $? "conditional \"LINT\" was never defined. 19962Usually this means the macro was only invoked conditionally." "$LINENO" 5 19963fi 19964if test -z "${FUTEX_TRUE}" && test -z "${FUTEX_FALSE}"; then 19965 as_fn_error $? "conditional \"FUTEX\" was never defined. 19966Usually this means the macro was only invoked conditionally." "$LINENO" 5 19967fi 19968if test -z "${PTHREAD_TRUE}" && test -z "${PTHREAD_FALSE}"; then 19969 as_fn_error $? "conditional \"PTHREAD\" was never defined. 19970Usually this means the macro was only invoked conditionally." "$LINENO" 5 19971fi 19972 19973: "${CONFIG_STATUS=./config.status}" 19974ac_write_fail=0 19975ac_clean_files_save=$ac_clean_files 19976ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19978printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19979as_write_fail=0 19980cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19981#! $SHELL 19982# Generated by $as_me. 19983# Run this file to recreate the current configuration. 19984# Compiler output produced by configure, useful for debugging 19985# configure, is in config.log if it exists. 19986 19987debug=false 19988ac_cs_recheck=false 19989ac_cs_silent=false 19990 19991SHELL=\${CONFIG_SHELL-$SHELL} 19992export SHELL 19993_ASEOF 19994cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19995## -------------------- ## 19996## M4sh Initialization. ## 19997## -------------------- ## 19998 19999# Be more Bourne compatible 20000DUALCASE=1; export DUALCASE # for MKS sh 20001as_nop=: 20002if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20003then : 20004 emulate sh 20005 NULLCMD=: 20006 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20007 # is contrary to our usage. Disable this feature. 20008 alias -g '${1+"$@"}'='"$@"' 20009 setopt NO_GLOB_SUBST 20010else $as_nop 20011 case `(set -o) 2>/dev/null` in #( 20012 *posix*) : 20013 set -o posix ;; #( 20014 *) : 20015 ;; 20016esac 20017fi 20018 20019 20020 20021# Reset variables that may have inherited troublesome values from 20022# the environment. 20023 20024# IFS needs to be set, to space, tab, and newline, in precisely that order. 20025# (If _AS_PATH_WALK were called with IFS unset, it would have the 20026# side effect of setting IFS to empty, thus disabling word splitting.) 20027# Quoting is to prevent editors from complaining about space-tab. 20028as_nl=' 20029' 20030export as_nl 20031IFS=" "" $as_nl" 20032 20033PS1='$ ' 20034PS2='> ' 20035PS4='+ ' 20036 20037# Ensure predictable behavior from utilities with locale-dependent output. 20038LC_ALL=C 20039export LC_ALL 20040LANGUAGE=C 20041export LANGUAGE 20042 20043# We cannot yet rely on "unset" to work, but we need these variables 20044# to be unset--not just set to an empty or harmless value--now, to 20045# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20046# also avoids known problems related to "unset" and subshell syntax 20047# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20048for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20049do eval test \${$as_var+y} \ 20050 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20051done 20052 20053# Ensure that fds 0, 1, and 2 are open. 20054if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20055if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20056if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20057 20058# The user is always right. 20059if ${PATH_SEPARATOR+false} :; then 20060 PATH_SEPARATOR=: 20061 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20062 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20063 PATH_SEPARATOR=';' 20064 } 20065fi 20066 20067 20068# Find who we are. Look in the path if we contain no directory separator. 20069as_myself= 20070case $0 in #(( 20071 *[\\/]* ) as_myself=$0 ;; 20072 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20073for as_dir in $PATH 20074do 20075 IFS=$as_save_IFS 20076 case $as_dir in #((( 20077 '') as_dir=./ ;; 20078 */) ;; 20079 *) as_dir=$as_dir/ ;; 20080 esac 20081 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20082 done 20083IFS=$as_save_IFS 20084 20085 ;; 20086esac 20087# We did not find ourselves, most probably we were run as `sh COMMAND' 20088# in which case we are not to be found in the path. 20089if test "x$as_myself" = x; then 20090 as_myself=$0 20091fi 20092if test ! -f "$as_myself"; then 20093 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20094 exit 1 20095fi 20096 20097 20098 20099# as_fn_error STATUS ERROR [LINENO LOG_FD] 20100# ---------------------------------------- 20101# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20102# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20103# script with STATUS, using 1 if that was 0. 20104as_fn_error () 20105{ 20106 as_status=$1; test $as_status -eq 0 && as_status=1 20107 if test "$4"; then 20108 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20110 fi 20111 printf "%s\n" "$as_me: error: $2" >&2 20112 as_fn_exit $as_status 20113} # as_fn_error 20114 20115 20116 20117# as_fn_set_status STATUS 20118# ----------------------- 20119# Set $? to STATUS, without forking. 20120as_fn_set_status () 20121{ 20122 return $1 20123} # as_fn_set_status 20124 20125# as_fn_exit STATUS 20126# ----------------- 20127# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20128as_fn_exit () 20129{ 20130 set +e 20131 as_fn_set_status $1 20132 exit $1 20133} # as_fn_exit 20134 20135# as_fn_unset VAR 20136# --------------- 20137# Portably unset VAR. 20138as_fn_unset () 20139{ 20140 { eval $1=; unset $1;} 20141} 20142as_unset=as_fn_unset 20143 20144# as_fn_append VAR VALUE 20145# ---------------------- 20146# Append the text in VALUE to the end of the definition contained in VAR. Take 20147# advantage of any shell optimizations that allow amortized linear growth over 20148# repeated appends, instead of the typical quadratic growth present in naive 20149# implementations. 20150if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20151then : 20152 eval 'as_fn_append () 20153 { 20154 eval $1+=\$2 20155 }' 20156else $as_nop 20157 as_fn_append () 20158 { 20159 eval $1=\$$1\$2 20160 } 20161fi # as_fn_append 20162 20163# as_fn_arith ARG... 20164# ------------------ 20165# Perform arithmetic evaluation on the ARGs, and store the result in the 20166# global $as_val. Take advantage of shells that can avoid forks. The arguments 20167# must be portable across $(()) and expr. 20168if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20169then : 20170 eval 'as_fn_arith () 20171 { 20172 as_val=$(( $* )) 20173 }' 20174else $as_nop 20175 as_fn_arith () 20176 { 20177 as_val=`expr "$@" || test $? -eq 1` 20178 } 20179fi # as_fn_arith 20180 20181 20182if expr a : '\(a\)' >/dev/null 2>&1 && 20183 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20184 as_expr=expr 20185else 20186 as_expr=false 20187fi 20188 20189if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20190 as_basename=basename 20191else 20192 as_basename=false 20193fi 20194 20195if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20196 as_dirname=dirname 20197else 20198 as_dirname=false 20199fi 20200 20201as_me=`$as_basename -- "$0" || 20202$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20203 X"$0" : 'X\(//\)$' \| \ 20204 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20205printf "%s\n" X/"$0" | 20206 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20207 s//\1/ 20208 q 20209 } 20210 /^X\/\(\/\/\)$/{ 20211 s//\1/ 20212 q 20213 } 20214 /^X\/\(\/\).*/{ 20215 s//\1/ 20216 q 20217 } 20218 s/.*/./; q'` 20219 20220# Avoid depending upon Character Ranges. 20221as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20222as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20223as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20224as_cr_digits='0123456789' 20225as_cr_alnum=$as_cr_Letters$as_cr_digits 20226 20227 20228# Determine whether it's possible to make 'echo' print without a newline. 20229# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20230# for compatibility with existing Makefiles. 20231ECHO_C= ECHO_N= ECHO_T= 20232case `echo -n x` in #((((( 20233-n*) 20234 case `echo 'xy\c'` in 20235 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20236 xy) ECHO_C='\c';; 20237 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20238 ECHO_T=' ';; 20239 esac;; 20240*) 20241 ECHO_N='-n';; 20242esac 20243 20244# For backward compatibility with old third-party macros, we provide 20245# the shell variables $as_echo and $as_echo_n. New code should use 20246# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20247as_echo='printf %s\n' 20248as_echo_n='printf %s' 20249 20250rm -f conf$$ conf$$.exe conf$$.file 20251if test -d conf$$.dir; then 20252 rm -f conf$$.dir/conf$$.file 20253else 20254 rm -f conf$$.dir 20255 mkdir conf$$.dir 2>/dev/null 20256fi 20257if (echo >conf$$.file) 2>/dev/null; then 20258 if ln -s conf$$.file conf$$ 2>/dev/null; then 20259 as_ln_s='ln -s' 20260 # ... but there are two gotchas: 20261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20263 # In both cases, we have to default to `cp -pR'. 20264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20265 as_ln_s='cp -pR' 20266 elif ln conf$$.file conf$$ 2>/dev/null; then 20267 as_ln_s=ln 20268 else 20269 as_ln_s='cp -pR' 20270 fi 20271else 20272 as_ln_s='cp -pR' 20273fi 20274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20275rmdir conf$$.dir 2>/dev/null 20276 20277 20278# as_fn_mkdir_p 20279# ------------- 20280# Create "$as_dir" as a directory, including parents if necessary. 20281as_fn_mkdir_p () 20282{ 20283 20284 case $as_dir in #( 20285 -*) as_dir=./$as_dir;; 20286 esac 20287 test -d "$as_dir" || eval $as_mkdir_p || { 20288 as_dirs= 20289 while :; do 20290 case $as_dir in #( 20291 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20292 *) as_qdir=$as_dir;; 20293 esac 20294 as_dirs="'$as_qdir' $as_dirs" 20295 as_dir=`$as_dirname -- "$as_dir" || 20296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20297 X"$as_dir" : 'X\(//\)[^/]' \| \ 20298 X"$as_dir" : 'X\(//\)$' \| \ 20299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20300printf "%s\n" X"$as_dir" | 20301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20302 s//\1/ 20303 q 20304 } 20305 /^X\(\/\/\)[^/].*/{ 20306 s//\1/ 20307 q 20308 } 20309 /^X\(\/\/\)$/{ 20310 s//\1/ 20311 q 20312 } 20313 /^X\(\/\).*/{ 20314 s//\1/ 20315 q 20316 } 20317 s/.*/./; q'` 20318 test -d "$as_dir" && break 20319 done 20320 test -z "$as_dirs" || eval "mkdir $as_dirs" 20321 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20322 20323 20324} # as_fn_mkdir_p 20325if mkdir -p . 2>/dev/null; then 20326 as_mkdir_p='mkdir -p "$as_dir"' 20327else 20328 test -d ./-p && rmdir ./-p 20329 as_mkdir_p=false 20330fi 20331 20332 20333# as_fn_executable_p FILE 20334# ----------------------- 20335# Test if FILE is an executable regular file. 20336as_fn_executable_p () 20337{ 20338 test -f "$1" && test -x "$1" 20339} # as_fn_executable_p 20340as_test_x='test -x' 20341as_executable_p=as_fn_executable_p 20342 20343# Sed expression to map a string onto a valid CPP name. 20344as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20345 20346# Sed expression to map a string onto a valid variable name. 20347as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20348 20349 20350exec 6>&1 20351## ----------------------------------- ## 20352## Main body of $CONFIG_STATUS script. ## 20353## ----------------------------------- ## 20354_ASEOF 20355test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20356 20357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20358# Save the log message, to keep $0 and so on meaningful, and to 20359# report actual input values of CONFIG_FILES etc. instead of their 20360# values after options handling. 20361ac_log=" 20362This file was extended by libxshmfence $as_me 1.3.1, which was 20363generated by GNU Autoconf 2.71. Invocation command line was 20364 20365 CONFIG_FILES = $CONFIG_FILES 20366 CONFIG_HEADERS = $CONFIG_HEADERS 20367 CONFIG_LINKS = $CONFIG_LINKS 20368 CONFIG_COMMANDS = $CONFIG_COMMANDS 20369 $ $0 $@ 20370 20371on `(hostname || uname -n) 2>/dev/null | sed 1q` 20372" 20373 20374_ACEOF 20375 20376case $ac_config_files in *" 20377"*) set x $ac_config_files; shift; ac_config_files=$*;; 20378esac 20379 20380case $ac_config_headers in *" 20381"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20382esac 20383 20384 20385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20386# Files that config.status was made for. 20387config_files="$ac_config_files" 20388config_headers="$ac_config_headers" 20389config_commands="$ac_config_commands" 20390 20391_ACEOF 20392 20393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20394ac_cs_usage="\ 20395\`$as_me' instantiates files and other configuration actions 20396from templates according to the current configuration. Unless the files 20397and actions are specified as TAGs, all are instantiated by default. 20398 20399Usage: $0 [OPTION]... [TAG]... 20400 20401 -h, --help print this help, then exit 20402 -V, --version print version number and configuration settings, then exit 20403 --config print configuration, then exit 20404 -q, --quiet, --silent 20405 do not print progress messages 20406 -d, --debug don't remove temporary files 20407 --recheck update $as_me by reconfiguring in the same conditions 20408 --file=FILE[:TEMPLATE] 20409 instantiate the configuration file FILE 20410 --header=FILE[:TEMPLATE] 20411 instantiate the configuration header FILE 20412 20413Configuration files: 20414$config_files 20415 20416Configuration headers: 20417$config_headers 20418 20419Configuration commands: 20420$config_commands 20421 20422Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>." 20423 20424_ACEOF 20425ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20426ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20428ac_cs_config='$ac_cs_config_escaped' 20429ac_cs_version="\\ 20430libxshmfence config.status 1.3.1 20431configured by $0, generated by GNU Autoconf 2.71, 20432 with options \\"\$ac_cs_config\\" 20433 20434Copyright (C) 2021 Free Software Foundation, Inc. 20435This config.status script is free software; the Free Software Foundation 20436gives unlimited permission to copy, distribute and modify it." 20437 20438ac_pwd='$ac_pwd' 20439srcdir='$srcdir' 20440INSTALL='$INSTALL' 20441MKDIR_P='$MKDIR_P' 20442AWK='$AWK' 20443test -n "\$AWK" || AWK=awk 20444_ACEOF 20445 20446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20447# The default lists apply if the user does not specify any file. 20448ac_need_defaults=: 20449while test $# != 0 20450do 20451 case $1 in 20452 --*=?*) 20453 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20454 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20455 ac_shift=: 20456 ;; 20457 --*=) 20458 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20459 ac_optarg= 20460 ac_shift=: 20461 ;; 20462 *) 20463 ac_option=$1 20464 ac_optarg=$2 20465 ac_shift=shift 20466 ;; 20467 esac 20468 20469 case $ac_option in 20470 # Handling of the options. 20471 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20472 ac_cs_recheck=: ;; 20473 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20474 printf "%s\n" "$ac_cs_version"; exit ;; 20475 --config | --confi | --conf | --con | --co | --c ) 20476 printf "%s\n" "$ac_cs_config"; exit ;; 20477 --debug | --debu | --deb | --de | --d | -d ) 20478 debug=: ;; 20479 --file | --fil | --fi | --f ) 20480 $ac_shift 20481 case $ac_optarg in 20482 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20483 '') as_fn_error $? "missing file argument" ;; 20484 esac 20485 as_fn_append CONFIG_FILES " '$ac_optarg'" 20486 ac_need_defaults=false;; 20487 --header | --heade | --head | --hea ) 20488 $ac_shift 20489 case $ac_optarg in 20490 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20491 esac 20492 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20493 ac_need_defaults=false;; 20494 --he | --h) 20495 # Conflict between --help and --header 20496 as_fn_error $? "ambiguous option: \`$1' 20497Try \`$0 --help' for more information.";; 20498 --help | --hel | -h ) 20499 printf "%s\n" "$ac_cs_usage"; exit ;; 20500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20501 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20502 ac_cs_silent=: ;; 20503 20504 # This is an error. 20505 -*) as_fn_error $? "unrecognized option: \`$1' 20506Try \`$0 --help' for more information." ;; 20507 20508 *) as_fn_append ac_config_targets " $1" 20509 ac_need_defaults=false ;; 20510 20511 esac 20512 shift 20513done 20514 20515ac_configure_extra_args= 20516 20517if $ac_cs_silent; then 20518 exec 6>/dev/null 20519 ac_configure_extra_args="$ac_configure_extra_args --silent" 20520fi 20521 20522_ACEOF 20523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20524if \$ac_cs_recheck; then 20525 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20526 shift 20527 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20528 CONFIG_SHELL='$SHELL' 20529 export CONFIG_SHELL 20530 exec "\$@" 20531fi 20532 20533_ACEOF 20534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20535exec 5>>config.log 20536{ 20537 echo 20538 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20539## Running $as_me. ## 20540_ASBOX 20541 printf "%s\n" "$ac_log" 20542} >&5 20543 20544_ACEOF 20545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20546# 20547# INIT-COMMANDS 20548# 20549AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20550 20551 20552# The HP-UX ksh and POSIX shell print the target directory to stdout 20553# if CDPATH is set. 20554(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20555 20556sed_quote_subst='$sed_quote_subst' 20557double_quote_subst='$double_quote_subst' 20558delay_variable_subst='$delay_variable_subst' 20559macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20560macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20561enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20562enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20563pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20564enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20565shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20566SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20567ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20568PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20569host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20570host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20571host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20572build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20573build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20574build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20575SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20576Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20577GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20578EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20579FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20580LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20581NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20582LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20583max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20584ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20585exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20586lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20587lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20588lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20589lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20590lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20591reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20592reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20593FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20594OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20595deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20596file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20597file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20598want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20599DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20600sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20601AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20602lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20603AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20604archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20605STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20606RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20607old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20608old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20609old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20610lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20611CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20612CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20613compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20614GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20615lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20616lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20617lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20618lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20619lt_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"`' 20620lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20621nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20622lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20623lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20624objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20625MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20626lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20627lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20628lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20629lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20630lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20631need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20632MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20633DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20634NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20635LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20636OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20637OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20638libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20639shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20640extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20641archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20642enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20643export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20644whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20645compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20646old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20647old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20648archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20649archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20650module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20651module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20652with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20653allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20654no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20655hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20656hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20657hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20658hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20659hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20660hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20661hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20662inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20663link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20664always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20665export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20666exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20667include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20668prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20669postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20670file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20671variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20672need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20673need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20674version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20675runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20676shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20677shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20678libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20679library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20680soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20681install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20682postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20683postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20684finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20685finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20686hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20687sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20688configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20689configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20690hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20691enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20692enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20693enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20694old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20695striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20696 20697LTCC='$LTCC' 20698LTCFLAGS='$LTCFLAGS' 20699compiler='$compiler_DEFAULT' 20700 20701# A function that is used when there is no print builtin or printf. 20702func_fallback_echo () 20703{ 20704 eval 'cat <<_LTECHO_EOF 20705\$1 20706_LTECHO_EOF' 20707} 20708 20709# Quote evaled strings. 20710for var in SHELL \ 20711ECHO \ 20712PATH_SEPARATOR \ 20713SED \ 20714GREP \ 20715EGREP \ 20716FGREP \ 20717LD \ 20718NM \ 20719LN_S \ 20720lt_SP2NL \ 20721lt_NL2SP \ 20722reload_flag \ 20723FILECMD \ 20724OBJDUMP \ 20725deplibs_check_method \ 20726file_magic_cmd \ 20727file_magic_glob \ 20728want_nocaseglob \ 20729DLLTOOL \ 20730sharedlib_from_linklib_cmd \ 20731AR \ 20732archiver_list_spec \ 20733STRIP \ 20734RANLIB \ 20735CC \ 20736CFLAGS \ 20737compiler \ 20738lt_cv_sys_global_symbol_pipe \ 20739lt_cv_sys_global_symbol_to_cdecl \ 20740lt_cv_sys_global_symbol_to_import \ 20741lt_cv_sys_global_symbol_to_c_name_address \ 20742lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20743lt_cv_nm_interface \ 20744nm_file_list_spec \ 20745lt_cv_truncate_bin \ 20746lt_prog_compiler_no_builtin_flag \ 20747lt_prog_compiler_pic \ 20748lt_prog_compiler_wl \ 20749lt_prog_compiler_static \ 20750lt_cv_prog_compiler_c_o \ 20751need_locks \ 20752MANIFEST_TOOL \ 20753DSYMUTIL \ 20754NMEDIT \ 20755LIPO \ 20756OTOOL \ 20757OTOOL64 \ 20758shrext_cmds \ 20759export_dynamic_flag_spec \ 20760whole_archive_flag_spec \ 20761compiler_needs_object \ 20762with_gnu_ld \ 20763allow_undefined_flag \ 20764no_undefined_flag \ 20765hardcode_libdir_flag_spec \ 20766hardcode_libdir_separator \ 20767exclude_expsyms \ 20768include_expsyms \ 20769file_list_spec \ 20770variables_saved_for_relink \ 20771libname_spec \ 20772library_names_spec \ 20773soname_spec \ 20774install_override_mode \ 20775finish_eval \ 20776old_striplib \ 20777striplib; do 20778 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20779 *[\\\\\\\`\\"\\\$]*) 20780 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20781 ;; 20782 *) 20783 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20784 ;; 20785 esac 20786done 20787 20788# Double-quote double-evaled strings. 20789for var in reload_cmds \ 20790old_postinstall_cmds \ 20791old_postuninstall_cmds \ 20792old_archive_cmds \ 20793extract_expsyms_cmds \ 20794old_archive_from_new_cmds \ 20795old_archive_from_expsyms_cmds \ 20796archive_cmds \ 20797archive_expsym_cmds \ 20798module_cmds \ 20799module_expsym_cmds \ 20800export_symbols_cmds \ 20801prelink_cmds \ 20802postlink_cmds \ 20803postinstall_cmds \ 20804postuninstall_cmds \ 20805finish_cmds \ 20806sys_lib_search_path_spec \ 20807configure_time_dlsearch_path \ 20808configure_time_lt_sys_library_path; do 20809 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20810 *[\\\\\\\`\\"\\\$]*) 20811 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20812 ;; 20813 *) 20814 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20815 ;; 20816 esac 20817done 20818 20819ac_aux_dir='$ac_aux_dir' 20820 20821# See if we are running on zsh, and set the options that allow our 20822# commands through without removal of \ escapes INIT. 20823if test -n "\${ZSH_VERSION+set}"; then 20824 setopt NO_GLOB_SUBST 20825fi 20826 20827 20828 PACKAGE='$PACKAGE' 20829 VERSION='$VERSION' 20830 RM='$RM' 20831 ofile='$ofile' 20832 20833 20834 20835 20836_ACEOF 20837 20838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20839 20840# Handling of arguments. 20841for ac_config_target in $ac_config_targets 20842do 20843 case $ac_config_target in 20844 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20845 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20846 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20847 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20848 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20849 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 20850 "xshmfence.pc") CONFIG_FILES="$CONFIG_FILES xshmfence.pc" ;; 20851 20852 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20853 esac 20854done 20855 20856 20857# If the user did not use the arguments to specify the items to instantiate, 20858# then the envvar interface is used. Set only those that are not. 20859# We use the long form for the default assignment because of an extremely 20860# bizarre bug on SunOS 4.1.3. 20861if $ac_need_defaults; then 20862 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20863 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20864 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20865fi 20866 20867# Have a temporary directory for convenience. Make it in the build tree 20868# simply because there is no reason against having it here, and in addition, 20869# creating and moving files from /tmp can sometimes cause problems. 20870# Hook for its removal unless debugging. 20871# Note that there is a small window in which the directory will not be cleaned: 20872# after its creation but before its name has been assigned to `$tmp'. 20873$debug || 20874{ 20875 tmp= ac_tmp= 20876 trap 'exit_status=$? 20877 : "${ac_tmp:=$tmp}" 20878 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20879' 0 20880 trap 'as_fn_exit 1' 1 2 13 15 20881} 20882# Create a (secure) tmp directory for tmp files. 20883 20884{ 20885 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20886 test -d "$tmp" 20887} || 20888{ 20889 tmp=./conf$$-$RANDOM 20890 (umask 077 && mkdir "$tmp") 20891} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20892ac_tmp=$tmp 20893 20894# Set up the scripts for CONFIG_FILES section. 20895# No need to generate them if there are no CONFIG_FILES. 20896# This happens for instance with `./config.status config.h'. 20897if test -n "$CONFIG_FILES"; then 20898 20899 20900ac_cr=`echo X | tr X '\015'` 20901# On cygwin, bash can eat \r inside `` if the user requested igncr. 20902# But we know of no other shell where ac_cr would be empty at this 20903# point, so we can use a bashism as a fallback. 20904if test "x$ac_cr" = x; then 20905 eval ac_cr=\$\'\\r\' 20906fi 20907ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20908if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20909 ac_cs_awk_cr='\\r' 20910else 20911 ac_cs_awk_cr=$ac_cr 20912fi 20913 20914echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20915_ACEOF 20916 20917 20918{ 20919 echo "cat >conf$$subs.awk <<_ACEOF" && 20920 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20921 echo "_ACEOF" 20922} >conf$$subs.sh || 20923 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20924ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20925ac_delim='%!_!# ' 20926for ac_last_try in false false false false false :; do 20927 . ./conf$$subs.sh || 20928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20929 20930 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20931 if test $ac_delim_n = $ac_delim_num; then 20932 break 20933 elif $ac_last_try; then 20934 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20935 else 20936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20937 fi 20938done 20939rm -f conf$$subs.sh 20940 20941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20942cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20943_ACEOF 20944sed -n ' 20945h 20946s/^/S["/; s/!.*/"]=/ 20947p 20948g 20949s/^[^!]*!// 20950:repl 20951t repl 20952s/'"$ac_delim"'$// 20953t delim 20954:nl 20955h 20956s/\(.\{148\}\)..*/\1/ 20957t more1 20958s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20959p 20960n 20961b repl 20962:more1 20963s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20964p 20965g 20966s/.\{148\}// 20967t nl 20968:delim 20969h 20970s/\(.\{148\}\)..*/\1/ 20971t more2 20972s/["\\]/\\&/g; s/^/"/; s/$/"/ 20973p 20974b 20975:more2 20976s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20977p 20978g 20979s/.\{148\}// 20980t delim 20981' <conf$$subs.awk | sed ' 20982/^[^""]/{ 20983 N 20984 s/\n// 20985} 20986' >>$CONFIG_STATUS || ac_write_fail=1 20987rm -f conf$$subs.awk 20988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20989_ACAWK 20990cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20991 for (key in S) S_is_set[key] = 1 20992 FS = "" 20993 20994} 20995{ 20996 line = $ 0 20997 nfields = split(line, field, "@") 20998 substed = 0 20999 len = length(field[1]) 21000 for (i = 2; i < nfields; i++) { 21001 key = field[i] 21002 keylen = length(key) 21003 if (S_is_set[key]) { 21004 value = S[key] 21005 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21006 len += length(value) + length(field[++i]) 21007 substed = 1 21008 } else 21009 len += 1 + keylen 21010 } 21011 21012 print line 21013} 21014 21015_ACAWK 21016_ACEOF 21017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21018if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21019 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21020else 21021 cat 21022fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21023 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21024_ACEOF 21025 21026# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21027# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21028# trailing colons and then remove the whole line if VPATH becomes empty 21029# (actually we leave an empty line to preserve line numbers). 21030if test "x$srcdir" = x.; then 21031 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21032h 21033s/// 21034s/^/:/ 21035s/[ ]*$/:/ 21036s/:\$(srcdir):/:/g 21037s/:\${srcdir}:/:/g 21038s/:@srcdir@:/:/g 21039s/^:*// 21040s/:*$// 21041x 21042s/\(=[ ]*\).*/\1/ 21043G 21044s/\n// 21045s/^[^=]*=[ ]*$// 21046}' 21047fi 21048 21049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21050fi # test -n "$CONFIG_FILES" 21051 21052# Set up the scripts for CONFIG_HEADERS section. 21053# No need to generate them if there are no CONFIG_HEADERS. 21054# This happens for instance with `./config.status Makefile'. 21055if test -n "$CONFIG_HEADERS"; then 21056cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21057BEGIN { 21058_ACEOF 21059 21060# Transform confdefs.h into an awk script `defines.awk', embedded as 21061# here-document in config.status, that substitutes the proper values into 21062# config.h.in to produce config.h. 21063 21064# Create a delimiter string that does not exist in confdefs.h, to ease 21065# handling of long lines. 21066ac_delim='%!_!# ' 21067for ac_last_try in false false :; do 21068 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21069 if test -z "$ac_tt"; then 21070 break 21071 elif $ac_last_try; then 21072 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21073 else 21074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21075 fi 21076done 21077 21078# For the awk script, D is an array of macro values keyed by name, 21079# likewise P contains macro parameters if any. Preserve backslash 21080# newline sequences. 21081 21082ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21083sed -n ' 21084s/.\{148\}/&'"$ac_delim"'/g 21085t rset 21086:rset 21087s/^[ ]*#[ ]*define[ ][ ]*/ / 21088t def 21089d 21090:def 21091s/\\$// 21092t bsnl 21093s/["\\]/\\&/g 21094s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21095D["\1"]=" \3"/p 21096s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21097d 21098:bsnl 21099s/["\\]/\\&/g 21100s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21101D["\1"]=" \3\\\\\\n"\\/p 21102t cont 21103s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21104t cont 21105d 21106:cont 21107n 21108s/.\{148\}/&'"$ac_delim"'/g 21109t clear 21110:clear 21111s/\\$// 21112t bsnlc 21113s/["\\]/\\&/g; s/^/"/; s/$/"/p 21114d 21115:bsnlc 21116s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21117b cont 21118' <confdefs.h | sed ' 21119s/'"$ac_delim"'/"\\\ 21120"/g' >>$CONFIG_STATUS || ac_write_fail=1 21121 21122cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21123 for (key in D) D_is_set[key] = 1 21124 FS = "" 21125} 21126/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21127 line = \$ 0 21128 split(line, arg, " ") 21129 if (arg[1] == "#") { 21130 defundef = arg[2] 21131 mac1 = arg[3] 21132 } else { 21133 defundef = substr(arg[1], 2) 21134 mac1 = arg[2] 21135 } 21136 split(mac1, mac2, "(") #) 21137 macro = mac2[1] 21138 prefix = substr(line, 1, index(line, defundef) - 1) 21139 if (D_is_set[macro]) { 21140 # Preserve the white space surrounding the "#". 21141 print prefix "define", macro P[macro] D[macro] 21142 next 21143 } else { 21144 # Replace #undef with comments. This is necessary, for example, 21145 # in the case of _POSIX_SOURCE, which is predefined and required 21146 # on some systems where configure will not decide to define it. 21147 if (defundef == "undef") { 21148 print "/*", prefix defundef, macro, "*/" 21149 next 21150 } 21151 } 21152} 21153{ print } 21154_ACAWK 21155_ACEOF 21156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21157 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21158fi # test -n "$CONFIG_HEADERS" 21159 21160 21161eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21162shift 21163for ac_tag 21164do 21165 case $ac_tag in 21166 :[FHLC]) ac_mode=$ac_tag; continue;; 21167 esac 21168 case $ac_mode$ac_tag in 21169 :[FHL]*:*);; 21170 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21171 :[FH]-) ac_tag=-:-;; 21172 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21173 esac 21174 ac_save_IFS=$IFS 21175 IFS=: 21176 set x $ac_tag 21177 IFS=$ac_save_IFS 21178 shift 21179 ac_file=$1 21180 shift 21181 21182 case $ac_mode in 21183 :L) ac_source=$1;; 21184 :[FH]) 21185 ac_file_inputs= 21186 for ac_f 21187 do 21188 case $ac_f in 21189 -) ac_f="$ac_tmp/stdin";; 21190 *) # Look for the file first in the build tree, then in the source tree 21191 # (if the path is not absolute). The absolute path cannot be DOS-style, 21192 # because $ac_f cannot contain `:'. 21193 test -f "$ac_f" || 21194 case $ac_f in 21195 [\\/$]*) false;; 21196 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21197 esac || 21198 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21199 esac 21200 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21201 as_fn_append ac_file_inputs " '$ac_f'" 21202 done 21203 21204 # Let's still pretend it is `configure' which instantiates (i.e., don't 21205 # use $as_me), people would be surprised to read: 21206 # /* config.h. Generated by config.status. */ 21207 configure_input='Generated from '` 21208 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21209 `' by configure.' 21210 if test x"$ac_file" != x-; then 21211 configure_input="$ac_file. $configure_input" 21212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21213printf "%s\n" "$as_me: creating $ac_file" >&6;} 21214 fi 21215 # Neutralize special characters interpreted by sed in replacement strings. 21216 case $configure_input in #( 21217 *\&* | *\|* | *\\* ) 21218 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21219 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21220 *) ac_sed_conf_input=$configure_input;; 21221 esac 21222 21223 case $ac_tag in 21224 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21226 esac 21227 ;; 21228 esac 21229 21230 ac_dir=`$as_dirname -- "$ac_file" || 21231$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21232 X"$ac_file" : 'X\(//\)[^/]' \| \ 21233 X"$ac_file" : 'X\(//\)$' \| \ 21234 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21235printf "%s\n" X"$ac_file" | 21236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21237 s//\1/ 21238 q 21239 } 21240 /^X\(\/\/\)[^/].*/{ 21241 s//\1/ 21242 q 21243 } 21244 /^X\(\/\/\)$/{ 21245 s//\1/ 21246 q 21247 } 21248 /^X\(\/\).*/{ 21249 s//\1/ 21250 q 21251 } 21252 s/.*/./; q'` 21253 as_dir="$ac_dir"; as_fn_mkdir_p 21254 ac_builddir=. 21255 21256case "$ac_dir" in 21257.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21258*) 21259 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21260 # A ".." for each directory in $ac_dir_suffix. 21261 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21262 case $ac_top_builddir_sub in 21263 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21264 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21265 esac ;; 21266esac 21267ac_abs_top_builddir=$ac_pwd 21268ac_abs_builddir=$ac_pwd$ac_dir_suffix 21269# for backward compatibility: 21270ac_top_builddir=$ac_top_build_prefix 21271 21272case $srcdir in 21273 .) # We are building in place. 21274 ac_srcdir=. 21275 ac_top_srcdir=$ac_top_builddir_sub 21276 ac_abs_top_srcdir=$ac_pwd ;; 21277 [\\/]* | ?:[\\/]* ) # Absolute name. 21278 ac_srcdir=$srcdir$ac_dir_suffix; 21279 ac_top_srcdir=$srcdir 21280 ac_abs_top_srcdir=$srcdir ;; 21281 *) # Relative name. 21282 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21283 ac_top_srcdir=$ac_top_build_prefix$srcdir 21284 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21285esac 21286ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21287 21288 21289 case $ac_mode in 21290 :F) 21291 # 21292 # CONFIG_FILE 21293 # 21294 21295 case $INSTALL in 21296 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21297 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21298 esac 21299 ac_MKDIR_P=$MKDIR_P 21300 case $MKDIR_P in 21301 [\\/$]* | ?:[\\/]* ) ;; 21302 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21303 esac 21304_ACEOF 21305 21306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21307# If the template does not know about datarootdir, expand it. 21308# FIXME: This hack should be removed a few years after 2.60. 21309ac_datarootdir_hack=; ac_datarootdir_seen= 21310ac_sed_dataroot=' 21311/datarootdir/ { 21312 p 21313 q 21314} 21315/@datadir@/p 21316/@docdir@/p 21317/@infodir@/p 21318/@localedir@/p 21319/@mandir@/p' 21320case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21321*datarootdir*) ac_datarootdir_seen=yes;; 21322*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21324printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21325_ACEOF 21326cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21327 ac_datarootdir_hack=' 21328 s&@datadir@&$datadir&g 21329 s&@docdir@&$docdir&g 21330 s&@infodir@&$infodir&g 21331 s&@localedir@&$localedir&g 21332 s&@mandir@&$mandir&g 21333 s&\\\${datarootdir}&$datarootdir&g' ;; 21334esac 21335_ACEOF 21336 21337# Neutralize VPATH when `$srcdir' = `.'. 21338# Shell code in configure.ac might set extrasub. 21339# FIXME: do we really want to maintain this feature? 21340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21341ac_sed_extra="$ac_vpsub 21342$extrasub 21343_ACEOF 21344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21345:t 21346/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21347s|@configure_input@|$ac_sed_conf_input|;t t 21348s&@top_builddir@&$ac_top_builddir_sub&;t t 21349s&@top_build_prefix@&$ac_top_build_prefix&;t t 21350s&@srcdir@&$ac_srcdir&;t t 21351s&@abs_srcdir@&$ac_abs_srcdir&;t t 21352s&@top_srcdir@&$ac_top_srcdir&;t t 21353s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21354s&@builddir@&$ac_builddir&;t t 21355s&@abs_builddir@&$ac_abs_builddir&;t t 21356s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21357s&@INSTALL@&$ac_INSTALL&;t t 21358s&@MKDIR_P@&$ac_MKDIR_P&;t t 21359$ac_datarootdir_hack 21360" 21361eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21362 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21363 21364test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21365 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21366 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21367 "$ac_tmp/out"`; test -z "$ac_out"; } && 21368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21369which seems to be undefined. Please make sure it is defined" >&5 21370printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21371which seems to be undefined. Please make sure it is defined" >&2;} 21372 21373 rm -f "$ac_tmp/stdin" 21374 case $ac_file in 21375 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21376 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21377 esac \ 21378 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21379 ;; 21380 :H) 21381 # 21382 # CONFIG_HEADER 21383 # 21384 if test x"$ac_file" != x-; then 21385 { 21386 printf "%s\n" "/* $configure_input */" >&1 \ 21387 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21388 } >"$ac_tmp/config.h" \ 21389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21390 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21392printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21393 else 21394 rm -f "$ac_file" 21395 mv "$ac_tmp/config.h" "$ac_file" \ 21396 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21397 fi 21398 else 21399 printf "%s\n" "/* $configure_input */" >&1 \ 21400 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21401 || as_fn_error $? "could not create -" "$LINENO" 5 21402 fi 21403# Compute "$ac_file"'s index in $config_headers. 21404_am_arg="$ac_file" 21405_am_stamp_count=1 21406for _am_header in $config_headers :; do 21407 case $_am_header in 21408 $_am_arg | $_am_arg:* ) 21409 break ;; 21410 * ) 21411 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21412 esac 21413done 21414echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21415$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21416 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21417 X"$_am_arg" : 'X\(//\)$' \| \ 21418 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21419printf "%s\n" X"$_am_arg" | 21420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21421 s//\1/ 21422 q 21423 } 21424 /^X\(\/\/\)[^/].*/{ 21425 s//\1/ 21426 q 21427 } 21428 /^X\(\/\/\)$/{ 21429 s//\1/ 21430 q 21431 } 21432 /^X\(\/\).*/{ 21433 s//\1/ 21434 q 21435 } 21436 s/.*/./; q'`/stamp-h$_am_stamp_count 21437 ;; 21438 21439 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21440printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21441 ;; 21442 esac 21443 21444 21445 case $ac_file$ac_mode in 21446 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21447 # Older Autoconf quotes --file arguments for eval, but not when files 21448 # are listed without --file. Let's play safe and only enable the eval 21449 # if we detect the quoting. 21450 # TODO: see whether this extra hack can be removed once we start 21451 # requiring Autoconf 2.70 or later. 21452 case $CONFIG_FILES in #( 21453 *\'*) : 21454 eval set x "$CONFIG_FILES" ;; #( 21455 *) : 21456 set x $CONFIG_FILES ;; #( 21457 *) : 21458 ;; 21459esac 21460 shift 21461 # Used to flag and report bootstrapping failures. 21462 am_rc=0 21463 for am_mf 21464 do 21465 # Strip MF so we end up with the name of the file. 21466 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21467 # Check whether this is an Automake generated Makefile which includes 21468 # dependency-tracking related rules and includes. 21469 # Grep'ing the whole file directly is not great: AIX grep has a line 21470 # limit of 2048, but all sed's we know have understand at least 4000. 21471 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21472 || continue 21473 am_dirpart=`$as_dirname -- "$am_mf" || 21474$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21475 X"$am_mf" : 'X\(//\)[^/]' \| \ 21476 X"$am_mf" : 'X\(//\)$' \| \ 21477 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21478printf "%s\n" X"$am_mf" | 21479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21480 s//\1/ 21481 q 21482 } 21483 /^X\(\/\/\)[^/].*/{ 21484 s//\1/ 21485 q 21486 } 21487 /^X\(\/\/\)$/{ 21488 s//\1/ 21489 q 21490 } 21491 /^X\(\/\).*/{ 21492 s//\1/ 21493 q 21494 } 21495 s/.*/./; q'` 21496 am_filepart=`$as_basename -- "$am_mf" || 21497$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21498 X"$am_mf" : 'X\(//\)$' \| \ 21499 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21500printf "%s\n" X/"$am_mf" | 21501 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21502 s//\1/ 21503 q 21504 } 21505 /^X\/\(\/\/\)$/{ 21506 s//\1/ 21507 q 21508 } 21509 /^X\/\(\/\).*/{ 21510 s//\1/ 21511 q 21512 } 21513 s/.*/./; q'` 21514 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21515 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21516 | $MAKE -f - am--depfiles" >&5 21517 (cd "$am_dirpart" \ 21518 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21519 | $MAKE -f - am--depfiles) >&5 2>&5 21520 ac_status=$? 21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21522 (exit $ac_status); } || am_rc=$? 21523 done 21524 if test $am_rc -ne 0; then 21525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21526printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21527as_fn_error $? "Something went wrong bootstrapping makefile fragments 21528 for automatic dependency tracking. If GNU make was not used, consider 21529 re-running the configure script with MAKE=\"gmake\" (or whatever is 21530 necessary). You can also try re-running configure with the 21531 '--disable-dependency-tracking' option to at least be able to build 21532 the package (albeit without support for automatic dependency tracking). 21533See \`config.log' for more details" "$LINENO" 5; } 21534 fi 21535 { am_dirpart=; unset am_dirpart;} 21536 { am_filepart=; unset am_filepart;} 21537 { am_mf=; unset am_mf;} 21538 { am_rc=; unset am_rc;} 21539 rm -f conftest-deps.mk 21540} 21541 ;; 21542 "libtool":C) 21543 21544 # See if we are running on zsh, and set the options that allow our 21545 # commands through without removal of \ escapes. 21546 if test -n "${ZSH_VERSION+set}"; then 21547 setopt NO_GLOB_SUBST 21548 fi 21549 21550 cfgfile=${ofile}T 21551 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21552 $RM "$cfgfile" 21553 21554 cat <<_LT_EOF >> "$cfgfile" 21555#! $SHELL 21556# Generated automatically by $as_me ($PACKAGE) $VERSION 21557# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21558# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21559 21560# Provide generalized library-building support services. 21561# Written by Gordon Matzigkeit, 1996 21562 21563# Copyright (C) 2014 Free Software Foundation, Inc. 21564# This is free software; see the source for copying conditions. There is NO 21565# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21566 21567# GNU Libtool is free software; you can redistribute it and/or modify 21568# it under the terms of the GNU General Public License as published by 21569# the Free Software Foundation; either version 2 of of the License, or 21570# (at your option) any later version. 21571# 21572# As a special exception to the GNU General Public License, if you 21573# distribute this file as part of a program or library that is built 21574# using GNU Libtool, you may include this file under the same 21575# distribution terms that you use for the rest of that program. 21576# 21577# GNU Libtool is distributed in the hope that it will be useful, but 21578# WITHOUT ANY WARRANTY; without even the implied warranty of 21579# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21580# GNU General Public License for more details. 21581# 21582# You should have received a copy of the GNU General Public License 21583# along with this program. If not, see <http://www.gnu.org/licenses/>. 21584 21585 21586# The names of the tagged configurations supported by this script. 21587available_tags='' 21588 21589# Configured defaults for sys_lib_dlsearch_path munging. 21590: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21591 21592# ### BEGIN LIBTOOL CONFIG 21593 21594# Which release of libtool.m4 was used? 21595macro_version=$macro_version 21596macro_revision=$macro_revision 21597 21598# Whether or not to build shared libraries. 21599build_libtool_libs=$enable_shared 21600 21601# Whether or not to build static libraries. 21602build_old_libs=$enable_static 21603 21604# What type of objects to build. 21605pic_mode=$pic_mode 21606 21607# Whether or not to optimize for fast installation. 21608fast_install=$enable_fast_install 21609 21610# Shared archive member basename,for filename based shared library versioning on AIX. 21611shared_archive_member_spec=$shared_archive_member_spec 21612 21613# Shell to use when invoking shell scripts. 21614SHELL=$lt_SHELL 21615 21616# An echo program that protects backslashes. 21617ECHO=$lt_ECHO 21618 21619# The PATH separator for the build system. 21620PATH_SEPARATOR=$lt_PATH_SEPARATOR 21621 21622# The host system. 21623host_alias=$host_alias 21624host=$host 21625host_os=$host_os 21626 21627# The build system. 21628build_alias=$build_alias 21629build=$build 21630build_os=$build_os 21631 21632# A sed program that does not truncate output. 21633SED=$lt_SED 21634 21635# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21636Xsed="\$SED -e 1s/^X//" 21637 21638# A grep program that handles long lines. 21639GREP=$lt_GREP 21640 21641# An ERE matcher. 21642EGREP=$lt_EGREP 21643 21644# A literal string matcher. 21645FGREP=$lt_FGREP 21646 21647# A BSD- or MS-compatible name lister. 21648NM=$lt_NM 21649 21650# Whether we need soft or hard links. 21651LN_S=$lt_LN_S 21652 21653# What is the maximum length of a command? 21654max_cmd_len=$max_cmd_len 21655 21656# Object file suffix (normally "o"). 21657objext=$ac_objext 21658 21659# Executable file suffix (normally ""). 21660exeext=$exeext 21661 21662# whether the shell understands "unset". 21663lt_unset=$lt_unset 21664 21665# turn spaces into newlines. 21666SP2NL=$lt_lt_SP2NL 21667 21668# turn newlines into spaces. 21669NL2SP=$lt_lt_NL2SP 21670 21671# convert \$build file names to \$host format. 21672to_host_file_cmd=$lt_cv_to_host_file_cmd 21673 21674# convert \$build files to toolchain format. 21675to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21676 21677# A file(cmd) program that detects file types. 21678FILECMD=$lt_FILECMD 21679 21680# An object symbol dumper. 21681OBJDUMP=$lt_OBJDUMP 21682 21683# Method to check whether dependent libraries are shared objects. 21684deplibs_check_method=$lt_deplibs_check_method 21685 21686# Command to use when deplibs_check_method = "file_magic". 21687file_magic_cmd=$lt_file_magic_cmd 21688 21689# How to find potential files when deplibs_check_method = "file_magic". 21690file_magic_glob=$lt_file_magic_glob 21691 21692# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21693want_nocaseglob=$lt_want_nocaseglob 21694 21695# DLL creation program. 21696DLLTOOL=$lt_DLLTOOL 21697 21698# Command to associate shared and link libraries. 21699sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21700 21701# The archiver. 21702AR=$lt_AR 21703 21704# Flags to create an archive (by configure). 21705lt_ar_flags=$lt_ar_flags 21706 21707# Flags to create an archive. 21708AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21709 21710# How to feed a file listing to the archiver. 21711archiver_list_spec=$lt_archiver_list_spec 21712 21713# A symbol stripping program. 21714STRIP=$lt_STRIP 21715 21716# Commands used to install an old-style archive. 21717RANLIB=$lt_RANLIB 21718old_postinstall_cmds=$lt_old_postinstall_cmds 21719old_postuninstall_cmds=$lt_old_postuninstall_cmds 21720 21721# Whether to use a lock for old archive extraction. 21722lock_old_archive_extraction=$lock_old_archive_extraction 21723 21724# A C compiler. 21725LTCC=$lt_CC 21726 21727# LTCC compiler flags. 21728LTCFLAGS=$lt_CFLAGS 21729 21730# Take the output of nm and produce a listing of raw symbols and C names. 21731global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21732 21733# Transform the output of nm in a proper C declaration. 21734global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21735 21736# Transform the output of nm into a list of symbols to manually relocate. 21737global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21738 21739# Transform the output of nm in a C name address pair. 21740global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21741 21742# Transform the output of nm in a C name address pair when lib prefix is needed. 21743global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21744 21745# The name lister interface. 21746nm_interface=$lt_lt_cv_nm_interface 21747 21748# Specify filename containing input files for \$NM. 21749nm_file_list_spec=$lt_nm_file_list_spec 21750 21751# The root where to search for dependent libraries,and where our libraries should be installed. 21752lt_sysroot=$lt_sysroot 21753 21754# Command to truncate a binary pipe. 21755lt_truncate_bin=$lt_lt_cv_truncate_bin 21756 21757# The name of the directory that contains temporary libtool files. 21758objdir=$objdir 21759 21760# Used to examine libraries when file_magic_cmd begins with "file". 21761MAGIC_CMD=$MAGIC_CMD 21762 21763# Must we lock files when doing compilation? 21764need_locks=$lt_need_locks 21765 21766# Manifest tool. 21767MANIFEST_TOOL=$lt_MANIFEST_TOOL 21768 21769# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21770DSYMUTIL=$lt_DSYMUTIL 21771 21772# Tool to change global to local symbols on Mac OS X. 21773NMEDIT=$lt_NMEDIT 21774 21775# Tool to manipulate fat objects and archives on Mac OS X. 21776LIPO=$lt_LIPO 21777 21778# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21779OTOOL=$lt_OTOOL 21780 21781# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21782OTOOL64=$lt_OTOOL64 21783 21784# Old archive suffix (normally "a"). 21785libext=$libext 21786 21787# Shared library suffix (normally ".so"). 21788shrext_cmds=$lt_shrext_cmds 21789 21790# The commands to extract the exported symbol list from a shared archive. 21791extract_expsyms_cmds=$lt_extract_expsyms_cmds 21792 21793# Variables whose values should be saved in libtool wrapper scripts and 21794# restored at link time. 21795variables_saved_for_relink=$lt_variables_saved_for_relink 21796 21797# Do we need the "lib" prefix for modules? 21798need_lib_prefix=$need_lib_prefix 21799 21800# Do we need a version for libraries? 21801need_version=$need_version 21802 21803# Library versioning type. 21804version_type=$version_type 21805 21806# Shared library runtime path variable. 21807runpath_var=$runpath_var 21808 21809# Shared library path variable. 21810shlibpath_var=$shlibpath_var 21811 21812# Is shlibpath searched before the hard-coded library search path? 21813shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21814 21815# Format of library name prefix. 21816libname_spec=$lt_libname_spec 21817 21818# List of archive names. First name is the real one, the rest are links. 21819# The last name is the one that the linker finds with -lNAME 21820library_names_spec=$lt_library_names_spec 21821 21822# The coded name of the library, if different from the real name. 21823soname_spec=$lt_soname_spec 21824 21825# Permission mode override for installation of shared libraries. 21826install_override_mode=$lt_install_override_mode 21827 21828# Command to use after installation of a shared archive. 21829postinstall_cmds=$lt_postinstall_cmds 21830 21831# Command to use after uninstallation of a shared archive. 21832postuninstall_cmds=$lt_postuninstall_cmds 21833 21834# Commands used to finish a libtool library installation in a directory. 21835finish_cmds=$lt_finish_cmds 21836 21837# As "finish_cmds", except a single script fragment to be evaled but 21838# not shown. 21839finish_eval=$lt_finish_eval 21840 21841# Whether we should hardcode library paths into libraries. 21842hardcode_into_libs=$hardcode_into_libs 21843 21844# Compile-time system search path for libraries. 21845sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21846 21847# Detected run-time system search path for libraries. 21848sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21849 21850# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21851configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21852 21853# Whether dlopen is supported. 21854dlopen_support=$enable_dlopen 21855 21856# Whether dlopen of programs is supported. 21857dlopen_self=$enable_dlopen_self 21858 21859# Whether dlopen of statically linked programs is supported. 21860dlopen_self_static=$enable_dlopen_self_static 21861 21862# Commands to strip libraries. 21863old_striplib=$lt_old_striplib 21864striplib=$lt_striplib 21865 21866 21867# The linker used to build libraries. 21868LD=$lt_LD 21869 21870# How to create reloadable object files. 21871reload_flag=$lt_reload_flag 21872reload_cmds=$lt_reload_cmds 21873 21874# Commands used to build an old-style archive. 21875old_archive_cmds=$lt_old_archive_cmds 21876 21877# A language specific compiler. 21878CC=$lt_compiler 21879 21880# Is the compiler the GNU compiler? 21881with_gcc=$GCC 21882 21883# Compiler flag to turn off builtin functions. 21884no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21885 21886# Additional compiler flags for building library objects. 21887pic_flag=$lt_lt_prog_compiler_pic 21888 21889# How to pass a linker flag through the compiler. 21890wl=$lt_lt_prog_compiler_wl 21891 21892# Compiler flag to prevent dynamic linking. 21893link_static_flag=$lt_lt_prog_compiler_static 21894 21895# Does compiler simultaneously support -c and -o options? 21896compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21897 21898# Whether or not to add -lc for building shared libraries. 21899build_libtool_need_lc=$archive_cmds_need_lc 21900 21901# Whether or not to disallow shared libs when runtime libs are static. 21902allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21903 21904# Compiler flag to allow reflexive dlopens. 21905export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21906 21907# Compiler flag to generate shared objects directly from archives. 21908whole_archive_flag_spec=$lt_whole_archive_flag_spec 21909 21910# Whether the compiler copes with passing no objects directly. 21911compiler_needs_object=$lt_compiler_needs_object 21912 21913# Create an old-style archive from a shared archive. 21914old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21915 21916# Create a temporary old-style archive to link instead of a shared archive. 21917old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21918 21919# Commands used to build a shared archive. 21920archive_cmds=$lt_archive_cmds 21921archive_expsym_cmds=$lt_archive_expsym_cmds 21922 21923# Commands used to build a loadable module if different from building 21924# a shared archive. 21925module_cmds=$lt_module_cmds 21926module_expsym_cmds=$lt_module_expsym_cmds 21927 21928# Whether we are building with GNU ld or not. 21929with_gnu_ld=$lt_with_gnu_ld 21930 21931# Flag that allows shared libraries with undefined symbols to be built. 21932allow_undefined_flag=$lt_allow_undefined_flag 21933 21934# Flag that enforces no undefined symbols. 21935no_undefined_flag=$lt_no_undefined_flag 21936 21937# Flag to hardcode \$libdir into a binary during linking. 21938# This must work even if \$libdir does not exist 21939hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21940 21941# Whether we need a single "-rpath" flag with a separated argument. 21942hardcode_libdir_separator=$lt_hardcode_libdir_separator 21943 21944# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21945# DIR into the resulting binary. 21946hardcode_direct=$hardcode_direct 21947 21948# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21949# DIR into the resulting binary and the resulting library dependency is 21950# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21951# library is relocated. 21952hardcode_direct_absolute=$hardcode_direct_absolute 21953 21954# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21955# into the resulting binary. 21956hardcode_minus_L=$hardcode_minus_L 21957 21958# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21959# into the resulting binary. 21960hardcode_shlibpath_var=$hardcode_shlibpath_var 21961 21962# Set to "yes" if building a shared library automatically hardcodes DIR 21963# into the library and all subsequent libraries and executables linked 21964# against it. 21965hardcode_automatic=$hardcode_automatic 21966 21967# Set to yes if linker adds runtime paths of dependent libraries 21968# to runtime path list. 21969inherit_rpath=$inherit_rpath 21970 21971# Whether libtool must link a program against all its dependency libraries. 21972link_all_deplibs=$link_all_deplibs 21973 21974# Set to "yes" if exported symbols are required. 21975always_export_symbols=$always_export_symbols 21976 21977# The commands to list exported symbols. 21978export_symbols_cmds=$lt_export_symbols_cmds 21979 21980# Symbols that should not be listed in the preloaded symbols. 21981exclude_expsyms=$lt_exclude_expsyms 21982 21983# Symbols that must always be exported. 21984include_expsyms=$lt_include_expsyms 21985 21986# Commands necessary for linking programs (against libraries) with templates. 21987prelink_cmds=$lt_prelink_cmds 21988 21989# Commands necessary for finishing linking programs. 21990postlink_cmds=$lt_postlink_cmds 21991 21992# Specify filename containing input files. 21993file_list_spec=$lt_file_list_spec 21994 21995# How to hardcode a shared library path into an executable. 21996hardcode_action=$hardcode_action 21997 21998# ### END LIBTOOL CONFIG 21999 22000_LT_EOF 22001 22002 cat <<'_LT_EOF' >> "$cfgfile" 22003 22004# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22005 22006# func_munge_path_list VARIABLE PATH 22007# ----------------------------------- 22008# VARIABLE is name of variable containing _space_ separated list of 22009# directories to be munged by the contents of PATH, which is string 22010# having a format: 22011# "DIR[:DIR]:" 22012# string "DIR[ DIR]" will be prepended to VARIABLE 22013# ":DIR[:DIR]" 22014# string "DIR[ DIR]" will be appended to VARIABLE 22015# "DIRP[:DIRP]::[DIRA:]DIRA" 22016# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22017# "DIRA[ DIRA]" will be appended to VARIABLE 22018# "DIR[:DIR]" 22019# VARIABLE will be replaced by "DIR[ DIR]" 22020func_munge_path_list () 22021{ 22022 case x$2 in 22023 x) 22024 ;; 22025 *:) 22026 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22027 ;; 22028 x:*) 22029 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22030 ;; 22031 *::*) 22032 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22033 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22034 ;; 22035 *) 22036 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22037 ;; 22038 esac 22039} 22040 22041 22042# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22043func_cc_basename () 22044{ 22045 for cc_temp in $*""; do 22046 case $cc_temp in 22047 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22048 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22049 \-*) ;; 22050 *) break;; 22051 esac 22052 done 22053 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22054} 22055 22056 22057# ### END FUNCTIONS SHARED WITH CONFIGURE 22058 22059_LT_EOF 22060 22061 case $host_os in 22062 aix3*) 22063 cat <<\_LT_EOF >> "$cfgfile" 22064# AIX sometimes has problems with the GCC collect2 program. For some 22065# reason, if we set the COLLECT_NAMES environment variable, the problems 22066# vanish in a puff of smoke. 22067if test set != "${COLLECT_NAMES+set}"; then 22068 COLLECT_NAMES= 22069 export COLLECT_NAMES 22070fi 22071_LT_EOF 22072 ;; 22073 esac 22074 22075 22076 22077ltmain=$ac_aux_dir/ltmain.sh 22078 22079 22080 # We use sed instead of cat because bash on DJGPP gets confused if 22081 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22082 # text mode, it properly converts lines to CR/LF. This bash problem 22083 # is reportedly fixed, but why not run on old versions too? 22084 $SED '$q' "$ltmain" >> "$cfgfile" \ 22085 || (rm -f "$cfgfile"; exit 1) 22086 22087 mv -f "$cfgfile" "$ofile" || 22088 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22089 chmod +x "$ofile" 22090 22091 ;; 22092 22093 esac 22094done # for ac_tag 22095 22096 22097as_fn_exit 0 22098_ACEOF 22099ac_clean_files=$ac_clean_files_save 22100 22101test $ac_write_fail = 0 || 22102 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22103 22104 22105# configure is writing to config.log, and then calls config.status. 22106# config.status does its own redirection, appending to config.log. 22107# Unfortunately, on DOS this fails, as config.log is still kept open 22108# by configure, so config.status won't be able to write to it; its 22109# output is simply discarded. So we exec the FD to /dev/null, 22110# effectively closing config.log, so it can be properly (re)opened and 22111# appended to by config.status. When coming back to configure, we 22112# need to make the FD available again. 22113if test "$no_create" != yes; then 22114 ac_cs_success=: 22115 ac_config_status_args= 22116 test "$silent" = yes && 22117 ac_config_status_args="$ac_config_status_args --quiet" 22118 exec 5>/dev/null 22119 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22120 exec 5>>config.log 22121 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22122 # would make configure fail if this is the last instruction. 22123 $ac_cs_success || as_fn_exit 1 22124fi 22125if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22127printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22128fi 22129 22130 22131