configure revision 139359d2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libxshmfence 1.3.2. 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.2' 626PACKAGE_STRING='libxshmfence 1.3.2' 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_largefile 834enable_futex 835enable_visibility 836with_shared_memory_dir 837' 838 ac_precious_vars='build_alias 839host_alias 840target_alias 841CC 842CFLAGS 843LDFLAGS 844LIBS 845CPPFLAGS 846LT_SYS_LIBRARY_PATH 847PKG_CONFIG 848PKG_CONFIG_PATH 849PKG_CONFIG_LIBDIR 850LINT 851LINT_FLAGS 852XPROTO_CFLAGS 853XPROTO_LIBS' 854 855 856# Initialize some variables set by options. 857ac_init_help= 858ac_init_version=false 859ac_unrecognized_opts= 860ac_unrecognized_sep= 861# The variables have the same names as the options, with 862# dashes changed to underlines. 863cache_file=/dev/null 864exec_prefix=NONE 865no_create= 866no_recursion= 867prefix=NONE 868program_prefix=NONE 869program_suffix=NONE 870program_transform_name=s,x,x, 871silent= 872site= 873srcdir= 874verbose= 875x_includes=NONE 876x_libraries=NONE 877 878# Installation directory options. 879# These are left unexpanded so users can "make install exec_prefix=/foo" 880# and all the variables that are supposed to be based on exec_prefix 881# by default will actually change. 882# Use braces instead of parens because sh, perl, etc. also accept them. 883# (The list follows the same order as the GNU Coding Standards.) 884bindir='${exec_prefix}/bin' 885sbindir='${exec_prefix}/sbin' 886libexecdir='${exec_prefix}/libexec' 887datarootdir='${prefix}/share' 888datadir='${datarootdir}' 889sysconfdir='${prefix}/etc' 890sharedstatedir='${prefix}/com' 891localstatedir='${prefix}/var' 892runstatedir='${localstatedir}/run' 893includedir='${prefix}/include' 894oldincludedir='/usr/include' 895docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 896infodir='${datarootdir}/info' 897htmldir='${docdir}' 898dvidir='${docdir}' 899pdfdir='${docdir}' 900psdir='${docdir}' 901libdir='${exec_prefix}/lib' 902localedir='${datarootdir}/locale' 903mandir='${datarootdir}/man' 904 905ac_prev= 906ac_dashdash= 907for ac_option 908do 909 # If the previous option needs an argument, assign it. 910 if test -n "$ac_prev"; then 911 eval $ac_prev=\$ac_option 912 ac_prev= 913 continue 914 fi 915 916 case $ac_option in 917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 918 *=) ac_optarg= ;; 919 *) ac_optarg=yes ;; 920 esac 921 922 case $ac_dashdash$ac_option in 923 --) 924 ac_dashdash=yes ;; 925 926 -bindir | --bindir | --bindi | --bind | --bin | --bi) 927 ac_prev=bindir ;; 928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 929 bindir=$ac_optarg ;; 930 931 -build | --build | --buil | --bui | --bu) 932 ac_prev=build_alias ;; 933 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 934 build_alias=$ac_optarg ;; 935 936 -cache-file | --cache-file | --cache-fil | --cache-fi \ 937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 938 ac_prev=cache_file ;; 939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 941 cache_file=$ac_optarg ;; 942 943 --config-cache | -C) 944 cache_file=config.cache ;; 945 946 -datadir | --datadir | --datadi | --datad) 947 ac_prev=datadir ;; 948 -datadir=* | --datadir=* | --datadi=* | --datad=*) 949 datadir=$ac_optarg ;; 950 951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 952 | --dataroo | --dataro | --datar) 953 ac_prev=datarootdir ;; 954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 956 datarootdir=$ac_optarg ;; 957 958 -disable-* | --disable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: \`$ac_useropt'" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=no ;; 973 974 -docdir | --docdir | --docdi | --doc | --do) 975 ac_prev=docdir ;; 976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 977 docdir=$ac_optarg ;; 978 979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 980 ac_prev=dvidir ;; 981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 982 dvidir=$ac_optarg ;; 983 984 -enable-* | --enable-*) 985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 as_fn_error $? "invalid feature name: \`$ac_useropt'" 989 ac_useropt_orig=$ac_useropt 990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 991 case $ac_user_opts in 992 *" 993"enable_$ac_useropt" 994"*) ;; 995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 996 ac_unrecognized_sep=', ';; 997 esac 998 eval enable_$ac_useropt=\$ac_optarg ;; 999 1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1002 | --exec | --exe | --ex) 1003 ac_prev=exec_prefix ;; 1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1006 | --exec=* | --exe=* | --ex=*) 1007 exec_prefix=$ac_optarg ;; 1008 1009 -gas | --gas | --ga | --g) 1010 # Obsolete; use --with-gas. 1011 with_gas=yes ;; 1012 1013 -help | --help | --hel | --he | -h) 1014 ac_init_help=long ;; 1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1016 ac_init_help=recursive ;; 1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1018 ac_init_help=short ;; 1019 1020 -host | --host | --hos | --ho) 1021 ac_prev=host_alias ;; 1022 -host=* | --host=* | --hos=* | --ho=*) 1023 host_alias=$ac_optarg ;; 1024 1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1026 ac_prev=htmldir ;; 1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1028 | --ht=*) 1029 htmldir=$ac_optarg ;; 1030 1031 -includedir | --includedir | --includedi | --included | --include \ 1032 | --includ | --inclu | --incl | --inc) 1033 ac_prev=includedir ;; 1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1035 | --includ=* | --inclu=* | --incl=* | --inc=*) 1036 includedir=$ac_optarg ;; 1037 1038 -infodir | --infodir | --infodi | --infod | --info | --inf) 1039 ac_prev=infodir ;; 1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1041 infodir=$ac_optarg ;; 1042 1043 -libdir | --libdir | --libdi | --libd) 1044 ac_prev=libdir ;; 1045 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1046 libdir=$ac_optarg ;; 1047 1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1049 | --libexe | --libex | --libe) 1050 ac_prev=libexecdir ;; 1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1052 | --libexe=* | --libex=* | --libe=*) 1053 libexecdir=$ac_optarg ;; 1054 1055 -localedir | --localedir | --localedi | --localed | --locale) 1056 ac_prev=localedir ;; 1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1058 localedir=$ac_optarg ;; 1059 1060 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1061 | --localstate | --localstat | --localsta | --localst | --locals) 1062 ac_prev=localstatedir ;; 1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1065 localstatedir=$ac_optarg ;; 1066 1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1068 ac_prev=mandir ;; 1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1070 mandir=$ac_optarg ;; 1071 1072 -nfp | --nfp | --nf) 1073 # Obsolete; use --without-fp. 1074 with_fp=no ;; 1075 1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1077 | --no-cr | --no-c | -n) 1078 no_create=yes ;; 1079 1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1082 no_recursion=yes ;; 1083 1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1086 | --oldin | --oldi | --old | --ol | --o) 1087 ac_prev=oldincludedir ;; 1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1091 oldincludedir=$ac_optarg ;; 1092 1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1094 ac_prev=prefix ;; 1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1096 prefix=$ac_optarg ;; 1097 1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1099 | --program-pre | --program-pr | --program-p) 1100 ac_prev=program_prefix ;; 1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1103 program_prefix=$ac_optarg ;; 1104 1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1106 | --program-suf | --program-su | --program-s) 1107 ac_prev=program_suffix ;; 1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1110 program_suffix=$ac_optarg ;; 1111 1112 -program-transform-name | --program-transform-name \ 1113 | --program-transform-nam | --program-transform-na \ 1114 | --program-transform-n | --program-transform- \ 1115 | --program-transform | --program-transfor \ 1116 | --program-transfo | --program-transf \ 1117 | --program-trans | --program-tran \ 1118 | --progr-tra | --program-tr | --program-t) 1119 ac_prev=program_transform_name ;; 1120 -program-transform-name=* | --program-transform-name=* \ 1121 | --program-transform-nam=* | --program-transform-na=* \ 1122 | --program-transform-n=* | --program-transform-=* \ 1123 | --program-transform=* | --program-transfor=* \ 1124 | --program-transfo=* | --program-transf=* \ 1125 | --program-trans=* | --program-tran=* \ 1126 | --progr-tra=* | --program-tr=* | --program-t=*) 1127 program_transform_name=$ac_optarg ;; 1128 1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1130 ac_prev=pdfdir ;; 1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1132 pdfdir=$ac_optarg ;; 1133 1134 -psdir | --psdir | --psdi | --psd | --ps) 1135 ac_prev=psdir ;; 1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1137 psdir=$ac_optarg ;; 1138 1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1140 | -silent | --silent | --silen | --sile | --sil) 1141 silent=yes ;; 1142 1143 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1144 | --runstate | --runstat | --runsta | --runst | --runs \ 1145 | --run | --ru | --r) 1146 ac_prev=runstatedir ;; 1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1149 | --run=* | --ru=* | --r=*) 1150 runstatedir=$ac_optarg ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: \`$ac_useropt'" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: \`$ac_useropt'" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir runstatedir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345printf "%s\n" X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures libxshmfence 1.3.2 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1443 --libdir=DIR object code libraries [EPREFIX/lib] 1444 --includedir=DIR C header files [PREFIX/include] 1445 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1448 --infodir=DIR info documentation [DATAROOTDIR/info] 1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1450 --mandir=DIR man documentation [DATAROOTDIR/man] 1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libxshmfence] 1452 --htmldir=DIR html documentation [DOCDIR] 1453 --dvidir=DIR dvi documentation [DOCDIR] 1454 --pdfdir=DIR pdf documentation [DOCDIR] 1455 --psdir=DIR ps documentation [DOCDIR] 1456_ACEOF 1457 1458 cat <<\_ACEOF 1459 1460Program names: 1461 --program-prefix=PREFIX prepend PREFIX to installed program names 1462 --program-suffix=SUFFIX append SUFFIX to installed program names 1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1464 1465System types: 1466 --build=BUILD configure for building on BUILD [guessed] 1467 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 case $ac_init_help in 1473 short | recursive ) echo "Configuration of libxshmfence 1.3.2:";; 1474 esac 1475 cat <<\_ACEOF 1476 1477Optional Features: 1478 --disable-option-checking ignore unrecognized --enable/--with options 1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1481 --enable-dependency-tracking 1482 do not reject slow dependency extractors 1483 --disable-dependency-tracking 1484 speeds up one-time build 1485 --enable-silent-rules less verbose build output (undo: "make V=1") 1486 --disable-silent-rules verbose build output (undo: "make V=0") 1487 --enable-shared[=PKGS] build shared libraries [default=yes] 1488 --enable-static[=PKGS] build static libraries [default=yes] 1489 --enable-fast-install[=PKGS] 1490 optimize for fast installation [default=yes] 1491 --disable-libtool-lock avoid locking (might break parallel builds) 1492 --disable-selective-werror 1493 Turn off selective compiler errors. (default: 1494 enabled) 1495 --enable-strict-compilation 1496 Enable all warnings from compiler and make them 1497 errors (default: disabled) 1498 --disable-largefile omit support for large files 1499 --enable-futex Enable futexes (default: auto) 1500 --enable-visibility Enable symbol visibility (default: auto) 1501 1502Optional Packages: 1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1505 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1506 both] 1507 --with-aix-soname=aix|svr4|both 1508 shared library versioning (aka "SONAME") variant to 1509 provide on AIX, [default=aix]. 1510 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1511 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1512 compiler's sysroot if not specified). 1513 --with-lint Use a lint-style source code checker (default: 1514 disabled) 1515 --with-shared-memory-dir=PATH 1516 Path to directory in a world-writable temporary 1517 directory for anonymous shared memory (default: 1518 auto) 1519 1520Some influential environment variables: 1521 CC C compiler command 1522 CFLAGS C compiler flags 1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1524 nonstandard directory <lib dir> 1525 LIBS libraries to pass to the linker, e.g. -l<library> 1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1527 you have headers in a nonstandard directory <include dir> 1528 LT_SYS_LIBRARY_PATH 1529 User-defined run-time library search path. 1530 PKG_CONFIG path to pkg-config utility 1531 PKG_CONFIG_PATH 1532 directories to add to pkg-config's search path 1533 PKG_CONFIG_LIBDIR 1534 path overriding pkg-config's built-in search path 1535 LINT Path to a lint-style command 1536 LINT_FLAGS Flags for the lint-style command 1537 XPROTO_CFLAGS 1538 C compiler flags for XPROTO, overriding pkg-config 1539 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config 1540 1541Use these variables to override the choices made by `configure' or to help 1542it to find libraries and programs with nonstandard names/locations. 1543 1544Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>. 1545_ACEOF 1546ac_status=$? 1547fi 1548 1549if test "$ac_init_help" = "recursive"; then 1550 # If there are subdirs, report their specific --help. 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1552 test -d "$ac_dir" || 1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1554 continue 1555 ac_builddir=. 1556 1557case "$ac_dir" in 1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1559*) 1560 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1561 # A ".." for each directory in $ac_dir_suffix. 1562 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1563 case $ac_top_builddir_sub in 1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1566 esac ;; 1567esac 1568ac_abs_top_builddir=$ac_pwd 1569ac_abs_builddir=$ac_pwd$ac_dir_suffix 1570# for backward compatibility: 1571ac_top_builddir=$ac_top_build_prefix 1572 1573case $srcdir in 1574 .) # We are building in place. 1575 ac_srcdir=. 1576 ac_top_srcdir=$ac_top_builddir_sub 1577 ac_abs_top_srcdir=$ac_pwd ;; 1578 [\\/]* | ?:[\\/]* ) # Absolute name. 1579 ac_srcdir=$srcdir$ac_dir_suffix; 1580 ac_top_srcdir=$srcdir 1581 ac_abs_top_srcdir=$srcdir ;; 1582 *) # Relative name. 1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1584 ac_top_srcdir=$ac_top_build_prefix$srcdir 1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1586esac 1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1588 1589 cd "$ac_dir" || { ac_status=$?; continue; } 1590 # Check for configure.gnu first; this name is used for a wrapper for 1591 # Metaconfig's "Configure" on case-insensitive file systems. 1592 if test -f "$ac_srcdir/configure.gnu"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1595 elif test -f "$ac_srcdir/configure"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure" --help=recursive 1598 else 1599 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1600 fi || ac_status=$? 1601 cd "$ac_pwd" || { ac_status=$?; break; } 1602 done 1603fi 1604 1605test -n "$ac_init_help" && exit $ac_status 1606if $ac_init_version; then 1607 cat <<\_ACEOF 1608libxshmfence configure 1.3.2 1609generated by GNU Autoconf 2.71 1610 1611Copyright (C) 2021 Free Software Foundation, Inc. 1612This configure script is free software; the Free Software Foundation 1613gives unlimited permission to copy, distribute and modify it. 1614_ACEOF 1615 exit 1616fi 1617 1618## ------------------------ ## 1619## Autoconf initialization. ## 1620## ------------------------ ## 1621 1622# ac_fn_c_try_compile LINENO 1623# -------------------------- 1624# Try to compile conftest.$ac_ext, and return whether this succeeded. 1625ac_fn_c_try_compile () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 rm -f conftest.$ac_objext conftest.beam 1629 if { { ac_try="$ac_compile" 1630case "(($ac_try" in 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632 *) ac_try_echo=$ac_try;; 1633esac 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635printf "%s\n" "$ac_try_echo"; } >&5 1636 (eval "$ac_compile") 2>conftest.err 1637 ac_status=$? 1638 if test -s conftest.err; then 1639 grep -v '^ *+' conftest.err >conftest.er1 1640 cat conftest.er1 >&5 1641 mv -f conftest.er1 conftest.err 1642 fi 1643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } && { 1645 test -z "$ac_c_werror_flag" || 1646 test ! -s conftest.err 1647 } && test -s conftest.$ac_objext 1648then : 1649 ac_retval=0 1650else $as_nop 1651 printf "%s\n" "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_compile 1660 1661# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1662# ------------------------------------------------------- 1663# Tests whether HEADER exists and can be compiled using the include files in 1664# INCLUDES, setting the cache variable VAR accordingly. 1665ac_fn_c_check_header_compile () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1669printf %s "checking for $2... " >&6; } 1670if eval test \${$3+y} 1671then : 1672 printf %s "(cached) " >&6 1673else $as_nop 1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1675/* end confdefs.h. */ 1676$4 1677#include <$2> 1678_ACEOF 1679if ac_fn_c_try_compile "$LINENO" 1680then : 1681 eval "$3=yes" 1682else $as_nop 1683 eval "$3=no" 1684fi 1685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1686fi 1687eval ac_res=\$$3 1688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689printf "%s\n" "$ac_res" >&6; } 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 1692} # ac_fn_c_check_header_compile 1693 1694# ac_fn_c_try_link LINENO 1695# ----------------------- 1696# Try to link conftest.$ac_ext, and return whether this succeeded. 1697ac_fn_c_try_link () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1701 if { { ac_try="$ac_link" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707printf "%s\n" "$ac_try_echo"; } >&5 1708 (eval "$ac_link") 2>conftest.err 1709 ac_status=$? 1710 if test -s conftest.err; then 1711 grep -v '^ *+' conftest.err >conftest.er1 1712 cat conftest.er1 >&5 1713 mv -f conftest.er1 conftest.err 1714 fi 1715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1716 test $ac_status = 0; } && { 1717 test -z "$ac_c_werror_flag" || 1718 test ! -s conftest.err 1719 } && test -s conftest$ac_exeext && { 1720 test "$cross_compiling" = yes || 1721 test -x conftest$ac_exeext 1722 } 1723then : 1724 ac_retval=0 1725else $as_nop 1726 printf "%s\n" "$as_me: failed program was:" >&5 1727sed 's/^/| /' conftest.$ac_ext >&5 1728 1729 ac_retval=1 1730fi 1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1733 # interfere with the next link command; also delete a directory that is 1734 # left behind by Apple's compiler. We do this before executing the actions. 1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 as_fn_set_status $ac_retval 1738 1739} # ac_fn_c_try_link 1740 1741# ac_fn_c_check_func LINENO FUNC VAR 1742# ---------------------------------- 1743# Tests whether FUNC exists, setting the cache variable VAR accordingly 1744ac_fn_c_check_func () 1745{ 1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1748printf %s "checking for $2... " >&6; } 1749if eval test \${$3+y} 1750then : 1751 printf %s "(cached) " >&6 1752else $as_nop 1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1754/* end confdefs.h. */ 1755/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1757#define $2 innocuous_$2 1758 1759/* System header to define __stub macros and hopefully few prototypes, 1760 which can conflict with char $2 (void); below. */ 1761 1762#include <limits.h> 1763#undef $2 1764 1765/* Override any GCC internal prototype to avoid an error. 1766 Use char because int might match the return type of a GCC 1767 builtin and then its argument prototype would still apply. */ 1768#ifdef __cplusplus 1769extern "C" 1770#endif 1771char $2 (void); 1772/* The GNU C library defines this for functions which it implements 1773 to always fail with ENOSYS. Some functions are actually named 1774 something starting with __ and the normal name is an alias. */ 1775#if defined __stub_$2 || defined __stub___$2 1776choke me 1777#endif 1778 1779int 1780main (void) 1781{ 1782return $2 (); 1783 ; 1784 return 0; 1785} 1786_ACEOF 1787if ac_fn_c_try_link "$LINENO" 1788then : 1789 eval "$3=yes" 1790else $as_nop 1791 eval "$3=no" 1792fi 1793rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1794 conftest$ac_exeext conftest.$ac_ext 1795fi 1796eval ac_res=\$$3 1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1798printf "%s\n" "$ac_res" >&6; } 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 1801} # ac_fn_c_check_func 1802 1803# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1804# ------------------------------------------------------------------ 1805# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1806# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1807ac_fn_check_decl () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 as_decl_name=`echo $2|sed 's/ *(.*//'` 1811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1812printf %s "checking whether $as_decl_name is declared... " >&6; } 1813if eval test \${$3+y} 1814then : 1815 printf %s "(cached) " >&6 1816else $as_nop 1817 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1818 eval ac_save_FLAGS=\$$6 1819 as_fn_append $6 " $5" 1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1821/* end confdefs.h. */ 1822$4 1823int 1824main (void) 1825{ 1826#ifndef $as_decl_name 1827#ifdef __cplusplus 1828 (void) $as_decl_use; 1829#else 1830 (void) $as_decl_name; 1831#endif 1832#endif 1833 1834 ; 1835 return 0; 1836} 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO" 1839then : 1840 eval "$3=yes" 1841else $as_nop 1842 eval "$3=no" 1843fi 1844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1845 eval $6=\$ac_save_FLAGS 1846 1847fi 1848eval ac_res=\$$3 1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1850printf "%s\n" "$ac_res" >&6; } 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 1853} # ac_fn_check_decl 1854ac_configure_args_raw= 1855for ac_arg 1856do 1857 case $ac_arg in 1858 *\'*) 1859 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1860 esac 1861 as_fn_append ac_configure_args_raw " '$ac_arg'" 1862done 1863 1864case $ac_configure_args_raw in 1865 *$as_nl*) 1866 ac_safe_unquote= ;; 1867 *) 1868 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1869 ac_unsafe_a="$ac_unsafe_z#~" 1870 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1871 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1872esac 1873 1874cat >config.log <<_ACEOF 1875This file contains any messages produced by compilers while 1876running configure, to aid debugging if configure makes a mistake. 1877 1878It was created by libxshmfence $as_me 1.3.2, which was 1879generated by GNU Autoconf 2.71. Invocation command line was 1880 1881 $ $0$ac_configure_args_raw 1882 1883_ACEOF 1884exec 5>>config.log 1885{ 1886cat <<_ASUNAME 1887## --------- ## 1888## Platform. ## 1889## --------- ## 1890 1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1892uname -m = `(uname -m) 2>/dev/null || echo unknown` 1893uname -r = `(uname -r) 2>/dev/null || echo unknown` 1894uname -s = `(uname -s) 2>/dev/null || echo unknown` 1895uname -v = `(uname -v) 2>/dev/null || echo unknown` 1896 1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1898/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1899 1900/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1901/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1903/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1904/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1905/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1906/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1907 1908_ASUNAME 1909 1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1911for as_dir in $PATH 1912do 1913 IFS=$as_save_IFS 1914 case $as_dir in #((( 1915 '') as_dir=./ ;; 1916 */) ;; 1917 *) as_dir=$as_dir/ ;; 1918 esac 1919 printf "%s\n" "PATH: $as_dir" 1920 done 1921IFS=$as_save_IFS 1922 1923} >&5 1924 1925cat >&5 <<_ACEOF 1926 1927 1928## ----------- ## 1929## Core tests. ## 1930## ----------- ## 1931 1932_ACEOF 1933 1934 1935# Keep a trace of the command line. 1936# Strip out --no-create and --no-recursion so they do not pile up. 1937# Strip out --silent because we don't want to record it for future runs. 1938# Also quote any args containing shell meta-characters. 1939# Make two passes to allow for proper duplicate-argument suppression. 1940ac_configure_args= 1941ac_configure_args0= 1942ac_configure_args1= 1943ac_must_keep_next=false 1944for ac_pass in 1 2 1945do 1946 for ac_arg 1947 do 1948 case $ac_arg in 1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1951 | -silent | --silent | --silen | --sile | --sil) 1952 continue ;; 1953 *\'*) 1954 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1955 esac 1956 case $ac_pass in 1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1958 2) 1959 as_fn_append ac_configure_args1 " '$ac_arg'" 1960 if test $ac_must_keep_next = true; then 1961 ac_must_keep_next=false # Got value, back to normal. 1962 else 1963 case $ac_arg in 1964 *=* | --config-cache | -C | -disable-* | --disable-* \ 1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1967 | -with-* | --with-* | -without-* | --without-* | --x) 1968 case "$ac_configure_args0 " in 1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1970 esac 1971 ;; 1972 -* ) ac_must_keep_next=true ;; 1973 esac 1974 fi 1975 as_fn_append ac_configure_args " '$ac_arg'" 1976 ;; 1977 esac 1978 done 1979done 1980{ ac_configure_args0=; unset ac_configure_args0;} 1981{ ac_configure_args1=; unset ac_configure_args1;} 1982 1983# When interrupted or exit'd, cleanup temporary files, and complete 1984# config.log. We remove comments because anyway the quotes in there 1985# would cause problems or look ugly. 1986# WARNING: Use '\'' to represent an apostrophe within the trap. 1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1988trap 'exit_status=$? 1989 # Sanitize IFS. 1990 IFS=" "" $as_nl" 1991 # Save into config.log some information that might help in debugging. 1992 { 1993 echo 1994 1995 printf "%s\n" "## ---------------- ## 1996## Cache variables. ## 1997## ---------------- ##" 1998 echo 1999 # The following way of writing the cache mishandles newlines in values, 2000( 2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in #( 2004 *${as_nl}*) 2005 case $ac_var in #( 2006 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2007printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2008 esac 2009 case $ac_var in #( 2010 _ | IFS | as_nl) ;; #( 2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2012 *) { eval $ac_var=; unset $ac_var;} ;; 2013 esac ;; 2014 esac 2015 done 2016 (set) 2>&1 | 2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2018 *${as_nl}ac_space=\ *) 2019 sed -n \ 2020 "s/'\''/'\''\\\\'\'''\''/g; 2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2022 ;; #( 2023 *) 2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2025 ;; 2026 esac | 2027 sort 2028) 2029 echo 2030 2031 printf "%s\n" "## ----------------- ## 2032## Output variables. ## 2033## ----------------- ##" 2034 echo 2035 for ac_var in $ac_subst_vars 2036 do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in 2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040 esac 2041 printf "%s\n" "$ac_var='\''$ac_val'\''" 2042 done | sort 2043 echo 2044 2045 if test -n "$ac_subst_files"; then 2046 printf "%s\n" "## ------------------- ## 2047## File substitutions. ## 2048## ------------------- ##" 2049 echo 2050 for ac_var in $ac_subst_files 2051 do 2052 eval ac_val=\$$ac_var 2053 case $ac_val in 2054 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2055 esac 2056 printf "%s\n" "$ac_var='\''$ac_val'\''" 2057 done | sort 2058 echo 2059 fi 2060 2061 if test -s confdefs.h; then 2062 printf "%s\n" "## ----------- ## 2063## confdefs.h. ## 2064## ----------- ##" 2065 echo 2066 cat confdefs.h 2067 echo 2068 fi 2069 test "$ac_signal" != 0 && 2070 printf "%s\n" "$as_me: caught signal $ac_signal" 2071 printf "%s\n" "$as_me: exit $exit_status" 2072 } >&5 2073 rm -f core *.core core.conftest.* && 2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2075 exit $exit_status 2076' 0 2077for ac_signal in 1 2 13 15; do 2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2079done 2080ac_signal=0 2081 2082# confdefs.h avoids OS command line length limits that DEFS can exceed. 2083rm -f -r conftest* confdefs.h 2084 2085printf "%s\n" "/* confdefs.h */" > confdefs.h 2086 2087# Predefined preprocessor variables. 2088 2089printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2090 2091printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2092 2093printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2094 2095printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2096 2097printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2098 2099printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2100 2101 2102# Let the site file select an alternate cache file if it wants to. 2103# Prefer an explicitly selected file to automatically selected ones. 2104if test -n "$CONFIG_SITE"; then 2105 ac_site_files="$CONFIG_SITE" 2106elif test "x$prefix" != xNONE; then 2107 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2108else 2109 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2110fi 2111 2112for ac_site_file in $ac_site_files 2113do 2114 case $ac_site_file in #( 2115 */*) : 2116 ;; #( 2117 *) : 2118 ac_site_file=./$ac_site_file ;; 2119esac 2120 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2122printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2123 sed 's/^/| /' "$ac_site_file" >&5 2124 . "$ac_site_file" \ 2125 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2126printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2127as_fn_error $? "failed to load site script $ac_site_file 2128See \`config.log' for more details" "$LINENO" 5; } 2129 fi 2130done 2131 2132if test -r "$cache_file"; then 2133 # Some versions of bash will fail to source /dev/null (special files 2134 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2135 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2137printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2138 case $cache_file in 2139 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2140 *) . "./$cache_file";; 2141 esac 2142 fi 2143else 2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2145printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2146 >$cache_file 2147fi 2148 2149as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2150# Test code for whether the C compiler supports C89 (global declarations) 2151ac_c_conftest_c89_globals=' 2152/* Does the compiler advertise C89 conformance? 2153 Do not test the value of __STDC__, because some compilers set it to 0 2154 while being otherwise adequately conformant. */ 2155#if !defined __STDC__ 2156# error "Compiler does not advertise C89 conformance" 2157#endif 2158 2159#include <stddef.h> 2160#include <stdarg.h> 2161struct stat; 2162/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2163struct buf { int x; }; 2164struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2165static char *e (char **p, 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); 2216extern void free (void *); 2217 2218// Check varargs macros. These examples are taken from C99 6.10.3.5. 2219// dprintf is used instead of fprintf to avoid needing to declare 2220// FILE and stderr. 2221#define debug(...) dprintf (2, __VA_ARGS__) 2222#define showlist(...) puts (#__VA_ARGS__) 2223#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2224static void 2225test_varargs_macros (void) 2226{ 2227 int x = 1234; 2228 int y = 5678; 2229 debug ("Flag"); 2230 debug ("X = %d\n", x); 2231 showlist (The first, second, and third items.); 2232 report (x>y, "x is %d but y is %d", x, y); 2233} 2234 2235// Check long long types. 2236#define BIG64 18446744073709551615ull 2237#define BIG32 4294967295ul 2238#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2239#if !BIG_OK 2240 #error "your preprocessor is broken" 2241#endif 2242#if BIG_OK 2243#else 2244 #error "your preprocessor is broken" 2245#endif 2246static long long int bignum = -9223372036854775807LL; 2247static unsigned long long int ubignum = BIG64; 2248 2249struct incomplete_array 2250{ 2251 int datasize; 2252 double data[]; 2253}; 2254 2255struct named_init { 2256 int number; 2257 const wchar_t *name; 2258 double average; 2259}; 2260 2261typedef const char *ccp; 2262 2263static inline int 2264test_restrict (ccp restrict text) 2265{ 2266 // See if C++-style comments work. 2267 // Iterate through items via the restricted pointer. 2268 // Also check for declarations in for loops. 2269 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2270 continue; 2271 return 0; 2272} 2273 2274// Check varargs and va_copy. 2275static bool 2276test_varargs (const char *format, ...) 2277{ 2278 va_list args; 2279 va_start (args, format); 2280 va_list args_copy; 2281 va_copy (args_copy, args); 2282 2283 const char *str = ""; 2284 int number = 0; 2285 float fnumber = 0; 2286 2287 while (*format) 2288 { 2289 switch (*format++) 2290 { 2291 case '\''s'\'': // string 2292 str = va_arg (args_copy, const char *); 2293 break; 2294 case '\''d'\'': // int 2295 number = va_arg (args_copy, int); 2296 break; 2297 case '\''f'\'': // float 2298 fnumber = va_arg (args_copy, double); 2299 break; 2300 default: 2301 break; 2302 } 2303 } 2304 va_end (args_copy); 2305 va_end (args); 2306 2307 return *str && number && fnumber; 2308} 2309' 2310 2311# Test code for whether the C compiler supports C99 (body of main). 2312ac_c_conftest_c99_main=' 2313 // Check bool. 2314 _Bool success = false; 2315 success |= (argc != 0); 2316 2317 // Check restrict. 2318 if (test_restrict ("String literal") == 0) 2319 success = true; 2320 char *restrict newvar = "Another string"; 2321 2322 // Check varargs. 2323 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2324 test_varargs_macros (); 2325 2326 // Check flexible array members. 2327 struct incomplete_array *ia = 2328 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2329 ia->datasize = 10; 2330 for (int i = 0; i < ia->datasize; ++i) 2331 ia->data[i] = i * 1.234; 2332 2333 // Check named initializers. 2334 struct named_init ni = { 2335 .number = 34, 2336 .name = L"Test wide string", 2337 .average = 543.34343, 2338 }; 2339 2340 ni.number = 58; 2341 2342 int dynamic_array[ni.number]; 2343 dynamic_array[0] = argv[0][0]; 2344 dynamic_array[ni.number - 1] = 543; 2345 2346 // work around unused variable warnings 2347 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2348 || dynamic_array[ni.number - 1] != 543); 2349' 2350 2351# Test code for whether the C compiler supports C11 (global declarations) 2352ac_c_conftest_c11_globals=' 2353// Does the compiler advertise C11 conformance? 2354#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2355# error "Compiler does not advertise C11 conformance" 2356#endif 2357 2358// Check _Alignas. 2359char _Alignas (double) aligned_as_double; 2360char _Alignas (0) no_special_alignment; 2361extern char aligned_as_int; 2362char _Alignas (0) _Alignas (int) aligned_as_int; 2363 2364// Check _Alignof. 2365enum 2366{ 2367 int_alignment = _Alignof (int), 2368 int_array_alignment = _Alignof (int[100]), 2369 char_alignment = _Alignof (char) 2370}; 2371_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2372 2373// Check _Noreturn. 2374int _Noreturn does_not_return (void) { for (;;) continue; } 2375 2376// Check _Static_assert. 2377struct test_static_assert 2378{ 2379 int x; 2380 _Static_assert (sizeof (int) <= sizeof (long int), 2381 "_Static_assert does not work in struct"); 2382 long int y; 2383}; 2384 2385// Check UTF-8 literals. 2386#define u8 syntax error! 2387char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2388 2389// Check duplicate typedefs. 2390typedef long *long_ptr; 2391typedef long int *long_ptr; 2392typedef long_ptr long_ptr; 2393 2394// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2395struct anonymous 2396{ 2397 union { 2398 struct { int i; int j; }; 2399 struct { int k; long int l; } w; 2400 }; 2401 int m; 2402} v1; 2403' 2404 2405# Test code for whether the C compiler supports C11 (body of main). 2406ac_c_conftest_c11_main=' 2407 _Static_assert ((offsetof (struct anonymous, i) 2408 == offsetof (struct anonymous, w.k)), 2409 "Anonymous union alignment botch"); 2410 v1.i = 2; 2411 v1.w.k = 5; 2412 ok |= v1.i != 5; 2413' 2414 2415# Test code for whether the C compiler supports C11 (complete). 2416ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2417${ac_c_conftest_c99_globals} 2418${ac_c_conftest_c11_globals} 2419 2420int 2421main (int argc, char **argv) 2422{ 2423 int ok = 0; 2424 ${ac_c_conftest_c89_main} 2425 ${ac_c_conftest_c99_main} 2426 ${ac_c_conftest_c11_main} 2427 return ok; 2428} 2429" 2430 2431# Test code for whether the C compiler supports C99 (complete). 2432ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2433${ac_c_conftest_c99_globals} 2434 2435int 2436main (int argc, char **argv) 2437{ 2438 int ok = 0; 2439 ${ac_c_conftest_c89_main} 2440 ${ac_c_conftest_c99_main} 2441 return ok; 2442} 2443" 2444 2445# Test code for whether the C compiler supports C89 (complete). 2446ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2447 2448int 2449main (int argc, char **argv) 2450{ 2451 int ok = 0; 2452 ${ac_c_conftest_c89_main} 2453 return ok; 2454} 2455" 2456 2457as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2458as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2459as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2460as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2461as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2462as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2463as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2464as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2465as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2466as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2467 2468# Auxiliary files required by this configure script. 2469ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2470 2471# Locations in which to look for auxiliary files. 2472ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2473 2474# Search for a directory containing all of the required auxiliary files, 2475# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2476# If we don't find one directory that contains all the files we need, 2477# we report the set of missing files from the *first* directory in 2478# $ac_aux_dir_candidates and give up. 2479ac_missing_aux_files="" 2480ac_first_candidate=: 2481printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2483as_found=false 2484for as_dir in $ac_aux_dir_candidates 2485do 2486 IFS=$as_save_IFS 2487 case $as_dir in #((( 2488 '') as_dir=./ ;; 2489 */) ;; 2490 *) as_dir=$as_dir/ ;; 2491 esac 2492 as_found=: 2493 2494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2495 ac_aux_dir_found=yes 2496 ac_install_sh= 2497 for ac_aux in $ac_aux_files 2498 do 2499 # As a special case, if "install-sh" is required, that requirement 2500 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2501 # and $ac_install_sh is set appropriately for whichever one is found. 2502 if test x"$ac_aux" = x"install-sh" 2503 then 2504 if test -f "${as_dir}install-sh"; then 2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2506 ac_install_sh="${as_dir}install-sh -c" 2507 elif test -f "${as_dir}install.sh"; then 2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2509 ac_install_sh="${as_dir}install.sh -c" 2510 elif test -f "${as_dir}shtool"; then 2511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2512 ac_install_sh="${as_dir}shtool install -c" 2513 else 2514 ac_aux_dir_found=no 2515 if $ac_first_candidate; then 2516 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2517 else 2518 break 2519 fi 2520 fi 2521 else 2522 if test -f "${as_dir}${ac_aux}"; then 2523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2524 else 2525 ac_aux_dir_found=no 2526 if $ac_first_candidate; then 2527 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2528 else 2529 break 2530 fi 2531 fi 2532 fi 2533 done 2534 if test "$ac_aux_dir_found" = yes; then 2535 ac_aux_dir="$as_dir" 2536 break 2537 fi 2538 ac_first_candidate=false 2539 2540 as_found=false 2541done 2542IFS=$as_save_IFS 2543if $as_found 2544then : 2545 2546else $as_nop 2547 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2548fi 2549 2550 2551# These three variables are undocumented and unsupported, 2552# and are intended to be withdrawn in a future Autoconf release. 2553# They can cause serious problems if a builder's source tree is in a directory 2554# whose full name contains unusual characters. 2555if test -f "${ac_aux_dir}config.guess"; then 2556 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2557fi 2558if test -f "${ac_aux_dir}config.sub"; then 2559 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2560fi 2561if test -f "$ac_aux_dir/configure"; then 2562 ac_configure="$SHELL ${ac_aux_dir}configure" 2563fi 2564 2565# Check that the precious variables saved in the cache have kept the same 2566# value. 2567ac_cache_corrupted=false 2568for ac_var in $ac_precious_vars; do 2569 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2570 eval ac_new_set=\$ac_env_${ac_var}_set 2571 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2572 eval ac_new_val=\$ac_env_${ac_var}_value 2573 case $ac_old_set,$ac_new_set in 2574 set,) 2575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2576printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2577 ac_cache_corrupted=: ;; 2578 ,set) 2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2580printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2581 ac_cache_corrupted=: ;; 2582 ,);; 2583 *) 2584 if test "x$ac_old_val" != "x$ac_new_val"; then 2585 # differences in whitespace do not lead to failure. 2586 ac_old_val_w=`echo x $ac_old_val` 2587 ac_new_val_w=`echo x $ac_new_val` 2588 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2590printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2591 ac_cache_corrupted=: 2592 else 2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2594printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2595 eval $ac_var=\$ac_old_val 2596 fi 2597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2598printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2600printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2601 fi;; 2602 esac 2603 # Pass precious variables to config.status. 2604 if test "$ac_new_set" = set; then 2605 case $ac_new_val in 2606 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2607 *) ac_arg=$ac_var=$ac_new_val ;; 2608 esac 2609 case " $ac_configure_args " in 2610 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2611 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2612 esac 2613 fi 2614done 2615if $ac_cache_corrupted; then 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2617printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2619printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2620 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2621 and start over" "$LINENO" 5 2622fi 2623## -------------------- ## 2624## Main body of script. ## 2625## -------------------- ## 2626 2627ac_ext=c 2628ac_cpp='$CPP $CPPFLAGS' 2629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2631ac_compiler_gnu=$ac_cv_c_compiler_gnu 2632 2633 2634 2635ac_config_headers="$ac_config_headers config.h" 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649# Expand $ac_aux_dir to an absolute path. 2650am_aux_dir=`cd "$ac_aux_dir" && pwd` 2651 2652ac_ext=c 2653ac_cpp='$CPP $CPPFLAGS' 2654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2656ac_compiler_gnu=$ac_cv_c_compiler_gnu 2657if test -n "$ac_tool_prefix"; then 2658 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2659set dummy ${ac_tool_prefix}gcc; ac_word=$2 2660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2661printf %s "checking for $ac_word... " >&6; } 2662if test ${ac_cv_prog_CC+y} 2663then : 2664 printf %s "(cached) " >&6 2665else $as_nop 2666 if test -n "$CC"; then 2667 ac_cv_prog_CC="$CC" # Let the user override the test. 2668else 2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 case $as_dir in #((( 2674 '') as_dir=./ ;; 2675 */) ;; 2676 *) as_dir=$as_dir/ ;; 2677 esac 2678 for ac_exec_ext in '' $ac_executable_extensions; do 2679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2680 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2682 break 2 2683 fi 2684done 2685 done 2686IFS=$as_save_IFS 2687 2688fi 2689fi 2690CC=$ac_cv_prog_CC 2691if test -n "$CC"; then 2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2693printf "%s\n" "$CC" >&6; } 2694else 2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2696printf "%s\n" "no" >&6; } 2697fi 2698 2699 2700fi 2701if test -z "$ac_cv_prog_CC"; then 2702 ac_ct_CC=$CC 2703 # Extract the first word of "gcc", so it can be a program name with args. 2704set dummy gcc; ac_word=$2 2705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2706printf %s "checking for $ac_word... " >&6; } 2707if test ${ac_cv_prog_ac_ct_CC+y} 2708then : 2709 printf %s "(cached) " >&6 2710else $as_nop 2711 if test -n "$ac_ct_CC"; then 2712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 case $as_dir in #((( 2719 '') as_dir=./ ;; 2720 */) ;; 2721 *) as_dir=$as_dir/ ;; 2722 esac 2723 for ac_exec_ext in '' $ac_executable_extensions; do 2724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2725 ac_cv_prog_ac_ct_CC="gcc" 2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2727 break 2 2728 fi 2729done 2730 done 2731IFS=$as_save_IFS 2732 2733fi 2734fi 2735ac_ct_CC=$ac_cv_prog_ac_ct_CC 2736if test -n "$ac_ct_CC"; then 2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2738printf "%s\n" "$ac_ct_CC" >&6; } 2739else 2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2741printf "%s\n" "no" >&6; } 2742fi 2743 2744 if test "x$ac_ct_CC" = x; then 2745 CC="" 2746 else 2747 case $cross_compiling:$ac_tool_warned in 2748yes:) 2749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2750printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2751ac_tool_warned=yes ;; 2752esac 2753 CC=$ac_ct_CC 2754 fi 2755else 2756 CC="$ac_cv_prog_CC" 2757fi 2758 2759if test -z "$CC"; then 2760 if test -n "$ac_tool_prefix"; then 2761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2762set dummy ${ac_tool_prefix}cc; ac_word=$2 2763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764printf %s "checking for $ac_word... " >&6; } 2765if test ${ac_cv_prog_CC+y} 2766then : 2767 printf %s "(cached) " >&6 2768else $as_nop 2769 if test -n "$CC"; then 2770 ac_cv_prog_CC="$CC" # Let the user override the test. 2771else 2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773for as_dir in $PATH 2774do 2775 IFS=$as_save_IFS 2776 case $as_dir in #((( 2777 '') as_dir=./ ;; 2778 */) ;; 2779 *) as_dir=$as_dir/ ;; 2780 esac 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_CC="${ac_tool_prefix}cc" 2784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793CC=$ac_cv_prog_CC 2794if test -n "$CC"; then 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2796printf "%s\n" "$CC" >&6; } 2797else 2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799printf "%s\n" "no" >&6; } 2800fi 2801 2802 2803 fi 2804fi 2805if test -z "$CC"; then 2806 # Extract the first word of "cc", so it can be a program name with args. 2807set dummy cc; ac_word=$2 2808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809printf %s "checking for $ac_word... " >&6; } 2810if test ${ac_cv_prog_CC+y} 2811then : 2812 printf %s "(cached) " >&6 2813else $as_nop 2814 if test -n "$CC"; then 2815 ac_cv_prog_CC="$CC" # Let the user override the test. 2816else 2817 ac_prog_rejected=no 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 case $as_dir in #((( 2823 '') as_dir=./ ;; 2824 */) ;; 2825 *) as_dir=$as_dir/ ;; 2826 esac 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2829 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2830 ac_prog_rejected=yes 2831 continue 2832 fi 2833 ac_cv_prog_CC="cc" 2834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2835 break 2 2836 fi 2837done 2838 done 2839IFS=$as_save_IFS 2840 2841if test $ac_prog_rejected = yes; then 2842 # We found a bogon in the path, so make sure we never use it. 2843 set dummy $ac_cv_prog_CC 2844 shift 2845 if test $# != 0; then 2846 # We chose a different compiler from the bogus one. 2847 # However, it has the same basename, so the bogon will be chosen 2848 # first if we set CC to just the basename; use the full file name. 2849 shift 2850 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2851 fi 2852fi 2853fi 2854fi 2855CC=$ac_cv_prog_CC 2856if test -n "$CC"; then 2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2858printf "%s\n" "$CC" >&6; } 2859else 2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2861printf "%s\n" "no" >&6; } 2862fi 2863 2864 2865fi 2866if test -z "$CC"; then 2867 if test -n "$ac_tool_prefix"; then 2868 for ac_prog in cl.exe 2869 do 2870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2871set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2873printf %s "checking for $ac_word... " >&6; } 2874if test ${ac_cv_prog_CC+y} 2875then : 2876 printf %s "(cached) " >&6 2877else $as_nop 2878 if test -n "$CC"; then 2879 ac_cv_prog_CC="$CC" # Let the user override the test. 2880else 2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2882for as_dir in $PATH 2883do 2884 IFS=$as_save_IFS 2885 case $as_dir in #((( 2886 '') as_dir=./ ;; 2887 */) ;; 2888 *) as_dir=$as_dir/ ;; 2889 esac 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897 done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902CC=$ac_cv_prog_CC 2903if test -n "$CC"; then 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2905printf "%s\n" "$CC" >&6; } 2906else 2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908printf "%s\n" "no" >&6; } 2909fi 2910 2911 2912 test -n "$CC" && break 2913 done 2914fi 2915if test -z "$CC"; then 2916 ac_ct_CC=$CC 2917 for ac_prog in cl.exe 2918do 2919 # Extract the first word of "$ac_prog", so it can be a program name with args. 2920set dummy $ac_prog; ac_word=$2 2921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922printf %s "checking for $ac_word... " >&6; } 2923if test ${ac_cv_prog_ac_ct_CC+y} 2924then : 2925 printf %s "(cached) " >&6 2926else $as_nop 2927 if test -n "$ac_ct_CC"; then 2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2929else 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 case $as_dir in #((( 2935 '') as_dir=./ ;; 2936 */) ;; 2937 *) as_dir=$as_dir/ ;; 2938 esac 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_ac_ct_CC="$ac_prog" 2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951ac_ct_CC=$ac_cv_prog_ac_ct_CC 2952if test -n "$ac_ct_CC"; then 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2954printf "%s\n" "$ac_ct_CC" >&6; } 2955else 2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957printf "%s\n" "no" >&6; } 2958fi 2959 2960 2961 test -n "$ac_ct_CC" && break 2962done 2963 2964 if test "x$ac_ct_CC" = x; then 2965 CC="" 2966 else 2967 case $cross_compiling:$ac_tool_warned in 2968yes:) 2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2970printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2971ac_tool_warned=yes ;; 2972esac 2973 CC=$ac_ct_CC 2974 fi 2975fi 2976 2977fi 2978if test -z "$CC"; then 2979 if test -n "$ac_tool_prefix"; then 2980 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2981set dummy ${ac_tool_prefix}clang; ac_word=$2 2982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2983printf %s "checking for $ac_word... " >&6; } 2984if test ${ac_cv_prog_CC+y} 2985then : 2986 printf %s "(cached) " >&6 2987else $as_nop 2988 if test -n "$CC"; then 2989 ac_cv_prog_CC="$CC" # Let the user override the test. 2990else 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH 2993do 2994 IFS=$as_save_IFS 2995 case $as_dir in #((( 2996 '') as_dir=./ ;; 2997 */) ;; 2998 *) as_dir=$as_dir/ ;; 2999 esac 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3002 ac_cv_prog_CC="${ac_tool_prefix}clang" 3003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3004 break 2 3005 fi 3006done 3007 done 3008IFS=$as_save_IFS 3009 3010fi 3011fi 3012CC=$ac_cv_prog_CC 3013if test -n "$CC"; then 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3015printf "%s\n" "$CC" >&6; } 3016else 3017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3018printf "%s\n" "no" >&6; } 3019fi 3020 3021 3022fi 3023if test -z "$ac_cv_prog_CC"; then 3024 ac_ct_CC=$CC 3025 # Extract the first word of "clang", so it can be a program name with args. 3026set dummy clang; ac_word=$2 3027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3028printf %s "checking for $ac_word... " >&6; } 3029if test ${ac_cv_prog_ac_ct_CC+y} 3030then : 3031 printf %s "(cached) " >&6 3032else $as_nop 3033 if test -n "$ac_ct_CC"; then 3034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3035else 3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3037for as_dir in $PATH 3038do 3039 IFS=$as_save_IFS 3040 case $as_dir in #((( 3041 '') as_dir=./ ;; 3042 */) ;; 3043 *) as_dir=$as_dir/ ;; 3044 esac 3045 for ac_exec_ext in '' $ac_executable_extensions; do 3046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3047 ac_cv_prog_ac_ct_CC="clang" 3048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3049 break 2 3050 fi 3051done 3052 done 3053IFS=$as_save_IFS 3054 3055fi 3056fi 3057ac_ct_CC=$ac_cv_prog_ac_ct_CC 3058if test -n "$ac_ct_CC"; then 3059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3060printf "%s\n" "$ac_ct_CC" >&6; } 3061else 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3063printf "%s\n" "no" >&6; } 3064fi 3065 3066 if test "x$ac_ct_CC" = x; then 3067 CC="" 3068 else 3069 case $cross_compiling:$ac_tool_warned in 3070yes:) 3071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3072printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3073ac_tool_warned=yes ;; 3074esac 3075 CC=$ac_ct_CC 3076 fi 3077else 3078 CC="$ac_cv_prog_CC" 3079fi 3080 3081fi 3082 3083 3084test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3085printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3086as_fn_error $? "no acceptable C compiler found in \$PATH 3087See \`config.log' for more details" "$LINENO" 5; } 3088 3089# Provide some information about the compiler. 3090printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3091set X $ac_compile 3092ac_compiler=$2 3093for ac_option in --version -v -V -qversion -version; do 3094 { { ac_try="$ac_compiler $ac_option >&5" 3095case "(($ac_try" in 3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3097 *) ac_try_echo=$ac_try;; 3098esac 3099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3100printf "%s\n" "$ac_try_echo"; } >&5 3101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3102 ac_status=$? 3103 if test -s conftest.err; then 3104 sed '10a\ 3105... rest of stderr output deleted ... 3106 10q' conftest.err >conftest.er1 3107 cat conftest.er1 >&5 3108 fi 3109 rm -f conftest.er1 conftest.err 3110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3111 test $ac_status = 0; } 3112done 3113 3114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3115/* end confdefs.h. */ 3116 3117int 3118main (void) 3119{ 3120 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125ac_clean_files_save=$ac_clean_files 3126ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3127# Try to create an executable without -o first, disregard a.out. 3128# It will help us diagnose broken compilers, and finding out an intuition 3129# of exeext. 3130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3131printf %s "checking whether the C compiler works... " >&6; } 3132ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3133 3134# The possible output files: 3135ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3136 3137ac_rmfiles= 3138for ac_file in $ac_files 3139do 3140 case $ac_file in 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3142 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3143 esac 3144done 3145rm -f $ac_rmfiles 3146 3147if { { ac_try="$ac_link_default" 3148case "(($ac_try" in 3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3150 *) ac_try_echo=$ac_try;; 3151esac 3152eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3153printf "%s\n" "$ac_try_echo"; } >&5 3154 (eval "$ac_link_default") 2>&5 3155 ac_status=$? 3156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3157 test $ac_status = 0; } 3158then : 3159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3160# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3161# in a Makefile. We should not override ac_cv_exeext if it was cached, 3162# so that the user can short-circuit this test for compilers unknown to 3163# Autoconf. 3164for ac_file in $ac_files '' 3165do 3166 test -f "$ac_file" || continue 3167 case $ac_file in 3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3169 ;; 3170 [ab].out ) 3171 # We found the default executable, but exeext='' is most 3172 # certainly right. 3173 break;; 3174 *.* ) 3175 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3176 then :; else 3177 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3178 fi 3179 # We set ac_cv_exeext here because the later test for it is not 3180 # safe: cross compilers may not add the suffix if given an `-o' 3181 # argument, so we may need to know it at that point already. 3182 # Even if this section looks crufty: it has the advantage of 3183 # actually working. 3184 break;; 3185 * ) 3186 break;; 3187 esac 3188done 3189test "$ac_cv_exeext" = no && ac_cv_exeext= 3190 3191else $as_nop 3192 ac_file='' 3193fi 3194if test -z "$ac_file" 3195then : 3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3197printf "%s\n" "no" >&6; } 3198printf "%s\n" "$as_me: failed program was:" >&5 3199sed 's/^/| /' conftest.$ac_ext >&5 3200 3201{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3202printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3203as_fn_error 77 "C compiler cannot create executables 3204See \`config.log' for more details" "$LINENO" 5; } 3205else $as_nop 3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3207printf "%s\n" "yes" >&6; } 3208fi 3209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3210printf %s "checking for C compiler default output file name... " >&6; } 3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3212printf "%s\n" "$ac_file" >&6; } 3213ac_exeext=$ac_cv_exeext 3214 3215rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3216ac_clean_files=$ac_clean_files_save 3217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3218printf %s "checking for suffix of executables... " >&6; } 3219if { { ac_try="$ac_link" 3220case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223esac 3224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3225printf "%s\n" "$ac_try_echo"; } >&5 3226 (eval "$ac_link") 2>&5 3227 ac_status=$? 3228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3229 test $ac_status = 0; } 3230then : 3231 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3232# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3233# work properly (i.e., refer to `conftest.exe'), while it won't with 3234# `rm'. 3235for ac_file in conftest.exe conftest conftest.*; do 3236 test -f "$ac_file" || continue 3237 case $ac_file in 3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3239 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3240 break;; 3241 * ) break;; 3242 esac 3243done 3244else $as_nop 3245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3246printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3247as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3248See \`config.log' for more details" "$LINENO" 5; } 3249fi 3250rm -f conftest conftest$ac_cv_exeext 3251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3252printf "%s\n" "$ac_cv_exeext" >&6; } 3253 3254rm -f conftest.$ac_ext 3255EXEEXT=$ac_cv_exeext 3256ac_exeext=$EXEEXT 3257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258/* end confdefs.h. */ 3259#include <stdio.h> 3260int 3261main (void) 3262{ 3263FILE *f = fopen ("conftest.out", "w"); 3264 return ferror (f) || fclose (f) != 0; 3265 3266 ; 3267 return 0; 3268} 3269_ACEOF 3270ac_clean_files="$ac_clean_files conftest.out" 3271# Check that the compiler produces executables we can run. If not, either 3272# the compiler is broken, or we cross compile. 3273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3274printf %s "checking whether we are cross compiling... " >&6; } 3275if test "$cross_compiling" != yes; then 3276 { { ac_try="$ac_link" 3277case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282printf "%s\n" "$ac_try_echo"; } >&5 3283 (eval "$ac_link") 2>&5 3284 ac_status=$? 3285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3286 test $ac_status = 0; } 3287 if { ac_try='./conftest$ac_cv_exeext' 3288 { { case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3293printf "%s\n" "$ac_try_echo"; } >&5 3294 (eval "$ac_try") 2>&5 3295 ac_status=$? 3296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3297 test $ac_status = 0; }; }; then 3298 cross_compiling=no 3299 else 3300 if test "$cross_compiling" = maybe; then 3301 cross_compiling=yes 3302 else 3303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3304printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3305as_fn_error 77 "cannot run C compiled programs. 3306If you meant to cross compile, use \`--host'. 3307See \`config.log' for more details" "$LINENO" 5; } 3308 fi 3309 fi 3310fi 3311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3312printf "%s\n" "$cross_compiling" >&6; } 3313 3314rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3315ac_clean_files=$ac_clean_files_save 3316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3317printf %s "checking for suffix of object files... " >&6; } 3318if test ${ac_cv_objext+y} 3319then : 3320 printf %s "(cached) " >&6 3321else $as_nop 3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3323/* end confdefs.h. */ 3324 3325int 3326main (void) 3327{ 3328 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333rm -f conftest.o conftest.obj 3334if { { ac_try="$ac_compile" 3335case "(($ac_try" in 3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337 *) ac_try_echo=$ac_try;; 3338esac 3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3340printf "%s\n" "$ac_try_echo"; } >&5 3341 (eval "$ac_compile") 2>&5 3342 ac_status=$? 3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3344 test $ac_status = 0; } 3345then : 3346 for ac_file in conftest.o conftest.obj conftest.*; do 3347 test -f "$ac_file" || continue; 3348 case $ac_file in 3349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3350 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3351 break;; 3352 esac 3353done 3354else $as_nop 3355 printf "%s\n" "$as_me: failed program was:" >&5 3356sed 's/^/| /' conftest.$ac_ext >&5 3357 3358{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3359printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3360as_fn_error $? "cannot compute suffix of object files: cannot compile 3361See \`config.log' for more details" "$LINENO" 5; } 3362fi 3363rm -f conftest.$ac_cv_objext conftest.$ac_ext 3364fi 3365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3366printf "%s\n" "$ac_cv_objext" >&6; } 3367OBJEXT=$ac_cv_objext 3368ac_objext=$OBJEXT 3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3370printf %s "checking whether the compiler supports GNU C... " >&6; } 3371if test ${ac_cv_c_compiler_gnu+y} 3372then : 3373 printf %s "(cached) " >&6 3374else $as_nop 3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3376/* end confdefs.h. */ 3377 3378int 3379main (void) 3380{ 3381#ifndef __GNUC__ 3382 choke me 3383#endif 3384 3385 ; 3386 return 0; 3387} 3388_ACEOF 3389if ac_fn_c_try_compile "$LINENO" 3390then : 3391 ac_compiler_gnu=yes 3392else $as_nop 3393 ac_compiler_gnu=no 3394fi 3395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3396ac_cv_c_compiler_gnu=$ac_compiler_gnu 3397 3398fi 3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3400printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3401ac_compiler_gnu=$ac_cv_c_compiler_gnu 3402 3403if test $ac_compiler_gnu = yes; then 3404 GCC=yes 3405else 3406 GCC= 3407fi 3408ac_test_CFLAGS=${CFLAGS+y} 3409ac_save_CFLAGS=$CFLAGS 3410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3411printf %s "checking whether $CC accepts -g... " >&6; } 3412if test ${ac_cv_prog_cc_g+y} 3413then : 3414 printf %s "(cached) " >&6 3415else $as_nop 3416 ac_save_c_werror_flag=$ac_c_werror_flag 3417 ac_c_werror_flag=yes 3418 ac_cv_prog_cc_g=no 3419 CFLAGS="-g" 3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421/* end confdefs.h. */ 3422 3423int 3424main (void) 3425{ 3426 3427 ; 3428 return 0; 3429} 3430_ACEOF 3431if ac_fn_c_try_compile "$LINENO" 3432then : 3433 ac_cv_prog_cc_g=yes 3434else $as_nop 3435 CFLAGS="" 3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3437/* end confdefs.h. */ 3438 3439int 3440main (void) 3441{ 3442 3443 ; 3444 return 0; 3445} 3446_ACEOF 3447if ac_fn_c_try_compile "$LINENO" 3448then : 3449 3450else $as_nop 3451 ac_c_werror_flag=$ac_save_c_werror_flag 3452 CFLAGS="-g" 3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454/* end confdefs.h. */ 3455 3456int 3457main (void) 3458{ 3459 3460 ; 3461 return 0; 3462} 3463_ACEOF 3464if ac_fn_c_try_compile "$LINENO" 3465then : 3466 ac_cv_prog_cc_g=yes 3467fi 3468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3469fi 3470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3471fi 3472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3473 ac_c_werror_flag=$ac_save_c_werror_flag 3474fi 3475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3476printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3477if test $ac_test_CFLAGS; then 3478 CFLAGS=$ac_save_CFLAGS 3479elif test $ac_cv_prog_cc_g = yes; then 3480 if test "$GCC" = yes; then 3481 CFLAGS="-g -O2" 3482 else 3483 CFLAGS="-g" 3484 fi 3485else 3486 if test "$GCC" = yes; then 3487 CFLAGS="-O2" 3488 else 3489 CFLAGS= 3490 fi 3491fi 3492ac_prog_cc_stdc=no 3493if test x$ac_prog_cc_stdc = xno 3494then : 3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3496printf %s "checking for $CC option to enable C11 features... " >&6; } 3497if test ${ac_cv_prog_cc_c11+y} 3498then : 3499 printf %s "(cached) " >&6 3500else $as_nop 3501 ac_cv_prog_cc_c11=no 3502ac_save_CC=$CC 3503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3504/* end confdefs.h. */ 3505$ac_c_conftest_c11_program 3506_ACEOF 3507for ac_arg in '' -std=gnu11 3508do 3509 CC="$ac_save_CC $ac_arg" 3510 if ac_fn_c_try_compile "$LINENO" 3511then : 3512 ac_cv_prog_cc_c11=$ac_arg 3513fi 3514rm -f core conftest.err conftest.$ac_objext conftest.beam 3515 test "x$ac_cv_prog_cc_c11" != "xno" && break 3516done 3517rm -f conftest.$ac_ext 3518CC=$ac_save_CC 3519fi 3520 3521if test "x$ac_cv_prog_cc_c11" = xno 3522then : 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3524printf "%s\n" "unsupported" >&6; } 3525else $as_nop 3526 if test "x$ac_cv_prog_cc_c11" = x 3527then : 3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3529printf "%s\n" "none needed" >&6; } 3530else $as_nop 3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3532printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3533 CC="$CC $ac_cv_prog_cc_c11" 3534fi 3535 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3536 ac_prog_cc_stdc=c11 3537fi 3538fi 3539if test x$ac_prog_cc_stdc = xno 3540then : 3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3542printf %s "checking for $CC option to enable C99 features... " >&6; } 3543if test ${ac_cv_prog_cc_c99+y} 3544then : 3545 printf %s "(cached) " >&6 3546else $as_nop 3547 ac_cv_prog_cc_c99=no 3548ac_save_CC=$CC 3549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550/* end confdefs.h. */ 3551$ac_c_conftest_c99_program 3552_ACEOF 3553for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3554do 3555 CC="$ac_save_CC $ac_arg" 3556 if ac_fn_c_try_compile "$LINENO" 3557then : 3558 ac_cv_prog_cc_c99=$ac_arg 3559fi 3560rm -f core conftest.err conftest.$ac_objext conftest.beam 3561 test "x$ac_cv_prog_cc_c99" != "xno" && break 3562done 3563rm -f conftest.$ac_ext 3564CC=$ac_save_CC 3565fi 3566 3567if test "x$ac_cv_prog_cc_c99" = xno 3568then : 3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3570printf "%s\n" "unsupported" >&6; } 3571else $as_nop 3572 if test "x$ac_cv_prog_cc_c99" = x 3573then : 3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3575printf "%s\n" "none needed" >&6; } 3576else $as_nop 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3578printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3579 CC="$CC $ac_cv_prog_cc_c99" 3580fi 3581 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3582 ac_prog_cc_stdc=c99 3583fi 3584fi 3585if test x$ac_prog_cc_stdc = xno 3586then : 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3588printf %s "checking for $CC option to enable C89 features... " >&6; } 3589if test ${ac_cv_prog_cc_c89+y} 3590then : 3591 printf %s "(cached) " >&6 3592else $as_nop 3593 ac_cv_prog_cc_c89=no 3594ac_save_CC=$CC 3595cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3596/* end confdefs.h. */ 3597$ac_c_conftest_c89_program 3598_ACEOF 3599for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3600do 3601 CC="$ac_save_CC $ac_arg" 3602 if ac_fn_c_try_compile "$LINENO" 3603then : 3604 ac_cv_prog_cc_c89=$ac_arg 3605fi 3606rm -f core conftest.err conftest.$ac_objext conftest.beam 3607 test "x$ac_cv_prog_cc_c89" != "xno" && break 3608done 3609rm -f conftest.$ac_ext 3610CC=$ac_save_CC 3611fi 3612 3613if test "x$ac_cv_prog_cc_c89" = xno 3614then : 3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3616printf "%s\n" "unsupported" >&6; } 3617else $as_nop 3618 if test "x$ac_cv_prog_cc_c89" = x 3619then : 3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3621printf "%s\n" "none needed" >&6; } 3622else $as_nop 3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3624printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3625 CC="$CC $ac_cv_prog_cc_c89" 3626fi 3627 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3628 ac_prog_cc_stdc=c89 3629fi 3630fi 3631 3632ac_ext=c 3633ac_cpp='$CPP $CPPFLAGS' 3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3636ac_compiler_gnu=$ac_cv_c_compiler_gnu 3637 3638 3639 ac_ext=c 3640ac_cpp='$CPP $CPPFLAGS' 3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3643ac_compiler_gnu=$ac_cv_c_compiler_gnu 3644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3645printf %s "checking whether $CC understands -c and -o together... " >&6; } 3646if test ${am_cv_prog_cc_c_o+y} 3647then : 3648 printf %s "(cached) " >&6 3649else $as_nop 3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3651/* end confdefs.h. */ 3652 3653int 3654main (void) 3655{ 3656 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661 # Make sure it works both with $CC and with simple cc. 3662 # Following AC_PROG_CC_C_O, we do the test twice because some 3663 # compilers refuse to overwrite an existing .o file with -o, 3664 # though they will create one. 3665 am_cv_prog_cc_c_o=yes 3666 for am_i in 1 2; do 3667 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3668 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3669 ac_status=$? 3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3671 (exit $ac_status); } \ 3672 && test -f conftest2.$ac_objext; then 3673 : OK 3674 else 3675 am_cv_prog_cc_c_o=no 3676 break 3677 fi 3678 done 3679 rm -f core conftest* 3680 unset am_i 3681fi 3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3683printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3684if test "$am_cv_prog_cc_c_o" != yes; then 3685 # Losing compiler, so override with the script. 3686 # FIXME: It is wrong to rewrite CC. 3687 # But if we don't then we get into trouble of one sort or another. 3688 # A longer-term fix would be to have automake use am__CC in this case, 3689 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3690 CC="$am_aux_dir/compile $CC" 3691fi 3692ac_ext=c 3693ac_cpp='$CPP $CPPFLAGS' 3694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3696ac_compiler_gnu=$ac_cv_c_compiler_gnu 3697 3698 3699 3700ac_header= ac_cache= 3701for ac_item in $ac_header_c_list 3702do 3703 if test $ac_cache; then 3704 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3705 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3706 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3707 fi 3708 ac_header= ac_cache= 3709 elif test $ac_header; then 3710 ac_cache=$ac_item 3711 else 3712 ac_header=$ac_item 3713 fi 3714done 3715 3716 3717 3718 3719 3720 3721 3722 3723if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3724then : 3725 3726printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3727 3728fi 3729 3730 3731 3732 3733 3734 3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3736printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3737if test ${ac_cv_safe_to_define___extensions__+y} 3738then : 3739 printf %s "(cached) " >&6 3740else $as_nop 3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3742/* end confdefs.h. */ 3743 3744# define __EXTENSIONS__ 1 3745 $ac_includes_default 3746int 3747main (void) 3748{ 3749 3750 ; 3751 return 0; 3752} 3753_ACEOF 3754if ac_fn_c_try_compile "$LINENO" 3755then : 3756 ac_cv_safe_to_define___extensions__=yes 3757else $as_nop 3758 ac_cv_safe_to_define___extensions__=no 3759fi 3760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3761fi 3762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3763printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3764 3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3766printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3767if test ${ac_cv_should_define__xopen_source+y} 3768then : 3769 printf %s "(cached) " >&6 3770else $as_nop 3771 ac_cv_should_define__xopen_source=no 3772 if test $ac_cv_header_wchar_h = yes 3773then : 3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3775/* end confdefs.h. */ 3776 3777 #include <wchar.h> 3778 mbstate_t x; 3779int 3780main (void) 3781{ 3782 3783 ; 3784 return 0; 3785} 3786_ACEOF 3787if ac_fn_c_try_compile "$LINENO" 3788then : 3789 3790else $as_nop 3791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3792/* end confdefs.h. */ 3793 3794 #define _XOPEN_SOURCE 500 3795 #include <wchar.h> 3796 mbstate_t x; 3797int 3798main (void) 3799{ 3800 3801 ; 3802 return 0; 3803} 3804_ACEOF 3805if ac_fn_c_try_compile "$LINENO" 3806then : 3807 ac_cv_should_define__xopen_source=yes 3808fi 3809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3810fi 3811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3812fi 3813fi 3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3815printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3816 3817 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3818 3819 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3820 3821 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3822 3823 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3824 3825 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3826 3827 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3828 3829 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3830 3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3832 3833 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3834 3835 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3836 3837 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3838 3839 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3840 3841 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3842 3843 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3844 3845 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3846 3847 if test $ac_cv_header_minix_config_h = yes 3848then : 3849 MINIX=yes 3850 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3851 3852 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3853 3854 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3855 3856else $as_nop 3857 MINIX= 3858fi 3859 if test $ac_cv_safe_to_define___extensions__ = yes 3860then : 3861 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3862 3863fi 3864 if test $ac_cv_should_define__xopen_source = yes 3865then : 3866 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3867 3868fi 3869 3870 3871# Initialize Automake 3872am__api_version='1.16' 3873 3874 3875 # Find a good install program. We prefer a C program (faster), 3876# so one script is as good as another. But avoid the broken or 3877# incompatible versions: 3878# SysV /etc/install, /usr/sbin/install 3879# SunOS /usr/etc/install 3880# IRIX /sbin/install 3881# AIX /bin/install 3882# AmigaOS /C/install, which installs bootblocks on floppy discs 3883# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3884# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3885# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3886# OS/2's system install, which has a completely different semantic 3887# ./install, which can be erroneously created by make from ./install.sh. 3888# Reject install programs that cannot install multiple files. 3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3890printf %s "checking for a BSD-compatible install... " >&6; } 3891if test -z "$INSTALL"; then 3892if test ${ac_cv_path_install+y} 3893then : 3894 printf %s "(cached) " >&6 3895else $as_nop 3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3897for as_dir in $PATH 3898do 3899 IFS=$as_save_IFS 3900 case $as_dir in #((( 3901 '') as_dir=./ ;; 3902 */) ;; 3903 *) as_dir=$as_dir/ ;; 3904 esac 3905 # Account for fact that we put trailing slashes in our PATH walk. 3906case $as_dir in #(( 3907 ./ | /[cC]/* | \ 3908 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3909 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3910 /usr/ucb/* ) ;; 3911 *) 3912 # OSF1 and SCO ODT 3.0 have their own names for install. 3913 # Don't use installbsd from OSF since it installs stuff as root 3914 # by default. 3915 for ac_prog in ginstall scoinst install; do 3916 for ac_exec_ext in '' $ac_executable_extensions; do 3917 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3918 if test $ac_prog = install && 3919 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3920 # AIX install. It has an incompatible calling convention. 3921 : 3922 elif test $ac_prog = install && 3923 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3924 # program-specific install script used by HP pwplus--don't use. 3925 : 3926 else 3927 rm -rf conftest.one conftest.two conftest.dir 3928 echo one > conftest.one 3929 echo two > conftest.two 3930 mkdir conftest.dir 3931 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3932 test -s conftest.one && test -s conftest.two && 3933 test -s conftest.dir/conftest.one && 3934 test -s conftest.dir/conftest.two 3935 then 3936 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3937 break 3 3938 fi 3939 fi 3940 fi 3941 done 3942 done 3943 ;; 3944esac 3945 3946 done 3947IFS=$as_save_IFS 3948 3949rm -rf conftest.one conftest.two conftest.dir 3950 3951fi 3952 if test ${ac_cv_path_install+y}; then 3953 INSTALL=$ac_cv_path_install 3954 else 3955 # As a last resort, use the slow shell script. Don't cache a 3956 # value for INSTALL within a source directory, because that will 3957 # break other packages using the cache if that directory is 3958 # removed, or if the value is a relative name. 3959 INSTALL=$ac_install_sh 3960 fi 3961fi 3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3963printf "%s\n" "$INSTALL" >&6; } 3964 3965# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3966# It thinks the first close brace ends the variable substitution. 3967test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3968 3969test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3970 3971test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3972 3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3974printf %s "checking whether build environment is sane... " >&6; } 3975# Reject unsafe characters in $srcdir or the absolute working directory 3976# name. Accept space and tab only in the latter. 3977am_lf=' 3978' 3979case `pwd` in 3980 *[\\\"\#\$\&\'\`$am_lf]*) 3981 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3982esac 3983case $srcdir in 3984 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3985 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3986esac 3987 3988# Do 'set' in a subshell so we don't clobber the current shell's 3989# arguments. Must try -L first in case configure is actually a 3990# symlink; some systems play weird games with the mod time of symlinks 3991# (eg FreeBSD returns the mod time of the symlink's containing 3992# directory). 3993if ( 3994 am_has_slept=no 3995 for am_try in 1 2; do 3996 echo "timestamp, slept: $am_has_slept" > conftest.file 3997 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3998 if test "$*" = "X"; then 3999 # -L didn't work. 4000 set X `ls -t "$srcdir/configure" conftest.file` 4001 fi 4002 if test "$*" != "X $srcdir/configure conftest.file" \ 4003 && test "$*" != "X conftest.file $srcdir/configure"; then 4004 4005 # If neither matched, then we have a broken ls. This can happen 4006 # if, for instance, CONFIG_SHELL is bash and it inherits a 4007 # broken ls alias from the environment. This has actually 4008 # happened. Such a system could not be considered "sane". 4009 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4010 alias in your environment" "$LINENO" 5 4011 fi 4012 if test "$2" = conftest.file || test $am_try -eq 2; then 4013 break 4014 fi 4015 # Just in case. 4016 sleep 1 4017 am_has_slept=yes 4018 done 4019 test "$2" = conftest.file 4020 ) 4021then 4022 # Ok. 4023 : 4024else 4025 as_fn_error $? "newly created file is older than distributed files! 4026Check your system clock" "$LINENO" 5 4027fi 4028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4029printf "%s\n" "yes" >&6; } 4030# If we didn't sleep, we still need to ensure time stamps of config.status and 4031# generated files are strictly newer. 4032am_sleep_pid= 4033if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4034 ( sleep 1 ) & 4035 am_sleep_pid=$! 4036fi 4037 4038rm -f conftest.file 4039 4040test "$program_prefix" != NONE && 4041 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4042# Use a double $ so make ignores it. 4043test "$program_suffix" != NONE && 4044 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4045# Double any \ or $. 4046# By default was `s,x,x', remove it if useless. 4047ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4048program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4049 4050 4051 if test x"${MISSING+set}" != xset; then 4052 MISSING="\${SHELL} '$am_aux_dir/missing'" 4053fi 4054# Use eval to expand $SHELL 4055if eval "$MISSING --is-lightweight"; then 4056 am_missing_run="$MISSING " 4057else 4058 am_missing_run= 4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4060printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4061fi 4062 4063if test x"${install_sh+set}" != xset; then 4064 case $am_aux_dir in 4065 *\ * | *\ *) 4066 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4067 *) 4068 install_sh="\${SHELL} $am_aux_dir/install-sh" 4069 esac 4070fi 4071 4072# Installed binaries are usually stripped using 'strip' when the user 4073# run "make install-strip". However 'strip' might not be the right 4074# tool to use in cross-compilation environments, therefore Automake 4075# will honor the 'STRIP' environment variable to overrule this program. 4076if test "$cross_compiling" != no; then 4077 if test -n "$ac_tool_prefix"; then 4078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4079set dummy ${ac_tool_prefix}strip; ac_word=$2 4080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4081printf %s "checking for $ac_word... " >&6; } 4082if test ${ac_cv_prog_STRIP+y} 4083then : 4084 printf %s "(cached) " >&6 4085else $as_nop 4086 if test -n "$STRIP"; then 4087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4088else 4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090for as_dir in $PATH 4091do 4092 IFS=$as_save_IFS 4093 case $as_dir in #((( 4094 '') as_dir=./ ;; 4095 */) ;; 4096 *) as_dir=$as_dir/ ;; 4097 esac 4098 for ac_exec_ext in '' $ac_executable_extensions; do 4099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4100 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4102 break 2 4103 fi 4104done 4105 done 4106IFS=$as_save_IFS 4107 4108fi 4109fi 4110STRIP=$ac_cv_prog_STRIP 4111if test -n "$STRIP"; then 4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4113printf "%s\n" "$STRIP" >&6; } 4114else 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4116printf "%s\n" "no" >&6; } 4117fi 4118 4119 4120fi 4121if test -z "$ac_cv_prog_STRIP"; then 4122 ac_ct_STRIP=$STRIP 4123 # Extract the first word of "strip", so it can be a program name with args. 4124set dummy strip; ac_word=$2 4125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4126printf %s "checking for $ac_word... " >&6; } 4127if test ${ac_cv_prog_ac_ct_STRIP+y} 4128then : 4129 printf %s "(cached) " >&6 4130else $as_nop 4131 if test -n "$ac_ct_STRIP"; then 4132 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4133else 4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4135for as_dir in $PATH 4136do 4137 IFS=$as_save_IFS 4138 case $as_dir in #((( 4139 '') as_dir=./ ;; 4140 */) ;; 4141 *) as_dir=$as_dir/ ;; 4142 esac 4143 for ac_exec_ext in '' $ac_executable_extensions; do 4144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4145 ac_cv_prog_ac_ct_STRIP="strip" 4146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4147 break 2 4148 fi 4149done 4150 done 4151IFS=$as_save_IFS 4152 4153fi 4154fi 4155ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4156if test -n "$ac_ct_STRIP"; then 4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4158printf "%s\n" "$ac_ct_STRIP" >&6; } 4159else 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4161printf "%s\n" "no" >&6; } 4162fi 4163 4164 if test "x$ac_ct_STRIP" = x; then 4165 STRIP=":" 4166 else 4167 case $cross_compiling:$ac_tool_warned in 4168yes:) 4169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4170printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4171ac_tool_warned=yes ;; 4172esac 4173 STRIP=$ac_ct_STRIP 4174 fi 4175else 4176 STRIP="$ac_cv_prog_STRIP" 4177fi 4178 4179fi 4180INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4181 4182 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4184printf %s "checking for a race-free mkdir -p... " >&6; } 4185if test -z "$MKDIR_P"; then 4186 if test ${ac_cv_path_mkdir+y} 4187then : 4188 printf %s "(cached) " >&6 4189else $as_nop 4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4191for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4192do 4193 IFS=$as_save_IFS 4194 case $as_dir in #((( 4195 '') as_dir=./ ;; 4196 */) ;; 4197 *) as_dir=$as_dir/ ;; 4198 esac 4199 for ac_prog in mkdir gmkdir; do 4200 for ac_exec_ext in '' $ac_executable_extensions; do 4201 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4202 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4203 'mkdir ('*'coreutils) '* | \ 4204 'BusyBox '* | \ 4205 'mkdir (fileutils) '4.1*) 4206 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4207 break 3;; 4208 esac 4209 done 4210 done 4211 done 4212IFS=$as_save_IFS 4213 4214fi 4215 4216 test -d ./--version && rmdir ./--version 4217 if test ${ac_cv_path_mkdir+y}; then 4218 MKDIR_P="$ac_cv_path_mkdir -p" 4219 else 4220 # As a last resort, use the slow shell script. Don't cache a 4221 # value for MKDIR_P within a source directory, because that will 4222 # break other packages using the cache if that directory is 4223 # removed, or if the value is a relative name. 4224 MKDIR_P="$ac_install_sh -d" 4225 fi 4226fi 4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4228printf "%s\n" "$MKDIR_P" >&6; } 4229 4230for ac_prog in gawk mawk nawk awk 4231do 4232 # Extract the first word of "$ac_prog", so it can be a program name with args. 4233set dummy $ac_prog; ac_word=$2 4234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4235printf %s "checking for $ac_word... " >&6; } 4236if test ${ac_cv_prog_AWK+y} 4237then : 4238 printf %s "(cached) " >&6 4239else $as_nop 4240 if test -n "$AWK"; then 4241 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4242else 4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4244for as_dir in $PATH 4245do 4246 IFS=$as_save_IFS 4247 case $as_dir in #((( 4248 '') as_dir=./ ;; 4249 */) ;; 4250 *) as_dir=$as_dir/ ;; 4251 esac 4252 for ac_exec_ext in '' $ac_executable_extensions; do 4253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4254 ac_cv_prog_AWK="$ac_prog" 4255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4256 break 2 4257 fi 4258done 4259 done 4260IFS=$as_save_IFS 4261 4262fi 4263fi 4264AWK=$ac_cv_prog_AWK 4265if test -n "$AWK"; then 4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4267printf "%s\n" "$AWK" >&6; } 4268else 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4270printf "%s\n" "no" >&6; } 4271fi 4272 4273 4274 test -n "$AWK" && break 4275done 4276 4277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4278printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4279set x ${MAKE-make} 4280ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4281if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4282then : 4283 printf %s "(cached) " >&6 4284else $as_nop 4285 cat >conftest.make <<\_ACEOF 4286SHELL = /bin/sh 4287all: 4288 @echo '@@@%%%=$(MAKE)=@@@%%%' 4289_ACEOF 4290# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4291case `${MAKE-make} -f conftest.make 2>/dev/null` in 4292 *@@@%%%=?*=@@@%%%*) 4293 eval ac_cv_prog_make_${ac_make}_set=yes;; 4294 *) 4295 eval ac_cv_prog_make_${ac_make}_set=no;; 4296esac 4297rm -f conftest.make 4298fi 4299if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4301printf "%s\n" "yes" >&6; } 4302 SET_MAKE= 4303else 4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4305printf "%s\n" "no" >&6; } 4306 SET_MAKE="MAKE=${MAKE-make}" 4307fi 4308 4309rm -rf .tst 2>/dev/null 4310mkdir .tst 2>/dev/null 4311if test -d .tst; then 4312 am__leading_dot=. 4313else 4314 am__leading_dot=_ 4315fi 4316rmdir .tst 2>/dev/null 4317 4318DEPDIR="${am__leading_dot}deps" 4319 4320ac_config_commands="$ac_config_commands depfiles" 4321 4322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4323printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4324cat > confinc.mk << 'END' 4325am__doit: 4326 @echo this is the am__doit target >confinc.out 4327.PHONY: am__doit 4328END 4329am__include="#" 4330am__quote= 4331# BSD make does it like this. 4332echo '.include "confinc.mk" # ignored' > confmf.BSD 4333# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4334echo 'include confinc.mk # ignored' > confmf.GNU 4335_am_result=no 4336for s in GNU BSD; do 4337 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4338 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4339 ac_status=$? 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4341 (exit $ac_status); } 4342 case $?:`cat confinc.out 2>/dev/null` in #( 4343 '0:this is the am__doit target') : 4344 case $s in #( 4345 BSD) : 4346 am__include='.include' am__quote='"' ;; #( 4347 *) : 4348 am__include='include' am__quote='' ;; 4349esac ;; #( 4350 *) : 4351 ;; 4352esac 4353 if test "$am__include" != "#"; then 4354 _am_result="yes ($s style)" 4355 break 4356 fi 4357done 4358rm -f confinc.* confmf.* 4359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4360printf "%s\n" "${_am_result}" >&6; } 4361 4362# Check whether --enable-dependency-tracking was given. 4363if test ${enable_dependency_tracking+y} 4364then : 4365 enableval=$enable_dependency_tracking; 4366fi 4367 4368if test "x$enable_dependency_tracking" != xno; then 4369 am_depcomp="$ac_aux_dir/depcomp" 4370 AMDEPBACKSLASH='\' 4371 am__nodep='_no' 4372fi 4373 if test "x$enable_dependency_tracking" != xno; then 4374 AMDEP_TRUE= 4375 AMDEP_FALSE='#' 4376else 4377 AMDEP_TRUE='#' 4378 AMDEP_FALSE= 4379fi 4380 4381 4382# Check whether --enable-silent-rules was given. 4383if test ${enable_silent_rules+y} 4384then : 4385 enableval=$enable_silent_rules; 4386fi 4387 4388case $enable_silent_rules in # ((( 4389 yes) AM_DEFAULT_VERBOSITY=0;; 4390 no) AM_DEFAULT_VERBOSITY=1;; 4391 *) AM_DEFAULT_VERBOSITY=1;; 4392esac 4393am_make=${MAKE-make} 4394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4395printf %s "checking whether $am_make supports nested variables... " >&6; } 4396if test ${am_cv_make_support_nested_variables+y} 4397then : 4398 printf %s "(cached) " >&6 4399else $as_nop 4400 if printf "%s\n" 'TRUE=$(BAR$(V)) 4401BAR0=false 4402BAR1=true 4403V=1 4404am__doit: 4405 @$(TRUE) 4406.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4407 am_cv_make_support_nested_variables=yes 4408else 4409 am_cv_make_support_nested_variables=no 4410fi 4411fi 4412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4413printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4414if test $am_cv_make_support_nested_variables = yes; then 4415 AM_V='$(V)' 4416 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4417else 4418 AM_V=$AM_DEFAULT_VERBOSITY 4419 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4420fi 4421AM_BACKSLASH='\' 4422 4423if test "`cd $srcdir && pwd`" != "`pwd`"; then 4424 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4425 # is not polluted with repeated "-I." 4426 am__isrc=' -I$(srcdir)' 4427 # test to see if srcdir already configured 4428 if test -f $srcdir/config.status; then 4429 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4430 fi 4431fi 4432 4433# test whether we have cygpath 4434if test -z "$CYGPATH_W"; then 4435 if (cygpath --version) >/dev/null 2>/dev/null; then 4436 CYGPATH_W='cygpath -w' 4437 else 4438 CYGPATH_W=echo 4439 fi 4440fi 4441 4442 4443# Define the identity of the package. 4444 PACKAGE='libxshmfence' 4445 VERSION='1.3.2' 4446 4447 4448printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4449 4450 4451printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4452 4453# Some tools Automake needs. 4454 4455ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4456 4457 4458AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4459 4460 4461AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4462 4463 4464AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4465 4466 4467MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4468 4469# For better backward compatibility. To be removed once Automake 1.9.x 4470# dies out for good. For more background, see: 4471# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4472# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4473mkdir_p='$(MKDIR_P)' 4474 4475# We need awk for the "check" target (and possibly the TAP driver). The 4476# system "awk" is bad on some platforms. 4477# Always define AMTAR for backward compatibility. Yes, it's still used 4478# in the wild :-( We should find a proper way to deprecate it ... 4479AMTAR='$${TAR-tar}' 4480 4481 4482# We'll loop over all known methods to create a tar archive until one works. 4483_am_tools='gnutar pax cpio none' 4484 4485am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4486 4487 4488 4489 4490 4491depcc="$CC" am_compiler_list= 4492 4493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4494printf %s "checking dependency style of $depcc... " >&6; } 4495if test ${am_cv_CC_dependencies_compiler_type+y} 4496then : 4497 printf %s "(cached) " >&6 4498else $as_nop 4499 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4500 # We make a subdir and do the tests there. Otherwise we can end up 4501 # making bogus files that we don't know about and never remove. For 4502 # instance it was reported that on HP-UX the gcc test will end up 4503 # making a dummy file named 'D' -- because '-MD' means "put the output 4504 # in D". 4505 rm -rf conftest.dir 4506 mkdir conftest.dir 4507 # Copy depcomp to subdir because otherwise we won't find it if we're 4508 # using a relative directory. 4509 cp "$am_depcomp" conftest.dir 4510 cd conftest.dir 4511 # We will build objects and dependencies in a subdirectory because 4512 # it helps to detect inapplicable dependency modes. For instance 4513 # both Tru64's cc and ICC support -MD to output dependencies as a 4514 # side effect of compilation, but ICC will put the dependencies in 4515 # the current directory while Tru64 will put them in the object 4516 # directory. 4517 mkdir sub 4518 4519 am_cv_CC_dependencies_compiler_type=none 4520 if test "$am_compiler_list" = ""; then 4521 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4522 fi 4523 am__universal=false 4524 case " $depcc " in #( 4525 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4526 esac 4527 4528 for depmode in $am_compiler_list; do 4529 # Setup a source with many dependencies, because some compilers 4530 # like to wrap large dependency lists on column 80 (with \), and 4531 # we should not choose a depcomp mode which is confused by this. 4532 # 4533 # We need to recreate these files for each test, as the compiler may 4534 # overwrite some of them when testing with obscure command lines. 4535 # This happens at least with the AIX C compiler. 4536 : > sub/conftest.c 4537 for i in 1 2 3 4 5 6; do 4538 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4539 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4540 # Solaris 10 /bin/sh. 4541 echo '/* dummy */' > sub/conftst$i.h 4542 done 4543 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4544 4545 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4546 # mode. It turns out that the SunPro C++ compiler does not properly 4547 # handle '-M -o', and we need to detect this. Also, some Intel 4548 # versions had trouble with output in subdirs. 4549 am__obj=sub/conftest.${OBJEXT-o} 4550 am__minus_obj="-o $am__obj" 4551 case $depmode in 4552 gcc) 4553 # This depmode causes a compiler race in universal mode. 4554 test "$am__universal" = false || continue 4555 ;; 4556 nosideeffect) 4557 # After this tag, mechanisms are not by side-effect, so they'll 4558 # only be used when explicitly requested. 4559 if test "x$enable_dependency_tracking" = xyes; then 4560 continue 4561 else 4562 break 4563 fi 4564 ;; 4565 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4566 # This compiler won't grok '-c -o', but also, the minuso test has 4567 # not run yet. These depmodes are late enough in the game, and 4568 # so weak that their functioning should not be impacted. 4569 am__obj=conftest.${OBJEXT-o} 4570 am__minus_obj= 4571 ;; 4572 none) break ;; 4573 esac 4574 if depmode=$depmode \ 4575 source=sub/conftest.c object=$am__obj \ 4576 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4577 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4578 >/dev/null 2>conftest.err && 4579 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4580 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4581 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4582 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4583 # icc doesn't choke on unknown options, it will just issue warnings 4584 # or remarks (even with -Werror). So we grep stderr for any message 4585 # that says an option was ignored or not supported. 4586 # When given -MP, icc 7.0 and 7.1 complain thusly: 4587 # icc: Command line warning: ignoring option '-M'; no argument required 4588 # The diagnosis changed in icc 8.0: 4589 # icc: Command line remark: option '-MP' not supported 4590 if (grep 'ignoring option' conftest.err || 4591 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4592 am_cv_CC_dependencies_compiler_type=$depmode 4593 break 4594 fi 4595 fi 4596 done 4597 4598 cd .. 4599 rm -rf conftest.dir 4600else 4601 am_cv_CC_dependencies_compiler_type=none 4602fi 4603 4604fi 4605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4606printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4607CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4608 4609 if 4610 test "x$enable_dependency_tracking" != xno \ 4611 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4612 am__fastdepCC_TRUE= 4613 am__fastdepCC_FALSE='#' 4614else 4615 am__fastdepCC_TRUE='#' 4616 am__fastdepCC_FALSE= 4617fi 4618 4619 4620# Variables for tags utilities; see am/tags.am 4621if test -z "$CTAGS"; then 4622 CTAGS=ctags 4623fi 4624 4625if test -z "$ETAGS"; then 4626 ETAGS=etags 4627fi 4628 4629if test -z "$CSCOPE"; then 4630 CSCOPE=cscope 4631fi 4632 4633 4634 4635# POSIX will say in a future version that running "rm -f" with no argument 4636# is OK; and we want to be able to make that assumption in our Makefile 4637# recipes. So use an aggressive probe to check that the usage we want is 4638# actually supported "in the wild" to an acceptable degree. 4639# See automake bug#10828. 4640# To make any issue more visible, cause the running configure to be aborted 4641# by default if the 'rm' program in use doesn't match our expectations; the 4642# user can still override this though. 4643if rm -f && rm -fr && rm -rf; then : OK; else 4644 cat >&2 <<'END' 4645Oops! 4646 4647Your 'rm' program seems unable to run without file operands specified 4648on the command line, even when the '-f' option is present. This is contrary 4649to the behaviour of most rm programs out there, and not conforming with 4650the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4651 4652Please tell bug-automake@gnu.org about your system, including the value 4653of your $PATH and any error possibly output before this message. This 4654can help us improve future automake versions. 4655 4656END 4657 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4658 echo 'Configuration will proceed anyway, since you have set the' >&2 4659 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4660 echo >&2 4661 else 4662 cat >&2 <<'END' 4663Aborting the configuration process, to ensure you take notice of the issue. 4664 4665You can download and install GNU coreutils to get an 'rm' implementation 4666that behaves properly: <https://www.gnu.org/software/coreutils/>. 4667 4668If you want to complete the configuration process using your problematic 4669'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4670to "yes", and re-run configure. 4671 4672END 4673 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4674 fi 4675fi 4676 4677 4678# Initialize libtool 4679case `pwd` in 4680 *\ * | *\ *) 4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4682printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4683esac 4684 4685 4686 4687macro_version='2.4.7' 4688macro_revision='2.4.7' 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703ltmain=$ac_aux_dir/ltmain.sh 4704 4705 4706 4707 # Make sure we can run config.sub. 4708$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4709 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4710 4711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4712printf %s "checking build system type... " >&6; } 4713if test ${ac_cv_build+y} 4714then : 4715 printf %s "(cached) " >&6 4716else $as_nop 4717 ac_build_alias=$build_alias 4718test "x$ac_build_alias" = x && 4719 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4720test "x$ac_build_alias" = x && 4721 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4722ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4723 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4724 4725fi 4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4727printf "%s\n" "$ac_cv_build" >&6; } 4728case $ac_cv_build in 4729*-*-*) ;; 4730*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4731esac 4732build=$ac_cv_build 4733ac_save_IFS=$IFS; IFS='-' 4734set x $ac_cv_build 4735shift 4736build_cpu=$1 4737build_vendor=$2 4738shift; shift 4739# Remember, the first character of IFS is used to create $*, 4740# except with old shells: 4741build_os=$* 4742IFS=$ac_save_IFS 4743case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4744 4745 4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4747printf %s "checking host system type... " >&6; } 4748if test ${ac_cv_host+y} 4749then : 4750 printf %s "(cached) " >&6 4751else $as_nop 4752 if test "x$host_alias" = x; then 4753 ac_cv_host=$ac_cv_build 4754else 4755 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4756 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4757fi 4758 4759fi 4760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4761printf "%s\n" "$ac_cv_host" >&6; } 4762case $ac_cv_host in 4763*-*-*) ;; 4764*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4765esac 4766host=$ac_cv_host 4767ac_save_IFS=$IFS; IFS='-' 4768set x $ac_cv_host 4769shift 4770host_cpu=$1 4771host_vendor=$2 4772shift; shift 4773# Remember, the first character of IFS is used to create $*, 4774# except with old shells: 4775host_os=$* 4776IFS=$ac_save_IFS 4777case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4778 4779 4780# Backslashify metacharacters that are still active within 4781# double-quoted strings. 4782sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4783 4784# Same as above, but do not quote variable references. 4785double_quote_subst='s/\(["`\\]\)/\\\1/g' 4786 4787# Sed substitution to delay expansion of an escaped shell variable in a 4788# double_quote_subst'ed string. 4789delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4790 4791# Sed substitution to delay expansion of an escaped single quote. 4792delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4793 4794# Sed substitution to avoid accidental globbing in evaled expressions 4795no_glob_subst='s/\*/\\\*/g' 4796 4797ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4798ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4799ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4800 4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4802printf %s "checking how to print strings... " >&6; } 4803# Test print first, because it will be a builtin if present. 4804if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4805 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4806 ECHO='print -r --' 4807elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4808 ECHO='printf %s\n' 4809else 4810 # Use this function as a fallback that always works. 4811 func_fallback_echo () 4812 { 4813 eval 'cat <<_LTECHO_EOF 4814$1 4815_LTECHO_EOF' 4816 } 4817 ECHO='func_fallback_echo' 4818fi 4819 4820# func_echo_all arg... 4821# Invoke $ECHO with all args, space-separated. 4822func_echo_all () 4823{ 4824 $ECHO "" 4825} 4826 4827case $ECHO in 4828 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4829printf "%s\n" "printf" >&6; } ;; 4830 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4831printf "%s\n" "print -r" >&6; } ;; 4832 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4833printf "%s\n" "cat" >&6; } ;; 4834esac 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4850printf %s "checking for a sed that does not truncate output... " >&6; } 4851if test ${ac_cv_path_SED+y} 4852then : 4853 printf %s "(cached) " >&6 4854else $as_nop 4855 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4856 for ac_i in 1 2 3 4 5 6 7; do 4857 ac_script="$ac_script$as_nl$ac_script" 4858 done 4859 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4860 { ac_script=; unset ac_script;} 4861 if test -z "$SED"; then 4862 ac_path_SED_found=false 4863 # Loop through the user's path and test for each of PROGNAME-LIST 4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865for as_dir in $PATH 4866do 4867 IFS=$as_save_IFS 4868 case $as_dir in #((( 4869 '') as_dir=./ ;; 4870 */) ;; 4871 *) as_dir=$as_dir/ ;; 4872 esac 4873 for ac_prog in sed gsed 4874 do 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4877 as_fn_executable_p "$ac_path_SED" || continue 4878# Check for GNU ac_path_SED and select it if it is found. 4879 # Check for GNU $ac_path_SED 4880case `"$ac_path_SED" --version 2>&1` in 4881*GNU*) 4882 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4883*) 4884 ac_count=0 4885 printf %s 0123456789 >"conftest.in" 4886 while : 4887 do 4888 cat "conftest.in" "conftest.in" >"conftest.tmp" 4889 mv "conftest.tmp" "conftest.in" 4890 cp "conftest.in" "conftest.nl" 4891 printf "%s\n" '' >> "conftest.nl" 4892 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4894 as_fn_arith $ac_count + 1 && ac_count=$as_val 4895 if test $ac_count -gt ${ac_path_SED_max-0}; then 4896 # Best one so far, save it but keep looking for a better one 4897 ac_cv_path_SED="$ac_path_SED" 4898 ac_path_SED_max=$ac_count 4899 fi 4900 # 10*(2^10) chars as input seems more than enough 4901 test $ac_count -gt 10 && break 4902 done 4903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4904esac 4905 4906 $ac_path_SED_found && break 3 4907 done 4908 done 4909 done 4910IFS=$as_save_IFS 4911 if test -z "$ac_cv_path_SED"; then 4912 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4913 fi 4914else 4915 ac_cv_path_SED=$SED 4916fi 4917 4918fi 4919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4920printf "%s\n" "$ac_cv_path_SED" >&6; } 4921 SED="$ac_cv_path_SED" 4922 rm -f conftest.sed 4923 4924test -z "$SED" && SED=sed 4925Xsed="$SED -e 1s/^X//" 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4938printf %s "checking for grep that handles long lines and -e... " >&6; } 4939if test ${ac_cv_path_GREP+y} 4940then : 4941 printf %s "(cached) " >&6 4942else $as_nop 4943 if test -z "$GREP"; then 4944 ac_path_GREP_found=false 4945 # Loop through the user's path and test for each of PROGNAME-LIST 4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4948do 4949 IFS=$as_save_IFS 4950 case $as_dir in #((( 4951 '') as_dir=./ ;; 4952 */) ;; 4953 *) as_dir=$as_dir/ ;; 4954 esac 4955 for ac_prog in grep ggrep 4956 do 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4959 as_fn_executable_p "$ac_path_GREP" || continue 4960# Check for GNU ac_path_GREP and select it if it is found. 4961 # Check for GNU $ac_path_GREP 4962case `"$ac_path_GREP" --version 2>&1` in 4963*GNU*) 4964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4965*) 4966 ac_count=0 4967 printf %s 0123456789 >"conftest.in" 4968 while : 4969 do 4970 cat "conftest.in" "conftest.in" >"conftest.tmp" 4971 mv "conftest.tmp" "conftest.in" 4972 cp "conftest.in" "conftest.nl" 4973 printf "%s\n" 'GREP' >> "conftest.nl" 4974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4976 as_fn_arith $ac_count + 1 && ac_count=$as_val 4977 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4978 # Best one so far, save it but keep looking for a better one 4979 ac_cv_path_GREP="$ac_path_GREP" 4980 ac_path_GREP_max=$ac_count 4981 fi 4982 # 10*(2^10) chars as input seems more than enough 4983 test $ac_count -gt 10 && break 4984 done 4985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4986esac 4987 4988 $ac_path_GREP_found && break 3 4989 done 4990 done 4991 done 4992IFS=$as_save_IFS 4993 if test -z "$ac_cv_path_GREP"; then 4994 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4995 fi 4996else 4997 ac_cv_path_GREP=$GREP 4998fi 4999 5000fi 5001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5002printf "%s\n" "$ac_cv_path_GREP" >&6; } 5003 GREP="$ac_cv_path_GREP" 5004 5005 5006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5007printf %s "checking for egrep... " >&6; } 5008if test ${ac_cv_path_EGREP+y} 5009then : 5010 printf %s "(cached) " >&6 5011else $as_nop 5012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5013 then ac_cv_path_EGREP="$GREP -E" 5014 else 5015 if test -z "$EGREP"; then 5016 ac_path_EGREP_found=false 5017 # Loop through the user's path and test for each of PROGNAME-LIST 5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5020do 5021 IFS=$as_save_IFS 5022 case $as_dir in #((( 5023 '') as_dir=./ ;; 5024 */) ;; 5025 *) as_dir=$as_dir/ ;; 5026 esac 5027 for ac_prog in egrep 5028 do 5029 for ac_exec_ext in '' $ac_executable_extensions; do 5030 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5031 as_fn_executable_p "$ac_path_EGREP" || continue 5032# Check for GNU ac_path_EGREP and select it if it is found. 5033 # Check for GNU $ac_path_EGREP 5034case `"$ac_path_EGREP" --version 2>&1` in 5035*GNU*) 5036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5037*) 5038 ac_count=0 5039 printf %s 0123456789 >"conftest.in" 5040 while : 5041 do 5042 cat "conftest.in" "conftest.in" >"conftest.tmp" 5043 mv "conftest.tmp" "conftest.in" 5044 cp "conftest.in" "conftest.nl" 5045 printf "%s\n" 'EGREP' >> "conftest.nl" 5046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5048 as_fn_arith $ac_count + 1 && ac_count=$as_val 5049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5050 # Best one so far, save it but keep looking for a better one 5051 ac_cv_path_EGREP="$ac_path_EGREP" 5052 ac_path_EGREP_max=$ac_count 5053 fi 5054 # 10*(2^10) chars as input seems more than enough 5055 test $ac_count -gt 10 && break 5056 done 5057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5058esac 5059 5060 $ac_path_EGREP_found && break 3 5061 done 5062 done 5063 done 5064IFS=$as_save_IFS 5065 if test -z "$ac_cv_path_EGREP"; then 5066 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5067 fi 5068else 5069 ac_cv_path_EGREP=$EGREP 5070fi 5071 5072 fi 5073fi 5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5075printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5076 EGREP="$ac_cv_path_EGREP" 5077 5078 5079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5080printf %s "checking for fgrep... " >&6; } 5081if test ${ac_cv_path_FGREP+y} 5082then : 5083 printf %s "(cached) " >&6 5084else $as_nop 5085 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5086 then ac_cv_path_FGREP="$GREP -F" 5087 else 5088 if test -z "$FGREP"; then 5089 ac_path_FGREP_found=false 5090 # Loop through the user's path and test for each of PROGNAME-LIST 5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5092for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5093do 5094 IFS=$as_save_IFS 5095 case $as_dir in #((( 5096 '') as_dir=./ ;; 5097 */) ;; 5098 *) as_dir=$as_dir/ ;; 5099 esac 5100 for ac_prog in fgrep 5101 do 5102 for ac_exec_ext in '' $ac_executable_extensions; do 5103 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5104 as_fn_executable_p "$ac_path_FGREP" || continue 5105# Check for GNU ac_path_FGREP and select it if it is found. 5106 # Check for GNU $ac_path_FGREP 5107case `"$ac_path_FGREP" --version 2>&1` in 5108*GNU*) 5109 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5110*) 5111 ac_count=0 5112 printf %s 0123456789 >"conftest.in" 5113 while : 5114 do 5115 cat "conftest.in" "conftest.in" >"conftest.tmp" 5116 mv "conftest.tmp" "conftest.in" 5117 cp "conftest.in" "conftest.nl" 5118 printf "%s\n" 'FGREP' >> "conftest.nl" 5119 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5121 as_fn_arith $ac_count + 1 && ac_count=$as_val 5122 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5123 # Best one so far, save it but keep looking for a better one 5124 ac_cv_path_FGREP="$ac_path_FGREP" 5125 ac_path_FGREP_max=$ac_count 5126 fi 5127 # 10*(2^10) chars as input seems more than enough 5128 test $ac_count -gt 10 && break 5129 done 5130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5131esac 5132 5133 $ac_path_FGREP_found && break 3 5134 done 5135 done 5136 done 5137IFS=$as_save_IFS 5138 if test -z "$ac_cv_path_FGREP"; then 5139 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5140 fi 5141else 5142 ac_cv_path_FGREP=$FGREP 5143fi 5144 5145 fi 5146fi 5147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5148printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5149 FGREP="$ac_cv_path_FGREP" 5150 5151 5152test -z "$GREP" && GREP=grep 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172# Check whether --with-gnu-ld was given. 5173if test ${with_gnu_ld+y} 5174then : 5175 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5176else $as_nop 5177 with_gnu_ld=no 5178fi 5179 5180ac_prog=ld 5181if test yes = "$GCC"; then 5182 # Check if gcc -print-prog-name=ld gives a path. 5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5184printf %s "checking for ld used by $CC... " >&6; } 5185 case $host in 5186 *-*-mingw*) 5187 # gcc leaves a trailing carriage return, which upsets mingw 5188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5189 *) 5190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5191 esac 5192 case $ac_prog in 5193 # Accept absolute paths. 5194 [\\/]* | ?:[\\/]*) 5195 re_direlt='/[^/][^/]*/\.\./' 5196 # Canonicalize the pathname of ld 5197 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5198 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5199 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5200 done 5201 test -z "$LD" && LD=$ac_prog 5202 ;; 5203 "") 5204 # If it fails, then pretend we aren't using GCC. 5205 ac_prog=ld 5206 ;; 5207 *) 5208 # If it is relative, then search for the first ld in PATH. 5209 with_gnu_ld=unknown 5210 ;; 5211 esac 5212elif test yes = "$with_gnu_ld"; then 5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5214printf %s "checking for GNU ld... " >&6; } 5215else 5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5217printf %s "checking for non-GNU ld... " >&6; } 5218fi 5219if test ${lt_cv_path_LD+y} 5220then : 5221 printf %s "(cached) " >&6 5222else $as_nop 5223 if test -z "$LD"; then 5224 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5225 for ac_dir in $PATH; do 5226 IFS=$lt_save_ifs 5227 test -z "$ac_dir" && ac_dir=. 5228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5229 lt_cv_path_LD=$ac_dir/$ac_prog 5230 # Check to see if the program is GNU ld. I'd rather use --version, 5231 # but apparently some variants of GNU ld only accept -v. 5232 # Break only if it was the GNU/non-GNU ld that we prefer. 5233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5234 *GNU* | *'with BFD'*) 5235 test no != "$with_gnu_ld" && break 5236 ;; 5237 *) 5238 test yes != "$with_gnu_ld" && break 5239 ;; 5240 esac 5241 fi 5242 done 5243 IFS=$lt_save_ifs 5244else 5245 lt_cv_path_LD=$LD # Let the user override the test with a path. 5246fi 5247fi 5248 5249LD=$lt_cv_path_LD 5250if test -n "$LD"; then 5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5252printf "%s\n" "$LD" >&6; } 5253else 5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5255printf "%s\n" "no" >&6; } 5256fi 5257test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5259printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5260if test ${lt_cv_prog_gnu_ld+y} 5261then : 5262 printf %s "(cached) " >&6 5263else $as_nop 5264 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5265case `$LD -v 2>&1 </dev/null` in 5266*GNU* | *'with BFD'*) 5267 lt_cv_prog_gnu_ld=yes 5268 ;; 5269*) 5270 lt_cv_prog_gnu_ld=no 5271 ;; 5272esac 5273fi 5274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5275printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5276with_gnu_ld=$lt_cv_prog_gnu_ld 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5287printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5288if test ${lt_cv_path_NM+y} 5289then : 5290 printf %s "(cached) " >&6 5291else $as_nop 5292 if test -n "$NM"; then 5293 # Let the user override the test. 5294 lt_cv_path_NM=$NM 5295else 5296 lt_nm_to_check=${ac_tool_prefix}nm 5297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5298 lt_nm_to_check="$lt_nm_to_check nm" 5299 fi 5300 for lt_tmp_nm in $lt_nm_to_check; do 5301 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5303 IFS=$lt_save_ifs 5304 test -z "$ac_dir" && ac_dir=. 5305 tmp_nm=$ac_dir/$lt_tmp_nm 5306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5307 # Check to see if the nm accepts a BSD-compat flag. 5308 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5309 # nm: unknown option "B" ignored 5310 # Tru64's nm complains that /dev/null is an invalid object file 5311 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5312 case $build_os in 5313 mingw*) lt_bad_file=conftest.nm/nofile ;; 5314 *) lt_bad_file=/dev/null ;; 5315 esac 5316 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5317 *$lt_bad_file* | *'Invalid file or object type'*) 5318 lt_cv_path_NM="$tmp_nm -B" 5319 break 2 5320 ;; 5321 *) 5322 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5323 */dev/null*) 5324 lt_cv_path_NM="$tmp_nm -p" 5325 break 2 5326 ;; 5327 *) 5328 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5329 continue # so that we can try to find one that supports BSD flags 5330 ;; 5331 esac 5332 ;; 5333 esac 5334 fi 5335 done 5336 IFS=$lt_save_ifs 5337 done 5338 : ${lt_cv_path_NM=no} 5339fi 5340fi 5341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5342printf "%s\n" "$lt_cv_path_NM" >&6; } 5343if test no != "$lt_cv_path_NM"; then 5344 NM=$lt_cv_path_NM 5345else 5346 # Didn't find any BSD compatible name lister, look for dumpbin. 5347 if test -n "$DUMPBIN"; then : 5348 # Let the user override the test. 5349 else 5350 if test -n "$ac_tool_prefix"; then 5351 for ac_prog in dumpbin "link -dump" 5352 do 5353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5354set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5356printf %s "checking for $ac_word... " >&6; } 5357if test ${ac_cv_prog_DUMPBIN+y} 5358then : 5359 printf %s "(cached) " >&6 5360else $as_nop 5361 if test -n "$DUMPBIN"; then 5362 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5363else 5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5365for as_dir in $PATH 5366do 5367 IFS=$as_save_IFS 5368 case $as_dir in #((( 5369 '') as_dir=./ ;; 5370 */) ;; 5371 *) as_dir=$as_dir/ ;; 5372 esac 5373 for ac_exec_ext in '' $ac_executable_extensions; do 5374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5375 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5377 break 2 5378 fi 5379done 5380 done 5381IFS=$as_save_IFS 5382 5383fi 5384fi 5385DUMPBIN=$ac_cv_prog_DUMPBIN 5386if test -n "$DUMPBIN"; then 5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5388printf "%s\n" "$DUMPBIN" >&6; } 5389else 5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5391printf "%s\n" "no" >&6; } 5392fi 5393 5394 5395 test -n "$DUMPBIN" && break 5396 done 5397fi 5398if test -z "$DUMPBIN"; then 5399 ac_ct_DUMPBIN=$DUMPBIN 5400 for ac_prog in dumpbin "link -dump" 5401do 5402 # Extract the first word of "$ac_prog", so it can be a program name with args. 5403set dummy $ac_prog; ac_word=$2 5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5405printf %s "checking for $ac_word... " >&6; } 5406if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5407then : 5408 printf %s "(cached) " >&6 5409else $as_nop 5410 if test -n "$ac_ct_DUMPBIN"; then 5411 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5412else 5413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5414for as_dir in $PATH 5415do 5416 IFS=$as_save_IFS 5417 case $as_dir in #((( 5418 '') as_dir=./ ;; 5419 */) ;; 5420 *) as_dir=$as_dir/ ;; 5421 esac 5422 for ac_exec_ext in '' $ac_executable_extensions; do 5423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5424 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5426 break 2 5427 fi 5428done 5429 done 5430IFS=$as_save_IFS 5431 5432fi 5433fi 5434ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5435if test -n "$ac_ct_DUMPBIN"; then 5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5437printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5438else 5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440printf "%s\n" "no" >&6; } 5441fi 5442 5443 5444 test -n "$ac_ct_DUMPBIN" && break 5445done 5446 5447 if test "x$ac_ct_DUMPBIN" = x; then 5448 DUMPBIN=":" 5449 else 5450 case $cross_compiling:$ac_tool_warned in 5451yes:) 5452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5453printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5454ac_tool_warned=yes ;; 5455esac 5456 DUMPBIN=$ac_ct_DUMPBIN 5457 fi 5458fi 5459 5460 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5461 *COFF*) 5462 DUMPBIN="$DUMPBIN -symbols -headers" 5463 ;; 5464 *) 5465 DUMPBIN=: 5466 ;; 5467 esac 5468 fi 5469 5470 if test : != "$DUMPBIN"; then 5471 NM=$DUMPBIN 5472 fi 5473fi 5474test -z "$NM" && NM=nm 5475 5476 5477 5478 5479 5480 5481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5482printf %s "checking the name lister ($NM) interface... " >&6; } 5483if test ${lt_cv_nm_interface+y} 5484then : 5485 printf %s "(cached) " >&6 5486else $as_nop 5487 lt_cv_nm_interface="BSD nm" 5488 echo "int some_variable = 0;" > conftest.$ac_ext 5489 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5490 (eval "$ac_compile" 2>conftest.err) 5491 cat conftest.err >&5 5492 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5493 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5494 cat conftest.err >&5 5495 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5496 cat conftest.out >&5 5497 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5498 lt_cv_nm_interface="MS dumpbin" 5499 fi 5500 rm -f conftest* 5501fi 5502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5503printf "%s\n" "$lt_cv_nm_interface" >&6; } 5504 5505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5506printf %s "checking whether ln -s works... " >&6; } 5507LN_S=$as_ln_s 5508if test "$LN_S" = "ln -s"; then 5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5510printf "%s\n" "yes" >&6; } 5511else 5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5513printf "%s\n" "no, using $LN_S" >&6; } 5514fi 5515 5516# find the maximum length of command line arguments 5517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5518printf %s "checking the maximum length of command line arguments... " >&6; } 5519if test ${lt_cv_sys_max_cmd_len+y} 5520then : 5521 printf %s "(cached) " >&6 5522else $as_nop 5523 i=0 5524 teststring=ABCD 5525 5526 case $build_os in 5527 msdosdjgpp*) 5528 # On DJGPP, this test can blow up pretty badly due to problems in libc 5529 # (any single argument exceeding 2000 bytes causes a buffer overrun 5530 # during glob expansion). Even if it were fixed, the result of this 5531 # check would be larger than it should be. 5532 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5533 ;; 5534 5535 gnu*) 5536 # Under GNU Hurd, this test is not required because there is 5537 # no limit to the length of command line arguments. 5538 # Libtool will interpret -1 as no limit whatsoever 5539 lt_cv_sys_max_cmd_len=-1; 5540 ;; 5541 5542 cygwin* | mingw* | cegcc*) 5543 # On Win9x/ME, this test blows up -- it succeeds, but takes 5544 # about 5 minutes as the teststring grows exponentially. 5545 # Worse, since 9x/ME are not pre-emptively multitasking, 5546 # you end up with a "frozen" computer, even though with patience 5547 # the test eventually succeeds (with a max line length of 256k). 5548 # Instead, let's just punt: use the minimum linelength reported by 5549 # all of the supported platforms: 8192 (on NT/2K/XP). 5550 lt_cv_sys_max_cmd_len=8192; 5551 ;; 5552 5553 mint*) 5554 # On MiNT this can take a long time and run out of memory. 5555 lt_cv_sys_max_cmd_len=8192; 5556 ;; 5557 5558 mint*) 5559 # On MiNT this can take a long time and run out of memory. 5560 lt_cv_sys_max_cmd_len=8192; 5561 ;; 5562 5563 amigaos*) 5564 # On AmigaOS with pdksh, this test takes hours, literally. 5565 # So we just punt and use a minimum line length of 8192. 5566 lt_cv_sys_max_cmd_len=8192; 5567 ;; 5568 5569 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5570 # This has been around since 386BSD, at least. Likely further. 5571 if test -x /sbin/sysctl; then 5572 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5573 elif test -x /usr/sbin/sysctl; then 5574 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5575 else 5576 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5577 fi 5578 # And add a safety zone 5579 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5581 ;; 5582 5583 interix*) 5584 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5585 lt_cv_sys_max_cmd_len=196608 5586 ;; 5587 5588 os2*) 5589 # The test takes a long time on OS/2. 5590 lt_cv_sys_max_cmd_len=8192 5591 ;; 5592 5593 osf*) 5594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5596 # nice to cause kernel panics so lets avoid the loop below. 5597 # First set a reasonable default. 5598 lt_cv_sys_max_cmd_len=16384 5599 # 5600 if test -x /sbin/sysconfig; then 5601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5602 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5603 esac 5604 fi 5605 ;; 5606 sco3.2v5*) 5607 lt_cv_sys_max_cmd_len=102400 5608 ;; 5609 sysv5* | sco5v6* | sysv4.2uw2*) 5610 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5611 if test -n "$kargmax"; then 5612 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5613 else 5614 lt_cv_sys_max_cmd_len=32768 5615 fi 5616 ;; 5617 *) 5618 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5619 if test -n "$lt_cv_sys_max_cmd_len" && \ 5620 test undefined != "$lt_cv_sys_max_cmd_len"; then 5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5623 else 5624 # Make teststring a little bigger before we do anything with it. 5625 # a 1K string should be a reasonable start. 5626 for i in 1 2 3 4 5 6 7 8; do 5627 teststring=$teststring$teststring 5628 done 5629 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5630 # If test is not a shell built-in, we'll probably end up computing a 5631 # maximum length that is only half of the actual maximum length, but 5632 # we can't tell. 5633 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5634 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5635 test 17 != "$i" # 1/2 MB should be enough 5636 do 5637 i=`expr $i + 1` 5638 teststring=$teststring$teststring 5639 done 5640 # Only check the string length outside the loop. 5641 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5642 teststring= 5643 # Add a significant safety factor because C++ compilers can tack on 5644 # massive amounts of additional arguments before passing them to the 5645 # linker. It appears as though 1/2 is a usable value. 5646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5647 fi 5648 ;; 5649 esac 5650 5651fi 5652 5653if test -n "$lt_cv_sys_max_cmd_len"; then 5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5655printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5656else 5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5658printf "%s\n" "none" >&6; } 5659fi 5660max_cmd_len=$lt_cv_sys_max_cmd_len 5661 5662 5663 5664 5665 5666 5667: ${CP="cp -f"} 5668: ${MV="mv -f"} 5669: ${RM="rm -f"} 5670 5671if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5672 lt_unset=unset 5673else 5674 lt_unset=false 5675fi 5676 5677 5678 5679 5680 5681# test EBCDIC or ASCII 5682case `echo X|tr X '\101'` in 5683 A) # ASCII based system 5684 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5685 lt_SP2NL='tr \040 \012' 5686 lt_NL2SP='tr \015\012 \040\040' 5687 ;; 5688 *) # EBCDIC based system 5689 lt_SP2NL='tr \100 \n' 5690 lt_NL2SP='tr \r\n \100\100' 5691 ;; 5692esac 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5703printf %s "checking how to convert $build file names to $host format... " >&6; } 5704if test ${lt_cv_to_host_file_cmd+y} 5705then : 5706 printf %s "(cached) " >&6 5707else $as_nop 5708 case $host in 5709 *-*-mingw* ) 5710 case $build in 5711 *-*-mingw* ) # actually msys 5712 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5713 ;; 5714 *-*-cygwin* ) 5715 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5716 ;; 5717 * ) # otherwise, assume *nix 5718 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5719 ;; 5720 esac 5721 ;; 5722 *-*-cygwin* ) 5723 case $build in 5724 *-*-mingw* ) # actually msys 5725 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5726 ;; 5727 *-*-cygwin* ) 5728 lt_cv_to_host_file_cmd=func_convert_file_noop 5729 ;; 5730 * ) # otherwise, assume *nix 5731 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5732 ;; 5733 esac 5734 ;; 5735 * ) # unhandled hosts (and "normal" native builds) 5736 lt_cv_to_host_file_cmd=func_convert_file_noop 5737 ;; 5738esac 5739 5740fi 5741 5742to_host_file_cmd=$lt_cv_to_host_file_cmd 5743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5744printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5745 5746 5747 5748 5749 5750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5751printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5752if test ${lt_cv_to_tool_file_cmd+y} 5753then : 5754 printf %s "(cached) " >&6 5755else $as_nop 5756 #assume ordinary cross tools, or native build. 5757lt_cv_to_tool_file_cmd=func_convert_file_noop 5758case $host in 5759 *-*-mingw* ) 5760 case $build in 5761 *-*-mingw* ) # actually msys 5762 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5763 ;; 5764 esac 5765 ;; 5766esac 5767 5768fi 5769 5770to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5772printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5773 5774 5775 5776 5777 5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5779printf %s "checking for $LD option to reload object files... " >&6; } 5780if test ${lt_cv_ld_reload_flag+y} 5781then : 5782 printf %s "(cached) " >&6 5783else $as_nop 5784 lt_cv_ld_reload_flag='-r' 5785fi 5786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5787printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5788reload_flag=$lt_cv_ld_reload_flag 5789case $reload_flag in 5790"" | " "*) ;; 5791*) reload_flag=" $reload_flag" ;; 5792esac 5793reload_cmds='$LD$reload_flag -o $output$reload_objs' 5794case $host_os in 5795 cygwin* | mingw* | pw32* | cegcc*) 5796 if test yes != "$GCC"; then 5797 reload_cmds=false 5798 fi 5799 ;; 5800 darwin*) 5801 if test yes = "$GCC"; then 5802 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5803 else 5804 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5805 fi 5806 ;; 5807esac 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817if test -n "$ac_tool_prefix"; then 5818 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5819set dummy ${ac_tool_prefix}file; ac_word=$2 5820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5821printf %s "checking for $ac_word... " >&6; } 5822if test ${ac_cv_prog_FILECMD+y} 5823then : 5824 printf %s "(cached) " >&6 5825else $as_nop 5826 if test -n "$FILECMD"; then 5827 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5828else 5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830for as_dir in $PATH 5831do 5832 IFS=$as_save_IFS 5833 case $as_dir in #((( 5834 '') as_dir=./ ;; 5835 */) ;; 5836 *) as_dir=$as_dir/ ;; 5837 esac 5838 for ac_exec_ext in '' $ac_executable_extensions; do 5839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5840 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5842 break 2 5843 fi 5844done 5845 done 5846IFS=$as_save_IFS 5847 5848fi 5849fi 5850FILECMD=$ac_cv_prog_FILECMD 5851if test -n "$FILECMD"; then 5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5853printf "%s\n" "$FILECMD" >&6; } 5854else 5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5856printf "%s\n" "no" >&6; } 5857fi 5858 5859 5860fi 5861if test -z "$ac_cv_prog_FILECMD"; then 5862 ac_ct_FILECMD=$FILECMD 5863 # Extract the first word of "file", so it can be a program name with args. 5864set dummy file; ac_word=$2 5865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5866printf %s "checking for $ac_word... " >&6; } 5867if test ${ac_cv_prog_ac_ct_FILECMD+y} 5868then : 5869 printf %s "(cached) " >&6 5870else $as_nop 5871 if test -n "$ac_ct_FILECMD"; then 5872 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5873else 5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5875for as_dir in $PATH 5876do 5877 IFS=$as_save_IFS 5878 case $as_dir in #((( 5879 '') as_dir=./ ;; 5880 */) ;; 5881 *) as_dir=$as_dir/ ;; 5882 esac 5883 for ac_exec_ext in '' $ac_executable_extensions; do 5884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5885 ac_cv_prog_ac_ct_FILECMD="file" 5886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5887 break 2 5888 fi 5889done 5890 done 5891IFS=$as_save_IFS 5892 5893fi 5894fi 5895ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5896if test -n "$ac_ct_FILECMD"; then 5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5898printf "%s\n" "$ac_ct_FILECMD" >&6; } 5899else 5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5901printf "%s\n" "no" >&6; } 5902fi 5903 5904 if test "x$ac_ct_FILECMD" = x; then 5905 FILECMD=":" 5906 else 5907 case $cross_compiling:$ac_tool_warned in 5908yes:) 5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5910printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5911ac_tool_warned=yes ;; 5912esac 5913 FILECMD=$ac_ct_FILECMD 5914 fi 5915else 5916 FILECMD="$ac_cv_prog_FILECMD" 5917fi 5918 5919 5920 5921 5922 5923 5924 5925if test -n "$ac_tool_prefix"; then 5926 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5927set dummy ${ac_tool_prefix}objdump; ac_word=$2 5928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5929printf %s "checking for $ac_word... " >&6; } 5930if test ${ac_cv_prog_OBJDUMP+y} 5931then : 5932 printf %s "(cached) " >&6 5933else $as_nop 5934 if test -n "$OBJDUMP"; then 5935 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5936else 5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5938for as_dir in $PATH 5939do 5940 IFS=$as_save_IFS 5941 case $as_dir in #((( 5942 '') as_dir=./ ;; 5943 */) ;; 5944 *) as_dir=$as_dir/ ;; 5945 esac 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5948 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953 done 5954IFS=$as_save_IFS 5955 5956fi 5957fi 5958OBJDUMP=$ac_cv_prog_OBJDUMP 5959if test -n "$OBJDUMP"; then 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5961printf "%s\n" "$OBJDUMP" >&6; } 5962else 5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5964printf "%s\n" "no" >&6; } 5965fi 5966 5967 5968fi 5969if test -z "$ac_cv_prog_OBJDUMP"; then 5970 ac_ct_OBJDUMP=$OBJDUMP 5971 # Extract the first word of "objdump", so it can be a program name with args. 5972set dummy objdump; ac_word=$2 5973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5974printf %s "checking for $ac_word... " >&6; } 5975if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5976then : 5977 printf %s "(cached) " >&6 5978else $as_nop 5979 if test -n "$ac_ct_OBJDUMP"; then 5980 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5981else 5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5983for as_dir in $PATH 5984do 5985 IFS=$as_save_IFS 5986 case $as_dir in #((( 5987 '') as_dir=./ ;; 5988 */) ;; 5989 *) as_dir=$as_dir/ ;; 5990 esac 5991 for ac_exec_ext in '' $ac_executable_extensions; do 5992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5993 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5995 break 2 5996 fi 5997done 5998 done 5999IFS=$as_save_IFS 6000 6001fi 6002fi 6003ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6004if test -n "$ac_ct_OBJDUMP"; then 6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6006printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6007else 6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6009printf "%s\n" "no" >&6; } 6010fi 6011 6012 if test "x$ac_ct_OBJDUMP" = x; then 6013 OBJDUMP="false" 6014 else 6015 case $cross_compiling:$ac_tool_warned in 6016yes:) 6017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6018printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6019ac_tool_warned=yes ;; 6020esac 6021 OBJDUMP=$ac_ct_OBJDUMP 6022 fi 6023else 6024 OBJDUMP="$ac_cv_prog_OBJDUMP" 6025fi 6026 6027test -z "$OBJDUMP" && OBJDUMP=objdump 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6038printf %s "checking how to recognize dependent libraries... " >&6; } 6039if test ${lt_cv_deplibs_check_method+y} 6040then : 6041 printf %s "(cached) " >&6 6042else $as_nop 6043 lt_cv_file_magic_cmd='$MAGIC_CMD' 6044lt_cv_file_magic_test_file= 6045lt_cv_deplibs_check_method='unknown' 6046# Need to set the preceding variable on all platforms that support 6047# interlibrary dependencies. 6048# 'none' -- dependencies not supported. 6049# 'unknown' -- same as none, but documents that we really don't know. 6050# 'pass_all' -- all dependencies passed with no checks. 6051# 'test_compile' -- check by making test program. 6052# 'file_magic [[regex]]' -- check by looking for files in library path 6053# that responds to the $file_magic_cmd with a given extended regex. 6054# If you have 'file' or equivalent on your system and you're not sure 6055# whether 'pass_all' will *always* work, you probably want this one. 6056 6057case $host_os in 6058aix[4-9]*) 6059 lt_cv_deplibs_check_method=pass_all 6060 ;; 6061 6062beos*) 6063 lt_cv_deplibs_check_method=pass_all 6064 ;; 6065 6066bsdi[45]*) 6067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6068 lt_cv_file_magic_cmd='$FILECMD -L' 6069 lt_cv_file_magic_test_file=/shlib/libc.so 6070 ;; 6071 6072cygwin*) 6073 # func_win32_libid is a shell function defined in ltmain.sh 6074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6075 lt_cv_file_magic_cmd='func_win32_libid' 6076 ;; 6077 6078mingw* | pw32*) 6079 # Base MSYS/MinGW do not provide the 'file' command needed by 6080 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6081 # unless we find 'file', for example because we are cross-compiling. 6082 if ( file / ) >/dev/null 2>&1; then 6083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6084 lt_cv_file_magic_cmd='func_win32_libid' 6085 else 6086 # Keep this pattern in sync with the one in func_win32_libid. 6087 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6088 lt_cv_file_magic_cmd='$OBJDUMP -f' 6089 fi 6090 ;; 6091 6092cegcc*) 6093 # use the weaker test based on 'objdump'. See mingw*. 6094 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6095 lt_cv_file_magic_cmd='$OBJDUMP -f' 6096 ;; 6097 6098darwin* | rhapsody*) 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102freebsd* | dragonfly* | midnightbsd*) 6103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6104 case $host_cpu in 6105 i*86 ) 6106 # Not sure whether the presence of OpenBSD here was a mistake. 6107 # Let's accept both of them until this is cleared up. 6108 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6109 lt_cv_file_magic_cmd=$FILECMD 6110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6111 ;; 6112 esac 6113 else 6114 lt_cv_deplibs_check_method=pass_all 6115 fi 6116 ;; 6117 6118haiku*) 6119 lt_cv_deplibs_check_method=pass_all 6120 ;; 6121 6122hpux10.20* | hpux11*) 6123 lt_cv_file_magic_cmd=$FILECMD 6124 case $host_cpu in 6125 ia64*) 6126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6127 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6128 ;; 6129 hppa*64*) 6130 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]' 6131 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6132 ;; 6133 *) 6134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6135 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6136 ;; 6137 esac 6138 ;; 6139 6140interix[3-9]*) 6141 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6143 ;; 6144 6145irix5* | irix6* | nonstopux*) 6146 case $LD in 6147 *-32|*"-32 ") libmagic=32-bit;; 6148 *-n32|*"-n32 ") libmagic=N32;; 6149 *-64|*"-64 ") libmagic=64-bit;; 6150 *) libmagic=never-match;; 6151 esac 6152 lt_cv_deplibs_check_method=pass_all 6153 ;; 6154 6155# This must be glibc/ELF. 6156linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6157 lt_cv_deplibs_check_method=pass_all 6158 ;; 6159 6160netbsd*) 6161 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6163 else 6164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6165 fi 6166 ;; 6167 6168newos6*) 6169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6170 lt_cv_file_magic_cmd=$FILECMD 6171 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6172 ;; 6173 6174*nto* | *qnx*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177 6178openbsd* | bitrig*) 6179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6181 else 6182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6183 fi 6184 ;; 6185 6186osf3* | osf4* | osf5*) 6187 lt_cv_deplibs_check_method=pass_all 6188 ;; 6189 6190rdos*) 6191 lt_cv_deplibs_check_method=pass_all 6192 ;; 6193 6194solaris*) 6195 lt_cv_deplibs_check_method=pass_all 6196 ;; 6197 6198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6199 lt_cv_deplibs_check_method=pass_all 6200 ;; 6201 6202sysv4 | sysv4.3*) 6203 case $host_vendor in 6204 motorola) 6205 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]' 6206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6207 ;; 6208 ncr) 6209 lt_cv_deplibs_check_method=pass_all 6210 ;; 6211 sequent) 6212 lt_cv_file_magic_cmd='/bin/file' 6213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6214 ;; 6215 sni) 6216 lt_cv_file_magic_cmd='/bin/file' 6217 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6218 lt_cv_file_magic_test_file=/lib/libc.so 6219 ;; 6220 siemens) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223 pc) 6224 lt_cv_deplibs_check_method=pass_all 6225 ;; 6226 esac 6227 ;; 6228 6229tpf*) 6230 lt_cv_deplibs_check_method=pass_all 6231 ;; 6232os2*) 6233 lt_cv_deplibs_check_method=pass_all 6234 ;; 6235esac 6236 6237fi 6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6239printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6240 6241file_magic_glob= 6242want_nocaseglob=no 6243if test "$build" = "$host"; then 6244 case $host_os in 6245 mingw* | pw32*) 6246 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6247 want_nocaseglob=yes 6248 else 6249 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6250 fi 6251 ;; 6252 esac 6253fi 6254 6255file_magic_cmd=$lt_cv_file_magic_cmd 6256deplibs_check_method=$lt_cv_deplibs_check_method 6257test -z "$deplibs_check_method" && deplibs_check_method=unknown 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280if test -n "$ac_tool_prefix"; then 6281 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6282set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284printf %s "checking for $ac_word... " >&6; } 6285if test ${ac_cv_prog_DLLTOOL+y} 6286then : 6287 printf %s "(cached) " >&6 6288else $as_nop 6289 if test -n "$DLLTOOL"; then 6290 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6291else 6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6293for as_dir in $PATH 6294do 6295 IFS=$as_save_IFS 6296 case $as_dir in #((( 6297 '') as_dir=./ ;; 6298 */) ;; 6299 *) as_dir=$as_dir/ ;; 6300 esac 6301 for ac_exec_ext in '' $ac_executable_extensions; do 6302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6303 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6305 break 2 6306 fi 6307done 6308 done 6309IFS=$as_save_IFS 6310 6311fi 6312fi 6313DLLTOOL=$ac_cv_prog_DLLTOOL 6314if test -n "$DLLTOOL"; then 6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6316printf "%s\n" "$DLLTOOL" >&6; } 6317else 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6319printf "%s\n" "no" >&6; } 6320fi 6321 6322 6323fi 6324if test -z "$ac_cv_prog_DLLTOOL"; then 6325 ac_ct_DLLTOOL=$DLLTOOL 6326 # Extract the first word of "dlltool", so it can be a program name with args. 6327set dummy dlltool; ac_word=$2 6328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6329printf %s "checking for $ac_word... " >&6; } 6330if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6331then : 6332 printf %s "(cached) " >&6 6333else $as_nop 6334 if test -n "$ac_ct_DLLTOOL"; then 6335 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6336else 6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6338for as_dir in $PATH 6339do 6340 IFS=$as_save_IFS 6341 case $as_dir in #((( 6342 '') as_dir=./ ;; 6343 */) ;; 6344 *) as_dir=$as_dir/ ;; 6345 esac 6346 for ac_exec_ext in '' $ac_executable_extensions; do 6347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6348 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6350 break 2 6351 fi 6352done 6353 done 6354IFS=$as_save_IFS 6355 6356fi 6357fi 6358ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6359if test -n "$ac_ct_DLLTOOL"; then 6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6361printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6362else 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6364printf "%s\n" "no" >&6; } 6365fi 6366 6367 if test "x$ac_ct_DLLTOOL" = x; then 6368 DLLTOOL="false" 6369 else 6370 case $cross_compiling:$ac_tool_warned in 6371yes:) 6372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6373printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6374ac_tool_warned=yes ;; 6375esac 6376 DLLTOOL=$ac_ct_DLLTOOL 6377 fi 6378else 6379 DLLTOOL="$ac_cv_prog_DLLTOOL" 6380fi 6381 6382test -z "$DLLTOOL" && DLLTOOL=dlltool 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6394printf %s "checking how to associate runtime and link libraries... " >&6; } 6395if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6396then : 6397 printf %s "(cached) " >&6 6398else $as_nop 6399 lt_cv_sharedlib_from_linklib_cmd='unknown' 6400 6401case $host_os in 6402cygwin* | mingw* | pw32* | cegcc*) 6403 # two different shell functions defined in ltmain.sh; 6404 # decide which one to use based on capabilities of $DLLTOOL 6405 case `$DLLTOOL --help 2>&1` in 6406 *--identify-strict*) 6407 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6408 ;; 6409 *) 6410 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6411 ;; 6412 esac 6413 ;; 6414*) 6415 # fallback: assume linklib IS sharedlib 6416 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6417 ;; 6418esac 6419 6420fi 6421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6422printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6423sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6424test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6425 6426 6427 6428 6429 6430 6431 6432if test -n "$ac_tool_prefix"; then 6433 for ac_prog in ar 6434 do 6435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6436set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6438printf %s "checking for $ac_word... " >&6; } 6439if test ${ac_cv_prog_AR+y} 6440then : 6441 printf %s "(cached) " >&6 6442else $as_nop 6443 if test -n "$AR"; then 6444 ac_cv_prog_AR="$AR" # Let the user override the test. 6445else 6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6447for as_dir in $PATH 6448do 6449 IFS=$as_save_IFS 6450 case $as_dir in #((( 6451 '') as_dir=./ ;; 6452 */) ;; 6453 *) as_dir=$as_dir/ ;; 6454 esac 6455 for ac_exec_ext in '' $ac_executable_extensions; do 6456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6457 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6459 break 2 6460 fi 6461done 6462 done 6463IFS=$as_save_IFS 6464 6465fi 6466fi 6467AR=$ac_cv_prog_AR 6468if test -n "$AR"; then 6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6470printf "%s\n" "$AR" >&6; } 6471else 6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6473printf "%s\n" "no" >&6; } 6474fi 6475 6476 6477 test -n "$AR" && break 6478 done 6479fi 6480if test -z "$AR"; then 6481 ac_ct_AR=$AR 6482 for ac_prog in ar 6483do 6484 # Extract the first word of "$ac_prog", so it can be a program name with args. 6485set dummy $ac_prog; ac_word=$2 6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6487printf %s "checking for $ac_word... " >&6; } 6488if test ${ac_cv_prog_ac_ct_AR+y} 6489then : 6490 printf %s "(cached) " >&6 6491else $as_nop 6492 if test -n "$ac_ct_AR"; then 6493 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6494else 6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6496for as_dir in $PATH 6497do 6498 IFS=$as_save_IFS 6499 case $as_dir in #((( 6500 '') as_dir=./ ;; 6501 */) ;; 6502 *) as_dir=$as_dir/ ;; 6503 esac 6504 for ac_exec_ext in '' $ac_executable_extensions; do 6505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6506 ac_cv_prog_ac_ct_AR="$ac_prog" 6507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6508 break 2 6509 fi 6510done 6511 done 6512IFS=$as_save_IFS 6513 6514fi 6515fi 6516ac_ct_AR=$ac_cv_prog_ac_ct_AR 6517if test -n "$ac_ct_AR"; then 6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6519printf "%s\n" "$ac_ct_AR" >&6; } 6520else 6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6522printf "%s\n" "no" >&6; } 6523fi 6524 6525 6526 test -n "$ac_ct_AR" && break 6527done 6528 6529 if test "x$ac_ct_AR" = x; then 6530 AR="false" 6531 else 6532 case $cross_compiling:$ac_tool_warned in 6533yes:) 6534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6536ac_tool_warned=yes ;; 6537esac 6538 AR=$ac_ct_AR 6539 fi 6540fi 6541 6542: ${AR=ar} 6543 6544 6545 6546 6547 6548 6549# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6550# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6551# higher priority because thats what people were doing historically (setting 6552# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6553# variable obsoleted/removed. 6554 6555test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6556lt_ar_flags=$AR_FLAGS 6557 6558 6559 6560 6561 6562 6563# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6564# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6565 6566 6567 6568 6569 6570 6571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6572printf %s "checking for archiver @FILE support... " >&6; } 6573if test ${lt_cv_ar_at_file+y} 6574then : 6575 printf %s "(cached) " >&6 6576else $as_nop 6577 lt_cv_ar_at_file=no 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580 6581int 6582main (void) 6583{ 6584 6585 ; 6586 return 0; 6587} 6588_ACEOF 6589if ac_fn_c_try_compile "$LINENO" 6590then : 6591 echo conftest.$ac_objext > conftest.lst 6592 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6594 (eval $lt_ar_try) 2>&5 6595 ac_status=$? 6596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6597 test $ac_status = 0; } 6598 if test 0 -eq "$ac_status"; then 6599 # Ensure the archiver fails upon bogus file names. 6600 rm -f conftest.$ac_objext libconftest.a 6601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6602 (eval $lt_ar_try) 2>&5 6603 ac_status=$? 6604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6605 test $ac_status = 0; } 6606 if test 0 -ne "$ac_status"; then 6607 lt_cv_ar_at_file=@ 6608 fi 6609 fi 6610 rm -f conftest.* libconftest.a 6611 6612fi 6613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6614 6615fi 6616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6617printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6618 6619if test no = "$lt_cv_ar_at_file"; then 6620 archiver_list_spec= 6621else 6622 archiver_list_spec=$lt_cv_ar_at_file 6623fi 6624 6625 6626 6627 6628 6629 6630 6631if test -n "$ac_tool_prefix"; then 6632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6633set dummy ${ac_tool_prefix}strip; ac_word=$2 6634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6635printf %s "checking for $ac_word... " >&6; } 6636if test ${ac_cv_prog_STRIP+y} 6637then : 6638 printf %s "(cached) " >&6 6639else $as_nop 6640 if test -n "$STRIP"; then 6641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6642else 6643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6644for as_dir in $PATH 6645do 6646 IFS=$as_save_IFS 6647 case $as_dir in #((( 6648 '') as_dir=./ ;; 6649 */) ;; 6650 *) as_dir=$as_dir/ ;; 6651 esac 6652 for ac_exec_ext in '' $ac_executable_extensions; do 6653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6654 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6656 break 2 6657 fi 6658done 6659 done 6660IFS=$as_save_IFS 6661 6662fi 6663fi 6664STRIP=$ac_cv_prog_STRIP 6665if test -n "$STRIP"; then 6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6667printf "%s\n" "$STRIP" >&6; } 6668else 6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6670printf "%s\n" "no" >&6; } 6671fi 6672 6673 6674fi 6675if test -z "$ac_cv_prog_STRIP"; then 6676 ac_ct_STRIP=$STRIP 6677 # Extract the first word of "strip", so it can be a program name with args. 6678set dummy strip; ac_word=$2 6679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6680printf %s "checking for $ac_word... " >&6; } 6681if test ${ac_cv_prog_ac_ct_STRIP+y} 6682then : 6683 printf %s "(cached) " >&6 6684else $as_nop 6685 if test -n "$ac_ct_STRIP"; then 6686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6687else 6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH 6690do 6691 IFS=$as_save_IFS 6692 case $as_dir in #((( 6693 '') as_dir=./ ;; 6694 */) ;; 6695 *) as_dir=$as_dir/ ;; 6696 esac 6697 for ac_exec_ext in '' $ac_executable_extensions; do 6698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6699 ac_cv_prog_ac_ct_STRIP="strip" 6700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6701 break 2 6702 fi 6703done 6704 done 6705IFS=$as_save_IFS 6706 6707fi 6708fi 6709ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6710if test -n "$ac_ct_STRIP"; then 6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6712printf "%s\n" "$ac_ct_STRIP" >&6; } 6713else 6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6715printf "%s\n" "no" >&6; } 6716fi 6717 6718 if test "x$ac_ct_STRIP" = x; then 6719 STRIP=":" 6720 else 6721 case $cross_compiling:$ac_tool_warned in 6722yes:) 6723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6724printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6725ac_tool_warned=yes ;; 6726esac 6727 STRIP=$ac_ct_STRIP 6728 fi 6729else 6730 STRIP="$ac_cv_prog_STRIP" 6731fi 6732 6733test -z "$STRIP" && STRIP=: 6734 6735 6736 6737 6738 6739 6740if test -n "$ac_tool_prefix"; then 6741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6742set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6744printf %s "checking for $ac_word... " >&6; } 6745if test ${ac_cv_prog_RANLIB+y} 6746then : 6747 printf %s "(cached) " >&6 6748else $as_nop 6749 if test -n "$RANLIB"; then 6750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 case $as_dir in #((( 6757 '') as_dir=./ ;; 6758 */) ;; 6759 *) as_dir=$as_dir/ ;; 6760 esac 6761 for ac_exec_ext in '' $ac_executable_extensions; do 6762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6765 break 2 6766 fi 6767done 6768 done 6769IFS=$as_save_IFS 6770 6771fi 6772fi 6773RANLIB=$ac_cv_prog_RANLIB 6774if test -n "$RANLIB"; then 6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6776printf "%s\n" "$RANLIB" >&6; } 6777else 6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6779printf "%s\n" "no" >&6; } 6780fi 6781 6782 6783fi 6784if test -z "$ac_cv_prog_RANLIB"; then 6785 ac_ct_RANLIB=$RANLIB 6786 # Extract the first word of "ranlib", so it can be a program name with args. 6787set dummy ranlib; ac_word=$2 6788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6789printf %s "checking for $ac_word... " >&6; } 6790if test ${ac_cv_prog_ac_ct_RANLIB+y} 6791then : 6792 printf %s "(cached) " >&6 6793else $as_nop 6794 if test -n "$ac_ct_RANLIB"; then 6795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6796else 6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6798for as_dir in $PATH 6799do 6800 IFS=$as_save_IFS 6801 case $as_dir in #((( 6802 '') as_dir=./ ;; 6803 */) ;; 6804 *) as_dir=$as_dir/ ;; 6805 esac 6806 for ac_exec_ext in '' $ac_executable_extensions; do 6807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6808 ac_cv_prog_ac_ct_RANLIB="ranlib" 6809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6810 break 2 6811 fi 6812done 6813 done 6814IFS=$as_save_IFS 6815 6816fi 6817fi 6818ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6819if test -n "$ac_ct_RANLIB"; then 6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6821printf "%s\n" "$ac_ct_RANLIB" >&6; } 6822else 6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6824printf "%s\n" "no" >&6; } 6825fi 6826 6827 if test "x$ac_ct_RANLIB" = x; then 6828 RANLIB=":" 6829 else 6830 case $cross_compiling:$ac_tool_warned in 6831yes:) 6832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6833printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6834ac_tool_warned=yes ;; 6835esac 6836 RANLIB=$ac_ct_RANLIB 6837 fi 6838else 6839 RANLIB="$ac_cv_prog_RANLIB" 6840fi 6841 6842test -z "$RANLIB" && RANLIB=: 6843 6844 6845 6846 6847 6848 6849# Determine commands to create old-style static archives. 6850old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6851old_postinstall_cmds='chmod 644 $oldlib' 6852old_postuninstall_cmds= 6853 6854if test -n "$RANLIB"; then 6855 case $host_os in 6856 bitrig* | openbsd*) 6857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6858 ;; 6859 *) 6860 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6861 ;; 6862 esac 6863 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6864fi 6865 6866case $host_os in 6867 darwin*) 6868 lock_old_archive_extraction=yes ;; 6869 *) 6870 lock_old_archive_extraction=no ;; 6871esac 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911# If no C compiler was specified, use CC. 6912LTCC=${LTCC-"$CC"} 6913 6914# If no C compiler flags were specified, use CFLAGS. 6915LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6916 6917# Allow CC to be a program name with arguments. 6918compiler=$CC 6919 6920 6921# Check for command to grab the raw symbol name followed by C symbol from nm. 6922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6923printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6924if test ${lt_cv_sys_global_symbol_pipe+y} 6925then : 6926 printf %s "(cached) " >&6 6927else $as_nop 6928 6929# These are sane defaults that work on at least a few old systems. 6930# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6931 6932# Character class describing NM global symbol codes. 6933symcode='[BCDEGRST]' 6934 6935# Regexp to match symbols that can be accessed directly from C. 6936sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6937 6938# Define system-specific variables. 6939case $host_os in 6940aix*) 6941 symcode='[BCDT]' 6942 ;; 6943cygwin* | mingw* | pw32* | cegcc*) 6944 symcode='[ABCDGISTW]' 6945 ;; 6946hpux*) 6947 if test ia64 = "$host_cpu"; then 6948 symcode='[ABCDEGRST]' 6949 fi 6950 ;; 6951irix* | nonstopux*) 6952 symcode='[BCDEGRST]' 6953 ;; 6954osf*) 6955 symcode='[BCDEGQRST]' 6956 ;; 6957solaris*) 6958 symcode='[BDRT]' 6959 ;; 6960sco3.2v5*) 6961 symcode='[DT]' 6962 ;; 6963sysv4.2uw2*) 6964 symcode='[DT]' 6965 ;; 6966sysv5* | sco5v6* | unixware* | OpenUNIX*) 6967 symcode='[ABDT]' 6968 ;; 6969sysv4) 6970 symcode='[DFNSTU]' 6971 ;; 6972esac 6973 6974# If we're using GNU nm, then use its standard symbol codes. 6975case `$NM -V 2>&1` in 6976*GNU* | *'with BFD'*) 6977 symcode='[ABCDGIRSTW]' ;; 6978esac 6979 6980if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6981 # Gets list of data symbols to import. 6982 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6983 # Adjust the below global symbol transforms to fixup imported variables. 6984 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6985 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6986 lt_c_name_lib_hook="\ 6987 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6988 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6989else 6990 # Disable hooks by default. 6991 lt_cv_sys_global_symbol_to_import= 6992 lt_cdecl_hook= 6993 lt_c_name_hook= 6994 lt_c_name_lib_hook= 6995fi 6996 6997# Transform an extracted symbol line into a proper C declaration. 6998# Some systems (esp. on ia64) link data and code symbols differently, 6999# so use this general approach. 7000lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7001$lt_cdecl_hook\ 7002" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7003" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7004 7005# Transform an extracted symbol line into symbol name and symbol address 7006lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7007$lt_c_name_hook\ 7008" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7009" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7010 7011# Transform an extracted symbol line into symbol name with lib prefix and 7012# symbol address. 7013lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7014$lt_c_name_lib_hook\ 7015" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7016" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7017" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7018 7019# Handle CRLF in mingw tool chain 7020opt_cr= 7021case $build_os in 7022mingw*) 7023 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7024 ;; 7025esac 7026 7027# Try without a prefix underscore, then with it. 7028for ac_symprfx in "" "_"; do 7029 7030 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7031 symxfrm="\\1 $ac_symprfx\\2 \\2" 7032 7033 # Write the raw and C identifiers. 7034 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7035 # Fake it for dumpbin and say T for any non-static function, 7036 # D for any global variable and I for any imported variable. 7037 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7038 # which start with @ or ?. 7039 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7040" {last_section=section; section=\$ 3};"\ 7041" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7042" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7043" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7044" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7045" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7046" \$ 0!~/External *\|/{next};"\ 7047" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7048" {if(hide[section]) next};"\ 7049" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7050" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7051" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7052" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7053" ' prfx=^$ac_symprfx" 7054 else 7055 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7056 fi 7057 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7058 7059 # Check to see that the pipe works correctly. 7060 pipe_works=no 7061 7062 rm -f conftest* 7063 cat > conftest.$ac_ext <<_LT_EOF 7064#ifdef __cplusplus 7065extern "C" { 7066#endif 7067char nm_test_var; 7068void nm_test_func(void); 7069void nm_test_func(void){} 7070#ifdef __cplusplus 7071} 7072#endif 7073int main(){nm_test_var='a';nm_test_func();return(0);} 7074_LT_EOF 7075 7076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7077 (eval $ac_compile) 2>&5 7078 ac_status=$? 7079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7080 test $ac_status = 0; }; then 7081 # Now try to grab the symbols. 7082 nlist=conftest.nm 7083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7084 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7085 ac_status=$? 7086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7087 test $ac_status = 0; } && test -s "$nlist"; then 7088 # Try sorting and uniquifying the output. 7089 if sort "$nlist" | uniq > "$nlist"T; then 7090 mv -f "$nlist"T "$nlist" 7091 else 7092 rm -f "$nlist"T 7093 fi 7094 7095 # Make sure that we snagged all the symbols we need. 7096 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7097 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7098 cat <<_LT_EOF > conftest.$ac_ext 7099/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7100#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7101/* DATA imports from DLLs on WIN32 can't be const, because runtime 7102 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7103# define LT_DLSYM_CONST 7104#elif defined __osf__ 7105/* This system does not cope well with relocations in const data. */ 7106# define LT_DLSYM_CONST 7107#else 7108# define LT_DLSYM_CONST const 7109#endif 7110 7111#ifdef __cplusplus 7112extern "C" { 7113#endif 7114 7115_LT_EOF 7116 # Now generate the symbol file. 7117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7118 7119 cat <<_LT_EOF >> conftest.$ac_ext 7120 7121/* The mapping between symbol names and symbols. */ 7122LT_DLSYM_CONST struct { 7123 const char *name; 7124 void *address; 7125} 7126lt__PROGRAM__LTX_preloaded_symbols[] = 7127{ 7128 { "@PROGRAM@", (void *) 0 }, 7129_LT_EOF 7130 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7131 cat <<\_LT_EOF >> conftest.$ac_ext 7132 {0, (void *) 0} 7133}; 7134 7135/* This works around a problem in FreeBSD linker */ 7136#ifdef FREEBSD_WORKAROUND 7137static const void *lt_preloaded_setup() { 7138 return lt__PROGRAM__LTX_preloaded_symbols; 7139} 7140#endif 7141 7142#ifdef __cplusplus 7143} 7144#endif 7145_LT_EOF 7146 # Now try linking the two files. 7147 mv conftest.$ac_objext conftstm.$ac_objext 7148 lt_globsym_save_LIBS=$LIBS 7149 lt_globsym_save_CFLAGS=$CFLAGS 7150 LIBS=conftstm.$ac_objext 7151 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7153 (eval $ac_link) 2>&5 7154 ac_status=$? 7155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7156 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7157 pipe_works=yes 7158 fi 7159 LIBS=$lt_globsym_save_LIBS 7160 CFLAGS=$lt_globsym_save_CFLAGS 7161 else 7162 echo "cannot find nm_test_func in $nlist" >&5 7163 fi 7164 else 7165 echo "cannot find nm_test_var in $nlist" >&5 7166 fi 7167 else 7168 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7169 fi 7170 else 7171 echo "$progname: failed program was:" >&5 7172 cat conftest.$ac_ext >&5 7173 fi 7174 rm -rf conftest* conftst* 7175 7176 # Do not use the global_symbol_pipe unless it works. 7177 if test yes = "$pipe_works"; then 7178 break 7179 else 7180 lt_cv_sys_global_symbol_pipe= 7181 fi 7182done 7183 7184fi 7185 7186if test -z "$lt_cv_sys_global_symbol_pipe"; then 7187 lt_cv_sys_global_symbol_to_cdecl= 7188fi 7189if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7191printf "%s\n" "failed" >&6; } 7192else 7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7194printf "%s\n" "ok" >&6; } 7195fi 7196 7197# Response file support. 7198if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7199 nm_file_list_spec='@' 7200elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7201 nm_file_list_spec='@' 7202fi 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7241printf %s "checking for sysroot... " >&6; } 7242 7243# Check whether --with-sysroot was given. 7244if test ${with_sysroot+y} 7245then : 7246 withval=$with_sysroot; 7247else $as_nop 7248 with_sysroot=no 7249fi 7250 7251 7252lt_sysroot= 7253case $with_sysroot in #( 7254 yes) 7255 if test yes = "$GCC"; then 7256 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7257 fi 7258 ;; #( 7259 /*) 7260 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7261 ;; #( 7262 no|'') 7263 ;; #( 7264 *) 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7266printf "%s\n" "$with_sysroot" >&6; } 7267 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7268 ;; 7269esac 7270 7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7272printf "%s\n" "${lt_sysroot:-no}" >&6; } 7273 7274 7275 7276 7277 7278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7279printf %s "checking for a working dd... " >&6; } 7280if test ${ac_cv_path_lt_DD+y} 7281then : 7282 printf %s "(cached) " >&6 7283else $as_nop 7284 printf 0123456789abcdef0123456789abcdef >conftest.i 7285cat conftest.i conftest.i >conftest2.i 7286: ${lt_DD:=$DD} 7287if test -z "$lt_DD"; then 7288 ac_path_lt_DD_found=false 7289 # Loop through the user's path and test for each of PROGNAME-LIST 7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7291for as_dir in $PATH 7292do 7293 IFS=$as_save_IFS 7294 case $as_dir in #((( 7295 '') as_dir=./ ;; 7296 */) ;; 7297 *) as_dir=$as_dir/ ;; 7298 esac 7299 for ac_prog in dd 7300 do 7301 for ac_exec_ext in '' $ac_executable_extensions; do 7302 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7303 as_fn_executable_p "$ac_path_lt_DD" || continue 7304if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7305 cmp -s conftest.i conftest.out \ 7306 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7307fi 7308 $ac_path_lt_DD_found && break 3 7309 done 7310 done 7311 done 7312IFS=$as_save_IFS 7313 if test -z "$ac_cv_path_lt_DD"; then 7314 : 7315 fi 7316else 7317 ac_cv_path_lt_DD=$lt_DD 7318fi 7319 7320rm -f conftest.i conftest2.i conftest.out 7321fi 7322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7323printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7324 7325 7326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7327printf %s "checking how to truncate binary pipes... " >&6; } 7328if test ${lt_cv_truncate_bin+y} 7329then : 7330 printf %s "(cached) " >&6 7331else $as_nop 7332 printf 0123456789abcdef0123456789abcdef >conftest.i 7333cat conftest.i conftest.i >conftest2.i 7334lt_cv_truncate_bin= 7335if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7336 cmp -s conftest.i conftest.out \ 7337 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7338fi 7339rm -f conftest.i conftest2.i conftest.out 7340test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7341fi 7342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7343printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7344 7345 7346 7347 7348 7349 7350 7351# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7352func_cc_basename () 7353{ 7354 for cc_temp in $*""; do 7355 case $cc_temp in 7356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7358 \-*) ;; 7359 *) break;; 7360 esac 7361 done 7362 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7363} 7364 7365# Check whether --enable-libtool-lock was given. 7366if test ${enable_libtool_lock+y} 7367then : 7368 enableval=$enable_libtool_lock; 7369fi 7370 7371test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7372 7373# Some flags need to be propagated to the compiler or linker for good 7374# libtool support. 7375case $host in 7376ia64-*-hpux*) 7377 # Find out what ABI is being produced by ac_compile, and set mode 7378 # options accordingly. 7379 echo 'int i;' > conftest.$ac_ext 7380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7381 (eval $ac_compile) 2>&5 7382 ac_status=$? 7383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7384 test $ac_status = 0; }; then 7385 case `$FILECMD conftest.$ac_objext` in 7386 *ELF-32*) 7387 HPUX_IA64_MODE=32 7388 ;; 7389 *ELF-64*) 7390 HPUX_IA64_MODE=64 7391 ;; 7392 esac 7393 fi 7394 rm -rf conftest* 7395 ;; 7396*-*-irix6*) 7397 # Find out what ABI is being produced by ac_compile, and set linker 7398 # options accordingly. 7399 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7401 (eval $ac_compile) 2>&5 7402 ac_status=$? 7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7404 test $ac_status = 0; }; then 7405 if test yes = "$lt_cv_prog_gnu_ld"; then 7406 case `$FILECMD conftest.$ac_objext` in 7407 *32-bit*) 7408 LD="${LD-ld} -melf32bsmip" 7409 ;; 7410 *N32*) 7411 LD="${LD-ld} -melf32bmipn32" 7412 ;; 7413 *64-bit*) 7414 LD="${LD-ld} -melf64bmip" 7415 ;; 7416 esac 7417 else 7418 case `$FILECMD conftest.$ac_objext` in 7419 *32-bit*) 7420 LD="${LD-ld} -32" 7421 ;; 7422 *N32*) 7423 LD="${LD-ld} -n32" 7424 ;; 7425 *64-bit*) 7426 LD="${LD-ld} -64" 7427 ;; 7428 esac 7429 fi 7430 fi 7431 rm -rf conftest* 7432 ;; 7433 7434mips64*-*linux*) 7435 # Find out what ABI is being produced by ac_compile, and set linker 7436 # options accordingly. 7437 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7439 (eval $ac_compile) 2>&5 7440 ac_status=$? 7441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7442 test $ac_status = 0; }; then 7443 emul=elf 7444 case `$FILECMD conftest.$ac_objext` in 7445 *32-bit*) 7446 emul="${emul}32" 7447 ;; 7448 *64-bit*) 7449 emul="${emul}64" 7450 ;; 7451 esac 7452 case `$FILECMD conftest.$ac_objext` in 7453 *MSB*) 7454 emul="${emul}btsmip" 7455 ;; 7456 *LSB*) 7457 emul="${emul}ltsmip" 7458 ;; 7459 esac 7460 case `$FILECMD conftest.$ac_objext` in 7461 *N32*) 7462 emul="${emul}n32" 7463 ;; 7464 esac 7465 LD="${LD-ld} -m $emul" 7466 fi 7467 rm -rf conftest* 7468 ;; 7469 7470x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7471s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7472 # Find out what ABI is being produced by ac_compile, and set linker 7473 # options accordingly. Note that the listed cases only cover the 7474 # situations where additional linker options are needed (such as when 7475 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7476 # vice versa); the common cases where no linker options are needed do 7477 # not appear in the list. 7478 echo 'int i;' > conftest.$ac_ext 7479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7480 (eval $ac_compile) 2>&5 7481 ac_status=$? 7482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7483 test $ac_status = 0; }; then 7484 case `$FILECMD conftest.o` in 7485 *32-bit*) 7486 case $host in 7487 x86_64-*kfreebsd*-gnu) 7488 LD="${LD-ld} -m elf_i386_fbsd" 7489 ;; 7490 x86_64-*linux*) 7491 case `$FILECMD conftest.o` in 7492 *x86-64*) 7493 LD="${LD-ld} -m elf32_x86_64" 7494 ;; 7495 *) 7496 LD="${LD-ld} -m elf_i386" 7497 ;; 7498 esac 7499 ;; 7500 powerpc64le-*linux*) 7501 LD="${LD-ld} -m elf32lppclinux" 7502 ;; 7503 powerpc64-*linux*) 7504 LD="${LD-ld} -m elf32ppclinux" 7505 ;; 7506 s390x-*linux*) 7507 LD="${LD-ld} -m elf_s390" 7508 ;; 7509 sparc64-*linux*) 7510 LD="${LD-ld} -m elf32_sparc" 7511 ;; 7512 esac 7513 ;; 7514 *64-bit*) 7515 case $host in 7516 x86_64-*kfreebsd*-gnu) 7517 LD="${LD-ld} -m elf_x86_64_fbsd" 7518 ;; 7519 x86_64-*linux*) 7520 LD="${LD-ld} -m elf_x86_64" 7521 ;; 7522 powerpcle-*linux*|powerpc64le-*linux*) 7523 LD="${LD-ld} -m elf64lppc" 7524 ;; 7525 powerpc-*linux*|powerpc64-*linux*) 7526 LD="${LD-ld} -m elf64ppc" 7527 ;; 7528 s390*-*linux*|s390*-*tpf*) 7529 LD="${LD-ld} -m elf64_s390" 7530 ;; 7531 sparc*-*linux*) 7532 LD="${LD-ld} -m elf64_sparc" 7533 ;; 7534 esac 7535 ;; 7536 esac 7537 fi 7538 rm -rf conftest* 7539 ;; 7540 7541*-*-sco3.2v5*) 7542 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7543 SAVE_CFLAGS=$CFLAGS 7544 CFLAGS="$CFLAGS -belf" 7545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7546printf %s "checking whether the C compiler needs -belf... " >&6; } 7547if test ${lt_cv_cc_needs_belf+y} 7548then : 7549 printf %s "(cached) " >&6 7550else $as_nop 7551 ac_ext=c 7552ac_cpp='$CPP $CPPFLAGS' 7553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7555ac_compiler_gnu=$ac_cv_c_compiler_gnu 7556 7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7558/* end confdefs.h. */ 7559 7560int 7561main (void) 7562{ 7563 7564 ; 7565 return 0; 7566} 7567_ACEOF 7568if ac_fn_c_try_link "$LINENO" 7569then : 7570 lt_cv_cc_needs_belf=yes 7571else $as_nop 7572 lt_cv_cc_needs_belf=no 7573fi 7574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7575 conftest$ac_exeext conftest.$ac_ext 7576 ac_ext=c 7577ac_cpp='$CPP $CPPFLAGS' 7578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7580ac_compiler_gnu=$ac_cv_c_compiler_gnu 7581 7582fi 7583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7584printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7585 if test yes != "$lt_cv_cc_needs_belf"; then 7586 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7587 CFLAGS=$SAVE_CFLAGS 7588 fi 7589 ;; 7590*-*solaris*) 7591 # Find out what ABI is being produced by ac_compile, and set linker 7592 # options accordingly. 7593 echo 'int i;' > conftest.$ac_ext 7594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7595 (eval $ac_compile) 2>&5 7596 ac_status=$? 7597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7598 test $ac_status = 0; }; then 7599 case `$FILECMD conftest.o` in 7600 *64-bit*) 7601 case $lt_cv_prog_gnu_ld in 7602 yes*) 7603 case $host in 7604 i?86-*-solaris*|x86_64-*-solaris*) 7605 LD="${LD-ld} -m elf_x86_64" 7606 ;; 7607 sparc*-*-solaris*) 7608 LD="${LD-ld} -m elf64_sparc" 7609 ;; 7610 esac 7611 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7612 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7613 LD=${LD-ld}_sol2 7614 fi 7615 ;; 7616 *) 7617 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7618 LD="${LD-ld} -64" 7619 fi 7620 ;; 7621 esac 7622 ;; 7623 esac 7624 fi 7625 rm -rf conftest* 7626 ;; 7627esac 7628 7629need_locks=$enable_libtool_lock 7630 7631if test -n "$ac_tool_prefix"; then 7632 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7633set dummy ${ac_tool_prefix}mt; ac_word=$2 7634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7635printf %s "checking for $ac_word... " >&6; } 7636if test ${ac_cv_prog_MANIFEST_TOOL+y} 7637then : 7638 printf %s "(cached) " >&6 7639else $as_nop 7640 if test -n "$MANIFEST_TOOL"; then 7641 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7642else 7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7644for as_dir in $PATH 7645do 7646 IFS=$as_save_IFS 7647 case $as_dir in #((( 7648 '') as_dir=./ ;; 7649 */) ;; 7650 *) as_dir=$as_dir/ ;; 7651 esac 7652 for ac_exec_ext in '' $ac_executable_extensions; do 7653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7654 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7656 break 2 7657 fi 7658done 7659 done 7660IFS=$as_save_IFS 7661 7662fi 7663fi 7664MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7665if test -n "$MANIFEST_TOOL"; then 7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7667printf "%s\n" "$MANIFEST_TOOL" >&6; } 7668else 7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7670printf "%s\n" "no" >&6; } 7671fi 7672 7673 7674fi 7675if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7676 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7677 # Extract the first word of "mt", so it can be a program name with args. 7678set dummy mt; ac_word=$2 7679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7680printf %s "checking for $ac_word... " >&6; } 7681if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7682then : 7683 printf %s "(cached) " >&6 7684else $as_nop 7685 if test -n "$ac_ct_MANIFEST_TOOL"; then 7686 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7687else 7688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7689for as_dir in $PATH 7690do 7691 IFS=$as_save_IFS 7692 case $as_dir in #((( 7693 '') as_dir=./ ;; 7694 */) ;; 7695 *) as_dir=$as_dir/ ;; 7696 esac 7697 for ac_exec_ext in '' $ac_executable_extensions; do 7698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7699 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7701 break 2 7702 fi 7703done 7704 done 7705IFS=$as_save_IFS 7706 7707fi 7708fi 7709ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7710if test -n "$ac_ct_MANIFEST_TOOL"; then 7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7712printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7713else 7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7715printf "%s\n" "no" >&6; } 7716fi 7717 7718 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7719 MANIFEST_TOOL=":" 7720 else 7721 case $cross_compiling:$ac_tool_warned in 7722yes:) 7723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7724printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7725ac_tool_warned=yes ;; 7726esac 7727 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7728 fi 7729else 7730 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7731fi 7732 7733test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7735printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7736if test ${lt_cv_path_mainfest_tool+y} 7737then : 7738 printf %s "(cached) " >&6 7739else $as_nop 7740 lt_cv_path_mainfest_tool=no 7741 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7742 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7743 cat conftest.err >&5 7744 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7745 lt_cv_path_mainfest_tool=yes 7746 fi 7747 rm -f conftest* 7748fi 7749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7750printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7751if test yes != "$lt_cv_path_mainfest_tool"; then 7752 MANIFEST_TOOL=: 7753fi 7754 7755 7756 7757 7758 7759 7760 case $host_os in 7761 rhapsody* | darwin*) 7762 if test -n "$ac_tool_prefix"; then 7763 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7764set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7766printf %s "checking for $ac_word... " >&6; } 7767if test ${ac_cv_prog_DSYMUTIL+y} 7768then : 7769 printf %s "(cached) " >&6 7770else $as_nop 7771 if test -n "$DSYMUTIL"; then 7772 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7773else 7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7775for as_dir in $PATH 7776do 7777 IFS=$as_save_IFS 7778 case $as_dir in #((( 7779 '') as_dir=./ ;; 7780 */) ;; 7781 *) as_dir=$as_dir/ ;; 7782 esac 7783 for ac_exec_ext in '' $ac_executable_extensions; do 7784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7785 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7787 break 2 7788 fi 7789done 7790 done 7791IFS=$as_save_IFS 7792 7793fi 7794fi 7795DSYMUTIL=$ac_cv_prog_DSYMUTIL 7796if test -n "$DSYMUTIL"; then 7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7798printf "%s\n" "$DSYMUTIL" >&6; } 7799else 7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7801printf "%s\n" "no" >&6; } 7802fi 7803 7804 7805fi 7806if test -z "$ac_cv_prog_DSYMUTIL"; then 7807 ac_ct_DSYMUTIL=$DSYMUTIL 7808 # Extract the first word of "dsymutil", so it can be a program name with args. 7809set dummy dsymutil; ac_word=$2 7810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7811printf %s "checking for $ac_word... " >&6; } 7812if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7813then : 7814 printf %s "(cached) " >&6 7815else $as_nop 7816 if test -n "$ac_ct_DSYMUTIL"; then 7817 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7818else 7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7820for as_dir in $PATH 7821do 7822 IFS=$as_save_IFS 7823 case $as_dir in #((( 7824 '') as_dir=./ ;; 7825 */) ;; 7826 *) as_dir=$as_dir/ ;; 7827 esac 7828 for ac_exec_ext in '' $ac_executable_extensions; do 7829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7830 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7832 break 2 7833 fi 7834done 7835 done 7836IFS=$as_save_IFS 7837 7838fi 7839fi 7840ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7841if test -n "$ac_ct_DSYMUTIL"; then 7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7843printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7844else 7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7846printf "%s\n" "no" >&6; } 7847fi 7848 7849 if test "x$ac_ct_DSYMUTIL" = x; then 7850 DSYMUTIL=":" 7851 else 7852 case $cross_compiling:$ac_tool_warned in 7853yes:) 7854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7855printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7856ac_tool_warned=yes ;; 7857esac 7858 DSYMUTIL=$ac_ct_DSYMUTIL 7859 fi 7860else 7861 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7862fi 7863 7864 if test -n "$ac_tool_prefix"; then 7865 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7866set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7868printf %s "checking for $ac_word... " >&6; } 7869if test ${ac_cv_prog_NMEDIT+y} 7870then : 7871 printf %s "(cached) " >&6 7872else $as_nop 7873 if test -n "$NMEDIT"; then 7874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7875else 7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7877for as_dir in $PATH 7878do 7879 IFS=$as_save_IFS 7880 case $as_dir in #((( 7881 '') as_dir=./ ;; 7882 */) ;; 7883 *) as_dir=$as_dir/ ;; 7884 esac 7885 for ac_exec_ext in '' $ac_executable_extensions; do 7886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7887 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7889 break 2 7890 fi 7891done 7892 done 7893IFS=$as_save_IFS 7894 7895fi 7896fi 7897NMEDIT=$ac_cv_prog_NMEDIT 7898if test -n "$NMEDIT"; then 7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7900printf "%s\n" "$NMEDIT" >&6; } 7901else 7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7903printf "%s\n" "no" >&6; } 7904fi 7905 7906 7907fi 7908if test -z "$ac_cv_prog_NMEDIT"; then 7909 ac_ct_NMEDIT=$NMEDIT 7910 # Extract the first word of "nmedit", so it can be a program name with args. 7911set dummy nmedit; ac_word=$2 7912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7913printf %s "checking for $ac_word... " >&6; } 7914if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7915then : 7916 printf %s "(cached) " >&6 7917else $as_nop 7918 if test -n "$ac_ct_NMEDIT"; then 7919 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7920else 7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7922for as_dir in $PATH 7923do 7924 IFS=$as_save_IFS 7925 case $as_dir in #((( 7926 '') as_dir=./ ;; 7927 */) ;; 7928 *) as_dir=$as_dir/ ;; 7929 esac 7930 for ac_exec_ext in '' $ac_executable_extensions; do 7931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7932 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7934 break 2 7935 fi 7936done 7937 done 7938IFS=$as_save_IFS 7939 7940fi 7941fi 7942ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7943if test -n "$ac_ct_NMEDIT"; then 7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7945printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7946else 7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7948printf "%s\n" "no" >&6; } 7949fi 7950 7951 if test "x$ac_ct_NMEDIT" = x; then 7952 NMEDIT=":" 7953 else 7954 case $cross_compiling:$ac_tool_warned in 7955yes:) 7956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7957printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7958ac_tool_warned=yes ;; 7959esac 7960 NMEDIT=$ac_ct_NMEDIT 7961 fi 7962else 7963 NMEDIT="$ac_cv_prog_NMEDIT" 7964fi 7965 7966 if test -n "$ac_tool_prefix"; then 7967 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7968set dummy ${ac_tool_prefix}lipo; ac_word=$2 7969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7970printf %s "checking for $ac_word... " >&6; } 7971if test ${ac_cv_prog_LIPO+y} 7972then : 7973 printf %s "(cached) " >&6 7974else $as_nop 7975 if test -n "$LIPO"; then 7976 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7977else 7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7979for as_dir in $PATH 7980do 7981 IFS=$as_save_IFS 7982 case $as_dir in #((( 7983 '') as_dir=./ ;; 7984 */) ;; 7985 *) as_dir=$as_dir/ ;; 7986 esac 7987 for ac_exec_ext in '' $ac_executable_extensions; do 7988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7989 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7991 break 2 7992 fi 7993done 7994 done 7995IFS=$as_save_IFS 7996 7997fi 7998fi 7999LIPO=$ac_cv_prog_LIPO 8000if test -n "$LIPO"; then 8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8002printf "%s\n" "$LIPO" >&6; } 8003else 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8005printf "%s\n" "no" >&6; } 8006fi 8007 8008 8009fi 8010if test -z "$ac_cv_prog_LIPO"; then 8011 ac_ct_LIPO=$LIPO 8012 # Extract the first word of "lipo", so it can be a program name with args. 8013set dummy lipo; ac_word=$2 8014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8015printf %s "checking for $ac_word... " >&6; } 8016if test ${ac_cv_prog_ac_ct_LIPO+y} 8017then : 8018 printf %s "(cached) " >&6 8019else $as_nop 8020 if test -n "$ac_ct_LIPO"; then 8021 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8022else 8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8024for as_dir in $PATH 8025do 8026 IFS=$as_save_IFS 8027 case $as_dir in #((( 8028 '') as_dir=./ ;; 8029 */) ;; 8030 *) as_dir=$as_dir/ ;; 8031 esac 8032 for ac_exec_ext in '' $ac_executable_extensions; do 8033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8034 ac_cv_prog_ac_ct_LIPO="lipo" 8035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8036 break 2 8037 fi 8038done 8039 done 8040IFS=$as_save_IFS 8041 8042fi 8043fi 8044ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8045if test -n "$ac_ct_LIPO"; then 8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8047printf "%s\n" "$ac_ct_LIPO" >&6; } 8048else 8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8050printf "%s\n" "no" >&6; } 8051fi 8052 8053 if test "x$ac_ct_LIPO" = x; then 8054 LIPO=":" 8055 else 8056 case $cross_compiling:$ac_tool_warned in 8057yes:) 8058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8059printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8060ac_tool_warned=yes ;; 8061esac 8062 LIPO=$ac_ct_LIPO 8063 fi 8064else 8065 LIPO="$ac_cv_prog_LIPO" 8066fi 8067 8068 if test -n "$ac_tool_prefix"; then 8069 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8070set dummy ${ac_tool_prefix}otool; ac_word=$2 8071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072printf %s "checking for $ac_word... " >&6; } 8073if test ${ac_cv_prog_OTOOL+y} 8074then : 8075 printf %s "(cached) " >&6 8076else $as_nop 8077 if test -n "$OTOOL"; then 8078 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8079else 8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8081for as_dir in $PATH 8082do 8083 IFS=$as_save_IFS 8084 case $as_dir in #((( 8085 '') as_dir=./ ;; 8086 */) ;; 8087 *) as_dir=$as_dir/ ;; 8088 esac 8089 for ac_exec_ext in '' $ac_executable_extensions; do 8090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8091 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8093 break 2 8094 fi 8095done 8096 done 8097IFS=$as_save_IFS 8098 8099fi 8100fi 8101OTOOL=$ac_cv_prog_OTOOL 8102if test -n "$OTOOL"; then 8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8104printf "%s\n" "$OTOOL" >&6; } 8105else 8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8107printf "%s\n" "no" >&6; } 8108fi 8109 8110 8111fi 8112if test -z "$ac_cv_prog_OTOOL"; then 8113 ac_ct_OTOOL=$OTOOL 8114 # Extract the first word of "otool", so it can be a program name with args. 8115set dummy otool; ac_word=$2 8116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8117printf %s "checking for $ac_word... " >&6; } 8118if test ${ac_cv_prog_ac_ct_OTOOL+y} 8119then : 8120 printf %s "(cached) " >&6 8121else $as_nop 8122 if test -n "$ac_ct_OTOOL"; then 8123 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8124else 8125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8126for as_dir in $PATH 8127do 8128 IFS=$as_save_IFS 8129 case $as_dir in #((( 8130 '') as_dir=./ ;; 8131 */) ;; 8132 *) as_dir=$as_dir/ ;; 8133 esac 8134 for ac_exec_ext in '' $ac_executable_extensions; do 8135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8136 ac_cv_prog_ac_ct_OTOOL="otool" 8137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8138 break 2 8139 fi 8140done 8141 done 8142IFS=$as_save_IFS 8143 8144fi 8145fi 8146ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8147if test -n "$ac_ct_OTOOL"; then 8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8149printf "%s\n" "$ac_ct_OTOOL" >&6; } 8150else 8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8152printf "%s\n" "no" >&6; } 8153fi 8154 8155 if test "x$ac_ct_OTOOL" = x; then 8156 OTOOL=":" 8157 else 8158 case $cross_compiling:$ac_tool_warned in 8159yes:) 8160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8161printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8162ac_tool_warned=yes ;; 8163esac 8164 OTOOL=$ac_ct_OTOOL 8165 fi 8166else 8167 OTOOL="$ac_cv_prog_OTOOL" 8168fi 8169 8170 if test -n "$ac_tool_prefix"; then 8171 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8172set dummy ${ac_tool_prefix}otool64; ac_word=$2 8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8174printf %s "checking for $ac_word... " >&6; } 8175if test ${ac_cv_prog_OTOOL64+y} 8176then : 8177 printf %s "(cached) " >&6 8178else $as_nop 8179 if test -n "$OTOOL64"; then 8180 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8181else 8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8183for as_dir in $PATH 8184do 8185 IFS=$as_save_IFS 8186 case $as_dir in #((( 8187 '') as_dir=./ ;; 8188 */) ;; 8189 *) as_dir=$as_dir/ ;; 8190 esac 8191 for ac_exec_ext in '' $ac_executable_extensions; do 8192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8193 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8195 break 2 8196 fi 8197done 8198 done 8199IFS=$as_save_IFS 8200 8201fi 8202fi 8203OTOOL64=$ac_cv_prog_OTOOL64 8204if test -n "$OTOOL64"; then 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8206printf "%s\n" "$OTOOL64" >&6; } 8207else 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8209printf "%s\n" "no" >&6; } 8210fi 8211 8212 8213fi 8214if test -z "$ac_cv_prog_OTOOL64"; then 8215 ac_ct_OTOOL64=$OTOOL64 8216 # Extract the first word of "otool64", so it can be a program name with args. 8217set dummy otool64; ac_word=$2 8218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8219printf %s "checking for $ac_word... " >&6; } 8220if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8221then : 8222 printf %s "(cached) " >&6 8223else $as_nop 8224 if test -n "$ac_ct_OTOOL64"; then 8225 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8226else 8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8228for as_dir in $PATH 8229do 8230 IFS=$as_save_IFS 8231 case $as_dir in #((( 8232 '') as_dir=./ ;; 8233 */) ;; 8234 *) as_dir=$as_dir/ ;; 8235 esac 8236 for ac_exec_ext in '' $ac_executable_extensions; do 8237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8238 ac_cv_prog_ac_ct_OTOOL64="otool64" 8239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8240 break 2 8241 fi 8242done 8243 done 8244IFS=$as_save_IFS 8245 8246fi 8247fi 8248ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8249if test -n "$ac_ct_OTOOL64"; then 8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8251printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8252else 8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8254printf "%s\n" "no" >&6; } 8255fi 8256 8257 if test "x$ac_ct_OTOOL64" = x; then 8258 OTOOL64=":" 8259 else 8260 case $cross_compiling:$ac_tool_warned in 8261yes:) 8262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8263printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8264ac_tool_warned=yes ;; 8265esac 8266 OTOOL64=$ac_ct_OTOOL64 8267 fi 8268else 8269 OTOOL64="$ac_cv_prog_OTOOL64" 8270fi 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8299printf %s "checking for -single_module linker flag... " >&6; } 8300if test ${lt_cv_apple_cc_single_mod+y} 8301then : 8302 printf %s "(cached) " >&6 8303else $as_nop 8304 lt_cv_apple_cc_single_mod=no 8305 if test -z "$LT_MULTI_MODULE"; then 8306 # By default we will add the -single_module flag. You can override 8307 # by either setting the environment variable LT_MULTI_MODULE 8308 # non-empty at configure time, or by adding -multi_module to the 8309 # link flags. 8310 rm -rf libconftest.dylib* 8311 echo "int foo(void){return 1;}" > conftest.c 8312 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8313-dynamiclib -Wl,-single_module conftest.c" >&5 8314 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8315 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8316 _lt_result=$? 8317 # If there is a non-empty error log, and "single_module" 8318 # appears in it, assume the flag caused a linker warning 8319 if test -s conftest.err && $GREP single_module conftest.err; then 8320 cat conftest.err >&5 8321 # Otherwise, if the output was created with a 0 exit code from 8322 # the compiler, it worked. 8323 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8324 lt_cv_apple_cc_single_mod=yes 8325 else 8326 cat conftest.err >&5 8327 fi 8328 rm -rf libconftest.dylib* 8329 rm -f conftest.* 8330 fi 8331fi 8332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8333printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8334 8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8336printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8337if test ${lt_cv_ld_exported_symbols_list+y} 8338then : 8339 printf %s "(cached) " >&6 8340else $as_nop 8341 lt_cv_ld_exported_symbols_list=no 8342 save_LDFLAGS=$LDFLAGS 8343 echo "_main" > conftest.sym 8344 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8346/* end confdefs.h. */ 8347 8348int 8349main (void) 8350{ 8351 8352 ; 8353 return 0; 8354} 8355_ACEOF 8356if ac_fn_c_try_link "$LINENO" 8357then : 8358 lt_cv_ld_exported_symbols_list=yes 8359else $as_nop 8360 lt_cv_ld_exported_symbols_list=no 8361fi 8362rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8363 conftest$ac_exeext conftest.$ac_ext 8364 LDFLAGS=$save_LDFLAGS 8365 8366fi 8367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8368printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8369 8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8371printf %s "checking for -force_load linker flag... " >&6; } 8372if test ${lt_cv_ld_force_load+y} 8373then : 8374 printf %s "(cached) " >&6 8375else $as_nop 8376 lt_cv_ld_force_load=no 8377 cat > conftest.c << _LT_EOF 8378int forced_loaded() { return 2;} 8379_LT_EOF 8380 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8381 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8382 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8383 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8384 echo "$RANLIB libconftest.a" >&5 8385 $RANLIB libconftest.a 2>&5 8386 cat > conftest.c << _LT_EOF 8387int main() { return 0;} 8388_LT_EOF 8389 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8390 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8391 _lt_result=$? 8392 if test -s conftest.err && $GREP force_load conftest.err; then 8393 cat conftest.err >&5 8394 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8395 lt_cv_ld_force_load=yes 8396 else 8397 cat conftest.err >&5 8398 fi 8399 rm -f conftest.err libconftest.a conftest conftest.c 8400 rm -rf conftest.dSYM 8401 8402fi 8403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8404printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8405 case $host_os in 8406 rhapsody* | darwin1.[012]) 8407 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8408 darwin1.*) 8409 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8410 darwin*) 8411 case $MACOSX_DEPLOYMENT_TARGET,$host in 8412 10.[012],*|,*powerpc*-darwin[5-8]*) 8413 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8414 *) 8415 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8416 esac 8417 ;; 8418 esac 8419 if test yes = "$lt_cv_apple_cc_single_mod"; then 8420 _lt_dar_single_mod='$single_module' 8421 fi 8422 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8423 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8424 else 8425 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8426 fi 8427 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8428 _lt_dsymutil='~$DSYMUTIL $lib || :' 8429 else 8430 _lt_dsymutil= 8431 fi 8432 ;; 8433 esac 8434 8435# func_munge_path_list VARIABLE PATH 8436# ----------------------------------- 8437# VARIABLE is name of variable containing _space_ separated list of 8438# directories to be munged by the contents of PATH, which is string 8439# having a format: 8440# "DIR[:DIR]:" 8441# string "DIR[ DIR]" will be prepended to VARIABLE 8442# ":DIR[:DIR]" 8443# string "DIR[ DIR]" will be appended to VARIABLE 8444# "DIRP[:DIRP]::[DIRA:]DIRA" 8445# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8446# "DIRA[ DIRA]" will be appended to VARIABLE 8447# "DIR[:DIR]" 8448# VARIABLE will be replaced by "DIR[ DIR]" 8449func_munge_path_list () 8450{ 8451 case x$2 in 8452 x) 8453 ;; 8454 *:) 8455 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8456 ;; 8457 x:*) 8458 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8459 ;; 8460 *::*) 8461 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8462 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8463 ;; 8464 *) 8465 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8466 ;; 8467 esac 8468} 8469 8470ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8471" 8472if test "x$ac_cv_header_dlfcn_h" = xyes 8473then : 8474 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8475 8476fi 8477 8478 8479 8480 8481 8482# Set options 8483 8484 8485 8486 enable_dlopen=no 8487 8488 8489 enable_win32_dll=no 8490 8491 8492 # Check whether --enable-shared was given. 8493if test ${enable_shared+y} 8494then : 8495 enableval=$enable_shared; p=${PACKAGE-default} 8496 case $enableval in 8497 yes) enable_shared=yes ;; 8498 no) enable_shared=no ;; 8499 *) 8500 enable_shared=no 8501 # Look at the argument we got. We use all the common list separators. 8502 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8503 for pkg in $enableval; do 8504 IFS=$lt_save_ifs 8505 if test "X$pkg" = "X$p"; then 8506 enable_shared=yes 8507 fi 8508 done 8509 IFS=$lt_save_ifs 8510 ;; 8511 esac 8512else $as_nop 8513 enable_shared=yes 8514fi 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 # Check whether --enable-static was given. 8525if test ${enable_static+y} 8526then : 8527 enableval=$enable_static; p=${PACKAGE-default} 8528 case $enableval in 8529 yes) enable_static=yes ;; 8530 no) enable_static=no ;; 8531 *) 8532 enable_static=no 8533 # Look at the argument we got. We use all the common list separators. 8534 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8535 for pkg in $enableval; do 8536 IFS=$lt_save_ifs 8537 if test "X$pkg" = "X$p"; then 8538 enable_static=yes 8539 fi 8540 done 8541 IFS=$lt_save_ifs 8542 ;; 8543 esac 8544else $as_nop 8545 enable_static=yes 8546fi 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557# Check whether --with-pic was given. 8558if test ${with_pic+y} 8559then : 8560 withval=$with_pic; lt_p=${PACKAGE-default} 8561 case $withval in 8562 yes|no) pic_mode=$withval ;; 8563 *) 8564 pic_mode=default 8565 # Look at the argument we got. We use all the common list separators. 8566 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8567 for lt_pkg in $withval; do 8568 IFS=$lt_save_ifs 8569 if test "X$lt_pkg" = "X$lt_p"; then 8570 pic_mode=yes 8571 fi 8572 done 8573 IFS=$lt_save_ifs 8574 ;; 8575 esac 8576else $as_nop 8577 pic_mode=default 8578fi 8579 8580 8581 8582 8583 8584 8585 8586 8587 # Check whether --enable-fast-install was given. 8588if test ${enable_fast_install+y} 8589then : 8590 enableval=$enable_fast_install; p=${PACKAGE-default} 8591 case $enableval in 8592 yes) enable_fast_install=yes ;; 8593 no) enable_fast_install=no ;; 8594 *) 8595 enable_fast_install=no 8596 # Look at the argument we got. We use all the common list separators. 8597 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8598 for pkg in $enableval; do 8599 IFS=$lt_save_ifs 8600 if test "X$pkg" = "X$p"; then 8601 enable_fast_install=yes 8602 fi 8603 done 8604 IFS=$lt_save_ifs 8605 ;; 8606 esac 8607else $as_nop 8608 enable_fast_install=yes 8609fi 8610 8611 8612 8613 8614 8615 8616 8617 8618 shared_archive_member_spec= 8619case $host,$enable_shared in 8620power*-*-aix[5-9]*,yes) 8621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8622printf %s "checking which variant of shared library versioning to provide... " >&6; } 8623 8624# Check whether --with-aix-soname was given. 8625if test ${with_aix_soname+y} 8626then : 8627 withval=$with_aix_soname; case $withval in 8628 aix|svr4|both) 8629 ;; 8630 *) 8631 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8632 ;; 8633 esac 8634 lt_cv_with_aix_soname=$with_aix_soname 8635else $as_nop 8636 if test ${lt_cv_with_aix_soname+y} 8637then : 8638 printf %s "(cached) " >&6 8639else $as_nop 8640 lt_cv_with_aix_soname=aix 8641fi 8642 8643 with_aix_soname=$lt_cv_with_aix_soname 8644fi 8645 8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8647printf "%s\n" "$with_aix_soname" >&6; } 8648 if test aix != "$with_aix_soname"; then 8649 # For the AIX way of multilib, we name the shared archive member 8650 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8651 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8652 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8653 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8654 if test 64 = "${OBJECT_MODE-32}"; then 8655 shared_archive_member_spec=shr_64 8656 else 8657 shared_archive_member_spec=shr 8658 fi 8659 fi 8660 ;; 8661*) 8662 with_aix_soname=aix 8663 ;; 8664esac 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675# This can be used to rebuild libtool when needed 8676LIBTOOL_DEPS=$ltmain 8677 8678# Always use our own libtool. 8679LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710test -z "$LN_S" && LN_S="ln -s" 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725if test -n "${ZSH_VERSION+set}"; then 8726 setopt NO_GLOB_SUBST 8727fi 8728 8729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8730printf %s "checking for objdir... " >&6; } 8731if test ${lt_cv_objdir+y} 8732then : 8733 printf %s "(cached) " >&6 8734else $as_nop 8735 rm -f .libs 2>/dev/null 8736mkdir .libs 2>/dev/null 8737if test -d .libs; then 8738 lt_cv_objdir=.libs 8739else 8740 # MS-DOS does not allow filenames that begin with a dot. 8741 lt_cv_objdir=_libs 8742fi 8743rmdir .libs 2>/dev/null 8744fi 8745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8746printf "%s\n" "$lt_cv_objdir" >&6; } 8747objdir=$lt_cv_objdir 8748 8749 8750 8751 8752 8753printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8754 8755 8756 8757 8758case $host_os in 8759aix3*) 8760 # AIX sometimes has problems with the GCC collect2 program. For some 8761 # reason, if we set the COLLECT_NAMES environment variable, the problems 8762 # vanish in a puff of smoke. 8763 if test set != "${COLLECT_NAMES+set}"; then 8764 COLLECT_NAMES= 8765 export COLLECT_NAMES 8766 fi 8767 ;; 8768esac 8769 8770# Global variables: 8771ofile=libtool 8772can_build_shared=yes 8773 8774# All known linkers require a '.a' archive for static linking (except MSVC and 8775# ICC, which need '.lib'). 8776libext=a 8777 8778with_gnu_ld=$lt_cv_prog_gnu_ld 8779 8780old_CC=$CC 8781old_CFLAGS=$CFLAGS 8782 8783# Set sane defaults for various variables 8784test -z "$CC" && CC=cc 8785test -z "$LTCC" && LTCC=$CC 8786test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8787test -z "$LD" && LD=ld 8788test -z "$ac_objext" && ac_objext=o 8789 8790func_cc_basename $compiler 8791cc_basename=$func_cc_basename_result 8792 8793 8794# Only perform the check for file, if the check method requires it 8795test -z "$MAGIC_CMD" && MAGIC_CMD=file 8796case $deplibs_check_method in 8797file_magic*) 8798 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8800printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8801if test ${lt_cv_path_MAGIC_CMD+y} 8802then : 8803 printf %s "(cached) " >&6 8804else $as_nop 8805 case $MAGIC_CMD in 8806[\\/*] | ?:[\\/]*) 8807 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8808 ;; 8809*) 8810 lt_save_MAGIC_CMD=$MAGIC_CMD 8811 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8812 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8813 for ac_dir in $ac_dummy; do 8814 IFS=$lt_save_ifs 8815 test -z "$ac_dir" && ac_dir=. 8816 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8817 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8818 if test -n "$file_magic_test_file"; then 8819 case $deplibs_check_method in 8820 "file_magic "*) 8821 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8822 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8823 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8824 $EGREP "$file_magic_regex" > /dev/null; then 8825 : 8826 else 8827 cat <<_LT_EOF 1>&2 8828 8829*** Warning: the command libtool uses to detect shared libraries, 8830*** $file_magic_cmd, produces output that libtool cannot recognize. 8831*** The result is that libtool may fail to recognize shared libraries 8832*** as such. This will affect the creation of libtool libraries that 8833*** depend on shared libraries, but programs linked with such libtool 8834*** libraries will work regardless of this problem. Nevertheless, you 8835*** may want to report the problem to your system manager and/or to 8836*** bug-libtool@gnu.org 8837 8838_LT_EOF 8839 fi ;; 8840 esac 8841 fi 8842 break 8843 fi 8844 done 8845 IFS=$lt_save_ifs 8846 MAGIC_CMD=$lt_save_MAGIC_CMD 8847 ;; 8848esac 8849fi 8850 8851MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8852if test -n "$MAGIC_CMD"; then 8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8854printf "%s\n" "$MAGIC_CMD" >&6; } 8855else 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8857printf "%s\n" "no" >&6; } 8858fi 8859 8860 8861 8862 8863 8864if test -z "$lt_cv_path_MAGIC_CMD"; then 8865 if test -n "$ac_tool_prefix"; then 8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8867printf %s "checking for file... " >&6; } 8868if test ${lt_cv_path_MAGIC_CMD+y} 8869then : 8870 printf %s "(cached) " >&6 8871else $as_nop 8872 case $MAGIC_CMD in 8873[\\/*] | ?:[\\/]*) 8874 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8875 ;; 8876*) 8877 lt_save_MAGIC_CMD=$MAGIC_CMD 8878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8879 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8880 for ac_dir in $ac_dummy; do 8881 IFS=$lt_save_ifs 8882 test -z "$ac_dir" && ac_dir=. 8883 if test -f "$ac_dir/file"; then 8884 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8885 if test -n "$file_magic_test_file"; then 8886 case $deplibs_check_method in 8887 "file_magic "*) 8888 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8889 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8890 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8891 $EGREP "$file_magic_regex" > /dev/null; then 8892 : 8893 else 8894 cat <<_LT_EOF 1>&2 8895 8896*** Warning: the command libtool uses to detect shared libraries, 8897*** $file_magic_cmd, produces output that libtool cannot recognize. 8898*** The result is that libtool may fail to recognize shared libraries 8899*** as such. This will affect the creation of libtool libraries that 8900*** depend on shared libraries, but programs linked with such libtool 8901*** libraries will work regardless of this problem. Nevertheless, you 8902*** may want to report the problem to your system manager and/or to 8903*** bug-libtool@gnu.org 8904 8905_LT_EOF 8906 fi ;; 8907 esac 8908 fi 8909 break 8910 fi 8911 done 8912 IFS=$lt_save_ifs 8913 MAGIC_CMD=$lt_save_MAGIC_CMD 8914 ;; 8915esac 8916fi 8917 8918MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8919if test -n "$MAGIC_CMD"; then 8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8921printf "%s\n" "$MAGIC_CMD" >&6; } 8922else 8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8924printf "%s\n" "no" >&6; } 8925fi 8926 8927 8928 else 8929 MAGIC_CMD=: 8930 fi 8931fi 8932 8933 fi 8934 ;; 8935esac 8936 8937# Use C for the default configuration in the libtool script 8938 8939lt_save_CC=$CC 8940ac_ext=c 8941ac_cpp='$CPP $CPPFLAGS' 8942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8944ac_compiler_gnu=$ac_cv_c_compiler_gnu 8945 8946 8947# Source file extension for C test sources. 8948ac_ext=c 8949 8950# Object file extension for compiled C test sources. 8951objext=o 8952objext=$objext 8953 8954# Code to be used in simple compile tests 8955lt_simple_compile_test_code="int some_variable = 0;" 8956 8957# Code to be used in simple link tests 8958lt_simple_link_test_code='int main(){return(0);}' 8959 8960 8961 8962 8963 8964 8965 8966# If no C compiler was specified, use CC. 8967LTCC=${LTCC-"$CC"} 8968 8969# If no C compiler flags were specified, use CFLAGS. 8970LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8971 8972# Allow CC to be a program name with arguments. 8973compiler=$CC 8974 8975# Save the default compiler, since it gets overwritten when the other 8976# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8977compiler_DEFAULT=$CC 8978 8979# save warnings/boilerplate of simple test code 8980ac_outfile=conftest.$ac_objext 8981echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8982eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8983_lt_compiler_boilerplate=`cat conftest.err` 8984$RM conftest* 8985 8986ac_outfile=conftest.$ac_objext 8987echo "$lt_simple_link_test_code" >conftest.$ac_ext 8988eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8989_lt_linker_boilerplate=`cat conftest.err` 8990$RM -r conftest* 8991 8992 8993if test -n "$compiler"; then 8994 8995lt_prog_compiler_no_builtin_flag= 8996 8997if test yes = "$GCC"; then 8998 case $cc_basename in 8999 nvcc*) 9000 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9001 *) 9002 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9003 esac 9004 9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9006printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9007if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9008then : 9009 printf %s "(cached) " >&6 9010else $as_nop 9011 lt_cv_prog_compiler_rtti_exceptions=no 9012 ac_outfile=conftest.$ac_objext 9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9014 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9015 # Insert the option either (1) after the last *FLAGS variable, or 9016 # (2) before a word containing "conftest.", or (3) at the end. 9017 # Note that $ac_compile itself does not contain backslashes and begins 9018 # with a dollar sign (not a hyphen), so the echo should work correctly. 9019 # The option is referenced via a variable to avoid confusing sed. 9020 lt_compile=`echo "$ac_compile" | $SED \ 9021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9023 -e 's:$: $lt_compiler_flag:'` 9024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9025 (eval "$lt_compile" 2>conftest.err) 9026 ac_status=$? 9027 cat conftest.err >&5 9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9029 if (exit $ac_status) && test -s "$ac_outfile"; then 9030 # The compiler can only warn and ignore the option if not recognized 9031 # So say no if there are warnings other than the usual output. 9032 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9035 lt_cv_prog_compiler_rtti_exceptions=yes 9036 fi 9037 fi 9038 $RM conftest* 9039 9040fi 9041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9042printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9043 9044if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9045 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9046else 9047 : 9048fi 9049 9050fi 9051 9052 9053 9054 9055 9056 9057 lt_prog_compiler_wl= 9058lt_prog_compiler_pic= 9059lt_prog_compiler_static= 9060 9061 9062 if test yes = "$GCC"; then 9063 lt_prog_compiler_wl='-Wl,' 9064 lt_prog_compiler_static='-static' 9065 9066 case $host_os in 9067 aix*) 9068 # All AIX code is PIC. 9069 if test ia64 = "$host_cpu"; then 9070 # AIX 5 now supports IA64 processor 9071 lt_prog_compiler_static='-Bstatic' 9072 fi 9073 lt_prog_compiler_pic='-fPIC' 9074 ;; 9075 9076 amigaos*) 9077 case $host_cpu in 9078 powerpc) 9079 # see comment about AmigaOS4 .so support 9080 lt_prog_compiler_pic='-fPIC' 9081 ;; 9082 m68k) 9083 # FIXME: we need at least 68020 code to build shared libraries, but 9084 # adding the '-m68020' flag to GCC prevents building anything better, 9085 # like '-m68040'. 9086 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9087 ;; 9088 esac 9089 ;; 9090 9091 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9092 # PIC is the default for these OSes. 9093 ;; 9094 9095 mingw* | cygwin* | pw32* | os2* | cegcc*) 9096 # This hack is so that the source file can tell whether it is being 9097 # built for inclusion in a dll (and should export symbols for example). 9098 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9099 # (--disable-auto-import) libraries 9100 lt_prog_compiler_pic='-DDLL_EXPORT' 9101 case $host_os in 9102 os2*) 9103 lt_prog_compiler_static='$wl-static' 9104 ;; 9105 esac 9106 ;; 9107 9108 darwin* | rhapsody*) 9109 # PIC is the default on this platform 9110 # Common symbols not allowed in MH_DYLIB files 9111 lt_prog_compiler_pic='-fno-common' 9112 ;; 9113 9114 haiku*) 9115 # PIC is the default for Haiku. 9116 # The "-static" flag exists, but is broken. 9117 lt_prog_compiler_static= 9118 ;; 9119 9120 hpux*) 9121 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9122 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9123 # sets the default TLS model and affects inlining. 9124 case $host_cpu in 9125 hppa*64*) 9126 # +Z the default 9127 ;; 9128 *) 9129 lt_prog_compiler_pic='-fPIC' 9130 ;; 9131 esac 9132 ;; 9133 9134 interix[3-9]*) 9135 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9136 # Instead, we relocate shared libraries at runtime. 9137 ;; 9138 9139 msdosdjgpp*) 9140 # Just because we use GCC doesn't mean we suddenly get shared libraries 9141 # on systems that don't support them. 9142 lt_prog_compiler_can_build_shared=no 9143 enable_shared=no 9144 ;; 9145 9146 *nto* | *qnx*) 9147 # QNX uses GNU C++, but need to define -shared option too, otherwise 9148 # it will coredump. 9149 lt_prog_compiler_pic='-fPIC -shared' 9150 ;; 9151 9152 sysv4*MP*) 9153 if test -d /usr/nec; then 9154 lt_prog_compiler_pic=-Kconform_pic 9155 fi 9156 ;; 9157 9158 *) 9159 lt_prog_compiler_pic='-fPIC' 9160 ;; 9161 esac 9162 9163 case $cc_basename in 9164 nvcc*) # Cuda Compiler Driver 2.2 9165 lt_prog_compiler_wl='-Xlinker ' 9166 if test -n "$lt_prog_compiler_pic"; then 9167 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9168 fi 9169 ;; 9170 esac 9171 else 9172 # PORTME Check for flag to pass linker flags through the system compiler. 9173 case $host_os in 9174 aix*) 9175 lt_prog_compiler_wl='-Wl,' 9176 if test ia64 = "$host_cpu"; then 9177 # AIX 5 now supports IA64 processor 9178 lt_prog_compiler_static='-Bstatic' 9179 else 9180 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9181 fi 9182 ;; 9183 9184 darwin* | rhapsody*) 9185 # PIC is the default on this platform 9186 # Common symbols not allowed in MH_DYLIB files 9187 lt_prog_compiler_pic='-fno-common' 9188 case $cc_basename in 9189 nagfor*) 9190 # NAG Fortran compiler 9191 lt_prog_compiler_wl='-Wl,-Wl,,' 9192 lt_prog_compiler_pic='-PIC' 9193 lt_prog_compiler_static='-Bstatic' 9194 ;; 9195 esac 9196 ;; 9197 9198 mingw* | cygwin* | pw32* | os2* | cegcc*) 9199 # This hack is so that the source file can tell whether it is being 9200 # built for inclusion in a dll (and should export symbols for example). 9201 lt_prog_compiler_pic='-DDLL_EXPORT' 9202 case $host_os in 9203 os2*) 9204 lt_prog_compiler_static='$wl-static' 9205 ;; 9206 esac 9207 ;; 9208 9209 hpux9* | hpux10* | hpux11*) 9210 lt_prog_compiler_wl='-Wl,' 9211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9212 # not for PA HP-UX. 9213 case $host_cpu in 9214 hppa*64*|ia64*) 9215 # +Z the default 9216 ;; 9217 *) 9218 lt_prog_compiler_pic='+Z' 9219 ;; 9220 esac 9221 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9222 lt_prog_compiler_static='$wl-a ${wl}archive' 9223 ;; 9224 9225 irix5* | irix6* | nonstopux*) 9226 lt_prog_compiler_wl='-Wl,' 9227 # PIC (with -KPIC) is the default. 9228 lt_prog_compiler_static='-non_shared' 9229 ;; 9230 9231 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9232 case $cc_basename in 9233 # old Intel for x86_64, which still supported -KPIC. 9234 ecc*) 9235 lt_prog_compiler_wl='-Wl,' 9236 lt_prog_compiler_pic='-KPIC' 9237 lt_prog_compiler_static='-static' 9238 ;; 9239 # icc used to be incompatible with GCC. 9240 # ICC 10 doesn't accept -KPIC any more. 9241 icc* | ifort*) 9242 lt_prog_compiler_wl='-Wl,' 9243 lt_prog_compiler_pic='-fPIC' 9244 lt_prog_compiler_static='-static' 9245 ;; 9246 # Lahey Fortran 8.1. 9247 lf95*) 9248 lt_prog_compiler_wl='-Wl,' 9249 lt_prog_compiler_pic='--shared' 9250 lt_prog_compiler_static='--static' 9251 ;; 9252 nagfor*) 9253 # NAG Fortran compiler 9254 lt_prog_compiler_wl='-Wl,-Wl,,' 9255 lt_prog_compiler_pic='-PIC' 9256 lt_prog_compiler_static='-Bstatic' 9257 ;; 9258 tcc*) 9259 # Fabrice Bellard et al's Tiny C Compiler 9260 lt_prog_compiler_wl='-Wl,' 9261 lt_prog_compiler_pic='-fPIC' 9262 lt_prog_compiler_static='-static' 9263 ;; 9264 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9265 # Portland Group compilers (*not* the Pentium gcc compiler, 9266 # which looks to be a dead project) 9267 lt_prog_compiler_wl='-Wl,' 9268 lt_prog_compiler_pic='-fpic' 9269 lt_prog_compiler_static='-Bstatic' 9270 ;; 9271 ccc*) 9272 lt_prog_compiler_wl='-Wl,' 9273 # All Alpha code is PIC. 9274 lt_prog_compiler_static='-non_shared' 9275 ;; 9276 xl* | bgxl* | bgf* | mpixl*) 9277 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9278 lt_prog_compiler_wl='-Wl,' 9279 lt_prog_compiler_pic='-qpic' 9280 lt_prog_compiler_static='-qstaticlink' 9281 ;; 9282 *) 9283 case `$CC -V 2>&1 | $SED 5q` in 9284 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9285 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9286 lt_prog_compiler_pic='-KPIC' 9287 lt_prog_compiler_static='-Bstatic' 9288 lt_prog_compiler_wl='' 9289 ;; 9290 *Sun\ F* | *Sun*Fortran*) 9291 lt_prog_compiler_pic='-KPIC' 9292 lt_prog_compiler_static='-Bstatic' 9293 lt_prog_compiler_wl='-Qoption ld ' 9294 ;; 9295 *Sun\ C*) 9296 # Sun C 5.9 9297 lt_prog_compiler_pic='-KPIC' 9298 lt_prog_compiler_static='-Bstatic' 9299 lt_prog_compiler_wl='-Wl,' 9300 ;; 9301 *Intel*\ [CF]*Compiler*) 9302 lt_prog_compiler_wl='-Wl,' 9303 lt_prog_compiler_pic='-fPIC' 9304 lt_prog_compiler_static='-static' 9305 ;; 9306 *Portland\ Group*) 9307 lt_prog_compiler_wl='-Wl,' 9308 lt_prog_compiler_pic='-fpic' 9309 lt_prog_compiler_static='-Bstatic' 9310 ;; 9311 esac 9312 ;; 9313 esac 9314 ;; 9315 9316 newsos6) 9317 lt_prog_compiler_pic='-KPIC' 9318 lt_prog_compiler_static='-Bstatic' 9319 ;; 9320 9321 *nto* | *qnx*) 9322 # QNX uses GNU C++, but need to define -shared option too, otherwise 9323 # it will coredump. 9324 lt_prog_compiler_pic='-fPIC -shared' 9325 ;; 9326 9327 osf3* | osf4* | osf5*) 9328 lt_prog_compiler_wl='-Wl,' 9329 # All OSF/1 code is PIC. 9330 lt_prog_compiler_static='-non_shared' 9331 ;; 9332 9333 rdos*) 9334 lt_prog_compiler_static='-non_shared' 9335 ;; 9336 9337 solaris*) 9338 lt_prog_compiler_pic='-KPIC' 9339 lt_prog_compiler_static='-Bstatic' 9340 case $cc_basename in 9341 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9342 lt_prog_compiler_wl='-Qoption ld ';; 9343 *) 9344 lt_prog_compiler_wl='-Wl,';; 9345 esac 9346 ;; 9347 9348 sunos4*) 9349 lt_prog_compiler_wl='-Qoption ld ' 9350 lt_prog_compiler_pic='-PIC' 9351 lt_prog_compiler_static='-Bstatic' 9352 ;; 9353 9354 sysv4 | sysv4.2uw2* | sysv4.3*) 9355 lt_prog_compiler_wl='-Wl,' 9356 lt_prog_compiler_pic='-KPIC' 9357 lt_prog_compiler_static='-Bstatic' 9358 ;; 9359 9360 sysv4*MP*) 9361 if test -d /usr/nec; then 9362 lt_prog_compiler_pic='-Kconform_pic' 9363 lt_prog_compiler_static='-Bstatic' 9364 fi 9365 ;; 9366 9367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9368 lt_prog_compiler_wl='-Wl,' 9369 lt_prog_compiler_pic='-KPIC' 9370 lt_prog_compiler_static='-Bstatic' 9371 ;; 9372 9373 unicos*) 9374 lt_prog_compiler_wl='-Wl,' 9375 lt_prog_compiler_can_build_shared=no 9376 ;; 9377 9378 uts4*) 9379 lt_prog_compiler_pic='-pic' 9380 lt_prog_compiler_static='-Bstatic' 9381 ;; 9382 9383 *) 9384 lt_prog_compiler_can_build_shared=no 9385 ;; 9386 esac 9387 fi 9388 9389case $host_os in 9390 # For platforms that do not support PIC, -DPIC is meaningless: 9391 *djgpp*) 9392 lt_prog_compiler_pic= 9393 ;; 9394 *) 9395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9396 ;; 9397esac 9398 9399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9400printf %s "checking for $compiler option to produce PIC... " >&6; } 9401if test ${lt_cv_prog_compiler_pic+y} 9402then : 9403 printf %s "(cached) " >&6 9404else $as_nop 9405 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9406fi 9407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9408printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9409lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9410 9411# 9412# Check to make sure the PIC flag actually works. 9413# 9414if test -n "$lt_prog_compiler_pic"; then 9415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9416printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9417if test ${lt_cv_prog_compiler_pic_works+y} 9418then : 9419 printf %s "(cached) " >&6 9420else $as_nop 9421 lt_cv_prog_compiler_pic_works=no 9422 ac_outfile=conftest.$ac_objext 9423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9424 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9425 # Insert the option either (1) after the last *FLAGS variable, or 9426 # (2) before a word containing "conftest.", or (3) at the end. 9427 # Note that $ac_compile itself does not contain backslashes and begins 9428 # with a dollar sign (not a hyphen), so the echo should work correctly. 9429 # The option is referenced via a variable to avoid confusing sed. 9430 lt_compile=`echo "$ac_compile" | $SED \ 9431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9433 -e 's:$: $lt_compiler_flag:'` 9434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9435 (eval "$lt_compile" 2>conftest.err) 9436 ac_status=$? 9437 cat conftest.err >&5 9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9439 if (exit $ac_status) && test -s "$ac_outfile"; then 9440 # The compiler can only warn and ignore the option if not recognized 9441 # So say no if there are warnings other than the usual output. 9442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9445 lt_cv_prog_compiler_pic_works=yes 9446 fi 9447 fi 9448 $RM conftest* 9449 9450fi 9451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9452printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9453 9454if test yes = "$lt_cv_prog_compiler_pic_works"; then 9455 case $lt_prog_compiler_pic in 9456 "" | " "*) ;; 9457 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9458 esac 9459else 9460 lt_prog_compiler_pic= 9461 lt_prog_compiler_can_build_shared=no 9462fi 9463 9464fi 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476# 9477# Check to make sure the static flag actually works. 9478# 9479wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9481printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9482if test ${lt_cv_prog_compiler_static_works+y} 9483then : 9484 printf %s "(cached) " >&6 9485else $as_nop 9486 lt_cv_prog_compiler_static_works=no 9487 save_LDFLAGS=$LDFLAGS 9488 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9489 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9491 # The linker can only warn and ignore the option if not recognized 9492 # So say no if there are warnings 9493 if test -s conftest.err; then 9494 # Append any errors to the config.log. 9495 cat conftest.err 1>&5 9496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9498 if diff conftest.exp conftest.er2 >/dev/null; then 9499 lt_cv_prog_compiler_static_works=yes 9500 fi 9501 else 9502 lt_cv_prog_compiler_static_works=yes 9503 fi 9504 fi 9505 $RM -r conftest* 9506 LDFLAGS=$save_LDFLAGS 9507 9508fi 9509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9510printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9511 9512if test yes = "$lt_cv_prog_compiler_static_works"; then 9513 : 9514else 9515 lt_prog_compiler_static= 9516fi 9517 9518 9519 9520 9521 9522 9523 9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9525printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9526if test ${lt_cv_prog_compiler_c_o+y} 9527then : 9528 printf %s "(cached) " >&6 9529else $as_nop 9530 lt_cv_prog_compiler_c_o=no 9531 $RM -r conftest 2>/dev/null 9532 mkdir conftest 9533 cd conftest 9534 mkdir out 9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9536 9537 lt_compiler_flag="-o out/conftest2.$ac_objext" 9538 # Insert the option either (1) after the last *FLAGS variable, or 9539 # (2) before a word containing "conftest.", or (3) at the end. 9540 # Note that $ac_compile itself does not contain backslashes and begins 9541 # with a dollar sign (not a hyphen), so the echo should work correctly. 9542 lt_compile=`echo "$ac_compile" | $SED \ 9543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9545 -e 's:$: $lt_compiler_flag:'` 9546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9547 (eval "$lt_compile" 2>out/conftest.err) 9548 ac_status=$? 9549 cat out/conftest.err >&5 9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9551 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9552 then 9553 # The compiler can only warn and ignore the option if not recognized 9554 # So say no if there are warnings 9555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9558 lt_cv_prog_compiler_c_o=yes 9559 fi 9560 fi 9561 chmod u+w . 2>&5 9562 $RM conftest* 9563 # SGI C++ compiler will create directory out/ii_files/ for 9564 # template instantiation 9565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9566 $RM out/* && rmdir out 9567 cd .. 9568 $RM -r conftest 9569 $RM conftest* 9570 9571fi 9572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9573printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9574 9575 9576 9577 9578 9579 9580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9581printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9582if test ${lt_cv_prog_compiler_c_o+y} 9583then : 9584 printf %s "(cached) " >&6 9585else $as_nop 9586 lt_cv_prog_compiler_c_o=no 9587 $RM -r conftest 2>/dev/null 9588 mkdir conftest 9589 cd conftest 9590 mkdir out 9591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9592 9593 lt_compiler_flag="-o out/conftest2.$ac_objext" 9594 # Insert the option either (1) after the last *FLAGS variable, or 9595 # (2) before a word containing "conftest.", or (3) at the end. 9596 # Note that $ac_compile itself does not contain backslashes and begins 9597 # with a dollar sign (not a hyphen), so the echo should work correctly. 9598 lt_compile=`echo "$ac_compile" | $SED \ 9599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9601 -e 's:$: $lt_compiler_flag:'` 9602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9603 (eval "$lt_compile" 2>out/conftest.err) 9604 ac_status=$? 9605 cat out/conftest.err >&5 9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9607 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9608 then 9609 # The compiler can only warn and ignore the option if not recognized 9610 # So say no if there are warnings 9611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9614 lt_cv_prog_compiler_c_o=yes 9615 fi 9616 fi 9617 chmod u+w . 2>&5 9618 $RM conftest* 9619 # SGI C++ compiler will create directory out/ii_files/ for 9620 # template instantiation 9621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9622 $RM out/* && rmdir out 9623 cd .. 9624 $RM -r conftest 9625 $RM conftest* 9626 9627fi 9628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9629printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9630 9631 9632 9633 9634hard_links=nottested 9635if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9636 # do not overwrite the value of need_locks provided by the user 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9638printf %s "checking if we can lock with hard links... " >&6; } 9639 hard_links=yes 9640 $RM conftest* 9641 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9642 touch conftest.a 9643 ln conftest.a conftest.b 2>&5 || hard_links=no 9644 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9646printf "%s\n" "$hard_links" >&6; } 9647 if test no = "$hard_links"; then 9648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9649printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9650 need_locks=warn 9651 fi 9652else 9653 need_locks=no 9654fi 9655 9656 9657 9658 9659 9660 9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9662printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9663 9664 runpath_var= 9665 allow_undefined_flag= 9666 always_export_symbols=no 9667 archive_cmds= 9668 archive_expsym_cmds= 9669 compiler_needs_object=no 9670 enable_shared_with_static_runtimes=no 9671 export_dynamic_flag_spec= 9672 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9673 hardcode_automatic=no 9674 hardcode_direct=no 9675 hardcode_direct_absolute=no 9676 hardcode_libdir_flag_spec= 9677 hardcode_libdir_separator= 9678 hardcode_minus_L=no 9679 hardcode_shlibpath_var=unsupported 9680 inherit_rpath=no 9681 link_all_deplibs=unknown 9682 module_cmds= 9683 module_expsym_cmds= 9684 old_archive_from_new_cmds= 9685 old_archive_from_expsyms_cmds= 9686 thread_safe_flag_spec= 9687 whole_archive_flag_spec= 9688 # include_expsyms should be a list of space-separated symbols to be *always* 9689 # included in the symbol list 9690 include_expsyms= 9691 # exclude_expsyms can be an extended regexp of symbols to exclude 9692 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9693 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9694 # as well as any symbol that contains 'd'. 9695 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9696 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9697 # platforms (ab)use it in PIC code, but their linkers get confused if 9698 # the symbol is explicitly referenced. Since portable code cannot 9699 # rely on this symbol name, it's probably fine to never include it in 9700 # preloaded symbol tables. 9701 # Exclude shared library initialization/finalization symbols. 9702 extract_expsyms_cmds= 9703 9704 case $host_os in 9705 cygwin* | mingw* | pw32* | cegcc*) 9706 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9707 # When not using gcc, we currently assume that we are using 9708 # Microsoft Visual C++ or Intel C++ Compiler. 9709 if test yes != "$GCC"; then 9710 with_gnu_ld=no 9711 fi 9712 ;; 9713 interix*) 9714 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9715 with_gnu_ld=yes 9716 ;; 9717 openbsd* | bitrig*) 9718 with_gnu_ld=no 9719 ;; 9720 esac 9721 9722 ld_shlibs=yes 9723 9724 # On some targets, GNU ld is compatible enough with the native linker 9725 # that we're better off using the native interface for both. 9726 lt_use_gnu_ld_interface=no 9727 if test yes = "$with_gnu_ld"; then 9728 case $host_os in 9729 aix*) 9730 # The AIX port of GNU ld has always aspired to compatibility 9731 # with the native linker. However, as the warning in the GNU ld 9732 # block says, versions before 2.19.5* couldn't really create working 9733 # shared libraries, regardless of the interface used. 9734 case `$LD -v 2>&1` in 9735 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9736 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9737 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9738 *) 9739 lt_use_gnu_ld_interface=yes 9740 ;; 9741 esac 9742 ;; 9743 *) 9744 lt_use_gnu_ld_interface=yes 9745 ;; 9746 esac 9747 fi 9748 9749 if test yes = "$lt_use_gnu_ld_interface"; then 9750 # If archive_cmds runs LD, not CC, wlarc should be empty 9751 wlarc='$wl' 9752 9753 # Set some defaults for GNU ld with shared library support. These 9754 # are reset later if shared libraries are not supported. Putting them 9755 # here allows them to be overridden if necessary. 9756 runpath_var=LD_RUN_PATH 9757 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9758 export_dynamic_flag_spec='$wl--export-dynamic' 9759 # ancient GNU ld didn't support --whole-archive et. al. 9760 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9761 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9762 else 9763 whole_archive_flag_spec= 9764 fi 9765 supports_anon_versioning=no 9766 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9767 *GNU\ gold*) supports_anon_versioning=yes ;; 9768 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9769 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9770 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9771 *\ 2.11.*) ;; # other 2.11 versions 9772 *) supports_anon_versioning=yes ;; 9773 esac 9774 9775 # See if GNU ld supports shared libraries. 9776 case $host_os in 9777 aix[3-9]*) 9778 # On AIX/PPC, the GNU linker is very broken 9779 if test ia64 != "$host_cpu"; then 9780 ld_shlibs=no 9781 cat <<_LT_EOF 1>&2 9782 9783*** Warning: the GNU linker, at least up to release 2.19, is reported 9784*** to be unable to reliably create shared libraries on AIX. 9785*** Therefore, libtool is disabling shared libraries support. If you 9786*** really care for shared libraries, you may want to install binutils 9787*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9788*** You will then need to restart the configuration process. 9789 9790_LT_EOF 9791 fi 9792 ;; 9793 9794 amigaos*) 9795 case $host_cpu in 9796 powerpc) 9797 # see comment about AmigaOS4 .so support 9798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9799 archive_expsym_cmds='' 9800 ;; 9801 m68k) 9802 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)' 9803 hardcode_libdir_flag_spec='-L$libdir' 9804 hardcode_minus_L=yes 9805 ;; 9806 esac 9807 ;; 9808 9809 beos*) 9810 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9811 allow_undefined_flag=unsupported 9812 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9813 # support --undefined. This deserves some investigation. FIXME 9814 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9815 else 9816 ld_shlibs=no 9817 fi 9818 ;; 9819 9820 cygwin* | mingw* | pw32* | cegcc*) 9821 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9822 # as there is no search path for DLLs. 9823 hardcode_libdir_flag_spec='-L$libdir' 9824 export_dynamic_flag_spec='$wl--export-all-symbols' 9825 allow_undefined_flag=unsupported 9826 always_export_symbols=no 9827 enable_shared_with_static_runtimes=yes 9828 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' 9829 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9830 9831 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9833 # If the export-symbols file already is a .def file, use it as 9834 # is; otherwise, prepend EXPORTS... 9835 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9836 cp $export_symbols $output_objdir/$soname.def; 9837 else 9838 echo EXPORTS > $output_objdir/$soname.def; 9839 cat $export_symbols >> $output_objdir/$soname.def; 9840 fi~ 9841 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9842 else 9843 ld_shlibs=no 9844 fi 9845 ;; 9846 9847 haiku*) 9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9849 link_all_deplibs=yes 9850 ;; 9851 9852 os2*) 9853 hardcode_libdir_flag_spec='-L$libdir' 9854 hardcode_minus_L=yes 9855 allow_undefined_flag=unsupported 9856 shrext_cmds=.dll 9857 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9858 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9859 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9860 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9861 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9862 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9863 emximp -o $lib $output_objdir/$libname.def' 9864 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9865 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9866 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9867 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9868 prefix_cmds="$SED"~ 9869 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9870 prefix_cmds="$prefix_cmds -e 1d"; 9871 fi~ 9872 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9873 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9874 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9875 emximp -o $lib $output_objdir/$libname.def' 9876 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9877 enable_shared_with_static_runtimes=yes 9878 file_list_spec='@' 9879 ;; 9880 9881 interix[3-9]*) 9882 hardcode_direct=no 9883 hardcode_shlibpath_var=no 9884 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9885 export_dynamic_flag_spec='$wl-E' 9886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9887 # Instead, shared libraries are loaded at an image base (0x10000000 by 9888 # default) and relocated if they conflict, which is a slow very memory 9889 # consuming and fragmenting process. To avoid this, we pick a random, 9890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9891 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9893 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' 9894 ;; 9895 9896 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9897 tmp_diet=no 9898 if test linux-dietlibc = "$host_os"; then 9899 case $cc_basename in 9900 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9901 esac 9902 fi 9903 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9904 && test no = "$tmp_diet" 9905 then 9906 tmp_addflag=' $pic_flag' 9907 tmp_sharedflag='-shared' 9908 case $cc_basename,$host_cpu in 9909 pgcc*) # Portland Group C compiler 9910 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' 9911 tmp_addflag=' $pic_flag' 9912 ;; 9913 pgf77* | pgf90* | pgf95* | pgfortran*) 9914 # Portland Group f77 and f90 compilers 9915 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' 9916 tmp_addflag=' $pic_flag -Mnomain' ;; 9917 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9918 tmp_addflag=' -i_dynamic' ;; 9919 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9920 tmp_addflag=' -i_dynamic -nofor_main' ;; 9921 ifc* | ifort*) # Intel Fortran compiler 9922 tmp_addflag=' -nofor_main' ;; 9923 lf95*) # Lahey Fortran 8.1 9924 whole_archive_flag_spec= 9925 tmp_sharedflag='--shared' ;; 9926 nagfor*) # NAGFOR 5.3 9927 tmp_sharedflag='-Wl,-shared' ;; 9928 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9929 tmp_sharedflag='-qmkshrobj' 9930 tmp_addflag= ;; 9931 nvcc*) # Cuda Compiler Driver 2.2 9932 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' 9933 compiler_needs_object=yes 9934 ;; 9935 esac 9936 case `$CC -V 2>&1 | $SED 5q` in 9937 *Sun\ C*) # Sun C 5.9 9938 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' 9939 compiler_needs_object=yes 9940 tmp_sharedflag='-G' ;; 9941 *Sun\ F*) # Sun Fortran 8.3 9942 tmp_sharedflag='-G' ;; 9943 esac 9944 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9945 9946 if test yes = "$supports_anon_versioning"; then 9947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9948 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9949 echo "local: *; };" >> $output_objdir/$libname.ver~ 9950 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9951 fi 9952 9953 case $cc_basename in 9954 tcc*) 9955 export_dynamic_flag_spec='-rdynamic' 9956 ;; 9957 xlf* | bgf* | bgxlf* | mpixlf*) 9958 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9959 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9960 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9961 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9962 if test yes = "$supports_anon_versioning"; then 9963 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9964 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9965 echo "local: *; };" >> $output_objdir/$libname.ver~ 9966 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9967 fi 9968 ;; 9969 esac 9970 else 9971 ld_shlibs=no 9972 fi 9973 ;; 9974 9975 netbsd*) 9976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9978 wlarc= 9979 else 9980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9981 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9982 fi 9983 ;; 9984 9985 solaris*) 9986 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9987 ld_shlibs=no 9988 cat <<_LT_EOF 1>&2 9989 9990*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9991*** create shared libraries on Solaris systems. Therefore, libtool 9992*** is disabling shared libraries support. We urge you to upgrade GNU 9993*** binutils to release 2.9.1 or newer. Another option is to modify 9994*** your PATH or compiler configuration so that the native linker is 9995*** used, and then restart. 9996 9997_LT_EOF 9998 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10001 else 10002 ld_shlibs=no 10003 fi 10004 ;; 10005 10006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10007 case `$LD -v 2>&1` in 10008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10009 ld_shlibs=no 10010 cat <<_LT_EOF 1>&2 10011 10012*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10013*** reliably create shared libraries on SCO systems. Therefore, libtool 10014*** is disabling shared libraries support. We urge you to upgrade GNU 10015*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10016*** your PATH or compiler configuration so that the native linker is 10017*** used, and then restart. 10018 10019_LT_EOF 10020 ;; 10021 *) 10022 # For security reasons, it is highly recommended that you always 10023 # use absolute paths for naming shared libraries, and exclude the 10024 # DT_RUNPATH tag from executables and libraries. But doing so 10025 # requires that you compile everything twice, which is a pain. 10026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10027 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10030 else 10031 ld_shlibs=no 10032 fi 10033 ;; 10034 esac 10035 ;; 10036 10037 sunos4*) 10038 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10039 wlarc= 10040 hardcode_direct=yes 10041 hardcode_shlibpath_var=no 10042 ;; 10043 10044 *) 10045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10047 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10048 else 10049 ld_shlibs=no 10050 fi 10051 ;; 10052 esac 10053 10054 if test no = "$ld_shlibs"; then 10055 runpath_var= 10056 hardcode_libdir_flag_spec= 10057 export_dynamic_flag_spec= 10058 whole_archive_flag_spec= 10059 fi 10060 else 10061 # PORTME fill in a description of your system's linker (not GNU ld) 10062 case $host_os in 10063 aix3*) 10064 allow_undefined_flag=unsupported 10065 always_export_symbols=yes 10066 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' 10067 # Note: this linker hardcodes the directories in LIBPATH if there 10068 # are no directories specified by -L. 10069 hardcode_minus_L=yes 10070 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10071 # Neither direct hardcoding nor static linking is supported with a 10072 # broken collect2. 10073 hardcode_direct=unsupported 10074 fi 10075 ;; 10076 10077 aix[4-9]*) 10078 if test ia64 = "$host_cpu"; then 10079 # On IA64, the linker does run time linking by default, so we don't 10080 # have to do anything special. 10081 aix_use_runtimelinking=no 10082 exp_sym_flag='-Bexport' 10083 no_entry_flag= 10084 else 10085 # If we're using GNU nm, then we don't want the "-C" option. 10086 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10087 # Without the "-l" option, or with the "-B" option, AIX nm treats 10088 # weak defined symbols like other global defined symbols, whereas 10089 # GNU nm marks them as "W". 10090 # While the 'weak' keyword is ignored in the Export File, we need 10091 # it in the Import File for the 'aix-soname' feature, so we have 10092 # to replace the "-B" option with "-P" for AIX nm. 10093 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10094 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' 10095 else 10096 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' 10097 fi 10098 aix_use_runtimelinking=no 10099 10100 # Test if we are trying to use run time linking or normal 10101 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10102 # have runtime linking enabled, and use it for executables. 10103 # For shared libraries, we enable/disable runtime linking 10104 # depending on the kind of the shared library created - 10105 # when "with_aix_soname,aix_use_runtimelinking" is: 10106 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10107 # "aix,yes" lib.so shared, rtl:yes, for executables 10108 # lib.a static archive 10109 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10110 # lib.a(lib.so.V) shared, rtl:no, for executables 10111 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10112 # lib.a(lib.so.V) shared, rtl:no 10113 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10114 # lib.a static archive 10115 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10116 for ld_flag in $LDFLAGS; do 10117 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10118 aix_use_runtimelinking=yes 10119 break 10120 fi 10121 done 10122 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10123 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10124 # so we don't have lib.a shared libs to link our executables. 10125 # We have to force runtime linking in this case. 10126 aix_use_runtimelinking=yes 10127 LDFLAGS="$LDFLAGS -Wl,-brtl" 10128 fi 10129 ;; 10130 esac 10131 10132 exp_sym_flag='-bexport' 10133 no_entry_flag='-bnoentry' 10134 fi 10135 10136 # When large executables or shared objects are built, AIX ld can 10137 # have problems creating the table of contents. If linking a library 10138 # or program results in "error TOC overflow" add -mminimal-toc to 10139 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10140 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10141 10142 archive_cmds='' 10143 hardcode_direct=yes 10144 hardcode_direct_absolute=yes 10145 hardcode_libdir_separator=':' 10146 link_all_deplibs=yes 10147 file_list_spec='$wl-f,' 10148 case $with_aix_soname,$aix_use_runtimelinking in 10149 aix,*) ;; # traditional, no import file 10150 svr4,* | *,yes) # use import file 10151 # The Import File defines what to hardcode. 10152 hardcode_direct=no 10153 hardcode_direct_absolute=no 10154 ;; 10155 esac 10156 10157 if test yes = "$GCC"; then 10158 case $host_os in aix4.[012]|aix4.[012].*) 10159 # We only want to do this on AIX 4.2 and lower, the check 10160 # below for broken collect2 doesn't work under 4.3+ 10161 collect2name=`$CC -print-prog-name=collect2` 10162 if test -f "$collect2name" && 10163 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10164 then 10165 # We have reworked collect2 10166 : 10167 else 10168 # We have old collect2 10169 hardcode_direct=unsupported 10170 # It fails to find uninstalled libraries when the uninstalled 10171 # path is not listed in the libpath. Setting hardcode_minus_L 10172 # to unsupported forces relinking 10173 hardcode_minus_L=yes 10174 hardcode_libdir_flag_spec='-L$libdir' 10175 hardcode_libdir_separator= 10176 fi 10177 ;; 10178 esac 10179 shared_flag='-shared' 10180 if test yes = "$aix_use_runtimelinking"; then 10181 shared_flag="$shared_flag "'$wl-G' 10182 fi 10183 # Need to ensure runtime linking is disabled for the traditional 10184 # shared library, or the linker may eventually find shared libraries 10185 # /with/ Import File - we do not want to mix them. 10186 shared_flag_aix='-shared' 10187 shared_flag_svr4='-shared $wl-G' 10188 else 10189 # not using gcc 10190 if test ia64 = "$host_cpu"; then 10191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10192 # chokes on -Wl,-G. The following line is correct: 10193 shared_flag='-G' 10194 else 10195 if test yes = "$aix_use_runtimelinking"; then 10196 shared_flag='$wl-G' 10197 else 10198 shared_flag='$wl-bM:SRE' 10199 fi 10200 shared_flag_aix='$wl-bM:SRE' 10201 shared_flag_svr4='$wl-G' 10202 fi 10203 fi 10204 10205 export_dynamic_flag_spec='$wl-bexpall' 10206 # It seems that -bexpall does not export symbols beginning with 10207 # underscore (_), so it is better to generate a list of symbols to export. 10208 always_export_symbols=yes 10209 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10210 # Warning - without using the other runtime loading flags (-brtl), 10211 # -berok will link without error, but may produce a broken library. 10212 allow_undefined_flag='-berok' 10213 # Determine the default libpath from the value encoded in an 10214 # empty executable. 10215 if test set = "${lt_cv_aix_libpath+set}"; then 10216 aix_libpath=$lt_cv_aix_libpath 10217else 10218 if test ${lt_cv_aix_libpath_+y} 10219then : 10220 printf %s "(cached) " >&6 10221else $as_nop 10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223/* end confdefs.h. */ 10224 10225int 10226main (void) 10227{ 10228 10229 ; 10230 return 0; 10231} 10232_ACEOF 10233if ac_fn_c_try_link "$LINENO" 10234then : 10235 10236 lt_aix_libpath_sed=' 10237 /Import File Strings/,/^$/ { 10238 /^0/ { 10239 s/^0 *\([^ ]*\) *$/\1/ 10240 p 10241 } 10242 }' 10243 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10244 # Check for a 64-bit object if we didn't find anything. 10245 if test -z "$lt_cv_aix_libpath_"; then 10246 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10247 fi 10248fi 10249rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10250 conftest$ac_exeext conftest.$ac_ext 10251 if test -z "$lt_cv_aix_libpath_"; then 10252 lt_cv_aix_libpath_=/usr/lib:/lib 10253 fi 10254 10255fi 10256 10257 aix_libpath=$lt_cv_aix_libpath_ 10258fi 10259 10260 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10261 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 10262 else 10263 if test ia64 = "$host_cpu"; then 10264 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10265 allow_undefined_flag="-z nodefs" 10266 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" 10267 else 10268 # Determine the default libpath from the value encoded in an 10269 # empty executable. 10270 if test set = "${lt_cv_aix_libpath+set}"; then 10271 aix_libpath=$lt_cv_aix_libpath 10272else 10273 if test ${lt_cv_aix_libpath_+y} 10274then : 10275 printf %s "(cached) " >&6 10276else $as_nop 10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10278/* end confdefs.h. */ 10279 10280int 10281main (void) 10282{ 10283 10284 ; 10285 return 0; 10286} 10287_ACEOF 10288if ac_fn_c_try_link "$LINENO" 10289then : 10290 10291 lt_aix_libpath_sed=' 10292 /Import File Strings/,/^$/ { 10293 /^0/ { 10294 s/^0 *\([^ ]*\) *$/\1/ 10295 p 10296 } 10297 }' 10298 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10299 # Check for a 64-bit object if we didn't find anything. 10300 if test -z "$lt_cv_aix_libpath_"; then 10301 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10302 fi 10303fi 10304rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10305 conftest$ac_exeext conftest.$ac_ext 10306 if test -z "$lt_cv_aix_libpath_"; then 10307 lt_cv_aix_libpath_=/usr/lib:/lib 10308 fi 10309 10310fi 10311 10312 aix_libpath=$lt_cv_aix_libpath_ 10313fi 10314 10315 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10316 # Warning - without using the other run time loading flags, 10317 # -berok will link without error, but may produce a broken library. 10318 no_undefined_flag=' $wl-bernotok' 10319 allow_undefined_flag=' $wl-berok' 10320 if test yes = "$with_gnu_ld"; then 10321 # We only use this code for GNU lds that support --whole-archive. 10322 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10323 else 10324 # Exported symbols can be pulled into shared objects from archives 10325 whole_archive_flag_spec='$convenience' 10326 fi 10327 archive_cmds_need_lc=yes 10328 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10329 # -brtl affects multiple linker settings, -berok does not and is overridden later 10330 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10331 if test svr4 != "$with_aix_soname"; then 10332 # This is similar to how AIX traditionally builds its shared libraries. 10333 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' 10334 fi 10335 if test aix != "$with_aix_soname"; then 10336 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' 10337 else 10338 # used by -dlpreopen to get the symbols 10339 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10340 fi 10341 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10342 fi 10343 fi 10344 ;; 10345 10346 amigaos*) 10347 case $host_cpu in 10348 powerpc) 10349 # see comment about AmigaOS4 .so support 10350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10351 archive_expsym_cmds='' 10352 ;; 10353 m68k) 10354 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)' 10355 hardcode_libdir_flag_spec='-L$libdir' 10356 hardcode_minus_L=yes 10357 ;; 10358 esac 10359 ;; 10360 10361 bsdi[45]*) 10362 export_dynamic_flag_spec=-rdynamic 10363 ;; 10364 10365 cygwin* | mingw* | pw32* | cegcc*) 10366 # When not using gcc, we currently assume that we are using 10367 # Microsoft Visual C++ or Intel C++ Compiler. 10368 # hardcode_libdir_flag_spec is actually meaningless, as there is 10369 # no search path for DLLs. 10370 case $cc_basename in 10371 cl* | icl*) 10372 # Native MSVC or ICC 10373 hardcode_libdir_flag_spec=' ' 10374 allow_undefined_flag=unsupported 10375 always_export_symbols=yes 10376 file_list_spec='@' 10377 # Tell ltmain to make .lib files, not .a files. 10378 libext=lib 10379 # Tell ltmain to make .dll files, not .so files. 10380 shrext_cmds=.dll 10381 # FIXME: Setting linknames here is a bad hack. 10382 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10383 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10384 cp "$export_symbols" "$output_objdir/$soname.def"; 10385 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10386 else 10387 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10388 fi~ 10389 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10390 linknames=' 10391 # The linker will not automatically build a static lib if we build a DLL. 10392 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10393 enable_shared_with_static_runtimes=yes 10394 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10395 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10396 # Don't use ranlib 10397 old_postinstall_cmds='chmod 644 $oldlib' 10398 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10399 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10400 case $lt_outputfile in 10401 *.exe|*.EXE) ;; 10402 *) 10403 lt_outputfile=$lt_outputfile.exe 10404 lt_tool_outputfile=$lt_tool_outputfile.exe 10405 ;; 10406 esac~ 10407 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10408 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10409 $RM "$lt_outputfile.manifest"; 10410 fi' 10411 ;; 10412 *) 10413 # Assume MSVC and ICC wrapper 10414 hardcode_libdir_flag_spec=' ' 10415 allow_undefined_flag=unsupported 10416 # Tell ltmain to make .lib files, not .a files. 10417 libext=lib 10418 # Tell ltmain to make .dll files, not .so files. 10419 shrext_cmds=.dll 10420 # FIXME: Setting linknames here is a bad hack. 10421 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10422 # The linker will automatically build a .lib file if we build a DLL. 10423 old_archive_from_new_cmds='true' 10424 # FIXME: Should let the user specify the lib program. 10425 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10426 enable_shared_with_static_runtimes=yes 10427 ;; 10428 esac 10429 ;; 10430 10431 darwin* | rhapsody*) 10432 10433 10434 archive_cmds_need_lc=no 10435 hardcode_direct=no 10436 hardcode_automatic=yes 10437 hardcode_shlibpath_var=unsupported 10438 if test yes = "$lt_cv_ld_force_load"; then 10439 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\"`' 10440 10441 else 10442 whole_archive_flag_spec='' 10443 fi 10444 link_all_deplibs=yes 10445 allow_undefined_flag=$_lt_dar_allow_undefined 10446 case $cc_basename in 10447 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10448 *) _lt_dar_can_shared=$GCC ;; 10449 esac 10450 if test yes = "$_lt_dar_can_shared"; then 10451 output_verbose_link_cmd=func_echo_all 10452 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10453 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10454 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" 10455 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" 10456 10457 else 10458 ld_shlibs=no 10459 fi 10460 10461 ;; 10462 10463 dgux*) 10464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10465 hardcode_libdir_flag_spec='-L$libdir' 10466 hardcode_shlibpath_var=no 10467 ;; 10468 10469 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10470 # support. Future versions do this automatically, but an explicit c++rt0.o 10471 # does not break anything, and helps significantly (at the cost of a little 10472 # extra space). 10473 freebsd2.2*) 10474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10475 hardcode_libdir_flag_spec='-R$libdir' 10476 hardcode_direct=yes 10477 hardcode_shlibpath_var=no 10478 ;; 10479 10480 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10481 freebsd2.*) 10482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10483 hardcode_direct=yes 10484 hardcode_minus_L=yes 10485 hardcode_shlibpath_var=no 10486 ;; 10487 10488 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10489 freebsd* | dragonfly* | midnightbsd*) 10490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10491 hardcode_libdir_flag_spec='-R$libdir' 10492 hardcode_direct=yes 10493 hardcode_shlibpath_var=no 10494 ;; 10495 10496 hpux9*) 10497 if test yes = "$GCC"; then 10498 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' 10499 else 10500 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' 10501 fi 10502 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10503 hardcode_libdir_separator=: 10504 hardcode_direct=yes 10505 10506 # hardcode_minus_L: Not really in the search PATH, 10507 # but as the default location of the library. 10508 hardcode_minus_L=yes 10509 export_dynamic_flag_spec='$wl-E' 10510 ;; 10511 10512 hpux10*) 10513 if test yes,no = "$GCC,$with_gnu_ld"; then 10514 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10515 else 10516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10517 fi 10518 if test no = "$with_gnu_ld"; then 10519 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10520 hardcode_libdir_separator=: 10521 hardcode_direct=yes 10522 hardcode_direct_absolute=yes 10523 export_dynamic_flag_spec='$wl-E' 10524 # hardcode_minus_L: Not really in the search PATH, 10525 # but as the default location of the library. 10526 hardcode_minus_L=yes 10527 fi 10528 ;; 10529 10530 hpux11*) 10531 if test yes,no = "$GCC,$with_gnu_ld"; then 10532 case $host_cpu in 10533 hppa*64*) 10534 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10535 ;; 10536 ia64*) 10537 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10538 ;; 10539 *) 10540 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10541 ;; 10542 esac 10543 else 10544 case $host_cpu in 10545 hppa*64*) 10546 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10547 ;; 10548 ia64*) 10549 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10550 ;; 10551 *) 10552 10553 # Older versions of the 11.00 compiler do not understand -b yet 10554 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10556printf %s "checking if $CC understands -b... " >&6; } 10557if test ${lt_cv_prog_compiler__b+y} 10558then : 10559 printf %s "(cached) " >&6 10560else $as_nop 10561 lt_cv_prog_compiler__b=no 10562 save_LDFLAGS=$LDFLAGS 10563 LDFLAGS="$LDFLAGS -b" 10564 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10566 # The linker can only warn and ignore the option if not recognized 10567 # So say no if there are warnings 10568 if test -s conftest.err; then 10569 # Append any errors to the config.log. 10570 cat conftest.err 1>&5 10571 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10573 if diff conftest.exp conftest.er2 >/dev/null; then 10574 lt_cv_prog_compiler__b=yes 10575 fi 10576 else 10577 lt_cv_prog_compiler__b=yes 10578 fi 10579 fi 10580 $RM -r conftest* 10581 LDFLAGS=$save_LDFLAGS 10582 10583fi 10584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10585printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10586 10587if test yes = "$lt_cv_prog_compiler__b"; then 10588 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10589else 10590 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10591fi 10592 10593 ;; 10594 esac 10595 fi 10596 if test no = "$with_gnu_ld"; then 10597 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10598 hardcode_libdir_separator=: 10599 10600 case $host_cpu in 10601 hppa*64*|ia64*) 10602 hardcode_direct=no 10603 hardcode_shlibpath_var=no 10604 ;; 10605 *) 10606 hardcode_direct=yes 10607 hardcode_direct_absolute=yes 10608 export_dynamic_flag_spec='$wl-E' 10609 10610 # hardcode_minus_L: Not really in the search PATH, 10611 # but as the default location of the library. 10612 hardcode_minus_L=yes 10613 ;; 10614 esac 10615 fi 10616 ;; 10617 10618 irix5* | irix6* | nonstopux*) 10619 if test yes = "$GCC"; then 10620 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' 10621 # Try to use the -exported_symbol ld option, if it does not 10622 # work, assume that -exports_file does not work either and 10623 # implicitly export all symbols. 10624 # This should be the same for all languages, so no per-tag cache variable. 10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10626printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10627if test ${lt_cv_irix_exported_symbol+y} 10628then : 10629 printf %s "(cached) " >&6 10630else $as_nop 10631 save_LDFLAGS=$LDFLAGS 10632 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635int foo (void) { return 0; } 10636_ACEOF 10637if ac_fn_c_try_link "$LINENO" 10638then : 10639 lt_cv_irix_exported_symbol=yes 10640else $as_nop 10641 lt_cv_irix_exported_symbol=no 10642fi 10643rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10644 conftest$ac_exeext conftest.$ac_ext 10645 LDFLAGS=$save_LDFLAGS 10646fi 10647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10648printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10649 if test yes = "$lt_cv_irix_exported_symbol"; then 10650 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' 10651 fi 10652 else 10653 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' 10654 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' 10655 fi 10656 archive_cmds_need_lc='no' 10657 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10658 hardcode_libdir_separator=: 10659 inherit_rpath=yes 10660 link_all_deplibs=yes 10661 ;; 10662 10663 linux*) 10664 case $cc_basename in 10665 tcc*) 10666 # Fabrice Bellard et al's Tiny C Compiler 10667 ld_shlibs=yes 10668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10669 ;; 10670 esac 10671 ;; 10672 10673 netbsd*) 10674 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10676 else 10677 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10678 fi 10679 hardcode_libdir_flag_spec='-R$libdir' 10680 hardcode_direct=yes 10681 hardcode_shlibpath_var=no 10682 ;; 10683 10684 newsos6) 10685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10686 hardcode_direct=yes 10687 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10688 hardcode_libdir_separator=: 10689 hardcode_shlibpath_var=no 10690 ;; 10691 10692 *nto* | *qnx*) 10693 ;; 10694 10695 openbsd* | bitrig*) 10696 if test -f /usr/libexec/ld.so; then 10697 hardcode_direct=yes 10698 hardcode_shlibpath_var=no 10699 hardcode_direct_absolute=yes 10700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10701 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10702 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10703 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10704 export_dynamic_flag_spec='$wl-E' 10705 else 10706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10707 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10708 fi 10709 else 10710 ld_shlibs=no 10711 fi 10712 ;; 10713 10714 os2*) 10715 hardcode_libdir_flag_spec='-L$libdir' 10716 hardcode_minus_L=yes 10717 allow_undefined_flag=unsupported 10718 shrext_cmds=.dll 10719 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10720 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10721 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10722 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10723 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10724 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10725 emximp -o $lib $output_objdir/$libname.def' 10726 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10727 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10728 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10729 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10730 prefix_cmds="$SED"~ 10731 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10732 prefix_cmds="$prefix_cmds -e 1d"; 10733 fi~ 10734 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10735 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10736 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10737 emximp -o $lib $output_objdir/$libname.def' 10738 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10739 enable_shared_with_static_runtimes=yes 10740 file_list_spec='@' 10741 ;; 10742 10743 osf3*) 10744 if test yes = "$GCC"; then 10745 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10746 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' 10747 else 10748 allow_undefined_flag=' -expect_unresolved \*' 10749 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' 10750 fi 10751 archive_cmds_need_lc='no' 10752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10753 hardcode_libdir_separator=: 10754 ;; 10755 10756 osf4* | osf5*) # as osf3* with the addition of -msym flag 10757 if test yes = "$GCC"; then 10758 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10759 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' 10760 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10761 else 10762 allow_undefined_flag=' -expect_unresolved \*' 10763 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' 10764 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~ 10765 $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' 10766 10767 # Both c and cxx compiler support -rpath directly 10768 hardcode_libdir_flag_spec='-rpath $libdir' 10769 fi 10770 archive_cmds_need_lc='no' 10771 hardcode_libdir_separator=: 10772 ;; 10773 10774 solaris*) 10775 no_undefined_flag=' -z defs' 10776 if test yes = "$GCC"; then 10777 wlarc='$wl' 10778 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10779 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10780 $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' 10781 else 10782 case `$CC -V 2>&1` in 10783 *"Compilers 5.0"*) 10784 wlarc='' 10785 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10787 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10788 ;; 10789 *) 10790 wlarc='$wl' 10791 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10793 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10794 ;; 10795 esac 10796 fi 10797 hardcode_libdir_flag_spec='-R$libdir' 10798 hardcode_shlibpath_var=no 10799 case $host_os in 10800 solaris2.[0-5] | solaris2.[0-5].*) ;; 10801 *) 10802 # The compiler driver will combine and reorder linker options, 10803 # but understands '-z linker_flag'. GCC discards it without '$wl', 10804 # but is careful enough not to reorder. 10805 # Supported since Solaris 2.6 (maybe 2.5.1?) 10806 if test yes = "$GCC"; then 10807 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10808 else 10809 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10810 fi 10811 ;; 10812 esac 10813 link_all_deplibs=yes 10814 ;; 10815 10816 sunos4*) 10817 if test sequent = "$host_vendor"; then 10818 # Use $CC to link under sequent, because it throws in some extra .o 10819 # files that make .init and .fini sections work. 10820 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10821 else 10822 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10823 fi 10824 hardcode_libdir_flag_spec='-L$libdir' 10825 hardcode_direct=yes 10826 hardcode_minus_L=yes 10827 hardcode_shlibpath_var=no 10828 ;; 10829 10830 sysv4) 10831 case $host_vendor in 10832 sni) 10833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10834 hardcode_direct=yes # is this really true??? 10835 ;; 10836 siemens) 10837 ## LD is ld it makes a PLAMLIB 10838 ## CC just makes a GrossModule. 10839 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10840 reload_cmds='$CC -r -o $output$reload_objs' 10841 hardcode_direct=no 10842 ;; 10843 motorola) 10844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10845 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10846 ;; 10847 esac 10848 runpath_var='LD_RUN_PATH' 10849 hardcode_shlibpath_var=no 10850 ;; 10851 10852 sysv4.3*) 10853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10854 hardcode_shlibpath_var=no 10855 export_dynamic_flag_spec='-Bexport' 10856 ;; 10857 10858 sysv4*MP*) 10859 if test -d /usr/nec; then 10860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10861 hardcode_shlibpath_var=no 10862 runpath_var=LD_RUN_PATH 10863 hardcode_runpath_var=yes 10864 ld_shlibs=yes 10865 fi 10866 ;; 10867 10868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10869 no_undefined_flag='$wl-z,text' 10870 archive_cmds_need_lc=no 10871 hardcode_shlibpath_var=no 10872 runpath_var='LD_RUN_PATH' 10873 10874 if test yes = "$GCC"; then 10875 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10876 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10877 else 10878 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10879 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10880 fi 10881 ;; 10882 10883 sysv5* | sco3.2v5* | sco5v6*) 10884 # Note: We CANNOT use -z defs as we might desire, because we do not 10885 # link with -lc, and that would cause any symbols used from libc to 10886 # always be unresolved, which means just about no library would 10887 # ever link correctly. If we're not using GNU ld we use -z text 10888 # though, which does catch some bad symbols but isn't as heavy-handed 10889 # as -z defs. 10890 no_undefined_flag='$wl-z,text' 10891 allow_undefined_flag='$wl-z,nodefs' 10892 archive_cmds_need_lc=no 10893 hardcode_shlibpath_var=no 10894 hardcode_libdir_flag_spec='$wl-R,$libdir' 10895 hardcode_libdir_separator=':' 10896 link_all_deplibs=yes 10897 export_dynamic_flag_spec='$wl-Bexport' 10898 runpath_var='LD_RUN_PATH' 10899 10900 if test yes = "$GCC"; then 10901 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10902 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10903 else 10904 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10905 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10906 fi 10907 ;; 10908 10909 uts4*) 10910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10911 hardcode_libdir_flag_spec='-L$libdir' 10912 hardcode_shlibpath_var=no 10913 ;; 10914 10915 *) 10916 ld_shlibs=no 10917 ;; 10918 esac 10919 10920 if test sni = "$host_vendor"; then 10921 case $host in 10922 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10923 export_dynamic_flag_spec='$wl-Blargedynsym' 10924 ;; 10925 esac 10926 fi 10927 fi 10928 10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10930printf "%s\n" "$ld_shlibs" >&6; } 10931test no = "$ld_shlibs" && can_build_shared=no 10932 10933with_gnu_ld=$with_gnu_ld 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949# 10950# Do we need to explicitly link libc? 10951# 10952case "x$archive_cmds_need_lc" in 10953x|xyes) 10954 # Assume -lc should be added 10955 archive_cmds_need_lc=yes 10956 10957 if test yes,yes = "$GCC,$enable_shared"; then 10958 case $archive_cmds in 10959 *'~'*) 10960 # FIXME: we may have to deal with multi-command sequences. 10961 ;; 10962 '$CC '*) 10963 # Test whether the compiler implicitly links with -lc since on some 10964 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10965 # to ld, don't add -lc before -lgcc. 10966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10967printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10968if test ${lt_cv_archive_cmds_need_lc+y} 10969then : 10970 printf %s "(cached) " >&6 10971else $as_nop 10972 $RM conftest* 10973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10974 10975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10976 (eval $ac_compile) 2>&5 10977 ac_status=$? 10978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10979 test $ac_status = 0; } 2>conftest.err; then 10980 soname=conftest 10981 lib=conftest 10982 libobjs=conftest.$ac_objext 10983 deplibs= 10984 wl=$lt_prog_compiler_wl 10985 pic_flag=$lt_prog_compiler_pic 10986 compiler_flags=-v 10987 linker_flags=-v 10988 verstring= 10989 output_objdir=. 10990 libname=conftest 10991 lt_save_allow_undefined_flag=$allow_undefined_flag 10992 allow_undefined_flag= 10993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10994 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10995 ac_status=$? 10996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10997 test $ac_status = 0; } 10998 then 10999 lt_cv_archive_cmds_need_lc=no 11000 else 11001 lt_cv_archive_cmds_need_lc=yes 11002 fi 11003 allow_undefined_flag=$lt_save_allow_undefined_flag 11004 else 11005 cat conftest.err 1>&5 11006 fi 11007 $RM conftest* 11008 11009fi 11010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11011printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11012 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11013 ;; 11014 esac 11015 fi 11016 ;; 11017esac 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 11165 11166 11167 11168 11169 11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11171printf %s "checking dynamic linker characteristics... " >&6; } 11172 11173if test yes = "$GCC"; then 11174 case $host_os in 11175 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11176 *) lt_awk_arg='/^libraries:/' ;; 11177 esac 11178 case $host_os in 11179 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11180 *) lt_sed_strip_eq='s|=/|/|g' ;; 11181 esac 11182 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11183 case $lt_search_path_spec in 11184 *\;*) 11185 # if the path contains ";" then we assume it to be the separator 11186 # otherwise default to the standard path separator (i.e. ":") - it is 11187 # assumed that no part of a normal pathname contains ";" but that should 11188 # okay in the real world where ";" in dirpaths is itself problematic. 11189 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11190 ;; 11191 *) 11192 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11193 ;; 11194 esac 11195 # Ok, now we have the path, separated by spaces, we can step through it 11196 # and add multilib dir if necessary... 11197 lt_tmp_lt_search_path_spec= 11198 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11199 # ...but if some path component already ends with the multilib dir we assume 11200 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11201 case "$lt_multi_os_dir; $lt_search_path_spec " in 11202 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11203 lt_multi_os_dir= 11204 ;; 11205 esac 11206 for lt_sys_path in $lt_search_path_spec; do 11207 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11209 elif test -n "$lt_multi_os_dir"; then 11210 test -d "$lt_sys_path" && \ 11211 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11212 fi 11213 done 11214 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11215BEGIN {RS = " "; FS = "/|\n";} { 11216 lt_foo = ""; 11217 lt_count = 0; 11218 for (lt_i = NF; lt_i > 0; lt_i--) { 11219 if ($lt_i != "" && $lt_i != ".") { 11220 if ($lt_i == "..") { 11221 lt_count++; 11222 } else { 11223 if (lt_count == 0) { 11224 lt_foo = "/" $lt_i lt_foo; 11225 } else { 11226 lt_count--; 11227 } 11228 } 11229 } 11230 } 11231 if (lt_foo != "") { lt_freq[lt_foo]++; } 11232 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11233}'` 11234 # AWK program above erroneously prepends '/' to C:/dos/paths 11235 # for these hosts. 11236 case $host_os in 11237 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11238 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11239 esac 11240 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11241else 11242 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11243fi 11244library_names_spec= 11245libname_spec='lib$name' 11246soname_spec= 11247shrext_cmds=.so 11248postinstall_cmds= 11249postuninstall_cmds= 11250finish_cmds= 11251finish_eval= 11252shlibpath_var= 11253shlibpath_overrides_runpath=unknown 11254version_type=none 11255dynamic_linker="$host_os ld.so" 11256sys_lib_dlsearch_path_spec="/lib /usr/lib" 11257need_lib_prefix=unknown 11258hardcode_into_libs=no 11259 11260# when you set need_version to no, make sure it does not cause -set_version 11261# flags to be left without arguments 11262need_version=unknown 11263 11264 11265 11266case $host_os in 11267aix3*) 11268 version_type=linux # correct to gnu/linux during the next big refactor 11269 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11270 shlibpath_var=LIBPATH 11271 11272 # AIX 3 has no versioning support, so we append a major version to the name. 11273 soname_spec='$libname$release$shared_ext$major' 11274 ;; 11275 11276aix[4-9]*) 11277 version_type=linux # correct to gnu/linux during the next big refactor 11278 need_lib_prefix=no 11279 need_version=no 11280 hardcode_into_libs=yes 11281 if test ia64 = "$host_cpu"; then 11282 # AIX 5 supports IA64 11283 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11284 shlibpath_var=LD_LIBRARY_PATH 11285 else 11286 # With GCC up to 2.95.x, collect2 would create an import file 11287 # for dependence libraries. The import file would start with 11288 # the line '#! .'. This would cause the generated library to 11289 # depend on '.', always an invalid library. This was fixed in 11290 # development snapshots of GCC prior to 3.0. 11291 case $host_os in 11292 aix4 | aix4.[01] | aix4.[01].*) 11293 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11294 echo ' yes ' 11295 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11296 : 11297 else 11298 can_build_shared=no 11299 fi 11300 ;; 11301 esac 11302 # Using Import Files as archive members, it is possible to support 11303 # filename-based versioning of shared library archives on AIX. While 11304 # this would work for both with and without runtime linking, it will 11305 # prevent static linking of such archives. So we do filename-based 11306 # shared library versioning with .so extension only, which is used 11307 # when both runtime linking and shared linking is enabled. 11308 # Unfortunately, runtime linking may impact performance, so we do 11309 # not want this to be the default eventually. Also, we use the 11310 # versioned .so libs for executables only if there is the -brtl 11311 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11312 # To allow for filename-based versioning support, we need to create 11313 # libNAME.so.V as an archive file, containing: 11314 # *) an Import File, referring to the versioned filename of the 11315 # archive as well as the shared archive member, telling the 11316 # bitwidth (32 or 64) of that shared object, and providing the 11317 # list of exported symbols of that shared object, eventually 11318 # decorated with the 'weak' keyword 11319 # *) the shared object with the F_LOADONLY flag set, to really avoid 11320 # it being seen by the linker. 11321 # At run time we better use the real file rather than another symlink, 11322 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11323 11324 case $with_aix_soname,$aix_use_runtimelinking in 11325 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11326 # soname into executable. Probably we can add versioning support to 11327 # collect2, so additional links can be useful in future. 11328 aix,yes) # traditional libtool 11329 dynamic_linker='AIX unversionable lib.so' 11330 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11331 # instead of lib<name>.a to let people know that these are not 11332 # typical AIX shared libraries. 11333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11334 ;; 11335 aix,no) # traditional AIX only 11336 dynamic_linker='AIX lib.a(lib.so.V)' 11337 # We preserve .a as extension for shared libraries through AIX4.2 11338 # and later when we are not doing run time linking. 11339 library_names_spec='$libname$release.a $libname.a' 11340 soname_spec='$libname$release$shared_ext$major' 11341 ;; 11342 svr4,*) # full svr4 only 11343 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11344 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11345 # We do not specify a path in Import Files, so LIBPATH fires. 11346 shlibpath_overrides_runpath=yes 11347 ;; 11348 *,yes) # both, prefer svr4 11349 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11350 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11351 # unpreferred sharedlib libNAME.a needs extra handling 11352 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"' 11353 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"' 11354 # We do not specify a path in Import Files, so LIBPATH fires. 11355 shlibpath_overrides_runpath=yes 11356 ;; 11357 *,no) # both, prefer aix 11358 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11359 library_names_spec='$libname$release.a $libname.a' 11360 soname_spec='$libname$release$shared_ext$major' 11361 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11362 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)' 11363 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"' 11364 ;; 11365 esac 11366 shlibpath_var=LIBPATH 11367 fi 11368 ;; 11369 11370amigaos*) 11371 case $host_cpu in 11372 powerpc) 11373 # Since July 2007 AmigaOS4 officially supports .so libraries. 11374 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11376 ;; 11377 m68k) 11378 library_names_spec='$libname.ixlibrary $libname.a' 11379 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11380 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' 11381 ;; 11382 esac 11383 ;; 11384 11385beos*) 11386 library_names_spec='$libname$shared_ext' 11387 dynamic_linker="$host_os ld.so" 11388 shlibpath_var=LIBRARY_PATH 11389 ;; 11390 11391bsdi[45]*) 11392 version_type=linux # correct to gnu/linux during the next big refactor 11393 need_version=no 11394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11395 soname_spec='$libname$release$shared_ext$major' 11396 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11397 shlibpath_var=LD_LIBRARY_PATH 11398 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11399 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11400 # the default ld.so.conf also contains /usr/contrib/lib and 11401 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11402 # libtool to hard-code these into programs 11403 ;; 11404 11405cygwin* | mingw* | pw32* | cegcc*) 11406 version_type=windows 11407 shrext_cmds=.dll 11408 need_version=no 11409 need_lib_prefix=no 11410 11411 case $GCC,$cc_basename in 11412 yes,*) 11413 # gcc 11414 library_names_spec='$libname.dll.a' 11415 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11416 postinstall_cmds='base_file=`basename \$file`~ 11417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11418 dldir=$destdir/`dirname \$dlpath`~ 11419 test -d \$dldir || mkdir -p \$dldir~ 11420 $install_prog $dir/$dlname \$dldir/$dlname~ 11421 chmod a+x \$dldir/$dlname~ 11422 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11423 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11424 fi' 11425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11426 dlpath=$dir/\$dldll~ 11427 $RM \$dlpath' 11428 shlibpath_overrides_runpath=yes 11429 11430 case $host_os in 11431 cygwin*) 11432 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11433 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11434 11435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11436 ;; 11437 mingw* | cegcc*) 11438 # MinGW DLLs use traditional 'lib' prefix 11439 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11440 ;; 11441 pw32*) 11442 # pw32 DLLs use 'pw' prefix rather than 'lib' 11443 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11444 ;; 11445 esac 11446 dynamic_linker='Win32 ld.exe' 11447 ;; 11448 11449 *,cl* | *,icl*) 11450 # Native MSVC or ICC 11451 libname_spec='$name' 11452 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11453 library_names_spec='$libname.dll.lib' 11454 11455 case $build_os in 11456 mingw*) 11457 sys_lib_search_path_spec= 11458 lt_save_ifs=$IFS 11459 IFS=';' 11460 for lt_path in $LIB 11461 do 11462 IFS=$lt_save_ifs 11463 # Let DOS variable expansion print the short 8.3 style file name. 11464 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11465 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11466 done 11467 IFS=$lt_save_ifs 11468 # Convert to MSYS style. 11469 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11470 ;; 11471 cygwin*) 11472 # Convert to unix form, then to dos form, then back to unix form 11473 # but this time dos style (no spaces!) so that the unix form looks 11474 # like /cygdrive/c/PROGRA~1:/cygdr... 11475 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11476 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11477 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11478 ;; 11479 *) 11480 sys_lib_search_path_spec=$LIB 11481 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11482 # It is most probably a Windows format PATH. 11483 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11484 else 11485 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11486 fi 11487 # FIXME: find the short name or the path components, as spaces are 11488 # common. (e.g. "Program Files" -> "PROGRA~1") 11489 ;; 11490 esac 11491 11492 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11493 postinstall_cmds='base_file=`basename \$file`~ 11494 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11495 dldir=$destdir/`dirname \$dlpath`~ 11496 test -d \$dldir || mkdir -p \$dldir~ 11497 $install_prog $dir/$dlname \$dldir/$dlname' 11498 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11499 dlpath=$dir/\$dldll~ 11500 $RM \$dlpath' 11501 shlibpath_overrides_runpath=yes 11502 dynamic_linker='Win32 link.exe' 11503 ;; 11504 11505 *) 11506 # Assume MSVC and ICC wrapper 11507 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11508 dynamic_linker='Win32 ld.exe' 11509 ;; 11510 esac 11511 # FIXME: first we should search . and the directory the executable is in 11512 shlibpath_var=PATH 11513 ;; 11514 11515darwin* | rhapsody*) 11516 dynamic_linker="$host_os dyld" 11517 version_type=darwin 11518 need_lib_prefix=no 11519 need_version=no 11520 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 11521 soname_spec='$libname$release$major$shared_ext' 11522 shlibpath_overrides_runpath=yes 11523 shlibpath_var=DYLD_LIBRARY_PATH 11524 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 11525 11526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11528 ;; 11529 11530dgux*) 11531 version_type=linux # correct to gnu/linux during the next big refactor 11532 need_lib_prefix=no 11533 need_version=no 11534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11535 soname_spec='$libname$release$shared_ext$major' 11536 shlibpath_var=LD_LIBRARY_PATH 11537 ;; 11538 11539freebsd* | dragonfly* | midnightbsd*) 11540 # DragonFly does not have aout. When/if they implement a new 11541 # versioning mechanism, adjust this. 11542 if test -x /usr/bin/objformat; then 11543 objformat=`/usr/bin/objformat` 11544 else 11545 case $host_os in 11546 freebsd[23].*) objformat=aout ;; 11547 *) objformat=elf ;; 11548 esac 11549 fi 11550 # Handle Gentoo/FreeBSD as it was Linux 11551 case $host_vendor in 11552 gentoo) 11553 version_type=linux ;; 11554 *) 11555 version_type=freebsd-$objformat ;; 11556 esac 11557 11558 case $version_type in 11559 freebsd-elf*) 11560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11561 soname_spec='$libname$release$shared_ext$major' 11562 need_version=no 11563 need_lib_prefix=no 11564 ;; 11565 freebsd-*) 11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11567 need_version=yes 11568 ;; 11569 linux) 11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11571 soname_spec='${libname}${release}${shared_ext}$major' 11572 need_lib_prefix=no 11573 need_version=no 11574 ;; 11575 esac 11576 shlibpath_var=LD_LIBRARY_PATH 11577 case $host_os in 11578 freebsd2.*) 11579 shlibpath_overrides_runpath=yes 11580 ;; 11581 freebsd3.[01]* | freebsdelf3.[01]*) 11582 shlibpath_overrides_runpath=yes 11583 hardcode_into_libs=yes 11584 ;; 11585 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11586 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11587 shlibpath_overrides_runpath=no 11588 hardcode_into_libs=yes 11589 ;; 11590 *) # from 4.6 on, and DragonFly 11591 shlibpath_overrides_runpath=yes 11592 hardcode_into_libs=yes 11593 ;; 11594 esac 11595 ;; 11596 11597haiku*) 11598 version_type=linux # correct to gnu/linux during the next big refactor 11599 need_lib_prefix=no 11600 need_version=no 11601 dynamic_linker="$host_os runtime_loader" 11602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11603 soname_spec='$libname$release$shared_ext$major' 11604 shlibpath_var=LIBRARY_PATH 11605 shlibpath_overrides_runpath=no 11606 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11607 hardcode_into_libs=yes 11608 ;; 11609 11610hpux9* | hpux10* | hpux11*) 11611 # Give a soname corresponding to the major version so that dld.sl refuses to 11612 # link against other versions. 11613 version_type=sunos 11614 need_lib_prefix=no 11615 need_version=no 11616 case $host_cpu in 11617 ia64*) 11618 shrext_cmds='.so' 11619 hardcode_into_libs=yes 11620 dynamic_linker="$host_os dld.so" 11621 shlibpath_var=LD_LIBRARY_PATH 11622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11624 soname_spec='$libname$release$shared_ext$major' 11625 if test 32 = "$HPUX_IA64_MODE"; then 11626 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11627 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11628 else 11629 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11630 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11631 fi 11632 ;; 11633 hppa*64*) 11634 shrext_cmds='.sl' 11635 hardcode_into_libs=yes 11636 dynamic_linker="$host_os dld.sl" 11637 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11640 soname_spec='$libname$release$shared_ext$major' 11641 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11643 ;; 11644 *) 11645 shrext_cmds='.sl' 11646 dynamic_linker="$host_os dld.sl" 11647 shlibpath_var=SHLIB_PATH 11648 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11650 soname_spec='$libname$release$shared_ext$major' 11651 ;; 11652 esac 11653 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11654 postinstall_cmds='chmod 555 $lib' 11655 # or fails outright, so override atomically: 11656 install_override_mode=555 11657 ;; 11658 11659interix[3-9]*) 11660 version_type=linux # correct to gnu/linux during the next big refactor 11661 need_lib_prefix=no 11662 need_version=no 11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11664 soname_spec='$libname$release$shared_ext$major' 11665 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11666 shlibpath_var=LD_LIBRARY_PATH 11667 shlibpath_overrides_runpath=no 11668 hardcode_into_libs=yes 11669 ;; 11670 11671irix5* | irix6* | nonstopux*) 11672 case $host_os in 11673 nonstopux*) version_type=nonstopux ;; 11674 *) 11675 if test yes = "$lt_cv_prog_gnu_ld"; then 11676 version_type=linux # correct to gnu/linux during the next big refactor 11677 else 11678 version_type=irix 11679 fi ;; 11680 esac 11681 need_lib_prefix=no 11682 need_version=no 11683 soname_spec='$libname$release$shared_ext$major' 11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11685 case $host_os in 11686 irix5* | nonstopux*) 11687 libsuff= shlibsuff= 11688 ;; 11689 *) 11690 case $LD in # libtool.m4 will add one of these switches to LD 11691 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11692 libsuff= shlibsuff= libmagic=32-bit;; 11693 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11694 libsuff=32 shlibsuff=N32 libmagic=N32;; 11695 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11696 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11697 *) libsuff= shlibsuff= libmagic=never-match;; 11698 esac 11699 ;; 11700 esac 11701 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11702 shlibpath_overrides_runpath=no 11703 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11704 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11705 hardcode_into_libs=yes 11706 ;; 11707 11708# No shared lib support for Linux oldld, aout, or coff. 11709linux*oldld* | linux*aout* | linux*coff*) 11710 dynamic_linker=no 11711 ;; 11712 11713linux*android*) 11714 version_type=none # Android doesn't support versioned libraries. 11715 need_lib_prefix=no 11716 need_version=no 11717 library_names_spec='$libname$release$shared_ext' 11718 soname_spec='$libname$release$shared_ext' 11719 finish_cmds= 11720 shlibpath_var=LD_LIBRARY_PATH 11721 shlibpath_overrides_runpath=yes 11722 11723 # This implies no fast_install, which is unacceptable. 11724 # Some rework will be needed to allow for fast_install 11725 # before this can be enabled. 11726 hardcode_into_libs=yes 11727 11728 dynamic_linker='Android linker' 11729 # Don't embed -rpath directories since the linker doesn't support them. 11730 hardcode_libdir_flag_spec='-L$libdir' 11731 ;; 11732 11733# This must be glibc/ELF. 11734linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11735 version_type=linux # correct to gnu/linux during the next big refactor 11736 need_lib_prefix=no 11737 need_version=no 11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11739 soname_spec='$libname$release$shared_ext$major' 11740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11741 shlibpath_var=LD_LIBRARY_PATH 11742 shlibpath_overrides_runpath=no 11743 11744 # Some binutils ld are patched to set DT_RUNPATH 11745 if test ${lt_cv_shlibpath_overrides_runpath+y} 11746then : 11747 printf %s "(cached) " >&6 11748else $as_nop 11749 lt_cv_shlibpath_overrides_runpath=no 11750 save_LDFLAGS=$LDFLAGS 11751 save_libdir=$libdir 11752 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11753 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11755/* end confdefs.h. */ 11756 11757int 11758main (void) 11759{ 11760 11761 ; 11762 return 0; 11763} 11764_ACEOF 11765if ac_fn_c_try_link "$LINENO" 11766then : 11767 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11768then : 11769 lt_cv_shlibpath_overrides_runpath=yes 11770fi 11771fi 11772rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11773 conftest$ac_exeext conftest.$ac_ext 11774 LDFLAGS=$save_LDFLAGS 11775 libdir=$save_libdir 11776 11777fi 11778 11779 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11780 11781 # This implies no fast_install, which is unacceptable. 11782 # Some rework will be needed to allow for fast_install 11783 # before this can be enabled. 11784 hardcode_into_libs=yes 11785 11786 # Ideally, we could use ldconfig to report *all* directores which are 11787 # searched for libraries, however this is still not possible. Aside from not 11788 # being certain /sbin/ldconfig is available, command 11789 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11790 # even though it is searched at run-time. Try to do the best guess by 11791 # appending ld.so.conf contents (and includes) to the search path. 11792 if test -f /etc/ld.so.conf; then 11793 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' ' '` 11794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11795 fi 11796 11797 # We used to test for /lib/ld.so.1 and disable shared libraries on 11798 # powerpc, because MkLinux only supported shared libraries with the 11799 # GNU dynamic linker. Since this was broken with cross compilers, 11800 # most powerpc-linux boxes support dynamic linking these days and 11801 # people can always --disable-shared, the test was removed, and we 11802 # assume the GNU/Linux dynamic linker is in use. 11803 dynamic_linker='GNU/Linux ld.so' 11804 ;; 11805 11806netbsd*) 11807 version_type=sunos 11808 need_lib_prefix=no 11809 need_version=no 11810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11813 dynamic_linker='NetBSD (a.out) ld.so' 11814 else 11815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11816 soname_spec='$libname$release$shared_ext$major' 11817 dynamic_linker='NetBSD ld.elf_so' 11818 fi 11819 shlibpath_var=LD_LIBRARY_PATH 11820 shlibpath_overrides_runpath=yes 11821 hardcode_into_libs=yes 11822 ;; 11823 11824newsos6) 11825 version_type=linux # correct to gnu/linux during the next big refactor 11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11827 shlibpath_var=LD_LIBRARY_PATH 11828 shlibpath_overrides_runpath=yes 11829 ;; 11830 11831*nto* | *qnx*) 11832 version_type=qnx 11833 need_lib_prefix=no 11834 need_version=no 11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11836 soname_spec='$libname$release$shared_ext$major' 11837 shlibpath_var=LD_LIBRARY_PATH 11838 shlibpath_overrides_runpath=no 11839 hardcode_into_libs=yes 11840 dynamic_linker='ldqnx.so' 11841 ;; 11842 11843openbsd* | bitrig*) 11844 version_type=sunos 11845 sys_lib_dlsearch_path_spec=/usr/lib 11846 need_lib_prefix=no 11847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11848 need_version=no 11849 else 11850 need_version=yes 11851 fi 11852 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11854 shlibpath_var=LD_LIBRARY_PATH 11855 shlibpath_overrides_runpath=yes 11856 ;; 11857 11858os2*) 11859 libname_spec='$name' 11860 version_type=windows 11861 shrext_cmds=.dll 11862 need_version=no 11863 need_lib_prefix=no 11864 # OS/2 can only load a DLL with a base name of 8 characters or less. 11865 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11866 v=$($ECHO $release$versuffix | tr -d .-); 11867 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11868 $ECHO $n$v`$shared_ext' 11869 library_names_spec='${libname}_dll.$libext' 11870 dynamic_linker='OS/2 ld.exe' 11871 shlibpath_var=BEGINLIBPATH 11872 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11874 postinstall_cmds='base_file=`basename \$file`~ 11875 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11876 dldir=$destdir/`dirname \$dlpath`~ 11877 test -d \$dldir || mkdir -p \$dldir~ 11878 $install_prog $dir/$dlname \$dldir/$dlname~ 11879 chmod a+x \$dldir/$dlname~ 11880 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11881 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11882 fi' 11883 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11884 dlpath=$dir/\$dldll~ 11885 $RM \$dlpath' 11886 ;; 11887 11888osf3* | osf4* | osf5*) 11889 version_type=osf 11890 need_lib_prefix=no 11891 need_version=no 11892 soname_spec='$libname$release$shared_ext$major' 11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11894 shlibpath_var=LD_LIBRARY_PATH 11895 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11897 ;; 11898 11899rdos*) 11900 dynamic_linker=no 11901 ;; 11902 11903solaris*) 11904 version_type=linux # correct to gnu/linux during the next big refactor 11905 need_lib_prefix=no 11906 need_version=no 11907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11908 soname_spec='$libname$release$shared_ext$major' 11909 shlibpath_var=LD_LIBRARY_PATH 11910 shlibpath_overrides_runpath=yes 11911 hardcode_into_libs=yes 11912 # ldd complains unless libraries are executable 11913 postinstall_cmds='chmod +x $lib' 11914 ;; 11915 11916sunos4*) 11917 version_type=sunos 11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11919 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11920 shlibpath_var=LD_LIBRARY_PATH 11921 shlibpath_overrides_runpath=yes 11922 if test yes = "$with_gnu_ld"; then 11923 need_lib_prefix=no 11924 fi 11925 need_version=yes 11926 ;; 11927 11928sysv4 | sysv4.3*) 11929 version_type=linux # correct to gnu/linux during the next big refactor 11930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11931 soname_spec='$libname$release$shared_ext$major' 11932 shlibpath_var=LD_LIBRARY_PATH 11933 case $host_vendor in 11934 sni) 11935 shlibpath_overrides_runpath=no 11936 need_lib_prefix=no 11937 runpath_var=LD_RUN_PATH 11938 ;; 11939 siemens) 11940 need_lib_prefix=no 11941 ;; 11942 motorola) 11943 need_lib_prefix=no 11944 need_version=no 11945 shlibpath_overrides_runpath=no 11946 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11947 ;; 11948 esac 11949 ;; 11950 11951sysv4*MP*) 11952 if test -d /usr/nec; then 11953 version_type=linux # correct to gnu/linux during the next big refactor 11954 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11955 soname_spec='$libname$shared_ext.$major' 11956 shlibpath_var=LD_LIBRARY_PATH 11957 fi 11958 ;; 11959 11960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11961 version_type=sco 11962 need_lib_prefix=no 11963 need_version=no 11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11965 soname_spec='$libname$release$shared_ext$major' 11966 shlibpath_var=LD_LIBRARY_PATH 11967 shlibpath_overrides_runpath=yes 11968 hardcode_into_libs=yes 11969 if test yes = "$with_gnu_ld"; then 11970 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11971 else 11972 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11973 case $host_os in 11974 sco3.2v5*) 11975 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11976 ;; 11977 esac 11978 fi 11979 sys_lib_dlsearch_path_spec='/usr/lib' 11980 ;; 11981 11982tpf*) 11983 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11984 version_type=linux # correct to gnu/linux during the next big refactor 11985 need_lib_prefix=no 11986 need_version=no 11987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11988 shlibpath_var=LD_LIBRARY_PATH 11989 shlibpath_overrides_runpath=no 11990 hardcode_into_libs=yes 11991 ;; 11992 11993uts4*) 11994 version_type=linux # correct to gnu/linux during the next big refactor 11995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11996 soname_spec='$libname$release$shared_ext$major' 11997 shlibpath_var=LD_LIBRARY_PATH 11998 ;; 11999 12000*) 12001 dynamic_linker=no 12002 ;; 12003esac 12004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12005printf "%s\n" "$dynamic_linker" >&6; } 12006test no = "$dynamic_linker" && can_build_shared=no 12007 12008variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12009if test yes = "$GCC"; then 12010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12011fi 12012 12013if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12014 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12015fi 12016 12017if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12018 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12019fi 12020 12021# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12022configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12023 12024# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12025func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12026 12027# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12028configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12127printf %s "checking how to hardcode library paths into programs... " >&6; } 12128hardcode_action= 12129if test -n "$hardcode_libdir_flag_spec" || 12130 test -n "$runpath_var" || 12131 test yes = "$hardcode_automatic"; then 12132 12133 # We can hardcode non-existent directories. 12134 if test no != "$hardcode_direct" && 12135 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12136 # have to relink, otherwise we might link with an installed library 12137 # when we should be linking with a yet-to-be-installed one 12138 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12139 test no != "$hardcode_minus_L"; then 12140 # Linking always hardcodes the temporary library directory. 12141 hardcode_action=relink 12142 else 12143 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12144 hardcode_action=immediate 12145 fi 12146else 12147 # We cannot hardcode anything, or else we can only hardcode existing 12148 # directories. 12149 hardcode_action=unsupported 12150fi 12151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12152printf "%s\n" "$hardcode_action" >&6; } 12153 12154if test relink = "$hardcode_action" || 12155 test yes = "$inherit_rpath"; then 12156 # Fast installation is not supported 12157 enable_fast_install=no 12158elif test yes = "$shlibpath_overrides_runpath" || 12159 test no = "$enable_shared"; then 12160 # Fast installation is not necessary 12161 enable_fast_install=needless 12162fi 12163 12164 12165 12166 12167 12168 12169 if test yes != "$enable_dlopen"; then 12170 enable_dlopen=unknown 12171 enable_dlopen_self=unknown 12172 enable_dlopen_self_static=unknown 12173else 12174 lt_cv_dlopen=no 12175 lt_cv_dlopen_libs= 12176 12177 case $host_os in 12178 beos*) 12179 lt_cv_dlopen=load_add_on 12180 lt_cv_dlopen_libs= 12181 lt_cv_dlopen_self=yes 12182 ;; 12183 12184 mingw* | pw32* | cegcc*) 12185 lt_cv_dlopen=LoadLibrary 12186 lt_cv_dlopen_libs= 12187 ;; 12188 12189 cygwin*) 12190 lt_cv_dlopen=dlopen 12191 lt_cv_dlopen_libs= 12192 ;; 12193 12194 darwin*) 12195 # if libdl is installed we need to link against it 12196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12197printf %s "checking for dlopen in -ldl... " >&6; } 12198if test ${ac_cv_lib_dl_dlopen+y} 12199then : 12200 printf %s "(cached) " >&6 12201else $as_nop 12202 ac_check_lib_save_LIBS=$LIBS 12203LIBS="-ldl $LIBS" 12204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205/* end confdefs.h. */ 12206 12207/* Override any GCC internal prototype to avoid an error. 12208 Use char because int might match the return type of a GCC 12209 builtin and then its argument prototype would still apply. 12210 The 'extern "C"' is for builds by C++ compilers; 12211 although this is not generally supported in C code supporting it here 12212 has little cost and some practical benefit (sr 110532). */ 12213#ifdef __cplusplus 12214extern "C" 12215#endif 12216char dlopen (void); 12217int 12218main (void) 12219{ 12220return dlopen (); 12221 ; 12222 return 0; 12223} 12224_ACEOF 12225if ac_fn_c_try_link "$LINENO" 12226then : 12227 ac_cv_lib_dl_dlopen=yes 12228else $as_nop 12229 ac_cv_lib_dl_dlopen=no 12230fi 12231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12232 conftest$ac_exeext conftest.$ac_ext 12233LIBS=$ac_check_lib_save_LIBS 12234fi 12235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12236printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12237if test "x$ac_cv_lib_dl_dlopen" = xyes 12238then : 12239 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12240else $as_nop 12241 12242 lt_cv_dlopen=dyld 12243 lt_cv_dlopen_libs= 12244 lt_cv_dlopen_self=yes 12245 12246fi 12247 12248 ;; 12249 12250 tpf*) 12251 # Don't try to run any link tests for TPF. We know it's impossible 12252 # because TPF is a cross-compiler, and we know how we open DSOs. 12253 lt_cv_dlopen=dlopen 12254 lt_cv_dlopen_libs= 12255 lt_cv_dlopen_self=no 12256 ;; 12257 12258 *) 12259 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12260if test "x$ac_cv_func_shl_load" = xyes 12261then : 12262 lt_cv_dlopen=shl_load 12263else $as_nop 12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12265printf %s "checking for shl_load in -ldld... " >&6; } 12266if test ${ac_cv_lib_dld_shl_load+y} 12267then : 12268 printf %s "(cached) " >&6 12269else $as_nop 12270 ac_check_lib_save_LIBS=$LIBS 12271LIBS="-ldld $LIBS" 12272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12273/* end confdefs.h. */ 12274 12275/* Override any GCC internal prototype to avoid an error. 12276 Use char because int might match the return type of a GCC 12277 builtin and then its argument prototype would still apply. 12278 The 'extern "C"' is for builds by C++ compilers; 12279 although this is not generally supported in C code supporting it here 12280 has little cost and some practical benefit (sr 110532). */ 12281#ifdef __cplusplus 12282extern "C" 12283#endif 12284char shl_load (void); 12285int 12286main (void) 12287{ 12288return shl_load (); 12289 ; 12290 return 0; 12291} 12292_ACEOF 12293if ac_fn_c_try_link "$LINENO" 12294then : 12295 ac_cv_lib_dld_shl_load=yes 12296else $as_nop 12297 ac_cv_lib_dld_shl_load=no 12298fi 12299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12300 conftest$ac_exeext conftest.$ac_ext 12301LIBS=$ac_check_lib_save_LIBS 12302fi 12303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12304printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12305if test "x$ac_cv_lib_dld_shl_load" = xyes 12306then : 12307 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12308else $as_nop 12309 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12310if test "x$ac_cv_func_dlopen" = xyes 12311then : 12312 lt_cv_dlopen=dlopen 12313else $as_nop 12314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12315printf %s "checking for dlopen in -ldl... " >&6; } 12316if test ${ac_cv_lib_dl_dlopen+y} 12317then : 12318 printf %s "(cached) " >&6 12319else $as_nop 12320 ac_check_lib_save_LIBS=$LIBS 12321LIBS="-ldl $LIBS" 12322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12323/* end confdefs.h. */ 12324 12325/* Override any GCC internal prototype to avoid an error. 12326 Use char because int might match the return type of a GCC 12327 builtin and then its argument prototype would still apply. 12328 The 'extern "C"' is for builds by C++ compilers; 12329 although this is not generally supported in C code supporting it here 12330 has little cost and some practical benefit (sr 110532). */ 12331#ifdef __cplusplus 12332extern "C" 12333#endif 12334char dlopen (void); 12335int 12336main (void) 12337{ 12338return dlopen (); 12339 ; 12340 return 0; 12341} 12342_ACEOF 12343if ac_fn_c_try_link "$LINENO" 12344then : 12345 ac_cv_lib_dl_dlopen=yes 12346else $as_nop 12347 ac_cv_lib_dl_dlopen=no 12348fi 12349rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12350 conftest$ac_exeext conftest.$ac_ext 12351LIBS=$ac_check_lib_save_LIBS 12352fi 12353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12354printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12355if test "x$ac_cv_lib_dl_dlopen" = xyes 12356then : 12357 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12358else $as_nop 12359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12360printf %s "checking for dlopen in -lsvld... " >&6; } 12361if test ${ac_cv_lib_svld_dlopen+y} 12362then : 12363 printf %s "(cached) " >&6 12364else $as_nop 12365 ac_check_lib_save_LIBS=$LIBS 12366LIBS="-lsvld $LIBS" 12367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12368/* end confdefs.h. */ 12369 12370/* Override any GCC internal prototype to avoid an error. 12371 Use char because int might match the return type of a GCC 12372 builtin and then its argument prototype would still apply. 12373 The 'extern "C"' is for builds by C++ compilers; 12374 although this is not generally supported in C code supporting it here 12375 has little cost and some practical benefit (sr 110532). */ 12376#ifdef __cplusplus 12377extern "C" 12378#endif 12379char dlopen (void); 12380int 12381main (void) 12382{ 12383return dlopen (); 12384 ; 12385 return 0; 12386} 12387_ACEOF 12388if ac_fn_c_try_link "$LINENO" 12389then : 12390 ac_cv_lib_svld_dlopen=yes 12391else $as_nop 12392 ac_cv_lib_svld_dlopen=no 12393fi 12394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12395 conftest$ac_exeext conftest.$ac_ext 12396LIBS=$ac_check_lib_save_LIBS 12397fi 12398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12399printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12400if test "x$ac_cv_lib_svld_dlopen" = xyes 12401then : 12402 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12403else $as_nop 12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12405printf %s "checking for dld_link in -ldld... " >&6; } 12406if test ${ac_cv_lib_dld_dld_link+y} 12407then : 12408 printf %s "(cached) " >&6 12409else $as_nop 12410 ac_check_lib_save_LIBS=$LIBS 12411LIBS="-ldld $LIBS" 12412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12413/* end confdefs.h. */ 12414 12415/* Override any GCC internal prototype to avoid an error. 12416 Use char because int might match the return type of a GCC 12417 builtin and then its argument prototype would still apply. 12418 The 'extern "C"' is for builds by C++ compilers; 12419 although this is not generally supported in C code supporting it here 12420 has little cost and some practical benefit (sr 110532). */ 12421#ifdef __cplusplus 12422extern "C" 12423#endif 12424char dld_link (void); 12425int 12426main (void) 12427{ 12428return dld_link (); 12429 ; 12430 return 0; 12431} 12432_ACEOF 12433if ac_fn_c_try_link "$LINENO" 12434then : 12435 ac_cv_lib_dld_dld_link=yes 12436else $as_nop 12437 ac_cv_lib_dld_dld_link=no 12438fi 12439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12440 conftest$ac_exeext conftest.$ac_ext 12441LIBS=$ac_check_lib_save_LIBS 12442fi 12443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12444printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12445if test "x$ac_cv_lib_dld_dld_link" = xyes 12446then : 12447 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12448fi 12449 12450 12451fi 12452 12453 12454fi 12455 12456 12457fi 12458 12459 12460fi 12461 12462 12463fi 12464 12465 ;; 12466 esac 12467 12468 if test no = "$lt_cv_dlopen"; then 12469 enable_dlopen=no 12470 else 12471 enable_dlopen=yes 12472 fi 12473 12474 case $lt_cv_dlopen in 12475 dlopen) 12476 save_CPPFLAGS=$CPPFLAGS 12477 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12478 12479 save_LDFLAGS=$LDFLAGS 12480 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12481 12482 save_LIBS=$LIBS 12483 LIBS="$lt_cv_dlopen_libs $LIBS" 12484 12485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12486printf %s "checking whether a program can dlopen itself... " >&6; } 12487if test ${lt_cv_dlopen_self+y} 12488then : 12489 printf %s "(cached) " >&6 12490else $as_nop 12491 if test yes = "$cross_compiling"; then : 12492 lt_cv_dlopen_self=cross 12493else 12494 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12495 lt_status=$lt_dlunknown 12496 cat > conftest.$ac_ext <<_LT_EOF 12497#line $LINENO "configure" 12498#include "confdefs.h" 12499 12500#if HAVE_DLFCN_H 12501#include <dlfcn.h> 12502#endif 12503 12504#include <stdio.h> 12505 12506#ifdef RTLD_GLOBAL 12507# define LT_DLGLOBAL RTLD_GLOBAL 12508#else 12509# ifdef DL_GLOBAL 12510# define LT_DLGLOBAL DL_GLOBAL 12511# else 12512# define LT_DLGLOBAL 0 12513# endif 12514#endif 12515 12516/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12517 find out it does not work in some platform. */ 12518#ifndef LT_DLLAZY_OR_NOW 12519# ifdef RTLD_LAZY 12520# define LT_DLLAZY_OR_NOW RTLD_LAZY 12521# else 12522# ifdef DL_LAZY 12523# define LT_DLLAZY_OR_NOW DL_LAZY 12524# else 12525# ifdef RTLD_NOW 12526# define LT_DLLAZY_OR_NOW RTLD_NOW 12527# else 12528# ifdef DL_NOW 12529# define LT_DLLAZY_OR_NOW DL_NOW 12530# else 12531# define LT_DLLAZY_OR_NOW 0 12532# endif 12533# endif 12534# endif 12535# endif 12536#endif 12537 12538/* When -fvisibility=hidden is used, assume the code has been annotated 12539 correspondingly for the symbols needed. */ 12540#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12541int fnord () __attribute__((visibility("default"))); 12542#endif 12543 12544int fnord () { return 42; } 12545int main () 12546{ 12547 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12548 int status = $lt_dlunknown; 12549 12550 if (self) 12551 { 12552 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12553 else 12554 { 12555 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12556 else puts (dlerror ()); 12557 } 12558 /* dlclose (self); */ 12559 } 12560 else 12561 puts (dlerror ()); 12562 12563 return status; 12564} 12565_LT_EOF 12566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12567 (eval $ac_link) 2>&5 12568 ac_status=$? 12569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12570 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12571 (./conftest; exit; ) >&5 2>/dev/null 12572 lt_status=$? 12573 case x$lt_status in 12574 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12575 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12576 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12577 esac 12578 else : 12579 # compilation failed 12580 lt_cv_dlopen_self=no 12581 fi 12582fi 12583rm -fr conftest* 12584 12585 12586fi 12587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12588printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12589 12590 if test yes = "$lt_cv_dlopen_self"; then 12591 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12593printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12594if test ${lt_cv_dlopen_self_static+y} 12595then : 12596 printf %s "(cached) " >&6 12597else $as_nop 12598 if test yes = "$cross_compiling"; then : 12599 lt_cv_dlopen_self_static=cross 12600else 12601 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12602 lt_status=$lt_dlunknown 12603 cat > conftest.$ac_ext <<_LT_EOF 12604#line $LINENO "configure" 12605#include "confdefs.h" 12606 12607#if HAVE_DLFCN_H 12608#include <dlfcn.h> 12609#endif 12610 12611#include <stdio.h> 12612 12613#ifdef RTLD_GLOBAL 12614# define LT_DLGLOBAL RTLD_GLOBAL 12615#else 12616# ifdef DL_GLOBAL 12617# define LT_DLGLOBAL DL_GLOBAL 12618# else 12619# define LT_DLGLOBAL 0 12620# endif 12621#endif 12622 12623/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12624 find out it does not work in some platform. */ 12625#ifndef LT_DLLAZY_OR_NOW 12626# ifdef RTLD_LAZY 12627# define LT_DLLAZY_OR_NOW RTLD_LAZY 12628# else 12629# ifdef DL_LAZY 12630# define LT_DLLAZY_OR_NOW DL_LAZY 12631# else 12632# ifdef RTLD_NOW 12633# define LT_DLLAZY_OR_NOW RTLD_NOW 12634# else 12635# ifdef DL_NOW 12636# define LT_DLLAZY_OR_NOW DL_NOW 12637# else 12638# define LT_DLLAZY_OR_NOW 0 12639# endif 12640# endif 12641# endif 12642# endif 12643#endif 12644 12645/* When -fvisibility=hidden is used, assume the code has been annotated 12646 correspondingly for the symbols needed. */ 12647#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12648int fnord () __attribute__((visibility("default"))); 12649#endif 12650 12651int fnord () { return 42; } 12652int main () 12653{ 12654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12655 int status = $lt_dlunknown; 12656 12657 if (self) 12658 { 12659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12660 else 12661 { 12662 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12663 else puts (dlerror ()); 12664 } 12665 /* dlclose (self); */ 12666 } 12667 else 12668 puts (dlerror ()); 12669 12670 return status; 12671} 12672_LT_EOF 12673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12674 (eval $ac_link) 2>&5 12675 ac_status=$? 12676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12677 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12678 (./conftest; exit; ) >&5 2>/dev/null 12679 lt_status=$? 12680 case x$lt_status in 12681 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12682 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12683 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12684 esac 12685 else : 12686 # compilation failed 12687 lt_cv_dlopen_self_static=no 12688 fi 12689fi 12690rm -fr conftest* 12691 12692 12693fi 12694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12695printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12696 fi 12697 12698 CPPFLAGS=$save_CPPFLAGS 12699 LDFLAGS=$save_LDFLAGS 12700 LIBS=$save_LIBS 12701 ;; 12702 esac 12703 12704 case $lt_cv_dlopen_self in 12705 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12706 *) enable_dlopen_self=unknown ;; 12707 esac 12708 12709 case $lt_cv_dlopen_self_static in 12710 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12711 *) enable_dlopen_self_static=unknown ;; 12712 esac 12713fi 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731striplib= 12732old_striplib= 12733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12734printf %s "checking whether stripping libraries is possible... " >&6; } 12735if test -z "$STRIP"; then 12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12737printf "%s\n" "no" >&6; } 12738else 12739 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12740 old_striplib="$STRIP --strip-debug" 12741 striplib="$STRIP --strip-unneeded" 12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12743printf "%s\n" "yes" >&6; } 12744 else 12745 case $host_os in 12746 darwin*) 12747 # FIXME - insert some real tests, host_os isn't really good enough 12748 striplib="$STRIP -x" 12749 old_striplib="$STRIP -S" 12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12751printf "%s\n" "yes" >&6; } 12752 ;; 12753 freebsd*) 12754 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12755 old_striplib="$STRIP --strip-debug" 12756 striplib="$STRIP --strip-unneeded" 12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12758printf "%s\n" "yes" >&6; } 12759 else 12760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12761printf "%s\n" "no" >&6; } 12762 fi 12763 ;; 12764 *) 12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12766printf "%s\n" "no" >&6; } 12767 ;; 12768 esac 12769 fi 12770fi 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 # Report what library types will actually be built 12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12785printf %s "checking if libtool supports shared libraries... " >&6; } 12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12787printf "%s\n" "$can_build_shared" >&6; } 12788 12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12790printf %s "checking whether to build shared libraries... " >&6; } 12791 test no = "$can_build_shared" && enable_shared=no 12792 12793 # On AIX, shared libraries and static libraries use the same namespace, and 12794 # are all built from PIC. 12795 case $host_os in 12796 aix3*) 12797 test yes = "$enable_shared" && enable_static=no 12798 if test -n "$RANLIB"; then 12799 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12800 postinstall_cmds='$RANLIB $lib' 12801 fi 12802 ;; 12803 12804 aix[4-9]*) 12805 if test ia64 != "$host_cpu"; then 12806 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12807 yes,aix,yes) ;; # shared object as lib.so file only 12808 yes,svr4,*) ;; # shared object as lib.so archive member only 12809 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12810 esac 12811 fi 12812 ;; 12813 esac 12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12815printf "%s\n" "$enable_shared" >&6; } 12816 12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12818printf %s "checking whether to build static libraries... " >&6; } 12819 # Make sure either enable_shared or enable_static is yes. 12820 test yes = "$enable_shared" || enable_static=yes 12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12822printf "%s\n" "$enable_static" >&6; } 12823 12824 12825 12826 12827fi 12828ac_ext=c 12829ac_cpp='$CPP $CPPFLAGS' 12830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12832ac_compiler_gnu=$ac_cv_c_compiler_gnu 12833 12834CC=$lt_save_CC 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 ac_config_commands="$ac_config_commands libtool" 12851 12852 12853 12854 12855# Only expand once: 12856 12857 12858 12859# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12873printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12874if test ${ac_cv_c_undeclared_builtin_options+y} 12875then : 12876 printf %s "(cached) " >&6 12877else $as_nop 12878 ac_save_CFLAGS=$CFLAGS 12879 ac_cv_c_undeclared_builtin_options='cannot detect' 12880 for ac_arg in '' -fno-builtin; do 12881 CFLAGS="$ac_save_CFLAGS $ac_arg" 12882 # This test program should *not* compile successfully. 12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12884/* end confdefs.h. */ 12885 12886int 12887main (void) 12888{ 12889(void) strchr; 12890 ; 12891 return 0; 12892} 12893_ACEOF 12894if ac_fn_c_try_compile "$LINENO" 12895then : 12896 12897else $as_nop 12898 # This test program should compile successfully. 12899 # No library function is consistently available on 12900 # freestanding implementations, so test against a dummy 12901 # declaration. Include always-available headers on the 12902 # off chance that they somehow elicit warnings. 12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12904/* end confdefs.h. */ 12905#include <float.h> 12906#include <limits.h> 12907#include <stdarg.h> 12908#include <stddef.h> 12909extern void ac_decl (int, char *); 12910 12911int 12912main (void) 12913{ 12914(void) ac_decl (0, (char *) 0); 12915 (void) ac_decl; 12916 12917 ; 12918 return 0; 12919} 12920_ACEOF 12921if ac_fn_c_try_compile "$LINENO" 12922then : 12923 if test x"$ac_arg" = x 12924then : 12925 ac_cv_c_undeclared_builtin_options='none needed' 12926else $as_nop 12927 ac_cv_c_undeclared_builtin_options=$ac_arg 12928fi 12929 break 12930fi 12931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12932fi 12933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12934 done 12935 CFLAGS=$ac_save_CFLAGS 12936 12937fi 12938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12939printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12940 case $ac_cv_c_undeclared_builtin_options in #( 12941 'cannot detect') : 12942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12943printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12944as_fn_error $? "cannot make $CC report undeclared builtins 12945See \`config.log' for more details" "$LINENO" 5; } ;; #( 12946 'none needed') : 12947 ac_c_undeclared_builtin_options='' ;; #( 12948 *) : 12949 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12950esac 12951 12952 12953 12954 12955 12956ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12957if test "x$ac_cv_have_decl___clang__" = xyes 12958then : 12959 CLANGCC="yes" 12960else $as_nop 12961 CLANGCC="no" 12962fi 12963ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12964if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12965then : 12966 INTELCC="yes" 12967else $as_nop 12968 INTELCC="no" 12969fi 12970ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12971if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12972then : 12973 SUNCC="yes" 12974else $as_nop 12975 SUNCC="no" 12976fi 12977 12978 12979 12980 12981 12982 12983 12984 12985if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12986 if test -n "$ac_tool_prefix"; then 12987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12988set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12990printf %s "checking for $ac_word... " >&6; } 12991if test ${ac_cv_path_PKG_CONFIG+y} 12992then : 12993 printf %s "(cached) " >&6 12994else $as_nop 12995 case $PKG_CONFIG in 12996 [\\/]* | ?:[\\/]*) 12997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12998 ;; 12999 *) 13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13001for as_dir in $PATH 13002do 13003 IFS=$as_save_IFS 13004 case $as_dir in #((( 13005 '') as_dir=./ ;; 13006 */) ;; 13007 *) as_dir=$as_dir/ ;; 13008 esac 13009 for ac_exec_ext in '' $ac_executable_extensions; do 13010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13011 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13013 break 2 13014 fi 13015done 13016 done 13017IFS=$as_save_IFS 13018 13019 ;; 13020esac 13021fi 13022PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13023if test -n "$PKG_CONFIG"; then 13024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13025printf "%s\n" "$PKG_CONFIG" >&6; } 13026else 13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13028printf "%s\n" "no" >&6; } 13029fi 13030 13031 13032fi 13033if test -z "$ac_cv_path_PKG_CONFIG"; then 13034 ac_pt_PKG_CONFIG=$PKG_CONFIG 13035 # Extract the first word of "pkg-config", so it can be a program name with args. 13036set dummy pkg-config; ac_word=$2 13037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13038printf %s "checking for $ac_word... " >&6; } 13039if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13040then : 13041 printf %s "(cached) " >&6 13042else $as_nop 13043 case $ac_pt_PKG_CONFIG in 13044 [\\/]* | ?:[\\/]*) 13045 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13046 ;; 13047 *) 13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13049for as_dir in $PATH 13050do 13051 IFS=$as_save_IFS 13052 case $as_dir in #((( 13053 '') as_dir=./ ;; 13054 */) ;; 13055 *) as_dir=$as_dir/ ;; 13056 esac 13057 for ac_exec_ext in '' $ac_executable_extensions; do 13058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13059 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13061 break 2 13062 fi 13063done 13064 done 13065IFS=$as_save_IFS 13066 13067 ;; 13068esac 13069fi 13070ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13071if test -n "$ac_pt_PKG_CONFIG"; then 13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13073printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13074else 13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13076printf "%s\n" "no" >&6; } 13077fi 13078 13079 if test "x$ac_pt_PKG_CONFIG" = x; then 13080 PKG_CONFIG="" 13081 else 13082 case $cross_compiling:$ac_tool_warned in 13083yes:) 13084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13085printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13086ac_tool_warned=yes ;; 13087esac 13088 PKG_CONFIG=$ac_pt_PKG_CONFIG 13089 fi 13090else 13091 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13092fi 13093 13094fi 13095if test -n "$PKG_CONFIG"; then 13096 _pkg_min_version=0.9.0 13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13098printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13099 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13101printf "%s\n" "yes" >&6; } 13102 else 13103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13104printf "%s\n" "no" >&6; } 13105 PKG_CONFIG="" 13106 fi 13107fi 13108 13109 13110 13111 13112 13113# Check whether --enable-selective-werror was given. 13114if test ${enable_selective_werror+y} 13115then : 13116 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13117else $as_nop 13118 SELECTIVE_WERROR=yes 13119fi 13120 13121 13122 13123 13124 13125# -v is too short to test reliably with XORG_TESTSET_CFLAG 13126if test "x$SUNCC" = "xyes"; then 13127 BASE_CFLAGS="-v" 13128else 13129 BASE_CFLAGS="" 13130fi 13131 13132# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146xorg_testset_save_CFLAGS="$CFLAGS" 13147 13148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13153then : 13154 printf %s "(cached) " >&6 13155else $as_nop 13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13157/* end confdefs.h. */ 13158int i; 13159_ACEOF 13160if ac_fn_c_try_compile "$LINENO" 13161then : 13162 xorg_cv_cc_flag_unknown_warning_option=yes 13163else $as_nop 13164 xorg_cv_cc_flag_unknown_warning_option=no 13165fi 13166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13167fi 13168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13171 CFLAGS="$xorg_testset_save_CFLAGS" 13172fi 13173 13174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13177 fi 13178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13181if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13182then : 13183 printf %s "(cached) " >&6 13184else $as_nop 13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13186/* end confdefs.h. */ 13187int i; 13188_ACEOF 13189if ac_fn_c_try_compile "$LINENO" 13190then : 13191 xorg_cv_cc_flag_unused_command_line_argument=yes 13192else $as_nop 13193 xorg_cv_cc_flag_unused_command_line_argument=no 13194fi 13195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13196fi 13197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13198printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13200 CFLAGS="$xorg_testset_save_CFLAGS" 13201fi 13202 13203found="no" 13204 13205 if test $found = "no" ; then 13206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13208 fi 13209 13210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13212 fi 13213 13214 CFLAGS="$CFLAGS -Wall" 13215 13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13217printf %s "checking if $CC supports -Wall... " >&6; } 13218 cacheid=xorg_cv_cc_flag__Wall 13219 if eval test \${$cacheid+y} 13220then : 13221 printf %s "(cached) " >&6 13222else $as_nop 13223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13224/* end confdefs.h. */ 13225int i; 13226int 13227main (void) 13228{ 13229 13230 ; 13231 return 0; 13232} 13233_ACEOF 13234if ac_fn_c_try_link "$LINENO" 13235then : 13236 eval $cacheid=yes 13237else $as_nop 13238 eval $cacheid=no 13239fi 13240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13241 conftest$ac_exeext conftest.$ac_ext 13242fi 13243 13244 13245 CFLAGS="$xorg_testset_save_CFLAGS" 13246 13247 eval supported=\$$cacheid 13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13249printf "%s\n" "$supported" >&6; } 13250 if test "$supported" = "yes" ; then 13251 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13252 found="yes" 13253 fi 13254 fi 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270xorg_testset_save_CFLAGS="$CFLAGS" 13271 13272if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13275printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13276if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13277then : 13278 printf %s "(cached) " >&6 13279else $as_nop 13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13281/* end confdefs.h. */ 13282int i; 13283_ACEOF 13284if ac_fn_c_try_compile "$LINENO" 13285then : 13286 xorg_cv_cc_flag_unknown_warning_option=yes 13287else $as_nop 13288 xorg_cv_cc_flag_unknown_warning_option=no 13289fi 13290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13291fi 13292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13293printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13295 CFLAGS="$xorg_testset_save_CFLAGS" 13296fi 13297 13298if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13301 fi 13302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13304printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13305if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13306then : 13307 printf %s "(cached) " >&6 13308else $as_nop 13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13310/* end confdefs.h. */ 13311int i; 13312_ACEOF 13313if ac_fn_c_try_compile "$LINENO" 13314then : 13315 xorg_cv_cc_flag_unused_command_line_argument=yes 13316else $as_nop 13317 xorg_cv_cc_flag_unused_command_line_argument=no 13318fi 13319rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13320fi 13321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13322printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13324 CFLAGS="$xorg_testset_save_CFLAGS" 13325fi 13326 13327found="no" 13328 13329 if test $found = "no" ; then 13330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13332 fi 13333 13334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13336 fi 13337 13338 CFLAGS="$CFLAGS -Wpointer-arith" 13339 13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13341printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13342 cacheid=xorg_cv_cc_flag__Wpointer_arith 13343 if eval test \${$cacheid+y} 13344then : 13345 printf %s "(cached) " >&6 13346else $as_nop 13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13348/* end confdefs.h. */ 13349int i; 13350int 13351main (void) 13352{ 13353 13354 ; 13355 return 0; 13356} 13357_ACEOF 13358if ac_fn_c_try_link "$LINENO" 13359then : 13360 eval $cacheid=yes 13361else $as_nop 13362 eval $cacheid=no 13363fi 13364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13365 conftest$ac_exeext conftest.$ac_ext 13366fi 13367 13368 13369 CFLAGS="$xorg_testset_save_CFLAGS" 13370 13371 eval supported=\$$cacheid 13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13373printf "%s\n" "$supported" >&6; } 13374 if test "$supported" = "yes" ; then 13375 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13376 found="yes" 13377 fi 13378 fi 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394xorg_testset_save_CFLAGS="$CFLAGS" 13395 13396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13400if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13401then : 13402 printf %s "(cached) " >&6 13403else $as_nop 13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13405/* end confdefs.h. */ 13406int i; 13407_ACEOF 13408if ac_fn_c_try_compile "$LINENO" 13409then : 13410 xorg_cv_cc_flag_unknown_warning_option=yes 13411else $as_nop 13412 xorg_cv_cc_flag_unknown_warning_option=no 13413fi 13414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13415fi 13416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13417printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13419 CFLAGS="$xorg_testset_save_CFLAGS" 13420fi 13421 13422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13425 fi 13426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13428printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13429if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13430then : 13431 printf %s "(cached) " >&6 13432else $as_nop 13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13434/* end confdefs.h. */ 13435int i; 13436_ACEOF 13437if ac_fn_c_try_compile "$LINENO" 13438then : 13439 xorg_cv_cc_flag_unused_command_line_argument=yes 13440else $as_nop 13441 xorg_cv_cc_flag_unused_command_line_argument=no 13442fi 13443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13444fi 13445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13446printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13448 CFLAGS="$xorg_testset_save_CFLAGS" 13449fi 13450 13451found="no" 13452 13453 if test $found = "no" ; then 13454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13456 fi 13457 13458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13460 fi 13461 13462 CFLAGS="$CFLAGS -Wmissing-declarations" 13463 13464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13465printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13466 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13467 if eval test \${$cacheid+y} 13468then : 13469 printf %s "(cached) " >&6 13470else $as_nop 13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13472/* end confdefs.h. */ 13473int i; 13474int 13475main (void) 13476{ 13477 13478 ; 13479 return 0; 13480} 13481_ACEOF 13482if ac_fn_c_try_link "$LINENO" 13483then : 13484 eval $cacheid=yes 13485else $as_nop 13486 eval $cacheid=no 13487fi 13488rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13489 conftest$ac_exeext conftest.$ac_ext 13490fi 13491 13492 13493 CFLAGS="$xorg_testset_save_CFLAGS" 13494 13495 eval supported=\$$cacheid 13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13497printf "%s\n" "$supported" >&6; } 13498 if test "$supported" = "yes" ; then 13499 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13500 found="yes" 13501 fi 13502 fi 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518xorg_testset_save_CFLAGS="$CFLAGS" 13519 13520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13524if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13525then : 13526 printf %s "(cached) " >&6 13527else $as_nop 13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13529/* end confdefs.h. */ 13530int i; 13531_ACEOF 13532if ac_fn_c_try_compile "$LINENO" 13533then : 13534 xorg_cv_cc_flag_unknown_warning_option=yes 13535else $as_nop 13536 xorg_cv_cc_flag_unknown_warning_option=no 13537fi 13538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13539fi 13540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13543 CFLAGS="$xorg_testset_save_CFLAGS" 13544fi 13545 13546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13549 fi 13550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13553if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13554then : 13555 printf %s "(cached) " >&6 13556else $as_nop 13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13558/* end confdefs.h. */ 13559int i; 13560_ACEOF 13561if ac_fn_c_try_compile "$LINENO" 13562then : 13563 xorg_cv_cc_flag_unused_command_line_argument=yes 13564else $as_nop 13565 xorg_cv_cc_flag_unused_command_line_argument=no 13566fi 13567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13568fi 13569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13570printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13572 CFLAGS="$xorg_testset_save_CFLAGS" 13573fi 13574 13575found="no" 13576 13577 if test $found = "no" ; then 13578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13580 fi 13581 13582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13584 fi 13585 13586 CFLAGS="$CFLAGS -Wformat=2" 13587 13588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13589printf %s "checking if $CC supports -Wformat=2... " >&6; } 13590 cacheid=xorg_cv_cc_flag__Wformat_2 13591 if eval test \${$cacheid+y} 13592then : 13593 printf %s "(cached) " >&6 13594else $as_nop 13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13596/* end confdefs.h. */ 13597int i; 13598int 13599main (void) 13600{ 13601 13602 ; 13603 return 0; 13604} 13605_ACEOF 13606if ac_fn_c_try_link "$LINENO" 13607then : 13608 eval $cacheid=yes 13609else $as_nop 13610 eval $cacheid=no 13611fi 13612rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13613 conftest$ac_exeext conftest.$ac_ext 13614fi 13615 13616 13617 CFLAGS="$xorg_testset_save_CFLAGS" 13618 13619 eval supported=\$$cacheid 13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13621printf "%s\n" "$supported" >&6; } 13622 if test "$supported" = "yes" ; then 13623 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13624 found="yes" 13625 fi 13626 fi 13627 13628 if test $found = "no" ; then 13629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13631 fi 13632 13633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13635 fi 13636 13637 CFLAGS="$CFLAGS -Wformat" 13638 13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13640printf %s "checking if $CC supports -Wformat... " >&6; } 13641 cacheid=xorg_cv_cc_flag__Wformat 13642 if eval test \${$cacheid+y} 13643then : 13644 printf %s "(cached) " >&6 13645else $as_nop 13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13647/* end confdefs.h. */ 13648int i; 13649int 13650main (void) 13651{ 13652 13653 ; 13654 return 0; 13655} 13656_ACEOF 13657if ac_fn_c_try_link "$LINENO" 13658then : 13659 eval $cacheid=yes 13660else $as_nop 13661 eval $cacheid=no 13662fi 13663rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13664 conftest$ac_exeext conftest.$ac_ext 13665fi 13666 13667 13668 CFLAGS="$xorg_testset_save_CFLAGS" 13669 13670 eval supported=\$$cacheid 13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13672printf "%s\n" "$supported" >&6; } 13673 if test "$supported" = "yes" ; then 13674 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13675 found="yes" 13676 fi 13677 fi 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695xorg_testset_save_CFLAGS="$CFLAGS" 13696 13697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13701if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13702then : 13703 printf %s "(cached) " >&6 13704else $as_nop 13705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13706/* end confdefs.h. */ 13707int i; 13708_ACEOF 13709if ac_fn_c_try_compile "$LINENO" 13710then : 13711 xorg_cv_cc_flag_unknown_warning_option=yes 13712else $as_nop 13713 xorg_cv_cc_flag_unknown_warning_option=no 13714fi 13715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13716fi 13717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13720 CFLAGS="$xorg_testset_save_CFLAGS" 13721fi 13722 13723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13726 fi 13727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13730if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13731then : 13732 printf %s "(cached) " >&6 13733else $as_nop 13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13735/* end confdefs.h. */ 13736int i; 13737_ACEOF 13738if ac_fn_c_try_compile "$LINENO" 13739then : 13740 xorg_cv_cc_flag_unused_command_line_argument=yes 13741else $as_nop 13742 xorg_cv_cc_flag_unused_command_line_argument=no 13743fi 13744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13745fi 13746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13749 CFLAGS="$xorg_testset_save_CFLAGS" 13750fi 13751 13752found="no" 13753 13754 if test $found = "no" ; then 13755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13757 fi 13758 13759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13761 fi 13762 13763 CFLAGS="$CFLAGS -Wstrict-prototypes" 13764 13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13766printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13767 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13768 if eval test \${$cacheid+y} 13769then : 13770 printf %s "(cached) " >&6 13771else $as_nop 13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13773/* end confdefs.h. */ 13774int i; 13775int 13776main (void) 13777{ 13778 13779 ; 13780 return 0; 13781} 13782_ACEOF 13783if ac_fn_c_try_link "$LINENO" 13784then : 13785 eval $cacheid=yes 13786else $as_nop 13787 eval $cacheid=no 13788fi 13789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13790 conftest$ac_exeext conftest.$ac_ext 13791fi 13792 13793 13794 CFLAGS="$xorg_testset_save_CFLAGS" 13795 13796 eval supported=\$$cacheid 13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13798printf "%s\n" "$supported" >&6; } 13799 if test "$supported" = "yes" ; then 13800 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13801 found="yes" 13802 fi 13803 fi 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819xorg_testset_save_CFLAGS="$CFLAGS" 13820 13821if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13824printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13825if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13826then : 13827 printf %s "(cached) " >&6 13828else $as_nop 13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13830/* end confdefs.h. */ 13831int i; 13832_ACEOF 13833if ac_fn_c_try_compile "$LINENO" 13834then : 13835 xorg_cv_cc_flag_unknown_warning_option=yes 13836else $as_nop 13837 xorg_cv_cc_flag_unknown_warning_option=no 13838fi 13839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13840fi 13841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13842printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13844 CFLAGS="$xorg_testset_save_CFLAGS" 13845fi 13846 13847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13850 fi 13851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13853printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13854if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13855then : 13856 printf %s "(cached) " >&6 13857else $as_nop 13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13859/* end confdefs.h. */ 13860int i; 13861_ACEOF 13862if ac_fn_c_try_compile "$LINENO" 13863then : 13864 xorg_cv_cc_flag_unused_command_line_argument=yes 13865else $as_nop 13866 xorg_cv_cc_flag_unused_command_line_argument=no 13867fi 13868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13869fi 13870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13871printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13873 CFLAGS="$xorg_testset_save_CFLAGS" 13874fi 13875 13876found="no" 13877 13878 if test $found = "no" ; then 13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13881 fi 13882 13883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13885 fi 13886 13887 CFLAGS="$CFLAGS -Wmissing-prototypes" 13888 13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13890printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13891 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13892 if eval test \${$cacheid+y} 13893then : 13894 printf %s "(cached) " >&6 13895else $as_nop 13896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13897/* end confdefs.h. */ 13898int i; 13899int 13900main (void) 13901{ 13902 13903 ; 13904 return 0; 13905} 13906_ACEOF 13907if ac_fn_c_try_link "$LINENO" 13908then : 13909 eval $cacheid=yes 13910else $as_nop 13911 eval $cacheid=no 13912fi 13913rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13914 conftest$ac_exeext conftest.$ac_ext 13915fi 13916 13917 13918 CFLAGS="$xorg_testset_save_CFLAGS" 13919 13920 eval supported=\$$cacheid 13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13922printf "%s\n" "$supported" >&6; } 13923 if test "$supported" = "yes" ; then 13924 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13925 found="yes" 13926 fi 13927 fi 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943xorg_testset_save_CFLAGS="$CFLAGS" 13944 13945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13949if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13950then : 13951 printf %s "(cached) " >&6 13952else $as_nop 13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13954/* end confdefs.h. */ 13955int i; 13956_ACEOF 13957if ac_fn_c_try_compile "$LINENO" 13958then : 13959 xorg_cv_cc_flag_unknown_warning_option=yes 13960else $as_nop 13961 xorg_cv_cc_flag_unknown_warning_option=no 13962fi 13963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13964fi 13965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13968 CFLAGS="$xorg_testset_save_CFLAGS" 13969fi 13970 13971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13974 fi 13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13978if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13979then : 13980 printf %s "(cached) " >&6 13981else $as_nop 13982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13983/* end confdefs.h. */ 13984int i; 13985_ACEOF 13986if ac_fn_c_try_compile "$LINENO" 13987then : 13988 xorg_cv_cc_flag_unused_command_line_argument=yes 13989else $as_nop 13990 xorg_cv_cc_flag_unused_command_line_argument=no 13991fi 13992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13993fi 13994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13997 CFLAGS="$xorg_testset_save_CFLAGS" 13998fi 13999 14000found="no" 14001 14002 if test $found = "no" ; then 14003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14005 fi 14006 14007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14009 fi 14010 14011 CFLAGS="$CFLAGS -Wnested-externs" 14012 14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14014printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14015 cacheid=xorg_cv_cc_flag__Wnested_externs 14016 if eval test \${$cacheid+y} 14017then : 14018 printf %s "(cached) " >&6 14019else $as_nop 14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14021/* end confdefs.h. */ 14022int i; 14023int 14024main (void) 14025{ 14026 14027 ; 14028 return 0; 14029} 14030_ACEOF 14031if ac_fn_c_try_link "$LINENO" 14032then : 14033 eval $cacheid=yes 14034else $as_nop 14035 eval $cacheid=no 14036fi 14037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14038 conftest$ac_exeext conftest.$ac_ext 14039fi 14040 14041 14042 CFLAGS="$xorg_testset_save_CFLAGS" 14043 14044 eval supported=\$$cacheid 14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14046printf "%s\n" "$supported" >&6; } 14047 if test "$supported" = "yes" ; then 14048 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14049 found="yes" 14050 fi 14051 fi 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067xorg_testset_save_CFLAGS="$CFLAGS" 14068 14069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14073if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14074then : 14075 printf %s "(cached) " >&6 14076else $as_nop 14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14078/* end confdefs.h. */ 14079int i; 14080_ACEOF 14081if ac_fn_c_try_compile "$LINENO" 14082then : 14083 xorg_cv_cc_flag_unknown_warning_option=yes 14084else $as_nop 14085 xorg_cv_cc_flag_unknown_warning_option=no 14086fi 14087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14088fi 14089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14092 CFLAGS="$xorg_testset_save_CFLAGS" 14093fi 14094 14095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14098 fi 14099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14103then : 14104 printf %s "(cached) " >&6 14105else $as_nop 14106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14107/* end confdefs.h. */ 14108int i; 14109_ACEOF 14110if ac_fn_c_try_compile "$LINENO" 14111then : 14112 xorg_cv_cc_flag_unused_command_line_argument=yes 14113else $as_nop 14114 xorg_cv_cc_flag_unused_command_line_argument=no 14115fi 14116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14117fi 14118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14121 CFLAGS="$xorg_testset_save_CFLAGS" 14122fi 14123 14124found="no" 14125 14126 if test $found = "no" ; then 14127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14129 fi 14130 14131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14133 fi 14134 14135 CFLAGS="$CFLAGS -Wbad-function-cast" 14136 14137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14138printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14139 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14140 if eval test \${$cacheid+y} 14141then : 14142 printf %s "(cached) " >&6 14143else $as_nop 14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14145/* end confdefs.h. */ 14146int i; 14147int 14148main (void) 14149{ 14150 14151 ; 14152 return 0; 14153} 14154_ACEOF 14155if ac_fn_c_try_link "$LINENO" 14156then : 14157 eval $cacheid=yes 14158else $as_nop 14159 eval $cacheid=no 14160fi 14161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14162 conftest$ac_exeext conftest.$ac_ext 14163fi 14164 14165 14166 CFLAGS="$xorg_testset_save_CFLAGS" 14167 14168 eval supported=\$$cacheid 14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14170printf "%s\n" "$supported" >&6; } 14171 if test "$supported" = "yes" ; then 14172 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14173 found="yes" 14174 fi 14175 fi 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191xorg_testset_save_CFLAGS="$CFLAGS" 14192 14193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14197if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14198then : 14199 printf %s "(cached) " >&6 14200else $as_nop 14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14202/* end confdefs.h. */ 14203int i; 14204_ACEOF 14205if ac_fn_c_try_compile "$LINENO" 14206then : 14207 xorg_cv_cc_flag_unknown_warning_option=yes 14208else $as_nop 14209 xorg_cv_cc_flag_unknown_warning_option=no 14210fi 14211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14212fi 14213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14216 CFLAGS="$xorg_testset_save_CFLAGS" 14217fi 14218 14219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14222 fi 14223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14226if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14227then : 14228 printf %s "(cached) " >&6 14229else $as_nop 14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14231/* end confdefs.h. */ 14232int i; 14233_ACEOF 14234if ac_fn_c_try_compile "$LINENO" 14235then : 14236 xorg_cv_cc_flag_unused_command_line_argument=yes 14237else $as_nop 14238 xorg_cv_cc_flag_unused_command_line_argument=no 14239fi 14240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14241fi 14242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14245 CFLAGS="$xorg_testset_save_CFLAGS" 14246fi 14247 14248found="no" 14249 14250 if test $found = "no" ; then 14251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14253 fi 14254 14255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14257 fi 14258 14259 CFLAGS="$CFLAGS -Wold-style-definition" 14260 14261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14262printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14263 cacheid=xorg_cv_cc_flag__Wold_style_definition 14264 if eval test \${$cacheid+y} 14265then : 14266 printf %s "(cached) " >&6 14267else $as_nop 14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14269/* end confdefs.h. */ 14270int i; 14271int 14272main (void) 14273{ 14274 14275 ; 14276 return 0; 14277} 14278_ACEOF 14279if ac_fn_c_try_link "$LINENO" 14280then : 14281 eval $cacheid=yes 14282else $as_nop 14283 eval $cacheid=no 14284fi 14285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14286 conftest$ac_exeext conftest.$ac_ext 14287fi 14288 14289 14290 CFLAGS="$xorg_testset_save_CFLAGS" 14291 14292 eval supported=\$$cacheid 14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14294printf "%s\n" "$supported" >&6; } 14295 if test "$supported" = "yes" ; then 14296 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14297 found="yes" 14298 fi 14299 fi 14300 14301 if test $found = "no" ; then 14302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14304 fi 14305 14306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14308 fi 14309 14310 CFLAGS="$CFLAGS -fd" 14311 14312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14313printf %s "checking if $CC supports -fd... " >&6; } 14314 cacheid=xorg_cv_cc_flag__fd 14315 if eval test \${$cacheid+y} 14316then : 14317 printf %s "(cached) " >&6 14318else $as_nop 14319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14320/* end confdefs.h. */ 14321int i; 14322int 14323main (void) 14324{ 14325 14326 ; 14327 return 0; 14328} 14329_ACEOF 14330if ac_fn_c_try_link "$LINENO" 14331then : 14332 eval $cacheid=yes 14333else $as_nop 14334 eval $cacheid=no 14335fi 14336rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14337 conftest$ac_exeext conftest.$ac_ext 14338fi 14339 14340 14341 CFLAGS="$xorg_testset_save_CFLAGS" 14342 14343 eval supported=\$$cacheid 14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14345printf "%s\n" "$supported" >&6; } 14346 if test "$supported" = "yes" ; then 14347 BASE_CFLAGS="$BASE_CFLAGS -fd" 14348 found="yes" 14349 fi 14350 fi 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366xorg_testset_save_CFLAGS="$CFLAGS" 14367 14368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14372if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14373then : 14374 printf %s "(cached) " >&6 14375else $as_nop 14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14377/* end confdefs.h. */ 14378int i; 14379_ACEOF 14380if ac_fn_c_try_compile "$LINENO" 14381then : 14382 xorg_cv_cc_flag_unknown_warning_option=yes 14383else $as_nop 14384 xorg_cv_cc_flag_unknown_warning_option=no 14385fi 14386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14387fi 14388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14391 CFLAGS="$xorg_testset_save_CFLAGS" 14392fi 14393 14394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14397 fi 14398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14401if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14402then : 14403 printf %s "(cached) " >&6 14404else $as_nop 14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14406/* end confdefs.h. */ 14407int i; 14408_ACEOF 14409if ac_fn_c_try_compile "$LINENO" 14410then : 14411 xorg_cv_cc_flag_unused_command_line_argument=yes 14412else $as_nop 14413 xorg_cv_cc_flag_unused_command_line_argument=no 14414fi 14415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14416fi 14417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14420 CFLAGS="$xorg_testset_save_CFLAGS" 14421fi 14422 14423found="no" 14424 14425 if test $found = "no" ; then 14426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14428 fi 14429 14430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14432 fi 14433 14434 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14435 14436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14437printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14438 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14439 if eval test \${$cacheid+y} 14440then : 14441 printf %s "(cached) " >&6 14442else $as_nop 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14444/* end confdefs.h. */ 14445int i; 14446int 14447main (void) 14448{ 14449 14450 ; 14451 return 0; 14452} 14453_ACEOF 14454if ac_fn_c_try_link "$LINENO" 14455then : 14456 eval $cacheid=yes 14457else $as_nop 14458 eval $cacheid=no 14459fi 14460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14461 conftest$ac_exeext conftest.$ac_ext 14462fi 14463 14464 14465 CFLAGS="$xorg_testset_save_CFLAGS" 14466 14467 eval supported=\$$cacheid 14468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14469printf "%s\n" "$supported" >&6; } 14470 if test "$supported" = "yes" ; then 14471 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14472 found="yes" 14473 fi 14474 fi 14475 14476 14477 14478 14479 14480# This chunk adds additional warnings that could catch undesired effects. 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494xorg_testset_save_CFLAGS="$CFLAGS" 14495 14496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14500if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14501then : 14502 printf %s "(cached) " >&6 14503else $as_nop 14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505/* end confdefs.h. */ 14506int i; 14507_ACEOF 14508if ac_fn_c_try_compile "$LINENO" 14509then : 14510 xorg_cv_cc_flag_unknown_warning_option=yes 14511else $as_nop 14512 xorg_cv_cc_flag_unknown_warning_option=no 14513fi 14514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14515fi 14516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14519 CFLAGS="$xorg_testset_save_CFLAGS" 14520fi 14521 14522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14525 fi 14526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14529if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14530then : 14531 printf %s "(cached) " >&6 14532else $as_nop 14533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14534/* end confdefs.h. */ 14535int i; 14536_ACEOF 14537if ac_fn_c_try_compile "$LINENO" 14538then : 14539 xorg_cv_cc_flag_unused_command_line_argument=yes 14540else $as_nop 14541 xorg_cv_cc_flag_unused_command_line_argument=no 14542fi 14543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14544fi 14545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14548 CFLAGS="$xorg_testset_save_CFLAGS" 14549fi 14550 14551found="no" 14552 14553 if test $found = "no" ; then 14554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14556 fi 14557 14558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14560 fi 14561 14562 CFLAGS="$CFLAGS -Wunused" 14563 14564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14565printf %s "checking if $CC supports -Wunused... " >&6; } 14566 cacheid=xorg_cv_cc_flag__Wunused 14567 if eval test \${$cacheid+y} 14568then : 14569 printf %s "(cached) " >&6 14570else $as_nop 14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14572/* end confdefs.h. */ 14573int i; 14574int 14575main (void) 14576{ 14577 14578 ; 14579 return 0; 14580} 14581_ACEOF 14582if ac_fn_c_try_link "$LINENO" 14583then : 14584 eval $cacheid=yes 14585else $as_nop 14586 eval $cacheid=no 14587fi 14588rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14589 conftest$ac_exeext conftest.$ac_ext 14590fi 14591 14592 14593 CFLAGS="$xorg_testset_save_CFLAGS" 14594 14595 eval supported=\$$cacheid 14596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14597printf "%s\n" "$supported" >&6; } 14598 if test "$supported" = "yes" ; then 14599 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14600 found="yes" 14601 fi 14602 fi 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618xorg_testset_save_CFLAGS="$CFLAGS" 14619 14620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14624if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14625then : 14626 printf %s "(cached) " >&6 14627else $as_nop 14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14629/* end confdefs.h. */ 14630int i; 14631_ACEOF 14632if ac_fn_c_try_compile "$LINENO" 14633then : 14634 xorg_cv_cc_flag_unknown_warning_option=yes 14635else $as_nop 14636 xorg_cv_cc_flag_unknown_warning_option=no 14637fi 14638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14639fi 14640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14643 CFLAGS="$xorg_testset_save_CFLAGS" 14644fi 14645 14646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14649 fi 14650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14653if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14654then : 14655 printf %s "(cached) " >&6 14656else $as_nop 14657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658/* end confdefs.h. */ 14659int i; 14660_ACEOF 14661if ac_fn_c_try_compile "$LINENO" 14662then : 14663 xorg_cv_cc_flag_unused_command_line_argument=yes 14664else $as_nop 14665 xorg_cv_cc_flag_unused_command_line_argument=no 14666fi 14667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14668fi 14669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14672 CFLAGS="$xorg_testset_save_CFLAGS" 14673fi 14674 14675found="no" 14676 14677 if test $found = "no" ; then 14678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14680 fi 14681 14682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14684 fi 14685 14686 CFLAGS="$CFLAGS -Wuninitialized" 14687 14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14689printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14690 cacheid=xorg_cv_cc_flag__Wuninitialized 14691 if eval test \${$cacheid+y} 14692then : 14693 printf %s "(cached) " >&6 14694else $as_nop 14695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14696/* end confdefs.h. */ 14697int i; 14698int 14699main (void) 14700{ 14701 14702 ; 14703 return 0; 14704} 14705_ACEOF 14706if ac_fn_c_try_link "$LINENO" 14707then : 14708 eval $cacheid=yes 14709else $as_nop 14710 eval $cacheid=no 14711fi 14712rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14713 conftest$ac_exeext conftest.$ac_ext 14714fi 14715 14716 14717 CFLAGS="$xorg_testset_save_CFLAGS" 14718 14719 eval supported=\$$cacheid 14720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14721printf "%s\n" "$supported" >&6; } 14722 if test "$supported" = "yes" ; then 14723 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14724 found="yes" 14725 fi 14726 fi 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742xorg_testset_save_CFLAGS="$CFLAGS" 14743 14744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14748if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14749then : 14750 printf %s "(cached) " >&6 14751else $as_nop 14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753/* end confdefs.h. */ 14754int i; 14755_ACEOF 14756if ac_fn_c_try_compile "$LINENO" 14757then : 14758 xorg_cv_cc_flag_unknown_warning_option=yes 14759else $as_nop 14760 xorg_cv_cc_flag_unknown_warning_option=no 14761fi 14762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14763fi 14764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14767 CFLAGS="$xorg_testset_save_CFLAGS" 14768fi 14769 14770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14773 fi 14774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14777if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14778then : 14779 printf %s "(cached) " >&6 14780else $as_nop 14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14782/* end confdefs.h. */ 14783int i; 14784_ACEOF 14785if ac_fn_c_try_compile "$LINENO" 14786then : 14787 xorg_cv_cc_flag_unused_command_line_argument=yes 14788else $as_nop 14789 xorg_cv_cc_flag_unused_command_line_argument=no 14790fi 14791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14792fi 14793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14796 CFLAGS="$xorg_testset_save_CFLAGS" 14797fi 14798 14799found="no" 14800 14801 if test $found = "no" ; then 14802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14804 fi 14805 14806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14808 fi 14809 14810 CFLAGS="$CFLAGS -Wshadow" 14811 14812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14813printf %s "checking if $CC supports -Wshadow... " >&6; } 14814 cacheid=xorg_cv_cc_flag__Wshadow 14815 if eval test \${$cacheid+y} 14816then : 14817 printf %s "(cached) " >&6 14818else $as_nop 14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14820/* end confdefs.h. */ 14821int i; 14822int 14823main (void) 14824{ 14825 14826 ; 14827 return 0; 14828} 14829_ACEOF 14830if ac_fn_c_try_link "$LINENO" 14831then : 14832 eval $cacheid=yes 14833else $as_nop 14834 eval $cacheid=no 14835fi 14836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14837 conftest$ac_exeext conftest.$ac_ext 14838fi 14839 14840 14841 CFLAGS="$xorg_testset_save_CFLAGS" 14842 14843 eval supported=\$$cacheid 14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14845printf "%s\n" "$supported" >&6; } 14846 if test "$supported" = "yes" ; then 14847 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14848 found="yes" 14849 fi 14850 fi 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866xorg_testset_save_CFLAGS="$CFLAGS" 14867 14868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14872if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14873then : 14874 printf %s "(cached) " >&6 14875else $as_nop 14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14877/* end confdefs.h. */ 14878int i; 14879_ACEOF 14880if ac_fn_c_try_compile "$LINENO" 14881then : 14882 xorg_cv_cc_flag_unknown_warning_option=yes 14883else $as_nop 14884 xorg_cv_cc_flag_unknown_warning_option=no 14885fi 14886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14887fi 14888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14891 CFLAGS="$xorg_testset_save_CFLAGS" 14892fi 14893 14894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14897 fi 14898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14901if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14902then : 14903 printf %s "(cached) " >&6 14904else $as_nop 14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14906/* end confdefs.h. */ 14907int i; 14908_ACEOF 14909if ac_fn_c_try_compile "$LINENO" 14910then : 14911 xorg_cv_cc_flag_unused_command_line_argument=yes 14912else $as_nop 14913 xorg_cv_cc_flag_unused_command_line_argument=no 14914fi 14915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14916fi 14917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14920 CFLAGS="$xorg_testset_save_CFLAGS" 14921fi 14922 14923found="no" 14924 14925 if test $found = "no" ; then 14926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14928 fi 14929 14930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14932 fi 14933 14934 CFLAGS="$CFLAGS -Wmissing-noreturn" 14935 14936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14937printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14938 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14939 if eval test \${$cacheid+y} 14940then : 14941 printf %s "(cached) " >&6 14942else $as_nop 14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14944/* end confdefs.h. */ 14945int i; 14946int 14947main (void) 14948{ 14949 14950 ; 14951 return 0; 14952} 14953_ACEOF 14954if ac_fn_c_try_link "$LINENO" 14955then : 14956 eval $cacheid=yes 14957else $as_nop 14958 eval $cacheid=no 14959fi 14960rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14961 conftest$ac_exeext conftest.$ac_ext 14962fi 14963 14964 14965 CFLAGS="$xorg_testset_save_CFLAGS" 14966 14967 eval supported=\$$cacheid 14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14969printf "%s\n" "$supported" >&6; } 14970 if test "$supported" = "yes" ; then 14971 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14972 found="yes" 14973 fi 14974 fi 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990xorg_testset_save_CFLAGS="$CFLAGS" 14991 14992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14997then : 14998 printf %s "(cached) " >&6 14999else $as_nop 15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15001/* end confdefs.h. */ 15002int i; 15003_ACEOF 15004if ac_fn_c_try_compile "$LINENO" 15005then : 15006 xorg_cv_cc_flag_unknown_warning_option=yes 15007else $as_nop 15008 xorg_cv_cc_flag_unknown_warning_option=no 15009fi 15010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15011fi 15012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15015 CFLAGS="$xorg_testset_save_CFLAGS" 15016fi 15017 15018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15021 fi 15022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15026then : 15027 printf %s "(cached) " >&6 15028else $as_nop 15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15030/* end confdefs.h. */ 15031int i; 15032_ACEOF 15033if ac_fn_c_try_compile "$LINENO" 15034then : 15035 xorg_cv_cc_flag_unused_command_line_argument=yes 15036else $as_nop 15037 xorg_cv_cc_flag_unused_command_line_argument=no 15038fi 15039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15040fi 15041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15044 CFLAGS="$xorg_testset_save_CFLAGS" 15045fi 15046 15047found="no" 15048 15049 if test $found = "no" ; then 15050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15052 fi 15053 15054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15056 fi 15057 15058 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15059 15060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15061printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15062 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15063 if eval test \${$cacheid+y} 15064then : 15065 printf %s "(cached) " >&6 15066else $as_nop 15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15068/* end confdefs.h. */ 15069int i; 15070int 15071main (void) 15072{ 15073 15074 ; 15075 return 0; 15076} 15077_ACEOF 15078if ac_fn_c_try_link "$LINENO" 15079then : 15080 eval $cacheid=yes 15081else $as_nop 15082 eval $cacheid=no 15083fi 15084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15085 conftest$ac_exeext conftest.$ac_ext 15086fi 15087 15088 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090 15091 eval supported=\$$cacheid 15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15093printf "%s\n" "$supported" >&6; } 15094 if test "$supported" = "yes" ; then 15095 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15096 found="yes" 15097 fi 15098 fi 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114xorg_testset_save_CFLAGS="$CFLAGS" 15115 15116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15120if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15121then : 15122 printf %s "(cached) " >&6 15123else $as_nop 15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15125/* end confdefs.h. */ 15126int i; 15127_ACEOF 15128if ac_fn_c_try_compile "$LINENO" 15129then : 15130 xorg_cv_cc_flag_unknown_warning_option=yes 15131else $as_nop 15132 xorg_cv_cc_flag_unknown_warning_option=no 15133fi 15134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15135fi 15136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15139 CFLAGS="$xorg_testset_save_CFLAGS" 15140fi 15141 15142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15145 fi 15146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15149if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15150then : 15151 printf %s "(cached) " >&6 15152else $as_nop 15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15154/* end confdefs.h. */ 15155int i; 15156_ACEOF 15157if ac_fn_c_try_compile "$LINENO" 15158then : 15159 xorg_cv_cc_flag_unused_command_line_argument=yes 15160else $as_nop 15161 xorg_cv_cc_flag_unused_command_line_argument=no 15162fi 15163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15164fi 15165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15168 CFLAGS="$xorg_testset_save_CFLAGS" 15169fi 15170 15171found="no" 15172 15173 if test $found = "no" ; then 15174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15176 fi 15177 15178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15180 fi 15181 15182 CFLAGS="$CFLAGS -Wredundant-decls" 15183 15184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15185printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15186 cacheid=xorg_cv_cc_flag__Wredundant_decls 15187 if eval test \${$cacheid+y} 15188then : 15189 printf %s "(cached) " >&6 15190else $as_nop 15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15192/* end confdefs.h. */ 15193int i; 15194int 15195main (void) 15196{ 15197 15198 ; 15199 return 0; 15200} 15201_ACEOF 15202if ac_fn_c_try_link "$LINENO" 15203then : 15204 eval $cacheid=yes 15205else $as_nop 15206 eval $cacheid=no 15207fi 15208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15209 conftest$ac_exeext conftest.$ac_ext 15210fi 15211 15212 15213 CFLAGS="$xorg_testset_save_CFLAGS" 15214 15215 eval supported=\$$cacheid 15216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15217printf "%s\n" "$supported" >&6; } 15218 if test "$supported" = "yes" ; then 15219 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15220 found="yes" 15221 fi 15222 fi 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238xorg_testset_save_CFLAGS="$CFLAGS" 15239 15240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15244if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15245then : 15246 printf %s "(cached) " >&6 15247else $as_nop 15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249/* end confdefs.h. */ 15250int i; 15251_ACEOF 15252if ac_fn_c_try_compile "$LINENO" 15253then : 15254 xorg_cv_cc_flag_unknown_warning_option=yes 15255else $as_nop 15256 xorg_cv_cc_flag_unknown_warning_option=no 15257fi 15258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15259fi 15260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15263 CFLAGS="$xorg_testset_save_CFLAGS" 15264fi 15265 15266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15269 fi 15270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15274then : 15275 printf %s "(cached) " >&6 15276else $as_nop 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279int i; 15280_ACEOF 15281if ac_fn_c_try_compile "$LINENO" 15282then : 15283 xorg_cv_cc_flag_unused_command_line_argument=yes 15284else $as_nop 15285 xorg_cv_cc_flag_unused_command_line_argument=no 15286fi 15287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15288fi 15289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15292 CFLAGS="$xorg_testset_save_CFLAGS" 15293fi 15294 15295found="no" 15296 15297 if test $found = "no" ; then 15298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15300 fi 15301 15302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15304 fi 15305 15306 CFLAGS="$CFLAGS -Wlogical-op" 15307 15308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15309printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15310 cacheid=xorg_cv_cc_flag__Wlogical_op 15311 if eval test \${$cacheid+y} 15312then : 15313 printf %s "(cached) " >&6 15314else $as_nop 15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15316/* end confdefs.h. */ 15317int i; 15318int 15319main (void) 15320{ 15321 15322 ; 15323 return 0; 15324} 15325_ACEOF 15326if ac_fn_c_try_link "$LINENO" 15327then : 15328 eval $cacheid=yes 15329else $as_nop 15330 eval $cacheid=no 15331fi 15332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15333 conftest$ac_exeext conftest.$ac_ext 15334fi 15335 15336 15337 CFLAGS="$xorg_testset_save_CFLAGS" 15338 15339 eval supported=\$$cacheid 15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15341printf "%s\n" "$supported" >&6; } 15342 if test "$supported" = "yes" ; then 15343 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15344 found="yes" 15345 fi 15346 fi 15347 15348 15349 15350# These are currently disabled because they are noisy. They will be enabled 15351# in the future once the codebase is sufficiently modernized to silence 15352# them. For now, I don't want them to drown out the other warnings. 15353# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15354# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15355# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15356 15357# Turn some warnings into errors, so we don't accidently get successful builds 15358# when there are problems that should be fixed. 15359 15360if test "x$SELECTIVE_WERROR" = "xyes" ; then 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374xorg_testset_save_CFLAGS="$CFLAGS" 15375 15376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15380if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15381then : 15382 printf %s "(cached) " >&6 15383else $as_nop 15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15385/* end confdefs.h. */ 15386int i; 15387_ACEOF 15388if ac_fn_c_try_compile "$LINENO" 15389then : 15390 xorg_cv_cc_flag_unknown_warning_option=yes 15391else $as_nop 15392 xorg_cv_cc_flag_unknown_warning_option=no 15393fi 15394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15395fi 15396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15399 CFLAGS="$xorg_testset_save_CFLAGS" 15400fi 15401 15402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15405 fi 15406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15409if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15410then : 15411 printf %s "(cached) " >&6 15412else $as_nop 15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15414/* end confdefs.h. */ 15415int i; 15416_ACEOF 15417if ac_fn_c_try_compile "$LINENO" 15418then : 15419 xorg_cv_cc_flag_unused_command_line_argument=yes 15420else $as_nop 15421 xorg_cv_cc_flag_unused_command_line_argument=no 15422fi 15423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15424fi 15425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15428 CFLAGS="$xorg_testset_save_CFLAGS" 15429fi 15430 15431found="no" 15432 15433 if test $found = "no" ; then 15434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15436 fi 15437 15438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15440 fi 15441 15442 CFLAGS="$CFLAGS -Werror=implicit" 15443 15444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15445printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15446 cacheid=xorg_cv_cc_flag__Werror_implicit 15447 if eval test \${$cacheid+y} 15448then : 15449 printf %s "(cached) " >&6 15450else $as_nop 15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453int i; 15454int 15455main (void) 15456{ 15457 15458 ; 15459 return 0; 15460} 15461_ACEOF 15462if ac_fn_c_try_link "$LINENO" 15463then : 15464 eval $cacheid=yes 15465else $as_nop 15466 eval $cacheid=no 15467fi 15468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15469 conftest$ac_exeext conftest.$ac_ext 15470fi 15471 15472 15473 CFLAGS="$xorg_testset_save_CFLAGS" 15474 15475 eval supported=\$$cacheid 15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15477printf "%s\n" "$supported" >&6; } 15478 if test "$supported" = "yes" ; then 15479 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15480 found="yes" 15481 fi 15482 fi 15483 15484 if test $found = "no" ; then 15485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15487 fi 15488 15489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15491 fi 15492 15493 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15494 15495 { 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 15496printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15497 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15498 if eval test \${$cacheid+y} 15499then : 15500 printf %s "(cached) " >&6 15501else $as_nop 15502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15503/* end confdefs.h. */ 15504int i; 15505int 15506main (void) 15507{ 15508 15509 ; 15510 return 0; 15511} 15512_ACEOF 15513if ac_fn_c_try_link "$LINENO" 15514then : 15515 eval $cacheid=yes 15516else $as_nop 15517 eval $cacheid=no 15518fi 15519rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15520 conftest$ac_exeext conftest.$ac_ext 15521fi 15522 15523 15524 CFLAGS="$xorg_testset_save_CFLAGS" 15525 15526 eval supported=\$$cacheid 15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15528printf "%s\n" "$supported" >&6; } 15529 if test "$supported" = "yes" ; then 15530 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15531 found="yes" 15532 fi 15533 fi 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549xorg_testset_save_CFLAGS="$CFLAGS" 15550 15551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15554printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15555if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15556then : 15557 printf %s "(cached) " >&6 15558else $as_nop 15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15560/* end confdefs.h. */ 15561int i; 15562_ACEOF 15563if ac_fn_c_try_compile "$LINENO" 15564then : 15565 xorg_cv_cc_flag_unknown_warning_option=yes 15566else $as_nop 15567 xorg_cv_cc_flag_unknown_warning_option=no 15568fi 15569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15570fi 15571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15572printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15574 CFLAGS="$xorg_testset_save_CFLAGS" 15575fi 15576 15577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15579 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15580 fi 15581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15583printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15584if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15585then : 15586 printf %s "(cached) " >&6 15587else $as_nop 15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589/* end confdefs.h. */ 15590int i; 15591_ACEOF 15592if ac_fn_c_try_compile "$LINENO" 15593then : 15594 xorg_cv_cc_flag_unused_command_line_argument=yes 15595else $as_nop 15596 xorg_cv_cc_flag_unused_command_line_argument=no 15597fi 15598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15599fi 15600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15601printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15603 CFLAGS="$xorg_testset_save_CFLAGS" 15604fi 15605 15606found="no" 15607 15608 if test $found = "no" ; then 15609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15611 fi 15612 15613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15615 fi 15616 15617 CFLAGS="$CFLAGS -Werror=nonnull" 15618 15619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15620printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15621 cacheid=xorg_cv_cc_flag__Werror_nonnull 15622 if eval test \${$cacheid+y} 15623then : 15624 printf %s "(cached) " >&6 15625else $as_nop 15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15627/* end confdefs.h. */ 15628int i; 15629int 15630main (void) 15631{ 15632 15633 ; 15634 return 0; 15635} 15636_ACEOF 15637if ac_fn_c_try_link "$LINENO" 15638then : 15639 eval $cacheid=yes 15640else $as_nop 15641 eval $cacheid=no 15642fi 15643rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15644 conftest$ac_exeext conftest.$ac_ext 15645fi 15646 15647 15648 CFLAGS="$xorg_testset_save_CFLAGS" 15649 15650 eval supported=\$$cacheid 15651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15652printf "%s\n" "$supported" >&6; } 15653 if test "$supported" = "yes" ; then 15654 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15655 found="yes" 15656 fi 15657 fi 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673xorg_testset_save_CFLAGS="$CFLAGS" 15674 15675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15678printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15679if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15680then : 15681 printf %s "(cached) " >&6 15682else $as_nop 15683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15684/* end confdefs.h. */ 15685int i; 15686_ACEOF 15687if ac_fn_c_try_compile "$LINENO" 15688then : 15689 xorg_cv_cc_flag_unknown_warning_option=yes 15690else $as_nop 15691 xorg_cv_cc_flag_unknown_warning_option=no 15692fi 15693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15694fi 15695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15696printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15698 CFLAGS="$xorg_testset_save_CFLAGS" 15699fi 15700 15701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15704 fi 15705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15707printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15708if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15709then : 15710 printf %s "(cached) " >&6 15711else $as_nop 15712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15713/* end confdefs.h. */ 15714int i; 15715_ACEOF 15716if ac_fn_c_try_compile "$LINENO" 15717then : 15718 xorg_cv_cc_flag_unused_command_line_argument=yes 15719else $as_nop 15720 xorg_cv_cc_flag_unused_command_line_argument=no 15721fi 15722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15723fi 15724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15727 CFLAGS="$xorg_testset_save_CFLAGS" 15728fi 15729 15730found="no" 15731 15732 if test $found = "no" ; then 15733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15735 fi 15736 15737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15739 fi 15740 15741 CFLAGS="$CFLAGS -Werror=init-self" 15742 15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15744printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15745 cacheid=xorg_cv_cc_flag__Werror_init_self 15746 if eval test \${$cacheid+y} 15747then : 15748 printf %s "(cached) " >&6 15749else $as_nop 15750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15751/* end confdefs.h. */ 15752int i; 15753int 15754main (void) 15755{ 15756 15757 ; 15758 return 0; 15759} 15760_ACEOF 15761if ac_fn_c_try_link "$LINENO" 15762then : 15763 eval $cacheid=yes 15764else $as_nop 15765 eval $cacheid=no 15766fi 15767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15768 conftest$ac_exeext conftest.$ac_ext 15769fi 15770 15771 15772 CFLAGS="$xorg_testset_save_CFLAGS" 15773 15774 eval supported=\$$cacheid 15775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15776printf "%s\n" "$supported" >&6; } 15777 if test "$supported" = "yes" ; then 15778 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15779 found="yes" 15780 fi 15781 fi 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797xorg_testset_save_CFLAGS="$CFLAGS" 15798 15799if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15802printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15803if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15804then : 15805 printf %s "(cached) " >&6 15806else $as_nop 15807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15808/* end confdefs.h. */ 15809int i; 15810_ACEOF 15811if ac_fn_c_try_compile "$LINENO" 15812then : 15813 xorg_cv_cc_flag_unknown_warning_option=yes 15814else $as_nop 15815 xorg_cv_cc_flag_unknown_warning_option=no 15816fi 15817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15818fi 15819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15820printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15822 CFLAGS="$xorg_testset_save_CFLAGS" 15823fi 15824 15825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15828 fi 15829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15831printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15832if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15833then : 15834 printf %s "(cached) " >&6 15835else $as_nop 15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15837/* end confdefs.h. */ 15838int i; 15839_ACEOF 15840if ac_fn_c_try_compile "$LINENO" 15841then : 15842 xorg_cv_cc_flag_unused_command_line_argument=yes 15843else $as_nop 15844 xorg_cv_cc_flag_unused_command_line_argument=no 15845fi 15846rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15847fi 15848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15849printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15851 CFLAGS="$xorg_testset_save_CFLAGS" 15852fi 15853 15854found="no" 15855 15856 if test $found = "no" ; then 15857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15859 fi 15860 15861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15863 fi 15864 15865 CFLAGS="$CFLAGS -Werror=main" 15866 15867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15868printf %s "checking if $CC supports -Werror=main... " >&6; } 15869 cacheid=xorg_cv_cc_flag__Werror_main 15870 if eval test \${$cacheid+y} 15871then : 15872 printf %s "(cached) " >&6 15873else $as_nop 15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15875/* end confdefs.h. */ 15876int i; 15877int 15878main (void) 15879{ 15880 15881 ; 15882 return 0; 15883} 15884_ACEOF 15885if ac_fn_c_try_link "$LINENO" 15886then : 15887 eval $cacheid=yes 15888else $as_nop 15889 eval $cacheid=no 15890fi 15891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15892 conftest$ac_exeext conftest.$ac_ext 15893fi 15894 15895 15896 CFLAGS="$xorg_testset_save_CFLAGS" 15897 15898 eval supported=\$$cacheid 15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15900printf "%s\n" "$supported" >&6; } 15901 if test "$supported" = "yes" ; then 15902 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15903 found="yes" 15904 fi 15905 fi 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921xorg_testset_save_CFLAGS="$CFLAGS" 15922 15923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15926printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15927if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15928then : 15929 printf %s "(cached) " >&6 15930else $as_nop 15931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15932/* end confdefs.h. */ 15933int i; 15934_ACEOF 15935if ac_fn_c_try_compile "$LINENO" 15936then : 15937 xorg_cv_cc_flag_unknown_warning_option=yes 15938else $as_nop 15939 xorg_cv_cc_flag_unknown_warning_option=no 15940fi 15941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15942fi 15943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15944printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15946 CFLAGS="$xorg_testset_save_CFLAGS" 15947fi 15948 15949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15952 fi 15953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15955printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15956if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15957then : 15958 printf %s "(cached) " >&6 15959else $as_nop 15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15961/* end confdefs.h. */ 15962int i; 15963_ACEOF 15964if ac_fn_c_try_compile "$LINENO" 15965then : 15966 xorg_cv_cc_flag_unused_command_line_argument=yes 15967else $as_nop 15968 xorg_cv_cc_flag_unused_command_line_argument=no 15969fi 15970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15971fi 15972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15973printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15975 CFLAGS="$xorg_testset_save_CFLAGS" 15976fi 15977 15978found="no" 15979 15980 if test $found = "no" ; then 15981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15983 fi 15984 15985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15987 fi 15988 15989 CFLAGS="$CFLAGS -Werror=missing-braces" 15990 15991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15992printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15993 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15994 if eval test \${$cacheid+y} 15995then : 15996 printf %s "(cached) " >&6 15997else $as_nop 15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15999/* end confdefs.h. */ 16000int i; 16001int 16002main (void) 16003{ 16004 16005 ; 16006 return 0; 16007} 16008_ACEOF 16009if ac_fn_c_try_link "$LINENO" 16010then : 16011 eval $cacheid=yes 16012else $as_nop 16013 eval $cacheid=no 16014fi 16015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16016 conftest$ac_exeext conftest.$ac_ext 16017fi 16018 16019 16020 CFLAGS="$xorg_testset_save_CFLAGS" 16021 16022 eval supported=\$$cacheid 16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16024printf "%s\n" "$supported" >&6; } 16025 if test "$supported" = "yes" ; then 16026 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16027 found="yes" 16028 fi 16029 fi 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045xorg_testset_save_CFLAGS="$CFLAGS" 16046 16047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16051if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16052then : 16053 printf %s "(cached) " >&6 16054else $as_nop 16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16056/* end confdefs.h. */ 16057int i; 16058_ACEOF 16059if ac_fn_c_try_compile "$LINENO" 16060then : 16061 xorg_cv_cc_flag_unknown_warning_option=yes 16062else $as_nop 16063 xorg_cv_cc_flag_unknown_warning_option=no 16064fi 16065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16066fi 16067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16070 CFLAGS="$xorg_testset_save_CFLAGS" 16071fi 16072 16073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16076 fi 16077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16080if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16081then : 16082 printf %s "(cached) " >&6 16083else $as_nop 16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16085/* end confdefs.h. */ 16086int i; 16087_ACEOF 16088if ac_fn_c_try_compile "$LINENO" 16089then : 16090 xorg_cv_cc_flag_unused_command_line_argument=yes 16091else $as_nop 16092 xorg_cv_cc_flag_unused_command_line_argument=no 16093fi 16094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16095fi 16096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16097printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16099 CFLAGS="$xorg_testset_save_CFLAGS" 16100fi 16101 16102found="no" 16103 16104 if test $found = "no" ; then 16105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16107 fi 16108 16109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16111 fi 16112 16113 CFLAGS="$CFLAGS -Werror=sequence-point" 16114 16115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16116printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16117 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16118 if eval test \${$cacheid+y} 16119then : 16120 printf %s "(cached) " >&6 16121else $as_nop 16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16123/* end confdefs.h. */ 16124int i; 16125int 16126main (void) 16127{ 16128 16129 ; 16130 return 0; 16131} 16132_ACEOF 16133if ac_fn_c_try_link "$LINENO" 16134then : 16135 eval $cacheid=yes 16136else $as_nop 16137 eval $cacheid=no 16138fi 16139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16140 conftest$ac_exeext conftest.$ac_ext 16141fi 16142 16143 16144 CFLAGS="$xorg_testset_save_CFLAGS" 16145 16146 eval supported=\$$cacheid 16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16148printf "%s\n" "$supported" >&6; } 16149 if test "$supported" = "yes" ; then 16150 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16151 found="yes" 16152 fi 16153 fi 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169xorg_testset_save_CFLAGS="$CFLAGS" 16170 16171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16175if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16176then : 16177 printf %s "(cached) " >&6 16178else $as_nop 16179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16180/* end confdefs.h. */ 16181int i; 16182_ACEOF 16183if ac_fn_c_try_compile "$LINENO" 16184then : 16185 xorg_cv_cc_flag_unknown_warning_option=yes 16186else $as_nop 16187 xorg_cv_cc_flag_unknown_warning_option=no 16188fi 16189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16190fi 16191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16194 CFLAGS="$xorg_testset_save_CFLAGS" 16195fi 16196 16197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16200 fi 16201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16204if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16205then : 16206 printf %s "(cached) " >&6 16207else $as_nop 16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16209/* end confdefs.h. */ 16210int i; 16211_ACEOF 16212if ac_fn_c_try_compile "$LINENO" 16213then : 16214 xorg_cv_cc_flag_unused_command_line_argument=yes 16215else $as_nop 16216 xorg_cv_cc_flag_unused_command_line_argument=no 16217fi 16218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16219fi 16220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16223 CFLAGS="$xorg_testset_save_CFLAGS" 16224fi 16225 16226found="no" 16227 16228 if test $found = "no" ; then 16229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16231 fi 16232 16233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16235 fi 16236 16237 CFLAGS="$CFLAGS -Werror=return-type" 16238 16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16240printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16241 cacheid=xorg_cv_cc_flag__Werror_return_type 16242 if eval test \${$cacheid+y} 16243then : 16244 printf %s "(cached) " >&6 16245else $as_nop 16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16247/* end confdefs.h. */ 16248int i; 16249int 16250main (void) 16251{ 16252 16253 ; 16254 return 0; 16255} 16256_ACEOF 16257if ac_fn_c_try_link "$LINENO" 16258then : 16259 eval $cacheid=yes 16260else $as_nop 16261 eval $cacheid=no 16262fi 16263rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16264 conftest$ac_exeext conftest.$ac_ext 16265fi 16266 16267 16268 CFLAGS="$xorg_testset_save_CFLAGS" 16269 16270 eval supported=\$$cacheid 16271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16272printf "%s\n" "$supported" >&6; } 16273 if test "$supported" = "yes" ; then 16274 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16275 found="yes" 16276 fi 16277 fi 16278 16279 if test $found = "no" ; then 16280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16282 fi 16283 16284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16286 fi 16287 16288 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16289 16290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16291printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16292 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16293 if eval test \${$cacheid+y} 16294then : 16295 printf %s "(cached) " >&6 16296else $as_nop 16297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16298/* end confdefs.h. */ 16299int i; 16300int 16301main (void) 16302{ 16303 16304 ; 16305 return 0; 16306} 16307_ACEOF 16308if ac_fn_c_try_link "$LINENO" 16309then : 16310 eval $cacheid=yes 16311else $as_nop 16312 eval $cacheid=no 16313fi 16314rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16315 conftest$ac_exeext conftest.$ac_ext 16316fi 16317 16318 16319 CFLAGS="$xorg_testset_save_CFLAGS" 16320 16321 eval supported=\$$cacheid 16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16323printf "%s\n" "$supported" >&6; } 16324 if test "$supported" = "yes" ; then 16325 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16326 found="yes" 16327 fi 16328 fi 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344xorg_testset_save_CFLAGS="$CFLAGS" 16345 16346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16350if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16351then : 16352 printf %s "(cached) " >&6 16353else $as_nop 16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16355/* end confdefs.h. */ 16356int i; 16357_ACEOF 16358if ac_fn_c_try_compile "$LINENO" 16359then : 16360 xorg_cv_cc_flag_unknown_warning_option=yes 16361else $as_nop 16362 xorg_cv_cc_flag_unknown_warning_option=no 16363fi 16364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16365fi 16366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16369 CFLAGS="$xorg_testset_save_CFLAGS" 16370fi 16371 16372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16375 fi 16376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16379if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16380then : 16381 printf %s "(cached) " >&6 16382else $as_nop 16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16384/* end confdefs.h. */ 16385int i; 16386_ACEOF 16387if ac_fn_c_try_compile "$LINENO" 16388then : 16389 xorg_cv_cc_flag_unused_command_line_argument=yes 16390else $as_nop 16391 xorg_cv_cc_flag_unused_command_line_argument=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16394fi 16395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399fi 16400 16401found="no" 16402 16403 if test $found = "no" ; then 16404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16406 fi 16407 16408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16410 fi 16411 16412 CFLAGS="$CFLAGS -Werror=trigraphs" 16413 16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16415printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16416 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16417 if eval test \${$cacheid+y} 16418then : 16419 printf %s "(cached) " >&6 16420else $as_nop 16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16422/* end confdefs.h. */ 16423int i; 16424int 16425main (void) 16426{ 16427 16428 ; 16429 return 0; 16430} 16431_ACEOF 16432if ac_fn_c_try_link "$LINENO" 16433then : 16434 eval $cacheid=yes 16435else $as_nop 16436 eval $cacheid=no 16437fi 16438rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16439 conftest$ac_exeext conftest.$ac_ext 16440fi 16441 16442 16443 CFLAGS="$xorg_testset_save_CFLAGS" 16444 16445 eval supported=\$$cacheid 16446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16447printf "%s\n" "$supported" >&6; } 16448 if test "$supported" = "yes" ; then 16449 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16450 found="yes" 16451 fi 16452 fi 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468xorg_testset_save_CFLAGS="$CFLAGS" 16469 16470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16473printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16474if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16475then : 16476 printf %s "(cached) " >&6 16477else $as_nop 16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16479/* end confdefs.h. */ 16480int i; 16481_ACEOF 16482if ac_fn_c_try_compile "$LINENO" 16483then : 16484 xorg_cv_cc_flag_unknown_warning_option=yes 16485else $as_nop 16486 xorg_cv_cc_flag_unknown_warning_option=no 16487fi 16488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16489fi 16490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16493 CFLAGS="$xorg_testset_save_CFLAGS" 16494fi 16495 16496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16499 fi 16500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16503if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16504then : 16505 printf %s "(cached) " >&6 16506else $as_nop 16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16508/* end confdefs.h. */ 16509int i; 16510_ACEOF 16511if ac_fn_c_try_compile "$LINENO" 16512then : 16513 xorg_cv_cc_flag_unused_command_line_argument=yes 16514else $as_nop 16515 xorg_cv_cc_flag_unused_command_line_argument=no 16516fi 16517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16518fi 16519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16522 CFLAGS="$xorg_testset_save_CFLAGS" 16523fi 16524 16525found="no" 16526 16527 if test $found = "no" ; then 16528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16530 fi 16531 16532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16534 fi 16535 16536 CFLAGS="$CFLAGS -Werror=array-bounds" 16537 16538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16539printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16540 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16541 if eval test \${$cacheid+y} 16542then : 16543 printf %s "(cached) " >&6 16544else $as_nop 16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16546/* end confdefs.h. */ 16547int i; 16548int 16549main (void) 16550{ 16551 16552 ; 16553 return 0; 16554} 16555_ACEOF 16556if ac_fn_c_try_link "$LINENO" 16557then : 16558 eval $cacheid=yes 16559else $as_nop 16560 eval $cacheid=no 16561fi 16562rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16563 conftest$ac_exeext conftest.$ac_ext 16564fi 16565 16566 16567 CFLAGS="$xorg_testset_save_CFLAGS" 16568 16569 eval supported=\$$cacheid 16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16571printf "%s\n" "$supported" >&6; } 16572 if test "$supported" = "yes" ; then 16573 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16574 found="yes" 16575 fi 16576 fi 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592xorg_testset_save_CFLAGS="$CFLAGS" 16593 16594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16597printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16598if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16599then : 16600 printf %s "(cached) " >&6 16601else $as_nop 16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16603/* end confdefs.h. */ 16604int i; 16605_ACEOF 16606if ac_fn_c_try_compile "$LINENO" 16607then : 16608 xorg_cv_cc_flag_unknown_warning_option=yes 16609else $as_nop 16610 xorg_cv_cc_flag_unknown_warning_option=no 16611fi 16612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16613fi 16614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16615printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16617 CFLAGS="$xorg_testset_save_CFLAGS" 16618fi 16619 16620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16623 fi 16624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16626printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16627if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16628then : 16629 printf %s "(cached) " >&6 16630else $as_nop 16631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16632/* end confdefs.h. */ 16633int i; 16634_ACEOF 16635if ac_fn_c_try_compile "$LINENO" 16636then : 16637 xorg_cv_cc_flag_unused_command_line_argument=yes 16638else $as_nop 16639 xorg_cv_cc_flag_unused_command_line_argument=no 16640fi 16641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16642fi 16643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16646 CFLAGS="$xorg_testset_save_CFLAGS" 16647fi 16648 16649found="no" 16650 16651 if test $found = "no" ; then 16652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16654 fi 16655 16656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16658 fi 16659 16660 CFLAGS="$CFLAGS -Werror=write-strings" 16661 16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16663printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16664 cacheid=xorg_cv_cc_flag__Werror_write_strings 16665 if eval test \${$cacheid+y} 16666then : 16667 printf %s "(cached) " >&6 16668else $as_nop 16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16670/* end confdefs.h. */ 16671int i; 16672int 16673main (void) 16674{ 16675 16676 ; 16677 return 0; 16678} 16679_ACEOF 16680if ac_fn_c_try_link "$LINENO" 16681then : 16682 eval $cacheid=yes 16683else $as_nop 16684 eval $cacheid=no 16685fi 16686rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16687 conftest$ac_exeext conftest.$ac_ext 16688fi 16689 16690 16691 CFLAGS="$xorg_testset_save_CFLAGS" 16692 16693 eval supported=\$$cacheid 16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16695printf "%s\n" "$supported" >&6; } 16696 if test "$supported" = "yes" ; then 16697 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16698 found="yes" 16699 fi 16700 fi 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716xorg_testset_save_CFLAGS="$CFLAGS" 16717 16718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16722if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16723then : 16724 printf %s "(cached) " >&6 16725else $as_nop 16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16727/* end confdefs.h. */ 16728int i; 16729_ACEOF 16730if ac_fn_c_try_compile "$LINENO" 16731then : 16732 xorg_cv_cc_flag_unknown_warning_option=yes 16733else $as_nop 16734 xorg_cv_cc_flag_unknown_warning_option=no 16735fi 16736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16737fi 16738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16741 CFLAGS="$xorg_testset_save_CFLAGS" 16742fi 16743 16744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16747 fi 16748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16751if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16752then : 16753 printf %s "(cached) " >&6 16754else $as_nop 16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16756/* end confdefs.h. */ 16757int i; 16758_ACEOF 16759if ac_fn_c_try_compile "$LINENO" 16760then : 16761 xorg_cv_cc_flag_unused_command_line_argument=yes 16762else $as_nop 16763 xorg_cv_cc_flag_unused_command_line_argument=no 16764fi 16765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16766fi 16767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16770 CFLAGS="$xorg_testset_save_CFLAGS" 16771fi 16772 16773found="no" 16774 16775 if test $found = "no" ; then 16776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16778 fi 16779 16780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16782 fi 16783 16784 CFLAGS="$CFLAGS -Werror=address" 16785 16786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16787printf %s "checking if $CC supports -Werror=address... " >&6; } 16788 cacheid=xorg_cv_cc_flag__Werror_address 16789 if eval test \${$cacheid+y} 16790then : 16791 printf %s "(cached) " >&6 16792else $as_nop 16793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16794/* end confdefs.h. */ 16795int i; 16796int 16797main (void) 16798{ 16799 16800 ; 16801 return 0; 16802} 16803_ACEOF 16804if ac_fn_c_try_link "$LINENO" 16805then : 16806 eval $cacheid=yes 16807else $as_nop 16808 eval $cacheid=no 16809fi 16810rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16811 conftest$ac_exeext conftest.$ac_ext 16812fi 16813 16814 16815 CFLAGS="$xorg_testset_save_CFLAGS" 16816 16817 eval supported=\$$cacheid 16818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16819printf "%s\n" "$supported" >&6; } 16820 if test "$supported" = "yes" ; then 16821 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16822 found="yes" 16823 fi 16824 fi 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840xorg_testset_save_CFLAGS="$CFLAGS" 16841 16842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16845printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16846if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16847then : 16848 printf %s "(cached) " >&6 16849else $as_nop 16850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16851/* end confdefs.h. */ 16852int i; 16853_ACEOF 16854if ac_fn_c_try_compile "$LINENO" 16855then : 16856 xorg_cv_cc_flag_unknown_warning_option=yes 16857else $as_nop 16858 xorg_cv_cc_flag_unknown_warning_option=no 16859fi 16860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16861fi 16862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16865 CFLAGS="$xorg_testset_save_CFLAGS" 16866fi 16867 16868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16871 fi 16872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16875if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16876then : 16877 printf %s "(cached) " >&6 16878else $as_nop 16879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16880/* end confdefs.h. */ 16881int i; 16882_ACEOF 16883if ac_fn_c_try_compile "$LINENO" 16884then : 16885 xorg_cv_cc_flag_unused_command_line_argument=yes 16886else $as_nop 16887 xorg_cv_cc_flag_unused_command_line_argument=no 16888fi 16889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16890fi 16891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16892printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16894 CFLAGS="$xorg_testset_save_CFLAGS" 16895fi 16896 16897found="no" 16898 16899 if test $found = "no" ; then 16900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16902 fi 16903 16904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16906 fi 16907 16908 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16909 16910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16911printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16912 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16913 if eval test \${$cacheid+y} 16914then : 16915 printf %s "(cached) " >&6 16916else $as_nop 16917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16918/* end confdefs.h. */ 16919int i; 16920int 16921main (void) 16922{ 16923 16924 ; 16925 return 0; 16926} 16927_ACEOF 16928if ac_fn_c_try_link "$LINENO" 16929then : 16930 eval $cacheid=yes 16931else $as_nop 16932 eval $cacheid=no 16933fi 16934rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16935 conftest$ac_exeext conftest.$ac_ext 16936fi 16937 16938 16939 CFLAGS="$xorg_testset_save_CFLAGS" 16940 16941 eval supported=\$$cacheid 16942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16943printf "%s\n" "$supported" >&6; } 16944 if test "$supported" = "yes" ; then 16945 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16946 found="yes" 16947 fi 16948 fi 16949 16950 if test $found = "no" ; then 16951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16953 fi 16954 16955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16957 fi 16958 16959 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16960 16961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16962printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16963 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16964 if eval test \${$cacheid+y} 16965then : 16966 printf %s "(cached) " >&6 16967else $as_nop 16968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16969/* end confdefs.h. */ 16970int i; 16971int 16972main (void) 16973{ 16974 16975 ; 16976 return 0; 16977} 16978_ACEOF 16979if ac_fn_c_try_link "$LINENO" 16980then : 16981 eval $cacheid=yes 16982else $as_nop 16983 eval $cacheid=no 16984fi 16985rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16986 conftest$ac_exeext conftest.$ac_ext 16987fi 16988 16989 16990 CFLAGS="$xorg_testset_save_CFLAGS" 16991 16992 eval supported=\$$cacheid 16993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16994printf "%s\n" "$supported" >&6; } 16995 if test "$supported" = "yes" ; then 16996 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16997 found="yes" 16998 fi 16999 fi 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015xorg_testset_save_CFLAGS="$CFLAGS" 17016 17017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17021if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17022then : 17023 printf %s "(cached) " >&6 17024else $as_nop 17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17026/* end confdefs.h. */ 17027int i; 17028_ACEOF 17029if ac_fn_c_try_compile "$LINENO" 17030then : 17031 xorg_cv_cc_flag_unknown_warning_option=yes 17032else $as_nop 17033 xorg_cv_cc_flag_unknown_warning_option=no 17034fi 17035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17036fi 17037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17038printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17040 CFLAGS="$xorg_testset_save_CFLAGS" 17041fi 17042 17043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17046 fi 17047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17049printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17050if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17051then : 17052 printf %s "(cached) " >&6 17053else $as_nop 17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055/* end confdefs.h. */ 17056int i; 17057_ACEOF 17058if ac_fn_c_try_compile "$LINENO" 17059then : 17060 xorg_cv_cc_flag_unused_command_line_argument=yes 17061else $as_nop 17062 xorg_cv_cc_flag_unused_command_line_argument=no 17063fi 17064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17065fi 17066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17067printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17069 CFLAGS="$xorg_testset_save_CFLAGS" 17070fi 17071 17072found="no" 17073 17074 if test $found = "no" ; then 17075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17077 fi 17078 17079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17081 fi 17082 17083 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17084 17085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17086printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17087 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17088 if eval test \${$cacheid+y} 17089then : 17090 printf %s "(cached) " >&6 17091else $as_nop 17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17093/* end confdefs.h. */ 17094int i; 17095int 17096main (void) 17097{ 17098 17099 ; 17100 return 0; 17101} 17102_ACEOF 17103if ac_fn_c_try_link "$LINENO" 17104then : 17105 eval $cacheid=yes 17106else $as_nop 17107 eval $cacheid=no 17108fi 17109rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17110 conftest$ac_exeext conftest.$ac_ext 17111fi 17112 17113 17114 CFLAGS="$xorg_testset_save_CFLAGS" 17115 17116 eval supported=\$$cacheid 17117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17118printf "%s\n" "$supported" >&6; } 17119 if test "$supported" = "yes" ; then 17120 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17121 found="yes" 17122 fi 17123 fi 17124 17125 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17126else 17127{ 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 17128printf "%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;} 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142xorg_testset_save_CFLAGS="$CFLAGS" 17143 17144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17147printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17148if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17149then : 17150 printf %s "(cached) " >&6 17151else $as_nop 17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17153/* end confdefs.h. */ 17154int i; 17155_ACEOF 17156if ac_fn_c_try_compile "$LINENO" 17157then : 17158 xorg_cv_cc_flag_unknown_warning_option=yes 17159else $as_nop 17160 xorg_cv_cc_flag_unknown_warning_option=no 17161fi 17162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17163fi 17164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17165printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17167 CFLAGS="$xorg_testset_save_CFLAGS" 17168fi 17169 17170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17173 fi 17174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17176printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17177if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17178then : 17179 printf %s "(cached) " >&6 17180else $as_nop 17181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17182/* end confdefs.h. */ 17183int i; 17184_ACEOF 17185if ac_fn_c_try_compile "$LINENO" 17186then : 17187 xorg_cv_cc_flag_unused_command_line_argument=yes 17188else $as_nop 17189 xorg_cv_cc_flag_unused_command_line_argument=no 17190fi 17191rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17192fi 17193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17194printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17196 CFLAGS="$xorg_testset_save_CFLAGS" 17197fi 17198 17199found="no" 17200 17201 if test $found = "no" ; then 17202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17204 fi 17205 17206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17208 fi 17209 17210 CFLAGS="$CFLAGS -Wimplicit" 17211 17212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17213printf %s "checking if $CC supports -Wimplicit... " >&6; } 17214 cacheid=xorg_cv_cc_flag__Wimplicit 17215 if eval test \${$cacheid+y} 17216then : 17217 printf %s "(cached) " >&6 17218else $as_nop 17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17220/* end confdefs.h. */ 17221int i; 17222int 17223main (void) 17224{ 17225 17226 ; 17227 return 0; 17228} 17229_ACEOF 17230if ac_fn_c_try_link "$LINENO" 17231then : 17232 eval $cacheid=yes 17233else $as_nop 17234 eval $cacheid=no 17235fi 17236rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17237 conftest$ac_exeext conftest.$ac_ext 17238fi 17239 17240 17241 CFLAGS="$xorg_testset_save_CFLAGS" 17242 17243 eval supported=\$$cacheid 17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17245printf "%s\n" "$supported" >&6; } 17246 if test "$supported" = "yes" ; then 17247 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17248 found="yes" 17249 fi 17250 fi 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266xorg_testset_save_CFLAGS="$CFLAGS" 17267 17268if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17271printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17272if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17273then : 17274 printf %s "(cached) " >&6 17275else $as_nop 17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17277/* end confdefs.h. */ 17278int i; 17279_ACEOF 17280if ac_fn_c_try_compile "$LINENO" 17281then : 17282 xorg_cv_cc_flag_unknown_warning_option=yes 17283else $as_nop 17284 xorg_cv_cc_flag_unknown_warning_option=no 17285fi 17286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17287fi 17288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17291 CFLAGS="$xorg_testset_save_CFLAGS" 17292fi 17293 17294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17297 fi 17298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17301if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17302then : 17303 printf %s "(cached) " >&6 17304else $as_nop 17305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17306/* end confdefs.h. */ 17307int i; 17308_ACEOF 17309if ac_fn_c_try_compile "$LINENO" 17310then : 17311 xorg_cv_cc_flag_unused_command_line_argument=yes 17312else $as_nop 17313 xorg_cv_cc_flag_unused_command_line_argument=no 17314fi 17315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17316fi 17317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17318printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17320 CFLAGS="$xorg_testset_save_CFLAGS" 17321fi 17322 17323found="no" 17324 17325 if test $found = "no" ; then 17326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17328 fi 17329 17330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17332 fi 17333 17334 CFLAGS="$CFLAGS -Wnonnull" 17335 17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17337printf %s "checking if $CC supports -Wnonnull... " >&6; } 17338 cacheid=xorg_cv_cc_flag__Wnonnull 17339 if eval test \${$cacheid+y} 17340then : 17341 printf %s "(cached) " >&6 17342else $as_nop 17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17344/* end confdefs.h. */ 17345int i; 17346int 17347main (void) 17348{ 17349 17350 ; 17351 return 0; 17352} 17353_ACEOF 17354if ac_fn_c_try_link "$LINENO" 17355then : 17356 eval $cacheid=yes 17357else $as_nop 17358 eval $cacheid=no 17359fi 17360rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17361 conftest$ac_exeext conftest.$ac_ext 17362fi 17363 17364 17365 CFLAGS="$xorg_testset_save_CFLAGS" 17366 17367 eval supported=\$$cacheid 17368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17369printf "%s\n" "$supported" >&6; } 17370 if test "$supported" = "yes" ; then 17371 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17372 found="yes" 17373 fi 17374 fi 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390xorg_testset_save_CFLAGS="$CFLAGS" 17391 17392if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17395printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17396if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17397then : 17398 printf %s "(cached) " >&6 17399else $as_nop 17400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17401/* end confdefs.h. */ 17402int i; 17403_ACEOF 17404if ac_fn_c_try_compile "$LINENO" 17405then : 17406 xorg_cv_cc_flag_unknown_warning_option=yes 17407else $as_nop 17408 xorg_cv_cc_flag_unknown_warning_option=no 17409fi 17410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17411fi 17412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17415 CFLAGS="$xorg_testset_save_CFLAGS" 17416fi 17417 17418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17421 fi 17422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17425if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17426then : 17427 printf %s "(cached) " >&6 17428else $as_nop 17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17430/* end confdefs.h. */ 17431int i; 17432_ACEOF 17433if ac_fn_c_try_compile "$LINENO" 17434then : 17435 xorg_cv_cc_flag_unused_command_line_argument=yes 17436else $as_nop 17437 xorg_cv_cc_flag_unused_command_line_argument=no 17438fi 17439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17440fi 17441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17442printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17444 CFLAGS="$xorg_testset_save_CFLAGS" 17445fi 17446 17447found="no" 17448 17449 if test $found = "no" ; then 17450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17452 fi 17453 17454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17456 fi 17457 17458 CFLAGS="$CFLAGS -Winit-self" 17459 17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17461printf %s "checking if $CC supports -Winit-self... " >&6; } 17462 cacheid=xorg_cv_cc_flag__Winit_self 17463 if eval test \${$cacheid+y} 17464then : 17465 printf %s "(cached) " >&6 17466else $as_nop 17467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17468/* end confdefs.h. */ 17469int i; 17470int 17471main (void) 17472{ 17473 17474 ; 17475 return 0; 17476} 17477_ACEOF 17478if ac_fn_c_try_link "$LINENO" 17479then : 17480 eval $cacheid=yes 17481else $as_nop 17482 eval $cacheid=no 17483fi 17484rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17485 conftest$ac_exeext conftest.$ac_ext 17486fi 17487 17488 17489 CFLAGS="$xorg_testset_save_CFLAGS" 17490 17491 eval supported=\$$cacheid 17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17493printf "%s\n" "$supported" >&6; } 17494 if test "$supported" = "yes" ; then 17495 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17496 found="yes" 17497 fi 17498 fi 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514xorg_testset_save_CFLAGS="$CFLAGS" 17515 17516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17519printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17520if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17521then : 17522 printf %s "(cached) " >&6 17523else $as_nop 17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17525/* end confdefs.h. */ 17526int i; 17527_ACEOF 17528if ac_fn_c_try_compile "$LINENO" 17529then : 17530 xorg_cv_cc_flag_unknown_warning_option=yes 17531else $as_nop 17532 xorg_cv_cc_flag_unknown_warning_option=no 17533fi 17534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17535fi 17536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17537printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17539 CFLAGS="$xorg_testset_save_CFLAGS" 17540fi 17541 17542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17545 fi 17546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17548printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17549if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17550then : 17551 printf %s "(cached) " >&6 17552else $as_nop 17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17554/* end confdefs.h. */ 17555int i; 17556_ACEOF 17557if ac_fn_c_try_compile "$LINENO" 17558then : 17559 xorg_cv_cc_flag_unused_command_line_argument=yes 17560else $as_nop 17561 xorg_cv_cc_flag_unused_command_line_argument=no 17562fi 17563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17564fi 17565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17566printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17568 CFLAGS="$xorg_testset_save_CFLAGS" 17569fi 17570 17571found="no" 17572 17573 if test $found = "no" ; then 17574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17576 fi 17577 17578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17580 fi 17581 17582 CFLAGS="$CFLAGS -Wmain" 17583 17584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17585printf %s "checking if $CC supports -Wmain... " >&6; } 17586 cacheid=xorg_cv_cc_flag__Wmain 17587 if eval test \${$cacheid+y} 17588then : 17589 printf %s "(cached) " >&6 17590else $as_nop 17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17592/* end confdefs.h. */ 17593int i; 17594int 17595main (void) 17596{ 17597 17598 ; 17599 return 0; 17600} 17601_ACEOF 17602if ac_fn_c_try_link "$LINENO" 17603then : 17604 eval $cacheid=yes 17605else $as_nop 17606 eval $cacheid=no 17607fi 17608rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17609 conftest$ac_exeext conftest.$ac_ext 17610fi 17611 17612 17613 CFLAGS="$xorg_testset_save_CFLAGS" 17614 17615 eval supported=\$$cacheid 17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17617printf "%s\n" "$supported" >&6; } 17618 if test "$supported" = "yes" ; then 17619 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17620 found="yes" 17621 fi 17622 fi 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638xorg_testset_save_CFLAGS="$CFLAGS" 17639 17640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17643printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17644if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17645then : 17646 printf %s "(cached) " >&6 17647else $as_nop 17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17649/* end confdefs.h. */ 17650int i; 17651_ACEOF 17652if ac_fn_c_try_compile "$LINENO" 17653then : 17654 xorg_cv_cc_flag_unknown_warning_option=yes 17655else $as_nop 17656 xorg_cv_cc_flag_unknown_warning_option=no 17657fi 17658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17659fi 17660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17663 CFLAGS="$xorg_testset_save_CFLAGS" 17664fi 17665 17666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17669 fi 17670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17673if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17674then : 17675 printf %s "(cached) " >&6 17676else $as_nop 17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17678/* end confdefs.h. */ 17679int i; 17680_ACEOF 17681if ac_fn_c_try_compile "$LINENO" 17682then : 17683 xorg_cv_cc_flag_unused_command_line_argument=yes 17684else $as_nop 17685 xorg_cv_cc_flag_unused_command_line_argument=no 17686fi 17687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17688fi 17689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17690printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17692 CFLAGS="$xorg_testset_save_CFLAGS" 17693fi 17694 17695found="no" 17696 17697 if test $found = "no" ; then 17698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17700 fi 17701 17702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17704 fi 17705 17706 CFLAGS="$CFLAGS -Wmissing-braces" 17707 17708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17709printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17710 cacheid=xorg_cv_cc_flag__Wmissing_braces 17711 if eval test \${$cacheid+y} 17712then : 17713 printf %s "(cached) " >&6 17714else $as_nop 17715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17716/* end confdefs.h. */ 17717int i; 17718int 17719main (void) 17720{ 17721 17722 ; 17723 return 0; 17724} 17725_ACEOF 17726if ac_fn_c_try_link "$LINENO" 17727then : 17728 eval $cacheid=yes 17729else $as_nop 17730 eval $cacheid=no 17731fi 17732rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17733 conftest$ac_exeext conftest.$ac_ext 17734fi 17735 17736 17737 CFLAGS="$xorg_testset_save_CFLAGS" 17738 17739 eval supported=\$$cacheid 17740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17741printf "%s\n" "$supported" >&6; } 17742 if test "$supported" = "yes" ; then 17743 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17744 found="yes" 17745 fi 17746 fi 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762xorg_testset_save_CFLAGS="$CFLAGS" 17763 17764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17767printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17768if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17769then : 17770 printf %s "(cached) " >&6 17771else $as_nop 17772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17773/* end confdefs.h. */ 17774int i; 17775_ACEOF 17776if ac_fn_c_try_compile "$LINENO" 17777then : 17778 xorg_cv_cc_flag_unknown_warning_option=yes 17779else $as_nop 17780 xorg_cv_cc_flag_unknown_warning_option=no 17781fi 17782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17783fi 17784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17785printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17787 CFLAGS="$xorg_testset_save_CFLAGS" 17788fi 17789 17790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17793 fi 17794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17796printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17797if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17798then : 17799 printf %s "(cached) " >&6 17800else $as_nop 17801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17802/* end confdefs.h. */ 17803int i; 17804_ACEOF 17805if ac_fn_c_try_compile "$LINENO" 17806then : 17807 xorg_cv_cc_flag_unused_command_line_argument=yes 17808else $as_nop 17809 xorg_cv_cc_flag_unused_command_line_argument=no 17810fi 17811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17812fi 17813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17816 CFLAGS="$xorg_testset_save_CFLAGS" 17817fi 17818 17819found="no" 17820 17821 if test $found = "no" ; then 17822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17824 fi 17825 17826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17828 fi 17829 17830 CFLAGS="$CFLAGS -Wsequence-point" 17831 17832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17833printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17834 cacheid=xorg_cv_cc_flag__Wsequence_point 17835 if eval test \${$cacheid+y} 17836then : 17837 printf %s "(cached) " >&6 17838else $as_nop 17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17840/* end confdefs.h. */ 17841int i; 17842int 17843main (void) 17844{ 17845 17846 ; 17847 return 0; 17848} 17849_ACEOF 17850if ac_fn_c_try_link "$LINENO" 17851then : 17852 eval $cacheid=yes 17853else $as_nop 17854 eval $cacheid=no 17855fi 17856rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17857 conftest$ac_exeext conftest.$ac_ext 17858fi 17859 17860 17861 CFLAGS="$xorg_testset_save_CFLAGS" 17862 17863 eval supported=\$$cacheid 17864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17865printf "%s\n" "$supported" >&6; } 17866 if test "$supported" = "yes" ; then 17867 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17868 found="yes" 17869 fi 17870 fi 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886xorg_testset_save_CFLAGS="$CFLAGS" 17887 17888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17891printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17892if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17893then : 17894 printf %s "(cached) " >&6 17895else $as_nop 17896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17897/* end confdefs.h. */ 17898int i; 17899_ACEOF 17900if ac_fn_c_try_compile "$LINENO" 17901then : 17902 xorg_cv_cc_flag_unknown_warning_option=yes 17903else $as_nop 17904 xorg_cv_cc_flag_unknown_warning_option=no 17905fi 17906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17907fi 17908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17911 CFLAGS="$xorg_testset_save_CFLAGS" 17912fi 17913 17914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17917 fi 17918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17921if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17922then : 17923 printf %s "(cached) " >&6 17924else $as_nop 17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17926/* end confdefs.h. */ 17927int i; 17928_ACEOF 17929if ac_fn_c_try_compile "$LINENO" 17930then : 17931 xorg_cv_cc_flag_unused_command_line_argument=yes 17932else $as_nop 17933 xorg_cv_cc_flag_unused_command_line_argument=no 17934fi 17935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17936fi 17937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17938printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17940 CFLAGS="$xorg_testset_save_CFLAGS" 17941fi 17942 17943found="no" 17944 17945 if test $found = "no" ; then 17946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17948 fi 17949 17950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17952 fi 17953 17954 CFLAGS="$CFLAGS -Wreturn-type" 17955 17956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17957printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17958 cacheid=xorg_cv_cc_flag__Wreturn_type 17959 if eval test \${$cacheid+y} 17960then : 17961 printf %s "(cached) " >&6 17962else $as_nop 17963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17964/* end confdefs.h. */ 17965int i; 17966int 17967main (void) 17968{ 17969 17970 ; 17971 return 0; 17972} 17973_ACEOF 17974if ac_fn_c_try_link "$LINENO" 17975then : 17976 eval $cacheid=yes 17977else $as_nop 17978 eval $cacheid=no 17979fi 17980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17981 conftest$ac_exeext conftest.$ac_ext 17982fi 17983 17984 17985 CFLAGS="$xorg_testset_save_CFLAGS" 17986 17987 eval supported=\$$cacheid 17988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17989printf "%s\n" "$supported" >&6; } 17990 if test "$supported" = "yes" ; then 17991 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17992 found="yes" 17993 fi 17994 fi 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010xorg_testset_save_CFLAGS="$CFLAGS" 18011 18012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18015printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18016if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18017then : 18018 printf %s "(cached) " >&6 18019else $as_nop 18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18021/* end confdefs.h. */ 18022int i; 18023_ACEOF 18024if ac_fn_c_try_compile "$LINENO" 18025then : 18026 xorg_cv_cc_flag_unknown_warning_option=yes 18027else $as_nop 18028 xorg_cv_cc_flag_unknown_warning_option=no 18029fi 18030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18031fi 18032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18033printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18035 CFLAGS="$xorg_testset_save_CFLAGS" 18036fi 18037 18038if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18041 fi 18042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18044printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18045if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18046then : 18047 printf %s "(cached) " >&6 18048else $as_nop 18049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18050/* end confdefs.h. */ 18051int i; 18052_ACEOF 18053if ac_fn_c_try_compile "$LINENO" 18054then : 18055 xorg_cv_cc_flag_unused_command_line_argument=yes 18056else $as_nop 18057 xorg_cv_cc_flag_unused_command_line_argument=no 18058fi 18059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18060fi 18061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18062printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18064 CFLAGS="$xorg_testset_save_CFLAGS" 18065fi 18066 18067found="no" 18068 18069 if test $found = "no" ; then 18070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18072 fi 18073 18074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18076 fi 18077 18078 CFLAGS="$CFLAGS -Wtrigraphs" 18079 18080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18081printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18082 cacheid=xorg_cv_cc_flag__Wtrigraphs 18083 if eval test \${$cacheid+y} 18084then : 18085 printf %s "(cached) " >&6 18086else $as_nop 18087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18088/* end confdefs.h. */ 18089int i; 18090int 18091main (void) 18092{ 18093 18094 ; 18095 return 0; 18096} 18097_ACEOF 18098if ac_fn_c_try_link "$LINENO" 18099then : 18100 eval $cacheid=yes 18101else $as_nop 18102 eval $cacheid=no 18103fi 18104rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18105 conftest$ac_exeext conftest.$ac_ext 18106fi 18107 18108 18109 CFLAGS="$xorg_testset_save_CFLAGS" 18110 18111 eval supported=\$$cacheid 18112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18113printf "%s\n" "$supported" >&6; } 18114 if test "$supported" = "yes" ; then 18115 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18116 found="yes" 18117 fi 18118 fi 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134xorg_testset_save_CFLAGS="$CFLAGS" 18135 18136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18140if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18141then : 18142 printf %s "(cached) " >&6 18143else $as_nop 18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18145/* end confdefs.h. */ 18146int i; 18147_ACEOF 18148if ac_fn_c_try_compile "$LINENO" 18149then : 18150 xorg_cv_cc_flag_unknown_warning_option=yes 18151else $as_nop 18152 xorg_cv_cc_flag_unknown_warning_option=no 18153fi 18154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18155fi 18156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18159 CFLAGS="$xorg_testset_save_CFLAGS" 18160fi 18161 18162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18165 fi 18166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18169if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18170then : 18171 printf %s "(cached) " >&6 18172else $as_nop 18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18174/* end confdefs.h. */ 18175int i; 18176_ACEOF 18177if ac_fn_c_try_compile "$LINENO" 18178then : 18179 xorg_cv_cc_flag_unused_command_line_argument=yes 18180else $as_nop 18181 xorg_cv_cc_flag_unused_command_line_argument=no 18182fi 18183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18184fi 18185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18188 CFLAGS="$xorg_testset_save_CFLAGS" 18189fi 18190 18191found="no" 18192 18193 if test $found = "no" ; then 18194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18196 fi 18197 18198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18200 fi 18201 18202 CFLAGS="$CFLAGS -Warray-bounds" 18203 18204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18205printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18206 cacheid=xorg_cv_cc_flag__Warray_bounds 18207 if eval test \${$cacheid+y} 18208then : 18209 printf %s "(cached) " >&6 18210else $as_nop 18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18212/* end confdefs.h. */ 18213int i; 18214int 18215main (void) 18216{ 18217 18218 ; 18219 return 0; 18220} 18221_ACEOF 18222if ac_fn_c_try_link "$LINENO" 18223then : 18224 eval $cacheid=yes 18225else $as_nop 18226 eval $cacheid=no 18227fi 18228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18229 conftest$ac_exeext conftest.$ac_ext 18230fi 18231 18232 18233 CFLAGS="$xorg_testset_save_CFLAGS" 18234 18235 eval supported=\$$cacheid 18236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18237printf "%s\n" "$supported" >&6; } 18238 if test "$supported" = "yes" ; then 18239 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18240 found="yes" 18241 fi 18242 fi 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258xorg_testset_save_CFLAGS="$CFLAGS" 18259 18260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18264if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18265then : 18266 printf %s "(cached) " >&6 18267else $as_nop 18268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18269/* end confdefs.h. */ 18270int i; 18271_ACEOF 18272if ac_fn_c_try_compile "$LINENO" 18273then : 18274 xorg_cv_cc_flag_unknown_warning_option=yes 18275else $as_nop 18276 xorg_cv_cc_flag_unknown_warning_option=no 18277fi 18278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18279fi 18280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18281printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18283 CFLAGS="$xorg_testset_save_CFLAGS" 18284fi 18285 18286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18289 fi 18290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18292printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18293if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18294then : 18295 printf %s "(cached) " >&6 18296else $as_nop 18297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18298/* end confdefs.h. */ 18299int i; 18300_ACEOF 18301if ac_fn_c_try_compile "$LINENO" 18302then : 18303 xorg_cv_cc_flag_unused_command_line_argument=yes 18304else $as_nop 18305 xorg_cv_cc_flag_unused_command_line_argument=no 18306fi 18307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18308fi 18309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18310printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18312 CFLAGS="$xorg_testset_save_CFLAGS" 18313fi 18314 18315found="no" 18316 18317 if test $found = "no" ; then 18318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18320 fi 18321 18322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18324 fi 18325 18326 CFLAGS="$CFLAGS -Wwrite-strings" 18327 18328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18329printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18330 cacheid=xorg_cv_cc_flag__Wwrite_strings 18331 if eval test \${$cacheid+y} 18332then : 18333 printf %s "(cached) " >&6 18334else $as_nop 18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18336/* end confdefs.h. */ 18337int i; 18338int 18339main (void) 18340{ 18341 18342 ; 18343 return 0; 18344} 18345_ACEOF 18346if ac_fn_c_try_link "$LINENO" 18347then : 18348 eval $cacheid=yes 18349else $as_nop 18350 eval $cacheid=no 18351fi 18352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18353 conftest$ac_exeext conftest.$ac_ext 18354fi 18355 18356 18357 CFLAGS="$xorg_testset_save_CFLAGS" 18358 18359 eval supported=\$$cacheid 18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18361printf "%s\n" "$supported" >&6; } 18362 if test "$supported" = "yes" ; then 18363 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18364 found="yes" 18365 fi 18366 fi 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382xorg_testset_save_CFLAGS="$CFLAGS" 18383 18384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18388if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18389then : 18390 printf %s "(cached) " >&6 18391else $as_nop 18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18393/* end confdefs.h. */ 18394int i; 18395_ACEOF 18396if ac_fn_c_try_compile "$LINENO" 18397then : 18398 xorg_cv_cc_flag_unknown_warning_option=yes 18399else $as_nop 18400 xorg_cv_cc_flag_unknown_warning_option=no 18401fi 18402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18403fi 18404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18405printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18407 CFLAGS="$xorg_testset_save_CFLAGS" 18408fi 18409 18410if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18413 fi 18414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18416printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18417if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18418then : 18419 printf %s "(cached) " >&6 18420else $as_nop 18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18422/* end confdefs.h. */ 18423int i; 18424_ACEOF 18425if ac_fn_c_try_compile "$LINENO" 18426then : 18427 xorg_cv_cc_flag_unused_command_line_argument=yes 18428else $as_nop 18429 xorg_cv_cc_flag_unused_command_line_argument=no 18430fi 18431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18432fi 18433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18434printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18436 CFLAGS="$xorg_testset_save_CFLAGS" 18437fi 18438 18439found="no" 18440 18441 if test $found = "no" ; then 18442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18444 fi 18445 18446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18448 fi 18449 18450 CFLAGS="$CFLAGS -Waddress" 18451 18452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18453printf %s "checking if $CC supports -Waddress... " >&6; } 18454 cacheid=xorg_cv_cc_flag__Waddress 18455 if eval test \${$cacheid+y} 18456then : 18457 printf %s "(cached) " >&6 18458else $as_nop 18459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18460/* end confdefs.h. */ 18461int i; 18462int 18463main (void) 18464{ 18465 18466 ; 18467 return 0; 18468} 18469_ACEOF 18470if ac_fn_c_try_link "$LINENO" 18471then : 18472 eval $cacheid=yes 18473else $as_nop 18474 eval $cacheid=no 18475fi 18476rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18477 conftest$ac_exeext conftest.$ac_ext 18478fi 18479 18480 18481 CFLAGS="$xorg_testset_save_CFLAGS" 18482 18483 eval supported=\$$cacheid 18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18485printf "%s\n" "$supported" >&6; } 18486 if test "$supported" = "yes" ; then 18487 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18488 found="yes" 18489 fi 18490 fi 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506xorg_testset_save_CFLAGS="$CFLAGS" 18507 18508if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18511printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18512if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18513then : 18514 printf %s "(cached) " >&6 18515else $as_nop 18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18517/* end confdefs.h. */ 18518int i; 18519_ACEOF 18520if ac_fn_c_try_compile "$LINENO" 18521then : 18522 xorg_cv_cc_flag_unknown_warning_option=yes 18523else $as_nop 18524 xorg_cv_cc_flag_unknown_warning_option=no 18525fi 18526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18527fi 18528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18529printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18531 CFLAGS="$xorg_testset_save_CFLAGS" 18532fi 18533 18534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18537 fi 18538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18540printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18541if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18542then : 18543 printf %s "(cached) " >&6 18544else $as_nop 18545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18546/* end confdefs.h. */ 18547int i; 18548_ACEOF 18549if ac_fn_c_try_compile "$LINENO" 18550then : 18551 xorg_cv_cc_flag_unused_command_line_argument=yes 18552else $as_nop 18553 xorg_cv_cc_flag_unused_command_line_argument=no 18554fi 18555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18556fi 18557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18558printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18560 CFLAGS="$xorg_testset_save_CFLAGS" 18561fi 18562 18563found="no" 18564 18565 if test $found = "no" ; then 18566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18568 fi 18569 18570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18572 fi 18573 18574 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18575 18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18577printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18578 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18579 if eval test \${$cacheid+y} 18580then : 18581 printf %s "(cached) " >&6 18582else $as_nop 18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18584/* end confdefs.h. */ 18585int i; 18586int 18587main (void) 18588{ 18589 18590 ; 18591 return 0; 18592} 18593_ACEOF 18594if ac_fn_c_try_link "$LINENO" 18595then : 18596 eval $cacheid=yes 18597else $as_nop 18598 eval $cacheid=no 18599fi 18600rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18601 conftest$ac_exeext conftest.$ac_ext 18602fi 18603 18604 18605 CFLAGS="$xorg_testset_save_CFLAGS" 18606 18607 eval supported=\$$cacheid 18608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18609printf "%s\n" "$supported" >&6; } 18610 if test "$supported" = "yes" ; then 18611 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18612 found="yes" 18613 fi 18614 fi 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630xorg_testset_save_CFLAGS="$CFLAGS" 18631 18632if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18635printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18636if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18637then : 18638 printf %s "(cached) " >&6 18639else $as_nop 18640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18641/* end confdefs.h. */ 18642int i; 18643_ACEOF 18644if ac_fn_c_try_compile "$LINENO" 18645then : 18646 xorg_cv_cc_flag_unknown_warning_option=yes 18647else $as_nop 18648 xorg_cv_cc_flag_unknown_warning_option=no 18649fi 18650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18651fi 18652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18653printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18655 CFLAGS="$xorg_testset_save_CFLAGS" 18656fi 18657 18658if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18661 fi 18662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18664printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18665if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18666then : 18667 printf %s "(cached) " >&6 18668else $as_nop 18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18670/* end confdefs.h. */ 18671int i; 18672_ACEOF 18673if ac_fn_c_try_compile "$LINENO" 18674then : 18675 xorg_cv_cc_flag_unused_command_line_argument=yes 18676else $as_nop 18677 xorg_cv_cc_flag_unused_command_line_argument=no 18678fi 18679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18680fi 18681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18682printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18684 CFLAGS="$xorg_testset_save_CFLAGS" 18685fi 18686 18687found="no" 18688 18689 if test $found = "no" ; then 18690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18692 fi 18693 18694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18696 fi 18697 18698 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18699 18700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18701printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18702 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18703 if eval test \${$cacheid+y} 18704then : 18705 printf %s "(cached) " >&6 18706else $as_nop 18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18708/* end confdefs.h. */ 18709int i; 18710int 18711main (void) 18712{ 18713 18714 ; 18715 return 0; 18716} 18717_ACEOF 18718if ac_fn_c_try_link "$LINENO" 18719then : 18720 eval $cacheid=yes 18721else $as_nop 18722 eval $cacheid=no 18723fi 18724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18725 conftest$ac_exeext conftest.$ac_ext 18726fi 18727 18728 18729 CFLAGS="$xorg_testset_save_CFLAGS" 18730 18731 eval supported=\$$cacheid 18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18733printf "%s\n" "$supported" >&6; } 18734 if test "$supported" = "yes" ; then 18735 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18736 found="yes" 18737 fi 18738 fi 18739 18740 18741fi 18742 18743 18744 18745 18746 18747 18748 18749 CWARNFLAGS="$BASE_CFLAGS" 18750 if test "x$GCC" = xyes ; then 18751 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18752 fi 18753 18754 18755 18756 18757 18758 18759 18760 18761# Check whether --enable-strict-compilation was given. 18762if test ${enable_strict_compilation+y} 18763then : 18764 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18765else $as_nop 18766 STRICT_COMPILE=no 18767fi 18768 18769 18770 18771 18772 18773 18774STRICT_CFLAGS="" 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788xorg_testset_save_CFLAGS="$CFLAGS" 18789 18790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18793printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18794if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18795then : 18796 printf %s "(cached) " >&6 18797else $as_nop 18798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18799/* end confdefs.h. */ 18800int i; 18801_ACEOF 18802if ac_fn_c_try_compile "$LINENO" 18803then : 18804 xorg_cv_cc_flag_unknown_warning_option=yes 18805else $as_nop 18806 xorg_cv_cc_flag_unknown_warning_option=no 18807fi 18808rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18809fi 18810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18811printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18813 CFLAGS="$xorg_testset_save_CFLAGS" 18814fi 18815 18816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18819 fi 18820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18822printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18823if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18824then : 18825 printf %s "(cached) " >&6 18826else $as_nop 18827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18828/* end confdefs.h. */ 18829int i; 18830_ACEOF 18831if ac_fn_c_try_compile "$LINENO" 18832then : 18833 xorg_cv_cc_flag_unused_command_line_argument=yes 18834else $as_nop 18835 xorg_cv_cc_flag_unused_command_line_argument=no 18836fi 18837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18838fi 18839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18840printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18842 CFLAGS="$xorg_testset_save_CFLAGS" 18843fi 18844 18845found="no" 18846 18847 if test $found = "no" ; then 18848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18850 fi 18851 18852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18854 fi 18855 18856 CFLAGS="$CFLAGS -pedantic" 18857 18858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18859printf %s "checking if $CC supports -pedantic... " >&6; } 18860 cacheid=xorg_cv_cc_flag__pedantic 18861 if eval test \${$cacheid+y} 18862then : 18863 printf %s "(cached) " >&6 18864else $as_nop 18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18866/* end confdefs.h. */ 18867int i; 18868int 18869main (void) 18870{ 18871 18872 ; 18873 return 0; 18874} 18875_ACEOF 18876if ac_fn_c_try_link "$LINENO" 18877then : 18878 eval $cacheid=yes 18879else $as_nop 18880 eval $cacheid=no 18881fi 18882rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18883 conftest$ac_exeext conftest.$ac_ext 18884fi 18885 18886 18887 CFLAGS="$xorg_testset_save_CFLAGS" 18888 18889 eval supported=\$$cacheid 18890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18891printf "%s\n" "$supported" >&6; } 18892 if test "$supported" = "yes" ; then 18893 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18894 found="yes" 18895 fi 18896 fi 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912xorg_testset_save_CFLAGS="$CFLAGS" 18913 18914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18917printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18918if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18919then : 18920 printf %s "(cached) " >&6 18921else $as_nop 18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18923/* end confdefs.h. */ 18924int i; 18925_ACEOF 18926if ac_fn_c_try_compile "$LINENO" 18927then : 18928 xorg_cv_cc_flag_unknown_warning_option=yes 18929else $as_nop 18930 xorg_cv_cc_flag_unknown_warning_option=no 18931fi 18932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18933fi 18934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18935printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18937 CFLAGS="$xorg_testset_save_CFLAGS" 18938fi 18939 18940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18943 fi 18944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18946printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18947if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18948then : 18949 printf %s "(cached) " >&6 18950else $as_nop 18951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18952/* end confdefs.h. */ 18953int i; 18954_ACEOF 18955if ac_fn_c_try_compile "$LINENO" 18956then : 18957 xorg_cv_cc_flag_unused_command_line_argument=yes 18958else $as_nop 18959 xorg_cv_cc_flag_unused_command_line_argument=no 18960fi 18961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18962fi 18963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18964printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18966 CFLAGS="$xorg_testset_save_CFLAGS" 18967fi 18968 18969found="no" 18970 18971 if test $found = "no" ; then 18972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18974 fi 18975 18976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18978 fi 18979 18980 CFLAGS="$CFLAGS -Werror" 18981 18982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18983printf %s "checking if $CC supports -Werror... " >&6; } 18984 cacheid=xorg_cv_cc_flag__Werror 18985 if eval test \${$cacheid+y} 18986then : 18987 printf %s "(cached) " >&6 18988else $as_nop 18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18990/* end confdefs.h. */ 18991int i; 18992int 18993main (void) 18994{ 18995 18996 ; 18997 return 0; 18998} 18999_ACEOF 19000if ac_fn_c_try_link "$LINENO" 19001then : 19002 eval $cacheid=yes 19003else $as_nop 19004 eval $cacheid=no 19005fi 19006rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19007 conftest$ac_exeext conftest.$ac_ext 19008fi 19009 19010 19011 CFLAGS="$xorg_testset_save_CFLAGS" 19012 19013 eval supported=\$$cacheid 19014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19015printf "%s\n" "$supported" >&6; } 19016 if test "$supported" = "yes" ; then 19017 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19018 found="yes" 19019 fi 19020 fi 19021 19022 if test $found = "no" ; then 19023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19025 fi 19026 19027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19029 fi 19030 19031 CFLAGS="$CFLAGS -errwarn" 19032 19033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19034printf %s "checking if $CC supports -errwarn... " >&6; } 19035 cacheid=xorg_cv_cc_flag__errwarn 19036 if eval test \${$cacheid+y} 19037then : 19038 printf %s "(cached) " >&6 19039else $as_nop 19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19041/* end confdefs.h. */ 19042int i; 19043int 19044main (void) 19045{ 19046 19047 ; 19048 return 0; 19049} 19050_ACEOF 19051if ac_fn_c_try_link "$LINENO" 19052then : 19053 eval $cacheid=yes 19054else $as_nop 19055 eval $cacheid=no 19056fi 19057rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19058 conftest$ac_exeext conftest.$ac_ext 19059fi 19060 19061 19062 CFLAGS="$xorg_testset_save_CFLAGS" 19063 19064 eval supported=\$$cacheid 19065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19066printf "%s\n" "$supported" >&6; } 19067 if test "$supported" = "yes" ; then 19068 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19069 found="yes" 19070 fi 19071 fi 19072 19073 19074 19075# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19076# activate it with -Werror, so we add it here explicitly. 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090xorg_testset_save_CFLAGS="$CFLAGS" 19091 19092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19097then : 19098 printf %s "(cached) " >&6 19099else $as_nop 19100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19101/* end confdefs.h. */ 19102int i; 19103_ACEOF 19104if ac_fn_c_try_compile "$LINENO" 19105then : 19106 xorg_cv_cc_flag_unknown_warning_option=yes 19107else $as_nop 19108 xorg_cv_cc_flag_unknown_warning_option=no 19109fi 19110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19111fi 19112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19115 CFLAGS="$xorg_testset_save_CFLAGS" 19116fi 19117 19118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19121 fi 19122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19125if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19126then : 19127 printf %s "(cached) " >&6 19128else $as_nop 19129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19130/* end confdefs.h. */ 19131int i; 19132_ACEOF 19133if ac_fn_c_try_compile "$LINENO" 19134then : 19135 xorg_cv_cc_flag_unused_command_line_argument=yes 19136else $as_nop 19137 xorg_cv_cc_flag_unused_command_line_argument=no 19138fi 19139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19140fi 19141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19144 CFLAGS="$xorg_testset_save_CFLAGS" 19145fi 19146 19147found="no" 19148 19149 if test $found = "no" ; then 19150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19152 fi 19153 19154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19156 fi 19157 19158 CFLAGS="$CFLAGS -Werror=attributes" 19159 19160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19161printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19162 cacheid=xorg_cv_cc_flag__Werror_attributes 19163 if eval test \${$cacheid+y} 19164then : 19165 printf %s "(cached) " >&6 19166else $as_nop 19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19168/* end confdefs.h. */ 19169int i; 19170int 19171main (void) 19172{ 19173 19174 ; 19175 return 0; 19176} 19177_ACEOF 19178if ac_fn_c_try_link "$LINENO" 19179then : 19180 eval $cacheid=yes 19181else $as_nop 19182 eval $cacheid=no 19183fi 19184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19185 conftest$ac_exeext conftest.$ac_ext 19186fi 19187 19188 19189 CFLAGS="$xorg_testset_save_CFLAGS" 19190 19191 eval supported=\$$cacheid 19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19193printf "%s\n" "$supported" >&6; } 19194 if test "$supported" = "yes" ; then 19195 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19196 found="yes" 19197 fi 19198 fi 19199 19200 19201 19202if test "x$STRICT_COMPILE" = "xyes"; then 19203 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19204 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19205fi 19206 19207 19208 19209 19210 19211 19212cat >>confdefs.h <<_ACEOF 19213#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19214_ACEOF 19215 19216 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19217 if test "x$PVM" = "x"; then 19218 PVM="0" 19219 fi 19220 19221printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19222 19223 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19224 if test "x$PVP" = "x"; then 19225 PVP="0" 19226 fi 19227 19228printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19229 19230 19231 19232CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19233mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19234|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19235touch \$(top_srcdir)/ChangeLog; \ 19236echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19237 19238 19239 19240 19241macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19242INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19243mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19244|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19245touch \$(top_srcdir)/INSTALL; \ 19246echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19247 19248 19249 19250 19251 19252 19253case $host_os in 19254 solaris*) 19255 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19256 # check for a man page file found in later versions that use 19257 # traditional section numbers instead 19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19259printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19260if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19261then : 19262 printf %s "(cached) " >&6 19263else $as_nop 19264 test "$cross_compiling" = yes && 19265 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19266if test -r "/usr/share/man/man7/attributes.7"; then 19267 ac_cv_file__usr_share_man_man7_attributes_7=yes 19268else 19269 ac_cv_file__usr_share_man_man7_attributes_7=no 19270fi 19271fi 19272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19273printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19274if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19275then : 19276 SYSV_MAN_SECTIONS=false 19277else $as_nop 19278 SYSV_MAN_SECTIONS=true 19279fi 19280 19281 ;; 19282 *) SYSV_MAN_SECTIONS=false ;; 19283esac 19284 19285if test x$APP_MAN_SUFFIX = x ; then 19286 APP_MAN_SUFFIX=1 19287fi 19288if test x$APP_MAN_DIR = x ; then 19289 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19290fi 19291 19292if test x$LIB_MAN_SUFFIX = x ; then 19293 LIB_MAN_SUFFIX=3 19294fi 19295if test x$LIB_MAN_DIR = x ; then 19296 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19297fi 19298 19299if test x$FILE_MAN_SUFFIX = x ; then 19300 case $SYSV_MAN_SECTIONS in 19301 true) FILE_MAN_SUFFIX=4 ;; 19302 *) FILE_MAN_SUFFIX=5 ;; 19303 esac 19304fi 19305if test x$FILE_MAN_DIR = x ; then 19306 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19307fi 19308 19309if test x$MISC_MAN_SUFFIX = x ; then 19310 case $SYSV_MAN_SECTIONS in 19311 true) MISC_MAN_SUFFIX=5 ;; 19312 *) MISC_MAN_SUFFIX=7 ;; 19313 esac 19314fi 19315if test x$MISC_MAN_DIR = x ; then 19316 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19317fi 19318 19319if test x$DRIVER_MAN_SUFFIX = x ; then 19320 case $SYSV_MAN_SECTIONS in 19321 true) DRIVER_MAN_SUFFIX=7 ;; 19322 *) DRIVER_MAN_SUFFIX=4 ;; 19323 esac 19324fi 19325if test x$DRIVER_MAN_DIR = x ; then 19326 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19327fi 19328 19329if test x$ADMIN_MAN_SUFFIX = x ; then 19330 case $SYSV_MAN_SECTIONS in 19331 true) ADMIN_MAN_SUFFIX=1m ;; 19332 *) ADMIN_MAN_SUFFIX=8 ;; 19333 esac 19334fi 19335if test x$ADMIN_MAN_DIR = x ; then 19336 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19337fi 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353XORG_MAN_PAGE="X Version 11" 19354 19355MAN_SUBSTS="\ 19356 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19357 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19358 -e 's|__xservername__|Xorg|g' \ 19359 -e 's|__xconfigfile__|xorg.conf|g' \ 19360 -e 's|__projectroot__|\$(prefix)|g' \ 19361 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19362 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19363 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19364 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19365 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19366 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19367 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19368 19369 19370 19371# Check whether --enable-silent-rules was given. 19372if test ${enable_silent_rules+y} 19373then : 19374 enableval=$enable_silent_rules; 19375fi 19376 19377case $enable_silent_rules in # ((( 19378 yes) AM_DEFAULT_VERBOSITY=0;; 19379 no) AM_DEFAULT_VERBOSITY=1;; 19380 *) AM_DEFAULT_VERBOSITY=0;; 19381esac 19382am_make=${MAKE-make} 19383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19384printf %s "checking whether $am_make supports nested variables... " >&6; } 19385if test ${am_cv_make_support_nested_variables+y} 19386then : 19387 printf %s "(cached) " >&6 19388else $as_nop 19389 if printf "%s\n" 'TRUE=$(BAR$(V)) 19390BAR0=false 19391BAR1=true 19392V=1 19393am__doit: 19394 @$(TRUE) 19395.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19396 am_cv_make_support_nested_variables=yes 19397else 19398 am_cv_make_support_nested_variables=no 19399fi 19400fi 19401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19402printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19403if test $am_cv_make_support_nested_variables = yes; then 19404 AM_V='$(V)' 19405 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19406else 19407 AM_V=$AM_DEFAULT_VERBOSITY 19408 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19409fi 19410AM_BACKSLASH='\' 19411 19412 19413 19414 19415 19416 19417 19418 19419# Check whether --with-lint was given. 19420if test ${with_lint+y} 19421then : 19422 withval=$with_lint; use_lint=$withval 19423else $as_nop 19424 use_lint=no 19425fi 19426 19427 19428# Obtain platform specific info like program name and options 19429# The lint program on FreeBSD and NetBSD is different from the one on Solaris 19430case $host_os in 19431 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19432 lint_name=splint 19433 lint_options="-badflag" 19434 ;; 19435 *freebsd* | *netbsd*) 19436 lint_name=lint 19437 lint_options="-u -b" 19438 ;; 19439 *solaris*) 19440 lint_name=lint 19441 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19442 ;; 19443esac 19444 19445# Test for the presence of the program (either guessed by the code or spelled out by the user) 19446if test "x$use_lint" = x"yes" ; then 19447 # Extract the first word of "$lint_name", so it can be a program name with args. 19448set dummy $lint_name; ac_word=$2 19449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19450printf %s "checking for $ac_word... " >&6; } 19451if test ${ac_cv_path_LINT+y} 19452then : 19453 printf %s "(cached) " >&6 19454else $as_nop 19455 case $LINT in 19456 [\\/]* | ?:[\\/]*) 19457 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19458 ;; 19459 *) 19460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19461for as_dir in $PATH 19462do 19463 IFS=$as_save_IFS 19464 case $as_dir in #((( 19465 '') as_dir=./ ;; 19466 */) ;; 19467 *) as_dir=$as_dir/ ;; 19468 esac 19469 for ac_exec_ext in '' $ac_executable_extensions; do 19470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19471 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 19472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19473 break 2 19474 fi 19475done 19476 done 19477IFS=$as_save_IFS 19478 19479 ;; 19480esac 19481fi 19482LINT=$ac_cv_path_LINT 19483if test -n "$LINT"; then 19484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 19485printf "%s\n" "$LINT" >&6; } 19486else 19487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19488printf "%s\n" "no" >&6; } 19489fi 19490 19491 19492 if test "x$LINT" = "x"; then 19493 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 19494 fi 19495elif test "x$use_lint" = x"no" ; then 19496 if test "x$LINT" != "x"; then 19497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 19498printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 19499 fi 19500else 19501 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 19502fi 19503 19504# User supplied flags override default flags 19505if test "x$LINT_FLAGS" != "x"; then 19506 lint_options=$LINT_FLAGS 19507fi 19508 19509LINT_FLAGS=$lint_options 19510 19511 if test "x$LINT" != x; then 19512 LINT_TRUE= 19513 LINT_FALSE='#' 19514else 19515 LINT_TRUE='#' 19516 LINT_FALSE= 19517fi 19518 19519 19520 19521LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}" 19522 19523# Checks for typedefs, structures, and compiler characteristics. 19524# Check whether --enable-largefile was given. 19525if test ${enable_largefile+y} 19526then : 19527 enableval=$enable_largefile; 19528fi 19529 19530if test "$enable_largefile" != no; then 19531 19532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 19533printf %s "checking for special C compiler options needed for large files... " >&6; } 19534if test ${ac_cv_sys_largefile_CC+y} 19535then : 19536 printf %s "(cached) " >&6 19537else $as_nop 19538 ac_cv_sys_largefile_CC=no 19539 if test "$GCC" != yes; then 19540 ac_save_CC=$CC 19541 while :; do 19542 # IRIX 6.2 and later do not support large files by default, 19543 # so use the C compiler's -n32 option if that helps. 19544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19545/* end confdefs.h. */ 19546#include <sys/types.h> 19547 /* Check that off_t can represent 2**63 - 1 correctly. 19548 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19549 since some C++ compilers masquerading as C compilers 19550 incorrectly reject 9223372036854775807. */ 19551#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19553 && LARGE_OFF_T % 2147483647 == 1) 19554 ? 1 : -1]; 19555int 19556main (void) 19557{ 19558 19559 ; 19560 return 0; 19561} 19562_ACEOF 19563 if ac_fn_c_try_compile "$LINENO" 19564then : 19565 break 19566fi 19567rm -f core conftest.err conftest.$ac_objext conftest.beam 19568 CC="$CC -n32" 19569 if ac_fn_c_try_compile "$LINENO" 19570then : 19571 ac_cv_sys_largefile_CC=' -n32'; break 19572fi 19573rm -f core conftest.err conftest.$ac_objext conftest.beam 19574 break 19575 done 19576 CC=$ac_save_CC 19577 rm -f conftest.$ac_ext 19578 fi 19579fi 19580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 19581printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 19582 if test "$ac_cv_sys_largefile_CC" != no; then 19583 CC=$CC$ac_cv_sys_largefile_CC 19584 fi 19585 19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 19587printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 19588if test ${ac_cv_sys_file_offset_bits+y} 19589then : 19590 printf %s "(cached) " >&6 19591else $as_nop 19592 while :; do 19593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19594/* end confdefs.h. */ 19595#include <sys/types.h> 19596 /* Check that off_t can represent 2**63 - 1 correctly. 19597 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19598 since some C++ compilers masquerading as C compilers 19599 incorrectly reject 9223372036854775807. */ 19600#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19601 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19602 && LARGE_OFF_T % 2147483647 == 1) 19603 ? 1 : -1]; 19604int 19605main (void) 19606{ 19607 19608 ; 19609 return 0; 19610} 19611_ACEOF 19612if ac_fn_c_try_compile "$LINENO" 19613then : 19614 ac_cv_sys_file_offset_bits=no; break 19615fi 19616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19618/* end confdefs.h. */ 19619#define _FILE_OFFSET_BITS 64 19620#include <sys/types.h> 19621 /* Check that off_t can represent 2**63 - 1 correctly. 19622 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19623 since some C++ compilers masquerading as C compilers 19624 incorrectly reject 9223372036854775807. */ 19625#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19627 && LARGE_OFF_T % 2147483647 == 1) 19628 ? 1 : -1]; 19629int 19630main (void) 19631{ 19632 19633 ; 19634 return 0; 19635} 19636_ACEOF 19637if ac_fn_c_try_compile "$LINENO" 19638then : 19639 ac_cv_sys_file_offset_bits=64; break 19640fi 19641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19642 ac_cv_sys_file_offset_bits=unknown 19643 break 19644done 19645fi 19646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 19647printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 19648case $ac_cv_sys_file_offset_bits in #( 19649 no | unknown) ;; 19650 *) 19651printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 19652;; 19653esac 19654rm -rf conftest* 19655 if test $ac_cv_sys_file_offset_bits = unknown; then 19656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 19657printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 19658if test ${ac_cv_sys_large_files+y} 19659then : 19660 printf %s "(cached) " >&6 19661else $as_nop 19662 while :; do 19663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19664/* end confdefs.h. */ 19665#include <sys/types.h> 19666 /* Check that off_t can represent 2**63 - 1 correctly. 19667 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19668 since some C++ compilers masquerading as C compilers 19669 incorrectly reject 9223372036854775807. */ 19670#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19672 && LARGE_OFF_T % 2147483647 == 1) 19673 ? 1 : -1]; 19674int 19675main (void) 19676{ 19677 19678 ; 19679 return 0; 19680} 19681_ACEOF 19682if ac_fn_c_try_compile "$LINENO" 19683then : 19684 ac_cv_sys_large_files=no; break 19685fi 19686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19688/* end confdefs.h. */ 19689#define _LARGE_FILES 1 19690#include <sys/types.h> 19691 /* Check that off_t can represent 2**63 - 1 correctly. 19692 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19693 since some C++ compilers masquerading as C compilers 19694 incorrectly reject 9223372036854775807. */ 19695#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19697 && LARGE_OFF_T % 2147483647 == 1) 19698 ? 1 : -1]; 19699int 19700main (void) 19701{ 19702 19703 ; 19704 return 0; 19705} 19706_ACEOF 19707if ac_fn_c_try_compile "$LINENO" 19708then : 19709 ac_cv_sys_large_files=1; break 19710fi 19711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19712 ac_cv_sys_large_files=unknown 19713 break 19714done 19715fi 19716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 19717printf "%s\n" "$ac_cv_sys_large_files" >&6; } 19718case $ac_cv_sys_large_files in #( 19719 no | unknown) ;; 19720 *) 19721printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 19722;; 19723esac 19724rm -rf conftest* 19725 fi 19726fi 19727 19728 19729 19730# Check whether --enable-futex was given. 19731if test ${enable_futex+y} 19732then : 19733 enableval=$enable_futex; FUTEX=$enableval 19734else $as_nop 19735 FUTEX=auto 19736fi 19737 19738 19739if test "x$FUTEX" = "xauto"; then 19740 ac_fn_c_check_header_compile "$LINENO" "linux/futex.h" "ac_cv_header_linux_futex_h" "$ac_includes_default" 19741if test "x$ac_cv_header_linux_futex_h" = xyes 19742then : 19743 FUTEX=yes 19744fi 19745 19746fi 19747 19748if test "x$FUTEX" = "xauto"; then 19749 ac_fn_c_check_header_compile "$LINENO" "sys/umtx.h" "ac_cv_header_sys_umtx_h" "#include <errno.h> 19750 #include <sys/types.h> 19751" 19752if test "x$ac_cv_header_sys_umtx_h" = xyes 19753then : 19754 FUTEX=yes 19755else $as_nop 19756 FUTEX=no 19757fi 19758 19759 if test "x$FUTEX" = "xyes"; then 19760 19761printf "%s\n" "#define HAVE_UMTX 1" >>confdefs.h 19762 19763 fi 19764fi 19765 19766if test "x$FUTEX" = "xyes"; then 19767 PTHREAD=no 19768 19769printf "%s\n" "#define HAVE_FUTEX 1" >>confdefs.h 19770 19771else 19772 PTHREAD=yes 19773 19774printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h 19775 19776fi 19777 19778PTHREAD_LIBS= 19779if test "x$PTHREAD" = "xyes"; then 19780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 19781printf %s "checking for pthread_create in -lpthread... " >&6; } 19782if test ${ac_cv_lib_pthread_pthread_create+y} 19783then : 19784 printf %s "(cached) " >&6 19785else $as_nop 19786 ac_check_lib_save_LIBS=$LIBS 19787LIBS="-lpthread $LIBS" 19788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19789/* end confdefs.h. */ 19790 19791/* Override any GCC internal prototype to avoid an error. 19792 Use char because int might match the return type of a GCC 19793 builtin and then its argument prototype would still apply. 19794 The 'extern "C"' is for builds by C++ compilers; 19795 although this is not generally supported in C code supporting it here 19796 has little cost and some practical benefit (sr 110532). */ 19797#ifdef __cplusplus 19798extern "C" 19799#endif 19800char pthread_create (void); 19801int 19802main (void) 19803{ 19804return pthread_create (); 19805 ; 19806 return 0; 19807} 19808_ACEOF 19809if ac_fn_c_try_link "$LINENO" 19810then : 19811 ac_cv_lib_pthread_pthread_create=yes 19812else $as_nop 19813 ac_cv_lib_pthread_pthread_create=no 19814fi 19815rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19816 conftest$ac_exeext conftest.$ac_ext 19817LIBS=$ac_check_lib_save_LIBS 19818fi 19819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 19820printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } 19821if test "x$ac_cv_lib_pthread_pthread_create" = xyes 19822then : 19823 PTHREAD_LIBS=-lpthread 19824else $as_nop 19825 PTHREAD_LIBS= 19826fi 19827 19828fi 19829 19830 19831 19832 if test x"$FUTEX" = xyes; then 19833 FUTEX_TRUE= 19834 FUTEX_FALSE='#' 19835else 19836 FUTEX_TRUE='#' 19837 FUTEX_FALSE= 19838fi 19839 19840 if test x"$PTHREAD" = xyes; then 19841 PTHREAD_TRUE= 19842 PTHREAD_FALSE='#' 19843else 19844 PTHREAD_TRUE='#' 19845 PTHREAD_FALSE= 19846fi 19847 19848 19849 19850pkg_failed=no 19851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5 19852printf %s "checking for XPROTO... " >&6; } 19853 19854if test -n "$XPROTO_CFLAGS"; then 19855 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS" 19856 elif test -n "$PKG_CONFIG"; then 19857 if test -n "$PKG_CONFIG" && \ 19858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 19859 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 19860 ac_status=$? 19861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19862 test $ac_status = 0; }; then 19863 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 19864 test "x$?" != "x0" && pkg_failed=yes 19865else 19866 pkg_failed=yes 19867fi 19868 else 19869 pkg_failed=untried 19870fi 19871if test -n "$XPROTO_LIBS"; then 19872 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS" 19873 elif test -n "$PKG_CONFIG"; then 19874 if test -n "$PKG_CONFIG" && \ 19875 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 19876 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 19877 ac_status=$? 19878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19879 test $ac_status = 0; }; then 19880 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 19881 test "x$?" != "x0" && pkg_failed=yes 19882else 19883 pkg_failed=yes 19884fi 19885 else 19886 pkg_failed=untried 19887fi 19888 19889 19890 19891if test $pkg_failed = yes; then 19892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19893printf "%s\n" "no" >&6; } 19894 19895if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19896 _pkg_short_errors_supported=yes 19897else 19898 _pkg_short_errors_supported=no 19899fi 19900 if test $_pkg_short_errors_supported = yes; then 19901 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1` 19902 else 19903 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1` 19904 fi 19905 # Put the nasty error message in config.log where it belongs 19906 echo "$XPROTO_PKG_ERRORS" >&5 19907 19908 as_fn_error $? "Package requirements (xproto) were not met: 19909 19910$XPROTO_PKG_ERRORS 19911 19912Consider adjusting the PKG_CONFIG_PATH environment variable if you 19913installed software in a non-standard prefix. 19914 19915Alternatively, you may set the environment variables XPROTO_CFLAGS 19916and XPROTO_LIBS to avoid the need to call pkg-config. 19917See the pkg-config man page for more details." "$LINENO" 5 19918elif test $pkg_failed = untried; then 19919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19920printf "%s\n" "no" >&6; } 19921 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19922printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19923as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19924is in your PATH or set the PKG_CONFIG environment variable to the full 19925path to pkg-config. 19926 19927Alternatively, you may set the environment variables XPROTO_CFLAGS 19928and XPROTO_LIBS to avoid the need to call pkg-config. 19929See the pkg-config man page for more details. 19930 19931To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19932See \`config.log' for more details" "$LINENO" 5; } 19933else 19934 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS 19935 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS 19936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19937printf "%s\n" "yes" >&6; } 19938 19939fi 19940 19941 19942 19943CFLAGS="$CFLAGS $XPROTO_CFLAGS" 19944 19945ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 19946if test "x$ac_cv_func_memfd_create" = xyes 19947then : 19948 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 19949 19950fi 19951ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 19952if test "x$ac_cv_func_mkostemp" = xyes 19953then : 19954 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 19955 19956fi 19957 19958 19959ac_fn_check_decl "$LINENO" "__NR_memfd_create" "ac_cv_have_decl___NR_memfd_create" "#include <asm/unistd.h> 19960" "$ac_c_undeclared_builtin_options" "CFLAGS" 19961if test "x$ac_cv_have_decl___NR_memfd_create" = xyes 19962then : 19963 ac_have_decl=1 19964else $as_nop 19965 ac_have_decl=0 19966fi 19967printf "%s\n" "#define HAVE_DECL___NR_MEMFD_CREATE $ac_have_decl" >>confdefs.h 19968 19969 19970 for ac_header in sys/memfd.h 19971do : 19972 ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default" 19973if test "x$ac_cv_header_sys_memfd_h" = xyes 19974then : 19975 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h 19976 19977printf "%s\n" "#define HAVE_MEMFD_H 1" >>confdefs.h 19978 19979fi 19980 19981done 19982 19983# Check whether --enable-visibility was given. 19984if test ${enable_visibility+y} 19985then : 19986 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 19987else $as_nop 19988 SYMBOL_VISIBILITY=auto 19989fi 19990 19991 19992symbol_visibility= 19993have_visibility=disabled 19994if test x$SYMBOL_VISIBILITY != xno; then 19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 19996printf %s "checking for symbol visibility support... " >&6; } 19997 if test x$GCC = xyes; then 19998 VISIBILITY_CFLAGS="-fvisibility=hidden" 19999 else 20000 if test x$SUNCC = xyes; then 20001 VISIBILITY_CFLAGS="-xldscope=hidden" 20002 else 20003 have_visibility=no 20004 fi 20005 fi 20006 if test x$have_visibility != xno; then 20007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20008/* end confdefs.h. */ 20009#include <X11/Xfuncproto.h> 20010 extern _X_HIDDEN int hidden_int; 20011 extern _X_EXPORT int public_int; 20012 extern _X_HIDDEN int hidden_int_func(void); 20013 extern _X_EXPORT int public_int_func(void); 20014int 20015main (void) 20016{ 20017 20018 ; 20019 return 0; 20020} 20021_ACEOF 20022if ac_fn_c_try_compile "$LINENO" 20023then : 20024 have_visibility=yes 20025else $as_nop 20026 have_visibility=no 20027fi 20028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20029 fi 20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 20031printf "%s\n" "$have_visibility" >&6; } 20032 if test x$have_visibility != xno; then 20033 symbol_visibility=$VISIBILITY_CFLAGS 20034 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" 20035 fi 20036fi 20037 20038 20039# Check whether --with-shared-memory-dir was given. 20040if test ${with_shared_memory_dir+y} 20041then : 20042 withval=$with_shared_memory_dir; 20043else $as_nop 20044 with_shared_memory_dir=yes 20045fi 20046 20047 20048shmdirs="/run/shm /dev/shm /var/tmp /tmp" 20049 20050case x"$with_shared_memory_dir" in 20051xyes) 20052 for dir in $shmdirs; do 20053 case x"$with_shared_memory_dir" in 20054 xyes) 20055 echo Checking temp dir "$dir" 20056 if test -d "$dir"; then 20057 with_shared_memory_dir="$dir" 20058 fi 20059 ;; 20060 esac 20061 done 20062 ;; 20063x/*) 20064 ;; 20065xno) 20066 ;; 20067*) 20068 as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5 20069 ;; 20070esac 20071 20072case x"$with_shared_memory_dir" in 20073xyes) 20074 as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5 20075 ;; 20076xno) 20077 ;; 20078*) 20079 20080printf "%s\n" "#define SHMDIR \"$with_shared_memory_dir\"" >>confdefs.h 20081 20082 ;; 20083esac 20084 20085ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile xshmfence.pc" 20086 20087cat >confcache <<\_ACEOF 20088# This file is a shell script that caches the results of configure 20089# tests run on this system so they can be shared between configure 20090# scripts and configure runs, see configure's option --config-cache. 20091# It is not useful on other systems. If it contains results you don't 20092# want to keep, you may remove or edit it. 20093# 20094# config.status only pays attention to the cache file if you give it 20095# the --recheck option to rerun configure. 20096# 20097# `ac_cv_env_foo' variables (set or unset) will be overridden when 20098# loading this file, other *unset* `ac_cv_foo' will be assigned the 20099# following values. 20100 20101_ACEOF 20102 20103# The following way of writing the cache mishandles newlines in values, 20104# but we know of no workaround that is simple, portable, and efficient. 20105# So, we kill variables containing newlines. 20106# Ultrix sh set writes to stderr and can't be redirected directly, 20107# and sets the high bit in the cache file unless we assign to the vars. 20108( 20109 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20110 eval ac_val=\$$ac_var 20111 case $ac_val in #( 20112 *${as_nl}*) 20113 case $ac_var in #( 20114 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20115printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20116 esac 20117 case $ac_var in #( 20118 _ | IFS | as_nl) ;; #( 20119 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20120 *) { eval $ac_var=; unset $ac_var;} ;; 20121 esac ;; 20122 esac 20123 done 20124 20125 (set) 2>&1 | 20126 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20127 *${as_nl}ac_space=\ *) 20128 # `set' does not quote correctly, so add quotes: double-quote 20129 # substitution turns \\\\ into \\, and sed turns \\ into \. 20130 sed -n \ 20131 "s/'/'\\\\''/g; 20132 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20133 ;; #( 20134 *) 20135 # `set' quotes correctly as required by POSIX, so do not add quotes. 20136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20137 ;; 20138 esac | 20139 sort 20140) | 20141 sed ' 20142 /^ac_cv_env_/b end 20143 t clear 20144 :clear 20145 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20146 t end 20147 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20148 :end' >>confcache 20149if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20150 if test -w "$cache_file"; then 20151 if test "x$cache_file" != "x/dev/null"; then 20152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20153printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20154 if test ! -f "$cache_file" || test -h "$cache_file"; then 20155 cat confcache >"$cache_file" 20156 else 20157 case $cache_file in #( 20158 */* | ?:*) 20159 mv -f confcache "$cache_file"$$ && 20160 mv -f "$cache_file"$$ "$cache_file" ;; #( 20161 *) 20162 mv -f confcache "$cache_file" ;; 20163 esac 20164 fi 20165 fi 20166 else 20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20168printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20169 fi 20170fi 20171rm -f confcache 20172 20173test "x$prefix" = xNONE && prefix=$ac_default_prefix 20174# Let make expand exec_prefix. 20175test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20176 20177DEFS=-DHAVE_CONFIG_H 20178 20179ac_libobjs= 20180ac_ltlibobjs= 20181U= 20182for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20183 # 1. Remove the extension, and $U if already installed. 20184 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20185 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20186 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20187 # will be set to the directory where LIBOBJS objects are built. 20188 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20189 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20190done 20191LIBOBJS=$ac_libobjs 20192 20193LTLIBOBJS=$ac_ltlibobjs 20194 20195 20196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20197printf %s "checking that generated files are newer than configure... " >&6; } 20198 if test -n "$am_sleep_pid"; then 20199 # Hide warnings about reused PIDs. 20200 wait $am_sleep_pid 2>/dev/null 20201 fi 20202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20203printf "%s\n" "done" >&6; } 20204if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20205 as_fn_error $? "conditional \"AMDEP\" was never defined. 20206Usually this means the macro was only invoked conditionally." "$LINENO" 5 20207fi 20208if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20209 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20210Usually this means the macro was only invoked conditionally." "$LINENO" 5 20211fi 20212 if test -n "$EXEEXT"; then 20213 am__EXEEXT_TRUE= 20214 am__EXEEXT_FALSE='#' 20215else 20216 am__EXEEXT_TRUE='#' 20217 am__EXEEXT_FALSE= 20218fi 20219 20220if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20221 as_fn_error $? "conditional \"LINT\" was never defined. 20222Usually this means the macro was only invoked conditionally." "$LINENO" 5 20223fi 20224if test -z "${FUTEX_TRUE}" && test -z "${FUTEX_FALSE}"; then 20225 as_fn_error $? "conditional \"FUTEX\" was never defined. 20226Usually this means the macro was only invoked conditionally." "$LINENO" 5 20227fi 20228if test -z "${PTHREAD_TRUE}" && test -z "${PTHREAD_FALSE}"; then 20229 as_fn_error $? "conditional \"PTHREAD\" was never defined. 20230Usually this means the macro was only invoked conditionally." "$LINENO" 5 20231fi 20232 20233: "${CONFIG_STATUS=./config.status}" 20234ac_write_fail=0 20235ac_clean_files_save=$ac_clean_files 20236ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20238printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20239as_write_fail=0 20240cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20241#! $SHELL 20242# Generated by $as_me. 20243# Run this file to recreate the current configuration. 20244# Compiler output produced by configure, useful for debugging 20245# configure, is in config.log if it exists. 20246 20247debug=false 20248ac_cs_recheck=false 20249ac_cs_silent=false 20250 20251SHELL=\${CONFIG_SHELL-$SHELL} 20252export SHELL 20253_ASEOF 20254cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20255## -------------------- ## 20256## M4sh Initialization. ## 20257## -------------------- ## 20258 20259# Be more Bourne compatible 20260DUALCASE=1; export DUALCASE # for MKS sh 20261as_nop=: 20262if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20263then : 20264 emulate sh 20265 NULLCMD=: 20266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20267 # is contrary to our usage. Disable this feature. 20268 alias -g '${1+"$@"}'='"$@"' 20269 setopt NO_GLOB_SUBST 20270else $as_nop 20271 case `(set -o) 2>/dev/null` in #( 20272 *posix*) : 20273 set -o posix ;; #( 20274 *) : 20275 ;; 20276esac 20277fi 20278 20279 20280 20281# Reset variables that may have inherited troublesome values from 20282# the environment. 20283 20284# IFS needs to be set, to space, tab, and newline, in precisely that order. 20285# (If _AS_PATH_WALK were called with IFS unset, it would have the 20286# side effect of setting IFS to empty, thus disabling word splitting.) 20287# Quoting is to prevent editors from complaining about space-tab. 20288as_nl=' 20289' 20290export as_nl 20291IFS=" "" $as_nl" 20292 20293PS1='$ ' 20294PS2='> ' 20295PS4='+ ' 20296 20297# Ensure predictable behavior from utilities with locale-dependent output. 20298LC_ALL=C 20299export LC_ALL 20300LANGUAGE=C 20301export LANGUAGE 20302 20303# We cannot yet rely on "unset" to work, but we need these variables 20304# to be unset--not just set to an empty or harmless value--now, to 20305# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20306# also avoids known problems related to "unset" and subshell syntax 20307# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20308for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20309do eval test \${$as_var+y} \ 20310 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20311done 20312 20313# Ensure that fds 0, 1, and 2 are open. 20314if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20315if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20316if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20317 20318# The user is always right. 20319if ${PATH_SEPARATOR+false} :; then 20320 PATH_SEPARATOR=: 20321 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20322 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20323 PATH_SEPARATOR=';' 20324 } 20325fi 20326 20327 20328# Find who we are. Look in the path if we contain no directory separator. 20329as_myself= 20330case $0 in #(( 20331 *[\\/]* ) as_myself=$0 ;; 20332 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20333for as_dir in $PATH 20334do 20335 IFS=$as_save_IFS 20336 case $as_dir in #((( 20337 '') as_dir=./ ;; 20338 */) ;; 20339 *) as_dir=$as_dir/ ;; 20340 esac 20341 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20342 done 20343IFS=$as_save_IFS 20344 20345 ;; 20346esac 20347# We did not find ourselves, most probably we were run as `sh COMMAND' 20348# in which case we are not to be found in the path. 20349if test "x$as_myself" = x; then 20350 as_myself=$0 20351fi 20352if test ! -f "$as_myself"; then 20353 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20354 exit 1 20355fi 20356 20357 20358 20359# as_fn_error STATUS ERROR [LINENO LOG_FD] 20360# ---------------------------------------- 20361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20363# script with STATUS, using 1 if that was 0. 20364as_fn_error () 20365{ 20366 as_status=$1; test $as_status -eq 0 && as_status=1 20367 if test "$4"; then 20368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20370 fi 20371 printf "%s\n" "$as_me: error: $2" >&2 20372 as_fn_exit $as_status 20373} # as_fn_error 20374 20375 20376 20377# as_fn_set_status STATUS 20378# ----------------------- 20379# Set $? to STATUS, without forking. 20380as_fn_set_status () 20381{ 20382 return $1 20383} # as_fn_set_status 20384 20385# as_fn_exit STATUS 20386# ----------------- 20387# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20388as_fn_exit () 20389{ 20390 set +e 20391 as_fn_set_status $1 20392 exit $1 20393} # as_fn_exit 20394 20395# as_fn_unset VAR 20396# --------------- 20397# Portably unset VAR. 20398as_fn_unset () 20399{ 20400 { eval $1=; unset $1;} 20401} 20402as_unset=as_fn_unset 20403 20404# as_fn_append VAR VALUE 20405# ---------------------- 20406# Append the text in VALUE to the end of the definition contained in VAR. Take 20407# advantage of any shell optimizations that allow amortized linear growth over 20408# repeated appends, instead of the typical quadratic growth present in naive 20409# implementations. 20410if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20411then : 20412 eval 'as_fn_append () 20413 { 20414 eval $1+=\$2 20415 }' 20416else $as_nop 20417 as_fn_append () 20418 { 20419 eval $1=\$$1\$2 20420 } 20421fi # as_fn_append 20422 20423# as_fn_arith ARG... 20424# ------------------ 20425# Perform arithmetic evaluation on the ARGs, and store the result in the 20426# global $as_val. Take advantage of shells that can avoid forks. The arguments 20427# must be portable across $(()) and expr. 20428if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20429then : 20430 eval 'as_fn_arith () 20431 { 20432 as_val=$(( $* )) 20433 }' 20434else $as_nop 20435 as_fn_arith () 20436 { 20437 as_val=`expr "$@" || test $? -eq 1` 20438 } 20439fi # as_fn_arith 20440 20441 20442if expr a : '\(a\)' >/dev/null 2>&1 && 20443 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20444 as_expr=expr 20445else 20446 as_expr=false 20447fi 20448 20449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20450 as_basename=basename 20451else 20452 as_basename=false 20453fi 20454 20455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20456 as_dirname=dirname 20457else 20458 as_dirname=false 20459fi 20460 20461as_me=`$as_basename -- "$0" || 20462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20463 X"$0" : 'X\(//\)$' \| \ 20464 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20465printf "%s\n" X/"$0" | 20466 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20467 s//\1/ 20468 q 20469 } 20470 /^X\/\(\/\/\)$/{ 20471 s//\1/ 20472 q 20473 } 20474 /^X\/\(\/\).*/{ 20475 s//\1/ 20476 q 20477 } 20478 s/.*/./; q'` 20479 20480# Avoid depending upon Character Ranges. 20481as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20483as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20484as_cr_digits='0123456789' 20485as_cr_alnum=$as_cr_Letters$as_cr_digits 20486 20487 20488# Determine whether it's possible to make 'echo' print without a newline. 20489# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20490# for compatibility with existing Makefiles. 20491ECHO_C= ECHO_N= ECHO_T= 20492case `echo -n x` in #((((( 20493-n*) 20494 case `echo 'xy\c'` in 20495 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20496 xy) ECHO_C='\c';; 20497 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20498 ECHO_T=' ';; 20499 esac;; 20500*) 20501 ECHO_N='-n';; 20502esac 20503 20504# For backward compatibility with old third-party macros, we provide 20505# the shell variables $as_echo and $as_echo_n. New code should use 20506# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20507as_echo='printf %s\n' 20508as_echo_n='printf %s' 20509 20510rm -f conf$$ conf$$.exe conf$$.file 20511if test -d conf$$.dir; then 20512 rm -f conf$$.dir/conf$$.file 20513else 20514 rm -f conf$$.dir 20515 mkdir conf$$.dir 2>/dev/null 20516fi 20517if (echo >conf$$.file) 2>/dev/null; then 20518 if ln -s conf$$.file conf$$ 2>/dev/null; then 20519 as_ln_s='ln -s' 20520 # ... but there are two gotchas: 20521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20523 # In both cases, we have to default to `cp -pR'. 20524 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20525 as_ln_s='cp -pR' 20526 elif ln conf$$.file conf$$ 2>/dev/null; then 20527 as_ln_s=ln 20528 else 20529 as_ln_s='cp -pR' 20530 fi 20531else 20532 as_ln_s='cp -pR' 20533fi 20534rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20535rmdir conf$$.dir 2>/dev/null 20536 20537 20538# as_fn_mkdir_p 20539# ------------- 20540# Create "$as_dir" as a directory, including parents if necessary. 20541as_fn_mkdir_p () 20542{ 20543 20544 case $as_dir in #( 20545 -*) as_dir=./$as_dir;; 20546 esac 20547 test -d "$as_dir" || eval $as_mkdir_p || { 20548 as_dirs= 20549 while :; do 20550 case $as_dir in #( 20551 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20552 *) as_qdir=$as_dir;; 20553 esac 20554 as_dirs="'$as_qdir' $as_dirs" 20555 as_dir=`$as_dirname -- "$as_dir" || 20556$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20557 X"$as_dir" : 'X\(//\)[^/]' \| \ 20558 X"$as_dir" : 'X\(//\)$' \| \ 20559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20560printf "%s\n" X"$as_dir" | 20561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20562 s//\1/ 20563 q 20564 } 20565 /^X\(\/\/\)[^/].*/{ 20566 s//\1/ 20567 q 20568 } 20569 /^X\(\/\/\)$/{ 20570 s//\1/ 20571 q 20572 } 20573 /^X\(\/\).*/{ 20574 s//\1/ 20575 q 20576 } 20577 s/.*/./; q'` 20578 test -d "$as_dir" && break 20579 done 20580 test -z "$as_dirs" || eval "mkdir $as_dirs" 20581 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20582 20583 20584} # as_fn_mkdir_p 20585if mkdir -p . 2>/dev/null; then 20586 as_mkdir_p='mkdir -p "$as_dir"' 20587else 20588 test -d ./-p && rmdir ./-p 20589 as_mkdir_p=false 20590fi 20591 20592 20593# as_fn_executable_p FILE 20594# ----------------------- 20595# Test if FILE is an executable regular file. 20596as_fn_executable_p () 20597{ 20598 test -f "$1" && test -x "$1" 20599} # as_fn_executable_p 20600as_test_x='test -x' 20601as_executable_p=as_fn_executable_p 20602 20603# Sed expression to map a string onto a valid CPP name. 20604as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20605 20606# Sed expression to map a string onto a valid variable name. 20607as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20608 20609 20610exec 6>&1 20611## ----------------------------------- ## 20612## Main body of $CONFIG_STATUS script. ## 20613## ----------------------------------- ## 20614_ASEOF 20615test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20616 20617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20618# Save the log message, to keep $0 and so on meaningful, and to 20619# report actual input values of CONFIG_FILES etc. instead of their 20620# values after options handling. 20621ac_log=" 20622This file was extended by libxshmfence $as_me 1.3.2, which was 20623generated by GNU Autoconf 2.71. Invocation command line was 20624 20625 CONFIG_FILES = $CONFIG_FILES 20626 CONFIG_HEADERS = $CONFIG_HEADERS 20627 CONFIG_LINKS = $CONFIG_LINKS 20628 CONFIG_COMMANDS = $CONFIG_COMMANDS 20629 $ $0 $@ 20630 20631on `(hostname || uname -n) 2>/dev/null | sed 1q` 20632" 20633 20634_ACEOF 20635 20636case $ac_config_files in *" 20637"*) set x $ac_config_files; shift; ac_config_files=$*;; 20638esac 20639 20640case $ac_config_headers in *" 20641"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20642esac 20643 20644 20645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20646# Files that config.status was made for. 20647config_files="$ac_config_files" 20648config_headers="$ac_config_headers" 20649config_commands="$ac_config_commands" 20650 20651_ACEOF 20652 20653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20654ac_cs_usage="\ 20655\`$as_me' instantiates files and other configuration actions 20656from templates according to the current configuration. Unless the files 20657and actions are specified as TAGs, all are instantiated by default. 20658 20659Usage: $0 [OPTION]... [TAG]... 20660 20661 -h, --help print this help, then exit 20662 -V, --version print version number and configuration settings, then exit 20663 --config print configuration, then exit 20664 -q, --quiet, --silent 20665 do not print progress messages 20666 -d, --debug don't remove temporary files 20667 --recheck update $as_me by reconfiguring in the same conditions 20668 --file=FILE[:TEMPLATE] 20669 instantiate the configuration file FILE 20670 --header=FILE[:TEMPLATE] 20671 instantiate the configuration header FILE 20672 20673Configuration files: 20674$config_files 20675 20676Configuration headers: 20677$config_headers 20678 20679Configuration commands: 20680$config_commands 20681 20682Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxshmfence/-/issues>." 20683 20684_ACEOF 20685ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20686ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20688ac_cs_config='$ac_cs_config_escaped' 20689ac_cs_version="\\ 20690libxshmfence config.status 1.3.2 20691configured by $0, generated by GNU Autoconf 2.71, 20692 with options \\"\$ac_cs_config\\" 20693 20694Copyright (C) 2021 Free Software Foundation, Inc. 20695This config.status script is free software; the Free Software Foundation 20696gives unlimited permission to copy, distribute and modify it." 20697 20698ac_pwd='$ac_pwd' 20699srcdir='$srcdir' 20700INSTALL='$INSTALL' 20701MKDIR_P='$MKDIR_P' 20702AWK='$AWK' 20703test -n "\$AWK" || AWK=awk 20704_ACEOF 20705 20706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20707# The default lists apply if the user does not specify any file. 20708ac_need_defaults=: 20709while test $# != 0 20710do 20711 case $1 in 20712 --*=?*) 20713 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20714 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20715 ac_shift=: 20716 ;; 20717 --*=) 20718 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20719 ac_optarg= 20720 ac_shift=: 20721 ;; 20722 *) 20723 ac_option=$1 20724 ac_optarg=$2 20725 ac_shift=shift 20726 ;; 20727 esac 20728 20729 case $ac_option in 20730 # Handling of the options. 20731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20732 ac_cs_recheck=: ;; 20733 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20734 printf "%s\n" "$ac_cs_version"; exit ;; 20735 --config | --confi | --conf | --con | --co | --c ) 20736 printf "%s\n" "$ac_cs_config"; exit ;; 20737 --debug | --debu | --deb | --de | --d | -d ) 20738 debug=: ;; 20739 --file | --fil | --fi | --f ) 20740 $ac_shift 20741 case $ac_optarg in 20742 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20743 '') as_fn_error $? "missing file argument" ;; 20744 esac 20745 as_fn_append CONFIG_FILES " '$ac_optarg'" 20746 ac_need_defaults=false;; 20747 --header | --heade | --head | --hea ) 20748 $ac_shift 20749 case $ac_optarg in 20750 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20751 esac 20752 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20753 ac_need_defaults=false;; 20754 --he | --h) 20755 # Conflict between --help and --header 20756 as_fn_error $? "ambiguous option: \`$1' 20757Try \`$0 --help' for more information.";; 20758 --help | --hel | -h ) 20759 printf "%s\n" "$ac_cs_usage"; exit ;; 20760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20761 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20762 ac_cs_silent=: ;; 20763 20764 # This is an error. 20765 -*) as_fn_error $? "unrecognized option: \`$1' 20766Try \`$0 --help' for more information." ;; 20767 20768 *) as_fn_append ac_config_targets " $1" 20769 ac_need_defaults=false ;; 20770 20771 esac 20772 shift 20773done 20774 20775ac_configure_extra_args= 20776 20777if $ac_cs_silent; then 20778 exec 6>/dev/null 20779 ac_configure_extra_args="$ac_configure_extra_args --silent" 20780fi 20781 20782_ACEOF 20783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20784if \$ac_cs_recheck; then 20785 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20786 shift 20787 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20788 CONFIG_SHELL='$SHELL' 20789 export CONFIG_SHELL 20790 exec "\$@" 20791fi 20792 20793_ACEOF 20794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20795exec 5>>config.log 20796{ 20797 echo 20798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20799## Running $as_me. ## 20800_ASBOX 20801 printf "%s\n" "$ac_log" 20802} >&5 20803 20804_ACEOF 20805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20806# 20807# INIT-COMMANDS 20808# 20809AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20810 20811 20812# The HP-UX ksh and POSIX shell print the target directory to stdout 20813# if CDPATH is set. 20814(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20815 20816sed_quote_subst='$sed_quote_subst' 20817double_quote_subst='$double_quote_subst' 20818delay_variable_subst='$delay_variable_subst' 20819macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20820macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20821enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20822enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20823pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20824enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20825shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20826SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20827ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20828PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20829host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20830host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20831host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20832build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20833build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20834build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20835SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20836Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20837GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20838EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20839FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20840LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20841NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20842LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20843max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20844ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20845exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20846lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20847lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20848lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20849lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20850lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20851reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20852reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20853FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20854OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20855deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20856file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20857file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20858want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20859DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20860sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20861AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20862lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20863AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20864archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20865STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20866RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20867old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20868old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20869old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20870lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20871CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20872CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20873compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20874GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20875lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20876lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20877lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20878lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20879lt_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"`' 20880lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20881nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20882lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20883lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20884objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20885MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20886lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20887lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20888lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20889lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20890lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20891need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20892MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20893DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20894NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20895LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20896OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20897OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20898libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20899shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20900extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20901archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20902enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20903export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20904whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20905compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20906old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20907old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20908archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20909archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20910module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20911module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20912with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20913allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20914no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20915hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20916hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20917hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20918hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20919hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20920hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20921hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20922inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20923link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20924always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20925export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20926exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20927include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20928prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20929postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20930file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20931variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20932need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20933need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20934version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20935runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20936shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20937shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20938libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20939library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20940soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20941install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20942postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20943postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20944finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20945finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20946hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20947sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20948configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20949configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20950hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20951enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20952enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20953enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20954old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20955striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20956 20957LTCC='$LTCC' 20958LTCFLAGS='$LTCFLAGS' 20959compiler='$compiler_DEFAULT' 20960 20961# A function that is used when there is no print builtin or printf. 20962func_fallback_echo () 20963{ 20964 eval 'cat <<_LTECHO_EOF 20965\$1 20966_LTECHO_EOF' 20967} 20968 20969# Quote evaled strings. 20970for var in SHELL \ 20971ECHO \ 20972PATH_SEPARATOR \ 20973SED \ 20974GREP \ 20975EGREP \ 20976FGREP \ 20977LD \ 20978NM \ 20979LN_S \ 20980lt_SP2NL \ 20981lt_NL2SP \ 20982reload_flag \ 20983FILECMD \ 20984OBJDUMP \ 20985deplibs_check_method \ 20986file_magic_cmd \ 20987file_magic_glob \ 20988want_nocaseglob \ 20989DLLTOOL \ 20990sharedlib_from_linklib_cmd \ 20991AR \ 20992archiver_list_spec \ 20993STRIP \ 20994RANLIB \ 20995CC \ 20996CFLAGS \ 20997compiler \ 20998lt_cv_sys_global_symbol_pipe \ 20999lt_cv_sys_global_symbol_to_cdecl \ 21000lt_cv_sys_global_symbol_to_import \ 21001lt_cv_sys_global_symbol_to_c_name_address \ 21002lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21003lt_cv_nm_interface \ 21004nm_file_list_spec \ 21005lt_cv_truncate_bin \ 21006lt_prog_compiler_no_builtin_flag \ 21007lt_prog_compiler_pic \ 21008lt_prog_compiler_wl \ 21009lt_prog_compiler_static \ 21010lt_cv_prog_compiler_c_o \ 21011need_locks \ 21012MANIFEST_TOOL \ 21013DSYMUTIL \ 21014NMEDIT \ 21015LIPO \ 21016OTOOL \ 21017OTOOL64 \ 21018shrext_cmds \ 21019export_dynamic_flag_spec \ 21020whole_archive_flag_spec \ 21021compiler_needs_object \ 21022with_gnu_ld \ 21023allow_undefined_flag \ 21024no_undefined_flag \ 21025hardcode_libdir_flag_spec \ 21026hardcode_libdir_separator \ 21027exclude_expsyms \ 21028include_expsyms \ 21029file_list_spec \ 21030variables_saved_for_relink \ 21031libname_spec \ 21032library_names_spec \ 21033soname_spec \ 21034install_override_mode \ 21035finish_eval \ 21036old_striplib \ 21037striplib; do 21038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21039 *[\\\\\\\`\\"\\\$]*) 21040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21041 ;; 21042 *) 21043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21044 ;; 21045 esac 21046done 21047 21048# Double-quote double-evaled strings. 21049for var in reload_cmds \ 21050old_postinstall_cmds \ 21051old_postuninstall_cmds \ 21052old_archive_cmds \ 21053extract_expsyms_cmds \ 21054old_archive_from_new_cmds \ 21055old_archive_from_expsyms_cmds \ 21056archive_cmds \ 21057archive_expsym_cmds \ 21058module_cmds \ 21059module_expsym_cmds \ 21060export_symbols_cmds \ 21061prelink_cmds \ 21062postlink_cmds \ 21063postinstall_cmds \ 21064postuninstall_cmds \ 21065finish_cmds \ 21066sys_lib_search_path_spec \ 21067configure_time_dlsearch_path \ 21068configure_time_lt_sys_library_path; do 21069 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21070 *[\\\\\\\`\\"\\\$]*) 21071 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21072 ;; 21073 *) 21074 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21075 ;; 21076 esac 21077done 21078 21079ac_aux_dir='$ac_aux_dir' 21080 21081# See if we are running on zsh, and set the options that allow our 21082# commands through without removal of \ escapes INIT. 21083if test -n "\${ZSH_VERSION+set}"; then 21084 setopt NO_GLOB_SUBST 21085fi 21086 21087 21088 PACKAGE='$PACKAGE' 21089 VERSION='$VERSION' 21090 RM='$RM' 21091 ofile='$ofile' 21092 21093 21094 21095 21096_ACEOF 21097 21098cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21099 21100# Handling of arguments. 21101for ac_config_target in $ac_config_targets 21102do 21103 case $ac_config_target in 21104 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21105 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21106 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21107 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21108 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21109 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21110 "xshmfence.pc") CONFIG_FILES="$CONFIG_FILES xshmfence.pc" ;; 21111 21112 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21113 esac 21114done 21115 21116 21117# If the user did not use the arguments to specify the items to instantiate, 21118# then the envvar interface is used. Set only those that are not. 21119# We use the long form for the default assignment because of an extremely 21120# bizarre bug on SunOS 4.1.3. 21121if $ac_need_defaults; then 21122 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21123 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21124 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21125fi 21126 21127# Have a temporary directory for convenience. Make it in the build tree 21128# simply because there is no reason against having it here, and in addition, 21129# creating and moving files from /tmp can sometimes cause problems. 21130# Hook for its removal unless debugging. 21131# Note that there is a small window in which the directory will not be cleaned: 21132# after its creation but before its name has been assigned to `$tmp'. 21133$debug || 21134{ 21135 tmp= ac_tmp= 21136 trap 'exit_status=$? 21137 : "${ac_tmp:=$tmp}" 21138 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21139' 0 21140 trap 'as_fn_exit 1' 1 2 13 15 21141} 21142# Create a (secure) tmp directory for tmp files. 21143 21144{ 21145 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21146 test -d "$tmp" 21147} || 21148{ 21149 tmp=./conf$$-$RANDOM 21150 (umask 077 && mkdir "$tmp") 21151} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21152ac_tmp=$tmp 21153 21154# Set up the scripts for CONFIG_FILES section. 21155# No need to generate them if there are no CONFIG_FILES. 21156# This happens for instance with `./config.status config.h'. 21157if test -n "$CONFIG_FILES"; then 21158 21159 21160ac_cr=`echo X | tr X '\015'` 21161# On cygwin, bash can eat \r inside `` if the user requested igncr. 21162# But we know of no other shell where ac_cr would be empty at this 21163# point, so we can use a bashism as a fallback. 21164if test "x$ac_cr" = x; then 21165 eval ac_cr=\$\'\\r\' 21166fi 21167ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21168if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21169 ac_cs_awk_cr='\\r' 21170else 21171 ac_cs_awk_cr=$ac_cr 21172fi 21173 21174echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21175_ACEOF 21176 21177 21178{ 21179 echo "cat >conf$$subs.awk <<_ACEOF" && 21180 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21181 echo "_ACEOF" 21182} >conf$$subs.sh || 21183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21184ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21185ac_delim='%!_!# ' 21186for ac_last_try in false false false false false :; do 21187 . ./conf$$subs.sh || 21188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21189 21190 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21191 if test $ac_delim_n = $ac_delim_num; then 21192 break 21193 elif $ac_last_try; then 21194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21195 else 21196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21197 fi 21198done 21199rm -f conf$$subs.sh 21200 21201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21202cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21203_ACEOF 21204sed -n ' 21205h 21206s/^/S["/; s/!.*/"]=/ 21207p 21208g 21209s/^[^!]*!// 21210:repl 21211t repl 21212s/'"$ac_delim"'$// 21213t delim 21214:nl 21215h 21216s/\(.\{148\}\)..*/\1/ 21217t more1 21218s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21219p 21220n 21221b repl 21222:more1 21223s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21224p 21225g 21226s/.\{148\}// 21227t nl 21228:delim 21229h 21230s/\(.\{148\}\)..*/\1/ 21231t more2 21232s/["\\]/\\&/g; s/^/"/; s/$/"/ 21233p 21234b 21235:more2 21236s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21237p 21238g 21239s/.\{148\}// 21240t delim 21241' <conf$$subs.awk | sed ' 21242/^[^""]/{ 21243 N 21244 s/\n// 21245} 21246' >>$CONFIG_STATUS || ac_write_fail=1 21247rm -f conf$$subs.awk 21248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21249_ACAWK 21250cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21251 for (key in S) S_is_set[key] = 1 21252 FS = "" 21253 21254} 21255{ 21256 line = $ 0 21257 nfields = split(line, field, "@") 21258 substed = 0 21259 len = length(field[1]) 21260 for (i = 2; i < nfields; i++) { 21261 key = field[i] 21262 keylen = length(key) 21263 if (S_is_set[key]) { 21264 value = S[key] 21265 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21266 len += length(value) + length(field[++i]) 21267 substed = 1 21268 } else 21269 len += 1 + keylen 21270 } 21271 21272 print line 21273} 21274 21275_ACAWK 21276_ACEOF 21277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21278if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21279 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21280else 21281 cat 21282fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21283 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21284_ACEOF 21285 21286# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21287# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21288# trailing colons and then remove the whole line if VPATH becomes empty 21289# (actually we leave an empty line to preserve line numbers). 21290if test "x$srcdir" = x.; then 21291 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21292h 21293s/// 21294s/^/:/ 21295s/[ ]*$/:/ 21296s/:\$(srcdir):/:/g 21297s/:\${srcdir}:/:/g 21298s/:@srcdir@:/:/g 21299s/^:*// 21300s/:*$// 21301x 21302s/\(=[ ]*\).*/\1/ 21303G 21304s/\n// 21305s/^[^=]*=[ ]*$// 21306}' 21307fi 21308 21309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21310fi # test -n "$CONFIG_FILES" 21311 21312# Set up the scripts for CONFIG_HEADERS section. 21313# No need to generate them if there are no CONFIG_HEADERS. 21314# This happens for instance with `./config.status Makefile'. 21315if test -n "$CONFIG_HEADERS"; then 21316cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21317BEGIN { 21318_ACEOF 21319 21320# Transform confdefs.h into an awk script `defines.awk', embedded as 21321# here-document in config.status, that substitutes the proper values into 21322# config.h.in to produce config.h. 21323 21324# Create a delimiter string that does not exist in confdefs.h, to ease 21325# handling of long lines. 21326ac_delim='%!_!# ' 21327for ac_last_try in false false :; do 21328 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21329 if test -z "$ac_tt"; then 21330 break 21331 elif $ac_last_try; then 21332 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21333 else 21334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21335 fi 21336done 21337 21338# For the awk script, D is an array of macro values keyed by name, 21339# likewise P contains macro parameters if any. Preserve backslash 21340# newline sequences. 21341 21342ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21343sed -n ' 21344s/.\{148\}/&'"$ac_delim"'/g 21345t rset 21346:rset 21347s/^[ ]*#[ ]*define[ ][ ]*/ / 21348t def 21349d 21350:def 21351s/\\$// 21352t bsnl 21353s/["\\]/\\&/g 21354s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21355D["\1"]=" \3"/p 21356s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21357d 21358:bsnl 21359s/["\\]/\\&/g 21360s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21361D["\1"]=" \3\\\\\\n"\\/p 21362t cont 21363s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21364t cont 21365d 21366:cont 21367n 21368s/.\{148\}/&'"$ac_delim"'/g 21369t clear 21370:clear 21371s/\\$// 21372t bsnlc 21373s/["\\]/\\&/g; s/^/"/; s/$/"/p 21374d 21375:bsnlc 21376s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21377b cont 21378' <confdefs.h | sed ' 21379s/'"$ac_delim"'/"\\\ 21380"/g' >>$CONFIG_STATUS || ac_write_fail=1 21381 21382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21383 for (key in D) D_is_set[key] = 1 21384 FS = "" 21385} 21386/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21387 line = \$ 0 21388 split(line, arg, " ") 21389 if (arg[1] == "#") { 21390 defundef = arg[2] 21391 mac1 = arg[3] 21392 } else { 21393 defundef = substr(arg[1], 2) 21394 mac1 = arg[2] 21395 } 21396 split(mac1, mac2, "(") #) 21397 macro = mac2[1] 21398 prefix = substr(line, 1, index(line, defundef) - 1) 21399 if (D_is_set[macro]) { 21400 # Preserve the white space surrounding the "#". 21401 print prefix "define", macro P[macro] D[macro] 21402 next 21403 } else { 21404 # Replace #undef with comments. This is necessary, for example, 21405 # in the case of _POSIX_SOURCE, which is predefined and required 21406 # on some systems where configure will not decide to define it. 21407 if (defundef == "undef") { 21408 print "/*", prefix defundef, macro, "*/" 21409 next 21410 } 21411 } 21412} 21413{ print } 21414_ACAWK 21415_ACEOF 21416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21417 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21418fi # test -n "$CONFIG_HEADERS" 21419 21420 21421eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21422shift 21423for ac_tag 21424do 21425 case $ac_tag in 21426 :[FHLC]) ac_mode=$ac_tag; continue;; 21427 esac 21428 case $ac_mode$ac_tag in 21429 :[FHL]*:*);; 21430 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21431 :[FH]-) ac_tag=-:-;; 21432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21433 esac 21434 ac_save_IFS=$IFS 21435 IFS=: 21436 set x $ac_tag 21437 IFS=$ac_save_IFS 21438 shift 21439 ac_file=$1 21440 shift 21441 21442 case $ac_mode in 21443 :L) ac_source=$1;; 21444 :[FH]) 21445 ac_file_inputs= 21446 for ac_f 21447 do 21448 case $ac_f in 21449 -) ac_f="$ac_tmp/stdin";; 21450 *) # Look for the file first in the build tree, then in the source tree 21451 # (if the path is not absolute). The absolute path cannot be DOS-style, 21452 # because $ac_f cannot contain `:'. 21453 test -f "$ac_f" || 21454 case $ac_f in 21455 [\\/$]*) false;; 21456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21457 esac || 21458 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21459 esac 21460 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21461 as_fn_append ac_file_inputs " '$ac_f'" 21462 done 21463 21464 # Let's still pretend it is `configure' which instantiates (i.e., don't 21465 # use $as_me), people would be surprised to read: 21466 # /* config.h. Generated by config.status. */ 21467 configure_input='Generated from '` 21468 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21469 `' by configure.' 21470 if test x"$ac_file" != x-; then 21471 configure_input="$ac_file. $configure_input" 21472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21473printf "%s\n" "$as_me: creating $ac_file" >&6;} 21474 fi 21475 # Neutralize special characters interpreted by sed in replacement strings. 21476 case $configure_input in #( 21477 *\&* | *\|* | *\\* ) 21478 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21479 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21480 *) ac_sed_conf_input=$configure_input;; 21481 esac 21482 21483 case $ac_tag in 21484 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21486 esac 21487 ;; 21488 esac 21489 21490 ac_dir=`$as_dirname -- "$ac_file" || 21491$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21492 X"$ac_file" : 'X\(//\)[^/]' \| \ 21493 X"$ac_file" : 'X\(//\)$' \| \ 21494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21495printf "%s\n" X"$ac_file" | 21496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21497 s//\1/ 21498 q 21499 } 21500 /^X\(\/\/\)[^/].*/{ 21501 s//\1/ 21502 q 21503 } 21504 /^X\(\/\/\)$/{ 21505 s//\1/ 21506 q 21507 } 21508 /^X\(\/\).*/{ 21509 s//\1/ 21510 q 21511 } 21512 s/.*/./; q'` 21513 as_dir="$ac_dir"; as_fn_mkdir_p 21514 ac_builddir=. 21515 21516case "$ac_dir" in 21517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21518*) 21519 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21520 # A ".." for each directory in $ac_dir_suffix. 21521 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21522 case $ac_top_builddir_sub in 21523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21525 esac ;; 21526esac 21527ac_abs_top_builddir=$ac_pwd 21528ac_abs_builddir=$ac_pwd$ac_dir_suffix 21529# for backward compatibility: 21530ac_top_builddir=$ac_top_build_prefix 21531 21532case $srcdir in 21533 .) # We are building in place. 21534 ac_srcdir=. 21535 ac_top_srcdir=$ac_top_builddir_sub 21536 ac_abs_top_srcdir=$ac_pwd ;; 21537 [\\/]* | ?:[\\/]* ) # Absolute name. 21538 ac_srcdir=$srcdir$ac_dir_suffix; 21539 ac_top_srcdir=$srcdir 21540 ac_abs_top_srcdir=$srcdir ;; 21541 *) # Relative name. 21542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21543 ac_top_srcdir=$ac_top_build_prefix$srcdir 21544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21545esac 21546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21547 21548 21549 case $ac_mode in 21550 :F) 21551 # 21552 # CONFIG_FILE 21553 # 21554 21555 case $INSTALL in 21556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21557 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21558 esac 21559 ac_MKDIR_P=$MKDIR_P 21560 case $MKDIR_P in 21561 [\\/$]* | ?:[\\/]* ) ;; 21562 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21563 esac 21564_ACEOF 21565 21566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21567# If the template does not know about datarootdir, expand it. 21568# FIXME: This hack should be removed a few years after 2.60. 21569ac_datarootdir_hack=; ac_datarootdir_seen= 21570ac_sed_dataroot=' 21571/datarootdir/ { 21572 p 21573 q 21574} 21575/@datadir@/p 21576/@docdir@/p 21577/@infodir@/p 21578/@localedir@/p 21579/@mandir@/p' 21580case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21581*datarootdir*) ac_datarootdir_seen=yes;; 21582*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21584printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21585_ACEOF 21586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21587 ac_datarootdir_hack=' 21588 s&@datadir@&$datadir&g 21589 s&@docdir@&$docdir&g 21590 s&@infodir@&$infodir&g 21591 s&@localedir@&$localedir&g 21592 s&@mandir@&$mandir&g 21593 s&\\\${datarootdir}&$datarootdir&g' ;; 21594esac 21595_ACEOF 21596 21597# Neutralize VPATH when `$srcdir' = `.'. 21598# Shell code in configure.ac might set extrasub. 21599# FIXME: do we really want to maintain this feature? 21600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21601ac_sed_extra="$ac_vpsub 21602$extrasub 21603_ACEOF 21604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21605:t 21606/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21607s|@configure_input@|$ac_sed_conf_input|;t t 21608s&@top_builddir@&$ac_top_builddir_sub&;t t 21609s&@top_build_prefix@&$ac_top_build_prefix&;t t 21610s&@srcdir@&$ac_srcdir&;t t 21611s&@abs_srcdir@&$ac_abs_srcdir&;t t 21612s&@top_srcdir@&$ac_top_srcdir&;t t 21613s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21614s&@builddir@&$ac_builddir&;t t 21615s&@abs_builddir@&$ac_abs_builddir&;t t 21616s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21617s&@INSTALL@&$ac_INSTALL&;t t 21618s&@MKDIR_P@&$ac_MKDIR_P&;t t 21619$ac_datarootdir_hack 21620" 21621eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21622 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21623 21624test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21625 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21626 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21627 "$ac_tmp/out"`; test -z "$ac_out"; } && 21628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21629which seems to be undefined. Please make sure it is defined" >&5 21630printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21631which seems to be undefined. Please make sure it is defined" >&2;} 21632 21633 rm -f "$ac_tmp/stdin" 21634 case $ac_file in 21635 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21636 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21637 esac \ 21638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21639 ;; 21640 :H) 21641 # 21642 # CONFIG_HEADER 21643 # 21644 if test x"$ac_file" != x-; then 21645 { 21646 printf "%s\n" "/* $configure_input */" >&1 \ 21647 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21648 } >"$ac_tmp/config.h" \ 21649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21650 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21652printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21653 else 21654 rm -f "$ac_file" 21655 mv "$ac_tmp/config.h" "$ac_file" \ 21656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21657 fi 21658 else 21659 printf "%s\n" "/* $configure_input */" >&1 \ 21660 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21661 || as_fn_error $? "could not create -" "$LINENO" 5 21662 fi 21663# Compute "$ac_file"'s index in $config_headers. 21664_am_arg="$ac_file" 21665_am_stamp_count=1 21666for _am_header in $config_headers :; do 21667 case $_am_header in 21668 $_am_arg | $_am_arg:* ) 21669 break ;; 21670 * ) 21671 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21672 esac 21673done 21674echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21675$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21676 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21677 X"$_am_arg" : 'X\(//\)$' \| \ 21678 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21679printf "%s\n" X"$_am_arg" | 21680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21681 s//\1/ 21682 q 21683 } 21684 /^X\(\/\/\)[^/].*/{ 21685 s//\1/ 21686 q 21687 } 21688 /^X\(\/\/\)$/{ 21689 s//\1/ 21690 q 21691 } 21692 /^X\(\/\).*/{ 21693 s//\1/ 21694 q 21695 } 21696 s/.*/./; q'`/stamp-h$_am_stamp_count 21697 ;; 21698 21699 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21700printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21701 ;; 21702 esac 21703 21704 21705 case $ac_file$ac_mode in 21706 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21707 # Older Autoconf quotes --file arguments for eval, but not when files 21708 # are listed without --file. Let's play safe and only enable the eval 21709 # if we detect the quoting. 21710 # TODO: see whether this extra hack can be removed once we start 21711 # requiring Autoconf 2.70 or later. 21712 case $CONFIG_FILES in #( 21713 *\'*) : 21714 eval set x "$CONFIG_FILES" ;; #( 21715 *) : 21716 set x $CONFIG_FILES ;; #( 21717 *) : 21718 ;; 21719esac 21720 shift 21721 # Used to flag and report bootstrapping failures. 21722 am_rc=0 21723 for am_mf 21724 do 21725 # Strip MF so we end up with the name of the file. 21726 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21727 # Check whether this is an Automake generated Makefile which includes 21728 # dependency-tracking related rules and includes. 21729 # Grep'ing the whole file directly is not great: AIX grep has a line 21730 # limit of 2048, but all sed's we know have understand at least 4000. 21731 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21732 || continue 21733 am_dirpart=`$as_dirname -- "$am_mf" || 21734$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21735 X"$am_mf" : 'X\(//\)[^/]' \| \ 21736 X"$am_mf" : 'X\(//\)$' \| \ 21737 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21738printf "%s\n" X"$am_mf" | 21739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21740 s//\1/ 21741 q 21742 } 21743 /^X\(\/\/\)[^/].*/{ 21744 s//\1/ 21745 q 21746 } 21747 /^X\(\/\/\)$/{ 21748 s//\1/ 21749 q 21750 } 21751 /^X\(\/\).*/{ 21752 s//\1/ 21753 q 21754 } 21755 s/.*/./; q'` 21756 am_filepart=`$as_basename -- "$am_mf" || 21757$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21758 X"$am_mf" : 'X\(//\)$' \| \ 21759 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21760printf "%s\n" X/"$am_mf" | 21761 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21762 s//\1/ 21763 q 21764 } 21765 /^X\/\(\/\/\)$/{ 21766 s//\1/ 21767 q 21768 } 21769 /^X\/\(\/\).*/{ 21770 s//\1/ 21771 q 21772 } 21773 s/.*/./; q'` 21774 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21775 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21776 | $MAKE -f - am--depfiles" >&5 21777 (cd "$am_dirpart" \ 21778 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21779 | $MAKE -f - am--depfiles) >&5 2>&5 21780 ac_status=$? 21781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21782 (exit $ac_status); } || am_rc=$? 21783 done 21784 if test $am_rc -ne 0; then 21785 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21786printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21787as_fn_error $? "Something went wrong bootstrapping makefile fragments 21788 for automatic dependency tracking. If GNU make was not used, consider 21789 re-running the configure script with MAKE=\"gmake\" (or whatever is 21790 necessary). You can also try re-running configure with the 21791 '--disable-dependency-tracking' option to at least be able to build 21792 the package (albeit without support for automatic dependency tracking). 21793See \`config.log' for more details" "$LINENO" 5; } 21794 fi 21795 { am_dirpart=; unset am_dirpart;} 21796 { am_filepart=; unset am_filepart;} 21797 { am_mf=; unset am_mf;} 21798 { am_rc=; unset am_rc;} 21799 rm -f conftest-deps.mk 21800} 21801 ;; 21802 "libtool":C) 21803 21804 # See if we are running on zsh, and set the options that allow our 21805 # commands through without removal of \ escapes. 21806 if test -n "${ZSH_VERSION+set}"; then 21807 setopt NO_GLOB_SUBST 21808 fi 21809 21810 cfgfile=${ofile}T 21811 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21812 $RM "$cfgfile" 21813 21814 cat <<_LT_EOF >> "$cfgfile" 21815#! $SHELL 21816# Generated automatically by $as_me ($PACKAGE) $VERSION 21817# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21818# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21819 21820# Provide generalized library-building support services. 21821# Written by Gordon Matzigkeit, 1996 21822 21823# Copyright (C) 2014 Free Software Foundation, Inc. 21824# This is free software; see the source for copying conditions. There is NO 21825# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21826 21827# GNU Libtool is free software; you can redistribute it and/or modify 21828# it under the terms of the GNU General Public License as published by 21829# the Free Software Foundation; either version 2 of of the License, or 21830# (at your option) any later version. 21831# 21832# As a special exception to the GNU General Public License, if you 21833# distribute this file as part of a program or library that is built 21834# using GNU Libtool, you may include this file under the same 21835# distribution terms that you use for the rest of that program. 21836# 21837# GNU Libtool is distributed in the hope that it will be useful, but 21838# WITHOUT ANY WARRANTY; without even the implied warranty of 21839# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21840# GNU General Public License for more details. 21841# 21842# You should have received a copy of the GNU General Public License 21843# along with this program. If not, see <http://www.gnu.org/licenses/>. 21844 21845 21846# The names of the tagged configurations supported by this script. 21847available_tags='' 21848 21849# Configured defaults for sys_lib_dlsearch_path munging. 21850: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21851 21852# ### BEGIN LIBTOOL CONFIG 21853 21854# Which release of libtool.m4 was used? 21855macro_version=$macro_version 21856macro_revision=$macro_revision 21857 21858# Whether or not to build shared libraries. 21859build_libtool_libs=$enable_shared 21860 21861# Whether or not to build static libraries. 21862build_old_libs=$enable_static 21863 21864# What type of objects to build. 21865pic_mode=$pic_mode 21866 21867# Whether or not to optimize for fast installation. 21868fast_install=$enable_fast_install 21869 21870# Shared archive member basename,for filename based shared library versioning on AIX. 21871shared_archive_member_spec=$shared_archive_member_spec 21872 21873# Shell to use when invoking shell scripts. 21874SHELL=$lt_SHELL 21875 21876# An echo program that protects backslashes. 21877ECHO=$lt_ECHO 21878 21879# The PATH separator for the build system. 21880PATH_SEPARATOR=$lt_PATH_SEPARATOR 21881 21882# The host system. 21883host_alias=$host_alias 21884host=$host 21885host_os=$host_os 21886 21887# The build system. 21888build_alias=$build_alias 21889build=$build 21890build_os=$build_os 21891 21892# A sed program that does not truncate output. 21893SED=$lt_SED 21894 21895# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21896Xsed="\$SED -e 1s/^X//" 21897 21898# A grep program that handles long lines. 21899GREP=$lt_GREP 21900 21901# An ERE matcher. 21902EGREP=$lt_EGREP 21903 21904# A literal string matcher. 21905FGREP=$lt_FGREP 21906 21907# A BSD- or MS-compatible name lister. 21908NM=$lt_NM 21909 21910# Whether we need soft or hard links. 21911LN_S=$lt_LN_S 21912 21913# What is the maximum length of a command? 21914max_cmd_len=$max_cmd_len 21915 21916# Object file suffix (normally "o"). 21917objext=$ac_objext 21918 21919# Executable file suffix (normally ""). 21920exeext=$exeext 21921 21922# whether the shell understands "unset". 21923lt_unset=$lt_unset 21924 21925# turn spaces into newlines. 21926SP2NL=$lt_lt_SP2NL 21927 21928# turn newlines into spaces. 21929NL2SP=$lt_lt_NL2SP 21930 21931# convert \$build file names to \$host format. 21932to_host_file_cmd=$lt_cv_to_host_file_cmd 21933 21934# convert \$build files to toolchain format. 21935to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21936 21937# A file(cmd) program that detects file types. 21938FILECMD=$lt_FILECMD 21939 21940# An object symbol dumper. 21941OBJDUMP=$lt_OBJDUMP 21942 21943# Method to check whether dependent libraries are shared objects. 21944deplibs_check_method=$lt_deplibs_check_method 21945 21946# Command to use when deplibs_check_method = "file_magic". 21947file_magic_cmd=$lt_file_magic_cmd 21948 21949# How to find potential files when deplibs_check_method = "file_magic". 21950file_magic_glob=$lt_file_magic_glob 21951 21952# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21953want_nocaseglob=$lt_want_nocaseglob 21954 21955# DLL creation program. 21956DLLTOOL=$lt_DLLTOOL 21957 21958# Command to associate shared and link libraries. 21959sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21960 21961# The archiver. 21962AR=$lt_AR 21963 21964# Flags to create an archive (by configure). 21965lt_ar_flags=$lt_ar_flags 21966 21967# Flags to create an archive. 21968AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21969 21970# How to feed a file listing to the archiver. 21971archiver_list_spec=$lt_archiver_list_spec 21972 21973# A symbol stripping program. 21974STRIP=$lt_STRIP 21975 21976# Commands used to install an old-style archive. 21977RANLIB=$lt_RANLIB 21978old_postinstall_cmds=$lt_old_postinstall_cmds 21979old_postuninstall_cmds=$lt_old_postuninstall_cmds 21980 21981# Whether to use a lock for old archive extraction. 21982lock_old_archive_extraction=$lock_old_archive_extraction 21983 21984# A C compiler. 21985LTCC=$lt_CC 21986 21987# LTCC compiler flags. 21988LTCFLAGS=$lt_CFLAGS 21989 21990# Take the output of nm and produce a listing of raw symbols and C names. 21991global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21992 21993# Transform the output of nm in a proper C declaration. 21994global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21995 21996# Transform the output of nm into a list of symbols to manually relocate. 21997global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21998 21999# Transform the output of nm in a C name address pair. 22000global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22001 22002# Transform the output of nm in a C name address pair when lib prefix is needed. 22003global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22004 22005# The name lister interface. 22006nm_interface=$lt_lt_cv_nm_interface 22007 22008# Specify filename containing input files for \$NM. 22009nm_file_list_spec=$lt_nm_file_list_spec 22010 22011# The root where to search for dependent libraries,and where our libraries should be installed. 22012lt_sysroot=$lt_sysroot 22013 22014# Command to truncate a binary pipe. 22015lt_truncate_bin=$lt_lt_cv_truncate_bin 22016 22017# The name of the directory that contains temporary libtool files. 22018objdir=$objdir 22019 22020# Used to examine libraries when file_magic_cmd begins with "file". 22021MAGIC_CMD=$MAGIC_CMD 22022 22023# Must we lock files when doing compilation? 22024need_locks=$lt_need_locks 22025 22026# Manifest tool. 22027MANIFEST_TOOL=$lt_MANIFEST_TOOL 22028 22029# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22030DSYMUTIL=$lt_DSYMUTIL 22031 22032# Tool to change global to local symbols on Mac OS X. 22033NMEDIT=$lt_NMEDIT 22034 22035# Tool to manipulate fat objects and archives on Mac OS X. 22036LIPO=$lt_LIPO 22037 22038# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22039OTOOL=$lt_OTOOL 22040 22041# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22042OTOOL64=$lt_OTOOL64 22043 22044# Old archive suffix (normally "a"). 22045libext=$libext 22046 22047# Shared library suffix (normally ".so"). 22048shrext_cmds=$lt_shrext_cmds 22049 22050# The commands to extract the exported symbol list from a shared archive. 22051extract_expsyms_cmds=$lt_extract_expsyms_cmds 22052 22053# Variables whose values should be saved in libtool wrapper scripts and 22054# restored at link time. 22055variables_saved_for_relink=$lt_variables_saved_for_relink 22056 22057# Do we need the "lib" prefix for modules? 22058need_lib_prefix=$need_lib_prefix 22059 22060# Do we need a version for libraries? 22061need_version=$need_version 22062 22063# Library versioning type. 22064version_type=$version_type 22065 22066# Shared library runtime path variable. 22067runpath_var=$runpath_var 22068 22069# Shared library path variable. 22070shlibpath_var=$shlibpath_var 22071 22072# Is shlibpath searched before the hard-coded library search path? 22073shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22074 22075# Format of library name prefix. 22076libname_spec=$lt_libname_spec 22077 22078# List of archive names. First name is the real one, the rest are links. 22079# The last name is the one that the linker finds with -lNAME 22080library_names_spec=$lt_library_names_spec 22081 22082# The coded name of the library, if different from the real name. 22083soname_spec=$lt_soname_spec 22084 22085# Permission mode override for installation of shared libraries. 22086install_override_mode=$lt_install_override_mode 22087 22088# Command to use after installation of a shared archive. 22089postinstall_cmds=$lt_postinstall_cmds 22090 22091# Command to use after uninstallation of a shared archive. 22092postuninstall_cmds=$lt_postuninstall_cmds 22093 22094# Commands used to finish a libtool library installation in a directory. 22095finish_cmds=$lt_finish_cmds 22096 22097# As "finish_cmds", except a single script fragment to be evaled but 22098# not shown. 22099finish_eval=$lt_finish_eval 22100 22101# Whether we should hardcode library paths into libraries. 22102hardcode_into_libs=$hardcode_into_libs 22103 22104# Compile-time system search path for libraries. 22105sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22106 22107# Detected run-time system search path for libraries. 22108sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22109 22110# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22111configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22112 22113# Whether dlopen is supported. 22114dlopen_support=$enable_dlopen 22115 22116# Whether dlopen of programs is supported. 22117dlopen_self=$enable_dlopen_self 22118 22119# Whether dlopen of statically linked programs is supported. 22120dlopen_self_static=$enable_dlopen_self_static 22121 22122# Commands to strip libraries. 22123old_striplib=$lt_old_striplib 22124striplib=$lt_striplib 22125 22126 22127# The linker used to build libraries. 22128LD=$lt_LD 22129 22130# How to create reloadable object files. 22131reload_flag=$lt_reload_flag 22132reload_cmds=$lt_reload_cmds 22133 22134# Commands used to build an old-style archive. 22135old_archive_cmds=$lt_old_archive_cmds 22136 22137# A language specific compiler. 22138CC=$lt_compiler 22139 22140# Is the compiler the GNU compiler? 22141with_gcc=$GCC 22142 22143# Compiler flag to turn off builtin functions. 22144no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22145 22146# Additional compiler flags for building library objects. 22147pic_flag=$lt_lt_prog_compiler_pic 22148 22149# How to pass a linker flag through the compiler. 22150wl=$lt_lt_prog_compiler_wl 22151 22152# Compiler flag to prevent dynamic linking. 22153link_static_flag=$lt_lt_prog_compiler_static 22154 22155# Does compiler simultaneously support -c and -o options? 22156compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22157 22158# Whether or not to add -lc for building shared libraries. 22159build_libtool_need_lc=$archive_cmds_need_lc 22160 22161# Whether or not to disallow shared libs when runtime libs are static. 22162allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22163 22164# Compiler flag to allow reflexive dlopens. 22165export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22166 22167# Compiler flag to generate shared objects directly from archives. 22168whole_archive_flag_spec=$lt_whole_archive_flag_spec 22169 22170# Whether the compiler copes with passing no objects directly. 22171compiler_needs_object=$lt_compiler_needs_object 22172 22173# Create an old-style archive from a shared archive. 22174old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22175 22176# Create a temporary old-style archive to link instead of a shared archive. 22177old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22178 22179# Commands used to build a shared archive. 22180archive_cmds=$lt_archive_cmds 22181archive_expsym_cmds=$lt_archive_expsym_cmds 22182 22183# Commands used to build a loadable module if different from building 22184# a shared archive. 22185module_cmds=$lt_module_cmds 22186module_expsym_cmds=$lt_module_expsym_cmds 22187 22188# Whether we are building with GNU ld or not. 22189with_gnu_ld=$lt_with_gnu_ld 22190 22191# Flag that allows shared libraries with undefined symbols to be built. 22192allow_undefined_flag=$lt_allow_undefined_flag 22193 22194# Flag that enforces no undefined symbols. 22195no_undefined_flag=$lt_no_undefined_flag 22196 22197# Flag to hardcode \$libdir into a binary during linking. 22198# This must work even if \$libdir does not exist 22199hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22200 22201# Whether we need a single "-rpath" flag with a separated argument. 22202hardcode_libdir_separator=$lt_hardcode_libdir_separator 22203 22204# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22205# DIR into the resulting binary. 22206hardcode_direct=$hardcode_direct 22207 22208# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22209# DIR into the resulting binary and the resulting library dependency is 22210# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22211# library is relocated. 22212hardcode_direct_absolute=$hardcode_direct_absolute 22213 22214# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22215# into the resulting binary. 22216hardcode_minus_L=$hardcode_minus_L 22217 22218# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22219# into the resulting binary. 22220hardcode_shlibpath_var=$hardcode_shlibpath_var 22221 22222# Set to "yes" if building a shared library automatically hardcodes DIR 22223# into the library and all subsequent libraries and executables linked 22224# against it. 22225hardcode_automatic=$hardcode_automatic 22226 22227# Set to yes if linker adds runtime paths of dependent libraries 22228# to runtime path list. 22229inherit_rpath=$inherit_rpath 22230 22231# Whether libtool must link a program against all its dependency libraries. 22232link_all_deplibs=$link_all_deplibs 22233 22234# Set to "yes" if exported symbols are required. 22235always_export_symbols=$always_export_symbols 22236 22237# The commands to list exported symbols. 22238export_symbols_cmds=$lt_export_symbols_cmds 22239 22240# Symbols that should not be listed in the preloaded symbols. 22241exclude_expsyms=$lt_exclude_expsyms 22242 22243# Symbols that must always be exported. 22244include_expsyms=$lt_include_expsyms 22245 22246# Commands necessary for linking programs (against libraries) with templates. 22247prelink_cmds=$lt_prelink_cmds 22248 22249# Commands necessary for finishing linking programs. 22250postlink_cmds=$lt_postlink_cmds 22251 22252# Specify filename containing input files. 22253file_list_spec=$lt_file_list_spec 22254 22255# How to hardcode a shared library path into an executable. 22256hardcode_action=$hardcode_action 22257 22258# ### END LIBTOOL CONFIG 22259 22260_LT_EOF 22261 22262 cat <<'_LT_EOF' >> "$cfgfile" 22263 22264# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22265 22266# func_munge_path_list VARIABLE PATH 22267# ----------------------------------- 22268# VARIABLE is name of variable containing _space_ separated list of 22269# directories to be munged by the contents of PATH, which is string 22270# having a format: 22271# "DIR[:DIR]:" 22272# string "DIR[ DIR]" will be prepended to VARIABLE 22273# ":DIR[:DIR]" 22274# string "DIR[ DIR]" will be appended to VARIABLE 22275# "DIRP[:DIRP]::[DIRA:]DIRA" 22276# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22277# "DIRA[ DIRA]" will be appended to VARIABLE 22278# "DIR[:DIR]" 22279# VARIABLE will be replaced by "DIR[ DIR]" 22280func_munge_path_list () 22281{ 22282 case x$2 in 22283 x) 22284 ;; 22285 *:) 22286 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22287 ;; 22288 x:*) 22289 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22290 ;; 22291 *::*) 22292 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22293 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22294 ;; 22295 *) 22296 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22297 ;; 22298 esac 22299} 22300 22301 22302# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22303func_cc_basename () 22304{ 22305 for cc_temp in $*""; do 22306 case $cc_temp in 22307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22309 \-*) ;; 22310 *) break;; 22311 esac 22312 done 22313 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22314} 22315 22316 22317# ### END FUNCTIONS SHARED WITH CONFIGURE 22318 22319_LT_EOF 22320 22321 case $host_os in 22322 aix3*) 22323 cat <<\_LT_EOF >> "$cfgfile" 22324# AIX sometimes has problems with the GCC collect2 program. For some 22325# reason, if we set the COLLECT_NAMES environment variable, the problems 22326# vanish in a puff of smoke. 22327if test set != "${COLLECT_NAMES+set}"; then 22328 COLLECT_NAMES= 22329 export COLLECT_NAMES 22330fi 22331_LT_EOF 22332 ;; 22333 esac 22334 22335 22336 22337ltmain=$ac_aux_dir/ltmain.sh 22338 22339 22340 # We use sed instead of cat because bash on DJGPP gets confused if 22341 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22342 # text mode, it properly converts lines to CR/LF. This bash problem 22343 # is reportedly fixed, but why not run on old versions too? 22344 $SED '$q' "$ltmain" >> "$cfgfile" \ 22345 || (rm -f "$cfgfile"; exit 1) 22346 22347 mv -f "$cfgfile" "$ofile" || 22348 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22349 chmod +x "$ofile" 22350 22351 ;; 22352 22353 esac 22354done # for ac_tag 22355 22356 22357as_fn_exit 0 22358_ACEOF 22359ac_clean_files=$ac_clean_files_save 22360 22361test $ac_write_fail = 0 || 22362 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22363 22364 22365# configure is writing to config.log, and then calls config.status. 22366# config.status does its own redirection, appending to config.log. 22367# Unfortunately, on DOS this fails, as config.log is still kept open 22368# by configure, so config.status won't be able to write to it; its 22369# output is simply discarded. So we exec the FD to /dev/null, 22370# effectively closing config.log, so it can be properly (re)opened and 22371# appended to by config.status. When coming back to configure, we 22372# need to make the FD available again. 22373if test "$no_create" != yes; then 22374 ac_cs_success=: 22375 ac_config_status_args= 22376 test "$silent" = yes && 22377 ac_config_status_args="$ac_config_status_args --quiet" 22378 exec 5>/dev/null 22379 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22380 exec 5>>config.log 22381 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22382 # would make configure fail if this is the last instruction. 22383 $ac_cs_success || as_fn_exit 1 22384fi 22385if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22387printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22388fi 22389 22390 22391