1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-geode 2.11.21. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/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/driver/xf86-video-geode/-/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='xf86-video-geode' 624PACKAGE_TARNAME='xf86-video-geode' 625PACKAGE_VERSION='2.11.21' 626PACKAGE_STRING='xf86-video-geode 2.11.21' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/issues' 628PACKAGE_URL='http://www.x.org/wiki/GeodeDriver' 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 667PCIACCESS_LIBS 668PCIACCESS_CFLAGS 669XEXT_LIBS 670XEXT_CFLAGS 671XORG_LIBS 672XORG_CFLAGS 673M32_CFLAGS 674BUILD_ZTV_FALSE 675BUILD_ZTV_TRUE 676PANEL_CPPFLAGS 677moduledir 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 722am__fastdepCC_FALSE 723am__fastdepCC_TRUE 724CCDEPMODE 725am__nodep 726AMDEPBACKSLASH 727AMDEP_FALSE 728AMDEP_TRUE 729am__include 730DEPDIR 731OBJEXT 732EXEEXT 733ac_ct_CC 734CPPFLAGS 735LDFLAGS 736CFLAGS 737CC 738host_os 739host_vendor 740host_cpu 741host 742build_os 743build_vendor 744build_cpu 745build 746LIBTOOL 747MAINT 748MAINTAINER_MODE_FALSE 749MAINTAINER_MODE_TRUE 750AM_BACKSLASH 751AM_DEFAULT_VERBOSITY 752AM_DEFAULT_V 753AM_V 754CSCOPE 755ETAGS 756CTAGS 757am__untar 758am__tar 759AMTAR 760am__leading_dot 761SET_MAKE 762AWK 763mkdir_p 764MKDIR_P 765INSTALL_STRIP_PROGRAM 766STRIP 767install_sh 768MAKEINFO 769AUTOHEADER 770AUTOMAKE 771AUTOCONF 772ACLOCAL 773VERSION 774PACKAGE 775CYGPATH_W 776am__isrc 777INSTALL_DATA 778INSTALL_SCRIPT 779INSTALL_PROGRAM 780target_alias 781host_alias 782build_alias 783LIBS 784ECHO_T 785ECHO_N 786ECHO_C 787DEFS 788mandir 789localedir 790libdir 791psdir 792pdfdir 793dvidir 794htmldir 795infodir 796docdir 797oldincludedir 798includedir 799runstatedir 800localstatedir 801sharedstatedir 802sysconfdir 803datadir 804datarootdir 805libexecdir 806sbindir 807bindir 808program_transform_name 809prefix 810exec_prefix 811PACKAGE_URL 812PACKAGE_BUGREPORT 813PACKAGE_STRING 814PACKAGE_VERSION 815PACKAGE_TARNAME 816PACKAGE_NAME 817PATH_SEPARATOR 818SHELL 819am__quote' 820ac_subst_files='' 821ac_user_opts=' 822enable_option_checking 823enable_silent_rules 824enable_maintainer_mode 825enable_static 826enable_shared 827with_pic 828enable_fast_install 829with_aix_soname 830enable_dependency_tracking 831with_gnu_ld 832with_sysroot 833enable_libtool_lock 834enable_selective_werror 835enable_strict_compilation 836with_xorg_module_dir 837enable_geodegx_panel 838enable_ztv 839enable_xaa 840' 841 ac_precious_vars='build_alias 842host_alias 843target_alias 844CC 845CFLAGS 846LDFLAGS 847LIBS 848CPPFLAGS 849LT_SYS_LIBRARY_PATH 850PKG_CONFIG 851PKG_CONFIG_PATH 852PKG_CONFIG_LIBDIR 853XORG_CFLAGS 854XORG_LIBS 855XEXT_CFLAGS 856XEXT_LIBS 857PCIACCESS_CFLAGS 858PCIACCESS_LIBS' 859 860 861# Initialize some variables set by options. 862ac_init_help= 863ac_init_version=false 864ac_unrecognized_opts= 865ac_unrecognized_sep= 866# The variables have the same names as the options, with 867# dashes changed to underlines. 868cache_file=/dev/null 869exec_prefix=NONE 870no_create= 871no_recursion= 872prefix=NONE 873program_prefix=NONE 874program_suffix=NONE 875program_transform_name=s,x,x, 876silent= 877site= 878srcdir= 879verbose= 880x_includes=NONE 881x_libraries=NONE 882 883# Installation directory options. 884# These are left unexpanded so users can "make install exec_prefix=/foo" 885# and all the variables that are supposed to be based on exec_prefix 886# by default will actually change. 887# Use braces instead of parens because sh, perl, etc. also accept them. 888# (The list follows the same order as the GNU Coding Standards.) 889bindir='${exec_prefix}/bin' 890sbindir='${exec_prefix}/sbin' 891libexecdir='${exec_prefix}/libexec' 892datarootdir='${prefix}/share' 893datadir='${datarootdir}' 894sysconfdir='${prefix}/etc' 895sharedstatedir='${prefix}/com' 896localstatedir='${prefix}/var' 897runstatedir='${localstatedir}/run' 898includedir='${prefix}/include' 899oldincludedir='/usr/include' 900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 901infodir='${datarootdir}/info' 902htmldir='${docdir}' 903dvidir='${docdir}' 904pdfdir='${docdir}' 905psdir='${docdir}' 906libdir='${exec_prefix}/lib' 907localedir='${datarootdir}/locale' 908mandir='${datarootdir}/man' 909 910ac_prev= 911ac_dashdash= 912for ac_option 913do 914 # If the previous option needs an argument, assign it. 915 if test -n "$ac_prev"; then 916 eval $ac_prev=\$ac_option 917 ac_prev= 918 continue 919 fi 920 921 case $ac_option in 922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 923 *=) ac_optarg= ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 case $ac_dashdash$ac_option in 928 --) 929 ac_dashdash=yes ;; 930 931 -bindir | --bindir | --bindi | --bind | --bin | --bi) 932 ac_prev=bindir ;; 933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 934 bindir=$ac_optarg ;; 935 936 -build | --build | --buil | --bui | --bu) 937 ac_prev=build_alias ;; 938 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 939 build_alias=$ac_optarg ;; 940 941 -cache-file | --cache-file | --cache-fil | --cache-fi \ 942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 943 ac_prev=cache_file ;; 944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 946 cache_file=$ac_optarg ;; 947 948 --config-cache | -C) 949 cache_file=config.cache ;; 950 951 -datadir | --datadir | --datadi | --datad) 952 ac_prev=datadir ;; 953 -datadir=* | --datadir=* | --datadi=* | --datad=*) 954 datadir=$ac_optarg ;; 955 956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 957 | --dataroo | --dataro | --datar) 958 ac_prev=datarootdir ;; 959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 961 datarootdir=$ac_optarg ;; 962 963 -disable-* | --disable-*) 964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 965 # Reject names that are not valid shell variable names. 966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 967 as_fn_error $? "invalid feature name: \`$ac_useropt'" 968 ac_useropt_orig=$ac_useropt 969 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 970 case $ac_user_opts in 971 *" 972"enable_$ac_useropt" 973"*) ;; 974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 975 ac_unrecognized_sep=', ';; 976 esac 977 eval enable_$ac_useropt=no ;; 978 979 -docdir | --docdir | --docdi | --doc | --do) 980 ac_prev=docdir ;; 981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 982 docdir=$ac_optarg ;; 983 984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 985 ac_prev=dvidir ;; 986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 987 dvidir=$ac_optarg ;; 988 989 -enable-* | --enable-*) 990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 991 # Reject names that are not valid shell variable names. 992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 993 as_fn_error $? "invalid feature name: \`$ac_useropt'" 994 ac_useropt_orig=$ac_useropt 995 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 996 case $ac_user_opts in 997 *" 998"enable_$ac_useropt" 999"*) ;; 1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1001 ac_unrecognized_sep=', ';; 1002 esac 1003 eval enable_$ac_useropt=\$ac_optarg ;; 1004 1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1007 | --exec | --exe | --ex) 1008 ac_prev=exec_prefix ;; 1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1011 | --exec=* | --exe=* | --ex=*) 1012 exec_prefix=$ac_optarg ;; 1013 1014 -gas | --gas | --ga | --g) 1015 # Obsolete; use --with-gas. 1016 with_gas=yes ;; 1017 1018 -help | --help | --hel | --he | -h) 1019 ac_init_help=long ;; 1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1021 ac_init_help=recursive ;; 1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1023 ac_init_help=short ;; 1024 1025 -host | --host | --hos | --ho) 1026 ac_prev=host_alias ;; 1027 -host=* | --host=* | --hos=* | --ho=*) 1028 host_alias=$ac_optarg ;; 1029 1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1031 ac_prev=htmldir ;; 1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1033 | --ht=*) 1034 htmldir=$ac_optarg ;; 1035 1036 -includedir | --includedir | --includedi | --included | --include \ 1037 | --includ | --inclu | --incl | --inc) 1038 ac_prev=includedir ;; 1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1040 | --includ=* | --inclu=* | --incl=* | --inc=*) 1041 includedir=$ac_optarg ;; 1042 1043 -infodir | --infodir | --infodi | --infod | --info | --inf) 1044 ac_prev=infodir ;; 1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1046 infodir=$ac_optarg ;; 1047 1048 -libdir | --libdir | --libdi | --libd) 1049 ac_prev=libdir ;; 1050 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1051 libdir=$ac_optarg ;; 1052 1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1054 | --libexe | --libex | --libe) 1055 ac_prev=libexecdir ;; 1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1057 | --libexe=* | --libex=* | --libe=*) 1058 libexecdir=$ac_optarg ;; 1059 1060 -localedir | --localedir | --localedi | --localed | --locale) 1061 ac_prev=localedir ;; 1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1063 localedir=$ac_optarg ;; 1064 1065 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1066 | --localstate | --localstat | --localsta | --localst | --locals) 1067 ac_prev=localstatedir ;; 1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1070 localstatedir=$ac_optarg ;; 1071 1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1073 ac_prev=mandir ;; 1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1075 mandir=$ac_optarg ;; 1076 1077 -nfp | --nfp | --nf) 1078 # Obsolete; use --without-fp. 1079 with_fp=no ;; 1080 1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1082 | --no-cr | --no-c | -n) 1083 no_create=yes ;; 1084 1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1087 no_recursion=yes ;; 1088 1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1091 | --oldin | --oldi | --old | --ol | --o) 1092 ac_prev=oldincludedir ;; 1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1096 oldincludedir=$ac_optarg ;; 1097 1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1099 ac_prev=prefix ;; 1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1101 prefix=$ac_optarg ;; 1102 1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1104 | --program-pre | --program-pr | --program-p) 1105 ac_prev=program_prefix ;; 1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1108 program_prefix=$ac_optarg ;; 1109 1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1111 | --program-suf | --program-su | --program-s) 1112 ac_prev=program_suffix ;; 1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1115 program_suffix=$ac_optarg ;; 1116 1117 -program-transform-name | --program-transform-name \ 1118 | --program-transform-nam | --program-transform-na \ 1119 | --program-transform-n | --program-transform- \ 1120 | --program-transform | --program-transfor \ 1121 | --program-transfo | --program-transf \ 1122 | --program-trans | --program-tran \ 1123 | --progr-tra | --program-tr | --program-t) 1124 ac_prev=program_transform_name ;; 1125 -program-transform-name=* | --program-transform-name=* \ 1126 | --program-transform-nam=* | --program-transform-na=* \ 1127 | --program-transform-n=* | --program-transform-=* \ 1128 | --program-transform=* | --program-transfor=* \ 1129 | --program-transfo=* | --program-transf=* \ 1130 | --program-trans=* | --program-tran=* \ 1131 | --progr-tra=* | --program-tr=* | --program-t=*) 1132 program_transform_name=$ac_optarg ;; 1133 1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1135 ac_prev=pdfdir ;; 1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1137 pdfdir=$ac_optarg ;; 1138 1139 -psdir | --psdir | --psdi | --psd | --ps) 1140 ac_prev=psdir ;; 1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1142 psdir=$ac_optarg ;; 1143 1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1145 | -silent | --silent | --silen | --sile | --sil) 1146 silent=yes ;; 1147 1148 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1149 | --runstate | --runstat | --runsta | --runst | --runs \ 1150 | --run | --ru | --r) 1151 ac_prev=runstatedir ;; 1152 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1153 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1154 | --run=* | --ru=* | --r=*) 1155 runstatedir=$ac_optarg ;; 1156 1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1158 ac_prev=sbindir ;; 1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1160 | --sbi=* | --sb=*) 1161 sbindir=$ac_optarg ;; 1162 1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1165 | --sharedst | --shareds | --shared | --share | --shar \ 1166 | --sha | --sh) 1167 ac_prev=sharedstatedir ;; 1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1171 | --sha=* | --sh=*) 1172 sharedstatedir=$ac_optarg ;; 1173 1174 -site | --site | --sit) 1175 ac_prev=site ;; 1176 -site=* | --site=* | --sit=*) 1177 site=$ac_optarg ;; 1178 1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1180 ac_prev=srcdir ;; 1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1182 srcdir=$ac_optarg ;; 1183 1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1185 | --syscon | --sysco | --sysc | --sys | --sy) 1186 ac_prev=sysconfdir ;; 1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1189 sysconfdir=$ac_optarg ;; 1190 1191 -target | --target | --targe | --targ | --tar | --ta | --t) 1192 ac_prev=target_alias ;; 1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1194 target_alias=$ac_optarg ;; 1195 1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1197 verbose=yes ;; 1198 1199 -version | --version | --versio | --versi | --vers | -V) 1200 ac_init_version=: ;; 1201 1202 -with-* | --with-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: \`$ac_useropt'" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=\$ac_optarg ;; 1217 1218 -without-* | --without-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: \`$ac_useropt'" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1253Try \`$0 --help' for more information" 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 case $ac_envvar in #( 1260 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1262 esac 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 as_fn_error $? "missing argument to $ac_option" 1280fi 1281 1282if test -n "$ac_unrecognized_opts"; then 1283 case $enable_option_checking in 1284 no) ;; 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1286 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1287 esac 1288fi 1289 1290# Check all directory arguments for consistency. 1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1292 datadir sysconfdir sharedstatedir localstatedir includedir \ 1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1294 libdir localedir mandir runstatedir 1295do 1296 eval ac_val=\$$ac_var 1297 # Remove trailing slashes. 1298 case $ac_val in 1299 */ ) 1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1301 eval $ac_var=\$ac_val;; 1302 esac 1303 # Be sure to have absolute directory names. 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 as_fn_error $? "working directory cannot be determined" 1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1338 as_fn_error $? "pwd does not report name of working directory" 1339 1340 1341# Find the source files, if location was not specified. 1342if test -z "$srcdir"; then 1343 ac_srcdir_defaulted=yes 1344 # Try the directory containing this script, then the parent directory. 1345 ac_confdir=`$as_dirname -- "$as_myself" || 1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1347 X"$as_myself" : 'X\(//\)[^/]' \| \ 1348 X"$as_myself" : 'X\(//\)$' \| \ 1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1350printf "%s\n" X"$as_myself" | 1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\/\)[^/].*/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)$/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\).*/{ 1364 s//\1/ 1365 q 1366 } 1367 s/.*/./; q'` 1368 srcdir=$ac_confdir 1369 if test ! -r "$srcdir/$ac_unique_file"; then 1370 srcdir=.. 1371 fi 1372else 1373 ac_srcdir_defaulted=no 1374fi 1375if test ! -r "$srcdir/$ac_unique_file"; then 1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1377 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1378fi 1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1380ac_abs_confdir=`( 1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1382 pwd)` 1383# When building in place, set srcdir=. 1384if test "$ac_abs_confdir" = "$ac_pwd"; then 1385 srcdir=. 1386fi 1387# Remove unnecessary trailing slashes from srcdir. 1388# Double slashes in file names in object file debugging info 1389# mess up M-x gdb in Emacs. 1390case $srcdir in 1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1392esac 1393for ac_var in $ac_precious_vars; do 1394 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_env_${ac_var}_value=\$${ac_var} 1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1398done 1399 1400# 1401# Report the --help message. 1402# 1403if test "$ac_init_help" = "long"; then 1404 # Omit some internal or obsolete options to make the list less imposing. 1405 # This message is too long to be a string in the A/UX 3.1 sh. 1406 cat <<_ACEOF 1407\`configure' configures xf86-video-geode 2.11.21 to adapt to many kinds of systems. 1408 1409Usage: $0 [OPTION]... [VAR=VALUE]... 1410 1411To assign environment variables (e.g., CC, CFLAGS...), specify them as 1412VAR=VALUE. See below for descriptions of some of the useful variables. 1413 1414Defaults for the options are specified in brackets. 1415 1416Configuration: 1417 -h, --help display this help and exit 1418 --help=short display options specific to this package 1419 --help=recursive display the short help of all the included packages 1420 -V, --version display version information and exit 1421 -q, --quiet, --silent do not print \`checking ...' messages 1422 --cache-file=FILE cache test results in FILE [disabled] 1423 -C, --config-cache alias for \`--cache-file=config.cache' 1424 -n, --no-create do not create output files 1425 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1426 1427Installation directories: 1428 --prefix=PREFIX install architecture-independent files in PREFIX 1429 [$ac_default_prefix] 1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1431 [PREFIX] 1432 1433By default, \`make install' will install all the files in 1434\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1435an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1436for instance \`--prefix=\$HOME'. 1437 1438For better control, use the options below. 1439 1440Fine tuning of the installation directories: 1441 --bindir=DIR user executables [EPREFIX/bin] 1442 --sbindir=DIR system admin executables [EPREFIX/sbin] 1443 --libexecdir=DIR program executables [EPREFIX/libexec] 1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1447 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1448 --libdir=DIR object code libraries [EPREFIX/lib] 1449 --includedir=DIR C header files [PREFIX/include] 1450 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1453 --infodir=DIR info documentation [DATAROOTDIR/info] 1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1455 --mandir=DIR man documentation [DATAROOTDIR/man] 1456 --docdir=DIR documentation root 1457 [DATAROOTDIR/doc/xf86-video-geode] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466Program names: 1467 --program-prefix=PREFIX prepend PREFIX to installed program names 1468 --program-suffix=SUFFIX append SUFFIX to installed program names 1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1470 1471System types: 1472 --build=BUILD configure for building on BUILD [guessed] 1473 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1474_ACEOF 1475fi 1476 1477if test -n "$ac_init_help"; then 1478 case $ac_init_help in 1479 short | recursive ) echo "Configuration of xf86-video-geode 2.11.21:";; 1480 esac 1481 cat <<\_ACEOF 1482 1483Optional Features: 1484 --disable-option-checking ignore unrecognized --enable/--with options 1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1487 --enable-silent-rules less verbose build output (undo: "make V=1") 1488 --disable-silent-rules verbose build output (undo: "make V=0") 1489 --enable-maintainer-mode 1490 enable make rules and dependencies not useful (and 1491 sometimes confusing) to the casual installer 1492 --enable-static[=PKGS] build static libraries [default=no] 1493 --enable-shared[=PKGS] build shared libraries [default=yes] 1494 --enable-fast-install[=PKGS] 1495 optimize for fast installation [default=yes] 1496 --enable-dependency-tracking 1497 do not reject slow dependency extractors 1498 --disable-dependency-tracking 1499 speeds up one-time build 1500 --disable-libtool-lock avoid locking (might break parallel builds) 1501 --disable-selective-werror 1502 Turn off selective compiler errors. (default: 1503 enabled) 1504 --enable-strict-compilation 1505 Enable all warnings from compiler and make them 1506 errors (default: disabled) 1507 --disable-geodegx-panel Disable support for flatpanels with the Geode GX 1508 --enable-ztv Enable Video For Linux based ZTV driver (default: 1509 auto-detected) 1510 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1511 [default=auto] 1512 1513Optional Packages: 1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1517 both] 1518 --with-aix-soname=aix|svr4|both 1519 shared library versioning (aka "SONAME") variant to 1520 provide on AIX, [default=aix]. 1521 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1522 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1523 compiler's sysroot if not specified). 1524 --with-xorg-module-dir=DIR 1525 Default xorg module directory 1526 [[default=$libdir/xorg/modules]] 1527 1528Some influential environment variables: 1529 CC C compiler command 1530 CFLAGS C compiler flags 1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1532 nonstandard directory <lib dir> 1533 LIBS libraries to pass to the linker, e.g. -l<library> 1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1535 you have headers in a nonstandard directory <include dir> 1536 LT_SYS_LIBRARY_PATH 1537 User-defined run-time library search path. 1538 PKG_CONFIG path to pkg-config utility 1539 PKG_CONFIG_PATH 1540 directories to add to pkg-config's search path 1541 PKG_CONFIG_LIBDIR 1542 path overriding pkg-config's built-in search path 1543 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1544 XORG_LIBS linker flags for XORG, overriding pkg-config 1545 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1546 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1547 PCIACCESS_CFLAGS 1548 C compiler flags for PCIACCESS, overriding pkg-config 1549 PCIACCESS_LIBS 1550 linker flags for PCIACCESS, overriding pkg-config 1551 1552Use these variables to override the choices made by `configure' or to help 1553it to find libraries and programs with nonstandard names/locations. 1554 1555Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/issues>. 1556xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>. 1557_ACEOF 1558ac_status=$? 1559fi 1560 1561if test "$ac_init_help" = "recursive"; then 1562 # If there are subdirs, report their specific --help. 1563 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1564 test -d "$ac_dir" || 1565 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1566 continue 1567 ac_builddir=. 1568 1569case "$ac_dir" in 1570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1571*) 1572 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1573 # A ".." for each directory in $ac_dir_suffix. 1574 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1575 case $ac_top_builddir_sub in 1576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1578 esac ;; 1579esac 1580ac_abs_top_builddir=$ac_pwd 1581ac_abs_builddir=$ac_pwd$ac_dir_suffix 1582# for backward compatibility: 1583ac_top_builddir=$ac_top_build_prefix 1584 1585case $srcdir in 1586 .) # We are building in place. 1587 ac_srcdir=. 1588 ac_top_srcdir=$ac_top_builddir_sub 1589 ac_abs_top_srcdir=$ac_pwd ;; 1590 [\\/]* | ?:[\\/]* ) # Absolute name. 1591 ac_srcdir=$srcdir$ac_dir_suffix; 1592 ac_top_srcdir=$srcdir 1593 ac_abs_top_srcdir=$srcdir ;; 1594 *) # Relative name. 1595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1596 ac_top_srcdir=$ac_top_build_prefix$srcdir 1597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1598esac 1599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1600 1601 cd "$ac_dir" || { ac_status=$?; continue; } 1602 # Check for configure.gnu first; this name is used for a wrapper for 1603 # Metaconfig's "Configure" on case-insensitive file systems. 1604 if test -f "$ac_srcdir/configure.gnu"; then 1605 echo && 1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1607 elif test -f "$ac_srcdir/configure"; then 1608 echo && 1609 $SHELL "$ac_srcdir/configure" --help=recursive 1610 else 1611 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1612 fi || ac_status=$? 1613 cd "$ac_pwd" || { ac_status=$?; break; } 1614 done 1615fi 1616 1617test -n "$ac_init_help" && exit $ac_status 1618if $ac_init_version; then 1619 cat <<\_ACEOF 1620xf86-video-geode configure 2.11.21 1621generated by GNU Autoconf 2.71 1622 1623Copyright (C) 2021 Free Software Foundation, Inc. 1624This configure script is free software; the Free Software Foundation 1625gives unlimited permission to copy, distribute and modify it. 1626_ACEOF 1627 exit 1628fi 1629 1630## ------------------------ ## 1631## Autoconf initialization. ## 1632## ------------------------ ## 1633 1634# ac_fn_c_try_compile LINENO 1635# -------------------------- 1636# Try to compile conftest.$ac_ext, and return whether this succeeded. 1637ac_fn_c_try_compile () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 rm -f conftest.$ac_objext conftest.beam 1641 if { { ac_try="$ac_compile" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647printf "%s\n" "$ac_try_echo"; } >&5 1648 (eval "$ac_compile") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } && { 1657 test -z "$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 } && test -s conftest.$ac_objext 1660then : 1661 ac_retval=0 1662else $as_nop 1663 printf "%s\n" "$as_me: failed program was:" >&5 1664sed 's/^/| /' conftest.$ac_ext >&5 1665 1666 ac_retval=1 1667fi 1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1669 as_fn_set_status $ac_retval 1670 1671} # ac_fn_c_try_compile 1672 1673# ac_fn_c_try_link LINENO 1674# ----------------------- 1675# Try to link conftest.$ac_ext, and return whether this succeeded. 1676ac_fn_c_try_link () 1677{ 1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1679 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1680 if { { ac_try="$ac_link" 1681case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684esac 1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686printf "%s\n" "$ac_try_echo"; } >&5 1687 (eval "$ac_link") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { 1696 test -z "$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 } && test -s conftest$ac_exeext && { 1699 test "$cross_compiling" = yes || 1700 test -x conftest$ac_exeext 1701 } 1702then : 1703 ac_retval=0 1704else $as_nop 1705 printf "%s\n" "$as_me: failed program was:" >&5 1706sed 's/^/| /' conftest.$ac_ext >&5 1707 1708 ac_retval=1 1709fi 1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1712 # interfere with the next link command; also delete a directory that is 1713 # left behind by Apple's compiler. We do this before executing the actions. 1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_link 1719 1720# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1721# ------------------------------------------------------- 1722# Tests whether HEADER exists and can be compiled using the include files in 1723# INCLUDES, setting the cache variable VAR accordingly. 1724ac_fn_c_check_header_compile () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728printf %s "checking for $2... " >&6; } 1729if eval test \${$3+y} 1730then : 1731 printf %s "(cached) " >&6 1732else $as_nop 1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1734/* end confdefs.h. */ 1735$4 1736#include <$2> 1737_ACEOF 1738if ac_fn_c_try_compile "$LINENO" 1739then : 1740 eval "$3=yes" 1741else $as_nop 1742 eval "$3=no" 1743fi 1744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1745fi 1746eval ac_res=\$$3 1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1748printf "%s\n" "$ac_res" >&6; } 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 1751} # ac_fn_c_check_header_compile 1752 1753# ac_fn_c_check_func LINENO FUNC VAR 1754# ---------------------------------- 1755# Tests whether FUNC exists, setting the cache variable VAR accordingly 1756ac_fn_c_check_func () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1760printf %s "checking for $2... " >&6; } 1761if eval test \${$3+y} 1762then : 1763 printf %s "(cached) " >&6 1764else $as_nop 1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766/* end confdefs.h. */ 1767/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1768 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1769#define $2 innocuous_$2 1770 1771/* System header to define __stub macros and hopefully few prototypes, 1772 which can conflict with char $2 (); below. */ 1773 1774#include <limits.h> 1775#undef $2 1776 1777/* Override any GCC internal prototype to avoid an error. 1778 Use char because int might match the return type of a GCC 1779 builtin and then its argument prototype would still apply. */ 1780#ifdef __cplusplus 1781extern "C" 1782#endif 1783char $2 (); 1784/* The GNU C library defines this for functions which it implements 1785 to always fail with ENOSYS. Some functions are actually named 1786 something starting with __ and the normal name is an alias. */ 1787#if defined __stub_$2 || defined __stub___$2 1788choke me 1789#endif 1790 1791int 1792main (void) 1793{ 1794return $2 (); 1795 ; 1796 return 0; 1797} 1798_ACEOF 1799if ac_fn_c_try_link "$LINENO" 1800then : 1801 eval "$3=yes" 1802else $as_nop 1803 eval "$3=no" 1804fi 1805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1806 conftest$ac_exeext conftest.$ac_ext 1807fi 1808eval ac_res=\$$3 1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810printf "%s\n" "$ac_res" >&6; } 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 1813} # ac_fn_c_check_func 1814 1815# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1816# ------------------------------------------------------------------ 1817# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1818# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1819ac_fn_check_decl () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 as_decl_name=`echo $2|sed 's/ *(.*//'` 1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1824printf %s "checking whether $as_decl_name is declared... " >&6; } 1825if eval test \${$3+y} 1826then : 1827 printf %s "(cached) " >&6 1828else $as_nop 1829 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1830 eval ac_save_FLAGS=\$$6 1831 as_fn_append $6 " $5" 1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1833/* end confdefs.h. */ 1834$4 1835int 1836main (void) 1837{ 1838#ifndef $as_decl_name 1839#ifdef __cplusplus 1840 (void) $as_decl_use; 1841#else 1842 (void) $as_decl_name; 1843#endif 1844#endif 1845 1846 ; 1847 return 0; 1848} 1849_ACEOF 1850if ac_fn_c_try_compile "$LINENO" 1851then : 1852 eval "$3=yes" 1853else $as_nop 1854 eval "$3=no" 1855fi 1856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1857 eval $6=\$ac_save_FLAGS 1858 1859fi 1860eval ac_res=\$$3 1861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1862printf "%s\n" "$ac_res" >&6; } 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 1865} # ac_fn_check_decl 1866ac_configure_args_raw= 1867for ac_arg 1868do 1869 case $ac_arg in 1870 *\'*) 1871 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1872 esac 1873 as_fn_append ac_configure_args_raw " '$ac_arg'" 1874done 1875 1876case $ac_configure_args_raw in 1877 *$as_nl*) 1878 ac_safe_unquote= ;; 1879 *) 1880 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1881 ac_unsafe_a="$ac_unsafe_z#~" 1882 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1883 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1884esac 1885 1886cat >config.log <<_ACEOF 1887This file contains any messages produced by compilers while 1888running configure, to aid debugging if configure makes a mistake. 1889 1890It was created by xf86-video-geode $as_me 2.11.21, which was 1891generated by GNU Autoconf 2.71. Invocation command line was 1892 1893 $ $0$ac_configure_args_raw 1894 1895_ACEOF 1896exec 5>>config.log 1897{ 1898cat <<_ASUNAME 1899## --------- ## 1900## Platform. ## 1901## --------- ## 1902 1903hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1904uname -m = `(uname -m) 2>/dev/null || echo unknown` 1905uname -r = `(uname -r) 2>/dev/null || echo unknown` 1906uname -s = `(uname -s) 2>/dev/null || echo unknown` 1907uname -v = `(uname -v) 2>/dev/null || echo unknown` 1908 1909/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1910/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1911 1912/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1913/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1914/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1915/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1916/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1917/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1918/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1919 1920_ASUNAME 1921 1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1923for as_dir in $PATH 1924do 1925 IFS=$as_save_IFS 1926 case $as_dir in #((( 1927 '') as_dir=./ ;; 1928 */) ;; 1929 *) as_dir=$as_dir/ ;; 1930 esac 1931 printf "%s\n" "PATH: $as_dir" 1932 done 1933IFS=$as_save_IFS 1934 1935} >&5 1936 1937cat >&5 <<_ACEOF 1938 1939 1940## ----------- ## 1941## Core tests. ## 1942## ----------- ## 1943 1944_ACEOF 1945 1946 1947# Keep a trace of the command line. 1948# Strip out --no-create and --no-recursion so they do not pile up. 1949# Strip out --silent because we don't want to record it for future runs. 1950# Also quote any args containing shell meta-characters. 1951# Make two passes to allow for proper duplicate-argument suppression. 1952ac_configure_args= 1953ac_configure_args0= 1954ac_configure_args1= 1955ac_must_keep_next=false 1956for ac_pass in 1 2 1957do 1958 for ac_arg 1959 do 1960 case $ac_arg in 1961 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1963 | -silent | --silent | --silen | --sile | --sil) 1964 continue ;; 1965 *\'*) 1966 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1967 esac 1968 case $ac_pass in 1969 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1970 2) 1971 as_fn_append ac_configure_args1 " '$ac_arg'" 1972 if test $ac_must_keep_next = true; then 1973 ac_must_keep_next=false # Got value, back to normal. 1974 else 1975 case $ac_arg in 1976 *=* | --config-cache | -C | -disable-* | --disable-* \ 1977 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1978 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1979 | -with-* | --with-* | -without-* | --without-* | --x) 1980 case "$ac_configure_args0 " in 1981 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1982 esac 1983 ;; 1984 -* ) ac_must_keep_next=true ;; 1985 esac 1986 fi 1987 as_fn_append ac_configure_args " '$ac_arg'" 1988 ;; 1989 esac 1990 done 1991done 1992{ ac_configure_args0=; unset ac_configure_args0;} 1993{ ac_configure_args1=; unset ac_configure_args1;} 1994 1995# When interrupted or exit'd, cleanup temporary files, and complete 1996# config.log. We remove comments because anyway the quotes in there 1997# would cause problems or look ugly. 1998# WARNING: Use '\'' to represent an apostrophe within the trap. 1999# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2000trap 'exit_status=$? 2001 # Sanitize IFS. 2002 IFS=" "" $as_nl" 2003 # Save into config.log some information that might help in debugging. 2004 { 2005 echo 2006 2007 printf "%s\n" "## ---------------- ## 2008## Cache variables. ## 2009## ---------------- ##" 2010 echo 2011 # The following way of writing the cache mishandles newlines in values, 2012( 2013 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2014 eval ac_val=\$$ac_var 2015 case $ac_val in #( 2016 *${as_nl}*) 2017 case $ac_var in #( 2018 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2019printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2020 esac 2021 case $ac_var in #( 2022 _ | IFS | as_nl) ;; #( 2023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2024 *) { eval $ac_var=; unset $ac_var;} ;; 2025 esac ;; 2026 esac 2027 done 2028 (set) 2>&1 | 2029 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2030 *${as_nl}ac_space=\ *) 2031 sed -n \ 2032 "s/'\''/'\''\\\\'\'''\''/g; 2033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2034 ;; #( 2035 *) 2036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2037 ;; 2038 esac | 2039 sort 2040) 2041 echo 2042 2043 printf "%s\n" "## ----------------- ## 2044## Output variables. ## 2045## ----------------- ##" 2046 echo 2047 for ac_var in $ac_subst_vars 2048 do 2049 eval ac_val=\$$ac_var 2050 case $ac_val in 2051 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2052 esac 2053 printf "%s\n" "$ac_var='\''$ac_val'\''" 2054 done | sort 2055 echo 2056 2057 if test -n "$ac_subst_files"; then 2058 printf "%s\n" "## ------------------- ## 2059## File substitutions. ## 2060## ------------------- ##" 2061 echo 2062 for ac_var in $ac_subst_files 2063 do 2064 eval ac_val=\$$ac_var 2065 case $ac_val in 2066 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2067 esac 2068 printf "%s\n" "$ac_var='\''$ac_val'\''" 2069 done | sort 2070 echo 2071 fi 2072 2073 if test -s confdefs.h; then 2074 printf "%s\n" "## ----------- ## 2075## confdefs.h. ## 2076## ----------- ##" 2077 echo 2078 cat confdefs.h 2079 echo 2080 fi 2081 test "$ac_signal" != 0 && 2082 printf "%s\n" "$as_me: caught signal $ac_signal" 2083 printf "%s\n" "$as_me: exit $exit_status" 2084 } >&5 2085 rm -f core *.core core.conftest.* && 2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2087 exit $exit_status 2088' 0 2089for ac_signal in 1 2 13 15; do 2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2091done 2092ac_signal=0 2093 2094# confdefs.h avoids OS command line length limits that DEFS can exceed. 2095rm -f -r conftest* confdefs.h 2096 2097printf "%s\n" "/* confdefs.h */" > confdefs.h 2098 2099# Predefined preprocessor variables. 2100 2101printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2102 2103printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2104 2105printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2106 2107printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2108 2109printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2110 2111printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2112 2113 2114# Let the site file select an alternate cache file if it wants to. 2115# Prefer an explicitly selected file to automatically selected ones. 2116if test -n "$CONFIG_SITE"; then 2117 ac_site_files="$CONFIG_SITE" 2118elif test "x$prefix" != xNONE; then 2119 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2120else 2121 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2122fi 2123 2124for ac_site_file in $ac_site_files 2125do 2126 case $ac_site_file in #( 2127 */*) : 2128 ;; #( 2129 *) : 2130 ac_site_file=./$ac_site_file ;; 2131esac 2132 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2134printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2135 sed 's/^/| /' "$ac_site_file" >&5 2136 . "$ac_site_file" \ 2137 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2138printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2139as_fn_error $? "failed to load site script $ac_site_file 2140See \`config.log' for more details" "$LINENO" 5; } 2141 fi 2142done 2143 2144if test -r "$cache_file"; then 2145 # Some versions of bash will fail to source /dev/null (special files 2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2149printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2150 case $cache_file in 2151 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2152 *) . "./$cache_file";; 2153 esac 2154 fi 2155else 2156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2157printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2158 >$cache_file 2159fi 2160 2161# Test code for whether the C compiler supports C89 (global declarations) 2162ac_c_conftest_c89_globals=' 2163/* Does the compiler advertise C89 conformance? 2164 Do not test the value of __STDC__, because some compilers set it to 0 2165 while being otherwise adequately conformant. */ 2166#if !defined __STDC__ 2167# error "Compiler does not advertise C89 conformance" 2168#endif 2169 2170#include <stddef.h> 2171#include <stdarg.h> 2172struct stat; 2173/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2174struct buf { int x; }; 2175struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2176static char *e (p, i) 2177 char **p; 2178 int i; 2179{ 2180 return p[i]; 2181} 2182static char *f (char * (*g) (char **, int), char **p, ...) 2183{ 2184 char *s; 2185 va_list v; 2186 va_start (v,p); 2187 s = g (p, va_arg (v,int)); 2188 va_end (v); 2189 return s; 2190} 2191 2192/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2193 function prototypes and stuff, but not \xHH hex character constants. 2194 These do not provoke an error unfortunately, instead are silently treated 2195 as an "x". The following induces an error, until -std is added to get 2196 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2197 array size at least. It is necessary to write \x00 == 0 to get something 2198 that is true only with -std. */ 2199int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2200 2201/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2202 inside strings and character constants. */ 2203#define FOO(x) '\''x'\'' 2204int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2205 2206int test (int i, double x); 2207struct s1 {int (*f) (int a);}; 2208struct s2 {int (*f) (double a);}; 2209int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2210 int, int);' 2211 2212# Test code for whether the C compiler supports C89 (body of main). 2213ac_c_conftest_c89_main=' 2214ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2215' 2216 2217# Test code for whether the C compiler supports C99 (global declarations) 2218ac_c_conftest_c99_globals=' 2219// Does the compiler advertise C99 conformance? 2220#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2221# error "Compiler does not advertise C99 conformance" 2222#endif 2223 2224#include <stdbool.h> 2225extern int puts (const char *); 2226extern int printf (const char *, ...); 2227extern int dprintf (int, const char *, ...); 2228extern void *malloc (size_t); 2229 2230// Check varargs macros. These examples are taken from C99 6.10.3.5. 2231// dprintf is used instead of fprintf to avoid needing to declare 2232// FILE and stderr. 2233#define debug(...) dprintf (2, __VA_ARGS__) 2234#define showlist(...) puts (#__VA_ARGS__) 2235#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2236static void 2237test_varargs_macros (void) 2238{ 2239 int x = 1234; 2240 int y = 5678; 2241 debug ("Flag"); 2242 debug ("X = %d\n", x); 2243 showlist (The first, second, and third items.); 2244 report (x>y, "x is %d but y is %d", x, y); 2245} 2246 2247// Check long long types. 2248#define BIG64 18446744073709551615ull 2249#define BIG32 4294967295ul 2250#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2251#if !BIG_OK 2252 #error "your preprocessor is broken" 2253#endif 2254#if BIG_OK 2255#else 2256 #error "your preprocessor is broken" 2257#endif 2258static long long int bignum = -9223372036854775807LL; 2259static unsigned long long int ubignum = BIG64; 2260 2261struct incomplete_array 2262{ 2263 int datasize; 2264 double data[]; 2265}; 2266 2267struct named_init { 2268 int number; 2269 const wchar_t *name; 2270 double average; 2271}; 2272 2273typedef const char *ccp; 2274 2275static inline int 2276test_restrict (ccp restrict text) 2277{ 2278 // See if C++-style comments work. 2279 // Iterate through items via the restricted pointer. 2280 // Also check for declarations in for loops. 2281 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2282 continue; 2283 return 0; 2284} 2285 2286// Check varargs and va_copy. 2287static bool 2288test_varargs (const char *format, ...) 2289{ 2290 va_list args; 2291 va_start (args, format); 2292 va_list args_copy; 2293 va_copy (args_copy, args); 2294 2295 const char *str = ""; 2296 int number = 0; 2297 float fnumber = 0; 2298 2299 while (*format) 2300 { 2301 switch (*format++) 2302 { 2303 case '\''s'\'': // string 2304 str = va_arg (args_copy, const char *); 2305 break; 2306 case '\''d'\'': // int 2307 number = va_arg (args_copy, int); 2308 break; 2309 case '\''f'\'': // float 2310 fnumber = va_arg (args_copy, double); 2311 break; 2312 default: 2313 break; 2314 } 2315 } 2316 va_end (args_copy); 2317 va_end (args); 2318 2319 return *str && number && fnumber; 2320} 2321' 2322 2323# Test code for whether the C compiler supports C99 (body of main). 2324ac_c_conftest_c99_main=' 2325 // Check bool. 2326 _Bool success = false; 2327 success |= (argc != 0); 2328 2329 // Check restrict. 2330 if (test_restrict ("String literal") == 0) 2331 success = true; 2332 char *restrict newvar = "Another string"; 2333 2334 // Check varargs. 2335 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2336 test_varargs_macros (); 2337 2338 // Check flexible array members. 2339 struct incomplete_array *ia = 2340 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2341 ia->datasize = 10; 2342 for (int i = 0; i < ia->datasize; ++i) 2343 ia->data[i] = i * 1.234; 2344 2345 // Check named initializers. 2346 struct named_init ni = { 2347 .number = 34, 2348 .name = L"Test wide string", 2349 .average = 543.34343, 2350 }; 2351 2352 ni.number = 58; 2353 2354 int dynamic_array[ni.number]; 2355 dynamic_array[0] = argv[0][0]; 2356 dynamic_array[ni.number - 1] = 543; 2357 2358 // work around unused variable warnings 2359 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2360 || dynamic_array[ni.number - 1] != 543); 2361' 2362 2363# Test code for whether the C compiler supports C11 (global declarations) 2364ac_c_conftest_c11_globals=' 2365// Does the compiler advertise C11 conformance? 2366#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2367# error "Compiler does not advertise C11 conformance" 2368#endif 2369 2370// Check _Alignas. 2371char _Alignas (double) aligned_as_double; 2372char _Alignas (0) no_special_alignment; 2373extern char aligned_as_int; 2374char _Alignas (0) _Alignas (int) aligned_as_int; 2375 2376// Check _Alignof. 2377enum 2378{ 2379 int_alignment = _Alignof (int), 2380 int_array_alignment = _Alignof (int[100]), 2381 char_alignment = _Alignof (char) 2382}; 2383_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2384 2385// Check _Noreturn. 2386int _Noreturn does_not_return (void) { for (;;) continue; } 2387 2388// Check _Static_assert. 2389struct test_static_assert 2390{ 2391 int x; 2392 _Static_assert (sizeof (int) <= sizeof (long int), 2393 "_Static_assert does not work in struct"); 2394 long int y; 2395}; 2396 2397// Check UTF-8 literals. 2398#define u8 syntax error! 2399char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2400 2401// Check duplicate typedefs. 2402typedef long *long_ptr; 2403typedef long int *long_ptr; 2404typedef long_ptr long_ptr; 2405 2406// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2407struct anonymous 2408{ 2409 union { 2410 struct { int i; int j; }; 2411 struct { int k; long int l; } w; 2412 }; 2413 int m; 2414} v1; 2415' 2416 2417# Test code for whether the C compiler supports C11 (body of main). 2418ac_c_conftest_c11_main=' 2419 _Static_assert ((offsetof (struct anonymous, i) 2420 == offsetof (struct anonymous, w.k)), 2421 "Anonymous union alignment botch"); 2422 v1.i = 2; 2423 v1.w.k = 5; 2424 ok |= v1.i != 5; 2425' 2426 2427# Test code for whether the C compiler supports C11 (complete). 2428ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2429${ac_c_conftest_c99_globals} 2430${ac_c_conftest_c11_globals} 2431 2432int 2433main (int argc, char **argv) 2434{ 2435 int ok = 0; 2436 ${ac_c_conftest_c89_main} 2437 ${ac_c_conftest_c99_main} 2438 ${ac_c_conftest_c11_main} 2439 return ok; 2440} 2441" 2442 2443# Test code for whether the C compiler supports C99 (complete). 2444ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2445${ac_c_conftest_c99_globals} 2446 2447int 2448main (int argc, char **argv) 2449{ 2450 int ok = 0; 2451 ${ac_c_conftest_c89_main} 2452 ${ac_c_conftest_c99_main} 2453 return ok; 2454} 2455" 2456 2457# Test code for whether the C compiler supports C89 (complete). 2458ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2459 2460int 2461main (int argc, char **argv) 2462{ 2463 int ok = 0; 2464 ${ac_c_conftest_c89_main} 2465 return ok; 2466} 2467" 2468 2469as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2470as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2471as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2472as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2473as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2474as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2475as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2476as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2477as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2478 2479# Auxiliary files required by this configure script. 2480ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2481 2482# Locations in which to look for auxiliary files. 2483ac_aux_dir_candidates="${srcdir}/build-aux" 2484 2485# Search for a directory containing all of the required auxiliary files, 2486# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2487# If we don't find one directory that contains all the files we need, 2488# we report the set of missing files from the *first* directory in 2489# $ac_aux_dir_candidates and give up. 2490ac_missing_aux_files="" 2491ac_first_candidate=: 2492printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2494as_found=false 2495for as_dir in $ac_aux_dir_candidates 2496do 2497 IFS=$as_save_IFS 2498 case $as_dir in #((( 2499 '') as_dir=./ ;; 2500 */) ;; 2501 *) as_dir=$as_dir/ ;; 2502 esac 2503 as_found=: 2504 2505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2506 ac_aux_dir_found=yes 2507 ac_install_sh= 2508 for ac_aux in $ac_aux_files 2509 do 2510 # As a special case, if "install-sh" is required, that requirement 2511 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2512 # and $ac_install_sh is set appropriately for whichever one is found. 2513 if test x"$ac_aux" = x"install-sh" 2514 then 2515 if test -f "${as_dir}install-sh"; then 2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2517 ac_install_sh="${as_dir}install-sh -c" 2518 elif test -f "${as_dir}install.sh"; then 2519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2520 ac_install_sh="${as_dir}install.sh -c" 2521 elif test -f "${as_dir}shtool"; then 2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2523 ac_install_sh="${as_dir}shtool install -c" 2524 else 2525 ac_aux_dir_found=no 2526 if $ac_first_candidate; then 2527 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2528 else 2529 break 2530 fi 2531 fi 2532 else 2533 if test -f "${as_dir}${ac_aux}"; then 2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2535 else 2536 ac_aux_dir_found=no 2537 if $ac_first_candidate; then 2538 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2539 else 2540 break 2541 fi 2542 fi 2543 fi 2544 done 2545 if test "$ac_aux_dir_found" = yes; then 2546 ac_aux_dir="$as_dir" 2547 break 2548 fi 2549 ac_first_candidate=false 2550 2551 as_found=false 2552done 2553IFS=$as_save_IFS 2554if $as_found 2555then : 2556 2557else $as_nop 2558 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2559fi 2560 2561 2562# These three variables are undocumented and unsupported, 2563# and are intended to be withdrawn in a future Autoconf release. 2564# They can cause serious problems if a builder's source tree is in a directory 2565# whose full name contains unusual characters. 2566if test -f "${ac_aux_dir}config.guess"; then 2567 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2568fi 2569if test -f "${ac_aux_dir}config.sub"; then 2570 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2571fi 2572if test -f "$ac_aux_dir/configure"; then 2573 ac_configure="$SHELL ${ac_aux_dir}configure" 2574fi 2575 2576# Check that the precious variables saved in the cache have kept the same 2577# value. 2578ac_cache_corrupted=false 2579for ac_var in $ac_precious_vars; do 2580 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2581 eval ac_new_set=\$ac_env_${ac_var}_set 2582 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2583 eval ac_new_val=\$ac_env_${ac_var}_value 2584 case $ac_old_set,$ac_new_set in 2585 set,) 2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2587printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2588 ac_cache_corrupted=: ;; 2589 ,set) 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2591printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2592 ac_cache_corrupted=: ;; 2593 ,);; 2594 *) 2595 if test "x$ac_old_val" != "x$ac_new_val"; then 2596 # differences in whitespace do not lead to failure. 2597 ac_old_val_w=`echo x $ac_old_val` 2598 ac_new_val_w=`echo x $ac_new_val` 2599 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2601printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2602 ac_cache_corrupted=: 2603 else 2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2605printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2606 eval $ac_var=\$ac_old_val 2607 fi 2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2609printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2611printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2612 fi;; 2613 esac 2614 # Pass precious variables to config.status. 2615 if test "$ac_new_set" = set; then 2616 case $ac_new_val in 2617 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2618 *) ac_arg=$ac_var=$ac_new_val ;; 2619 esac 2620 case " $ac_configure_args " in 2621 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2622 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2623 esac 2624 fi 2625done 2626if $ac_cache_corrupted; then 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2628printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2630printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2631 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2632 and start over" "$LINENO" 5 2633fi 2634## -------------------- ## 2635## Main body of script. ## 2636## -------------------- ## 2637 2638ac_ext=c 2639ac_cpp='$CPP $CPPFLAGS' 2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2642ac_compiler_gnu=$ac_cv_c_compiler_gnu 2643 2644 2645 2646 2647ac_config_headers="$ac_config_headers config.h" 2648 2649 2650 2651 2652# Initialize Automake 2653am__api_version='1.16' 2654 2655 2656 2657 # Find a good install program. We prefer a C program (faster), 2658# so one script is as good as another. But avoid the broken or 2659# incompatible versions: 2660# SysV /etc/install, /usr/sbin/install 2661# SunOS /usr/etc/install 2662# IRIX /sbin/install 2663# AIX /bin/install 2664# AmigaOS /C/install, which installs bootblocks on floppy discs 2665# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2666# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2667# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2668# OS/2's system install, which has a completely different semantic 2669# ./install, which can be erroneously created by make from ./install.sh. 2670# Reject install programs that cannot install multiple files. 2671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2672printf %s "checking for a BSD-compatible install... " >&6; } 2673if test -z "$INSTALL"; then 2674if test ${ac_cv_path_install+y} 2675then : 2676 printf %s "(cached) " >&6 2677else $as_nop 2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH 2680do 2681 IFS=$as_save_IFS 2682 case $as_dir in #((( 2683 '') as_dir=./ ;; 2684 */) ;; 2685 *) as_dir=$as_dir/ ;; 2686 esac 2687 # Account for fact that we put trailing slashes in our PATH walk. 2688case $as_dir in #(( 2689 ./ | /[cC]/* | \ 2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2692 /usr/ucb/* ) ;; 2693 *) 2694 # OSF1 and SCO ODT 3.0 have their own names for install. 2695 # Don't use installbsd from OSF since it installs stuff as root 2696 # by default. 2697 for ac_prog in ginstall scoinst install; do 2698 for ac_exec_ext in '' $ac_executable_extensions; do 2699 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2700 if test $ac_prog = install && 2701 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2702 # AIX install. It has an incompatible calling convention. 2703 : 2704 elif test $ac_prog = install && 2705 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2706 # program-specific install script used by HP pwplus--don't use. 2707 : 2708 else 2709 rm -rf conftest.one conftest.two conftest.dir 2710 echo one > conftest.one 2711 echo two > conftest.two 2712 mkdir conftest.dir 2713 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2714 test -s conftest.one && test -s conftest.two && 2715 test -s conftest.dir/conftest.one && 2716 test -s conftest.dir/conftest.two 2717 then 2718 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2719 break 3 2720 fi 2721 fi 2722 fi 2723 done 2724 done 2725 ;; 2726esac 2727 2728 done 2729IFS=$as_save_IFS 2730 2731rm -rf conftest.one conftest.two conftest.dir 2732 2733fi 2734 if test ${ac_cv_path_install+y}; then 2735 INSTALL=$ac_cv_path_install 2736 else 2737 # As a last resort, use the slow shell script. Don't cache a 2738 # value for INSTALL within a source directory, because that will 2739 # break other packages using the cache if that directory is 2740 # removed, or if the value is a relative name. 2741 INSTALL=$ac_install_sh 2742 fi 2743fi 2744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2745printf "%s\n" "$INSTALL" >&6; } 2746 2747# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2748# It thinks the first close brace ends the variable substitution. 2749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2750 2751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2752 2753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2754 2755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2756printf %s "checking whether build environment is sane... " >&6; } 2757# Reject unsafe characters in $srcdir or the absolute working directory 2758# name. Accept space and tab only in the latter. 2759am_lf=' 2760' 2761case `pwd` in 2762 *[\\\"\#\$\&\'\`$am_lf]*) 2763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2764esac 2765case $srcdir in 2766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2768esac 2769 2770# Do 'set' in a subshell so we don't clobber the current shell's 2771# arguments. Must try -L first in case configure is actually a 2772# symlink; some systems play weird games with the mod time of symlinks 2773# (eg FreeBSD returns the mod time of the symlink's containing 2774# directory). 2775if ( 2776 am_has_slept=no 2777 for am_try in 1 2; do 2778 echo "timestamp, slept: $am_has_slept" > conftest.file 2779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2780 if test "$*" = "X"; then 2781 # -L didn't work. 2782 set X `ls -t "$srcdir/configure" conftest.file` 2783 fi 2784 if test "$*" != "X $srcdir/configure conftest.file" \ 2785 && test "$*" != "X conftest.file $srcdir/configure"; then 2786 2787 # If neither matched, then we have a broken ls. This can happen 2788 # if, for instance, CONFIG_SHELL is bash and it inherits a 2789 # broken ls alias from the environment. This has actually 2790 # happened. Such a system could not be considered "sane". 2791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2792 alias in your environment" "$LINENO" 5 2793 fi 2794 if test "$2" = conftest.file || test $am_try -eq 2; then 2795 break 2796 fi 2797 # Just in case. 2798 sleep 1 2799 am_has_slept=yes 2800 done 2801 test "$2" = conftest.file 2802 ) 2803then 2804 # Ok. 2805 : 2806else 2807 as_fn_error $? "newly created file is older than distributed files! 2808Check your system clock" "$LINENO" 5 2809fi 2810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2811printf "%s\n" "yes" >&6; } 2812# If we didn't sleep, we still need to ensure time stamps of config.status and 2813# generated files are strictly newer. 2814am_sleep_pid= 2815if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2816 ( sleep 1 ) & 2817 am_sleep_pid=$! 2818fi 2819 2820rm -f conftest.file 2821 2822test "$program_prefix" != NONE && 2823 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2824# Use a double $ so make ignores it. 2825test "$program_suffix" != NONE && 2826 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2827# Double any \ or $. 2828# By default was `s,x,x', remove it if useless. 2829ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2830program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2831 2832 2833# Expand $ac_aux_dir to an absolute path. 2834am_aux_dir=`cd "$ac_aux_dir" && pwd` 2835 2836 2837 if test x"${MISSING+set}" != xset; then 2838 MISSING="\${SHELL} '$am_aux_dir/missing'" 2839fi 2840# Use eval to expand $SHELL 2841if eval "$MISSING --is-lightweight"; then 2842 am_missing_run="$MISSING " 2843else 2844 am_missing_run= 2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2846printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2847fi 2848 2849if test x"${install_sh+set}" != xset; then 2850 case $am_aux_dir in 2851 *\ * | *\ *) 2852 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2853 *) 2854 install_sh="\${SHELL} $am_aux_dir/install-sh" 2855 esac 2856fi 2857 2858# Installed binaries are usually stripped using 'strip' when the user 2859# run "make install-strip". However 'strip' might not be the right 2860# tool to use in cross-compilation environments, therefore Automake 2861# will honor the 'STRIP' environment variable to overrule this program. 2862if test "$cross_compiling" != no; then 2863 if test -n "$ac_tool_prefix"; then 2864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2865set dummy ${ac_tool_prefix}strip; ac_word=$2 2866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867printf %s "checking for $ac_word... " >&6; } 2868if test ${ac_cv_prog_STRIP+y} 2869then : 2870 printf %s "(cached) " >&6 2871else $as_nop 2872 if test -n "$STRIP"; then 2873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2874else 2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2876for as_dir in $PATH 2877do 2878 IFS=$as_save_IFS 2879 case $as_dir in #((( 2880 '') as_dir=./ ;; 2881 */) ;; 2882 *) as_dir=$as_dir/ ;; 2883 esac 2884 for ac_exec_ext in '' $ac_executable_extensions; do 2885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2886 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2888 break 2 2889 fi 2890done 2891 done 2892IFS=$as_save_IFS 2893 2894fi 2895fi 2896STRIP=$ac_cv_prog_STRIP 2897if test -n "$STRIP"; then 2898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2899printf "%s\n" "$STRIP" >&6; } 2900else 2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2902printf "%s\n" "no" >&6; } 2903fi 2904 2905 2906fi 2907if test -z "$ac_cv_prog_STRIP"; then 2908 ac_ct_STRIP=$STRIP 2909 # Extract the first word of "strip", so it can be a program name with args. 2910set dummy strip; ac_word=$2 2911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2912printf %s "checking for $ac_word... " >&6; } 2913if test ${ac_cv_prog_ac_ct_STRIP+y} 2914then : 2915 printf %s "(cached) " >&6 2916else $as_nop 2917 if test -n "$ac_ct_STRIP"; then 2918 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2919else 2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2921for as_dir in $PATH 2922do 2923 IFS=$as_save_IFS 2924 case $as_dir in #((( 2925 '') as_dir=./ ;; 2926 */) ;; 2927 *) as_dir=$as_dir/ ;; 2928 esac 2929 for ac_exec_ext in '' $ac_executable_extensions; do 2930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2931 ac_cv_prog_ac_ct_STRIP="strip" 2932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2933 break 2 2934 fi 2935done 2936 done 2937IFS=$as_save_IFS 2938 2939fi 2940fi 2941ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2942if test -n "$ac_ct_STRIP"; then 2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2944printf "%s\n" "$ac_ct_STRIP" >&6; } 2945else 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2947printf "%s\n" "no" >&6; } 2948fi 2949 2950 if test "x$ac_ct_STRIP" = x; then 2951 STRIP=":" 2952 else 2953 case $cross_compiling:$ac_tool_warned in 2954yes:) 2955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2956printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2957ac_tool_warned=yes ;; 2958esac 2959 STRIP=$ac_ct_STRIP 2960 fi 2961else 2962 STRIP="$ac_cv_prog_STRIP" 2963fi 2964 2965fi 2966INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2967 2968 2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2970printf %s "checking for a race-free mkdir -p... " >&6; } 2971if test -z "$MKDIR_P"; then 2972 if test ${ac_cv_path_mkdir+y} 2973then : 2974 printf %s "(cached) " >&6 2975else $as_nop 2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2978do 2979 IFS=$as_save_IFS 2980 case $as_dir in #((( 2981 '') as_dir=./ ;; 2982 */) ;; 2983 *) as_dir=$as_dir/ ;; 2984 esac 2985 for ac_prog in mkdir gmkdir; do 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2988 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2989 'mkdir ('*'coreutils) '* | \ 2990 'BusyBox '* | \ 2991 'mkdir (fileutils) '4.1*) 2992 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2993 break 3;; 2994 esac 2995 done 2996 done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001 3002 test -d ./--version && rmdir ./--version 3003 if test ${ac_cv_path_mkdir+y}; then 3004 MKDIR_P="$ac_cv_path_mkdir -p" 3005 else 3006 # As a last resort, use the slow shell script. Don't cache a 3007 # value for MKDIR_P within a source directory, because that will 3008 # break other packages using the cache if that directory is 3009 # removed, or if the value is a relative name. 3010 MKDIR_P="$ac_install_sh -d" 3011 fi 3012fi 3013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3014printf "%s\n" "$MKDIR_P" >&6; } 3015 3016for ac_prog in gawk mawk nawk awk 3017do 3018 # Extract the first word of "$ac_prog", so it can be a program name with args. 3019set dummy $ac_prog; ac_word=$2 3020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3021printf %s "checking for $ac_word... " >&6; } 3022if test ${ac_cv_prog_AWK+y} 3023then : 3024 printf %s "(cached) " >&6 3025else $as_nop 3026 if test -n "$AWK"; then 3027 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3028else 3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3030for as_dir in $PATH 3031do 3032 IFS=$as_save_IFS 3033 case $as_dir in #((( 3034 '') as_dir=./ ;; 3035 */) ;; 3036 *) as_dir=$as_dir/ ;; 3037 esac 3038 for ac_exec_ext in '' $ac_executable_extensions; do 3039 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3040 ac_cv_prog_AWK="$ac_prog" 3041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3042 break 2 3043 fi 3044done 3045 done 3046IFS=$as_save_IFS 3047 3048fi 3049fi 3050AWK=$ac_cv_prog_AWK 3051if test -n "$AWK"; then 3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3053printf "%s\n" "$AWK" >&6; } 3054else 3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3056printf "%s\n" "no" >&6; } 3057fi 3058 3059 3060 test -n "$AWK" && break 3061done 3062 3063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3064printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3065set x ${MAKE-make} 3066ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3067if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3068then : 3069 printf %s "(cached) " >&6 3070else $as_nop 3071 cat >conftest.make <<\_ACEOF 3072SHELL = /bin/sh 3073all: 3074 @echo '@@@%%%=$(MAKE)=@@@%%%' 3075_ACEOF 3076# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3077case `${MAKE-make} -f conftest.make 2>/dev/null` in 3078 *@@@%%%=?*=@@@%%%*) 3079 eval ac_cv_prog_make_${ac_make}_set=yes;; 3080 *) 3081 eval ac_cv_prog_make_${ac_make}_set=no;; 3082esac 3083rm -f conftest.make 3084fi 3085if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3087printf "%s\n" "yes" >&6; } 3088 SET_MAKE= 3089else 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3091printf "%s\n" "no" >&6; } 3092 SET_MAKE="MAKE=${MAKE-make}" 3093fi 3094 3095rm -rf .tst 2>/dev/null 3096mkdir .tst 2>/dev/null 3097if test -d .tst; then 3098 am__leading_dot=. 3099else 3100 am__leading_dot=_ 3101fi 3102rmdir .tst 2>/dev/null 3103 3104# Check whether --enable-silent-rules was given. 3105if test ${enable_silent_rules+y} 3106then : 3107 enableval=$enable_silent_rules; 3108fi 3109 3110case $enable_silent_rules in # ((( 3111 yes) AM_DEFAULT_VERBOSITY=0;; 3112 no) AM_DEFAULT_VERBOSITY=1;; 3113 *) AM_DEFAULT_VERBOSITY=1;; 3114esac 3115am_make=${MAKE-make} 3116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3117printf %s "checking whether $am_make supports nested variables... " >&6; } 3118if test ${am_cv_make_support_nested_variables+y} 3119then : 3120 printf %s "(cached) " >&6 3121else $as_nop 3122 if printf "%s\n" 'TRUE=$(BAR$(V)) 3123BAR0=false 3124BAR1=true 3125V=1 3126am__doit: 3127 @$(TRUE) 3128.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3129 am_cv_make_support_nested_variables=yes 3130else 3131 am_cv_make_support_nested_variables=no 3132fi 3133fi 3134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3135printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3136if test $am_cv_make_support_nested_variables = yes; then 3137 AM_V='$(V)' 3138 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3139else 3140 AM_V=$AM_DEFAULT_VERBOSITY 3141 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3142fi 3143AM_BACKSLASH='\' 3144 3145if test "`cd $srcdir && pwd`" != "`pwd`"; then 3146 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3147 # is not polluted with repeated "-I." 3148 am__isrc=' -I$(srcdir)' 3149 # test to see if srcdir already configured 3150 if test -f $srcdir/config.status; then 3151 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3152 fi 3153fi 3154 3155# test whether we have cygpath 3156if test -z "$CYGPATH_W"; then 3157 if (cygpath --version) >/dev/null 2>/dev/null; then 3158 CYGPATH_W='cygpath -w' 3159 else 3160 CYGPATH_W=echo 3161 fi 3162fi 3163 3164 3165# Define the identity of the package. 3166 PACKAGE='xf86-video-geode' 3167 VERSION='2.11.21' 3168 3169 3170printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3171 3172 3173printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3174 3175# Some tools Automake needs. 3176 3177ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3178 3179 3180AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3181 3182 3183AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3184 3185 3186AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3187 3188 3189MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3190 3191# For better backward compatibility. To be removed once Automake 1.9.x 3192# dies out for good. For more background, see: 3193# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3194# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3195mkdir_p='$(MKDIR_P)' 3196 3197# We need awk for the "check" target (and possibly the TAP driver). The 3198# system "awk" is bad on some platforms. 3199# Always define AMTAR for backward compatibility. Yes, it's still used 3200# in the wild :-( We should find a proper way to deprecate it ... 3201AMTAR='$${TAR-tar}' 3202 3203 3204# We'll loop over all known methods to create a tar archive until one works. 3205_am_tools='gnutar pax cpio none' 3206 3207am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3208 3209 3210 3211 3212 3213# Variables for tags utilities; see am/tags.am 3214if test -z "$CTAGS"; then 3215 CTAGS=ctags 3216fi 3217 3218if test -z "$ETAGS"; then 3219 ETAGS=etags 3220fi 3221 3222if test -z "$CSCOPE"; then 3223 CSCOPE=cscope 3224fi 3225 3226 3227 3228# POSIX will say in a future version that running "rm -f" with no argument 3229# is OK; and we want to be able to make that assumption in our Makefile 3230# recipes. So use an aggressive probe to check that the usage we want is 3231# actually supported "in the wild" to an acceptable degree. 3232# See automake bug#10828. 3233# To make any issue more visible, cause the running configure to be aborted 3234# by default if the 'rm' program in use doesn't match our expectations; the 3235# user can still override this though. 3236if rm -f && rm -fr && rm -rf; then : OK; else 3237 cat >&2 <<'END' 3238Oops! 3239 3240Your 'rm' program seems unable to run without file operands specified 3241on the command line, even when the '-f' option is present. This is contrary 3242to the behaviour of most rm programs out there, and not conforming with 3243the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3244 3245Please tell bug-automake@gnu.org about your system, including the value 3246of your $PATH and any error possibly output before this message. This 3247can help us improve future automake versions. 3248 3249END 3250 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3251 echo 'Configuration will proceed anyway, since you have set the' >&2 3252 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3253 echo >&2 3254 else 3255 cat >&2 <<'END' 3256Aborting the configuration process, to ensure you take notice of the issue. 3257 3258You can download and install GNU coreutils to get an 'rm' implementation 3259that behaves properly: <https://www.gnu.org/software/coreutils/>. 3260 3261If you want to complete the configuration process using your problematic 3262'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3263to "yes", and re-run configure. 3264 3265END 3266 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3267 fi 3268fi 3269 3270 3271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3272printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3273 # Check whether --enable-maintainer-mode was given. 3274if test ${enable_maintainer_mode+y} 3275then : 3276 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3277else $as_nop 3278 USE_MAINTAINER_MODE=no 3279fi 3280 3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3282printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3283 if test $USE_MAINTAINER_MODE = yes; then 3284 MAINTAINER_MODE_TRUE= 3285 MAINTAINER_MODE_FALSE='#' 3286else 3287 MAINTAINER_MODE_TRUE='#' 3288 MAINTAINER_MODE_FALSE= 3289fi 3290 3291 MAINT=$MAINTAINER_MODE_TRUE 3292 3293 3294 3295# Initialize libtool 3296# Check whether --enable-static was given. 3297if test ${enable_static+y} 3298then : 3299 enableval=$enable_static; p=${PACKAGE-default} 3300 case $enableval in 3301 yes) enable_static=yes ;; 3302 no) enable_static=no ;; 3303 *) 3304 enable_static=no 3305 # Look at the argument we got. We use all the common list separators. 3306 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3307 for pkg in $enableval; do 3308 IFS=$lt_save_ifs 3309 if test "X$pkg" = "X$p"; then 3310 enable_static=yes 3311 fi 3312 done 3313 IFS=$lt_save_ifs 3314 ;; 3315 esac 3316else $as_nop 3317 enable_static=no 3318fi 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328case `pwd` in 3329 *\ * | *\ *) 3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3331printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3332esac 3333 3334 3335 3336macro_version='2.4.7' 3337macro_revision='2.4.7' 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352ltmain=$ac_aux_dir/ltmain.sh 3353 3354 3355 3356 # Make sure we can run config.sub. 3357$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3358 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3359 3360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3361printf %s "checking build system type... " >&6; } 3362if test ${ac_cv_build+y} 3363then : 3364 printf %s "(cached) " >&6 3365else $as_nop 3366 ac_build_alias=$build_alias 3367test "x$ac_build_alias" = x && 3368 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3369test "x$ac_build_alias" = x && 3370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3371ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3372 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3373 3374fi 3375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3376printf "%s\n" "$ac_cv_build" >&6; } 3377case $ac_cv_build in 3378*-*-*) ;; 3379*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3380esac 3381build=$ac_cv_build 3382ac_save_IFS=$IFS; IFS='-' 3383set x $ac_cv_build 3384shift 3385build_cpu=$1 3386build_vendor=$2 3387shift; shift 3388# Remember, the first character of IFS is used to create $*, 3389# except with old shells: 3390build_os=$* 3391IFS=$ac_save_IFS 3392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3393 3394 3395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3396printf %s "checking host system type... " >&6; } 3397if test ${ac_cv_host+y} 3398then : 3399 printf %s "(cached) " >&6 3400else $as_nop 3401 if test "x$host_alias" = x; then 3402 ac_cv_host=$ac_cv_build 3403else 3404 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3405 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3406fi 3407 3408fi 3409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3410printf "%s\n" "$ac_cv_host" >&6; } 3411case $ac_cv_host in 3412*-*-*) ;; 3413*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3414esac 3415host=$ac_cv_host 3416ac_save_IFS=$IFS; IFS='-' 3417set x $ac_cv_host 3418shift 3419host_cpu=$1 3420host_vendor=$2 3421shift; shift 3422# Remember, the first character of IFS is used to create $*, 3423# except with old shells: 3424host_os=$* 3425IFS=$ac_save_IFS 3426case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3427 3428 3429# Backslashify metacharacters that are still active within 3430# double-quoted strings. 3431sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3432 3433# Same as above, but do not quote variable references. 3434double_quote_subst='s/\(["`\\]\)/\\\1/g' 3435 3436# Sed substitution to delay expansion of an escaped shell variable in a 3437# double_quote_subst'ed string. 3438delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3439 3440# Sed substitution to delay expansion of an escaped single quote. 3441delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3442 3443# Sed substitution to avoid accidental globbing in evaled expressions 3444no_glob_subst='s/\*/\\\*/g' 3445 3446ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3447ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3448ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3449 3450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3451printf %s "checking how to print strings... " >&6; } 3452# Test print first, because it will be a builtin if present. 3453if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3454 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3455 ECHO='print -r --' 3456elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3457 ECHO='printf %s\n' 3458else 3459 # Use this function as a fallback that always works. 3460 func_fallback_echo () 3461 { 3462 eval 'cat <<_LTECHO_EOF 3463$1 3464_LTECHO_EOF' 3465 } 3466 ECHO='func_fallback_echo' 3467fi 3468 3469# func_echo_all arg... 3470# Invoke $ECHO with all args, space-separated. 3471func_echo_all () 3472{ 3473 $ECHO "" 3474} 3475 3476case $ECHO in 3477 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3478printf "%s\n" "printf" >&6; } ;; 3479 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3480printf "%s\n" "print -r" >&6; } ;; 3481 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3482printf "%s\n" "cat" >&6; } ;; 3483esac 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507DEPDIR="${am__leading_dot}deps" 3508 3509ac_config_commands="$ac_config_commands depfiles" 3510 3511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3512printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3513cat > confinc.mk << 'END' 3514am__doit: 3515 @echo this is the am__doit target >confinc.out 3516.PHONY: am__doit 3517END 3518am__include="#" 3519am__quote= 3520# BSD make does it like this. 3521echo '.include "confinc.mk" # ignored' > confmf.BSD 3522# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3523echo 'include confinc.mk # ignored' > confmf.GNU 3524_am_result=no 3525for s in GNU BSD; do 3526 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3527 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3528 ac_status=$? 3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 (exit $ac_status); } 3531 case $?:`cat confinc.out 2>/dev/null` in #( 3532 '0:this is the am__doit target') : 3533 case $s in #( 3534 BSD) : 3535 am__include='.include' am__quote='"' ;; #( 3536 *) : 3537 am__include='include' am__quote='' ;; 3538esac ;; #( 3539 *) : 3540 ;; 3541esac 3542 if test "$am__include" != "#"; then 3543 _am_result="yes ($s style)" 3544 break 3545 fi 3546done 3547rm -f confinc.* confmf.* 3548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3549printf "%s\n" "${_am_result}" >&6; } 3550 3551# Check whether --enable-dependency-tracking was given. 3552if test ${enable_dependency_tracking+y} 3553then : 3554 enableval=$enable_dependency_tracking; 3555fi 3556 3557if test "x$enable_dependency_tracking" != xno; then 3558 am_depcomp="$ac_aux_dir/depcomp" 3559 AMDEPBACKSLASH='\' 3560 am__nodep='_no' 3561fi 3562 if test "x$enable_dependency_tracking" != xno; then 3563 AMDEP_TRUE= 3564 AMDEP_FALSE='#' 3565else 3566 AMDEP_TRUE='#' 3567 AMDEP_FALSE= 3568fi 3569 3570 3571ac_ext=c 3572ac_cpp='$CPP $CPPFLAGS' 3573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3575ac_compiler_gnu=$ac_cv_c_compiler_gnu 3576if test -n "$ac_tool_prefix"; then 3577 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3578set dummy ${ac_tool_prefix}gcc; ac_word=$2 3579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3580printf %s "checking for $ac_word... " >&6; } 3581if test ${ac_cv_prog_CC+y} 3582then : 3583 printf %s "(cached) " >&6 3584else $as_nop 3585 if test -n "$CC"; then 3586 ac_cv_prog_CC="$CC" # Let the user override the test. 3587else 3588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3589for as_dir in $PATH 3590do 3591 IFS=$as_save_IFS 3592 case $as_dir in #((( 3593 '') as_dir=./ ;; 3594 */) ;; 3595 *) as_dir=$as_dir/ ;; 3596 esac 3597 for ac_exec_ext in '' $ac_executable_extensions; do 3598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3599 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3601 break 2 3602 fi 3603done 3604 done 3605IFS=$as_save_IFS 3606 3607fi 3608fi 3609CC=$ac_cv_prog_CC 3610if test -n "$CC"; then 3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3612printf "%s\n" "$CC" >&6; } 3613else 3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3615printf "%s\n" "no" >&6; } 3616fi 3617 3618 3619fi 3620if test -z "$ac_cv_prog_CC"; then 3621 ac_ct_CC=$CC 3622 # Extract the first word of "gcc", so it can be a program name with args. 3623set dummy gcc; ac_word=$2 3624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3625printf %s "checking for $ac_word... " >&6; } 3626if test ${ac_cv_prog_ac_ct_CC+y} 3627then : 3628 printf %s "(cached) " >&6 3629else $as_nop 3630 if test -n "$ac_ct_CC"; then 3631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3632else 3633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3634for as_dir in $PATH 3635do 3636 IFS=$as_save_IFS 3637 case $as_dir in #((( 3638 '') as_dir=./ ;; 3639 */) ;; 3640 *) as_dir=$as_dir/ ;; 3641 esac 3642 for ac_exec_ext in '' $ac_executable_extensions; do 3643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3644 ac_cv_prog_ac_ct_CC="gcc" 3645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3646 break 2 3647 fi 3648done 3649 done 3650IFS=$as_save_IFS 3651 3652fi 3653fi 3654ac_ct_CC=$ac_cv_prog_ac_ct_CC 3655if test -n "$ac_ct_CC"; then 3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3657printf "%s\n" "$ac_ct_CC" >&6; } 3658else 3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3660printf "%s\n" "no" >&6; } 3661fi 3662 3663 if test "x$ac_ct_CC" = x; then 3664 CC="" 3665 else 3666 case $cross_compiling:$ac_tool_warned in 3667yes:) 3668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3669printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3670ac_tool_warned=yes ;; 3671esac 3672 CC=$ac_ct_CC 3673 fi 3674else 3675 CC="$ac_cv_prog_CC" 3676fi 3677 3678if test -z "$CC"; then 3679 if test -n "$ac_tool_prefix"; then 3680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3681set dummy ${ac_tool_prefix}cc; ac_word=$2 3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3683printf %s "checking for $ac_word... " >&6; } 3684if test ${ac_cv_prog_CC+y} 3685then : 3686 printf %s "(cached) " >&6 3687else $as_nop 3688 if test -n "$CC"; then 3689 ac_cv_prog_CC="$CC" # Let the user override the test. 3690else 3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3692for as_dir in $PATH 3693do 3694 IFS=$as_save_IFS 3695 case $as_dir in #((( 3696 '') as_dir=./ ;; 3697 */) ;; 3698 *) as_dir=$as_dir/ ;; 3699 esac 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3702 ac_cv_prog_CC="${ac_tool_prefix}cc" 3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3704 break 2 3705 fi 3706done 3707 done 3708IFS=$as_save_IFS 3709 3710fi 3711fi 3712CC=$ac_cv_prog_CC 3713if test -n "$CC"; then 3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3715printf "%s\n" "$CC" >&6; } 3716else 3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3718printf "%s\n" "no" >&6; } 3719fi 3720 3721 3722 fi 3723fi 3724if test -z "$CC"; then 3725 # Extract the first word of "cc", so it can be a program name with args. 3726set dummy cc; ac_word=$2 3727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3728printf %s "checking for $ac_word... " >&6; } 3729if test ${ac_cv_prog_CC+y} 3730then : 3731 printf %s "(cached) " >&6 3732else $as_nop 3733 if test -n "$CC"; then 3734 ac_cv_prog_CC="$CC" # Let the user override the test. 3735else 3736 ac_prog_rejected=no 3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3738for as_dir in $PATH 3739do 3740 IFS=$as_save_IFS 3741 case $as_dir in #((( 3742 '') as_dir=./ ;; 3743 */) ;; 3744 *) as_dir=$as_dir/ ;; 3745 esac 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3748 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3749 ac_prog_rejected=yes 3750 continue 3751 fi 3752 ac_cv_prog_CC="cc" 3753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3754 break 2 3755 fi 3756done 3757 done 3758IFS=$as_save_IFS 3759 3760if test $ac_prog_rejected = yes; then 3761 # We found a bogon in the path, so make sure we never use it. 3762 set dummy $ac_cv_prog_CC 3763 shift 3764 if test $# != 0; then 3765 # We chose a different compiler from the bogus one. 3766 # However, it has the same basename, so the bogon will be chosen 3767 # first if we set CC to just the basename; use the full file name. 3768 shift 3769 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3770 fi 3771fi 3772fi 3773fi 3774CC=$ac_cv_prog_CC 3775if test -n "$CC"; then 3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3777printf "%s\n" "$CC" >&6; } 3778else 3779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3780printf "%s\n" "no" >&6; } 3781fi 3782 3783 3784fi 3785if test -z "$CC"; then 3786 if test -n "$ac_tool_prefix"; then 3787 for ac_prog in cl.exe 3788 do 3789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3790set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3792printf %s "checking for $ac_word... " >&6; } 3793if test ${ac_cv_prog_CC+y} 3794then : 3795 printf %s "(cached) " >&6 3796else $as_nop 3797 if test -n "$CC"; then 3798 ac_cv_prog_CC="$CC" # Let the user override the test. 3799else 3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3801for as_dir in $PATH 3802do 3803 IFS=$as_save_IFS 3804 case $as_dir in #((( 3805 '') as_dir=./ ;; 3806 */) ;; 3807 *) as_dir=$as_dir/ ;; 3808 esac 3809 for ac_exec_ext in '' $ac_executable_extensions; do 3810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3813 break 2 3814 fi 3815done 3816 done 3817IFS=$as_save_IFS 3818 3819fi 3820fi 3821CC=$ac_cv_prog_CC 3822if test -n "$CC"; then 3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3824printf "%s\n" "$CC" >&6; } 3825else 3826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3827printf "%s\n" "no" >&6; } 3828fi 3829 3830 3831 test -n "$CC" && break 3832 done 3833fi 3834if test -z "$CC"; then 3835 ac_ct_CC=$CC 3836 for ac_prog in cl.exe 3837do 3838 # Extract the first word of "$ac_prog", so it can be a program name with args. 3839set dummy $ac_prog; ac_word=$2 3840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3841printf %s "checking for $ac_word... " >&6; } 3842if test ${ac_cv_prog_ac_ct_CC+y} 3843then : 3844 printf %s "(cached) " >&6 3845else $as_nop 3846 if test -n "$ac_ct_CC"; then 3847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3848else 3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3850for as_dir in $PATH 3851do 3852 IFS=$as_save_IFS 3853 case $as_dir in #((( 3854 '') as_dir=./ ;; 3855 */) ;; 3856 *) as_dir=$as_dir/ ;; 3857 esac 3858 for ac_exec_ext in '' $ac_executable_extensions; do 3859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3860 ac_cv_prog_ac_ct_CC="$ac_prog" 3861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3862 break 2 3863 fi 3864done 3865 done 3866IFS=$as_save_IFS 3867 3868fi 3869fi 3870ac_ct_CC=$ac_cv_prog_ac_ct_CC 3871if test -n "$ac_ct_CC"; then 3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3873printf "%s\n" "$ac_ct_CC" >&6; } 3874else 3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3876printf "%s\n" "no" >&6; } 3877fi 3878 3879 3880 test -n "$ac_ct_CC" && break 3881done 3882 3883 if test "x$ac_ct_CC" = x; then 3884 CC="" 3885 else 3886 case $cross_compiling:$ac_tool_warned in 3887yes:) 3888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3889printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3890ac_tool_warned=yes ;; 3891esac 3892 CC=$ac_ct_CC 3893 fi 3894fi 3895 3896fi 3897if test -z "$CC"; then 3898 if test -n "$ac_tool_prefix"; then 3899 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3900set dummy ${ac_tool_prefix}clang; ac_word=$2 3901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3902printf %s "checking for $ac_word... " >&6; } 3903if test ${ac_cv_prog_CC+y} 3904then : 3905 printf %s "(cached) " >&6 3906else $as_nop 3907 if test -n "$CC"; then 3908 ac_cv_prog_CC="$CC" # Let the user override the test. 3909else 3910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3911for as_dir in $PATH 3912do 3913 IFS=$as_save_IFS 3914 case $as_dir in #((( 3915 '') as_dir=./ ;; 3916 */) ;; 3917 *) as_dir=$as_dir/ ;; 3918 esac 3919 for ac_exec_ext in '' $ac_executable_extensions; do 3920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3921 ac_cv_prog_CC="${ac_tool_prefix}clang" 3922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3923 break 2 3924 fi 3925done 3926 done 3927IFS=$as_save_IFS 3928 3929fi 3930fi 3931CC=$ac_cv_prog_CC 3932if test -n "$CC"; then 3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3934printf "%s\n" "$CC" >&6; } 3935else 3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3937printf "%s\n" "no" >&6; } 3938fi 3939 3940 3941fi 3942if test -z "$ac_cv_prog_CC"; then 3943 ac_ct_CC=$CC 3944 # Extract the first word of "clang", so it can be a program name with args. 3945set dummy clang; ac_word=$2 3946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3947printf %s "checking for $ac_word... " >&6; } 3948if test ${ac_cv_prog_ac_ct_CC+y} 3949then : 3950 printf %s "(cached) " >&6 3951else $as_nop 3952 if test -n "$ac_ct_CC"; then 3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3954else 3955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3956for as_dir in $PATH 3957do 3958 IFS=$as_save_IFS 3959 case $as_dir in #((( 3960 '') as_dir=./ ;; 3961 */) ;; 3962 *) as_dir=$as_dir/ ;; 3963 esac 3964 for ac_exec_ext in '' $ac_executable_extensions; do 3965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3966 ac_cv_prog_ac_ct_CC="clang" 3967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3968 break 2 3969 fi 3970done 3971 done 3972IFS=$as_save_IFS 3973 3974fi 3975fi 3976ac_ct_CC=$ac_cv_prog_ac_ct_CC 3977if test -n "$ac_ct_CC"; then 3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3979printf "%s\n" "$ac_ct_CC" >&6; } 3980else 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3982printf "%s\n" "no" >&6; } 3983fi 3984 3985 if test "x$ac_ct_CC" = x; then 3986 CC="" 3987 else 3988 case $cross_compiling:$ac_tool_warned in 3989yes:) 3990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3991printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3992ac_tool_warned=yes ;; 3993esac 3994 CC=$ac_ct_CC 3995 fi 3996else 3997 CC="$ac_cv_prog_CC" 3998fi 3999 4000fi 4001 4002 4003test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4004printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4005as_fn_error $? "no acceptable C compiler found in \$PATH 4006See \`config.log' for more details" "$LINENO" 5; } 4007 4008# Provide some information about the compiler. 4009printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4010set X $ac_compile 4011ac_compiler=$2 4012for ac_option in --version -v -V -qversion -version; do 4013 { { ac_try="$ac_compiler $ac_option >&5" 4014case "(($ac_try" in 4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4016 *) ac_try_echo=$ac_try;; 4017esac 4018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4019printf "%s\n" "$ac_try_echo"; } >&5 4020 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4021 ac_status=$? 4022 if test -s conftest.err; then 4023 sed '10a\ 4024... rest of stderr output deleted ... 4025 10q' conftest.err >conftest.er1 4026 cat conftest.er1 >&5 4027 fi 4028 rm -f conftest.er1 conftest.err 4029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4030 test $ac_status = 0; } 4031done 4032 4033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4034/* end confdefs.h. */ 4035 4036int 4037main (void) 4038{ 4039 4040 ; 4041 return 0; 4042} 4043_ACEOF 4044ac_clean_files_save=$ac_clean_files 4045ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4046# Try to create an executable without -o first, disregard a.out. 4047# It will help us diagnose broken compilers, and finding out an intuition 4048# of exeext. 4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4050printf %s "checking whether the C compiler works... " >&6; } 4051ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4052 4053# The possible output files: 4054ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4055 4056ac_rmfiles= 4057for ac_file in $ac_files 4058do 4059 case $ac_file in 4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4061 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4062 esac 4063done 4064rm -f $ac_rmfiles 4065 4066if { { ac_try="$ac_link_default" 4067case "(($ac_try" in 4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4069 *) ac_try_echo=$ac_try;; 4070esac 4071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4072printf "%s\n" "$ac_try_echo"; } >&5 4073 (eval "$ac_link_default") 2>&5 4074 ac_status=$? 4075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4076 test $ac_status = 0; } 4077then : 4078 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4079# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4080# in a Makefile. We should not override ac_cv_exeext if it was cached, 4081# so that the user can short-circuit this test for compilers unknown to 4082# Autoconf. 4083for ac_file in $ac_files '' 4084do 4085 test -f "$ac_file" || continue 4086 case $ac_file in 4087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4088 ;; 4089 [ab].out ) 4090 # We found the default executable, but exeext='' is most 4091 # certainly right. 4092 break;; 4093 *.* ) 4094 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4095 then :; else 4096 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4097 fi 4098 # We set ac_cv_exeext here because the later test for it is not 4099 # safe: cross compilers may not add the suffix if given an `-o' 4100 # argument, so we may need to know it at that point already. 4101 # Even if this section looks crufty: it has the advantage of 4102 # actually working. 4103 break;; 4104 * ) 4105 break;; 4106 esac 4107done 4108test "$ac_cv_exeext" = no && ac_cv_exeext= 4109 4110else $as_nop 4111 ac_file='' 4112fi 4113if test -z "$ac_file" 4114then : 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4116printf "%s\n" "no" >&6; } 4117printf "%s\n" "$as_me: failed program was:" >&5 4118sed 's/^/| /' conftest.$ac_ext >&5 4119 4120{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4121printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4122as_fn_error 77 "C compiler cannot create executables 4123See \`config.log' for more details" "$LINENO" 5; } 4124else $as_nop 4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4126printf "%s\n" "yes" >&6; } 4127fi 4128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4129printf %s "checking for C compiler default output file name... " >&6; } 4130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4131printf "%s\n" "$ac_file" >&6; } 4132ac_exeext=$ac_cv_exeext 4133 4134rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4135ac_clean_files=$ac_clean_files_save 4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4137printf %s "checking for suffix of executables... " >&6; } 4138if { { ac_try="$ac_link" 4139case "(($ac_try" in 4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4141 *) ac_try_echo=$ac_try;; 4142esac 4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4144printf "%s\n" "$ac_try_echo"; } >&5 4145 (eval "$ac_link") 2>&5 4146 ac_status=$? 4147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4148 test $ac_status = 0; } 4149then : 4150 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4151# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4152# work properly (i.e., refer to `conftest.exe'), while it won't with 4153# `rm'. 4154for ac_file in conftest.exe conftest conftest.*; do 4155 test -f "$ac_file" || continue 4156 case $ac_file in 4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4159 break;; 4160 * ) break;; 4161 esac 4162done 4163else $as_nop 4164 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4165printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4166as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4167See \`config.log' for more details" "$LINENO" 5; } 4168fi 4169rm -f conftest conftest$ac_cv_exeext 4170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4171printf "%s\n" "$ac_cv_exeext" >&6; } 4172 4173rm -f conftest.$ac_ext 4174EXEEXT=$ac_cv_exeext 4175ac_exeext=$EXEEXT 4176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4177/* end confdefs.h. */ 4178#include <stdio.h> 4179int 4180main (void) 4181{ 4182FILE *f = fopen ("conftest.out", "w"); 4183 return ferror (f) || fclose (f) != 0; 4184 4185 ; 4186 return 0; 4187} 4188_ACEOF 4189ac_clean_files="$ac_clean_files conftest.out" 4190# Check that the compiler produces executables we can run. If not, either 4191# the compiler is broken, or we cross compile. 4192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4193printf %s "checking whether we are cross compiling... " >&6; } 4194if test "$cross_compiling" != yes; then 4195 { { ac_try="$ac_link" 4196case "(($ac_try" in 4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4198 *) ac_try_echo=$ac_try;; 4199esac 4200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4201printf "%s\n" "$ac_try_echo"; } >&5 4202 (eval "$ac_link") 2>&5 4203 ac_status=$? 4204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4205 test $ac_status = 0; } 4206 if { ac_try='./conftest$ac_cv_exeext' 4207 { { case "(($ac_try" in 4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4209 *) ac_try_echo=$ac_try;; 4210esac 4211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4212printf "%s\n" "$ac_try_echo"; } >&5 4213 (eval "$ac_try") 2>&5 4214 ac_status=$? 4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4216 test $ac_status = 0; }; }; then 4217 cross_compiling=no 4218 else 4219 if test "$cross_compiling" = maybe; then 4220 cross_compiling=yes 4221 else 4222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4223printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4224as_fn_error 77 "cannot run C compiled programs. 4225If you meant to cross compile, use \`--host'. 4226See \`config.log' for more details" "$LINENO" 5; } 4227 fi 4228 fi 4229fi 4230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4231printf "%s\n" "$cross_compiling" >&6; } 4232 4233rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4234ac_clean_files=$ac_clean_files_save 4235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4236printf %s "checking for suffix of object files... " >&6; } 4237if test ${ac_cv_objext+y} 4238then : 4239 printf %s "(cached) " >&6 4240else $as_nop 4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4242/* end confdefs.h. */ 4243 4244int 4245main (void) 4246{ 4247 4248 ; 4249 return 0; 4250} 4251_ACEOF 4252rm -f conftest.o conftest.obj 4253if { { ac_try="$ac_compile" 4254case "(($ac_try" in 4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4256 *) ac_try_echo=$ac_try;; 4257esac 4258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4259printf "%s\n" "$ac_try_echo"; } >&5 4260 (eval "$ac_compile") 2>&5 4261 ac_status=$? 4262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4263 test $ac_status = 0; } 4264then : 4265 for ac_file in conftest.o conftest.obj conftest.*; do 4266 test -f "$ac_file" || continue; 4267 case $ac_file in 4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4269 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4270 break;; 4271 esac 4272done 4273else $as_nop 4274 printf "%s\n" "$as_me: failed program was:" >&5 4275sed 's/^/| /' conftest.$ac_ext >&5 4276 4277{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4278printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4279as_fn_error $? "cannot compute suffix of object files: cannot compile 4280See \`config.log' for more details" "$LINENO" 5; } 4281fi 4282rm -f conftest.$ac_cv_objext conftest.$ac_ext 4283fi 4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4285printf "%s\n" "$ac_cv_objext" >&6; } 4286OBJEXT=$ac_cv_objext 4287ac_objext=$OBJEXT 4288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4289printf %s "checking whether the compiler supports GNU C... " >&6; } 4290if test ${ac_cv_c_compiler_gnu+y} 4291then : 4292 printf %s "(cached) " >&6 4293else $as_nop 4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4295/* end confdefs.h. */ 4296 4297int 4298main (void) 4299{ 4300#ifndef __GNUC__ 4301 choke me 4302#endif 4303 4304 ; 4305 return 0; 4306} 4307_ACEOF 4308if ac_fn_c_try_compile "$LINENO" 4309then : 4310 ac_compiler_gnu=yes 4311else $as_nop 4312 ac_compiler_gnu=no 4313fi 4314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4315ac_cv_c_compiler_gnu=$ac_compiler_gnu 4316 4317fi 4318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4319printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4320ac_compiler_gnu=$ac_cv_c_compiler_gnu 4321 4322if test $ac_compiler_gnu = yes; then 4323 GCC=yes 4324else 4325 GCC= 4326fi 4327ac_test_CFLAGS=${CFLAGS+y} 4328ac_save_CFLAGS=$CFLAGS 4329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4330printf %s "checking whether $CC accepts -g... " >&6; } 4331if test ${ac_cv_prog_cc_g+y} 4332then : 4333 printf %s "(cached) " >&6 4334else $as_nop 4335 ac_save_c_werror_flag=$ac_c_werror_flag 4336 ac_c_werror_flag=yes 4337 ac_cv_prog_cc_g=no 4338 CFLAGS="-g" 4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4340/* end confdefs.h. */ 4341 4342int 4343main (void) 4344{ 4345 4346 ; 4347 return 0; 4348} 4349_ACEOF 4350if ac_fn_c_try_compile "$LINENO" 4351then : 4352 ac_cv_prog_cc_g=yes 4353else $as_nop 4354 CFLAGS="" 4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4356/* end confdefs.h. */ 4357 4358int 4359main (void) 4360{ 4361 4362 ; 4363 return 0; 4364} 4365_ACEOF 4366if ac_fn_c_try_compile "$LINENO" 4367then : 4368 4369else $as_nop 4370 ac_c_werror_flag=$ac_save_c_werror_flag 4371 CFLAGS="-g" 4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4373/* end confdefs.h. */ 4374 4375int 4376main (void) 4377{ 4378 4379 ; 4380 return 0; 4381} 4382_ACEOF 4383if ac_fn_c_try_compile "$LINENO" 4384then : 4385 ac_cv_prog_cc_g=yes 4386fi 4387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4388fi 4389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4390fi 4391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4392 ac_c_werror_flag=$ac_save_c_werror_flag 4393fi 4394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4395printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4396if test $ac_test_CFLAGS; then 4397 CFLAGS=$ac_save_CFLAGS 4398elif test $ac_cv_prog_cc_g = yes; then 4399 if test "$GCC" = yes; then 4400 CFLAGS="-g -O2" 4401 else 4402 CFLAGS="-g" 4403 fi 4404else 4405 if test "$GCC" = yes; then 4406 CFLAGS="-O2" 4407 else 4408 CFLAGS= 4409 fi 4410fi 4411ac_prog_cc_stdc=no 4412if test x$ac_prog_cc_stdc = xno 4413then : 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4415printf %s "checking for $CC option to enable C11 features... " >&6; } 4416if test ${ac_cv_prog_cc_c11+y} 4417then : 4418 printf %s "(cached) " >&6 4419else $as_nop 4420 ac_cv_prog_cc_c11=no 4421ac_save_CC=$CC 4422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4423/* end confdefs.h. */ 4424$ac_c_conftest_c11_program 4425_ACEOF 4426for ac_arg in '' -std=gnu11 4427do 4428 CC="$ac_save_CC $ac_arg" 4429 if ac_fn_c_try_compile "$LINENO" 4430then : 4431 ac_cv_prog_cc_c11=$ac_arg 4432fi 4433rm -f core conftest.err conftest.$ac_objext conftest.beam 4434 test "x$ac_cv_prog_cc_c11" != "xno" && break 4435done 4436rm -f conftest.$ac_ext 4437CC=$ac_save_CC 4438fi 4439 4440if test "x$ac_cv_prog_cc_c11" = xno 4441then : 4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4443printf "%s\n" "unsupported" >&6; } 4444else $as_nop 4445 if test "x$ac_cv_prog_cc_c11" = x 4446then : 4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4448printf "%s\n" "none needed" >&6; } 4449else $as_nop 4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4451printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4452 CC="$CC $ac_cv_prog_cc_c11" 4453fi 4454 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4455 ac_prog_cc_stdc=c11 4456fi 4457fi 4458if test x$ac_prog_cc_stdc = xno 4459then : 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4461printf %s "checking for $CC option to enable C99 features... " >&6; } 4462if test ${ac_cv_prog_cc_c99+y} 4463then : 4464 printf %s "(cached) " >&6 4465else $as_nop 4466 ac_cv_prog_cc_c99=no 4467ac_save_CC=$CC 4468cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4469/* end confdefs.h. */ 4470$ac_c_conftest_c99_program 4471_ACEOF 4472for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4473do 4474 CC="$ac_save_CC $ac_arg" 4475 if ac_fn_c_try_compile "$LINENO" 4476then : 4477 ac_cv_prog_cc_c99=$ac_arg 4478fi 4479rm -f core conftest.err conftest.$ac_objext conftest.beam 4480 test "x$ac_cv_prog_cc_c99" != "xno" && break 4481done 4482rm -f conftest.$ac_ext 4483CC=$ac_save_CC 4484fi 4485 4486if test "x$ac_cv_prog_cc_c99" = xno 4487then : 4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4489printf "%s\n" "unsupported" >&6; } 4490else $as_nop 4491 if test "x$ac_cv_prog_cc_c99" = x 4492then : 4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4494printf "%s\n" "none needed" >&6; } 4495else $as_nop 4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4497printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4498 CC="$CC $ac_cv_prog_cc_c99" 4499fi 4500 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4501 ac_prog_cc_stdc=c99 4502fi 4503fi 4504if test x$ac_prog_cc_stdc = xno 4505then : 4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4507printf %s "checking for $CC option to enable C89 features... " >&6; } 4508if test ${ac_cv_prog_cc_c89+y} 4509then : 4510 printf %s "(cached) " >&6 4511else $as_nop 4512 ac_cv_prog_cc_c89=no 4513ac_save_CC=$CC 4514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4515/* end confdefs.h. */ 4516$ac_c_conftest_c89_program 4517_ACEOF 4518for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4519do 4520 CC="$ac_save_CC $ac_arg" 4521 if ac_fn_c_try_compile "$LINENO" 4522then : 4523 ac_cv_prog_cc_c89=$ac_arg 4524fi 4525rm -f core conftest.err conftest.$ac_objext conftest.beam 4526 test "x$ac_cv_prog_cc_c89" != "xno" && break 4527done 4528rm -f conftest.$ac_ext 4529CC=$ac_save_CC 4530fi 4531 4532if test "x$ac_cv_prog_cc_c89" = xno 4533then : 4534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4535printf "%s\n" "unsupported" >&6; } 4536else $as_nop 4537 if test "x$ac_cv_prog_cc_c89" = x 4538then : 4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4540printf "%s\n" "none needed" >&6; } 4541else $as_nop 4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4543printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4544 CC="$CC $ac_cv_prog_cc_c89" 4545fi 4546 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4547 ac_prog_cc_stdc=c89 4548fi 4549fi 4550 4551ac_ext=c 4552ac_cpp='$CPP $CPPFLAGS' 4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4555ac_compiler_gnu=$ac_cv_c_compiler_gnu 4556 4557 4558 ac_ext=c 4559ac_cpp='$CPP $CPPFLAGS' 4560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4562ac_compiler_gnu=$ac_cv_c_compiler_gnu 4563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4564printf %s "checking whether $CC understands -c and -o together... " >&6; } 4565if test ${am_cv_prog_cc_c_o+y} 4566then : 4567 printf %s "(cached) " >&6 4568else $as_nop 4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4570/* end confdefs.h. */ 4571 4572int 4573main (void) 4574{ 4575 4576 ; 4577 return 0; 4578} 4579_ACEOF 4580 # Make sure it works both with $CC and with simple cc. 4581 # Following AC_PROG_CC_C_O, we do the test twice because some 4582 # compilers refuse to overwrite an existing .o file with -o, 4583 # though they will create one. 4584 am_cv_prog_cc_c_o=yes 4585 for am_i in 1 2; do 4586 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4587 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4588 ac_status=$? 4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4590 (exit $ac_status); } \ 4591 && test -f conftest2.$ac_objext; then 4592 : OK 4593 else 4594 am_cv_prog_cc_c_o=no 4595 break 4596 fi 4597 done 4598 rm -f core conftest* 4599 unset am_i 4600fi 4601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4602printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4603if test "$am_cv_prog_cc_c_o" != yes; then 4604 # Losing compiler, so override with the script. 4605 # FIXME: It is wrong to rewrite CC. 4606 # But if we don't then we get into trouble of one sort or another. 4607 # A longer-term fix would be to have automake use am__CC in this case, 4608 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4609 CC="$am_aux_dir/compile $CC" 4610fi 4611ac_ext=c 4612ac_cpp='$CPP $CPPFLAGS' 4613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4615ac_compiler_gnu=$ac_cv_c_compiler_gnu 4616 4617 4618depcc="$CC" am_compiler_list= 4619 4620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4621printf %s "checking dependency style of $depcc... " >&6; } 4622if test ${am_cv_CC_dependencies_compiler_type+y} 4623then : 4624 printf %s "(cached) " >&6 4625else $as_nop 4626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4627 # We make a subdir and do the tests there. Otherwise we can end up 4628 # making bogus files that we don't know about and never remove. For 4629 # instance it was reported that on HP-UX the gcc test will end up 4630 # making a dummy file named 'D' -- because '-MD' means "put the output 4631 # in D". 4632 rm -rf conftest.dir 4633 mkdir conftest.dir 4634 # Copy depcomp to subdir because otherwise we won't find it if we're 4635 # using a relative directory. 4636 cp "$am_depcomp" conftest.dir 4637 cd conftest.dir 4638 # We will build objects and dependencies in a subdirectory because 4639 # it helps to detect inapplicable dependency modes. For instance 4640 # both Tru64's cc and ICC support -MD to output dependencies as a 4641 # side effect of compilation, but ICC will put the dependencies in 4642 # the current directory while Tru64 will put them in the object 4643 # directory. 4644 mkdir sub 4645 4646 am_cv_CC_dependencies_compiler_type=none 4647 if test "$am_compiler_list" = ""; then 4648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4649 fi 4650 am__universal=false 4651 case " $depcc " in #( 4652 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4653 esac 4654 4655 for depmode in $am_compiler_list; do 4656 # Setup a source with many dependencies, because some compilers 4657 # like to wrap large dependency lists on column 80 (with \), and 4658 # we should not choose a depcomp mode which is confused by this. 4659 # 4660 # We need to recreate these files for each test, as the compiler may 4661 # overwrite some of them when testing with obscure command lines. 4662 # This happens at least with the AIX C compiler. 4663 : > sub/conftest.c 4664 for i in 1 2 3 4 5 6; do 4665 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4666 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4667 # Solaris 10 /bin/sh. 4668 echo '/* dummy */' > sub/conftst$i.h 4669 done 4670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4671 4672 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4673 # mode. It turns out that the SunPro C++ compiler does not properly 4674 # handle '-M -o', and we need to detect this. Also, some Intel 4675 # versions had trouble with output in subdirs. 4676 am__obj=sub/conftest.${OBJEXT-o} 4677 am__minus_obj="-o $am__obj" 4678 case $depmode in 4679 gcc) 4680 # This depmode causes a compiler race in universal mode. 4681 test "$am__universal" = false || continue 4682 ;; 4683 nosideeffect) 4684 # After this tag, mechanisms are not by side-effect, so they'll 4685 # only be used when explicitly requested. 4686 if test "x$enable_dependency_tracking" = xyes; then 4687 continue 4688 else 4689 break 4690 fi 4691 ;; 4692 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4693 # This compiler won't grok '-c -o', but also, the minuso test has 4694 # not run yet. These depmodes are late enough in the game, and 4695 # so weak that their functioning should not be impacted. 4696 am__obj=conftest.${OBJEXT-o} 4697 am__minus_obj= 4698 ;; 4699 none) break ;; 4700 esac 4701 if depmode=$depmode \ 4702 source=sub/conftest.c object=$am__obj \ 4703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4704 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4705 >/dev/null 2>conftest.err && 4706 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4708 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4710 # icc doesn't choke on unknown options, it will just issue warnings 4711 # or remarks (even with -Werror). So we grep stderr for any message 4712 # that says an option was ignored or not supported. 4713 # When given -MP, icc 7.0 and 7.1 complain thusly: 4714 # icc: Command line warning: ignoring option '-M'; no argument required 4715 # The diagnosis changed in icc 8.0: 4716 # icc: Command line remark: option '-MP' not supported 4717 if (grep 'ignoring option' conftest.err || 4718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4719 am_cv_CC_dependencies_compiler_type=$depmode 4720 break 4721 fi 4722 fi 4723 done 4724 4725 cd .. 4726 rm -rf conftest.dir 4727else 4728 am_cv_CC_dependencies_compiler_type=none 4729fi 4730 4731fi 4732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4733printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4734CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4735 4736 if 4737 test "x$enable_dependency_tracking" != xno \ 4738 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4739 am__fastdepCC_TRUE= 4740 am__fastdepCC_FALSE='#' 4741else 4742 am__fastdepCC_TRUE='#' 4743 am__fastdepCC_FALSE= 4744fi 4745 4746 4747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4748printf %s "checking for a sed that does not truncate output... " >&6; } 4749if test ${ac_cv_path_SED+y} 4750then : 4751 printf %s "(cached) " >&6 4752else $as_nop 4753 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4754 for ac_i in 1 2 3 4 5 6 7; do 4755 ac_script="$ac_script$as_nl$ac_script" 4756 done 4757 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4758 { ac_script=; unset ac_script;} 4759 if test -z "$SED"; then 4760 ac_path_SED_found=false 4761 # Loop through the user's path and test for each of PROGNAME-LIST 4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4763for as_dir in $PATH 4764do 4765 IFS=$as_save_IFS 4766 case $as_dir in #((( 4767 '') as_dir=./ ;; 4768 */) ;; 4769 *) as_dir=$as_dir/ ;; 4770 esac 4771 for ac_prog in sed gsed 4772 do 4773 for ac_exec_ext in '' $ac_executable_extensions; do 4774 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4775 as_fn_executable_p "$ac_path_SED" || continue 4776# Check for GNU ac_path_SED and select it if it is found. 4777 # Check for GNU $ac_path_SED 4778case `"$ac_path_SED" --version 2>&1` in 4779*GNU*) 4780 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4781*) 4782 ac_count=0 4783 printf %s 0123456789 >"conftest.in" 4784 while : 4785 do 4786 cat "conftest.in" "conftest.in" >"conftest.tmp" 4787 mv "conftest.tmp" "conftest.in" 4788 cp "conftest.in" "conftest.nl" 4789 printf "%s\n" '' >> "conftest.nl" 4790 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4792 as_fn_arith $ac_count + 1 && ac_count=$as_val 4793 if test $ac_count -gt ${ac_path_SED_max-0}; then 4794 # Best one so far, save it but keep looking for a better one 4795 ac_cv_path_SED="$ac_path_SED" 4796 ac_path_SED_max=$ac_count 4797 fi 4798 # 10*(2^10) chars as input seems more than enough 4799 test $ac_count -gt 10 && break 4800 done 4801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4802esac 4803 4804 $ac_path_SED_found && break 3 4805 done 4806 done 4807 done 4808IFS=$as_save_IFS 4809 if test -z "$ac_cv_path_SED"; then 4810 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4811 fi 4812else 4813 ac_cv_path_SED=$SED 4814fi 4815 4816fi 4817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4818printf "%s\n" "$ac_cv_path_SED" >&6; } 4819 SED="$ac_cv_path_SED" 4820 rm -f conftest.sed 4821 4822test -z "$SED" && SED=sed 4823Xsed="$SED -e 1s/^X//" 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4836printf %s "checking for grep that handles long lines and -e... " >&6; } 4837if test ${ac_cv_path_GREP+y} 4838then : 4839 printf %s "(cached) " >&6 4840else $as_nop 4841 if test -z "$GREP"; then 4842 ac_path_GREP_found=false 4843 # Loop through the user's path and test for each of PROGNAME-LIST 4844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4846do 4847 IFS=$as_save_IFS 4848 case $as_dir in #((( 4849 '') as_dir=./ ;; 4850 */) ;; 4851 *) as_dir=$as_dir/ ;; 4852 esac 4853 for ac_prog in grep ggrep 4854 do 4855 for ac_exec_ext in '' $ac_executable_extensions; do 4856 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4857 as_fn_executable_p "$ac_path_GREP" || continue 4858# Check for GNU ac_path_GREP and select it if it is found. 4859 # Check for GNU $ac_path_GREP 4860case `"$ac_path_GREP" --version 2>&1` in 4861*GNU*) 4862 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4863*) 4864 ac_count=0 4865 printf %s 0123456789 >"conftest.in" 4866 while : 4867 do 4868 cat "conftest.in" "conftest.in" >"conftest.tmp" 4869 mv "conftest.tmp" "conftest.in" 4870 cp "conftest.in" "conftest.nl" 4871 printf "%s\n" 'GREP' >> "conftest.nl" 4872 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4874 as_fn_arith $ac_count + 1 && ac_count=$as_val 4875 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4876 # Best one so far, save it but keep looking for a better one 4877 ac_cv_path_GREP="$ac_path_GREP" 4878 ac_path_GREP_max=$ac_count 4879 fi 4880 # 10*(2^10) chars as input seems more than enough 4881 test $ac_count -gt 10 && break 4882 done 4883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4884esac 4885 4886 $ac_path_GREP_found && break 3 4887 done 4888 done 4889 done 4890IFS=$as_save_IFS 4891 if test -z "$ac_cv_path_GREP"; then 4892 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4893 fi 4894else 4895 ac_cv_path_GREP=$GREP 4896fi 4897 4898fi 4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4900printf "%s\n" "$ac_cv_path_GREP" >&6; } 4901 GREP="$ac_cv_path_GREP" 4902 4903 4904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4905printf %s "checking for egrep... " >&6; } 4906if test ${ac_cv_path_EGREP+y} 4907then : 4908 printf %s "(cached) " >&6 4909else $as_nop 4910 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4911 then ac_cv_path_EGREP="$GREP -E" 4912 else 4913 if test -z "$EGREP"; then 4914 ac_path_EGREP_found=false 4915 # Loop through the user's path and test for each of PROGNAME-LIST 4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4918do 4919 IFS=$as_save_IFS 4920 case $as_dir in #((( 4921 '') as_dir=./ ;; 4922 */) ;; 4923 *) as_dir=$as_dir/ ;; 4924 esac 4925 for ac_prog in egrep 4926 do 4927 for ac_exec_ext in '' $ac_executable_extensions; do 4928 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4929 as_fn_executable_p "$ac_path_EGREP" || continue 4930# Check for GNU ac_path_EGREP and select it if it is found. 4931 # Check for GNU $ac_path_EGREP 4932case `"$ac_path_EGREP" --version 2>&1` in 4933*GNU*) 4934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4935*) 4936 ac_count=0 4937 printf %s 0123456789 >"conftest.in" 4938 while : 4939 do 4940 cat "conftest.in" "conftest.in" >"conftest.tmp" 4941 mv "conftest.tmp" "conftest.in" 4942 cp "conftest.in" "conftest.nl" 4943 printf "%s\n" 'EGREP' >> "conftest.nl" 4944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4946 as_fn_arith $ac_count + 1 && ac_count=$as_val 4947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4948 # Best one so far, save it but keep looking for a better one 4949 ac_cv_path_EGREP="$ac_path_EGREP" 4950 ac_path_EGREP_max=$ac_count 4951 fi 4952 # 10*(2^10) chars as input seems more than enough 4953 test $ac_count -gt 10 && break 4954 done 4955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4956esac 4957 4958 $ac_path_EGREP_found && break 3 4959 done 4960 done 4961 done 4962IFS=$as_save_IFS 4963 if test -z "$ac_cv_path_EGREP"; then 4964 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4965 fi 4966else 4967 ac_cv_path_EGREP=$EGREP 4968fi 4969 4970 fi 4971fi 4972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4973printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4974 EGREP="$ac_cv_path_EGREP" 4975 4976 4977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4978printf %s "checking for fgrep... " >&6; } 4979if test ${ac_cv_path_FGREP+y} 4980then : 4981 printf %s "(cached) " >&6 4982else $as_nop 4983 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4984 then ac_cv_path_FGREP="$GREP -F" 4985 else 4986 if test -z "$FGREP"; then 4987 ac_path_FGREP_found=false 4988 # Loop through the user's path and test for each of PROGNAME-LIST 4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4991do 4992 IFS=$as_save_IFS 4993 case $as_dir in #((( 4994 '') as_dir=./ ;; 4995 */) ;; 4996 *) as_dir=$as_dir/ ;; 4997 esac 4998 for ac_prog in fgrep 4999 do 5000 for ac_exec_ext in '' $ac_executable_extensions; do 5001 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5002 as_fn_executable_p "$ac_path_FGREP" || continue 5003# Check for GNU ac_path_FGREP and select it if it is found. 5004 # Check for GNU $ac_path_FGREP 5005case `"$ac_path_FGREP" --version 2>&1` in 5006*GNU*) 5007 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5008*) 5009 ac_count=0 5010 printf %s 0123456789 >"conftest.in" 5011 while : 5012 do 5013 cat "conftest.in" "conftest.in" >"conftest.tmp" 5014 mv "conftest.tmp" "conftest.in" 5015 cp "conftest.in" "conftest.nl" 5016 printf "%s\n" 'FGREP' >> "conftest.nl" 5017 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5019 as_fn_arith $ac_count + 1 && ac_count=$as_val 5020 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5021 # Best one so far, save it but keep looking for a better one 5022 ac_cv_path_FGREP="$ac_path_FGREP" 5023 ac_path_FGREP_max=$ac_count 5024 fi 5025 # 10*(2^10) chars as input seems more than enough 5026 test $ac_count -gt 10 && break 5027 done 5028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5029esac 5030 5031 $ac_path_FGREP_found && break 3 5032 done 5033 done 5034 done 5035IFS=$as_save_IFS 5036 if test -z "$ac_cv_path_FGREP"; then 5037 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5038 fi 5039else 5040 ac_cv_path_FGREP=$FGREP 5041fi 5042 5043 fi 5044fi 5045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5046printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5047 FGREP="$ac_cv_path_FGREP" 5048 5049 5050test -z "$GREP" && GREP=grep 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070# Check whether --with-gnu-ld was given. 5071if test ${with_gnu_ld+y} 5072then : 5073 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5074else $as_nop 5075 with_gnu_ld=no 5076fi 5077 5078ac_prog=ld 5079if test yes = "$GCC"; then 5080 # Check if gcc -print-prog-name=ld gives a path. 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5082printf %s "checking for ld used by $CC... " >&6; } 5083 case $host in 5084 *-*-mingw*) 5085 # gcc leaves a trailing carriage return, which upsets mingw 5086 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5087 *) 5088 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5089 esac 5090 case $ac_prog in 5091 # Accept absolute paths. 5092 [\\/]* | ?:[\\/]*) 5093 re_direlt='/[^/][^/]*/\.\./' 5094 # Canonicalize the pathname of ld 5095 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5096 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5097 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5098 done 5099 test -z "$LD" && LD=$ac_prog 5100 ;; 5101 "") 5102 # If it fails, then pretend we aren't using GCC. 5103 ac_prog=ld 5104 ;; 5105 *) 5106 # If it is relative, then search for the first ld in PATH. 5107 with_gnu_ld=unknown 5108 ;; 5109 esac 5110elif test yes = "$with_gnu_ld"; then 5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5112printf %s "checking for GNU ld... " >&6; } 5113else 5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5115printf %s "checking for non-GNU ld... " >&6; } 5116fi 5117if test ${lt_cv_path_LD+y} 5118then : 5119 printf %s "(cached) " >&6 5120else $as_nop 5121 if test -z "$LD"; then 5122 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5123 for ac_dir in $PATH; do 5124 IFS=$lt_save_ifs 5125 test -z "$ac_dir" && ac_dir=. 5126 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5127 lt_cv_path_LD=$ac_dir/$ac_prog 5128 # Check to see if the program is GNU ld. I'd rather use --version, 5129 # but apparently some variants of GNU ld only accept -v. 5130 # Break only if it was the GNU/non-GNU ld that we prefer. 5131 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5132 *GNU* | *'with BFD'*) 5133 test no != "$with_gnu_ld" && break 5134 ;; 5135 *) 5136 test yes != "$with_gnu_ld" && break 5137 ;; 5138 esac 5139 fi 5140 done 5141 IFS=$lt_save_ifs 5142else 5143 lt_cv_path_LD=$LD # Let the user override the test with a path. 5144fi 5145fi 5146 5147LD=$lt_cv_path_LD 5148if test -n "$LD"; then 5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5150printf "%s\n" "$LD" >&6; } 5151else 5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5153printf "%s\n" "no" >&6; } 5154fi 5155test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5157printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5158if test ${lt_cv_prog_gnu_ld+y} 5159then : 5160 printf %s "(cached) " >&6 5161else $as_nop 5162 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5163case `$LD -v 2>&1 </dev/null` in 5164*GNU* | *'with BFD'*) 5165 lt_cv_prog_gnu_ld=yes 5166 ;; 5167*) 5168 lt_cv_prog_gnu_ld=no 5169 ;; 5170esac 5171fi 5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5173printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5174with_gnu_ld=$lt_cv_prog_gnu_ld 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5185printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5186if test ${lt_cv_path_NM+y} 5187then : 5188 printf %s "(cached) " >&6 5189else $as_nop 5190 if test -n "$NM"; then 5191 # Let the user override the test. 5192 lt_cv_path_NM=$NM 5193else 5194 lt_nm_to_check=${ac_tool_prefix}nm 5195 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5196 lt_nm_to_check="$lt_nm_to_check nm" 5197 fi 5198 for lt_tmp_nm in $lt_nm_to_check; do 5199 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5200 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5201 IFS=$lt_save_ifs 5202 test -z "$ac_dir" && ac_dir=. 5203 tmp_nm=$ac_dir/$lt_tmp_nm 5204 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5205 # Check to see if the nm accepts a BSD-compat flag. 5206 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5207 # nm: unknown option "B" ignored 5208 # Tru64's nm complains that /dev/null is an invalid object file 5209 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5210 case $build_os in 5211 mingw*) lt_bad_file=conftest.nm/nofile ;; 5212 *) lt_bad_file=/dev/null ;; 5213 esac 5214 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5215 *$lt_bad_file* | *'Invalid file or object type'*) 5216 lt_cv_path_NM="$tmp_nm -B" 5217 break 2 5218 ;; 5219 *) 5220 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5221 */dev/null*) 5222 lt_cv_path_NM="$tmp_nm -p" 5223 break 2 5224 ;; 5225 *) 5226 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5227 continue # so that we can try to find one that supports BSD flags 5228 ;; 5229 esac 5230 ;; 5231 esac 5232 fi 5233 done 5234 IFS=$lt_save_ifs 5235 done 5236 : ${lt_cv_path_NM=no} 5237fi 5238fi 5239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5240printf "%s\n" "$lt_cv_path_NM" >&6; } 5241if test no != "$lt_cv_path_NM"; then 5242 NM=$lt_cv_path_NM 5243else 5244 # Didn't find any BSD compatible name lister, look for dumpbin. 5245 if test -n "$DUMPBIN"; then : 5246 # Let the user override the test. 5247 else 5248 if test -n "$ac_tool_prefix"; then 5249 for ac_prog in dumpbin "link -dump" 5250 do 5251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5252set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5254printf %s "checking for $ac_word... " >&6; } 5255if test ${ac_cv_prog_DUMPBIN+y} 5256then : 5257 printf %s "(cached) " >&6 5258else $as_nop 5259 if test -n "$DUMPBIN"; then 5260 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5261else 5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5263for as_dir in $PATH 5264do 5265 IFS=$as_save_IFS 5266 case $as_dir in #((( 5267 '') as_dir=./ ;; 5268 */) ;; 5269 *) as_dir=$as_dir/ ;; 5270 esac 5271 for ac_exec_ext in '' $ac_executable_extensions; do 5272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5273 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5275 break 2 5276 fi 5277done 5278 done 5279IFS=$as_save_IFS 5280 5281fi 5282fi 5283DUMPBIN=$ac_cv_prog_DUMPBIN 5284if test -n "$DUMPBIN"; then 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5286printf "%s\n" "$DUMPBIN" >&6; } 5287else 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289printf "%s\n" "no" >&6; } 5290fi 5291 5292 5293 test -n "$DUMPBIN" && break 5294 done 5295fi 5296if test -z "$DUMPBIN"; then 5297 ac_ct_DUMPBIN=$DUMPBIN 5298 for ac_prog in dumpbin "link -dump" 5299do 5300 # Extract the first word of "$ac_prog", so it can be a program name with args. 5301set dummy $ac_prog; ac_word=$2 5302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5303printf %s "checking for $ac_word... " >&6; } 5304if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5305then : 5306 printf %s "(cached) " >&6 5307else $as_nop 5308 if test -n "$ac_ct_DUMPBIN"; then 5309 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5310else 5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5312for as_dir in $PATH 5313do 5314 IFS=$as_save_IFS 5315 case $as_dir in #((( 5316 '') as_dir=./ ;; 5317 */) ;; 5318 *) as_dir=$as_dir/ ;; 5319 esac 5320 for ac_exec_ext in '' $ac_executable_extensions; do 5321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5322 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5324 break 2 5325 fi 5326done 5327 done 5328IFS=$as_save_IFS 5329 5330fi 5331fi 5332ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5333if test -n "$ac_ct_DUMPBIN"; then 5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5335printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5336else 5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5338printf "%s\n" "no" >&6; } 5339fi 5340 5341 5342 test -n "$ac_ct_DUMPBIN" && break 5343done 5344 5345 if test "x$ac_ct_DUMPBIN" = x; then 5346 DUMPBIN=":" 5347 else 5348 case $cross_compiling:$ac_tool_warned in 5349yes:) 5350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5351printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5352ac_tool_warned=yes ;; 5353esac 5354 DUMPBIN=$ac_ct_DUMPBIN 5355 fi 5356fi 5357 5358 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5359 *COFF*) 5360 DUMPBIN="$DUMPBIN -symbols -headers" 5361 ;; 5362 *) 5363 DUMPBIN=: 5364 ;; 5365 esac 5366 fi 5367 5368 if test : != "$DUMPBIN"; then 5369 NM=$DUMPBIN 5370 fi 5371fi 5372test -z "$NM" && NM=nm 5373 5374 5375 5376 5377 5378 5379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5380printf %s "checking the name lister ($NM) interface... " >&6; } 5381if test ${lt_cv_nm_interface+y} 5382then : 5383 printf %s "(cached) " >&6 5384else $as_nop 5385 lt_cv_nm_interface="BSD nm" 5386 echo "int some_variable = 0;" > conftest.$ac_ext 5387 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5388 (eval "$ac_compile" 2>conftest.err) 5389 cat conftest.err >&5 5390 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5391 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5392 cat conftest.err >&5 5393 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5394 cat conftest.out >&5 5395 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5396 lt_cv_nm_interface="MS dumpbin" 5397 fi 5398 rm -f conftest* 5399fi 5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5401printf "%s\n" "$lt_cv_nm_interface" >&6; } 5402 5403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5404printf %s "checking whether ln -s works... " >&6; } 5405LN_S=$as_ln_s 5406if test "$LN_S" = "ln -s"; then 5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5408printf "%s\n" "yes" >&6; } 5409else 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5411printf "%s\n" "no, using $LN_S" >&6; } 5412fi 5413 5414# find the maximum length of command line arguments 5415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5416printf %s "checking the maximum length of command line arguments... " >&6; } 5417if test ${lt_cv_sys_max_cmd_len+y} 5418then : 5419 printf %s "(cached) " >&6 5420else $as_nop 5421 i=0 5422 teststring=ABCD 5423 5424 case $build_os in 5425 msdosdjgpp*) 5426 # On DJGPP, this test can blow up pretty badly due to problems in libc 5427 # (any single argument exceeding 2000 bytes causes a buffer overrun 5428 # during glob expansion). Even if it were fixed, the result of this 5429 # check would be larger than it should be. 5430 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5431 ;; 5432 5433 gnu*) 5434 # Under GNU Hurd, this test is not required because there is 5435 # no limit to the length of command line arguments. 5436 # Libtool will interpret -1 as no limit whatsoever 5437 lt_cv_sys_max_cmd_len=-1; 5438 ;; 5439 5440 cygwin* | mingw* | cegcc*) 5441 # On Win9x/ME, this test blows up -- it succeeds, but takes 5442 # about 5 minutes as the teststring grows exponentially. 5443 # Worse, since 9x/ME are not pre-emptively multitasking, 5444 # you end up with a "frozen" computer, even though with patience 5445 # the test eventually succeeds (with a max line length of 256k). 5446 # Instead, let's just punt: use the minimum linelength reported by 5447 # all of the supported platforms: 8192 (on NT/2K/XP). 5448 lt_cv_sys_max_cmd_len=8192; 5449 ;; 5450 5451 mint*) 5452 # On MiNT this can take a long time and run out of memory. 5453 lt_cv_sys_max_cmd_len=8192; 5454 ;; 5455 5456 amigaos*) 5457 # On AmigaOS with pdksh, this test takes hours, literally. 5458 # So we just punt and use a minimum line length of 8192. 5459 lt_cv_sys_max_cmd_len=8192; 5460 ;; 5461 5462 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5463 # This has been around since 386BSD, at least. Likely further. 5464 if test -x /sbin/sysctl; then 5465 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5466 elif test -x /usr/sbin/sysctl; then 5467 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5468 else 5469 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5470 fi 5471 # And add a safety zone 5472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5474 ;; 5475 5476 interix*) 5477 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5478 lt_cv_sys_max_cmd_len=196608 5479 ;; 5480 5481 os2*) 5482 # The test takes a long time on OS/2. 5483 lt_cv_sys_max_cmd_len=8192 5484 ;; 5485 5486 osf*) 5487 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5488 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5489 # nice to cause kernel panics so lets avoid the loop below. 5490 # First set a reasonable default. 5491 lt_cv_sys_max_cmd_len=16384 5492 # 5493 if test -x /sbin/sysconfig; then 5494 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5495 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5496 esac 5497 fi 5498 ;; 5499 sco3.2v5*) 5500 lt_cv_sys_max_cmd_len=102400 5501 ;; 5502 sysv5* | sco5v6* | sysv4.2uw2*) 5503 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5504 if test -n "$kargmax"; then 5505 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5506 else 5507 lt_cv_sys_max_cmd_len=32768 5508 fi 5509 ;; 5510 *) 5511 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5512 if test -n "$lt_cv_sys_max_cmd_len" && \ 5513 test undefined != "$lt_cv_sys_max_cmd_len"; then 5514 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5516 else 5517 # Make teststring a little bigger before we do anything with it. 5518 # a 1K string should be a reasonable start. 5519 for i in 1 2 3 4 5 6 7 8; do 5520 teststring=$teststring$teststring 5521 done 5522 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5523 # If test is not a shell built-in, we'll probably end up computing a 5524 # maximum length that is only half of the actual maximum length, but 5525 # we can't tell. 5526 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5527 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5528 test 17 != "$i" # 1/2 MB should be enough 5529 do 5530 i=`expr $i + 1` 5531 teststring=$teststring$teststring 5532 done 5533 # Only check the string length outside the loop. 5534 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5535 teststring= 5536 # Add a significant safety factor because C++ compilers can tack on 5537 # massive amounts of additional arguments before passing them to the 5538 # linker. It appears as though 1/2 is a usable value. 5539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5540 fi 5541 ;; 5542 esac 5543 5544fi 5545 5546if test -n "$lt_cv_sys_max_cmd_len"; then 5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5548printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5549else 5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5551printf "%s\n" "none" >&6; } 5552fi 5553max_cmd_len=$lt_cv_sys_max_cmd_len 5554 5555 5556 5557 5558 5559 5560: ${CP="cp -f"} 5561: ${MV="mv -f"} 5562: ${RM="rm -f"} 5563 5564if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5565 lt_unset=unset 5566else 5567 lt_unset=false 5568fi 5569 5570 5571 5572 5573 5574# test EBCDIC or ASCII 5575case `echo X|tr X '\101'` in 5576 A) # ASCII based system 5577 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5578 lt_SP2NL='tr \040 \012' 5579 lt_NL2SP='tr \015\012 \040\040' 5580 ;; 5581 *) # EBCDIC based system 5582 lt_SP2NL='tr \100 \n' 5583 lt_NL2SP='tr \r\n \100\100' 5584 ;; 5585esac 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5596printf %s "checking how to convert $build file names to $host format... " >&6; } 5597if test ${lt_cv_to_host_file_cmd+y} 5598then : 5599 printf %s "(cached) " >&6 5600else $as_nop 5601 case $host in 5602 *-*-mingw* ) 5603 case $build in 5604 *-*-mingw* ) # actually msys 5605 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5606 ;; 5607 *-*-cygwin* ) 5608 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5609 ;; 5610 * ) # otherwise, assume *nix 5611 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5612 ;; 5613 esac 5614 ;; 5615 *-*-cygwin* ) 5616 case $build in 5617 *-*-mingw* ) # actually msys 5618 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5619 ;; 5620 *-*-cygwin* ) 5621 lt_cv_to_host_file_cmd=func_convert_file_noop 5622 ;; 5623 * ) # otherwise, assume *nix 5624 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5625 ;; 5626 esac 5627 ;; 5628 * ) # unhandled hosts (and "normal" native builds) 5629 lt_cv_to_host_file_cmd=func_convert_file_noop 5630 ;; 5631esac 5632 5633fi 5634 5635to_host_file_cmd=$lt_cv_to_host_file_cmd 5636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5637printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5638 5639 5640 5641 5642 5643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5644printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5645if test ${lt_cv_to_tool_file_cmd+y} 5646then : 5647 printf %s "(cached) " >&6 5648else $as_nop 5649 #assume ordinary cross tools, or native build. 5650lt_cv_to_tool_file_cmd=func_convert_file_noop 5651case $host in 5652 *-*-mingw* ) 5653 case $build in 5654 *-*-mingw* ) # actually msys 5655 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5656 ;; 5657 esac 5658 ;; 5659esac 5660 5661fi 5662 5663to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5665printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5666 5667 5668 5669 5670 5671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5672printf %s "checking for $LD option to reload object files... " >&6; } 5673if test ${lt_cv_ld_reload_flag+y} 5674then : 5675 printf %s "(cached) " >&6 5676else $as_nop 5677 lt_cv_ld_reload_flag='-r' 5678fi 5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5680printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5681reload_flag=$lt_cv_ld_reload_flag 5682case $reload_flag in 5683"" | " "*) ;; 5684*) reload_flag=" $reload_flag" ;; 5685esac 5686reload_cmds='$LD$reload_flag -o $output$reload_objs' 5687case $host_os in 5688 cygwin* | mingw* | pw32* | cegcc*) 5689 if test yes != "$GCC"; then 5690 reload_cmds=false 5691 fi 5692 ;; 5693 darwin*) 5694 if test yes = "$GCC"; then 5695 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5696 else 5697 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5698 fi 5699 ;; 5700esac 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710if test -n "$ac_tool_prefix"; then 5711 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5712set dummy ${ac_tool_prefix}file; ac_word=$2 5713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5714printf %s "checking for $ac_word... " >&6; } 5715if test ${ac_cv_prog_FILECMD+y} 5716then : 5717 printf %s "(cached) " >&6 5718else $as_nop 5719 if test -n "$FILECMD"; then 5720 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5721else 5722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5723for as_dir in $PATH 5724do 5725 IFS=$as_save_IFS 5726 case $as_dir in #((( 5727 '') as_dir=./ ;; 5728 */) ;; 5729 *) as_dir=$as_dir/ ;; 5730 esac 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5733 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737done 5738 done 5739IFS=$as_save_IFS 5740 5741fi 5742fi 5743FILECMD=$ac_cv_prog_FILECMD 5744if test -n "$FILECMD"; then 5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5746printf "%s\n" "$FILECMD" >&6; } 5747else 5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749printf "%s\n" "no" >&6; } 5750fi 5751 5752 5753fi 5754if test -z "$ac_cv_prog_FILECMD"; then 5755 ac_ct_FILECMD=$FILECMD 5756 # Extract the first word of "file", so it can be a program name with args. 5757set dummy file; ac_word=$2 5758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5759printf %s "checking for $ac_word... " >&6; } 5760if test ${ac_cv_prog_ac_ct_FILECMD+y} 5761then : 5762 printf %s "(cached) " >&6 5763else $as_nop 5764 if test -n "$ac_ct_FILECMD"; then 5765 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5766else 5767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 case $as_dir in #((( 5772 '') as_dir=./ ;; 5773 */) ;; 5774 *) as_dir=$as_dir/ ;; 5775 esac 5776 for ac_exec_ext in '' $ac_executable_extensions; do 5777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5778 ac_cv_prog_ac_ct_FILECMD="file" 5779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5780 break 2 5781 fi 5782done 5783 done 5784IFS=$as_save_IFS 5785 5786fi 5787fi 5788ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5789if test -n "$ac_ct_FILECMD"; then 5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5791printf "%s\n" "$ac_ct_FILECMD" >&6; } 5792else 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5794printf "%s\n" "no" >&6; } 5795fi 5796 5797 if test "x$ac_ct_FILECMD" = x; then 5798 FILECMD=":" 5799 else 5800 case $cross_compiling:$ac_tool_warned in 5801yes:) 5802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5803printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5804ac_tool_warned=yes ;; 5805esac 5806 FILECMD=$ac_ct_FILECMD 5807 fi 5808else 5809 FILECMD="$ac_cv_prog_FILECMD" 5810fi 5811 5812 5813 5814 5815 5816 5817 5818if test -n "$ac_tool_prefix"; then 5819 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5820set dummy ${ac_tool_prefix}objdump; ac_word=$2 5821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5822printf %s "checking for $ac_word... " >&6; } 5823if test ${ac_cv_prog_OBJDUMP+y} 5824then : 5825 printf %s "(cached) " >&6 5826else $as_nop 5827 if test -n "$OBJDUMP"; then 5828 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5829else 5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5831for as_dir in $PATH 5832do 5833 IFS=$as_save_IFS 5834 case $as_dir in #((( 5835 '') as_dir=./ ;; 5836 */) ;; 5837 *) as_dir=$as_dir/ ;; 5838 esac 5839 for ac_exec_ext in '' $ac_executable_extensions; do 5840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5841 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5843 break 2 5844 fi 5845done 5846 done 5847IFS=$as_save_IFS 5848 5849fi 5850fi 5851OBJDUMP=$ac_cv_prog_OBJDUMP 5852if test -n "$OBJDUMP"; then 5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5854printf "%s\n" "$OBJDUMP" >&6; } 5855else 5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5857printf "%s\n" "no" >&6; } 5858fi 5859 5860 5861fi 5862if test -z "$ac_cv_prog_OBJDUMP"; then 5863 ac_ct_OBJDUMP=$OBJDUMP 5864 # Extract the first word of "objdump", so it can be a program name with args. 5865set dummy objdump; ac_word=$2 5866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5867printf %s "checking for $ac_word... " >&6; } 5868if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5869then : 5870 printf %s "(cached) " >&6 5871else $as_nop 5872 if test -n "$ac_ct_OBJDUMP"; then 5873 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5874else 5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876for as_dir in $PATH 5877do 5878 IFS=$as_save_IFS 5879 case $as_dir in #((( 5880 '') as_dir=./ ;; 5881 */) ;; 5882 *) as_dir=$as_dir/ ;; 5883 esac 5884 for ac_exec_ext in '' $ac_executable_extensions; do 5885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5886 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5888 break 2 5889 fi 5890done 5891 done 5892IFS=$as_save_IFS 5893 5894fi 5895fi 5896ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5897if test -n "$ac_ct_OBJDUMP"; then 5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5899printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5900else 5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5902printf "%s\n" "no" >&6; } 5903fi 5904 5905 if test "x$ac_ct_OBJDUMP" = x; then 5906 OBJDUMP="false" 5907 else 5908 case $cross_compiling:$ac_tool_warned in 5909yes:) 5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5911printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5912ac_tool_warned=yes ;; 5913esac 5914 OBJDUMP=$ac_ct_OBJDUMP 5915 fi 5916else 5917 OBJDUMP="$ac_cv_prog_OBJDUMP" 5918fi 5919 5920test -z "$OBJDUMP" && OBJDUMP=objdump 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5931printf %s "checking how to recognize dependent libraries... " >&6; } 5932if test ${lt_cv_deplibs_check_method+y} 5933then : 5934 printf %s "(cached) " >&6 5935else $as_nop 5936 lt_cv_file_magic_cmd='$MAGIC_CMD' 5937lt_cv_file_magic_test_file= 5938lt_cv_deplibs_check_method='unknown' 5939# Need to set the preceding variable on all platforms that support 5940# interlibrary dependencies. 5941# 'none' -- dependencies not supported. 5942# 'unknown' -- same as none, but documents that we really don't know. 5943# 'pass_all' -- all dependencies passed with no checks. 5944# 'test_compile' -- check by making test program. 5945# 'file_magic [[regex]]' -- check by looking for files in library path 5946# that responds to the $file_magic_cmd with a given extended regex. 5947# If you have 'file' or equivalent on your system and you're not sure 5948# whether 'pass_all' will *always* work, you probably want this one. 5949 5950case $host_os in 5951aix[4-9]*) 5952 lt_cv_deplibs_check_method=pass_all 5953 ;; 5954 5955beos*) 5956 lt_cv_deplibs_check_method=pass_all 5957 ;; 5958 5959bsdi[45]*) 5960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5961 lt_cv_file_magic_cmd='$FILECMD -L' 5962 lt_cv_file_magic_test_file=/shlib/libc.so 5963 ;; 5964 5965cygwin*) 5966 # func_win32_libid is a shell function defined in ltmain.sh 5967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5968 lt_cv_file_magic_cmd='func_win32_libid' 5969 ;; 5970 5971mingw* | pw32*) 5972 # Base MSYS/MinGW do not provide the 'file' command needed by 5973 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5974 # unless we find 'file', for example because we are cross-compiling. 5975 if ( file / ) >/dev/null 2>&1; then 5976 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5977 lt_cv_file_magic_cmd='func_win32_libid' 5978 else 5979 # Keep this pattern in sync with the one in func_win32_libid. 5980 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5981 lt_cv_file_magic_cmd='$OBJDUMP -f' 5982 fi 5983 ;; 5984 5985cegcc*) 5986 # use the weaker test based on 'objdump'. See mingw*. 5987 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5988 lt_cv_file_magic_cmd='$OBJDUMP -f' 5989 ;; 5990 5991darwin* | rhapsody*) 5992 lt_cv_deplibs_check_method=pass_all 5993 ;; 5994 5995freebsd* | dragonfly* | midnightbsd*) 5996 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5997 case $host_cpu in 5998 i*86 ) 5999 # Not sure whether the presence of OpenBSD here was a mistake. 6000 # Let's accept both of them until this is cleared up. 6001 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6002 lt_cv_file_magic_cmd=$FILECMD 6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6004 ;; 6005 esac 6006 else 6007 lt_cv_deplibs_check_method=pass_all 6008 fi 6009 ;; 6010 6011haiku*) 6012 lt_cv_deplibs_check_method=pass_all 6013 ;; 6014 6015hpux10.20* | hpux11*) 6016 lt_cv_file_magic_cmd=$FILECMD 6017 case $host_cpu in 6018 ia64*) 6019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6020 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6021 ;; 6022 hppa*64*) 6023 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]' 6024 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6025 ;; 6026 *) 6027 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6028 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6029 ;; 6030 esac 6031 ;; 6032 6033interix[3-9]*) 6034 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6035 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6036 ;; 6037 6038irix5* | irix6* | nonstopux*) 6039 case $LD in 6040 *-32|*"-32 ") libmagic=32-bit;; 6041 *-n32|*"-n32 ") libmagic=N32;; 6042 *-64|*"-64 ") libmagic=64-bit;; 6043 *) libmagic=never-match;; 6044 esac 6045 lt_cv_deplibs_check_method=pass_all 6046 ;; 6047 6048# This must be glibc/ELF. 6049linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6050 lt_cv_deplibs_check_method=pass_all 6051 ;; 6052 6053netbsd*) 6054 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6056 else 6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6058 fi 6059 ;; 6060 6061newos6*) 6062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6063 lt_cv_file_magic_cmd=$FILECMD 6064 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6065 ;; 6066 6067*nto* | *qnx*) 6068 lt_cv_deplibs_check_method=pass_all 6069 ;; 6070 6071openbsd* | bitrig*) 6072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6074 else 6075 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6076 fi 6077 ;; 6078 6079osf3* | osf4* | osf5*) 6080 lt_cv_deplibs_check_method=pass_all 6081 ;; 6082 6083rdos*) 6084 lt_cv_deplibs_check_method=pass_all 6085 ;; 6086 6087solaris*) 6088 lt_cv_deplibs_check_method=pass_all 6089 ;; 6090 6091sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6092 lt_cv_deplibs_check_method=pass_all 6093 ;; 6094 6095sysv4 | sysv4.3*) 6096 case $host_vendor in 6097 motorola) 6098 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]' 6099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6100 ;; 6101 ncr) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 sequent) 6105 lt_cv_file_magic_cmd='/bin/file' 6106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6107 ;; 6108 sni) 6109 lt_cv_file_magic_cmd='/bin/file' 6110 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6111 lt_cv_file_magic_test_file=/lib/libc.so 6112 ;; 6113 siemens) 6114 lt_cv_deplibs_check_method=pass_all 6115 ;; 6116 pc) 6117 lt_cv_deplibs_check_method=pass_all 6118 ;; 6119 esac 6120 ;; 6121 6122tpf*) 6123 lt_cv_deplibs_check_method=pass_all 6124 ;; 6125os2*) 6126 lt_cv_deplibs_check_method=pass_all 6127 ;; 6128esac 6129 6130fi 6131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6132printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6133 6134file_magic_glob= 6135want_nocaseglob=no 6136if test "$build" = "$host"; then 6137 case $host_os in 6138 mingw* | pw32*) 6139 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6140 want_nocaseglob=yes 6141 else 6142 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6143 fi 6144 ;; 6145 esac 6146fi 6147 6148file_magic_cmd=$lt_cv_file_magic_cmd 6149deplibs_check_method=$lt_cv_deplibs_check_method 6150test -z "$deplibs_check_method" && deplibs_check_method=unknown 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173if test -n "$ac_tool_prefix"; then 6174 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6175set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6177printf %s "checking for $ac_word... " >&6; } 6178if test ${ac_cv_prog_DLLTOOL+y} 6179then : 6180 printf %s "(cached) " >&6 6181else $as_nop 6182 if test -n "$DLLTOOL"; then 6183 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6184else 6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6186for as_dir in $PATH 6187do 6188 IFS=$as_save_IFS 6189 case $as_dir in #((( 6190 '') as_dir=./ ;; 6191 */) ;; 6192 *) as_dir=$as_dir/ ;; 6193 esac 6194 for ac_exec_ext in '' $ac_executable_extensions; do 6195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6196 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6198 break 2 6199 fi 6200done 6201 done 6202IFS=$as_save_IFS 6203 6204fi 6205fi 6206DLLTOOL=$ac_cv_prog_DLLTOOL 6207if test -n "$DLLTOOL"; then 6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6209printf "%s\n" "$DLLTOOL" >&6; } 6210else 6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6212printf "%s\n" "no" >&6; } 6213fi 6214 6215 6216fi 6217if test -z "$ac_cv_prog_DLLTOOL"; then 6218 ac_ct_DLLTOOL=$DLLTOOL 6219 # Extract the first word of "dlltool", so it can be a program name with args. 6220set dummy dlltool; ac_word=$2 6221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6222printf %s "checking for $ac_word... " >&6; } 6223if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6224then : 6225 printf %s "(cached) " >&6 6226else $as_nop 6227 if test -n "$ac_ct_DLLTOOL"; then 6228 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6229else 6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6231for as_dir in $PATH 6232do 6233 IFS=$as_save_IFS 6234 case $as_dir in #((( 6235 '') as_dir=./ ;; 6236 */) ;; 6237 *) as_dir=$as_dir/ ;; 6238 esac 6239 for ac_exec_ext in '' $ac_executable_extensions; do 6240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6241 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6243 break 2 6244 fi 6245done 6246 done 6247IFS=$as_save_IFS 6248 6249fi 6250fi 6251ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6252if test -n "$ac_ct_DLLTOOL"; then 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6254printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6255else 6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6257printf "%s\n" "no" >&6; } 6258fi 6259 6260 if test "x$ac_ct_DLLTOOL" = x; then 6261 DLLTOOL="false" 6262 else 6263 case $cross_compiling:$ac_tool_warned in 6264yes:) 6265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6267ac_tool_warned=yes ;; 6268esac 6269 DLLTOOL=$ac_ct_DLLTOOL 6270 fi 6271else 6272 DLLTOOL="$ac_cv_prog_DLLTOOL" 6273fi 6274 6275test -z "$DLLTOOL" && DLLTOOL=dlltool 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6287printf %s "checking how to associate runtime and link libraries... " >&6; } 6288if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6289then : 6290 printf %s "(cached) " >&6 6291else $as_nop 6292 lt_cv_sharedlib_from_linklib_cmd='unknown' 6293 6294case $host_os in 6295cygwin* | mingw* | pw32* | cegcc*) 6296 # two different shell functions defined in ltmain.sh; 6297 # decide which one to use based on capabilities of $DLLTOOL 6298 case `$DLLTOOL --help 2>&1` in 6299 *--identify-strict*) 6300 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6301 ;; 6302 *) 6303 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6304 ;; 6305 esac 6306 ;; 6307*) 6308 # fallback: assume linklib IS sharedlib 6309 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6310 ;; 6311esac 6312 6313fi 6314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6315printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6316sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6317test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6318 6319 6320 6321 6322 6323 6324 6325 6326if test -n "$ac_tool_prefix"; then 6327 for ac_prog in ar 6328 do 6329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6330set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6332printf %s "checking for $ac_word... " >&6; } 6333if test ${ac_cv_prog_AR+y} 6334then : 6335 printf %s "(cached) " >&6 6336else $as_nop 6337 if test -n "$AR"; then 6338 ac_cv_prog_AR="$AR" # Let the user override the test. 6339else 6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6341for as_dir in $PATH 6342do 6343 IFS=$as_save_IFS 6344 case $as_dir in #((( 6345 '') as_dir=./ ;; 6346 */) ;; 6347 *) as_dir=$as_dir/ ;; 6348 esac 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355done 6356 done 6357IFS=$as_save_IFS 6358 6359fi 6360fi 6361AR=$ac_cv_prog_AR 6362if test -n "$AR"; then 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6364printf "%s\n" "$AR" >&6; } 6365else 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367printf "%s\n" "no" >&6; } 6368fi 6369 6370 6371 test -n "$AR" && break 6372 done 6373fi 6374if test -z "$AR"; then 6375 ac_ct_AR=$AR 6376 for ac_prog in ar 6377do 6378 # Extract the first word of "$ac_prog", so it can be a program name with args. 6379set dummy $ac_prog; ac_word=$2 6380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6381printf %s "checking for $ac_word... " >&6; } 6382if test ${ac_cv_prog_ac_ct_AR+y} 6383then : 6384 printf %s "(cached) " >&6 6385else $as_nop 6386 if test -n "$ac_ct_AR"; then 6387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6388else 6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6390for as_dir in $PATH 6391do 6392 IFS=$as_save_IFS 6393 case $as_dir in #((( 6394 '') as_dir=./ ;; 6395 */) ;; 6396 *) as_dir=$as_dir/ ;; 6397 esac 6398 for ac_exec_ext in '' $ac_executable_extensions; do 6399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6400 ac_cv_prog_ac_ct_AR="$ac_prog" 6401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6402 break 2 6403 fi 6404done 6405 done 6406IFS=$as_save_IFS 6407 6408fi 6409fi 6410ac_ct_AR=$ac_cv_prog_ac_ct_AR 6411if test -n "$ac_ct_AR"; then 6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6413printf "%s\n" "$ac_ct_AR" >&6; } 6414else 6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6416printf "%s\n" "no" >&6; } 6417fi 6418 6419 6420 test -n "$ac_ct_AR" && break 6421done 6422 6423 if test "x$ac_ct_AR" = x; then 6424 AR="false" 6425 else 6426 case $cross_compiling:$ac_tool_warned in 6427yes:) 6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6429printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6430ac_tool_warned=yes ;; 6431esac 6432 AR=$ac_ct_AR 6433 fi 6434fi 6435 6436: ${AR=ar} 6437 6438 6439 6440 6441 6442 6443# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6444# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6445# higher priority because thats what people were doing historically (setting 6446# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6447# variable obsoleted/removed. 6448 6449test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6450lt_ar_flags=$AR_FLAGS 6451 6452 6453 6454 6455 6456 6457# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6458# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6459 6460 6461 6462 6463 6464 6465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6466printf %s "checking for archiver @FILE support... " >&6; } 6467if test ${lt_cv_ar_at_file+y} 6468then : 6469 printf %s "(cached) " >&6 6470else $as_nop 6471 lt_cv_ar_at_file=no 6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6473/* end confdefs.h. */ 6474 6475int 6476main (void) 6477{ 6478 6479 ; 6480 return 0; 6481} 6482_ACEOF 6483if ac_fn_c_try_compile "$LINENO" 6484then : 6485 echo conftest.$ac_objext > conftest.lst 6486 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6488 (eval $lt_ar_try) 2>&5 6489 ac_status=$? 6490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6491 test $ac_status = 0; } 6492 if test 0 -eq "$ac_status"; then 6493 # Ensure the archiver fails upon bogus file names. 6494 rm -f conftest.$ac_objext libconftest.a 6495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6496 (eval $lt_ar_try) 2>&5 6497 ac_status=$? 6498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6499 test $ac_status = 0; } 6500 if test 0 -ne "$ac_status"; then 6501 lt_cv_ar_at_file=@ 6502 fi 6503 fi 6504 rm -f conftest.* libconftest.a 6505 6506fi 6507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6508 6509fi 6510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6511printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6512 6513if test no = "$lt_cv_ar_at_file"; then 6514 archiver_list_spec= 6515else 6516 archiver_list_spec=$lt_cv_ar_at_file 6517fi 6518 6519 6520 6521 6522 6523 6524 6525if test -n "$ac_tool_prefix"; then 6526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6527set dummy ${ac_tool_prefix}strip; ac_word=$2 6528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6529printf %s "checking for $ac_word... " >&6; } 6530if test ${ac_cv_prog_STRIP+y} 6531then : 6532 printf %s "(cached) " >&6 6533else $as_nop 6534 if test -n "$STRIP"; then 6535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6536else 6537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6538for as_dir in $PATH 6539do 6540 IFS=$as_save_IFS 6541 case $as_dir in #((( 6542 '') as_dir=./ ;; 6543 */) ;; 6544 *) as_dir=$as_dir/ ;; 6545 esac 6546 for ac_exec_ext in '' $ac_executable_extensions; do 6547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6548 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6550 break 2 6551 fi 6552done 6553 done 6554IFS=$as_save_IFS 6555 6556fi 6557fi 6558STRIP=$ac_cv_prog_STRIP 6559if test -n "$STRIP"; then 6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6561printf "%s\n" "$STRIP" >&6; } 6562else 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6564printf "%s\n" "no" >&6; } 6565fi 6566 6567 6568fi 6569if test -z "$ac_cv_prog_STRIP"; then 6570 ac_ct_STRIP=$STRIP 6571 # Extract the first word of "strip", so it can be a program name with args. 6572set dummy strip; ac_word=$2 6573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6574printf %s "checking for $ac_word... " >&6; } 6575if test ${ac_cv_prog_ac_ct_STRIP+y} 6576then : 6577 printf %s "(cached) " >&6 6578else $as_nop 6579 if test -n "$ac_ct_STRIP"; then 6580 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6581else 6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6583for as_dir in $PATH 6584do 6585 IFS=$as_save_IFS 6586 case $as_dir in #((( 6587 '') as_dir=./ ;; 6588 */) ;; 6589 *) as_dir=$as_dir/ ;; 6590 esac 6591 for ac_exec_ext in '' $ac_executable_extensions; do 6592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6593 ac_cv_prog_ac_ct_STRIP="strip" 6594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6595 break 2 6596 fi 6597done 6598 done 6599IFS=$as_save_IFS 6600 6601fi 6602fi 6603ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6604if test -n "$ac_ct_STRIP"; then 6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6606printf "%s\n" "$ac_ct_STRIP" >&6; } 6607else 6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6609printf "%s\n" "no" >&6; } 6610fi 6611 6612 if test "x$ac_ct_STRIP" = x; then 6613 STRIP=":" 6614 else 6615 case $cross_compiling:$ac_tool_warned in 6616yes:) 6617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6618printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6619ac_tool_warned=yes ;; 6620esac 6621 STRIP=$ac_ct_STRIP 6622 fi 6623else 6624 STRIP="$ac_cv_prog_STRIP" 6625fi 6626 6627test -z "$STRIP" && STRIP=: 6628 6629 6630 6631 6632 6633 6634if test -n "$ac_tool_prefix"; then 6635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6636set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6638printf %s "checking for $ac_word... " >&6; } 6639if test ${ac_cv_prog_RANLIB+y} 6640then : 6641 printf %s "(cached) " >&6 6642else $as_nop 6643 if test -n "$RANLIB"; then 6644 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6645else 6646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6647for as_dir in $PATH 6648do 6649 IFS=$as_save_IFS 6650 case $as_dir in #((( 6651 '') as_dir=./ ;; 6652 */) ;; 6653 *) as_dir=$as_dir/ ;; 6654 esac 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661done 6662 done 6663IFS=$as_save_IFS 6664 6665fi 6666fi 6667RANLIB=$ac_cv_prog_RANLIB 6668if test -n "$RANLIB"; then 6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6670printf "%s\n" "$RANLIB" >&6; } 6671else 6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6673printf "%s\n" "no" >&6; } 6674fi 6675 6676 6677fi 6678if test -z "$ac_cv_prog_RANLIB"; then 6679 ac_ct_RANLIB=$RANLIB 6680 # Extract the first word of "ranlib", so it can be a program name with args. 6681set dummy ranlib; ac_word=$2 6682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6683printf %s "checking for $ac_word... " >&6; } 6684if test ${ac_cv_prog_ac_ct_RANLIB+y} 6685then : 6686 printf %s "(cached) " >&6 6687else $as_nop 6688 if test -n "$ac_ct_RANLIB"; then 6689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6690else 6691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 case $as_dir in #((( 6696 '') as_dir=./ ;; 6697 */) ;; 6698 *) as_dir=$as_dir/ ;; 6699 esac 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6702 ac_cv_prog_ac_ct_RANLIB="ranlib" 6703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707 done 6708IFS=$as_save_IFS 6709 6710fi 6711fi 6712ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6713if test -n "$ac_ct_RANLIB"; then 6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6715printf "%s\n" "$ac_ct_RANLIB" >&6; } 6716else 6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718printf "%s\n" "no" >&6; } 6719fi 6720 6721 if test "x$ac_ct_RANLIB" = x; then 6722 RANLIB=":" 6723 else 6724 case $cross_compiling:$ac_tool_warned in 6725yes:) 6726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6727printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6728ac_tool_warned=yes ;; 6729esac 6730 RANLIB=$ac_ct_RANLIB 6731 fi 6732else 6733 RANLIB="$ac_cv_prog_RANLIB" 6734fi 6735 6736test -z "$RANLIB" && RANLIB=: 6737 6738 6739 6740 6741 6742 6743# Determine commands to create old-style static archives. 6744old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6745old_postinstall_cmds='chmod 644 $oldlib' 6746old_postuninstall_cmds= 6747 6748if test -n "$RANLIB"; then 6749 case $host_os in 6750 bitrig* | openbsd*) 6751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6752 ;; 6753 *) 6754 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6755 ;; 6756 esac 6757 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6758fi 6759 6760case $host_os in 6761 darwin*) 6762 lock_old_archive_extraction=yes ;; 6763 *) 6764 lock_old_archive_extraction=no ;; 6765esac 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805# If no C compiler was specified, use CC. 6806LTCC=${LTCC-"$CC"} 6807 6808# If no C compiler flags were specified, use CFLAGS. 6809LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6810 6811# Allow CC to be a program name with arguments. 6812compiler=$CC 6813 6814 6815# Check for command to grab the raw symbol name followed by C symbol from nm. 6816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6817printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6818if test ${lt_cv_sys_global_symbol_pipe+y} 6819then : 6820 printf %s "(cached) " >&6 6821else $as_nop 6822 6823# These are sane defaults that work on at least a few old systems. 6824# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6825 6826# Character class describing NM global symbol codes. 6827symcode='[BCDEGRST]' 6828 6829# Regexp to match symbols that can be accessed directly from C. 6830sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6831 6832# Define system-specific variables. 6833case $host_os in 6834aix*) 6835 symcode='[BCDT]' 6836 ;; 6837cygwin* | mingw* | pw32* | cegcc*) 6838 symcode='[ABCDGISTW]' 6839 ;; 6840hpux*) 6841 if test ia64 = "$host_cpu"; then 6842 symcode='[ABCDEGRST]' 6843 fi 6844 ;; 6845irix* | nonstopux*) 6846 symcode='[BCDEGRST]' 6847 ;; 6848osf*) 6849 symcode='[BCDEGQRST]' 6850 ;; 6851solaris*) 6852 symcode='[BDRT]' 6853 ;; 6854sco3.2v5*) 6855 symcode='[DT]' 6856 ;; 6857sysv4.2uw2*) 6858 symcode='[DT]' 6859 ;; 6860sysv5* | sco5v6* | unixware* | OpenUNIX*) 6861 symcode='[ABDT]' 6862 ;; 6863sysv4) 6864 symcode='[DFNSTU]' 6865 ;; 6866esac 6867 6868# If we're using GNU nm, then use its standard symbol codes. 6869case `$NM -V 2>&1` in 6870*GNU* | *'with BFD'*) 6871 symcode='[ABCDGIRSTW]' ;; 6872esac 6873 6874if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6875 # Gets list of data symbols to import. 6876 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6877 # Adjust the below global symbol transforms to fixup imported variables. 6878 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6879 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6880 lt_c_name_lib_hook="\ 6881 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6882 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6883else 6884 # Disable hooks by default. 6885 lt_cv_sys_global_symbol_to_import= 6886 lt_cdecl_hook= 6887 lt_c_name_hook= 6888 lt_c_name_lib_hook= 6889fi 6890 6891# Transform an extracted symbol line into a proper C declaration. 6892# Some systems (esp. on ia64) link data and code symbols differently, 6893# so use this general approach. 6894lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6895$lt_cdecl_hook\ 6896" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6897" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6898 6899# Transform an extracted symbol line into symbol name and symbol address 6900lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6901$lt_c_name_hook\ 6902" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6903" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6904 6905# Transform an extracted symbol line into symbol name with lib prefix and 6906# symbol address. 6907lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6908$lt_c_name_lib_hook\ 6909" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6910" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6911" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6912 6913# Handle CRLF in mingw tool chain 6914opt_cr= 6915case $build_os in 6916mingw*) 6917 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6918 ;; 6919esac 6920 6921# Try without a prefix underscore, then with it. 6922for ac_symprfx in "" "_"; do 6923 6924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6925 symxfrm="\\1 $ac_symprfx\\2 \\2" 6926 6927 # Write the raw and C identifiers. 6928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6929 # Fake it for dumpbin and say T for any non-static function, 6930 # D for any global variable and I for any imported variable. 6931 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6932 # which start with @ or ?. 6933 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6934" {last_section=section; section=\$ 3};"\ 6935" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6936" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6937" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6938" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6939" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6940" \$ 0!~/External *\|/{next};"\ 6941" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6942" {if(hide[section]) next};"\ 6943" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6944" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6945" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6946" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6947" ' prfx=^$ac_symprfx" 6948 else 6949 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6950 fi 6951 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6952 6953 # Check to see that the pipe works correctly. 6954 pipe_works=no 6955 6956 rm -f conftest* 6957 cat > conftest.$ac_ext <<_LT_EOF 6958#ifdef __cplusplus 6959extern "C" { 6960#endif 6961char nm_test_var; 6962void nm_test_func(void); 6963void nm_test_func(void){} 6964#ifdef __cplusplus 6965} 6966#endif 6967int main(){nm_test_var='a';nm_test_func();return(0);} 6968_LT_EOF 6969 6970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6971 (eval $ac_compile) 2>&5 6972 ac_status=$? 6973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6974 test $ac_status = 0; }; then 6975 # Now try to grab the symbols. 6976 nlist=conftest.nm 6977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6978 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6979 ac_status=$? 6980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6981 test $ac_status = 0; } && test -s "$nlist"; then 6982 # Try sorting and uniquifying the output. 6983 if sort "$nlist" | uniq > "$nlist"T; then 6984 mv -f "$nlist"T "$nlist" 6985 else 6986 rm -f "$nlist"T 6987 fi 6988 6989 # Make sure that we snagged all the symbols we need. 6990 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6991 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6992 cat <<_LT_EOF > conftest.$ac_ext 6993/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6994#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6995/* DATA imports from DLLs on WIN32 can't be const, because runtime 6996 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6997# define LT_DLSYM_CONST 6998#elif defined __osf__ 6999/* This system does not cope well with relocations in const data. */ 7000# define LT_DLSYM_CONST 7001#else 7002# define LT_DLSYM_CONST const 7003#endif 7004 7005#ifdef __cplusplus 7006extern "C" { 7007#endif 7008 7009_LT_EOF 7010 # Now generate the symbol file. 7011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7012 7013 cat <<_LT_EOF >> conftest.$ac_ext 7014 7015/* The mapping between symbol names and symbols. */ 7016LT_DLSYM_CONST struct { 7017 const char *name; 7018 void *address; 7019} 7020lt__PROGRAM__LTX_preloaded_symbols[] = 7021{ 7022 { "@PROGRAM@", (void *) 0 }, 7023_LT_EOF 7024 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7025 cat <<\_LT_EOF >> conftest.$ac_ext 7026 {0, (void *) 0} 7027}; 7028 7029/* This works around a problem in FreeBSD linker */ 7030#ifdef FREEBSD_WORKAROUND 7031static const void *lt_preloaded_setup() { 7032 return lt__PROGRAM__LTX_preloaded_symbols; 7033} 7034#endif 7035 7036#ifdef __cplusplus 7037} 7038#endif 7039_LT_EOF 7040 # Now try linking the two files. 7041 mv conftest.$ac_objext conftstm.$ac_objext 7042 lt_globsym_save_LIBS=$LIBS 7043 lt_globsym_save_CFLAGS=$CFLAGS 7044 LIBS=conftstm.$ac_objext 7045 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7047 (eval $ac_link) 2>&5 7048 ac_status=$? 7049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7050 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7051 pipe_works=yes 7052 fi 7053 LIBS=$lt_globsym_save_LIBS 7054 CFLAGS=$lt_globsym_save_CFLAGS 7055 else 7056 echo "cannot find nm_test_func in $nlist" >&5 7057 fi 7058 else 7059 echo "cannot find nm_test_var in $nlist" >&5 7060 fi 7061 else 7062 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7063 fi 7064 else 7065 echo "$progname: failed program was:" >&5 7066 cat conftest.$ac_ext >&5 7067 fi 7068 rm -rf conftest* conftst* 7069 7070 # Do not use the global_symbol_pipe unless it works. 7071 if test yes = "$pipe_works"; then 7072 break 7073 else 7074 lt_cv_sys_global_symbol_pipe= 7075 fi 7076done 7077 7078fi 7079 7080if test -z "$lt_cv_sys_global_symbol_pipe"; then 7081 lt_cv_sys_global_symbol_to_cdecl= 7082fi 7083if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7085printf "%s\n" "failed" >&6; } 7086else 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7088printf "%s\n" "ok" >&6; } 7089fi 7090 7091# Response file support. 7092if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7093 nm_file_list_spec='@' 7094elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7095 nm_file_list_spec='@' 7096fi 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7135printf %s "checking for sysroot... " >&6; } 7136 7137# Check whether --with-sysroot was given. 7138if test ${with_sysroot+y} 7139then : 7140 withval=$with_sysroot; 7141else $as_nop 7142 with_sysroot=no 7143fi 7144 7145 7146lt_sysroot= 7147case $with_sysroot in #( 7148 yes) 7149 if test yes = "$GCC"; then 7150 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7151 fi 7152 ;; #( 7153 /*) 7154 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7155 ;; #( 7156 no|'') 7157 ;; #( 7158 *) 7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7160printf "%s\n" "$with_sysroot" >&6; } 7161 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7162 ;; 7163esac 7164 7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7166printf "%s\n" "${lt_sysroot:-no}" >&6; } 7167 7168 7169 7170 7171 7172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7173printf %s "checking for a working dd... " >&6; } 7174if test ${ac_cv_path_lt_DD+y} 7175then : 7176 printf %s "(cached) " >&6 7177else $as_nop 7178 printf 0123456789abcdef0123456789abcdef >conftest.i 7179cat conftest.i conftest.i >conftest2.i 7180: ${lt_DD:=$DD} 7181if test -z "$lt_DD"; then 7182 ac_path_lt_DD_found=false 7183 # Loop through the user's path and test for each of PROGNAME-LIST 7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7185for as_dir in $PATH 7186do 7187 IFS=$as_save_IFS 7188 case $as_dir in #((( 7189 '') as_dir=./ ;; 7190 */) ;; 7191 *) as_dir=$as_dir/ ;; 7192 esac 7193 for ac_prog in dd 7194 do 7195 for ac_exec_ext in '' $ac_executable_extensions; do 7196 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7197 as_fn_executable_p "$ac_path_lt_DD" || continue 7198if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7199 cmp -s conftest.i conftest.out \ 7200 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7201fi 7202 $ac_path_lt_DD_found && break 3 7203 done 7204 done 7205 done 7206IFS=$as_save_IFS 7207 if test -z "$ac_cv_path_lt_DD"; then 7208 : 7209 fi 7210else 7211 ac_cv_path_lt_DD=$lt_DD 7212fi 7213 7214rm -f conftest.i conftest2.i conftest.out 7215fi 7216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7217printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7218 7219 7220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7221printf %s "checking how to truncate binary pipes... " >&6; } 7222if test ${lt_cv_truncate_bin+y} 7223then : 7224 printf %s "(cached) " >&6 7225else $as_nop 7226 printf 0123456789abcdef0123456789abcdef >conftest.i 7227cat conftest.i conftest.i >conftest2.i 7228lt_cv_truncate_bin= 7229if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7230 cmp -s conftest.i conftest.out \ 7231 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7232fi 7233rm -f conftest.i conftest2.i conftest.out 7234test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7235fi 7236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7237printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7238 7239 7240 7241 7242 7243 7244 7245# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7246func_cc_basename () 7247{ 7248 for cc_temp in $*""; do 7249 case $cc_temp in 7250 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7251 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7252 \-*) ;; 7253 *) break;; 7254 esac 7255 done 7256 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7257} 7258 7259# Check whether --enable-libtool-lock was given. 7260if test ${enable_libtool_lock+y} 7261then : 7262 enableval=$enable_libtool_lock; 7263fi 7264 7265test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7266 7267# Some flags need to be propagated to the compiler or linker for good 7268# libtool support. 7269case $host in 7270ia64-*-hpux*) 7271 # Find out what ABI is being produced by ac_compile, and set mode 7272 # options accordingly. 7273 echo 'int i;' > conftest.$ac_ext 7274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7275 (eval $ac_compile) 2>&5 7276 ac_status=$? 7277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7278 test $ac_status = 0; }; then 7279 case `$FILECMD conftest.$ac_objext` in 7280 *ELF-32*) 7281 HPUX_IA64_MODE=32 7282 ;; 7283 *ELF-64*) 7284 HPUX_IA64_MODE=64 7285 ;; 7286 esac 7287 fi 7288 rm -rf conftest* 7289 ;; 7290*-*-irix6*) 7291 # Find out what ABI is being produced by ac_compile, and set linker 7292 # options accordingly. 7293 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7295 (eval $ac_compile) 2>&5 7296 ac_status=$? 7297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7298 test $ac_status = 0; }; then 7299 if test yes = "$lt_cv_prog_gnu_ld"; then 7300 case `$FILECMD conftest.$ac_objext` in 7301 *32-bit*) 7302 LD="${LD-ld} -melf32bsmip" 7303 ;; 7304 *N32*) 7305 LD="${LD-ld} -melf32bmipn32" 7306 ;; 7307 *64-bit*) 7308 LD="${LD-ld} -melf64bmip" 7309 ;; 7310 esac 7311 else 7312 case `$FILECMD conftest.$ac_objext` in 7313 *32-bit*) 7314 LD="${LD-ld} -32" 7315 ;; 7316 *N32*) 7317 LD="${LD-ld} -n32" 7318 ;; 7319 *64-bit*) 7320 LD="${LD-ld} -64" 7321 ;; 7322 esac 7323 fi 7324 fi 7325 rm -rf conftest* 7326 ;; 7327 7328mips64*-*linux*) 7329 # Find out what ABI is being produced by ac_compile, and set linker 7330 # options accordingly. 7331 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7333 (eval $ac_compile) 2>&5 7334 ac_status=$? 7335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7336 test $ac_status = 0; }; then 7337 emul=elf 7338 case `$FILECMD conftest.$ac_objext` in 7339 *32-bit*) 7340 emul="${emul}32" 7341 ;; 7342 *64-bit*) 7343 emul="${emul}64" 7344 ;; 7345 esac 7346 case `$FILECMD conftest.$ac_objext` in 7347 *MSB*) 7348 emul="${emul}btsmip" 7349 ;; 7350 *LSB*) 7351 emul="${emul}ltsmip" 7352 ;; 7353 esac 7354 case `$FILECMD conftest.$ac_objext` in 7355 *N32*) 7356 emul="${emul}n32" 7357 ;; 7358 esac 7359 LD="${LD-ld} -m $emul" 7360 fi 7361 rm -rf conftest* 7362 ;; 7363 7364x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7365s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7366 # Find out what ABI is being produced by ac_compile, and set linker 7367 # options accordingly. Note that the listed cases only cover the 7368 # situations where additional linker options are needed (such as when 7369 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7370 # vice versa); the common cases where no linker options are needed do 7371 # not appear in the list. 7372 echo 'int i;' > conftest.$ac_ext 7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7374 (eval $ac_compile) 2>&5 7375 ac_status=$? 7376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7377 test $ac_status = 0; }; then 7378 case `$FILECMD conftest.o` in 7379 *32-bit*) 7380 case $host in 7381 x86_64-*kfreebsd*-gnu) 7382 LD="${LD-ld} -m elf_i386_fbsd" 7383 ;; 7384 x86_64-*linux*) 7385 case `$FILECMD conftest.o` in 7386 *x86-64*) 7387 LD="${LD-ld} -m elf32_x86_64" 7388 ;; 7389 *) 7390 LD="${LD-ld} -m elf_i386" 7391 ;; 7392 esac 7393 ;; 7394 powerpc64le-*linux*) 7395 LD="${LD-ld} -m elf32lppclinux" 7396 ;; 7397 powerpc64-*linux*) 7398 LD="${LD-ld} -m elf32ppclinux" 7399 ;; 7400 s390x-*linux*) 7401 LD="${LD-ld} -m elf_s390" 7402 ;; 7403 sparc64-*linux*) 7404 LD="${LD-ld} -m elf32_sparc" 7405 ;; 7406 esac 7407 ;; 7408 *64-bit*) 7409 case $host in 7410 x86_64-*kfreebsd*-gnu) 7411 LD="${LD-ld} -m elf_x86_64_fbsd" 7412 ;; 7413 x86_64-*linux*) 7414 LD="${LD-ld} -m elf_x86_64" 7415 ;; 7416 powerpcle-*linux*) 7417 LD="${LD-ld} -m elf64lppc" 7418 ;; 7419 powerpc-*linux*) 7420 LD="${LD-ld} -m elf64ppc" 7421 ;; 7422 s390*-*linux*|s390*-*tpf*) 7423 LD="${LD-ld} -m elf64_s390" 7424 ;; 7425 sparc*-*linux*) 7426 LD="${LD-ld} -m elf64_sparc" 7427 ;; 7428 esac 7429 ;; 7430 esac 7431 fi 7432 rm -rf conftest* 7433 ;; 7434 7435*-*-sco3.2v5*) 7436 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7437 SAVE_CFLAGS=$CFLAGS 7438 CFLAGS="$CFLAGS -belf" 7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7440printf %s "checking whether the C compiler needs -belf... " >&6; } 7441if test ${lt_cv_cc_needs_belf+y} 7442then : 7443 printf %s "(cached) " >&6 7444else $as_nop 7445 ac_ext=c 7446ac_cpp='$CPP $CPPFLAGS' 7447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7449ac_compiler_gnu=$ac_cv_c_compiler_gnu 7450 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452/* end confdefs.h. */ 7453 7454int 7455main (void) 7456{ 7457 7458 ; 7459 return 0; 7460} 7461_ACEOF 7462if ac_fn_c_try_link "$LINENO" 7463then : 7464 lt_cv_cc_needs_belf=yes 7465else $as_nop 7466 lt_cv_cc_needs_belf=no 7467fi 7468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7469 conftest$ac_exeext conftest.$ac_ext 7470 ac_ext=c 7471ac_cpp='$CPP $CPPFLAGS' 7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7474ac_compiler_gnu=$ac_cv_c_compiler_gnu 7475 7476fi 7477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7478printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7479 if test yes != "$lt_cv_cc_needs_belf"; then 7480 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7481 CFLAGS=$SAVE_CFLAGS 7482 fi 7483 ;; 7484*-*solaris*) 7485 # Find out what ABI is being produced by ac_compile, and set linker 7486 # options accordingly. 7487 echo 'int i;' > conftest.$ac_ext 7488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7489 (eval $ac_compile) 2>&5 7490 ac_status=$? 7491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7492 test $ac_status = 0; }; then 7493 case `$FILECMD conftest.o` in 7494 *64-bit*) 7495 case $lt_cv_prog_gnu_ld in 7496 yes*) 7497 case $host in 7498 i?86-*-solaris*|x86_64-*-solaris*) 7499 LD="${LD-ld} -m elf_x86_64" 7500 ;; 7501 sparc*-*-solaris*) 7502 LD="${LD-ld} -m elf64_sparc" 7503 ;; 7504 esac 7505 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7506 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7507 LD=${LD-ld}_sol2 7508 fi 7509 ;; 7510 *) 7511 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7512 LD="${LD-ld} -64" 7513 fi 7514 ;; 7515 esac 7516 ;; 7517 esac 7518 fi 7519 rm -rf conftest* 7520 ;; 7521esac 7522 7523need_locks=$enable_libtool_lock 7524 7525if test -n "$ac_tool_prefix"; then 7526 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7527set dummy ${ac_tool_prefix}mt; ac_word=$2 7528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7529printf %s "checking for $ac_word... " >&6; } 7530if test ${ac_cv_prog_MANIFEST_TOOL+y} 7531then : 7532 printf %s "(cached) " >&6 7533else $as_nop 7534 if test -n "$MANIFEST_TOOL"; then 7535 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7536else 7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7538for as_dir in $PATH 7539do 7540 IFS=$as_save_IFS 7541 case $as_dir in #((( 7542 '') as_dir=./ ;; 7543 */) ;; 7544 *) as_dir=$as_dir/ ;; 7545 esac 7546 for ac_exec_ext in '' $ac_executable_extensions; do 7547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7548 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7550 break 2 7551 fi 7552done 7553 done 7554IFS=$as_save_IFS 7555 7556fi 7557fi 7558MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7559if test -n "$MANIFEST_TOOL"; then 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7561printf "%s\n" "$MANIFEST_TOOL" >&6; } 7562else 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7564printf "%s\n" "no" >&6; } 7565fi 7566 7567 7568fi 7569if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7570 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7571 # Extract the first word of "mt", so it can be a program name with args. 7572set dummy mt; ac_word=$2 7573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7574printf %s "checking for $ac_word... " >&6; } 7575if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7576then : 7577 printf %s "(cached) " >&6 7578else $as_nop 7579 if test -n "$ac_ct_MANIFEST_TOOL"; then 7580 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7581else 7582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7583for as_dir in $PATH 7584do 7585 IFS=$as_save_IFS 7586 case $as_dir in #((( 7587 '') as_dir=./ ;; 7588 */) ;; 7589 *) as_dir=$as_dir/ ;; 7590 esac 7591 for ac_exec_ext in '' $ac_executable_extensions; do 7592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7593 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7595 break 2 7596 fi 7597done 7598 done 7599IFS=$as_save_IFS 7600 7601fi 7602fi 7603ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7604if test -n "$ac_ct_MANIFEST_TOOL"; then 7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7606printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7607else 7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7609printf "%s\n" "no" >&6; } 7610fi 7611 7612 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7613 MANIFEST_TOOL=":" 7614 else 7615 case $cross_compiling:$ac_tool_warned in 7616yes:) 7617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7618printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7619ac_tool_warned=yes ;; 7620esac 7621 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7622 fi 7623else 7624 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7625fi 7626 7627test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7629printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7630if test ${lt_cv_path_mainfest_tool+y} 7631then : 7632 printf %s "(cached) " >&6 7633else $as_nop 7634 lt_cv_path_mainfest_tool=no 7635 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7636 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7637 cat conftest.err >&5 7638 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7639 lt_cv_path_mainfest_tool=yes 7640 fi 7641 rm -f conftest* 7642fi 7643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7644printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7645if test yes != "$lt_cv_path_mainfest_tool"; then 7646 MANIFEST_TOOL=: 7647fi 7648 7649 7650 7651 7652 7653 7654 case $host_os in 7655 rhapsody* | darwin*) 7656 if test -n "$ac_tool_prefix"; then 7657 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7658set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7660printf %s "checking for $ac_word... " >&6; } 7661if test ${ac_cv_prog_DSYMUTIL+y} 7662then : 7663 printf %s "(cached) " >&6 7664else $as_nop 7665 if test -n "$DSYMUTIL"; then 7666 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7667else 7668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7669for as_dir in $PATH 7670do 7671 IFS=$as_save_IFS 7672 case $as_dir in #((( 7673 '') as_dir=./ ;; 7674 */) ;; 7675 *) as_dir=$as_dir/ ;; 7676 esac 7677 for ac_exec_ext in '' $ac_executable_extensions; do 7678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7679 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7681 break 2 7682 fi 7683done 7684 done 7685IFS=$as_save_IFS 7686 7687fi 7688fi 7689DSYMUTIL=$ac_cv_prog_DSYMUTIL 7690if test -n "$DSYMUTIL"; then 7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7692printf "%s\n" "$DSYMUTIL" >&6; } 7693else 7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7695printf "%s\n" "no" >&6; } 7696fi 7697 7698 7699fi 7700if test -z "$ac_cv_prog_DSYMUTIL"; then 7701 ac_ct_DSYMUTIL=$DSYMUTIL 7702 # Extract the first word of "dsymutil", so it can be a program name with args. 7703set dummy dsymutil; ac_word=$2 7704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7705printf %s "checking for $ac_word... " >&6; } 7706if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7707then : 7708 printf %s "(cached) " >&6 7709else $as_nop 7710 if test -n "$ac_ct_DSYMUTIL"; then 7711 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7712else 7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7714for as_dir in $PATH 7715do 7716 IFS=$as_save_IFS 7717 case $as_dir in #((( 7718 '') as_dir=./ ;; 7719 */) ;; 7720 *) as_dir=$as_dir/ ;; 7721 esac 7722 for ac_exec_ext in '' $ac_executable_extensions; do 7723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7726 break 2 7727 fi 7728done 7729 done 7730IFS=$as_save_IFS 7731 7732fi 7733fi 7734ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7735if test -n "$ac_ct_DSYMUTIL"; then 7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7737printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7738else 7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7740printf "%s\n" "no" >&6; } 7741fi 7742 7743 if test "x$ac_ct_DSYMUTIL" = x; then 7744 DSYMUTIL=":" 7745 else 7746 case $cross_compiling:$ac_tool_warned in 7747yes:) 7748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7749printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7750ac_tool_warned=yes ;; 7751esac 7752 DSYMUTIL=$ac_ct_DSYMUTIL 7753 fi 7754else 7755 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7756fi 7757 7758 if test -n "$ac_tool_prefix"; then 7759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7760set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7762printf %s "checking for $ac_word... " >&6; } 7763if test ${ac_cv_prog_NMEDIT+y} 7764then : 7765 printf %s "(cached) " >&6 7766else $as_nop 7767 if test -n "$NMEDIT"; then 7768 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7769else 7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7771for as_dir in $PATH 7772do 7773 IFS=$as_save_IFS 7774 case $as_dir in #((( 7775 '') as_dir=./ ;; 7776 */) ;; 7777 *) as_dir=$as_dir/ ;; 7778 esac 7779 for ac_exec_ext in '' $ac_executable_extensions; do 7780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7781 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7783 break 2 7784 fi 7785done 7786 done 7787IFS=$as_save_IFS 7788 7789fi 7790fi 7791NMEDIT=$ac_cv_prog_NMEDIT 7792if test -n "$NMEDIT"; then 7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7794printf "%s\n" "$NMEDIT" >&6; } 7795else 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797printf "%s\n" "no" >&6; } 7798fi 7799 7800 7801fi 7802if test -z "$ac_cv_prog_NMEDIT"; then 7803 ac_ct_NMEDIT=$NMEDIT 7804 # Extract the first word of "nmedit", so it can be a program name with args. 7805set dummy nmedit; ac_word=$2 7806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7807printf %s "checking for $ac_word... " >&6; } 7808if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7809then : 7810 printf %s "(cached) " >&6 7811else $as_nop 7812 if test -n "$ac_ct_NMEDIT"; then 7813 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7814else 7815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7816for as_dir in $PATH 7817do 7818 IFS=$as_save_IFS 7819 case $as_dir in #((( 7820 '') as_dir=./ ;; 7821 */) ;; 7822 *) as_dir=$as_dir/ ;; 7823 esac 7824 for ac_exec_ext in '' $ac_executable_extensions; do 7825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7826 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7828 break 2 7829 fi 7830done 7831 done 7832IFS=$as_save_IFS 7833 7834fi 7835fi 7836ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7837if test -n "$ac_ct_NMEDIT"; then 7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7839printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7840else 7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7842printf "%s\n" "no" >&6; } 7843fi 7844 7845 if test "x$ac_ct_NMEDIT" = x; then 7846 NMEDIT=":" 7847 else 7848 case $cross_compiling:$ac_tool_warned in 7849yes:) 7850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7851printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7852ac_tool_warned=yes ;; 7853esac 7854 NMEDIT=$ac_ct_NMEDIT 7855 fi 7856else 7857 NMEDIT="$ac_cv_prog_NMEDIT" 7858fi 7859 7860 if test -n "$ac_tool_prefix"; then 7861 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7862set dummy ${ac_tool_prefix}lipo; ac_word=$2 7863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7864printf %s "checking for $ac_word... " >&6; } 7865if test ${ac_cv_prog_LIPO+y} 7866then : 7867 printf %s "(cached) " >&6 7868else $as_nop 7869 if test -n "$LIPO"; then 7870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7871else 7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7873for as_dir in $PATH 7874do 7875 IFS=$as_save_IFS 7876 case $as_dir in #((( 7877 '') as_dir=./ ;; 7878 */) ;; 7879 *) as_dir=$as_dir/ ;; 7880 esac 7881 for ac_exec_ext in '' $ac_executable_extensions; do 7882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7883 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7885 break 2 7886 fi 7887done 7888 done 7889IFS=$as_save_IFS 7890 7891fi 7892fi 7893LIPO=$ac_cv_prog_LIPO 7894if test -n "$LIPO"; then 7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7896printf "%s\n" "$LIPO" >&6; } 7897else 7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7899printf "%s\n" "no" >&6; } 7900fi 7901 7902 7903fi 7904if test -z "$ac_cv_prog_LIPO"; then 7905 ac_ct_LIPO=$LIPO 7906 # Extract the first word of "lipo", so it can be a program name with args. 7907set dummy lipo; ac_word=$2 7908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7909printf %s "checking for $ac_word... " >&6; } 7910if test ${ac_cv_prog_ac_ct_LIPO+y} 7911then : 7912 printf %s "(cached) " >&6 7913else $as_nop 7914 if test -n "$ac_ct_LIPO"; then 7915 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7916else 7917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7918for as_dir in $PATH 7919do 7920 IFS=$as_save_IFS 7921 case $as_dir in #((( 7922 '') as_dir=./ ;; 7923 */) ;; 7924 *) as_dir=$as_dir/ ;; 7925 esac 7926 for ac_exec_ext in '' $ac_executable_extensions; do 7927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7928 ac_cv_prog_ac_ct_LIPO="lipo" 7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7930 break 2 7931 fi 7932done 7933 done 7934IFS=$as_save_IFS 7935 7936fi 7937fi 7938ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7939if test -n "$ac_ct_LIPO"; then 7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7941printf "%s\n" "$ac_ct_LIPO" >&6; } 7942else 7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7944printf "%s\n" "no" >&6; } 7945fi 7946 7947 if test "x$ac_ct_LIPO" = x; then 7948 LIPO=":" 7949 else 7950 case $cross_compiling:$ac_tool_warned in 7951yes:) 7952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7953printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7954ac_tool_warned=yes ;; 7955esac 7956 LIPO=$ac_ct_LIPO 7957 fi 7958else 7959 LIPO="$ac_cv_prog_LIPO" 7960fi 7961 7962 if test -n "$ac_tool_prefix"; then 7963 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7964set dummy ${ac_tool_prefix}otool; ac_word=$2 7965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7966printf %s "checking for $ac_word... " >&6; } 7967if test ${ac_cv_prog_OTOOL+y} 7968then : 7969 printf %s "(cached) " >&6 7970else $as_nop 7971 if test -n "$OTOOL"; then 7972 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7973else 7974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7975for as_dir in $PATH 7976do 7977 IFS=$as_save_IFS 7978 case $as_dir in #((( 7979 '') as_dir=./ ;; 7980 */) ;; 7981 *) as_dir=$as_dir/ ;; 7982 esac 7983 for ac_exec_ext in '' $ac_executable_extensions; do 7984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7985 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7987 break 2 7988 fi 7989done 7990 done 7991IFS=$as_save_IFS 7992 7993fi 7994fi 7995OTOOL=$ac_cv_prog_OTOOL 7996if test -n "$OTOOL"; then 7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7998printf "%s\n" "$OTOOL" >&6; } 7999else 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8001printf "%s\n" "no" >&6; } 8002fi 8003 8004 8005fi 8006if test -z "$ac_cv_prog_OTOOL"; then 8007 ac_ct_OTOOL=$OTOOL 8008 # Extract the first word of "otool", so it can be a program name with args. 8009set dummy otool; ac_word=$2 8010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8011printf %s "checking for $ac_word... " >&6; } 8012if test ${ac_cv_prog_ac_ct_OTOOL+y} 8013then : 8014 printf %s "(cached) " >&6 8015else $as_nop 8016 if test -n "$ac_ct_OTOOL"; then 8017 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8018else 8019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8020for as_dir in $PATH 8021do 8022 IFS=$as_save_IFS 8023 case $as_dir in #((( 8024 '') as_dir=./ ;; 8025 */) ;; 8026 *) as_dir=$as_dir/ ;; 8027 esac 8028 for ac_exec_ext in '' $ac_executable_extensions; do 8029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8030 ac_cv_prog_ac_ct_OTOOL="otool" 8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8032 break 2 8033 fi 8034done 8035 done 8036IFS=$as_save_IFS 8037 8038fi 8039fi 8040ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8041if test -n "$ac_ct_OTOOL"; then 8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8043printf "%s\n" "$ac_ct_OTOOL" >&6; } 8044else 8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8046printf "%s\n" "no" >&6; } 8047fi 8048 8049 if test "x$ac_ct_OTOOL" = x; then 8050 OTOOL=":" 8051 else 8052 case $cross_compiling:$ac_tool_warned in 8053yes:) 8054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8055printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8056ac_tool_warned=yes ;; 8057esac 8058 OTOOL=$ac_ct_OTOOL 8059 fi 8060else 8061 OTOOL="$ac_cv_prog_OTOOL" 8062fi 8063 8064 if test -n "$ac_tool_prefix"; then 8065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8066set dummy ${ac_tool_prefix}otool64; ac_word=$2 8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8068printf %s "checking for $ac_word... " >&6; } 8069if test ${ac_cv_prog_OTOOL64+y} 8070then : 8071 printf %s "(cached) " >&6 8072else $as_nop 8073 if test -n "$OTOOL64"; then 8074 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8075else 8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8077for as_dir in $PATH 8078do 8079 IFS=$as_save_IFS 8080 case $as_dir in #((( 8081 '') as_dir=./ ;; 8082 */) ;; 8083 *) as_dir=$as_dir/ ;; 8084 esac 8085 for ac_exec_ext in '' $ac_executable_extensions; do 8086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8087 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8089 break 2 8090 fi 8091done 8092 done 8093IFS=$as_save_IFS 8094 8095fi 8096fi 8097OTOOL64=$ac_cv_prog_OTOOL64 8098if test -n "$OTOOL64"; then 8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8100printf "%s\n" "$OTOOL64" >&6; } 8101else 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8103printf "%s\n" "no" >&6; } 8104fi 8105 8106 8107fi 8108if test -z "$ac_cv_prog_OTOOL64"; then 8109 ac_ct_OTOOL64=$OTOOL64 8110 # Extract the first word of "otool64", so it can be a program name with args. 8111set dummy otool64; ac_word=$2 8112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8113printf %s "checking for $ac_word... " >&6; } 8114if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8115then : 8116 printf %s "(cached) " >&6 8117else $as_nop 8118 if test -n "$ac_ct_OTOOL64"; then 8119 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8120else 8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8122for as_dir in $PATH 8123do 8124 IFS=$as_save_IFS 8125 case $as_dir in #((( 8126 '') as_dir=./ ;; 8127 */) ;; 8128 *) as_dir=$as_dir/ ;; 8129 esac 8130 for ac_exec_ext in '' $ac_executable_extensions; do 8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8132 ac_cv_prog_ac_ct_OTOOL64="otool64" 8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8134 break 2 8135 fi 8136done 8137 done 8138IFS=$as_save_IFS 8139 8140fi 8141fi 8142ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8143if test -n "$ac_ct_OTOOL64"; then 8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8145printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8146else 8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8148printf "%s\n" "no" >&6; } 8149fi 8150 8151 if test "x$ac_ct_OTOOL64" = x; then 8152 OTOOL64=":" 8153 else 8154 case $cross_compiling:$ac_tool_warned in 8155yes:) 8156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8157printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8158ac_tool_warned=yes ;; 8159esac 8160 OTOOL64=$ac_ct_OTOOL64 8161 fi 8162else 8163 OTOOL64="$ac_cv_prog_OTOOL64" 8164fi 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8193printf %s "checking for -single_module linker flag... " >&6; } 8194if test ${lt_cv_apple_cc_single_mod+y} 8195then : 8196 printf %s "(cached) " >&6 8197else $as_nop 8198 lt_cv_apple_cc_single_mod=no 8199 if test -z "$LT_MULTI_MODULE"; then 8200 # By default we will add the -single_module flag. You can override 8201 # by either setting the environment variable LT_MULTI_MODULE 8202 # non-empty at configure time, or by adding -multi_module to the 8203 # link flags. 8204 rm -rf libconftest.dylib* 8205 echo "int foo(void){return 1;}" > conftest.c 8206 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8207-dynamiclib -Wl,-single_module conftest.c" >&5 8208 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8209 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8210 _lt_result=$? 8211 # If there is a non-empty error log, and "single_module" 8212 # appears in it, assume the flag caused a linker warning 8213 if test -s conftest.err && $GREP single_module conftest.err; then 8214 cat conftest.err >&5 8215 # Otherwise, if the output was created with a 0 exit code from 8216 # the compiler, it worked. 8217 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8218 lt_cv_apple_cc_single_mod=yes 8219 else 8220 cat conftest.err >&5 8221 fi 8222 rm -rf libconftest.dylib* 8223 rm -f conftest.* 8224 fi 8225fi 8226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8227printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8228 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8230printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8231if test ${lt_cv_ld_exported_symbols_list+y} 8232then : 8233 printf %s "(cached) " >&6 8234else $as_nop 8235 lt_cv_ld_exported_symbols_list=no 8236 save_LDFLAGS=$LDFLAGS 8237 echo "_main" > conftest.sym 8238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8240/* end confdefs.h. */ 8241 8242int 8243main (void) 8244{ 8245 8246 ; 8247 return 0; 8248} 8249_ACEOF 8250if ac_fn_c_try_link "$LINENO" 8251then : 8252 lt_cv_ld_exported_symbols_list=yes 8253else $as_nop 8254 lt_cv_ld_exported_symbols_list=no 8255fi 8256rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8257 conftest$ac_exeext conftest.$ac_ext 8258 LDFLAGS=$save_LDFLAGS 8259 8260fi 8261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8262printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8263 8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8265printf %s "checking for -force_load linker flag... " >&6; } 8266if test ${lt_cv_ld_force_load+y} 8267then : 8268 printf %s "(cached) " >&6 8269else $as_nop 8270 lt_cv_ld_force_load=no 8271 cat > conftest.c << _LT_EOF 8272int forced_loaded() { return 2;} 8273_LT_EOF 8274 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8275 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8276 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8277 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8278 echo "$RANLIB libconftest.a" >&5 8279 $RANLIB libconftest.a 2>&5 8280 cat > conftest.c << _LT_EOF 8281int main() { return 0;} 8282_LT_EOF 8283 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8284 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8285 _lt_result=$? 8286 if test -s conftest.err && $GREP force_load conftest.err; then 8287 cat conftest.err >&5 8288 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8289 lt_cv_ld_force_load=yes 8290 else 8291 cat conftest.err >&5 8292 fi 8293 rm -f conftest.err libconftest.a conftest conftest.c 8294 rm -rf conftest.dSYM 8295 8296fi 8297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8298printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8299 case $host_os in 8300 rhapsody* | darwin1.[012]) 8301 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8302 darwin1.*) 8303 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8304 darwin*) 8305 case $MACOSX_DEPLOYMENT_TARGET,$host in 8306 10.[012],*|,*powerpc*-darwin[5-8]*) 8307 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8308 *) 8309 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8310 esac 8311 ;; 8312 esac 8313 if test yes = "$lt_cv_apple_cc_single_mod"; then 8314 _lt_dar_single_mod='$single_module' 8315 fi 8316 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8317 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8318 else 8319 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8320 fi 8321 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8322 _lt_dsymutil='~$DSYMUTIL $lib || :' 8323 else 8324 _lt_dsymutil= 8325 fi 8326 ;; 8327 esac 8328 8329# func_munge_path_list VARIABLE PATH 8330# ----------------------------------- 8331# VARIABLE is name of variable containing _space_ separated list of 8332# directories to be munged by the contents of PATH, which is string 8333# having a format: 8334# "DIR[:DIR]:" 8335# string "DIR[ DIR]" will be prepended to VARIABLE 8336# ":DIR[:DIR]" 8337# string "DIR[ DIR]" will be appended to VARIABLE 8338# "DIRP[:DIRP]::[DIRA:]DIRA" 8339# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8340# "DIRA[ DIRA]" will be appended to VARIABLE 8341# "DIR[:DIR]" 8342# VARIABLE will be replaced by "DIR[ DIR]" 8343func_munge_path_list () 8344{ 8345 case x$2 in 8346 x) 8347 ;; 8348 *:) 8349 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8350 ;; 8351 x:*) 8352 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8353 ;; 8354 *::*) 8355 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8356 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8357 ;; 8358 *) 8359 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8360 ;; 8361 esac 8362} 8363 8364ac_header= ac_cache= 8365for ac_item in $ac_header_c_list 8366do 8367 if test $ac_cache; then 8368 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8369 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8370 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8371 fi 8372 ac_header= ac_cache= 8373 elif test $ac_header; then 8374 ac_cache=$ac_item 8375 else 8376 ac_header=$ac_item 8377 fi 8378done 8379 8380 8381 8382 8383 8384 8385 8386 8387if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8388then : 8389 8390printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8391 8392fi 8393ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8394" 8395if test "x$ac_cv_header_dlfcn_h" = xyes 8396then : 8397 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8398 8399fi 8400 8401 8402 8403 8404 8405# Set options 8406 8407 8408 8409 enable_dlopen=no 8410 8411 8412 enable_win32_dll=no 8413 8414 8415 # Check whether --enable-shared was given. 8416if test ${enable_shared+y} 8417then : 8418 enableval=$enable_shared; p=${PACKAGE-default} 8419 case $enableval in 8420 yes) enable_shared=yes ;; 8421 no) enable_shared=no ;; 8422 *) 8423 enable_shared=no 8424 # Look at the argument we got. We use all the common list separators. 8425 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8426 for pkg in $enableval; do 8427 IFS=$lt_save_ifs 8428 if test "X$pkg" = "X$p"; then 8429 enable_shared=yes 8430 fi 8431 done 8432 IFS=$lt_save_ifs 8433 ;; 8434 esac 8435else $as_nop 8436 enable_shared=yes 8437fi 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449# Check whether --with-pic was given. 8450if test ${with_pic+y} 8451then : 8452 withval=$with_pic; lt_p=${PACKAGE-default} 8453 case $withval in 8454 yes|no) pic_mode=$withval ;; 8455 *) 8456 pic_mode=default 8457 # Look at the argument we got. We use all the common list separators. 8458 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8459 for lt_pkg in $withval; do 8460 IFS=$lt_save_ifs 8461 if test "X$lt_pkg" = "X$lt_p"; then 8462 pic_mode=yes 8463 fi 8464 done 8465 IFS=$lt_save_ifs 8466 ;; 8467 esac 8468else $as_nop 8469 pic_mode=default 8470fi 8471 8472 8473 8474 8475 8476 8477 8478 8479 # Check whether --enable-fast-install was given. 8480if test ${enable_fast_install+y} 8481then : 8482 enableval=$enable_fast_install; p=${PACKAGE-default} 8483 case $enableval in 8484 yes) enable_fast_install=yes ;; 8485 no) enable_fast_install=no ;; 8486 *) 8487 enable_fast_install=no 8488 # Look at the argument we got. We use all the common list separators. 8489 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8490 for pkg in $enableval; do 8491 IFS=$lt_save_ifs 8492 if test "X$pkg" = "X$p"; then 8493 enable_fast_install=yes 8494 fi 8495 done 8496 IFS=$lt_save_ifs 8497 ;; 8498 esac 8499else $as_nop 8500 enable_fast_install=yes 8501fi 8502 8503 8504 8505 8506 8507 8508 8509 8510 shared_archive_member_spec= 8511case $host,$enable_shared in 8512power*-*-aix[5-9]*,yes) 8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8514printf %s "checking which variant of shared library versioning to provide... " >&6; } 8515 8516# Check whether --with-aix-soname was given. 8517if test ${with_aix_soname+y} 8518then : 8519 withval=$with_aix_soname; case $withval in 8520 aix|svr4|both) 8521 ;; 8522 *) 8523 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8524 ;; 8525 esac 8526 lt_cv_with_aix_soname=$with_aix_soname 8527else $as_nop 8528 if test ${lt_cv_with_aix_soname+y} 8529then : 8530 printf %s "(cached) " >&6 8531else $as_nop 8532 lt_cv_with_aix_soname=aix 8533fi 8534 8535 with_aix_soname=$lt_cv_with_aix_soname 8536fi 8537 8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8539printf "%s\n" "$with_aix_soname" >&6; } 8540 if test aix != "$with_aix_soname"; then 8541 # For the AIX way of multilib, we name the shared archive member 8542 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8543 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8544 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8545 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8546 if test 64 = "${OBJECT_MODE-32}"; then 8547 shared_archive_member_spec=shr_64 8548 else 8549 shared_archive_member_spec=shr 8550 fi 8551 fi 8552 ;; 8553*) 8554 with_aix_soname=aix 8555 ;; 8556esac 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567# This can be used to rebuild libtool when needed 8568LIBTOOL_DEPS=$ltmain 8569 8570# Always use our own libtool. 8571LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602test -z "$LN_S" && LN_S="ln -s" 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617if test -n "${ZSH_VERSION+set}"; then 8618 setopt NO_GLOB_SUBST 8619fi 8620 8621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8622printf %s "checking for objdir... " >&6; } 8623if test ${lt_cv_objdir+y} 8624then : 8625 printf %s "(cached) " >&6 8626else $as_nop 8627 rm -f .libs 2>/dev/null 8628mkdir .libs 2>/dev/null 8629if test -d .libs; then 8630 lt_cv_objdir=.libs 8631else 8632 # MS-DOS does not allow filenames that begin with a dot. 8633 lt_cv_objdir=_libs 8634fi 8635rmdir .libs 2>/dev/null 8636fi 8637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8638printf "%s\n" "$lt_cv_objdir" >&6; } 8639objdir=$lt_cv_objdir 8640 8641 8642 8643 8644 8645printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8646 8647 8648 8649 8650case $host_os in 8651aix3*) 8652 # AIX sometimes has problems with the GCC collect2 program. For some 8653 # reason, if we set the COLLECT_NAMES environment variable, the problems 8654 # vanish in a puff of smoke. 8655 if test set != "${COLLECT_NAMES+set}"; then 8656 COLLECT_NAMES= 8657 export COLLECT_NAMES 8658 fi 8659 ;; 8660esac 8661 8662# Global variables: 8663ofile=libtool 8664can_build_shared=yes 8665 8666# All known linkers require a '.a' archive for static linking (except MSVC and 8667# ICC, which need '.lib'). 8668libext=a 8669 8670with_gnu_ld=$lt_cv_prog_gnu_ld 8671 8672old_CC=$CC 8673old_CFLAGS=$CFLAGS 8674 8675# Set sane defaults for various variables 8676test -z "$CC" && CC=cc 8677test -z "$LTCC" && LTCC=$CC 8678test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8679test -z "$LD" && LD=ld 8680test -z "$ac_objext" && ac_objext=o 8681 8682func_cc_basename $compiler 8683cc_basename=$func_cc_basename_result 8684 8685 8686# Only perform the check for file, if the check method requires it 8687test -z "$MAGIC_CMD" && MAGIC_CMD=file 8688case $deplibs_check_method in 8689file_magic*) 8690 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8692printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8693if test ${lt_cv_path_MAGIC_CMD+y} 8694then : 8695 printf %s "(cached) " >&6 8696else $as_nop 8697 case $MAGIC_CMD in 8698[\\/*] | ?:[\\/]*) 8699 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8700 ;; 8701*) 8702 lt_save_MAGIC_CMD=$MAGIC_CMD 8703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8704 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8705 for ac_dir in $ac_dummy; do 8706 IFS=$lt_save_ifs 8707 test -z "$ac_dir" && ac_dir=. 8708 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8709 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8710 if test -n "$file_magic_test_file"; then 8711 case $deplibs_check_method in 8712 "file_magic "*) 8713 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8714 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8715 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8716 $EGREP "$file_magic_regex" > /dev/null; then 8717 : 8718 else 8719 cat <<_LT_EOF 1>&2 8720 8721*** Warning: the command libtool uses to detect shared libraries, 8722*** $file_magic_cmd, produces output that libtool cannot recognize. 8723*** The result is that libtool may fail to recognize shared libraries 8724*** as such. This will affect the creation of libtool libraries that 8725*** depend on shared libraries, but programs linked with such libtool 8726*** libraries will work regardless of this problem. Nevertheless, you 8727*** may want to report the problem to your system manager and/or to 8728*** bug-libtool@gnu.org 8729 8730_LT_EOF 8731 fi ;; 8732 esac 8733 fi 8734 break 8735 fi 8736 done 8737 IFS=$lt_save_ifs 8738 MAGIC_CMD=$lt_save_MAGIC_CMD 8739 ;; 8740esac 8741fi 8742 8743MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8744if test -n "$MAGIC_CMD"; then 8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8746printf "%s\n" "$MAGIC_CMD" >&6; } 8747else 8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8749printf "%s\n" "no" >&6; } 8750fi 8751 8752 8753 8754 8755 8756if test -z "$lt_cv_path_MAGIC_CMD"; then 8757 if test -n "$ac_tool_prefix"; then 8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8759printf %s "checking for file... " >&6; } 8760if test ${lt_cv_path_MAGIC_CMD+y} 8761then : 8762 printf %s "(cached) " >&6 8763else $as_nop 8764 case $MAGIC_CMD in 8765[\\/*] | ?:[\\/]*) 8766 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8767 ;; 8768*) 8769 lt_save_MAGIC_CMD=$MAGIC_CMD 8770 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8772 for ac_dir in $ac_dummy; do 8773 IFS=$lt_save_ifs 8774 test -z "$ac_dir" && ac_dir=. 8775 if test -f "$ac_dir/file"; then 8776 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8777 if test -n "$file_magic_test_file"; then 8778 case $deplibs_check_method in 8779 "file_magic "*) 8780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8781 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8783 $EGREP "$file_magic_regex" > /dev/null; then 8784 : 8785 else 8786 cat <<_LT_EOF 1>&2 8787 8788*** Warning: the command libtool uses to detect shared libraries, 8789*** $file_magic_cmd, produces output that libtool cannot recognize. 8790*** The result is that libtool may fail to recognize shared libraries 8791*** as such. This will affect the creation of libtool libraries that 8792*** depend on shared libraries, but programs linked with such libtool 8793*** libraries will work regardless of this problem. Nevertheless, you 8794*** may want to report the problem to your system manager and/or to 8795*** bug-libtool@gnu.org 8796 8797_LT_EOF 8798 fi ;; 8799 esac 8800 fi 8801 break 8802 fi 8803 done 8804 IFS=$lt_save_ifs 8805 MAGIC_CMD=$lt_save_MAGIC_CMD 8806 ;; 8807esac 8808fi 8809 8810MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8811if test -n "$MAGIC_CMD"; then 8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8813printf "%s\n" "$MAGIC_CMD" >&6; } 8814else 8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8816printf "%s\n" "no" >&6; } 8817fi 8818 8819 8820 else 8821 MAGIC_CMD=: 8822 fi 8823fi 8824 8825 fi 8826 ;; 8827esac 8828 8829# Use C for the default configuration in the libtool script 8830 8831lt_save_CC=$CC 8832ac_ext=c 8833ac_cpp='$CPP $CPPFLAGS' 8834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8836ac_compiler_gnu=$ac_cv_c_compiler_gnu 8837 8838 8839# Source file extension for C test sources. 8840ac_ext=c 8841 8842# Object file extension for compiled C test sources. 8843objext=o 8844objext=$objext 8845 8846# Code to be used in simple compile tests 8847lt_simple_compile_test_code="int some_variable = 0;" 8848 8849# Code to be used in simple link tests 8850lt_simple_link_test_code='int main(){return(0);}' 8851 8852 8853 8854 8855 8856 8857 8858# If no C compiler was specified, use CC. 8859LTCC=${LTCC-"$CC"} 8860 8861# If no C compiler flags were specified, use CFLAGS. 8862LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8863 8864# Allow CC to be a program name with arguments. 8865compiler=$CC 8866 8867# Save the default compiler, since it gets overwritten when the other 8868# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8869compiler_DEFAULT=$CC 8870 8871# save warnings/boilerplate of simple test code 8872ac_outfile=conftest.$ac_objext 8873echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8874eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8875_lt_compiler_boilerplate=`cat conftest.err` 8876$RM conftest* 8877 8878ac_outfile=conftest.$ac_objext 8879echo "$lt_simple_link_test_code" >conftest.$ac_ext 8880eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8881_lt_linker_boilerplate=`cat conftest.err` 8882$RM -r conftest* 8883 8884 8885## CAVEAT EMPTOR: 8886## There is no encapsulation within the following macros, do not change 8887## the running order or otherwise move them around unless you know exactly 8888## what you are doing... 8889if test -n "$compiler"; then 8890 8891lt_prog_compiler_no_builtin_flag= 8892 8893if test yes = "$GCC"; then 8894 case $cc_basename in 8895 nvcc*) 8896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8897 *) 8898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8899 esac 8900 8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8902printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8903if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8904then : 8905 printf %s "(cached) " >&6 8906else $as_nop 8907 lt_cv_prog_compiler_rtti_exceptions=no 8908 ac_outfile=conftest.$ac_objext 8909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8910 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8911 # Insert the option either (1) after the last *FLAGS variable, or 8912 # (2) before a word containing "conftest.", or (3) at the end. 8913 # Note that $ac_compile itself does not contain backslashes and begins 8914 # with a dollar sign (not a hyphen), so the echo should work correctly. 8915 # The option is referenced via a variable to avoid confusing sed. 8916 lt_compile=`echo "$ac_compile" | $SED \ 8917 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8918 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8919 -e 's:$: $lt_compiler_flag:'` 8920 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8921 (eval "$lt_compile" 2>conftest.err) 8922 ac_status=$? 8923 cat conftest.err >&5 8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8925 if (exit $ac_status) && test -s "$ac_outfile"; then 8926 # The compiler can only warn and ignore the option if not recognized 8927 # So say no if there are warnings other than the usual output. 8928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8929 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8930 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8931 lt_cv_prog_compiler_rtti_exceptions=yes 8932 fi 8933 fi 8934 $RM conftest* 8935 8936fi 8937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8938printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8939 8940if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8941 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8942else 8943 : 8944fi 8945 8946fi 8947 8948 8949 8950 8951 8952 8953 lt_prog_compiler_wl= 8954lt_prog_compiler_pic= 8955lt_prog_compiler_static= 8956 8957 8958 if test yes = "$GCC"; then 8959 lt_prog_compiler_wl='-Wl,' 8960 lt_prog_compiler_static='-static' 8961 8962 case $host_os in 8963 aix*) 8964 # All AIX code is PIC. 8965 if test ia64 = "$host_cpu"; then 8966 # AIX 5 now supports IA64 processor 8967 lt_prog_compiler_static='-Bstatic' 8968 fi 8969 lt_prog_compiler_pic='-fPIC' 8970 ;; 8971 8972 amigaos*) 8973 case $host_cpu in 8974 powerpc) 8975 # see comment about AmigaOS4 .so support 8976 lt_prog_compiler_pic='-fPIC' 8977 ;; 8978 m68k) 8979 # FIXME: we need at least 68020 code to build shared libraries, but 8980 # adding the '-m68020' flag to GCC prevents building anything better, 8981 # like '-m68040'. 8982 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8983 ;; 8984 esac 8985 ;; 8986 8987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8988 # PIC is the default for these OSes. 8989 ;; 8990 8991 mingw* | cygwin* | pw32* | os2* | cegcc*) 8992 # This hack is so that the source file can tell whether it is being 8993 # built for inclusion in a dll (and should export symbols for example). 8994 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8995 # (--disable-auto-import) libraries 8996 lt_prog_compiler_pic='-DDLL_EXPORT' 8997 case $host_os in 8998 os2*) 8999 lt_prog_compiler_static='$wl-static' 9000 ;; 9001 esac 9002 ;; 9003 9004 darwin* | rhapsody*) 9005 # PIC is the default on this platform 9006 # Common symbols not allowed in MH_DYLIB files 9007 lt_prog_compiler_pic='-fno-common' 9008 ;; 9009 9010 haiku*) 9011 # PIC is the default for Haiku. 9012 # The "-static" flag exists, but is broken. 9013 lt_prog_compiler_static= 9014 ;; 9015 9016 hpux*) 9017 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9018 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9019 # sets the default TLS model and affects inlining. 9020 case $host_cpu in 9021 hppa*64*) 9022 # +Z the default 9023 ;; 9024 *) 9025 lt_prog_compiler_pic='-fPIC' 9026 ;; 9027 esac 9028 ;; 9029 9030 interix[3-9]*) 9031 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9032 # Instead, we relocate shared libraries at runtime. 9033 ;; 9034 9035 msdosdjgpp*) 9036 # Just because we use GCC doesn't mean we suddenly get shared libraries 9037 # on systems that don't support them. 9038 lt_prog_compiler_can_build_shared=no 9039 enable_shared=no 9040 ;; 9041 9042 *nto* | *qnx*) 9043 # QNX uses GNU C++, but need to define -shared option too, otherwise 9044 # it will coredump. 9045 lt_prog_compiler_pic='-fPIC -shared' 9046 ;; 9047 9048 sysv4*MP*) 9049 if test -d /usr/nec; then 9050 lt_prog_compiler_pic=-Kconform_pic 9051 fi 9052 ;; 9053 9054 *) 9055 lt_prog_compiler_pic='-fPIC' 9056 ;; 9057 esac 9058 9059 case $cc_basename in 9060 nvcc*) # Cuda Compiler Driver 2.2 9061 lt_prog_compiler_wl='-Xlinker ' 9062 if test -n "$lt_prog_compiler_pic"; then 9063 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9064 fi 9065 ;; 9066 esac 9067 else 9068 # PORTME Check for flag to pass linker flags through the system compiler. 9069 case $host_os in 9070 aix*) 9071 lt_prog_compiler_wl='-Wl,' 9072 if test ia64 = "$host_cpu"; then 9073 # AIX 5 now supports IA64 processor 9074 lt_prog_compiler_static='-Bstatic' 9075 else 9076 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9077 fi 9078 ;; 9079 9080 darwin* | rhapsody*) 9081 # PIC is the default on this platform 9082 # Common symbols not allowed in MH_DYLIB files 9083 lt_prog_compiler_pic='-fno-common' 9084 case $cc_basename in 9085 nagfor*) 9086 # NAG Fortran compiler 9087 lt_prog_compiler_wl='-Wl,-Wl,,' 9088 lt_prog_compiler_pic='-PIC' 9089 lt_prog_compiler_static='-Bstatic' 9090 ;; 9091 esac 9092 ;; 9093 9094 mingw* | cygwin* | pw32* | os2* | cegcc*) 9095 # This hack is so that the source file can tell whether it is being 9096 # built for inclusion in a dll (and should export symbols for example). 9097 lt_prog_compiler_pic='-DDLL_EXPORT' 9098 case $host_os in 9099 os2*) 9100 lt_prog_compiler_static='$wl-static' 9101 ;; 9102 esac 9103 ;; 9104 9105 hpux9* | hpux10* | hpux11*) 9106 lt_prog_compiler_wl='-Wl,' 9107 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9108 # not for PA HP-UX. 9109 case $host_cpu in 9110 hppa*64*|ia64*) 9111 # +Z the default 9112 ;; 9113 *) 9114 lt_prog_compiler_pic='+Z' 9115 ;; 9116 esac 9117 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9118 lt_prog_compiler_static='$wl-a ${wl}archive' 9119 ;; 9120 9121 irix5* | irix6* | nonstopux*) 9122 lt_prog_compiler_wl='-Wl,' 9123 # PIC (with -KPIC) is the default. 9124 lt_prog_compiler_static='-non_shared' 9125 ;; 9126 9127 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9128 case $cc_basename in 9129 # old Intel for x86_64, which still supported -KPIC. 9130 ecc*) 9131 lt_prog_compiler_wl='-Wl,' 9132 lt_prog_compiler_pic='-KPIC' 9133 lt_prog_compiler_static='-static' 9134 ;; 9135 # icc used to be incompatible with GCC. 9136 # ICC 10 doesn't accept -KPIC any more. 9137 icc* | ifort*) 9138 lt_prog_compiler_wl='-Wl,' 9139 lt_prog_compiler_pic='-fPIC' 9140 lt_prog_compiler_static='-static' 9141 ;; 9142 # Lahey Fortran 8.1. 9143 lf95*) 9144 lt_prog_compiler_wl='-Wl,' 9145 lt_prog_compiler_pic='--shared' 9146 lt_prog_compiler_static='--static' 9147 ;; 9148 nagfor*) 9149 # NAG Fortran compiler 9150 lt_prog_compiler_wl='-Wl,-Wl,,' 9151 lt_prog_compiler_pic='-PIC' 9152 lt_prog_compiler_static='-Bstatic' 9153 ;; 9154 tcc*) 9155 # Fabrice Bellard et al's Tiny C Compiler 9156 lt_prog_compiler_wl='-Wl,' 9157 lt_prog_compiler_pic='-fPIC' 9158 lt_prog_compiler_static='-static' 9159 ;; 9160 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9161 # Portland Group compilers (*not* the Pentium gcc compiler, 9162 # which looks to be a dead project) 9163 lt_prog_compiler_wl='-Wl,' 9164 lt_prog_compiler_pic='-fpic' 9165 lt_prog_compiler_static='-Bstatic' 9166 ;; 9167 ccc*) 9168 lt_prog_compiler_wl='-Wl,' 9169 # All Alpha code is PIC. 9170 lt_prog_compiler_static='-non_shared' 9171 ;; 9172 xl* | bgxl* | bgf* | mpixl*) 9173 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9174 lt_prog_compiler_wl='-Wl,' 9175 lt_prog_compiler_pic='-qpic' 9176 lt_prog_compiler_static='-qstaticlink' 9177 ;; 9178 *) 9179 case `$CC -V 2>&1 | $SED 5q` in 9180 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9181 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9182 lt_prog_compiler_pic='-KPIC' 9183 lt_prog_compiler_static='-Bstatic' 9184 lt_prog_compiler_wl='' 9185 ;; 9186 *Sun\ F* | *Sun*Fortran*) 9187 lt_prog_compiler_pic='-KPIC' 9188 lt_prog_compiler_static='-Bstatic' 9189 lt_prog_compiler_wl='-Qoption ld ' 9190 ;; 9191 *Sun\ C*) 9192 # Sun C 5.9 9193 lt_prog_compiler_pic='-KPIC' 9194 lt_prog_compiler_static='-Bstatic' 9195 lt_prog_compiler_wl='-Wl,' 9196 ;; 9197 *Intel*\ [CF]*Compiler*) 9198 lt_prog_compiler_wl='-Wl,' 9199 lt_prog_compiler_pic='-fPIC' 9200 lt_prog_compiler_static='-static' 9201 ;; 9202 *Portland\ Group*) 9203 lt_prog_compiler_wl='-Wl,' 9204 lt_prog_compiler_pic='-fpic' 9205 lt_prog_compiler_static='-Bstatic' 9206 ;; 9207 esac 9208 ;; 9209 esac 9210 ;; 9211 9212 newsos6) 9213 lt_prog_compiler_pic='-KPIC' 9214 lt_prog_compiler_static='-Bstatic' 9215 ;; 9216 9217 *nto* | *qnx*) 9218 # QNX uses GNU C++, but need to define -shared option too, otherwise 9219 # it will coredump. 9220 lt_prog_compiler_pic='-fPIC -shared' 9221 ;; 9222 9223 osf3* | osf4* | osf5*) 9224 lt_prog_compiler_wl='-Wl,' 9225 # All OSF/1 code is PIC. 9226 lt_prog_compiler_static='-non_shared' 9227 ;; 9228 9229 rdos*) 9230 lt_prog_compiler_static='-non_shared' 9231 ;; 9232 9233 solaris*) 9234 lt_prog_compiler_pic='-KPIC' 9235 lt_prog_compiler_static='-Bstatic' 9236 case $cc_basename in 9237 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9238 lt_prog_compiler_wl='-Qoption ld ';; 9239 *) 9240 lt_prog_compiler_wl='-Wl,';; 9241 esac 9242 ;; 9243 9244 sunos4*) 9245 lt_prog_compiler_wl='-Qoption ld ' 9246 lt_prog_compiler_pic='-PIC' 9247 lt_prog_compiler_static='-Bstatic' 9248 ;; 9249 9250 sysv4 | sysv4.2uw2* | sysv4.3*) 9251 lt_prog_compiler_wl='-Wl,' 9252 lt_prog_compiler_pic='-KPIC' 9253 lt_prog_compiler_static='-Bstatic' 9254 ;; 9255 9256 sysv4*MP*) 9257 if test -d /usr/nec; then 9258 lt_prog_compiler_pic='-Kconform_pic' 9259 lt_prog_compiler_static='-Bstatic' 9260 fi 9261 ;; 9262 9263 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9264 lt_prog_compiler_wl='-Wl,' 9265 lt_prog_compiler_pic='-KPIC' 9266 lt_prog_compiler_static='-Bstatic' 9267 ;; 9268 9269 unicos*) 9270 lt_prog_compiler_wl='-Wl,' 9271 lt_prog_compiler_can_build_shared=no 9272 ;; 9273 9274 uts4*) 9275 lt_prog_compiler_pic='-pic' 9276 lt_prog_compiler_static='-Bstatic' 9277 ;; 9278 9279 *) 9280 lt_prog_compiler_can_build_shared=no 9281 ;; 9282 esac 9283 fi 9284 9285case $host_os in 9286 # For platforms that do not support PIC, -DPIC is meaningless: 9287 *djgpp*) 9288 lt_prog_compiler_pic= 9289 ;; 9290 *) 9291 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9292 ;; 9293esac 9294 9295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9296printf %s "checking for $compiler option to produce PIC... " >&6; } 9297if test ${lt_cv_prog_compiler_pic+y} 9298then : 9299 printf %s "(cached) " >&6 9300else $as_nop 9301 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9302fi 9303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9304printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9305lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9306 9307# 9308# Check to make sure the PIC flag actually works. 9309# 9310if test -n "$lt_prog_compiler_pic"; then 9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9312printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9313if test ${lt_cv_prog_compiler_pic_works+y} 9314then : 9315 printf %s "(cached) " >&6 9316else $as_nop 9317 lt_cv_prog_compiler_pic_works=no 9318 ac_outfile=conftest.$ac_objext 9319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9320 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9321 # Insert the option either (1) after the last *FLAGS variable, or 9322 # (2) before a word containing "conftest.", or (3) at the end. 9323 # Note that $ac_compile itself does not contain backslashes and begins 9324 # with a dollar sign (not a hyphen), so the echo should work correctly. 9325 # The option is referenced via a variable to avoid confusing sed. 9326 lt_compile=`echo "$ac_compile" | $SED \ 9327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9329 -e 's:$: $lt_compiler_flag:'` 9330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9331 (eval "$lt_compile" 2>conftest.err) 9332 ac_status=$? 9333 cat conftest.err >&5 9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9335 if (exit $ac_status) && test -s "$ac_outfile"; then 9336 # The compiler can only warn and ignore the option if not recognized 9337 # So say no if there are warnings other than the usual output. 9338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9341 lt_cv_prog_compiler_pic_works=yes 9342 fi 9343 fi 9344 $RM conftest* 9345 9346fi 9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9348printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9349 9350if test yes = "$lt_cv_prog_compiler_pic_works"; then 9351 case $lt_prog_compiler_pic in 9352 "" | " "*) ;; 9353 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9354 esac 9355else 9356 lt_prog_compiler_pic= 9357 lt_prog_compiler_can_build_shared=no 9358fi 9359 9360fi 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372# 9373# Check to make sure the static flag actually works. 9374# 9375wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9377printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9378if test ${lt_cv_prog_compiler_static_works+y} 9379then : 9380 printf %s "(cached) " >&6 9381else $as_nop 9382 lt_cv_prog_compiler_static_works=no 9383 save_LDFLAGS=$LDFLAGS 9384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9385 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9387 # The linker can only warn and ignore the option if not recognized 9388 # So say no if there are warnings 9389 if test -s conftest.err; then 9390 # Append any errors to the config.log. 9391 cat conftest.err 1>&5 9392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9394 if diff conftest.exp conftest.er2 >/dev/null; then 9395 lt_cv_prog_compiler_static_works=yes 9396 fi 9397 else 9398 lt_cv_prog_compiler_static_works=yes 9399 fi 9400 fi 9401 $RM -r conftest* 9402 LDFLAGS=$save_LDFLAGS 9403 9404fi 9405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9406printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9407 9408if test yes = "$lt_cv_prog_compiler_static_works"; then 9409 : 9410else 9411 lt_prog_compiler_static= 9412fi 9413 9414 9415 9416 9417 9418 9419 9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9421printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9422if test ${lt_cv_prog_compiler_c_o+y} 9423then : 9424 printf %s "(cached) " >&6 9425else $as_nop 9426 lt_cv_prog_compiler_c_o=no 9427 $RM -r conftest 2>/dev/null 9428 mkdir conftest 9429 cd conftest 9430 mkdir out 9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9432 9433 lt_compiler_flag="-o out/conftest2.$ac_objext" 9434 # Insert the option either (1) after the last *FLAGS variable, or 9435 # (2) before a word containing "conftest.", or (3) at the end. 9436 # Note that $ac_compile itself does not contain backslashes and begins 9437 # with a dollar sign (not a hyphen), so the echo should work correctly. 9438 lt_compile=`echo "$ac_compile" | $SED \ 9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9441 -e 's:$: $lt_compiler_flag:'` 9442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9443 (eval "$lt_compile" 2>out/conftest.err) 9444 ac_status=$? 9445 cat out/conftest.err >&5 9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9447 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9448 then 9449 # The compiler can only warn and ignore the option if not recognized 9450 # So say no if there are warnings 9451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9454 lt_cv_prog_compiler_c_o=yes 9455 fi 9456 fi 9457 chmod u+w . 2>&5 9458 $RM conftest* 9459 # SGI C++ compiler will create directory out/ii_files/ for 9460 # template instantiation 9461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9462 $RM out/* && rmdir out 9463 cd .. 9464 $RM -r conftest 9465 $RM conftest* 9466 9467fi 9468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9469printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9470 9471 9472 9473 9474 9475 9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9477printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9478if test ${lt_cv_prog_compiler_c_o+y} 9479then : 9480 printf %s "(cached) " >&6 9481else $as_nop 9482 lt_cv_prog_compiler_c_o=no 9483 $RM -r conftest 2>/dev/null 9484 mkdir conftest 9485 cd conftest 9486 mkdir out 9487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9488 9489 lt_compiler_flag="-o out/conftest2.$ac_objext" 9490 # Insert the option either (1) after the last *FLAGS variable, or 9491 # (2) before a word containing "conftest.", or (3) at the end. 9492 # Note that $ac_compile itself does not contain backslashes and begins 9493 # with a dollar sign (not a hyphen), so the echo should work correctly. 9494 lt_compile=`echo "$ac_compile" | $SED \ 9495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9497 -e 's:$: $lt_compiler_flag:'` 9498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9499 (eval "$lt_compile" 2>out/conftest.err) 9500 ac_status=$? 9501 cat out/conftest.err >&5 9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9503 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9504 then 9505 # The compiler can only warn and ignore the option if not recognized 9506 # So say no if there are warnings 9507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9510 lt_cv_prog_compiler_c_o=yes 9511 fi 9512 fi 9513 chmod u+w . 2>&5 9514 $RM conftest* 9515 # SGI C++ compiler will create directory out/ii_files/ for 9516 # template instantiation 9517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9518 $RM out/* && rmdir out 9519 cd .. 9520 $RM -r conftest 9521 $RM conftest* 9522 9523fi 9524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9525printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9526 9527 9528 9529 9530hard_links=nottested 9531if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9532 # do not overwrite the value of need_locks provided by the user 9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9534printf %s "checking if we can lock with hard links... " >&6; } 9535 hard_links=yes 9536 $RM conftest* 9537 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9538 touch conftest.a 9539 ln conftest.a conftest.b 2>&5 || hard_links=no 9540 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9542printf "%s\n" "$hard_links" >&6; } 9543 if test no = "$hard_links"; then 9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9545printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9546 need_locks=warn 9547 fi 9548else 9549 need_locks=no 9550fi 9551 9552 9553 9554 9555 9556 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9558printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9559 9560 runpath_var= 9561 allow_undefined_flag= 9562 always_export_symbols=no 9563 archive_cmds= 9564 archive_expsym_cmds= 9565 compiler_needs_object=no 9566 enable_shared_with_static_runtimes=no 9567 export_dynamic_flag_spec= 9568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9569 hardcode_automatic=no 9570 hardcode_direct=no 9571 hardcode_direct_absolute=no 9572 hardcode_libdir_flag_spec= 9573 hardcode_libdir_separator= 9574 hardcode_minus_L=no 9575 hardcode_shlibpath_var=unsupported 9576 inherit_rpath=no 9577 link_all_deplibs=unknown 9578 module_cmds= 9579 module_expsym_cmds= 9580 old_archive_from_new_cmds= 9581 old_archive_from_expsyms_cmds= 9582 thread_safe_flag_spec= 9583 whole_archive_flag_spec= 9584 # include_expsyms should be a list of space-separated symbols to be *always* 9585 # included in the symbol list 9586 include_expsyms= 9587 # exclude_expsyms can be an extended regexp of symbols to exclude 9588 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9589 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9590 # as well as any symbol that contains 'd'. 9591 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9592 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9593 # platforms (ab)use it in PIC code, but their linkers get confused if 9594 # the symbol is explicitly referenced. Since portable code cannot 9595 # rely on this symbol name, it's probably fine to never include it in 9596 # preloaded symbol tables. 9597 # Exclude shared library initialization/finalization symbols. 9598 extract_expsyms_cmds= 9599 9600 case $host_os in 9601 cygwin* | mingw* | pw32* | cegcc*) 9602 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9603 # When not using gcc, we currently assume that we are using 9604 # Microsoft Visual C++ or Intel C++ Compiler. 9605 if test yes != "$GCC"; then 9606 with_gnu_ld=no 9607 fi 9608 ;; 9609 interix*) 9610 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9611 with_gnu_ld=yes 9612 ;; 9613 openbsd* | bitrig*) 9614 with_gnu_ld=no 9615 ;; 9616 esac 9617 9618 ld_shlibs=yes 9619 9620 # On some targets, GNU ld is compatible enough with the native linker 9621 # that we're better off using the native interface for both. 9622 lt_use_gnu_ld_interface=no 9623 if test yes = "$with_gnu_ld"; then 9624 case $host_os in 9625 aix*) 9626 # The AIX port of GNU ld has always aspired to compatibility 9627 # with the native linker. However, as the warning in the GNU ld 9628 # block says, versions before 2.19.5* couldn't really create working 9629 # shared libraries, regardless of the interface used. 9630 case `$LD -v 2>&1` in 9631 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9632 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9633 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9634 *) 9635 lt_use_gnu_ld_interface=yes 9636 ;; 9637 esac 9638 ;; 9639 *) 9640 lt_use_gnu_ld_interface=yes 9641 ;; 9642 esac 9643 fi 9644 9645 if test yes = "$lt_use_gnu_ld_interface"; then 9646 # If archive_cmds runs LD, not CC, wlarc should be empty 9647 wlarc='$wl' 9648 9649 # Set some defaults for GNU ld with shared library support. These 9650 # are reset later if shared libraries are not supported. Putting them 9651 # here allows them to be overridden if necessary. 9652 runpath_var=LD_RUN_PATH 9653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9654 export_dynamic_flag_spec='$wl--export-dynamic' 9655 # ancient GNU ld didn't support --whole-archive et. al. 9656 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9657 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9658 else 9659 whole_archive_flag_spec= 9660 fi 9661 supports_anon_versioning=no 9662 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9663 *GNU\ gold*) supports_anon_versioning=yes ;; 9664 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9665 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9666 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9667 *\ 2.11.*) ;; # other 2.11 versions 9668 *) supports_anon_versioning=yes ;; 9669 esac 9670 9671 # See if GNU ld supports shared libraries. 9672 case $host_os in 9673 aix[3-9]*) 9674 # On AIX/PPC, the GNU linker is very broken 9675 if test ia64 != "$host_cpu"; then 9676 ld_shlibs=no 9677 cat <<_LT_EOF 1>&2 9678 9679*** Warning: the GNU linker, at least up to release 2.19, is reported 9680*** to be unable to reliably create shared libraries on AIX. 9681*** Therefore, libtool is disabling shared libraries support. If you 9682*** really care for shared libraries, you may want to install binutils 9683*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9684*** You will then need to restart the configuration process. 9685 9686_LT_EOF 9687 fi 9688 ;; 9689 9690 amigaos*) 9691 case $host_cpu in 9692 powerpc) 9693 # see comment about AmigaOS4 .so support 9694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9695 archive_expsym_cmds='' 9696 ;; 9697 m68k) 9698 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)' 9699 hardcode_libdir_flag_spec='-L$libdir' 9700 hardcode_minus_L=yes 9701 ;; 9702 esac 9703 ;; 9704 9705 beos*) 9706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9707 allow_undefined_flag=unsupported 9708 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9709 # support --undefined. This deserves some investigation. FIXME 9710 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9711 else 9712 ld_shlibs=no 9713 fi 9714 ;; 9715 9716 cygwin* | mingw* | pw32* | cegcc*) 9717 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9718 # as there is no search path for DLLs. 9719 hardcode_libdir_flag_spec='-L$libdir' 9720 export_dynamic_flag_spec='$wl--export-all-symbols' 9721 allow_undefined_flag=unsupported 9722 always_export_symbols=no 9723 enable_shared_with_static_runtimes=yes 9724 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' 9725 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9726 9727 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9729 # If the export-symbols file already is a .def file, use it as 9730 # is; otherwise, prepend EXPORTS... 9731 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9732 cp $export_symbols $output_objdir/$soname.def; 9733 else 9734 echo EXPORTS > $output_objdir/$soname.def; 9735 cat $export_symbols >> $output_objdir/$soname.def; 9736 fi~ 9737 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9738 else 9739 ld_shlibs=no 9740 fi 9741 ;; 9742 9743 haiku*) 9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9745 link_all_deplibs=yes 9746 ;; 9747 9748 os2*) 9749 hardcode_libdir_flag_spec='-L$libdir' 9750 hardcode_minus_L=yes 9751 allow_undefined_flag=unsupported 9752 shrext_cmds=.dll 9753 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9754 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9755 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9756 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9757 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9759 emximp -o $lib $output_objdir/$libname.def' 9760 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9761 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9762 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9763 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9764 prefix_cmds="$SED"~ 9765 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9766 prefix_cmds="$prefix_cmds -e 1d"; 9767 fi~ 9768 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9769 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9770 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9771 emximp -o $lib $output_objdir/$libname.def' 9772 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9773 enable_shared_with_static_runtimes=yes 9774 file_list_spec='@' 9775 ;; 9776 9777 interix[3-9]*) 9778 hardcode_direct=no 9779 hardcode_shlibpath_var=no 9780 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9781 export_dynamic_flag_spec='$wl-E' 9782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9783 # Instead, shared libraries are loaded at an image base (0x10000000 by 9784 # default) and relocated if they conflict, which is a slow very memory 9785 # consuming and fragmenting process. To avoid this, we pick a random, 9786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9787 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9789 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' 9790 ;; 9791 9792 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9793 tmp_diet=no 9794 if test linux-dietlibc = "$host_os"; then 9795 case $cc_basename in 9796 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9797 esac 9798 fi 9799 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9800 && test no = "$tmp_diet" 9801 then 9802 tmp_addflag=' $pic_flag' 9803 tmp_sharedflag='-shared' 9804 case $cc_basename,$host_cpu in 9805 pgcc*) # Portland Group C compiler 9806 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' 9807 tmp_addflag=' $pic_flag' 9808 ;; 9809 pgf77* | pgf90* | pgf95* | pgfortran*) 9810 # Portland Group f77 and f90 compilers 9811 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' 9812 tmp_addflag=' $pic_flag -Mnomain' ;; 9813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9814 tmp_addflag=' -i_dynamic' ;; 9815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9816 tmp_addflag=' -i_dynamic -nofor_main' ;; 9817 ifc* | ifort*) # Intel Fortran compiler 9818 tmp_addflag=' -nofor_main' ;; 9819 lf95*) # Lahey Fortran 8.1 9820 whole_archive_flag_spec= 9821 tmp_sharedflag='--shared' ;; 9822 nagfor*) # NAGFOR 5.3 9823 tmp_sharedflag='-Wl,-shared' ;; 9824 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9825 tmp_sharedflag='-qmkshrobj' 9826 tmp_addflag= ;; 9827 nvcc*) # Cuda Compiler Driver 2.2 9828 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' 9829 compiler_needs_object=yes 9830 ;; 9831 esac 9832 case `$CC -V 2>&1 | $SED 5q` in 9833 *Sun\ C*) # Sun C 5.9 9834 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' 9835 compiler_needs_object=yes 9836 tmp_sharedflag='-G' ;; 9837 *Sun\ F*) # Sun Fortran 8.3 9838 tmp_sharedflag='-G' ;; 9839 esac 9840 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9841 9842 if test yes = "$supports_anon_versioning"; then 9843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9844 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9845 echo "local: *; };" >> $output_objdir/$libname.ver~ 9846 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9847 fi 9848 9849 case $cc_basename in 9850 tcc*) 9851 export_dynamic_flag_spec='-rdynamic' 9852 ;; 9853 xlf* | bgf* | bgxlf* | mpixlf*) 9854 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9855 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9856 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9857 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9858 if test yes = "$supports_anon_versioning"; then 9859 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9860 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9861 echo "local: *; };" >> $output_objdir/$libname.ver~ 9862 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9863 fi 9864 ;; 9865 esac 9866 else 9867 ld_shlibs=no 9868 fi 9869 ;; 9870 9871 netbsd*) 9872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9873 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9874 wlarc= 9875 else 9876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9877 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9878 fi 9879 ;; 9880 9881 solaris*) 9882 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9883 ld_shlibs=no 9884 cat <<_LT_EOF 1>&2 9885 9886*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9887*** create shared libraries on Solaris systems. Therefore, libtool 9888*** is disabling shared libraries support. We urge you to upgrade GNU 9889*** binutils to release 2.9.1 or newer. Another option is to modify 9890*** your PATH or compiler configuration so that the native linker is 9891*** used, and then restart. 9892 9893_LT_EOF 9894 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9895 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9896 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9897 else 9898 ld_shlibs=no 9899 fi 9900 ;; 9901 9902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9903 case `$LD -v 2>&1` in 9904 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9905 ld_shlibs=no 9906 cat <<_LT_EOF 1>&2 9907 9908*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9909*** reliably create shared libraries on SCO systems. Therefore, libtool 9910*** is disabling shared libraries support. We urge you to upgrade GNU 9911*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9912*** your PATH or compiler configuration so that the native linker is 9913*** used, and then restart. 9914 9915_LT_EOF 9916 ;; 9917 *) 9918 # For security reasons, it is highly recommended that you always 9919 # use absolute paths for naming shared libraries, and exclude the 9920 # DT_RUNPATH tag from executables and libraries. But doing so 9921 # requires that you compile everything twice, which is a pain. 9922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9923 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9924 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9925 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9926 else 9927 ld_shlibs=no 9928 fi 9929 ;; 9930 esac 9931 ;; 9932 9933 sunos4*) 9934 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9935 wlarc= 9936 hardcode_direct=yes 9937 hardcode_shlibpath_var=no 9938 ;; 9939 9940 *) 9941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9943 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9944 else 9945 ld_shlibs=no 9946 fi 9947 ;; 9948 esac 9949 9950 if test no = "$ld_shlibs"; then 9951 runpath_var= 9952 hardcode_libdir_flag_spec= 9953 export_dynamic_flag_spec= 9954 whole_archive_flag_spec= 9955 fi 9956 else 9957 # PORTME fill in a description of your system's linker (not GNU ld) 9958 case $host_os in 9959 aix3*) 9960 allow_undefined_flag=unsupported 9961 always_export_symbols=yes 9962 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' 9963 # Note: this linker hardcodes the directories in LIBPATH if there 9964 # are no directories specified by -L. 9965 hardcode_minus_L=yes 9966 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9967 # Neither direct hardcoding nor static linking is supported with a 9968 # broken collect2. 9969 hardcode_direct=unsupported 9970 fi 9971 ;; 9972 9973 aix[4-9]*) 9974 if test ia64 = "$host_cpu"; then 9975 # On IA64, the linker does run time linking by default, so we don't 9976 # have to do anything special. 9977 aix_use_runtimelinking=no 9978 exp_sym_flag='-Bexport' 9979 no_entry_flag= 9980 else 9981 # If we're using GNU nm, then we don't want the "-C" option. 9982 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9983 # Without the "-l" option, or with the "-B" option, AIX nm treats 9984 # weak defined symbols like other global defined symbols, whereas 9985 # GNU nm marks them as "W". 9986 # While the 'weak' keyword is ignored in the Export File, we need 9987 # it in the Import File for the 'aix-soname' feature, so we have 9988 # to replace the "-B" option with "-P" for AIX nm. 9989 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9990 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' 9991 else 9992 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' 9993 fi 9994 aix_use_runtimelinking=no 9995 9996 # Test if we are trying to use run time linking or normal 9997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9998 # have runtime linking enabled, and use it for executables. 9999 # For shared libraries, we enable/disable runtime linking 10000 # depending on the kind of the shared library created - 10001 # when "with_aix_soname,aix_use_runtimelinking" is: 10002 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10003 # "aix,yes" lib.so shared, rtl:yes, for executables 10004 # lib.a static archive 10005 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10006 # lib.a(lib.so.V) shared, rtl:no, for executables 10007 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10008 # lib.a(lib.so.V) shared, rtl:no 10009 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10010 # lib.a static archive 10011 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10012 for ld_flag in $LDFLAGS; do 10013 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10014 aix_use_runtimelinking=yes 10015 break 10016 fi 10017 done 10018 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10019 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10020 # so we don't have lib.a shared libs to link our executables. 10021 # We have to force runtime linking in this case. 10022 aix_use_runtimelinking=yes 10023 LDFLAGS="$LDFLAGS -Wl,-brtl" 10024 fi 10025 ;; 10026 esac 10027 10028 exp_sym_flag='-bexport' 10029 no_entry_flag='-bnoentry' 10030 fi 10031 10032 # When large executables or shared objects are built, AIX ld can 10033 # have problems creating the table of contents. If linking a library 10034 # or program results in "error TOC overflow" add -mminimal-toc to 10035 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10036 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10037 10038 archive_cmds='' 10039 hardcode_direct=yes 10040 hardcode_direct_absolute=yes 10041 hardcode_libdir_separator=':' 10042 link_all_deplibs=yes 10043 file_list_spec='$wl-f,' 10044 case $with_aix_soname,$aix_use_runtimelinking in 10045 aix,*) ;; # traditional, no import file 10046 svr4,* | *,yes) # use import file 10047 # The Import File defines what to hardcode. 10048 hardcode_direct=no 10049 hardcode_direct_absolute=no 10050 ;; 10051 esac 10052 10053 if test yes = "$GCC"; then 10054 case $host_os in aix4.[012]|aix4.[012].*) 10055 # We only want to do this on AIX 4.2 and lower, the check 10056 # below for broken collect2 doesn't work under 4.3+ 10057 collect2name=`$CC -print-prog-name=collect2` 10058 if test -f "$collect2name" && 10059 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10060 then 10061 # We have reworked collect2 10062 : 10063 else 10064 # We have old collect2 10065 hardcode_direct=unsupported 10066 # It fails to find uninstalled libraries when the uninstalled 10067 # path is not listed in the libpath. Setting hardcode_minus_L 10068 # to unsupported forces relinking 10069 hardcode_minus_L=yes 10070 hardcode_libdir_flag_spec='-L$libdir' 10071 hardcode_libdir_separator= 10072 fi 10073 ;; 10074 esac 10075 shared_flag='-shared' 10076 if test yes = "$aix_use_runtimelinking"; then 10077 shared_flag="$shared_flag "'$wl-G' 10078 fi 10079 # Need to ensure runtime linking is disabled for the traditional 10080 # shared library, or the linker may eventually find shared libraries 10081 # /with/ Import File - we do not want to mix them. 10082 shared_flag_aix='-shared' 10083 shared_flag_svr4='-shared $wl-G' 10084 else 10085 # not using gcc 10086 if test ia64 = "$host_cpu"; then 10087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10088 # chokes on -Wl,-G. The following line is correct: 10089 shared_flag='-G' 10090 else 10091 if test yes = "$aix_use_runtimelinking"; then 10092 shared_flag='$wl-G' 10093 else 10094 shared_flag='$wl-bM:SRE' 10095 fi 10096 shared_flag_aix='$wl-bM:SRE' 10097 shared_flag_svr4='$wl-G' 10098 fi 10099 fi 10100 10101 export_dynamic_flag_spec='$wl-bexpall' 10102 # It seems that -bexpall does not export symbols beginning with 10103 # underscore (_), so it is better to generate a list of symbols to export. 10104 always_export_symbols=yes 10105 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10106 # Warning - without using the other runtime loading flags (-brtl), 10107 # -berok will link without error, but may produce a broken library. 10108 allow_undefined_flag='-berok' 10109 # Determine the default libpath from the value encoded in an 10110 # empty executable. 10111 if test set = "${lt_cv_aix_libpath+set}"; then 10112 aix_libpath=$lt_cv_aix_libpath 10113else 10114 if test ${lt_cv_aix_libpath_+y} 10115then : 10116 printf %s "(cached) " >&6 10117else $as_nop 10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10119/* end confdefs.h. */ 10120 10121int 10122main (void) 10123{ 10124 10125 ; 10126 return 0; 10127} 10128_ACEOF 10129if ac_fn_c_try_link "$LINENO" 10130then : 10131 10132 lt_aix_libpath_sed=' 10133 /Import File Strings/,/^$/ { 10134 /^0/ { 10135 s/^0 *\([^ ]*\) *$/\1/ 10136 p 10137 } 10138 }' 10139 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10140 # Check for a 64-bit object if we didn't find anything. 10141 if test -z "$lt_cv_aix_libpath_"; then 10142 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10143 fi 10144fi 10145rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10146 conftest$ac_exeext conftest.$ac_ext 10147 if test -z "$lt_cv_aix_libpath_"; then 10148 lt_cv_aix_libpath_=/usr/lib:/lib 10149 fi 10150 10151fi 10152 10153 aix_libpath=$lt_cv_aix_libpath_ 10154fi 10155 10156 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10157 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 10158 else 10159 if test ia64 = "$host_cpu"; then 10160 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10161 allow_undefined_flag="-z nodefs" 10162 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" 10163 else 10164 # Determine the default libpath from the value encoded in an 10165 # empty executable. 10166 if test set = "${lt_cv_aix_libpath+set}"; then 10167 aix_libpath=$lt_cv_aix_libpath 10168else 10169 if test ${lt_cv_aix_libpath_+y} 10170then : 10171 printf %s "(cached) " >&6 10172else $as_nop 10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10174/* end confdefs.h. */ 10175 10176int 10177main (void) 10178{ 10179 10180 ; 10181 return 0; 10182} 10183_ACEOF 10184if ac_fn_c_try_link "$LINENO" 10185then : 10186 10187 lt_aix_libpath_sed=' 10188 /Import File Strings/,/^$/ { 10189 /^0/ { 10190 s/^0 *\([^ ]*\) *$/\1/ 10191 p 10192 } 10193 }' 10194 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10195 # Check for a 64-bit object if we didn't find anything. 10196 if test -z "$lt_cv_aix_libpath_"; then 10197 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10198 fi 10199fi 10200rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10201 conftest$ac_exeext conftest.$ac_ext 10202 if test -z "$lt_cv_aix_libpath_"; then 10203 lt_cv_aix_libpath_=/usr/lib:/lib 10204 fi 10205 10206fi 10207 10208 aix_libpath=$lt_cv_aix_libpath_ 10209fi 10210 10211 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10212 # Warning - without using the other run time loading flags, 10213 # -berok will link without error, but may produce a broken library. 10214 no_undefined_flag=' $wl-bernotok' 10215 allow_undefined_flag=' $wl-berok' 10216 if test yes = "$with_gnu_ld"; then 10217 # We only use this code for GNU lds that support --whole-archive. 10218 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10219 else 10220 # Exported symbols can be pulled into shared objects from archives 10221 whole_archive_flag_spec='$convenience' 10222 fi 10223 archive_cmds_need_lc=yes 10224 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10225 # -brtl affects multiple linker settings, -berok does not and is overridden later 10226 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10227 if test svr4 != "$with_aix_soname"; then 10228 # This is similar to how AIX traditionally builds its shared libraries. 10229 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' 10230 fi 10231 if test aix != "$with_aix_soname"; then 10232 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' 10233 else 10234 # used by -dlpreopen to get the symbols 10235 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10236 fi 10237 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10238 fi 10239 fi 10240 ;; 10241 10242 amigaos*) 10243 case $host_cpu in 10244 powerpc) 10245 # see comment about AmigaOS4 .so support 10246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10247 archive_expsym_cmds='' 10248 ;; 10249 m68k) 10250 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)' 10251 hardcode_libdir_flag_spec='-L$libdir' 10252 hardcode_minus_L=yes 10253 ;; 10254 esac 10255 ;; 10256 10257 bsdi[45]*) 10258 export_dynamic_flag_spec=-rdynamic 10259 ;; 10260 10261 cygwin* | mingw* | pw32* | cegcc*) 10262 # When not using gcc, we currently assume that we are using 10263 # Microsoft Visual C++ or Intel C++ Compiler. 10264 # hardcode_libdir_flag_spec is actually meaningless, as there is 10265 # no search path for DLLs. 10266 case $cc_basename in 10267 cl* | icl*) 10268 # Native MSVC or ICC 10269 hardcode_libdir_flag_spec=' ' 10270 allow_undefined_flag=unsupported 10271 always_export_symbols=yes 10272 file_list_spec='@' 10273 # Tell ltmain to make .lib files, not .a files. 10274 libext=lib 10275 # Tell ltmain to make .dll files, not .so files. 10276 shrext_cmds=.dll 10277 # FIXME: Setting linknames here is a bad hack. 10278 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10279 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10280 cp "$export_symbols" "$output_objdir/$soname.def"; 10281 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10282 else 10283 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10284 fi~ 10285 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10286 linknames=' 10287 # The linker will not automatically build a static lib if we build a DLL. 10288 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10289 enable_shared_with_static_runtimes=yes 10290 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10291 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10292 # Don't use ranlib 10293 old_postinstall_cmds='chmod 644 $oldlib' 10294 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10295 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10296 case $lt_outputfile in 10297 *.exe|*.EXE) ;; 10298 *) 10299 lt_outputfile=$lt_outputfile.exe 10300 lt_tool_outputfile=$lt_tool_outputfile.exe 10301 ;; 10302 esac~ 10303 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10304 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10305 $RM "$lt_outputfile.manifest"; 10306 fi' 10307 ;; 10308 *) 10309 # Assume MSVC and ICC wrapper 10310 hardcode_libdir_flag_spec=' ' 10311 allow_undefined_flag=unsupported 10312 # Tell ltmain to make .lib files, not .a files. 10313 libext=lib 10314 # Tell ltmain to make .dll files, not .so files. 10315 shrext_cmds=.dll 10316 # FIXME: Setting linknames here is a bad hack. 10317 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10318 # The linker will automatically build a .lib file if we build a DLL. 10319 old_archive_from_new_cmds='true' 10320 # FIXME: Should let the user specify the lib program. 10321 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10322 enable_shared_with_static_runtimes=yes 10323 ;; 10324 esac 10325 ;; 10326 10327 darwin* | rhapsody*) 10328 10329 10330 archive_cmds_need_lc=no 10331 hardcode_direct=no 10332 hardcode_automatic=yes 10333 hardcode_shlibpath_var=unsupported 10334 if test yes = "$lt_cv_ld_force_load"; then 10335 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\"`' 10336 10337 else 10338 whole_archive_flag_spec='' 10339 fi 10340 link_all_deplibs=yes 10341 allow_undefined_flag=$_lt_dar_allow_undefined 10342 case $cc_basename in 10343 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10344 *) _lt_dar_can_shared=$GCC ;; 10345 esac 10346 if test yes = "$_lt_dar_can_shared"; then 10347 output_verbose_link_cmd=func_echo_all 10348 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10349 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10350 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" 10351 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" 10352 10353 else 10354 ld_shlibs=no 10355 fi 10356 10357 ;; 10358 10359 dgux*) 10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10361 hardcode_libdir_flag_spec='-L$libdir' 10362 hardcode_shlibpath_var=no 10363 ;; 10364 10365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10366 # support. Future versions do this automatically, but an explicit c++rt0.o 10367 # does not break anything, and helps significantly (at the cost of a little 10368 # extra space). 10369 freebsd2.2*) 10370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10371 hardcode_libdir_flag_spec='-R$libdir' 10372 hardcode_direct=yes 10373 hardcode_shlibpath_var=no 10374 ;; 10375 10376 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10377 freebsd2.*) 10378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10379 hardcode_direct=yes 10380 hardcode_minus_L=yes 10381 hardcode_shlibpath_var=no 10382 ;; 10383 10384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10385 freebsd* | dragonfly* | midnightbsd*) 10386 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10387 hardcode_libdir_flag_spec='-R$libdir' 10388 hardcode_direct=yes 10389 hardcode_shlibpath_var=no 10390 ;; 10391 10392 hpux9*) 10393 if test yes = "$GCC"; then 10394 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' 10395 else 10396 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' 10397 fi 10398 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10399 hardcode_libdir_separator=: 10400 hardcode_direct=yes 10401 10402 # hardcode_minus_L: Not really in the search PATH, 10403 # but as the default location of the library. 10404 hardcode_minus_L=yes 10405 export_dynamic_flag_spec='$wl-E' 10406 ;; 10407 10408 hpux10*) 10409 if test yes,no = "$GCC,$with_gnu_ld"; then 10410 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10411 else 10412 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10413 fi 10414 if test no = "$with_gnu_ld"; then 10415 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10416 hardcode_libdir_separator=: 10417 hardcode_direct=yes 10418 hardcode_direct_absolute=yes 10419 export_dynamic_flag_spec='$wl-E' 10420 # hardcode_minus_L: Not really in the search PATH, 10421 # but as the default location of the library. 10422 hardcode_minus_L=yes 10423 fi 10424 ;; 10425 10426 hpux11*) 10427 if test yes,no = "$GCC,$with_gnu_ld"; then 10428 case $host_cpu in 10429 hppa*64*) 10430 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10431 ;; 10432 ia64*) 10433 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10434 ;; 10435 *) 10436 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10437 ;; 10438 esac 10439 else 10440 case $host_cpu in 10441 hppa*64*) 10442 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10443 ;; 10444 ia64*) 10445 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10446 ;; 10447 *) 10448 10449 # Older versions of the 11.00 compiler do not understand -b yet 10450 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10452printf %s "checking if $CC understands -b... " >&6; } 10453if test ${lt_cv_prog_compiler__b+y} 10454then : 10455 printf %s "(cached) " >&6 10456else $as_nop 10457 lt_cv_prog_compiler__b=no 10458 save_LDFLAGS=$LDFLAGS 10459 LDFLAGS="$LDFLAGS -b" 10460 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10461 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10462 # The linker can only warn and ignore the option if not recognized 10463 # So say no if there are warnings 10464 if test -s conftest.err; then 10465 # Append any errors to the config.log. 10466 cat conftest.err 1>&5 10467 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10469 if diff conftest.exp conftest.er2 >/dev/null; then 10470 lt_cv_prog_compiler__b=yes 10471 fi 10472 else 10473 lt_cv_prog_compiler__b=yes 10474 fi 10475 fi 10476 $RM -r conftest* 10477 LDFLAGS=$save_LDFLAGS 10478 10479fi 10480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10481printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10482 10483if test yes = "$lt_cv_prog_compiler__b"; then 10484 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10485else 10486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10487fi 10488 10489 ;; 10490 esac 10491 fi 10492 if test no = "$with_gnu_ld"; then 10493 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10494 hardcode_libdir_separator=: 10495 10496 case $host_cpu in 10497 hppa*64*|ia64*) 10498 hardcode_direct=no 10499 hardcode_shlibpath_var=no 10500 ;; 10501 *) 10502 hardcode_direct=yes 10503 hardcode_direct_absolute=yes 10504 export_dynamic_flag_spec='$wl-E' 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 ;; 10510 esac 10511 fi 10512 ;; 10513 10514 irix5* | irix6* | nonstopux*) 10515 if test yes = "$GCC"; then 10516 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' 10517 # Try to use the -exported_symbol ld option, if it does not 10518 # work, assume that -exports_file does not work either and 10519 # implicitly export all symbols. 10520 # This should be the same for all languages, so no per-tag cache variable. 10521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10522printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10523if test ${lt_cv_irix_exported_symbol+y} 10524then : 10525 printf %s "(cached) " >&6 10526else $as_nop 10527 save_LDFLAGS=$LDFLAGS 10528 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10530/* end confdefs.h. */ 10531int foo (void) { return 0; } 10532_ACEOF 10533if ac_fn_c_try_link "$LINENO" 10534then : 10535 lt_cv_irix_exported_symbol=yes 10536else $as_nop 10537 lt_cv_irix_exported_symbol=no 10538fi 10539rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10540 conftest$ac_exeext conftest.$ac_ext 10541 LDFLAGS=$save_LDFLAGS 10542fi 10543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10544printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10545 if test yes = "$lt_cv_irix_exported_symbol"; then 10546 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' 10547 fi 10548 else 10549 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' 10550 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' 10551 fi 10552 archive_cmds_need_lc='no' 10553 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10554 hardcode_libdir_separator=: 10555 inherit_rpath=yes 10556 link_all_deplibs=yes 10557 ;; 10558 10559 linux*) 10560 case $cc_basename in 10561 tcc*) 10562 # Fabrice Bellard et al's Tiny C Compiler 10563 ld_shlibs=yes 10564 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10565 ;; 10566 esac 10567 ;; 10568 10569 netbsd*) 10570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10572 else 10573 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10574 fi 10575 hardcode_libdir_flag_spec='-R$libdir' 10576 hardcode_direct=yes 10577 hardcode_shlibpath_var=no 10578 ;; 10579 10580 newsos6) 10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10582 hardcode_direct=yes 10583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10584 hardcode_libdir_separator=: 10585 hardcode_shlibpath_var=no 10586 ;; 10587 10588 *nto* | *qnx*) 10589 ;; 10590 10591 openbsd* | bitrig*) 10592 if test -f /usr/libexec/ld.so; then 10593 hardcode_direct=yes 10594 hardcode_shlibpath_var=no 10595 hardcode_direct_absolute=yes 10596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10597 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10598 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10599 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10600 export_dynamic_flag_spec='$wl-E' 10601 else 10602 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10603 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10604 fi 10605 else 10606 ld_shlibs=no 10607 fi 10608 ;; 10609 10610 os2*) 10611 hardcode_libdir_flag_spec='-L$libdir' 10612 hardcode_minus_L=yes 10613 allow_undefined_flag=unsupported 10614 shrext_cmds=.dll 10615 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10616 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10617 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10618 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10619 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10620 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10621 emximp -o $lib $output_objdir/$libname.def' 10622 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10623 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10624 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10625 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10626 prefix_cmds="$SED"~ 10627 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10628 prefix_cmds="$prefix_cmds -e 1d"; 10629 fi~ 10630 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10631 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10633 emximp -o $lib $output_objdir/$libname.def' 10634 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10635 enable_shared_with_static_runtimes=yes 10636 file_list_spec='@' 10637 ;; 10638 10639 osf3*) 10640 if test yes = "$GCC"; then 10641 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10642 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' 10643 else 10644 allow_undefined_flag=' -expect_unresolved \*' 10645 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' 10646 fi 10647 archive_cmds_need_lc='no' 10648 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10649 hardcode_libdir_separator=: 10650 ;; 10651 10652 osf4* | osf5*) # as osf3* with the addition of -msym flag 10653 if test yes = "$GCC"; then 10654 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10655 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' 10656 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10657 else 10658 allow_undefined_flag=' -expect_unresolved \*' 10659 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' 10660 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~ 10661 $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' 10662 10663 # Both c and cxx compiler support -rpath directly 10664 hardcode_libdir_flag_spec='-rpath $libdir' 10665 fi 10666 archive_cmds_need_lc='no' 10667 hardcode_libdir_separator=: 10668 ;; 10669 10670 solaris*) 10671 no_undefined_flag=' -z defs' 10672 if test yes = "$GCC"; then 10673 wlarc='$wl' 10674 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10676 $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' 10677 else 10678 case `$CC -V 2>&1` in 10679 *"Compilers 5.0"*) 10680 wlarc='' 10681 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10682 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10683 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10684 ;; 10685 *) 10686 wlarc='$wl' 10687 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10689 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10690 ;; 10691 esac 10692 fi 10693 hardcode_libdir_flag_spec='-R$libdir' 10694 hardcode_shlibpath_var=no 10695 case $host_os in 10696 solaris2.[0-5] | solaris2.[0-5].*) ;; 10697 *) 10698 # The compiler driver will combine and reorder linker options, 10699 # but understands '-z linker_flag'. GCC discards it without '$wl', 10700 # but is careful enough not to reorder. 10701 # Supported since Solaris 2.6 (maybe 2.5.1?) 10702 if test yes = "$GCC"; then 10703 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10704 else 10705 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10706 fi 10707 ;; 10708 esac 10709 link_all_deplibs=yes 10710 ;; 10711 10712 sunos4*) 10713 if test sequent = "$host_vendor"; then 10714 # Use $CC to link under sequent, because it throws in some extra .o 10715 # files that make .init and .fini sections work. 10716 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10717 else 10718 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10719 fi 10720 hardcode_libdir_flag_spec='-L$libdir' 10721 hardcode_direct=yes 10722 hardcode_minus_L=yes 10723 hardcode_shlibpath_var=no 10724 ;; 10725 10726 sysv4) 10727 case $host_vendor in 10728 sni) 10729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10730 hardcode_direct=yes # is this really true??? 10731 ;; 10732 siemens) 10733 ## LD is ld it makes a PLAMLIB 10734 ## CC just makes a GrossModule. 10735 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10736 reload_cmds='$CC -r -o $output$reload_objs' 10737 hardcode_direct=no 10738 ;; 10739 motorola) 10740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10741 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10742 ;; 10743 esac 10744 runpath_var='LD_RUN_PATH' 10745 hardcode_shlibpath_var=no 10746 ;; 10747 10748 sysv4.3*) 10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10750 hardcode_shlibpath_var=no 10751 export_dynamic_flag_spec='-Bexport' 10752 ;; 10753 10754 sysv4*MP*) 10755 if test -d /usr/nec; then 10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10757 hardcode_shlibpath_var=no 10758 runpath_var=LD_RUN_PATH 10759 hardcode_runpath_var=yes 10760 ld_shlibs=yes 10761 fi 10762 ;; 10763 10764 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10765 no_undefined_flag='$wl-z,text' 10766 archive_cmds_need_lc=no 10767 hardcode_shlibpath_var=no 10768 runpath_var='LD_RUN_PATH' 10769 10770 if test yes = "$GCC"; then 10771 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10772 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10773 else 10774 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10775 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10776 fi 10777 ;; 10778 10779 sysv5* | sco3.2v5* | sco5v6*) 10780 # Note: We CANNOT use -z defs as we might desire, because we do not 10781 # link with -lc, and that would cause any symbols used from libc to 10782 # always be unresolved, which means just about no library would 10783 # ever link correctly. If we're not using GNU ld we use -z text 10784 # though, which does catch some bad symbols but isn't as heavy-handed 10785 # as -z defs. 10786 no_undefined_flag='$wl-z,text' 10787 allow_undefined_flag='$wl-z,nodefs' 10788 archive_cmds_need_lc=no 10789 hardcode_shlibpath_var=no 10790 hardcode_libdir_flag_spec='$wl-R,$libdir' 10791 hardcode_libdir_separator=':' 10792 link_all_deplibs=yes 10793 export_dynamic_flag_spec='$wl-Bexport' 10794 runpath_var='LD_RUN_PATH' 10795 10796 if test yes = "$GCC"; then 10797 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10798 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10799 else 10800 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10801 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10802 fi 10803 ;; 10804 10805 uts4*) 10806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10807 hardcode_libdir_flag_spec='-L$libdir' 10808 hardcode_shlibpath_var=no 10809 ;; 10810 10811 *) 10812 ld_shlibs=no 10813 ;; 10814 esac 10815 10816 if test sni = "$host_vendor"; then 10817 case $host in 10818 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10819 export_dynamic_flag_spec='$wl-Blargedynsym' 10820 ;; 10821 esac 10822 fi 10823 fi 10824 10825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10826printf "%s\n" "$ld_shlibs" >&6; } 10827test no = "$ld_shlibs" && can_build_shared=no 10828 10829with_gnu_ld=$with_gnu_ld 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845# 10846# Do we need to explicitly link libc? 10847# 10848case "x$archive_cmds_need_lc" in 10849x|xyes) 10850 # Assume -lc should be added 10851 archive_cmds_need_lc=yes 10852 10853 if test yes,yes = "$GCC,$enable_shared"; then 10854 case $archive_cmds in 10855 *'~'*) 10856 # FIXME: we may have to deal with multi-command sequences. 10857 ;; 10858 '$CC '*) 10859 # Test whether the compiler implicitly links with -lc since on some 10860 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10861 # to ld, don't add -lc before -lgcc. 10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10863printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10864if test ${lt_cv_archive_cmds_need_lc+y} 10865then : 10866 printf %s "(cached) " >&6 10867else $as_nop 10868 $RM conftest* 10869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10870 10871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10872 (eval $ac_compile) 2>&5 10873 ac_status=$? 10874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10875 test $ac_status = 0; } 2>conftest.err; then 10876 soname=conftest 10877 lib=conftest 10878 libobjs=conftest.$ac_objext 10879 deplibs= 10880 wl=$lt_prog_compiler_wl 10881 pic_flag=$lt_prog_compiler_pic 10882 compiler_flags=-v 10883 linker_flags=-v 10884 verstring= 10885 output_objdir=. 10886 libname=conftest 10887 lt_save_allow_undefined_flag=$allow_undefined_flag 10888 allow_undefined_flag= 10889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10890 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10891 ac_status=$? 10892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10893 test $ac_status = 0; } 10894 then 10895 lt_cv_archive_cmds_need_lc=no 10896 else 10897 lt_cv_archive_cmds_need_lc=yes 10898 fi 10899 allow_undefined_flag=$lt_save_allow_undefined_flag 10900 else 10901 cat conftest.err 1>&5 10902 fi 10903 $RM conftest* 10904 10905fi 10906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10907printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10908 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10909 ;; 10910 esac 10911 fi 10912 ;; 10913esac 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11067printf %s "checking dynamic linker characteristics... " >&6; } 11068 11069if test yes = "$GCC"; then 11070 case $host_os in 11071 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11072 *) lt_awk_arg='/^libraries:/' ;; 11073 esac 11074 case $host_os in 11075 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11076 *) lt_sed_strip_eq='s|=/|/|g' ;; 11077 esac 11078 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11079 case $lt_search_path_spec in 11080 *\;*) 11081 # if the path contains ";" then we assume it to be the separator 11082 # otherwise default to the standard path separator (i.e. ":") - it is 11083 # assumed that no part of a normal pathname contains ";" but that should 11084 # okay in the real world where ";" in dirpaths is itself problematic. 11085 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11086 ;; 11087 *) 11088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11089 ;; 11090 esac 11091 # Ok, now we have the path, separated by spaces, we can step through it 11092 # and add multilib dir if necessary... 11093 lt_tmp_lt_search_path_spec= 11094 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11095 # ...but if some path component already ends with the multilib dir we assume 11096 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11097 case "$lt_multi_os_dir; $lt_search_path_spec " in 11098 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11099 lt_multi_os_dir= 11100 ;; 11101 esac 11102 for lt_sys_path in $lt_search_path_spec; do 11103 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11105 elif test -n "$lt_multi_os_dir"; then 11106 test -d "$lt_sys_path" && \ 11107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11108 fi 11109 done 11110 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11111BEGIN {RS = " "; FS = "/|\n";} { 11112 lt_foo = ""; 11113 lt_count = 0; 11114 for (lt_i = NF; lt_i > 0; lt_i--) { 11115 if ($lt_i != "" && $lt_i != ".") { 11116 if ($lt_i == "..") { 11117 lt_count++; 11118 } else { 11119 if (lt_count == 0) { 11120 lt_foo = "/" $lt_i lt_foo; 11121 } else { 11122 lt_count--; 11123 } 11124 } 11125 } 11126 } 11127 if (lt_foo != "") { lt_freq[lt_foo]++; } 11128 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11129}'` 11130 # AWK program above erroneously prepends '/' to C:/dos/paths 11131 # for these hosts. 11132 case $host_os in 11133 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11134 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11135 esac 11136 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11137else 11138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11139fi 11140library_names_spec= 11141libname_spec='lib$name' 11142soname_spec= 11143shrext_cmds=.so 11144postinstall_cmds= 11145postuninstall_cmds= 11146finish_cmds= 11147finish_eval= 11148shlibpath_var= 11149shlibpath_overrides_runpath=unknown 11150version_type=none 11151dynamic_linker="$host_os ld.so" 11152sys_lib_dlsearch_path_spec="/lib /usr/lib" 11153need_lib_prefix=unknown 11154hardcode_into_libs=no 11155 11156# when you set need_version to no, make sure it does not cause -set_version 11157# flags to be left without arguments 11158need_version=unknown 11159 11160 11161 11162case $host_os in 11163aix3*) 11164 version_type=linux # correct to gnu/linux during the next big refactor 11165 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11166 shlibpath_var=LIBPATH 11167 11168 # AIX 3 has no versioning support, so we append a major version to the name. 11169 soname_spec='$libname$release$shared_ext$major' 11170 ;; 11171 11172aix[4-9]*) 11173 version_type=linux # correct to gnu/linux during the next big refactor 11174 need_lib_prefix=no 11175 need_version=no 11176 hardcode_into_libs=yes 11177 if test ia64 = "$host_cpu"; then 11178 # AIX 5 supports IA64 11179 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11180 shlibpath_var=LD_LIBRARY_PATH 11181 else 11182 # With GCC up to 2.95.x, collect2 would create an import file 11183 # for dependence libraries. The import file would start with 11184 # the line '#! .'. This would cause the generated library to 11185 # depend on '.', always an invalid library. This was fixed in 11186 # development snapshots of GCC prior to 3.0. 11187 case $host_os in 11188 aix4 | aix4.[01] | aix4.[01].*) 11189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11190 echo ' yes ' 11191 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11192 : 11193 else 11194 can_build_shared=no 11195 fi 11196 ;; 11197 esac 11198 # Using Import Files as archive members, it is possible to support 11199 # filename-based versioning of shared library archives on AIX. While 11200 # this would work for both with and without runtime linking, it will 11201 # prevent static linking of such archives. So we do filename-based 11202 # shared library versioning with .so extension only, which is used 11203 # when both runtime linking and shared linking is enabled. 11204 # Unfortunately, runtime linking may impact performance, so we do 11205 # not want this to be the default eventually. Also, we use the 11206 # versioned .so libs for executables only if there is the -brtl 11207 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11208 # To allow for filename-based versioning support, we need to create 11209 # libNAME.so.V as an archive file, containing: 11210 # *) an Import File, referring to the versioned filename of the 11211 # archive as well as the shared archive member, telling the 11212 # bitwidth (32 or 64) of that shared object, and providing the 11213 # list of exported symbols of that shared object, eventually 11214 # decorated with the 'weak' keyword 11215 # *) the shared object with the F_LOADONLY flag set, to really avoid 11216 # it being seen by the linker. 11217 # At run time we better use the real file rather than another symlink, 11218 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11219 11220 case $with_aix_soname,$aix_use_runtimelinking in 11221 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11222 # soname into executable. Probably we can add versioning support to 11223 # collect2, so additional links can be useful in future. 11224 aix,yes) # traditional libtool 11225 dynamic_linker='AIX unversionable lib.so' 11226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11227 # instead of lib<name>.a to let people know that these are not 11228 # typical AIX shared libraries. 11229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11230 ;; 11231 aix,no) # traditional AIX only 11232 dynamic_linker='AIX lib.a(lib.so.V)' 11233 # We preserve .a as extension for shared libraries through AIX4.2 11234 # and later when we are not doing run time linking. 11235 library_names_spec='$libname$release.a $libname.a' 11236 soname_spec='$libname$release$shared_ext$major' 11237 ;; 11238 svr4,*) # full svr4 only 11239 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11240 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11241 # We do not specify a path in Import Files, so LIBPATH fires. 11242 shlibpath_overrides_runpath=yes 11243 ;; 11244 *,yes) # both, prefer svr4 11245 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11246 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11247 # unpreferred sharedlib libNAME.a needs extra handling 11248 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"' 11249 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"' 11250 # We do not specify a path in Import Files, so LIBPATH fires. 11251 shlibpath_overrides_runpath=yes 11252 ;; 11253 *,no) # both, prefer aix 11254 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11255 library_names_spec='$libname$release.a $libname.a' 11256 soname_spec='$libname$release$shared_ext$major' 11257 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11258 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)' 11259 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"' 11260 ;; 11261 esac 11262 shlibpath_var=LIBPATH 11263 fi 11264 ;; 11265 11266amigaos*) 11267 case $host_cpu in 11268 powerpc) 11269 # Since July 2007 AmigaOS4 officially supports .so libraries. 11270 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11272 ;; 11273 m68k) 11274 library_names_spec='$libname.ixlibrary $libname.a' 11275 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11276 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' 11277 ;; 11278 esac 11279 ;; 11280 11281beos*) 11282 library_names_spec='$libname$shared_ext' 11283 dynamic_linker="$host_os ld.so" 11284 shlibpath_var=LIBRARY_PATH 11285 ;; 11286 11287bsdi[45]*) 11288 version_type=linux # correct to gnu/linux during the next big refactor 11289 need_version=no 11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11291 soname_spec='$libname$release$shared_ext$major' 11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11293 shlibpath_var=LD_LIBRARY_PATH 11294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11296 # the default ld.so.conf also contains /usr/contrib/lib and 11297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11298 # libtool to hard-code these into programs 11299 ;; 11300 11301cygwin* | mingw* | pw32* | cegcc*) 11302 version_type=windows 11303 shrext_cmds=.dll 11304 need_version=no 11305 need_lib_prefix=no 11306 11307 case $GCC,$cc_basename in 11308 yes,*) 11309 # gcc 11310 library_names_spec='$libname.dll.a' 11311 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11312 postinstall_cmds='base_file=`basename \$file`~ 11313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11314 dldir=$destdir/`dirname \$dlpath`~ 11315 test -d \$dldir || mkdir -p \$dldir~ 11316 $install_prog $dir/$dlname \$dldir/$dlname~ 11317 chmod a+x \$dldir/$dlname~ 11318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11320 fi' 11321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11322 dlpath=$dir/\$dldll~ 11323 $RM \$dlpath' 11324 shlibpath_overrides_runpath=yes 11325 11326 case $host_os in 11327 cygwin*) 11328 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11329 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11330 11331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11332 ;; 11333 mingw* | cegcc*) 11334 # MinGW DLLs use traditional 'lib' prefix 11335 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11336 ;; 11337 pw32*) 11338 # pw32 DLLs use 'pw' prefix rather than 'lib' 11339 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11340 ;; 11341 esac 11342 dynamic_linker='Win32 ld.exe' 11343 ;; 11344 11345 *,cl* | *,icl*) 11346 # Native MSVC or ICC 11347 libname_spec='$name' 11348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11349 library_names_spec='$libname.dll.lib' 11350 11351 case $build_os in 11352 mingw*) 11353 sys_lib_search_path_spec= 11354 lt_save_ifs=$IFS 11355 IFS=';' 11356 for lt_path in $LIB 11357 do 11358 IFS=$lt_save_ifs 11359 # Let DOS variable expansion print the short 8.3 style file name. 11360 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11361 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11362 done 11363 IFS=$lt_save_ifs 11364 # Convert to MSYS style. 11365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11366 ;; 11367 cygwin*) 11368 # Convert to unix form, then to dos form, then back to unix form 11369 # but this time dos style (no spaces!) so that the unix form looks 11370 # like /cygdrive/c/PROGRA~1:/cygdr... 11371 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11372 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11373 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11374 ;; 11375 *) 11376 sys_lib_search_path_spec=$LIB 11377 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11378 # It is most probably a Windows format PATH. 11379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11380 else 11381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11382 fi 11383 # FIXME: find the short name or the path components, as spaces are 11384 # common. (e.g. "Program Files" -> "PROGRA~1") 11385 ;; 11386 esac 11387 11388 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11389 postinstall_cmds='base_file=`basename \$file`~ 11390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11391 dldir=$destdir/`dirname \$dlpath`~ 11392 test -d \$dldir || mkdir -p \$dldir~ 11393 $install_prog $dir/$dlname \$dldir/$dlname' 11394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11395 dlpath=$dir/\$dldll~ 11396 $RM \$dlpath' 11397 shlibpath_overrides_runpath=yes 11398 dynamic_linker='Win32 link.exe' 11399 ;; 11400 11401 *) 11402 # Assume MSVC and ICC wrapper 11403 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11404 dynamic_linker='Win32 ld.exe' 11405 ;; 11406 esac 11407 # FIXME: first we should search . and the directory the executable is in 11408 shlibpath_var=PATH 11409 ;; 11410 11411darwin* | rhapsody*) 11412 dynamic_linker="$host_os dyld" 11413 version_type=darwin 11414 need_lib_prefix=no 11415 need_version=no 11416 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11417 soname_spec='$libname$release$major$shared_ext' 11418 shlibpath_overrides_runpath=yes 11419 shlibpath_var=DYLD_LIBRARY_PATH 11420 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11421 11422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11424 ;; 11425 11426dgux*) 11427 version_type=linux # correct to gnu/linux during the next big refactor 11428 need_lib_prefix=no 11429 need_version=no 11430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11431 soname_spec='$libname$release$shared_ext$major' 11432 shlibpath_var=LD_LIBRARY_PATH 11433 ;; 11434 11435freebsd* | dragonfly* | midnightbsd*) 11436 # DragonFly does not have aout. When/if they implement a new 11437 # versioning mechanism, adjust this. 11438 if test -x /usr/bin/objformat; then 11439 objformat=`/usr/bin/objformat` 11440 else 11441 case $host_os in 11442 freebsd[23].*) objformat=aout ;; 11443 *) objformat=elf ;; 11444 esac 11445 fi 11446 version_type=freebsd-$objformat 11447 case $version_type in 11448 freebsd-elf*) 11449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11450 soname_spec='$libname$release$shared_ext$major' 11451 need_version=no 11452 need_lib_prefix=no 11453 ;; 11454 freebsd-*) 11455 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11456 need_version=yes 11457 ;; 11458 esac 11459 shlibpath_var=LD_LIBRARY_PATH 11460 case $host_os in 11461 freebsd2.*) 11462 shlibpath_overrides_runpath=yes 11463 ;; 11464 freebsd3.[01]* | freebsdelf3.[01]*) 11465 shlibpath_overrides_runpath=yes 11466 hardcode_into_libs=yes 11467 ;; 11468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11470 shlibpath_overrides_runpath=no 11471 hardcode_into_libs=yes 11472 ;; 11473 *) # from 4.6 on, and DragonFly 11474 shlibpath_overrides_runpath=yes 11475 hardcode_into_libs=yes 11476 ;; 11477 esac 11478 ;; 11479 11480haiku*) 11481 version_type=linux # correct to gnu/linux during the next big refactor 11482 need_lib_prefix=no 11483 need_version=no 11484 dynamic_linker="$host_os runtime_loader" 11485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11486 soname_spec='$libname$release$shared_ext$major' 11487 shlibpath_var=LIBRARY_PATH 11488 shlibpath_overrides_runpath=no 11489 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11490 hardcode_into_libs=yes 11491 ;; 11492 11493hpux9* | hpux10* | hpux11*) 11494 # Give a soname corresponding to the major version so that dld.sl refuses to 11495 # link against other versions. 11496 version_type=sunos 11497 need_lib_prefix=no 11498 need_version=no 11499 case $host_cpu in 11500 ia64*) 11501 shrext_cmds='.so' 11502 hardcode_into_libs=yes 11503 dynamic_linker="$host_os dld.so" 11504 shlibpath_var=LD_LIBRARY_PATH 11505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11507 soname_spec='$libname$release$shared_ext$major' 11508 if test 32 = "$HPUX_IA64_MODE"; then 11509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11510 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11511 else 11512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11513 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11514 fi 11515 ;; 11516 hppa*64*) 11517 shrext_cmds='.sl' 11518 hardcode_into_libs=yes 11519 dynamic_linker="$host_os dld.sl" 11520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11523 soname_spec='$libname$release$shared_ext$major' 11524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11526 ;; 11527 *) 11528 shrext_cmds='.sl' 11529 dynamic_linker="$host_os dld.sl" 11530 shlibpath_var=SHLIB_PATH 11531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11533 soname_spec='$libname$release$shared_ext$major' 11534 ;; 11535 esac 11536 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11537 postinstall_cmds='chmod 555 $lib' 11538 # or fails outright, so override atomically: 11539 install_override_mode=555 11540 ;; 11541 11542interix[3-9]*) 11543 version_type=linux # correct to gnu/linux during the next big refactor 11544 need_lib_prefix=no 11545 need_version=no 11546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11547 soname_spec='$libname$release$shared_ext$major' 11548 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11549 shlibpath_var=LD_LIBRARY_PATH 11550 shlibpath_overrides_runpath=no 11551 hardcode_into_libs=yes 11552 ;; 11553 11554irix5* | irix6* | nonstopux*) 11555 case $host_os in 11556 nonstopux*) version_type=nonstopux ;; 11557 *) 11558 if test yes = "$lt_cv_prog_gnu_ld"; then 11559 version_type=linux # correct to gnu/linux during the next big refactor 11560 else 11561 version_type=irix 11562 fi ;; 11563 esac 11564 need_lib_prefix=no 11565 need_version=no 11566 soname_spec='$libname$release$shared_ext$major' 11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11568 case $host_os in 11569 irix5* | nonstopux*) 11570 libsuff= shlibsuff= 11571 ;; 11572 *) 11573 case $LD in # libtool.m4 will add one of these switches to LD 11574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11575 libsuff= shlibsuff= libmagic=32-bit;; 11576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11577 libsuff=32 shlibsuff=N32 libmagic=N32;; 11578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11579 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11580 *) libsuff= shlibsuff= libmagic=never-match;; 11581 esac 11582 ;; 11583 esac 11584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11585 shlibpath_overrides_runpath=no 11586 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11587 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11588 hardcode_into_libs=yes 11589 ;; 11590 11591# No shared lib support for Linux oldld, aout, or coff. 11592linux*oldld* | linux*aout* | linux*coff*) 11593 dynamic_linker=no 11594 ;; 11595 11596linux*android*) 11597 version_type=none # Android doesn't support versioned libraries. 11598 need_lib_prefix=no 11599 need_version=no 11600 library_names_spec='$libname$release$shared_ext' 11601 soname_spec='$libname$release$shared_ext' 11602 finish_cmds= 11603 shlibpath_var=LD_LIBRARY_PATH 11604 shlibpath_overrides_runpath=yes 11605 11606 # This implies no fast_install, which is unacceptable. 11607 # Some rework will be needed to allow for fast_install 11608 # before this can be enabled. 11609 hardcode_into_libs=yes 11610 11611 dynamic_linker='Android linker' 11612 # Don't embed -rpath directories since the linker doesn't support them. 11613 hardcode_libdir_flag_spec='-L$libdir' 11614 ;; 11615 11616# This must be glibc/ELF. 11617linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11618 version_type=linux # correct to gnu/linux during the next big refactor 11619 need_lib_prefix=no 11620 need_version=no 11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11622 soname_spec='$libname$release$shared_ext$major' 11623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11624 shlibpath_var=LD_LIBRARY_PATH 11625 shlibpath_overrides_runpath=no 11626 11627 # Some binutils ld are patched to set DT_RUNPATH 11628 if test ${lt_cv_shlibpath_overrides_runpath+y} 11629then : 11630 printf %s "(cached) " >&6 11631else $as_nop 11632 lt_cv_shlibpath_overrides_runpath=no 11633 save_LDFLAGS=$LDFLAGS 11634 save_libdir=$libdir 11635 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11636 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11638/* end confdefs.h. */ 11639 11640int 11641main (void) 11642{ 11643 11644 ; 11645 return 0; 11646} 11647_ACEOF 11648if ac_fn_c_try_link "$LINENO" 11649then : 11650 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11651then : 11652 lt_cv_shlibpath_overrides_runpath=yes 11653fi 11654fi 11655rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11656 conftest$ac_exeext conftest.$ac_ext 11657 LDFLAGS=$save_LDFLAGS 11658 libdir=$save_libdir 11659 11660fi 11661 11662 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11663 11664 # This implies no fast_install, which is unacceptable. 11665 # Some rework will be needed to allow for fast_install 11666 # before this can be enabled. 11667 hardcode_into_libs=yes 11668 11669 # Ideally, we could use ldconfig to report *all* directores which are 11670 # searched for libraries, however this is still not possible. Aside from not 11671 # being certain /sbin/ldconfig is available, command 11672 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11673 # even though it is searched at run-time. Try to do the best guess by 11674 # appending ld.so.conf contents (and includes) to the search path. 11675 if test -f /etc/ld.so.conf; then 11676 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' ' '` 11677 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11678 fi 11679 11680 # We used to test for /lib/ld.so.1 and disable shared libraries on 11681 # powerpc, because MkLinux only supported shared libraries with the 11682 # GNU dynamic linker. Since this was broken with cross compilers, 11683 # most powerpc-linux boxes support dynamic linking these days and 11684 # people can always --disable-shared, the test was removed, and we 11685 # assume the GNU/Linux dynamic linker is in use. 11686 dynamic_linker='GNU/Linux ld.so' 11687 ;; 11688 11689netbsd*) 11690 version_type=sunos 11691 need_lib_prefix=no 11692 need_version=no 11693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11696 dynamic_linker='NetBSD (a.out) ld.so' 11697 else 11698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11699 soname_spec='$libname$release$shared_ext$major' 11700 dynamic_linker='NetBSD ld.elf_so' 11701 fi 11702 shlibpath_var=LD_LIBRARY_PATH 11703 shlibpath_overrides_runpath=yes 11704 hardcode_into_libs=yes 11705 ;; 11706 11707newsos6) 11708 version_type=linux # correct to gnu/linux during the next big refactor 11709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11710 shlibpath_var=LD_LIBRARY_PATH 11711 shlibpath_overrides_runpath=yes 11712 ;; 11713 11714*nto* | *qnx*) 11715 version_type=qnx 11716 need_lib_prefix=no 11717 need_version=no 11718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11719 soname_spec='$libname$release$shared_ext$major' 11720 shlibpath_var=LD_LIBRARY_PATH 11721 shlibpath_overrides_runpath=no 11722 hardcode_into_libs=yes 11723 dynamic_linker='ldqnx.so' 11724 ;; 11725 11726openbsd* | bitrig*) 11727 version_type=sunos 11728 sys_lib_dlsearch_path_spec=/usr/lib 11729 need_lib_prefix=no 11730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11731 need_version=no 11732 else 11733 need_version=yes 11734 fi 11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11737 shlibpath_var=LD_LIBRARY_PATH 11738 shlibpath_overrides_runpath=yes 11739 ;; 11740 11741os2*) 11742 libname_spec='$name' 11743 version_type=windows 11744 shrext_cmds=.dll 11745 need_version=no 11746 need_lib_prefix=no 11747 # OS/2 can only load a DLL with a base name of 8 characters or less. 11748 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11749 v=$($ECHO $release$versuffix | tr -d .-); 11750 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11751 $ECHO $n$v`$shared_ext' 11752 library_names_spec='${libname}_dll.$libext' 11753 dynamic_linker='OS/2 ld.exe' 11754 shlibpath_var=BEGINLIBPATH 11755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11757 postinstall_cmds='base_file=`basename \$file`~ 11758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11759 dldir=$destdir/`dirname \$dlpath`~ 11760 test -d \$dldir || mkdir -p \$dldir~ 11761 $install_prog $dir/$dlname \$dldir/$dlname~ 11762 chmod a+x \$dldir/$dlname~ 11763 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11764 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11765 fi' 11766 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11767 dlpath=$dir/\$dldll~ 11768 $RM \$dlpath' 11769 ;; 11770 11771osf3* | osf4* | osf5*) 11772 version_type=osf 11773 need_lib_prefix=no 11774 need_version=no 11775 soname_spec='$libname$release$shared_ext$major' 11776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11777 shlibpath_var=LD_LIBRARY_PATH 11778 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11780 ;; 11781 11782rdos*) 11783 dynamic_linker=no 11784 ;; 11785 11786solaris*) 11787 version_type=linux # correct to gnu/linux during the next big refactor 11788 need_lib_prefix=no 11789 need_version=no 11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11791 soname_spec='$libname$release$shared_ext$major' 11792 shlibpath_var=LD_LIBRARY_PATH 11793 shlibpath_overrides_runpath=yes 11794 hardcode_into_libs=yes 11795 # ldd complains unless libraries are executable 11796 postinstall_cmds='chmod +x $lib' 11797 ;; 11798 11799sunos4*) 11800 version_type=sunos 11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11802 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11803 shlibpath_var=LD_LIBRARY_PATH 11804 shlibpath_overrides_runpath=yes 11805 if test yes = "$with_gnu_ld"; then 11806 need_lib_prefix=no 11807 fi 11808 need_version=yes 11809 ;; 11810 11811sysv4 | sysv4.3*) 11812 version_type=linux # correct to gnu/linux during the next big refactor 11813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11814 soname_spec='$libname$release$shared_ext$major' 11815 shlibpath_var=LD_LIBRARY_PATH 11816 case $host_vendor in 11817 sni) 11818 shlibpath_overrides_runpath=no 11819 need_lib_prefix=no 11820 runpath_var=LD_RUN_PATH 11821 ;; 11822 siemens) 11823 need_lib_prefix=no 11824 ;; 11825 motorola) 11826 need_lib_prefix=no 11827 need_version=no 11828 shlibpath_overrides_runpath=no 11829 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11830 ;; 11831 esac 11832 ;; 11833 11834sysv4*MP*) 11835 if test -d /usr/nec; then 11836 version_type=linux # correct to gnu/linux during the next big refactor 11837 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11838 soname_spec='$libname$shared_ext.$major' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 fi 11841 ;; 11842 11843sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11844 version_type=sco 11845 need_lib_prefix=no 11846 need_version=no 11847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11848 soname_spec='$libname$release$shared_ext$major' 11849 shlibpath_var=LD_LIBRARY_PATH 11850 shlibpath_overrides_runpath=yes 11851 hardcode_into_libs=yes 11852 if test yes = "$with_gnu_ld"; then 11853 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11854 else 11855 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11856 case $host_os in 11857 sco3.2v5*) 11858 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11859 ;; 11860 esac 11861 fi 11862 sys_lib_dlsearch_path_spec='/usr/lib' 11863 ;; 11864 11865tpf*) 11866 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11867 version_type=linux # correct to gnu/linux during the next big refactor 11868 need_lib_prefix=no 11869 need_version=no 11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11871 shlibpath_var=LD_LIBRARY_PATH 11872 shlibpath_overrides_runpath=no 11873 hardcode_into_libs=yes 11874 ;; 11875 11876uts4*) 11877 version_type=linux # correct to gnu/linux during the next big refactor 11878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11879 soname_spec='$libname$release$shared_ext$major' 11880 shlibpath_var=LD_LIBRARY_PATH 11881 ;; 11882 11883*) 11884 dynamic_linker=no 11885 ;; 11886esac 11887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11888printf "%s\n" "$dynamic_linker" >&6; } 11889test no = "$dynamic_linker" && can_build_shared=no 11890 11891variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11892if test yes = "$GCC"; then 11893 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11894fi 11895 11896if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11897 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11898fi 11899 11900if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11901 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11902fi 11903 11904# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11905configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11906 11907# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11908func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11909 11910# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11911configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12010printf %s "checking how to hardcode library paths into programs... " >&6; } 12011hardcode_action= 12012if test -n "$hardcode_libdir_flag_spec" || 12013 test -n "$runpath_var" || 12014 test yes = "$hardcode_automatic"; then 12015 12016 # We can hardcode non-existent directories. 12017 if test no != "$hardcode_direct" && 12018 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12019 # have to relink, otherwise we might link with an installed library 12020 # when we should be linking with a yet-to-be-installed one 12021 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12022 test no != "$hardcode_minus_L"; then 12023 # Linking always hardcodes the temporary library directory. 12024 hardcode_action=relink 12025 else 12026 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12027 hardcode_action=immediate 12028 fi 12029else 12030 # We cannot hardcode anything, or else we can only hardcode existing 12031 # directories. 12032 hardcode_action=unsupported 12033fi 12034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12035printf "%s\n" "$hardcode_action" >&6; } 12036 12037if test relink = "$hardcode_action" || 12038 test yes = "$inherit_rpath"; then 12039 # Fast installation is not supported 12040 enable_fast_install=no 12041elif test yes = "$shlibpath_overrides_runpath" || 12042 test no = "$enable_shared"; then 12043 # Fast installation is not necessary 12044 enable_fast_install=needless 12045fi 12046 12047 12048 12049 12050 12051 12052 if test yes != "$enable_dlopen"; then 12053 enable_dlopen=unknown 12054 enable_dlopen_self=unknown 12055 enable_dlopen_self_static=unknown 12056else 12057 lt_cv_dlopen=no 12058 lt_cv_dlopen_libs= 12059 12060 case $host_os in 12061 beos*) 12062 lt_cv_dlopen=load_add_on 12063 lt_cv_dlopen_libs= 12064 lt_cv_dlopen_self=yes 12065 ;; 12066 12067 mingw* | pw32* | cegcc*) 12068 lt_cv_dlopen=LoadLibrary 12069 lt_cv_dlopen_libs= 12070 ;; 12071 12072 cygwin*) 12073 lt_cv_dlopen=dlopen 12074 lt_cv_dlopen_libs= 12075 ;; 12076 12077 darwin*) 12078 # if libdl is installed we need to link against it 12079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12080printf %s "checking for dlopen in -ldl... " >&6; } 12081if test ${ac_cv_lib_dl_dlopen+y} 12082then : 12083 printf %s "(cached) " >&6 12084else $as_nop 12085 ac_check_lib_save_LIBS=$LIBS 12086LIBS="-ldl $LIBS" 12087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12088/* end confdefs.h. */ 12089 12090/* Override any GCC internal prototype to avoid an error. 12091 Use char because int might match the return type of a GCC 12092 builtin and then its argument prototype would still apply. */ 12093char dlopen (); 12094int 12095main (void) 12096{ 12097return dlopen (); 12098 ; 12099 return 0; 12100} 12101_ACEOF 12102if ac_fn_c_try_link "$LINENO" 12103then : 12104 ac_cv_lib_dl_dlopen=yes 12105else $as_nop 12106 ac_cv_lib_dl_dlopen=no 12107fi 12108rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12109 conftest$ac_exeext conftest.$ac_ext 12110LIBS=$ac_check_lib_save_LIBS 12111fi 12112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12113printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12114if test "x$ac_cv_lib_dl_dlopen" = xyes 12115then : 12116 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12117else $as_nop 12118 12119 lt_cv_dlopen=dyld 12120 lt_cv_dlopen_libs= 12121 lt_cv_dlopen_self=yes 12122 12123fi 12124 12125 ;; 12126 12127 tpf*) 12128 # Don't try to run any link tests for TPF. We know it's impossible 12129 # because TPF is a cross-compiler, and we know how we open DSOs. 12130 lt_cv_dlopen=dlopen 12131 lt_cv_dlopen_libs= 12132 lt_cv_dlopen_self=no 12133 ;; 12134 12135 *) 12136 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12137if test "x$ac_cv_func_shl_load" = xyes 12138then : 12139 lt_cv_dlopen=shl_load 12140else $as_nop 12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12142printf %s "checking for shl_load in -ldld... " >&6; } 12143if test ${ac_cv_lib_dld_shl_load+y} 12144then : 12145 printf %s "(cached) " >&6 12146else $as_nop 12147 ac_check_lib_save_LIBS=$LIBS 12148LIBS="-ldld $LIBS" 12149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12150/* end confdefs.h. */ 12151 12152/* Override any GCC internal prototype to avoid an error. 12153 Use char because int might match the return type of a GCC 12154 builtin and then its argument prototype would still apply. */ 12155char shl_load (); 12156int 12157main (void) 12158{ 12159return shl_load (); 12160 ; 12161 return 0; 12162} 12163_ACEOF 12164if ac_fn_c_try_link "$LINENO" 12165then : 12166 ac_cv_lib_dld_shl_load=yes 12167else $as_nop 12168 ac_cv_lib_dld_shl_load=no 12169fi 12170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12171 conftest$ac_exeext conftest.$ac_ext 12172LIBS=$ac_check_lib_save_LIBS 12173fi 12174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12175printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12176if test "x$ac_cv_lib_dld_shl_load" = xyes 12177then : 12178 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12179else $as_nop 12180 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12181if test "x$ac_cv_func_dlopen" = xyes 12182then : 12183 lt_cv_dlopen=dlopen 12184else $as_nop 12185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12186printf %s "checking for dlopen in -ldl... " >&6; } 12187if test ${ac_cv_lib_dl_dlopen+y} 12188then : 12189 printf %s "(cached) " >&6 12190else $as_nop 12191 ac_check_lib_save_LIBS=$LIBS 12192LIBS="-ldl $LIBS" 12193cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12194/* end confdefs.h. */ 12195 12196/* Override any GCC internal prototype to avoid an error. 12197 Use char because int might match the return type of a GCC 12198 builtin and then its argument prototype would still apply. */ 12199char dlopen (); 12200int 12201main (void) 12202{ 12203return dlopen (); 12204 ; 12205 return 0; 12206} 12207_ACEOF 12208if ac_fn_c_try_link "$LINENO" 12209then : 12210 ac_cv_lib_dl_dlopen=yes 12211else $as_nop 12212 ac_cv_lib_dl_dlopen=no 12213fi 12214rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12215 conftest$ac_exeext conftest.$ac_ext 12216LIBS=$ac_check_lib_save_LIBS 12217fi 12218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12219printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12220if test "x$ac_cv_lib_dl_dlopen" = xyes 12221then : 12222 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12223else $as_nop 12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12225printf %s "checking for dlopen in -lsvld... " >&6; } 12226if test ${ac_cv_lib_svld_dlopen+y} 12227then : 12228 printf %s "(cached) " >&6 12229else $as_nop 12230 ac_check_lib_save_LIBS=$LIBS 12231LIBS="-lsvld $LIBS" 12232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12233/* end confdefs.h. */ 12234 12235/* Override any GCC internal prototype to avoid an error. 12236 Use char because int might match the return type of a GCC 12237 builtin and then its argument prototype would still apply. */ 12238char dlopen (); 12239int 12240main (void) 12241{ 12242return dlopen (); 12243 ; 12244 return 0; 12245} 12246_ACEOF 12247if ac_fn_c_try_link "$LINENO" 12248then : 12249 ac_cv_lib_svld_dlopen=yes 12250else $as_nop 12251 ac_cv_lib_svld_dlopen=no 12252fi 12253rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12254 conftest$ac_exeext conftest.$ac_ext 12255LIBS=$ac_check_lib_save_LIBS 12256fi 12257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12258printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12259if test "x$ac_cv_lib_svld_dlopen" = xyes 12260then : 12261 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12262else $as_nop 12263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12264printf %s "checking for dld_link in -ldld... " >&6; } 12265if test ${ac_cv_lib_dld_dld_link+y} 12266then : 12267 printf %s "(cached) " >&6 12268else $as_nop 12269 ac_check_lib_save_LIBS=$LIBS 12270LIBS="-ldld $LIBS" 12271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12272/* end confdefs.h. */ 12273 12274/* Override any GCC internal prototype to avoid an error. 12275 Use char because int might match the return type of a GCC 12276 builtin and then its argument prototype would still apply. */ 12277char dld_link (); 12278int 12279main (void) 12280{ 12281return dld_link (); 12282 ; 12283 return 0; 12284} 12285_ACEOF 12286if ac_fn_c_try_link "$LINENO" 12287then : 12288 ac_cv_lib_dld_dld_link=yes 12289else $as_nop 12290 ac_cv_lib_dld_dld_link=no 12291fi 12292rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12293 conftest$ac_exeext conftest.$ac_ext 12294LIBS=$ac_check_lib_save_LIBS 12295fi 12296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12297printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12298if test "x$ac_cv_lib_dld_dld_link" = xyes 12299then : 12300 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12301fi 12302 12303 12304fi 12305 12306 12307fi 12308 12309 12310fi 12311 12312 12313fi 12314 12315 12316fi 12317 12318 ;; 12319 esac 12320 12321 if test no = "$lt_cv_dlopen"; then 12322 enable_dlopen=no 12323 else 12324 enable_dlopen=yes 12325 fi 12326 12327 case $lt_cv_dlopen in 12328 dlopen) 12329 save_CPPFLAGS=$CPPFLAGS 12330 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12331 12332 save_LDFLAGS=$LDFLAGS 12333 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12334 12335 save_LIBS=$LIBS 12336 LIBS="$lt_cv_dlopen_libs $LIBS" 12337 12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12339printf %s "checking whether a program can dlopen itself... " >&6; } 12340if test ${lt_cv_dlopen_self+y} 12341then : 12342 printf %s "(cached) " >&6 12343else $as_nop 12344 if test yes = "$cross_compiling"; then : 12345 lt_cv_dlopen_self=cross 12346else 12347 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12348 lt_status=$lt_dlunknown 12349 cat > conftest.$ac_ext <<_LT_EOF 12350#line $LINENO "configure" 12351#include "confdefs.h" 12352 12353#if HAVE_DLFCN_H 12354#include <dlfcn.h> 12355#endif 12356 12357#include <stdio.h> 12358 12359#ifdef RTLD_GLOBAL 12360# define LT_DLGLOBAL RTLD_GLOBAL 12361#else 12362# ifdef DL_GLOBAL 12363# define LT_DLGLOBAL DL_GLOBAL 12364# else 12365# define LT_DLGLOBAL 0 12366# endif 12367#endif 12368 12369/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12370 find out it does not work in some platform. */ 12371#ifndef LT_DLLAZY_OR_NOW 12372# ifdef RTLD_LAZY 12373# define LT_DLLAZY_OR_NOW RTLD_LAZY 12374# else 12375# ifdef DL_LAZY 12376# define LT_DLLAZY_OR_NOW DL_LAZY 12377# else 12378# ifdef RTLD_NOW 12379# define LT_DLLAZY_OR_NOW RTLD_NOW 12380# else 12381# ifdef DL_NOW 12382# define LT_DLLAZY_OR_NOW DL_NOW 12383# else 12384# define LT_DLLAZY_OR_NOW 0 12385# endif 12386# endif 12387# endif 12388# endif 12389#endif 12390 12391/* When -fvisibility=hidden is used, assume the code has been annotated 12392 correspondingly for the symbols needed. */ 12393#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12394int fnord () __attribute__((visibility("default"))); 12395#endif 12396 12397int fnord () { return 42; } 12398int main () 12399{ 12400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12401 int status = $lt_dlunknown; 12402 12403 if (self) 12404 { 12405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12406 else 12407 { 12408 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12409 else puts (dlerror ()); 12410 } 12411 /* dlclose (self); */ 12412 } 12413 else 12414 puts (dlerror ()); 12415 12416 return status; 12417} 12418_LT_EOF 12419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12420 (eval $ac_link) 2>&5 12421 ac_status=$? 12422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12423 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12424 (./conftest; exit; ) >&5 2>/dev/null 12425 lt_status=$? 12426 case x$lt_status in 12427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12429 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12430 esac 12431 else : 12432 # compilation failed 12433 lt_cv_dlopen_self=no 12434 fi 12435fi 12436rm -fr conftest* 12437 12438 12439fi 12440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12441printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12442 12443 if test yes = "$lt_cv_dlopen_self"; then 12444 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12446printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12447if test ${lt_cv_dlopen_self_static+y} 12448then : 12449 printf %s "(cached) " >&6 12450else $as_nop 12451 if test yes = "$cross_compiling"; then : 12452 lt_cv_dlopen_self_static=cross 12453else 12454 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12455 lt_status=$lt_dlunknown 12456 cat > conftest.$ac_ext <<_LT_EOF 12457#line $LINENO "configure" 12458#include "confdefs.h" 12459 12460#if HAVE_DLFCN_H 12461#include <dlfcn.h> 12462#endif 12463 12464#include <stdio.h> 12465 12466#ifdef RTLD_GLOBAL 12467# define LT_DLGLOBAL RTLD_GLOBAL 12468#else 12469# ifdef DL_GLOBAL 12470# define LT_DLGLOBAL DL_GLOBAL 12471# else 12472# define LT_DLGLOBAL 0 12473# endif 12474#endif 12475 12476/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12477 find out it does not work in some platform. */ 12478#ifndef LT_DLLAZY_OR_NOW 12479# ifdef RTLD_LAZY 12480# define LT_DLLAZY_OR_NOW RTLD_LAZY 12481# else 12482# ifdef DL_LAZY 12483# define LT_DLLAZY_OR_NOW DL_LAZY 12484# else 12485# ifdef RTLD_NOW 12486# define LT_DLLAZY_OR_NOW RTLD_NOW 12487# else 12488# ifdef DL_NOW 12489# define LT_DLLAZY_OR_NOW DL_NOW 12490# else 12491# define LT_DLLAZY_OR_NOW 0 12492# endif 12493# endif 12494# endif 12495# endif 12496#endif 12497 12498/* When -fvisibility=hidden is used, assume the code has been annotated 12499 correspondingly for the symbols needed. */ 12500#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12501int fnord () __attribute__((visibility("default"))); 12502#endif 12503 12504int fnord () { return 42; } 12505int main () 12506{ 12507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12508 int status = $lt_dlunknown; 12509 12510 if (self) 12511 { 12512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12513 else 12514 { 12515 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12516 else puts (dlerror ()); 12517 } 12518 /* dlclose (self); */ 12519 } 12520 else 12521 puts (dlerror ()); 12522 12523 return status; 12524} 12525_LT_EOF 12526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12527 (eval $ac_link) 2>&5 12528 ac_status=$? 12529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12530 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12531 (./conftest; exit; ) >&5 2>/dev/null 12532 lt_status=$? 12533 case x$lt_status in 12534 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12535 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12536 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12537 esac 12538 else : 12539 # compilation failed 12540 lt_cv_dlopen_self_static=no 12541 fi 12542fi 12543rm -fr conftest* 12544 12545 12546fi 12547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12548printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12549 fi 12550 12551 CPPFLAGS=$save_CPPFLAGS 12552 LDFLAGS=$save_LDFLAGS 12553 LIBS=$save_LIBS 12554 ;; 12555 esac 12556 12557 case $lt_cv_dlopen_self in 12558 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12559 *) enable_dlopen_self=unknown ;; 12560 esac 12561 12562 case $lt_cv_dlopen_self_static in 12563 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12564 *) enable_dlopen_self_static=unknown ;; 12565 esac 12566fi 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584striplib= 12585old_striplib= 12586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12587printf %s "checking whether stripping libraries is possible... " >&6; } 12588if test -z "$STRIP"; then 12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12590printf "%s\n" "no" >&6; } 12591else 12592 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12593 old_striplib="$STRIP --strip-debug" 12594 striplib="$STRIP --strip-unneeded" 12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12596printf "%s\n" "yes" >&6; } 12597 else 12598 case $host_os in 12599 darwin*) 12600 # FIXME - insert some real tests, host_os isn't really good enough 12601 striplib="$STRIP -x" 12602 old_striplib="$STRIP -S" 12603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12604printf "%s\n" "yes" >&6; } 12605 ;; 12606 freebsd*) 12607 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12608 old_striplib="$STRIP --strip-debug" 12609 striplib="$STRIP --strip-unneeded" 12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12611printf "%s\n" "yes" >&6; } 12612 else 12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12614printf "%s\n" "no" >&6; } 12615 fi 12616 ;; 12617 *) 12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12619printf "%s\n" "no" >&6; } 12620 ;; 12621 esac 12622 fi 12623fi 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 # Report what library types will actually be built 12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12638printf %s "checking if libtool supports shared libraries... " >&6; } 12639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12640printf "%s\n" "$can_build_shared" >&6; } 12641 12642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12643printf %s "checking whether to build shared libraries... " >&6; } 12644 test no = "$can_build_shared" && enable_shared=no 12645 12646 # On AIX, shared libraries and static libraries use the same namespace, and 12647 # are all built from PIC. 12648 case $host_os in 12649 aix3*) 12650 test yes = "$enable_shared" && enable_static=no 12651 if test -n "$RANLIB"; then 12652 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12653 postinstall_cmds='$RANLIB $lib' 12654 fi 12655 ;; 12656 12657 aix[4-9]*) 12658 if test ia64 != "$host_cpu"; then 12659 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12660 yes,aix,yes) ;; # shared object as lib.so file only 12661 yes,svr4,*) ;; # shared object as lib.so archive member only 12662 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12663 esac 12664 fi 12665 ;; 12666 esac 12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12668printf "%s\n" "$enable_shared" >&6; } 12669 12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12671printf %s "checking whether to build static libraries... " >&6; } 12672 # Make sure either enable_shared or enable_static is yes. 12673 test yes = "$enable_shared" || enable_static=yes 12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12675printf "%s\n" "$enable_static" >&6; } 12676 12677 12678 12679 12680fi 12681ac_ext=c 12682ac_cpp='$CPP $CPPFLAGS' 12683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12685ac_compiler_gnu=$ac_cv_c_compiler_gnu 12686 12687CC=$lt_save_CC 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 ac_config_commands="$ac_config_commands libtool" 12704 12705 12706 12707 12708# Only expand once: 12709 12710 12711 12712# Require xorg-macros: XORG_DEFAULT_OPTIONS 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12725printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12726if test ${ac_cv_c_undeclared_builtin_options+y} 12727then : 12728 printf %s "(cached) " >&6 12729else $as_nop 12730 ac_save_CFLAGS=$CFLAGS 12731 ac_cv_c_undeclared_builtin_options='cannot detect' 12732 for ac_arg in '' -fno-builtin; do 12733 CFLAGS="$ac_save_CFLAGS $ac_arg" 12734 # This test program should *not* compile successfully. 12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736/* end confdefs.h. */ 12737 12738int 12739main (void) 12740{ 12741(void) strchr; 12742 ; 12743 return 0; 12744} 12745_ACEOF 12746if ac_fn_c_try_compile "$LINENO" 12747then : 12748 12749else $as_nop 12750 # This test program should compile successfully. 12751 # No library function is consistently available on 12752 # freestanding implementations, so test against a dummy 12753 # declaration. Include always-available headers on the 12754 # off chance that they somehow elicit warnings. 12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12756/* end confdefs.h. */ 12757#include <float.h> 12758#include <limits.h> 12759#include <stdarg.h> 12760#include <stddef.h> 12761extern void ac_decl (int, char *); 12762 12763int 12764main (void) 12765{ 12766(void) ac_decl (0, (char *) 0); 12767 (void) ac_decl; 12768 12769 ; 12770 return 0; 12771} 12772_ACEOF 12773if ac_fn_c_try_compile "$LINENO" 12774then : 12775 if test x"$ac_arg" = x 12776then : 12777 ac_cv_c_undeclared_builtin_options='none needed' 12778else $as_nop 12779 ac_cv_c_undeclared_builtin_options=$ac_arg 12780fi 12781 break 12782fi 12783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12784fi 12785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12786 done 12787 CFLAGS=$ac_save_CFLAGS 12788 12789fi 12790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12791printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12792 case $ac_cv_c_undeclared_builtin_options in #( 12793 'cannot detect') : 12794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12795printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12796as_fn_error $? "cannot make $CC report undeclared builtins 12797See \`config.log' for more details" "$LINENO" 5; } ;; #( 12798 'none needed') : 12799 ac_c_undeclared_builtin_options='' ;; #( 12800 *) : 12801 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12802esac 12803 12804 12805 12806 12807 12808ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12809if test "x$ac_cv_have_decl___clang__" = xyes 12810then : 12811 CLANGCC="yes" 12812else $as_nop 12813 CLANGCC="no" 12814fi 12815ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12816if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12817then : 12818 INTELCC="yes" 12819else $as_nop 12820 INTELCC="no" 12821fi 12822ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12823if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12824then : 12825 SUNCC="yes" 12826else $as_nop 12827 SUNCC="no" 12828fi 12829 12830 12831 12832 12833 12834 12835 12836 12837if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12838 if test -n "$ac_tool_prefix"; then 12839 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12840set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12842printf %s "checking for $ac_word... " >&6; } 12843if test ${ac_cv_path_PKG_CONFIG+y} 12844then : 12845 printf %s "(cached) " >&6 12846else $as_nop 12847 case $PKG_CONFIG in 12848 [\\/]* | ?:[\\/]*) 12849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12850 ;; 12851 *) 12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12853for as_dir in $PATH 12854do 12855 IFS=$as_save_IFS 12856 case $as_dir in #((( 12857 '') as_dir=./ ;; 12858 */) ;; 12859 *) as_dir=$as_dir/ ;; 12860 esac 12861 for ac_exec_ext in '' $ac_executable_extensions; do 12862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12863 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12865 break 2 12866 fi 12867done 12868 done 12869IFS=$as_save_IFS 12870 12871 ;; 12872esac 12873fi 12874PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12875if test -n "$PKG_CONFIG"; then 12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12877printf "%s\n" "$PKG_CONFIG" >&6; } 12878else 12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12880printf "%s\n" "no" >&6; } 12881fi 12882 12883 12884fi 12885if test -z "$ac_cv_path_PKG_CONFIG"; then 12886 ac_pt_PKG_CONFIG=$PKG_CONFIG 12887 # Extract the first word of "pkg-config", so it can be a program name with args. 12888set dummy pkg-config; ac_word=$2 12889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12890printf %s "checking for $ac_word... " >&6; } 12891if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12892then : 12893 printf %s "(cached) " >&6 12894else $as_nop 12895 case $ac_pt_PKG_CONFIG in 12896 [\\/]* | ?:[\\/]*) 12897 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12898 ;; 12899 *) 12900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12901for as_dir in $PATH 12902do 12903 IFS=$as_save_IFS 12904 case $as_dir in #((( 12905 '') as_dir=./ ;; 12906 */) ;; 12907 *) as_dir=$as_dir/ ;; 12908 esac 12909 for ac_exec_ext in '' $ac_executable_extensions; do 12910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12911 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12913 break 2 12914 fi 12915done 12916 done 12917IFS=$as_save_IFS 12918 12919 ;; 12920esac 12921fi 12922ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12923if test -n "$ac_pt_PKG_CONFIG"; then 12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12925printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12926else 12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12928printf "%s\n" "no" >&6; } 12929fi 12930 12931 if test "x$ac_pt_PKG_CONFIG" = x; then 12932 PKG_CONFIG="" 12933 else 12934 case $cross_compiling:$ac_tool_warned in 12935yes:) 12936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12937printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12938ac_tool_warned=yes ;; 12939esac 12940 PKG_CONFIG=$ac_pt_PKG_CONFIG 12941 fi 12942else 12943 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12944fi 12945 12946fi 12947if test -n "$PKG_CONFIG"; then 12948 _pkg_min_version=0.9.0 12949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12950printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12951 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12953printf "%s\n" "yes" >&6; } 12954 else 12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12956printf "%s\n" "no" >&6; } 12957 PKG_CONFIG="" 12958 fi 12959fi 12960 12961 12962 12963 12964 12965# Check whether --enable-selective-werror was given. 12966if test ${enable_selective_werror+y} 12967then : 12968 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12969else $as_nop 12970 SELECTIVE_WERROR=yes 12971fi 12972 12973 12974 12975 12976 12977# -v is too short to test reliably with XORG_TESTSET_CFLAG 12978if test "x$SUNCC" = "xyes"; then 12979 BASE_CFLAGS="-v" 12980else 12981 BASE_CFLAGS="" 12982fi 12983 12984# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998xorg_testset_save_CFLAGS="$CFLAGS" 12999 13000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13004if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13005then : 13006 printf %s "(cached) " >&6 13007else $as_nop 13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13009/* end confdefs.h. */ 13010int i; 13011_ACEOF 13012if ac_fn_c_try_compile "$LINENO" 13013then : 13014 xorg_cv_cc_flag_unknown_warning_option=yes 13015else $as_nop 13016 xorg_cv_cc_flag_unknown_warning_option=no 13017fi 13018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13019fi 13020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13021printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13023 CFLAGS="$xorg_testset_save_CFLAGS" 13024fi 13025 13026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13029 fi 13030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13032printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13033if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13034then : 13035 printf %s "(cached) " >&6 13036else $as_nop 13037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13038/* end confdefs.h. */ 13039int i; 13040_ACEOF 13041if ac_fn_c_try_compile "$LINENO" 13042then : 13043 xorg_cv_cc_flag_unused_command_line_argument=yes 13044else $as_nop 13045 xorg_cv_cc_flag_unused_command_line_argument=no 13046fi 13047rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13048fi 13049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13050printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13051 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13052 CFLAGS="$xorg_testset_save_CFLAGS" 13053fi 13054 13055found="no" 13056 13057 if test $found = "no" ; then 13058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13060 fi 13061 13062 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13064 fi 13065 13066 CFLAGS="$CFLAGS -Wall" 13067 13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13069printf %s "checking if $CC supports -Wall... " >&6; } 13070 cacheid=xorg_cv_cc_flag__Wall 13071 if eval test \${$cacheid+y} 13072then : 13073 printf %s "(cached) " >&6 13074else $as_nop 13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13076/* end confdefs.h. */ 13077int i; 13078int 13079main (void) 13080{ 13081 13082 ; 13083 return 0; 13084} 13085_ACEOF 13086if ac_fn_c_try_link "$LINENO" 13087then : 13088 eval $cacheid=yes 13089else $as_nop 13090 eval $cacheid=no 13091fi 13092rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13093 conftest$ac_exeext conftest.$ac_ext 13094fi 13095 13096 13097 CFLAGS="$xorg_testset_save_CFLAGS" 13098 13099 eval supported=\$$cacheid 13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13101printf "%s\n" "$supported" >&6; } 13102 if test "$supported" = "yes" ; then 13103 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13104 found="yes" 13105 fi 13106 fi 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122xorg_testset_save_CFLAGS="$CFLAGS" 13123 13124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13127printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13128if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13129then : 13130 printf %s "(cached) " >&6 13131else $as_nop 13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13133/* end confdefs.h. */ 13134int i; 13135_ACEOF 13136if ac_fn_c_try_compile "$LINENO" 13137then : 13138 xorg_cv_cc_flag_unknown_warning_option=yes 13139else $as_nop 13140 xorg_cv_cc_flag_unknown_warning_option=no 13141fi 13142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13143fi 13144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13145printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13147 CFLAGS="$xorg_testset_save_CFLAGS" 13148fi 13149 13150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13153 fi 13154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13156printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13157if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13158then : 13159 printf %s "(cached) " >&6 13160else $as_nop 13161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13162/* end confdefs.h. */ 13163int i; 13164_ACEOF 13165if ac_fn_c_try_compile "$LINENO" 13166then : 13167 xorg_cv_cc_flag_unused_command_line_argument=yes 13168else $as_nop 13169 xorg_cv_cc_flag_unused_command_line_argument=no 13170fi 13171rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13172fi 13173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13174printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13176 CFLAGS="$xorg_testset_save_CFLAGS" 13177fi 13178 13179found="no" 13180 13181 if test $found = "no" ; then 13182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13184 fi 13185 13186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13188 fi 13189 13190 CFLAGS="$CFLAGS -Wpointer-arith" 13191 13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13193printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13194 cacheid=xorg_cv_cc_flag__Wpointer_arith 13195 if eval test \${$cacheid+y} 13196then : 13197 printf %s "(cached) " >&6 13198else $as_nop 13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200/* end confdefs.h. */ 13201int i; 13202int 13203main (void) 13204{ 13205 13206 ; 13207 return 0; 13208} 13209_ACEOF 13210if ac_fn_c_try_link "$LINENO" 13211then : 13212 eval $cacheid=yes 13213else $as_nop 13214 eval $cacheid=no 13215fi 13216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13217 conftest$ac_exeext conftest.$ac_ext 13218fi 13219 13220 13221 CFLAGS="$xorg_testset_save_CFLAGS" 13222 13223 eval supported=\$$cacheid 13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13225printf "%s\n" "$supported" >&6; } 13226 if test "$supported" = "yes" ; then 13227 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13228 found="yes" 13229 fi 13230 fi 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246xorg_testset_save_CFLAGS="$CFLAGS" 13247 13248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13251printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13252if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13253then : 13254 printf %s "(cached) " >&6 13255else $as_nop 13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13257/* end confdefs.h. */ 13258int i; 13259_ACEOF 13260if ac_fn_c_try_compile "$LINENO" 13261then : 13262 xorg_cv_cc_flag_unknown_warning_option=yes 13263else $as_nop 13264 xorg_cv_cc_flag_unknown_warning_option=no 13265fi 13266rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13267fi 13268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13269printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13271 CFLAGS="$xorg_testset_save_CFLAGS" 13272fi 13273 13274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13277 fi 13278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13280printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13281if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13282then : 13283 printf %s "(cached) " >&6 13284else $as_nop 13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13286/* end confdefs.h. */ 13287int i; 13288_ACEOF 13289if ac_fn_c_try_compile "$LINENO" 13290then : 13291 xorg_cv_cc_flag_unused_command_line_argument=yes 13292else $as_nop 13293 xorg_cv_cc_flag_unused_command_line_argument=no 13294fi 13295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13296fi 13297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13298printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13300 CFLAGS="$xorg_testset_save_CFLAGS" 13301fi 13302 13303found="no" 13304 13305 if test $found = "no" ; then 13306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13308 fi 13309 13310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13312 fi 13313 13314 CFLAGS="$CFLAGS -Wmissing-declarations" 13315 13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13317printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13318 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13319 if eval test \${$cacheid+y} 13320then : 13321 printf %s "(cached) " >&6 13322else $as_nop 13323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13324/* end confdefs.h. */ 13325int i; 13326int 13327main (void) 13328{ 13329 13330 ; 13331 return 0; 13332} 13333_ACEOF 13334if ac_fn_c_try_link "$LINENO" 13335then : 13336 eval $cacheid=yes 13337else $as_nop 13338 eval $cacheid=no 13339fi 13340rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13341 conftest$ac_exeext conftest.$ac_ext 13342fi 13343 13344 13345 CFLAGS="$xorg_testset_save_CFLAGS" 13346 13347 eval supported=\$$cacheid 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13349printf "%s\n" "$supported" >&6; } 13350 if test "$supported" = "yes" ; then 13351 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13352 found="yes" 13353 fi 13354 fi 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370xorg_testset_save_CFLAGS="$CFLAGS" 13371 13372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13376if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13377then : 13378 printf %s "(cached) " >&6 13379else $as_nop 13380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13381/* end confdefs.h. */ 13382int i; 13383_ACEOF 13384if ac_fn_c_try_compile "$LINENO" 13385then : 13386 xorg_cv_cc_flag_unknown_warning_option=yes 13387else $as_nop 13388 xorg_cv_cc_flag_unknown_warning_option=no 13389fi 13390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13391fi 13392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13395 CFLAGS="$xorg_testset_save_CFLAGS" 13396fi 13397 13398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13401 fi 13402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13405if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13406then : 13407 printf %s "(cached) " >&6 13408else $as_nop 13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13410/* end confdefs.h. */ 13411int i; 13412_ACEOF 13413if ac_fn_c_try_compile "$LINENO" 13414then : 13415 xorg_cv_cc_flag_unused_command_line_argument=yes 13416else $as_nop 13417 xorg_cv_cc_flag_unused_command_line_argument=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13420fi 13421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13424 CFLAGS="$xorg_testset_save_CFLAGS" 13425fi 13426 13427found="no" 13428 13429 if test $found = "no" ; then 13430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13432 fi 13433 13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13436 fi 13437 13438 CFLAGS="$CFLAGS -Wformat=2" 13439 13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13441printf %s "checking if $CC supports -Wformat=2... " >&6; } 13442 cacheid=xorg_cv_cc_flag__Wformat_2 13443 if eval test \${$cacheid+y} 13444then : 13445 printf %s "(cached) " >&6 13446else $as_nop 13447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13448/* end confdefs.h. */ 13449int i; 13450int 13451main (void) 13452{ 13453 13454 ; 13455 return 0; 13456} 13457_ACEOF 13458if ac_fn_c_try_link "$LINENO" 13459then : 13460 eval $cacheid=yes 13461else $as_nop 13462 eval $cacheid=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13465 conftest$ac_exeext conftest.$ac_ext 13466fi 13467 13468 13469 CFLAGS="$xorg_testset_save_CFLAGS" 13470 13471 eval supported=\$$cacheid 13472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13473printf "%s\n" "$supported" >&6; } 13474 if test "$supported" = "yes" ; then 13475 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13476 found="yes" 13477 fi 13478 fi 13479 13480 if test $found = "no" ; then 13481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13483 fi 13484 13485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13487 fi 13488 13489 CFLAGS="$CFLAGS -Wformat" 13490 13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13492printf %s "checking if $CC supports -Wformat... " >&6; } 13493 cacheid=xorg_cv_cc_flag__Wformat 13494 if eval test \${$cacheid+y} 13495then : 13496 printf %s "(cached) " >&6 13497else $as_nop 13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13499/* end confdefs.h. */ 13500int i; 13501int 13502main (void) 13503{ 13504 13505 ; 13506 return 0; 13507} 13508_ACEOF 13509if ac_fn_c_try_link "$LINENO" 13510then : 13511 eval $cacheid=yes 13512else $as_nop 13513 eval $cacheid=no 13514fi 13515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13516 conftest$ac_exeext conftest.$ac_ext 13517fi 13518 13519 13520 CFLAGS="$xorg_testset_save_CFLAGS" 13521 13522 eval supported=\$$cacheid 13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13524printf "%s\n" "$supported" >&6; } 13525 if test "$supported" = "yes" ; then 13526 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13527 found="yes" 13528 fi 13529 fi 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547xorg_testset_save_CFLAGS="$CFLAGS" 13548 13549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13552printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13553if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes 13564else $as_nop 13565 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5 13570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13572 CFLAGS="$xorg_testset_save_CFLAGS" 13573fi 13574 13575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13578 fi 13579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13582if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13583then : 13584 printf %s "(cached) " >&6 13585else $as_nop 13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13587/* end confdefs.h. */ 13588int i; 13589_ACEOF 13590if ac_fn_c_try_compile "$LINENO" 13591then : 13592 xorg_cv_cc_flag_unused_command_line_argument=yes 13593else $as_nop 13594 xorg_cv_cc_flag_unused_command_line_argument=no 13595fi 13596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13597fi 13598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13599printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13601 CFLAGS="$xorg_testset_save_CFLAGS" 13602fi 13603 13604found="no" 13605 13606 if test $found = "no" ; then 13607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13609 fi 13610 13611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13613 fi 13614 13615 CFLAGS="$CFLAGS -Wstrict-prototypes" 13616 13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13618printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13619 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13620 if eval test \${$cacheid+y} 13621then : 13622 printf %s "(cached) " >&6 13623else $as_nop 13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13625/* end confdefs.h. */ 13626int i; 13627int 13628main (void) 13629{ 13630 13631 ; 13632 return 0; 13633} 13634_ACEOF 13635if ac_fn_c_try_link "$LINENO" 13636then : 13637 eval $cacheid=yes 13638else $as_nop 13639 eval $cacheid=no 13640fi 13641rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13642 conftest$ac_exeext conftest.$ac_ext 13643fi 13644 13645 13646 CFLAGS="$xorg_testset_save_CFLAGS" 13647 13648 eval supported=\$$cacheid 13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13650printf "%s\n" "$supported" >&6; } 13651 if test "$supported" = "yes" ; then 13652 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13653 found="yes" 13654 fi 13655 fi 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671xorg_testset_save_CFLAGS="$CFLAGS" 13672 13673if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13676printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13677if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13678then : 13679 printf %s "(cached) " >&6 13680else $as_nop 13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13682/* end confdefs.h. */ 13683int i; 13684_ACEOF 13685if ac_fn_c_try_compile "$LINENO" 13686then : 13687 xorg_cv_cc_flag_unknown_warning_option=yes 13688else $as_nop 13689 xorg_cv_cc_flag_unknown_warning_option=no 13690fi 13691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13692fi 13693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13696 CFLAGS="$xorg_testset_save_CFLAGS" 13697fi 13698 13699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13702 fi 13703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13706if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13707then : 13708 printf %s "(cached) " >&6 13709else $as_nop 13710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13711/* end confdefs.h. */ 13712int i; 13713_ACEOF 13714if ac_fn_c_try_compile "$LINENO" 13715then : 13716 xorg_cv_cc_flag_unused_command_line_argument=yes 13717else $as_nop 13718 xorg_cv_cc_flag_unused_command_line_argument=no 13719fi 13720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13721fi 13722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13723printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13725 CFLAGS="$xorg_testset_save_CFLAGS" 13726fi 13727 13728found="no" 13729 13730 if test $found = "no" ; then 13731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13733 fi 13734 13735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13737 fi 13738 13739 CFLAGS="$CFLAGS -Wmissing-prototypes" 13740 13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13742printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13743 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13744 if eval test \${$cacheid+y} 13745then : 13746 printf %s "(cached) " >&6 13747else $as_nop 13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13749/* end confdefs.h. */ 13750int i; 13751int 13752main (void) 13753{ 13754 13755 ; 13756 return 0; 13757} 13758_ACEOF 13759if ac_fn_c_try_link "$LINENO" 13760then : 13761 eval $cacheid=yes 13762else $as_nop 13763 eval $cacheid=no 13764fi 13765rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13766 conftest$ac_exeext conftest.$ac_ext 13767fi 13768 13769 13770 CFLAGS="$xorg_testset_save_CFLAGS" 13771 13772 eval supported=\$$cacheid 13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13774printf "%s\n" "$supported" >&6; } 13775 if test "$supported" = "yes" ; then 13776 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13777 found="yes" 13778 fi 13779 fi 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795xorg_testset_save_CFLAGS="$CFLAGS" 13796 13797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13800printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13801if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13802then : 13803 printf %s "(cached) " >&6 13804else $as_nop 13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13806/* end confdefs.h. */ 13807int i; 13808_ACEOF 13809if ac_fn_c_try_compile "$LINENO" 13810then : 13811 xorg_cv_cc_flag_unknown_warning_option=yes 13812else $as_nop 13813 xorg_cv_cc_flag_unknown_warning_option=no 13814fi 13815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13816fi 13817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13818printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13820 CFLAGS="$xorg_testset_save_CFLAGS" 13821fi 13822 13823if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13826 fi 13827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13829printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13830if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13831then : 13832 printf %s "(cached) " >&6 13833else $as_nop 13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13835/* end confdefs.h. */ 13836int i; 13837_ACEOF 13838if ac_fn_c_try_compile "$LINENO" 13839then : 13840 xorg_cv_cc_flag_unused_command_line_argument=yes 13841else $as_nop 13842 xorg_cv_cc_flag_unused_command_line_argument=no 13843fi 13844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13845fi 13846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13847printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13849 CFLAGS="$xorg_testset_save_CFLAGS" 13850fi 13851 13852found="no" 13853 13854 if test $found = "no" ; then 13855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13856 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13857 fi 13858 13859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13861 fi 13862 13863 CFLAGS="$CFLAGS -Wnested-externs" 13864 13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13866printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13867 cacheid=xorg_cv_cc_flag__Wnested_externs 13868 if eval test \${$cacheid+y} 13869then : 13870 printf %s "(cached) " >&6 13871else $as_nop 13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13873/* end confdefs.h. */ 13874int i; 13875int 13876main (void) 13877{ 13878 13879 ; 13880 return 0; 13881} 13882_ACEOF 13883if ac_fn_c_try_link "$LINENO" 13884then : 13885 eval $cacheid=yes 13886else $as_nop 13887 eval $cacheid=no 13888fi 13889rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13890 conftest$ac_exeext conftest.$ac_ext 13891fi 13892 13893 13894 CFLAGS="$xorg_testset_save_CFLAGS" 13895 13896 eval supported=\$$cacheid 13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13898printf "%s\n" "$supported" >&6; } 13899 if test "$supported" = "yes" ; then 13900 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13901 found="yes" 13902 fi 13903 fi 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919xorg_testset_save_CFLAGS="$CFLAGS" 13920 13921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13924printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13925if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13926then : 13927 printf %s "(cached) " >&6 13928else $as_nop 13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13930/* end confdefs.h. */ 13931int i; 13932_ACEOF 13933if ac_fn_c_try_compile "$LINENO" 13934then : 13935 xorg_cv_cc_flag_unknown_warning_option=yes 13936else $as_nop 13937 xorg_cv_cc_flag_unknown_warning_option=no 13938fi 13939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13940fi 13941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13942printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13944 CFLAGS="$xorg_testset_save_CFLAGS" 13945fi 13946 13947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13950 fi 13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13953printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13954if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13955then : 13956 printf %s "(cached) " >&6 13957else $as_nop 13958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13959/* end confdefs.h. */ 13960int i; 13961_ACEOF 13962if ac_fn_c_try_compile "$LINENO" 13963then : 13964 xorg_cv_cc_flag_unused_command_line_argument=yes 13965else $as_nop 13966 xorg_cv_cc_flag_unused_command_line_argument=no 13967fi 13968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13969fi 13970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13971printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13973 CFLAGS="$xorg_testset_save_CFLAGS" 13974fi 13975 13976found="no" 13977 13978 if test $found = "no" ; then 13979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13981 fi 13982 13983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13985 fi 13986 13987 CFLAGS="$CFLAGS -Wbad-function-cast" 13988 13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13990printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13991 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13992 if eval test \${$cacheid+y} 13993then : 13994 printf %s "(cached) " >&6 13995else $as_nop 13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13997/* end confdefs.h. */ 13998int i; 13999int 14000main (void) 14001{ 14002 14003 ; 14004 return 0; 14005} 14006_ACEOF 14007if ac_fn_c_try_link "$LINENO" 14008then : 14009 eval $cacheid=yes 14010else $as_nop 14011 eval $cacheid=no 14012fi 14013rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14014 conftest$ac_exeext conftest.$ac_ext 14015fi 14016 14017 14018 CFLAGS="$xorg_testset_save_CFLAGS" 14019 14020 eval supported=\$$cacheid 14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14022printf "%s\n" "$supported" >&6; } 14023 if test "$supported" = "yes" ; then 14024 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14025 found="yes" 14026 fi 14027 fi 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043xorg_testset_save_CFLAGS="$CFLAGS" 14044 14045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14048printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14049if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14050then : 14051 printf %s "(cached) " >&6 14052else $as_nop 14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055int i; 14056_ACEOF 14057if ac_fn_c_try_compile "$LINENO" 14058then : 14059 xorg_cv_cc_flag_unknown_warning_option=yes 14060else $as_nop 14061 xorg_cv_cc_flag_unknown_warning_option=no 14062fi 14063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14064fi 14065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14066printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14068 CFLAGS="$xorg_testset_save_CFLAGS" 14069fi 14070 14071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14074 fi 14075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14077printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14078if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14079then : 14080 printf %s "(cached) " >&6 14081else $as_nop 14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14083/* end confdefs.h. */ 14084int i; 14085_ACEOF 14086if ac_fn_c_try_compile "$LINENO" 14087then : 14088 xorg_cv_cc_flag_unused_command_line_argument=yes 14089else $as_nop 14090 xorg_cv_cc_flag_unused_command_line_argument=no 14091fi 14092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14093fi 14094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14095printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14097 CFLAGS="$xorg_testset_save_CFLAGS" 14098fi 14099 14100found="no" 14101 14102 if test $found = "no" ; then 14103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14105 fi 14106 14107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14109 fi 14110 14111 CFLAGS="$CFLAGS -Wold-style-definition" 14112 14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14114printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14115 cacheid=xorg_cv_cc_flag__Wold_style_definition 14116 if eval test \${$cacheid+y} 14117then : 14118 printf %s "(cached) " >&6 14119else $as_nop 14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14121/* end confdefs.h. */ 14122int i; 14123int 14124main (void) 14125{ 14126 14127 ; 14128 return 0; 14129} 14130_ACEOF 14131if ac_fn_c_try_link "$LINENO" 14132then : 14133 eval $cacheid=yes 14134else $as_nop 14135 eval $cacheid=no 14136fi 14137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14138 conftest$ac_exeext conftest.$ac_ext 14139fi 14140 14141 14142 CFLAGS="$xorg_testset_save_CFLAGS" 14143 14144 eval supported=\$$cacheid 14145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14146printf "%s\n" "$supported" >&6; } 14147 if test "$supported" = "yes" ; then 14148 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14149 found="yes" 14150 fi 14151 fi 14152 14153 if test $found = "no" ; then 14154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14155 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14156 fi 14157 14158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14160 fi 14161 14162 CFLAGS="$CFLAGS -fd" 14163 14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14165printf %s "checking if $CC supports -fd... " >&6; } 14166 cacheid=xorg_cv_cc_flag__fd 14167 if eval test \${$cacheid+y} 14168then : 14169 printf %s "(cached) " >&6 14170else $as_nop 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14172/* end confdefs.h. */ 14173int i; 14174int 14175main (void) 14176{ 14177 14178 ; 14179 return 0; 14180} 14181_ACEOF 14182if ac_fn_c_try_link "$LINENO" 14183then : 14184 eval $cacheid=yes 14185else $as_nop 14186 eval $cacheid=no 14187fi 14188rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14189 conftest$ac_exeext conftest.$ac_ext 14190fi 14191 14192 14193 CFLAGS="$xorg_testset_save_CFLAGS" 14194 14195 eval supported=\$$cacheid 14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14197printf "%s\n" "$supported" >&6; } 14198 if test "$supported" = "yes" ; then 14199 BASE_CFLAGS="$BASE_CFLAGS -fd" 14200 found="yes" 14201 fi 14202 fi 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218xorg_testset_save_CFLAGS="$CFLAGS" 14219 14220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14224if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14225then : 14226 printf %s "(cached) " >&6 14227else $as_nop 14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14229/* end confdefs.h. */ 14230int i; 14231_ACEOF 14232if ac_fn_c_try_compile "$LINENO" 14233then : 14234 xorg_cv_cc_flag_unknown_warning_option=yes 14235else $as_nop 14236 xorg_cv_cc_flag_unknown_warning_option=no 14237fi 14238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14239fi 14240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14243 CFLAGS="$xorg_testset_save_CFLAGS" 14244fi 14245 14246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14249 fi 14250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14253if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14254then : 14255 printf %s "(cached) " >&6 14256else $as_nop 14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14258/* end confdefs.h. */ 14259int i; 14260_ACEOF 14261if ac_fn_c_try_compile "$LINENO" 14262then : 14263 xorg_cv_cc_flag_unused_command_line_argument=yes 14264else $as_nop 14265 xorg_cv_cc_flag_unused_command_line_argument=no 14266fi 14267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14268fi 14269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14272 CFLAGS="$xorg_testset_save_CFLAGS" 14273fi 14274 14275found="no" 14276 14277 if test $found = "no" ; then 14278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14280 fi 14281 14282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14284 fi 14285 14286 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14287 14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14289printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14290 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14291 if eval test \${$cacheid+y} 14292then : 14293 printf %s "(cached) " >&6 14294else $as_nop 14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14296/* end confdefs.h. */ 14297int i; 14298int 14299main (void) 14300{ 14301 14302 ; 14303 return 0; 14304} 14305_ACEOF 14306if ac_fn_c_try_link "$LINENO" 14307then : 14308 eval $cacheid=yes 14309else $as_nop 14310 eval $cacheid=no 14311fi 14312rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14313 conftest$ac_exeext conftest.$ac_ext 14314fi 14315 14316 14317 CFLAGS="$xorg_testset_save_CFLAGS" 14318 14319 eval supported=\$$cacheid 14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14321printf "%s\n" "$supported" >&6; } 14322 if test "$supported" = "yes" ; then 14323 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14324 found="yes" 14325 fi 14326 fi 14327 14328 14329 14330 14331 14332# This chunk adds additional warnings that could catch undesired effects. 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346xorg_testset_save_CFLAGS="$CFLAGS" 14347 14348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14352if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14353then : 14354 printf %s "(cached) " >&6 14355else $as_nop 14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14357/* end confdefs.h. */ 14358int i; 14359_ACEOF 14360if ac_fn_c_try_compile "$LINENO" 14361then : 14362 xorg_cv_cc_flag_unknown_warning_option=yes 14363else $as_nop 14364 xorg_cv_cc_flag_unknown_warning_option=no 14365fi 14366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14367fi 14368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14371 CFLAGS="$xorg_testset_save_CFLAGS" 14372fi 14373 14374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14377 fi 14378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14381if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14382then : 14383 printf %s "(cached) " >&6 14384else $as_nop 14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14386/* end confdefs.h. */ 14387int i; 14388_ACEOF 14389if ac_fn_c_try_compile "$LINENO" 14390then : 14391 xorg_cv_cc_flag_unused_command_line_argument=yes 14392else $as_nop 14393 xorg_cv_cc_flag_unused_command_line_argument=no 14394fi 14395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14396fi 14397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14400 CFLAGS="$xorg_testset_save_CFLAGS" 14401fi 14402 14403found="no" 14404 14405 if test $found = "no" ; then 14406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14408 fi 14409 14410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14412 fi 14413 14414 CFLAGS="$CFLAGS -Wunused" 14415 14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14417printf %s "checking if $CC supports -Wunused... " >&6; } 14418 cacheid=xorg_cv_cc_flag__Wunused 14419 if eval test \${$cacheid+y} 14420then : 14421 printf %s "(cached) " >&6 14422else $as_nop 14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14424/* end confdefs.h. */ 14425int i; 14426int 14427main (void) 14428{ 14429 14430 ; 14431 return 0; 14432} 14433_ACEOF 14434if ac_fn_c_try_link "$LINENO" 14435then : 14436 eval $cacheid=yes 14437else $as_nop 14438 eval $cacheid=no 14439fi 14440rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14441 conftest$ac_exeext conftest.$ac_ext 14442fi 14443 14444 14445 CFLAGS="$xorg_testset_save_CFLAGS" 14446 14447 eval supported=\$$cacheid 14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14449printf "%s\n" "$supported" >&6; } 14450 if test "$supported" = "yes" ; then 14451 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14452 found="yes" 14453 fi 14454 fi 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470xorg_testset_save_CFLAGS="$CFLAGS" 14471 14472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14476if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14477then : 14478 printf %s "(cached) " >&6 14479else $as_nop 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482int i; 14483_ACEOF 14484if ac_fn_c_try_compile "$LINENO" 14485then : 14486 xorg_cv_cc_flag_unknown_warning_option=yes 14487else $as_nop 14488 xorg_cv_cc_flag_unknown_warning_option=no 14489fi 14490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14491fi 14492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14495 CFLAGS="$xorg_testset_save_CFLAGS" 14496fi 14497 14498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14501 fi 14502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14505if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14506then : 14507 printf %s "(cached) " >&6 14508else $as_nop 14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14510/* end confdefs.h. */ 14511int i; 14512_ACEOF 14513if ac_fn_c_try_compile "$LINENO" 14514then : 14515 xorg_cv_cc_flag_unused_command_line_argument=yes 14516else $as_nop 14517 xorg_cv_cc_flag_unused_command_line_argument=no 14518fi 14519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14520fi 14521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14524 CFLAGS="$xorg_testset_save_CFLAGS" 14525fi 14526 14527found="no" 14528 14529 if test $found = "no" ; then 14530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14532 fi 14533 14534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14536 fi 14537 14538 CFLAGS="$CFLAGS -Wuninitialized" 14539 14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14541printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14542 cacheid=xorg_cv_cc_flag__Wuninitialized 14543 if eval test \${$cacheid+y} 14544then : 14545 printf %s "(cached) " >&6 14546else $as_nop 14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549int i; 14550int 14551main (void) 14552{ 14553 14554 ; 14555 return 0; 14556} 14557_ACEOF 14558if ac_fn_c_try_link "$LINENO" 14559then : 14560 eval $cacheid=yes 14561else $as_nop 14562 eval $cacheid=no 14563fi 14564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14565 conftest$ac_exeext conftest.$ac_ext 14566fi 14567 14568 14569 CFLAGS="$xorg_testset_save_CFLAGS" 14570 14571 eval supported=\$$cacheid 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14573printf "%s\n" "$supported" >&6; } 14574 if test "$supported" = "yes" ; then 14575 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14576 found="yes" 14577 fi 14578 fi 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594xorg_testset_save_CFLAGS="$CFLAGS" 14595 14596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14600if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14601then : 14602 printf %s "(cached) " >&6 14603else $as_nop 14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14605/* end confdefs.h. */ 14606int i; 14607_ACEOF 14608if ac_fn_c_try_compile "$LINENO" 14609then : 14610 xorg_cv_cc_flag_unknown_warning_option=yes 14611else $as_nop 14612 xorg_cv_cc_flag_unknown_warning_option=no 14613fi 14614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14615fi 14616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14619 CFLAGS="$xorg_testset_save_CFLAGS" 14620fi 14621 14622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14625 fi 14626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14629if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14630then : 14631 printf %s "(cached) " >&6 14632else $as_nop 14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14634/* end confdefs.h. */ 14635int i; 14636_ACEOF 14637if ac_fn_c_try_compile "$LINENO" 14638then : 14639 xorg_cv_cc_flag_unused_command_line_argument=yes 14640else $as_nop 14641 xorg_cv_cc_flag_unused_command_line_argument=no 14642fi 14643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14644fi 14645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14648 CFLAGS="$xorg_testset_save_CFLAGS" 14649fi 14650 14651found="no" 14652 14653 if test $found = "no" ; then 14654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14656 fi 14657 14658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14660 fi 14661 14662 CFLAGS="$CFLAGS -Wshadow" 14663 14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14665printf %s "checking if $CC supports -Wshadow... " >&6; } 14666 cacheid=xorg_cv_cc_flag__Wshadow 14667 if eval test \${$cacheid+y} 14668then : 14669 printf %s "(cached) " >&6 14670else $as_nop 14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14672/* end confdefs.h. */ 14673int i; 14674int 14675main (void) 14676{ 14677 14678 ; 14679 return 0; 14680} 14681_ACEOF 14682if ac_fn_c_try_link "$LINENO" 14683then : 14684 eval $cacheid=yes 14685else $as_nop 14686 eval $cacheid=no 14687fi 14688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14689 conftest$ac_exeext conftest.$ac_ext 14690fi 14691 14692 14693 CFLAGS="$xorg_testset_save_CFLAGS" 14694 14695 eval supported=\$$cacheid 14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14697printf "%s\n" "$supported" >&6; } 14698 if test "$supported" = "yes" ; then 14699 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14700 found="yes" 14701 fi 14702 fi 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718xorg_testset_save_CFLAGS="$CFLAGS" 14719 14720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14723printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14724if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14725then : 14726 printf %s "(cached) " >&6 14727else $as_nop 14728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14729/* end confdefs.h. */ 14730int i; 14731_ACEOF 14732if ac_fn_c_try_compile "$LINENO" 14733then : 14734 xorg_cv_cc_flag_unknown_warning_option=yes 14735else $as_nop 14736 xorg_cv_cc_flag_unknown_warning_option=no 14737fi 14738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14739fi 14740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14743 CFLAGS="$xorg_testset_save_CFLAGS" 14744fi 14745 14746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14749 fi 14750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14753if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14754then : 14755 printf %s "(cached) " >&6 14756else $as_nop 14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14758/* end confdefs.h. */ 14759int i; 14760_ACEOF 14761if ac_fn_c_try_compile "$LINENO" 14762then : 14763 xorg_cv_cc_flag_unused_command_line_argument=yes 14764else $as_nop 14765 xorg_cv_cc_flag_unused_command_line_argument=no 14766fi 14767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14768fi 14769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14772 CFLAGS="$xorg_testset_save_CFLAGS" 14773fi 14774 14775found="no" 14776 14777 if test $found = "no" ; then 14778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14780 fi 14781 14782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14784 fi 14785 14786 CFLAGS="$CFLAGS -Wmissing-noreturn" 14787 14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14789printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14790 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14791 if eval test \${$cacheid+y} 14792then : 14793 printf %s "(cached) " >&6 14794else $as_nop 14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14796/* end confdefs.h. */ 14797int i; 14798int 14799main (void) 14800{ 14801 14802 ; 14803 return 0; 14804} 14805_ACEOF 14806if ac_fn_c_try_link "$LINENO" 14807then : 14808 eval $cacheid=yes 14809else $as_nop 14810 eval $cacheid=no 14811fi 14812rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14813 conftest$ac_exeext conftest.$ac_ext 14814fi 14815 14816 14817 CFLAGS="$xorg_testset_save_CFLAGS" 14818 14819 eval supported=\$$cacheid 14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14821printf "%s\n" "$supported" >&6; } 14822 if test "$supported" = "yes" ; then 14823 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14824 found="yes" 14825 fi 14826 fi 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842xorg_testset_save_CFLAGS="$CFLAGS" 14843 14844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14847printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14848if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14849then : 14850 printf %s "(cached) " >&6 14851else $as_nop 14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853/* end confdefs.h. */ 14854int i; 14855_ACEOF 14856if ac_fn_c_try_compile "$LINENO" 14857then : 14858 xorg_cv_cc_flag_unknown_warning_option=yes 14859else $as_nop 14860 xorg_cv_cc_flag_unknown_warning_option=no 14861fi 14862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14863fi 14864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14865printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14867 CFLAGS="$xorg_testset_save_CFLAGS" 14868fi 14869 14870if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14873 fi 14874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14876printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14877if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14878then : 14879 printf %s "(cached) " >&6 14880else $as_nop 14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14882/* end confdefs.h. */ 14883int i; 14884_ACEOF 14885if ac_fn_c_try_compile "$LINENO" 14886then : 14887 xorg_cv_cc_flag_unused_command_line_argument=yes 14888else $as_nop 14889 xorg_cv_cc_flag_unused_command_line_argument=no 14890fi 14891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14892fi 14893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14894printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14896 CFLAGS="$xorg_testset_save_CFLAGS" 14897fi 14898 14899found="no" 14900 14901 if test $found = "no" ; then 14902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14904 fi 14905 14906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14908 fi 14909 14910 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14911 14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14913printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14914 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14915 if eval test \${$cacheid+y} 14916then : 14917 printf %s "(cached) " >&6 14918else $as_nop 14919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14920/* end confdefs.h. */ 14921int i; 14922int 14923main (void) 14924{ 14925 14926 ; 14927 return 0; 14928} 14929_ACEOF 14930if ac_fn_c_try_link "$LINENO" 14931then : 14932 eval $cacheid=yes 14933else $as_nop 14934 eval $cacheid=no 14935fi 14936rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14937 conftest$ac_exeext conftest.$ac_ext 14938fi 14939 14940 14941 CFLAGS="$xorg_testset_save_CFLAGS" 14942 14943 eval supported=\$$cacheid 14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14945printf "%s\n" "$supported" >&6; } 14946 if test "$supported" = "yes" ; then 14947 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14948 found="yes" 14949 fi 14950 fi 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966xorg_testset_save_CFLAGS="$CFLAGS" 14967 14968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14972if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14973then : 14974 printf %s "(cached) " >&6 14975else $as_nop 14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14977/* end confdefs.h. */ 14978int i; 14979_ACEOF 14980if ac_fn_c_try_compile "$LINENO" 14981then : 14982 xorg_cv_cc_flag_unknown_warning_option=yes 14983else $as_nop 14984 xorg_cv_cc_flag_unknown_warning_option=no 14985fi 14986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14987fi 14988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14991 CFLAGS="$xorg_testset_save_CFLAGS" 14992fi 14993 14994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14997 fi 14998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15001if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15002then : 15003 printf %s "(cached) " >&6 15004else $as_nop 15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15006/* end confdefs.h. */ 15007int i; 15008_ACEOF 15009if ac_fn_c_try_compile "$LINENO" 15010then : 15011 xorg_cv_cc_flag_unused_command_line_argument=yes 15012else $as_nop 15013 xorg_cv_cc_flag_unused_command_line_argument=no 15014fi 15015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15016fi 15017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15020 CFLAGS="$xorg_testset_save_CFLAGS" 15021fi 15022 15023found="no" 15024 15025 if test $found = "no" ; then 15026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15028 fi 15029 15030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15032 fi 15033 15034 CFLAGS="$CFLAGS -Wredundant-decls" 15035 15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15037printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15038 cacheid=xorg_cv_cc_flag__Wredundant_decls 15039 if eval test \${$cacheid+y} 15040then : 15041 printf %s "(cached) " >&6 15042else $as_nop 15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15044/* end confdefs.h. */ 15045int i; 15046int 15047main (void) 15048{ 15049 15050 ; 15051 return 0; 15052} 15053_ACEOF 15054if ac_fn_c_try_link "$LINENO" 15055then : 15056 eval $cacheid=yes 15057else $as_nop 15058 eval $cacheid=no 15059fi 15060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15061 conftest$ac_exeext conftest.$ac_ext 15062fi 15063 15064 15065 CFLAGS="$xorg_testset_save_CFLAGS" 15066 15067 eval supported=\$$cacheid 15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15069printf "%s\n" "$supported" >&6; } 15070 if test "$supported" = "yes" ; then 15071 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15072 found="yes" 15073 fi 15074 fi 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090xorg_testset_save_CFLAGS="$CFLAGS" 15091 15092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15097then : 15098 printf %s "(cached) " >&6 15099else $as_nop 15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15101/* end confdefs.h. */ 15102int i; 15103_ACEOF 15104if ac_fn_c_try_compile "$LINENO" 15105then : 15106 xorg_cv_cc_flag_unknown_warning_option=yes 15107else $as_nop 15108 xorg_cv_cc_flag_unknown_warning_option=no 15109fi 15110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15111fi 15112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15115 CFLAGS="$xorg_testset_save_CFLAGS" 15116fi 15117 15118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15121 fi 15122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15125if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15126then : 15127 printf %s "(cached) " >&6 15128else $as_nop 15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15130/* end confdefs.h. */ 15131int i; 15132_ACEOF 15133if ac_fn_c_try_compile "$LINENO" 15134then : 15135 xorg_cv_cc_flag_unused_command_line_argument=yes 15136else $as_nop 15137 xorg_cv_cc_flag_unused_command_line_argument=no 15138fi 15139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15140fi 15141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15144 CFLAGS="$xorg_testset_save_CFLAGS" 15145fi 15146 15147found="no" 15148 15149 if test $found = "no" ; then 15150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15152 fi 15153 15154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15156 fi 15157 15158 CFLAGS="$CFLAGS -Wlogical-op" 15159 15160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15161printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15162 cacheid=xorg_cv_cc_flag__Wlogical_op 15163 if eval test \${$cacheid+y} 15164then : 15165 printf %s "(cached) " >&6 15166else $as_nop 15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15168/* end confdefs.h. */ 15169int i; 15170int 15171main (void) 15172{ 15173 15174 ; 15175 return 0; 15176} 15177_ACEOF 15178if ac_fn_c_try_link "$LINENO" 15179then : 15180 eval $cacheid=yes 15181else $as_nop 15182 eval $cacheid=no 15183fi 15184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15185 conftest$ac_exeext conftest.$ac_ext 15186fi 15187 15188 15189 CFLAGS="$xorg_testset_save_CFLAGS" 15190 15191 eval supported=\$$cacheid 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15193printf "%s\n" "$supported" >&6; } 15194 if test "$supported" = "yes" ; then 15195 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15196 found="yes" 15197 fi 15198 fi 15199 15200 15201 15202# These are currently disabled because they are noisy. They will be enabled 15203# in the future once the codebase is sufficiently modernized to silence 15204# them. For now, I don't want them to drown out the other warnings. 15205# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15206# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15207# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15208 15209# Turn some warnings into errors, so we don't accidentally get successful builds 15210# when there are problems that should be fixed. 15211 15212if test "x$SELECTIVE_WERROR" = "xyes" ; then 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226xorg_testset_save_CFLAGS="$CFLAGS" 15227 15228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15232if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15233then : 15234 printf %s "(cached) " >&6 15235else $as_nop 15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15237/* end confdefs.h. */ 15238int i; 15239_ACEOF 15240if ac_fn_c_try_compile "$LINENO" 15241then : 15242 xorg_cv_cc_flag_unknown_warning_option=yes 15243else $as_nop 15244 xorg_cv_cc_flag_unknown_warning_option=no 15245fi 15246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15247fi 15248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15249printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15251 CFLAGS="$xorg_testset_save_CFLAGS" 15252fi 15253 15254if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15257 fi 15258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15260printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15261if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15262then : 15263 printf %s "(cached) " >&6 15264else $as_nop 15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15266/* end confdefs.h. */ 15267int i; 15268_ACEOF 15269if ac_fn_c_try_compile "$LINENO" 15270then : 15271 xorg_cv_cc_flag_unused_command_line_argument=yes 15272else $as_nop 15273 xorg_cv_cc_flag_unused_command_line_argument=no 15274fi 15275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15276fi 15277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15278printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15280 CFLAGS="$xorg_testset_save_CFLAGS" 15281fi 15282 15283found="no" 15284 15285 if test $found = "no" ; then 15286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15288 fi 15289 15290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15292 fi 15293 15294 CFLAGS="$CFLAGS -Werror=implicit" 15295 15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15297printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15298 cacheid=xorg_cv_cc_flag__Werror_implicit 15299 if eval test \${$cacheid+y} 15300then : 15301 printf %s "(cached) " >&6 15302else $as_nop 15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15304/* end confdefs.h. */ 15305int i; 15306int 15307main (void) 15308{ 15309 15310 ; 15311 return 0; 15312} 15313_ACEOF 15314if ac_fn_c_try_link "$LINENO" 15315then : 15316 eval $cacheid=yes 15317else $as_nop 15318 eval $cacheid=no 15319fi 15320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15321 conftest$ac_exeext conftest.$ac_ext 15322fi 15323 15324 15325 CFLAGS="$xorg_testset_save_CFLAGS" 15326 15327 eval supported=\$$cacheid 15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15329printf "%s\n" "$supported" >&6; } 15330 if test "$supported" = "yes" ; then 15331 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15332 found="yes" 15333 fi 15334 fi 15335 15336 if test $found = "no" ; then 15337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15339 fi 15340 15341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15343 fi 15344 15345 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15346 15347 { 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 15348printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15349 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15350 if eval test \${$cacheid+y} 15351then : 15352 printf %s "(cached) " >&6 15353else $as_nop 15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15355/* end confdefs.h. */ 15356int i; 15357int 15358main (void) 15359{ 15360 15361 ; 15362 return 0; 15363} 15364_ACEOF 15365if ac_fn_c_try_link "$LINENO" 15366then : 15367 eval $cacheid=yes 15368else $as_nop 15369 eval $cacheid=no 15370fi 15371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15372 conftest$ac_exeext conftest.$ac_ext 15373fi 15374 15375 15376 CFLAGS="$xorg_testset_save_CFLAGS" 15377 15378 eval supported=\$$cacheid 15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15380printf "%s\n" "$supported" >&6; } 15381 if test "$supported" = "yes" ; then 15382 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15383 found="yes" 15384 fi 15385 fi 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401xorg_testset_save_CFLAGS="$CFLAGS" 15402 15403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15407if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15408then : 15409 printf %s "(cached) " >&6 15410else $as_nop 15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15412/* end confdefs.h. */ 15413int i; 15414_ACEOF 15415if ac_fn_c_try_compile "$LINENO" 15416then : 15417 xorg_cv_cc_flag_unknown_warning_option=yes 15418else $as_nop 15419 xorg_cv_cc_flag_unknown_warning_option=no 15420fi 15421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15422fi 15423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15426 CFLAGS="$xorg_testset_save_CFLAGS" 15427fi 15428 15429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15432 fi 15433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15436if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15437then : 15438 printf %s "(cached) " >&6 15439else $as_nop 15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15441/* end confdefs.h. */ 15442int i; 15443_ACEOF 15444if ac_fn_c_try_compile "$LINENO" 15445then : 15446 xorg_cv_cc_flag_unused_command_line_argument=yes 15447else $as_nop 15448 xorg_cv_cc_flag_unused_command_line_argument=no 15449fi 15450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15451fi 15452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15455 CFLAGS="$xorg_testset_save_CFLAGS" 15456fi 15457 15458found="no" 15459 15460 if test $found = "no" ; then 15461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15463 fi 15464 15465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15467 fi 15468 15469 CFLAGS="$CFLAGS -Werror=nonnull" 15470 15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15472printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15473 cacheid=xorg_cv_cc_flag__Werror_nonnull 15474 if eval test \${$cacheid+y} 15475then : 15476 printf %s "(cached) " >&6 15477else $as_nop 15478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15479/* end confdefs.h. */ 15480int i; 15481int 15482main (void) 15483{ 15484 15485 ; 15486 return 0; 15487} 15488_ACEOF 15489if ac_fn_c_try_link "$LINENO" 15490then : 15491 eval $cacheid=yes 15492else $as_nop 15493 eval $cacheid=no 15494fi 15495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15496 conftest$ac_exeext conftest.$ac_ext 15497fi 15498 15499 15500 CFLAGS="$xorg_testset_save_CFLAGS" 15501 15502 eval supported=\$$cacheid 15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15504printf "%s\n" "$supported" >&6; } 15505 if test "$supported" = "yes" ; then 15506 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15507 found="yes" 15508 fi 15509 fi 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525xorg_testset_save_CFLAGS="$CFLAGS" 15526 15527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15530printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15531if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15532then : 15533 printf %s "(cached) " >&6 15534else $as_nop 15535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15536/* end confdefs.h. */ 15537int i; 15538_ACEOF 15539if ac_fn_c_try_compile "$LINENO" 15540then : 15541 xorg_cv_cc_flag_unknown_warning_option=yes 15542else $as_nop 15543 xorg_cv_cc_flag_unknown_warning_option=no 15544fi 15545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15546fi 15547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15550 CFLAGS="$xorg_testset_save_CFLAGS" 15551fi 15552 15553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15556 fi 15557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15560if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15561then : 15562 printf %s "(cached) " >&6 15563else $as_nop 15564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15565/* end confdefs.h. */ 15566int i; 15567_ACEOF 15568if ac_fn_c_try_compile "$LINENO" 15569then : 15570 xorg_cv_cc_flag_unused_command_line_argument=yes 15571else $as_nop 15572 xorg_cv_cc_flag_unused_command_line_argument=no 15573fi 15574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15575fi 15576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15577printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15579 CFLAGS="$xorg_testset_save_CFLAGS" 15580fi 15581 15582found="no" 15583 15584 if test $found = "no" ; then 15585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15587 fi 15588 15589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15591 fi 15592 15593 CFLAGS="$CFLAGS -Werror=init-self" 15594 15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15596printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15597 cacheid=xorg_cv_cc_flag__Werror_init_self 15598 if eval test \${$cacheid+y} 15599then : 15600 printf %s "(cached) " >&6 15601else $as_nop 15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15603/* end confdefs.h. */ 15604int i; 15605int 15606main (void) 15607{ 15608 15609 ; 15610 return 0; 15611} 15612_ACEOF 15613if ac_fn_c_try_link "$LINENO" 15614then : 15615 eval $cacheid=yes 15616else $as_nop 15617 eval $cacheid=no 15618fi 15619rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15620 conftest$ac_exeext conftest.$ac_ext 15621fi 15622 15623 15624 CFLAGS="$xorg_testset_save_CFLAGS" 15625 15626 eval supported=\$$cacheid 15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15628printf "%s\n" "$supported" >&6; } 15629 if test "$supported" = "yes" ; then 15630 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15631 found="yes" 15632 fi 15633 fi 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649xorg_testset_save_CFLAGS="$CFLAGS" 15650 15651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15655if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15656then : 15657 printf %s "(cached) " >&6 15658else $as_nop 15659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15660/* end confdefs.h. */ 15661int i; 15662_ACEOF 15663if ac_fn_c_try_compile "$LINENO" 15664then : 15665 xorg_cv_cc_flag_unknown_warning_option=yes 15666else $as_nop 15667 xorg_cv_cc_flag_unknown_warning_option=no 15668fi 15669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15670fi 15671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15674 CFLAGS="$xorg_testset_save_CFLAGS" 15675fi 15676 15677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15680 fi 15681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15684if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15685then : 15686 printf %s "(cached) " >&6 15687else $as_nop 15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15689/* end confdefs.h. */ 15690int i; 15691_ACEOF 15692if ac_fn_c_try_compile "$LINENO" 15693then : 15694 xorg_cv_cc_flag_unused_command_line_argument=yes 15695else $as_nop 15696 xorg_cv_cc_flag_unused_command_line_argument=no 15697fi 15698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15699fi 15700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15703 CFLAGS="$xorg_testset_save_CFLAGS" 15704fi 15705 15706found="no" 15707 15708 if test $found = "no" ; then 15709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15711 fi 15712 15713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15715 fi 15716 15717 CFLAGS="$CFLAGS -Werror=main" 15718 15719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15720printf %s "checking if $CC supports -Werror=main... " >&6; } 15721 cacheid=xorg_cv_cc_flag__Werror_main 15722 if eval test \${$cacheid+y} 15723then : 15724 printf %s "(cached) " >&6 15725else $as_nop 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727/* end confdefs.h. */ 15728int i; 15729int 15730main (void) 15731{ 15732 15733 ; 15734 return 0; 15735} 15736_ACEOF 15737if ac_fn_c_try_link "$LINENO" 15738then : 15739 eval $cacheid=yes 15740else $as_nop 15741 eval $cacheid=no 15742fi 15743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15744 conftest$ac_exeext conftest.$ac_ext 15745fi 15746 15747 15748 CFLAGS="$xorg_testset_save_CFLAGS" 15749 15750 eval supported=\$$cacheid 15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15752printf "%s\n" "$supported" >&6; } 15753 if test "$supported" = "yes" ; then 15754 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15755 found="yes" 15756 fi 15757 fi 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773xorg_testset_save_CFLAGS="$CFLAGS" 15774 15775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15780then : 15781 printf %s "(cached) " >&6 15782else $as_nop 15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15784/* end confdefs.h. */ 15785int i; 15786_ACEOF 15787if ac_fn_c_try_compile "$LINENO" 15788then : 15789 xorg_cv_cc_flag_unknown_warning_option=yes 15790else $as_nop 15791 xorg_cv_cc_flag_unknown_warning_option=no 15792fi 15793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15794fi 15795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15798 CFLAGS="$xorg_testset_save_CFLAGS" 15799fi 15800 15801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15804 fi 15805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15809then : 15810 printf %s "(cached) " >&6 15811else $as_nop 15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15813/* end confdefs.h. */ 15814int i; 15815_ACEOF 15816if ac_fn_c_try_compile "$LINENO" 15817then : 15818 xorg_cv_cc_flag_unused_command_line_argument=yes 15819else $as_nop 15820 xorg_cv_cc_flag_unused_command_line_argument=no 15821fi 15822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15823fi 15824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15827 CFLAGS="$xorg_testset_save_CFLAGS" 15828fi 15829 15830found="no" 15831 15832 if test $found = "no" ; then 15833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15835 fi 15836 15837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15839 fi 15840 15841 CFLAGS="$CFLAGS -Werror=missing-braces" 15842 15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15844printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15845 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15846 if eval test \${$cacheid+y} 15847then : 15848 printf %s "(cached) " >&6 15849else $as_nop 15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15851/* end confdefs.h. */ 15852int i; 15853int 15854main (void) 15855{ 15856 15857 ; 15858 return 0; 15859} 15860_ACEOF 15861if ac_fn_c_try_link "$LINENO" 15862then : 15863 eval $cacheid=yes 15864else $as_nop 15865 eval $cacheid=no 15866fi 15867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15868 conftest$ac_exeext conftest.$ac_ext 15869fi 15870 15871 15872 CFLAGS="$xorg_testset_save_CFLAGS" 15873 15874 eval supported=\$$cacheid 15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15876printf "%s\n" "$supported" >&6; } 15877 if test "$supported" = "yes" ; then 15878 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15879 found="yes" 15880 fi 15881 fi 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897xorg_testset_save_CFLAGS="$CFLAGS" 15898 15899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15904then : 15905 printf %s "(cached) " >&6 15906else $as_nop 15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15908/* end confdefs.h. */ 15909int i; 15910_ACEOF 15911if ac_fn_c_try_compile "$LINENO" 15912then : 15913 xorg_cv_cc_flag_unknown_warning_option=yes 15914else $as_nop 15915 xorg_cv_cc_flag_unknown_warning_option=no 15916fi 15917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15918fi 15919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15922 CFLAGS="$xorg_testset_save_CFLAGS" 15923fi 15924 15925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15928 fi 15929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15933then : 15934 printf %s "(cached) " >&6 15935else $as_nop 15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15937/* end confdefs.h. */ 15938int i; 15939_ACEOF 15940if ac_fn_c_try_compile "$LINENO" 15941then : 15942 xorg_cv_cc_flag_unused_command_line_argument=yes 15943else $as_nop 15944 xorg_cv_cc_flag_unused_command_line_argument=no 15945fi 15946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15947fi 15948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15951 CFLAGS="$xorg_testset_save_CFLAGS" 15952fi 15953 15954found="no" 15955 15956 if test $found = "no" ; then 15957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15959 fi 15960 15961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15963 fi 15964 15965 CFLAGS="$CFLAGS -Werror=sequence-point" 15966 15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15968printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15969 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15970 if eval test \${$cacheid+y} 15971then : 15972 printf %s "(cached) " >&6 15973else $as_nop 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975/* end confdefs.h. */ 15976int i; 15977int 15978main (void) 15979{ 15980 15981 ; 15982 return 0; 15983} 15984_ACEOF 15985if ac_fn_c_try_link "$LINENO" 15986then : 15987 eval $cacheid=yes 15988else $as_nop 15989 eval $cacheid=no 15990fi 15991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15992 conftest$ac_exeext conftest.$ac_ext 15993fi 15994 15995 15996 CFLAGS="$xorg_testset_save_CFLAGS" 15997 15998 eval supported=\$$cacheid 15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16000printf "%s\n" "$supported" >&6; } 16001 if test "$supported" = "yes" ; then 16002 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16003 found="yes" 16004 fi 16005 fi 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021xorg_testset_save_CFLAGS="$CFLAGS" 16022 16023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16028then : 16029 printf %s "(cached) " >&6 16030else $as_nop 16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16032/* end confdefs.h. */ 16033int i; 16034_ACEOF 16035if ac_fn_c_try_compile "$LINENO" 16036then : 16037 xorg_cv_cc_flag_unknown_warning_option=yes 16038else $as_nop 16039 xorg_cv_cc_flag_unknown_warning_option=no 16040fi 16041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16042fi 16043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16046 CFLAGS="$xorg_testset_save_CFLAGS" 16047fi 16048 16049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16052 fi 16053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16057then : 16058 printf %s "(cached) " >&6 16059else $as_nop 16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16061/* end confdefs.h. */ 16062int i; 16063_ACEOF 16064if ac_fn_c_try_compile "$LINENO" 16065then : 16066 xorg_cv_cc_flag_unused_command_line_argument=yes 16067else $as_nop 16068 xorg_cv_cc_flag_unused_command_line_argument=no 16069fi 16070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16071fi 16072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16075 CFLAGS="$xorg_testset_save_CFLAGS" 16076fi 16077 16078found="no" 16079 16080 if test $found = "no" ; then 16081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16083 fi 16084 16085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16087 fi 16088 16089 CFLAGS="$CFLAGS -Werror=return-type" 16090 16091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16092printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16093 cacheid=xorg_cv_cc_flag__Werror_return_type 16094 if eval test \${$cacheid+y} 16095then : 16096 printf %s "(cached) " >&6 16097else $as_nop 16098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16099/* end confdefs.h. */ 16100int i; 16101int 16102main (void) 16103{ 16104 16105 ; 16106 return 0; 16107} 16108_ACEOF 16109if ac_fn_c_try_link "$LINENO" 16110then : 16111 eval $cacheid=yes 16112else $as_nop 16113 eval $cacheid=no 16114fi 16115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16116 conftest$ac_exeext conftest.$ac_ext 16117fi 16118 16119 16120 CFLAGS="$xorg_testset_save_CFLAGS" 16121 16122 eval supported=\$$cacheid 16123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16124printf "%s\n" "$supported" >&6; } 16125 if test "$supported" = "yes" ; then 16126 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16127 found="yes" 16128 fi 16129 fi 16130 16131 if test $found = "no" ; then 16132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16134 fi 16135 16136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16138 fi 16139 16140 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16141 16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16143printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16144 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16145 if eval test \${$cacheid+y} 16146then : 16147 printf %s "(cached) " >&6 16148else $as_nop 16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16150/* end confdefs.h. */ 16151int i; 16152int 16153main (void) 16154{ 16155 16156 ; 16157 return 0; 16158} 16159_ACEOF 16160if ac_fn_c_try_link "$LINENO" 16161then : 16162 eval $cacheid=yes 16163else $as_nop 16164 eval $cacheid=no 16165fi 16166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16167 conftest$ac_exeext conftest.$ac_ext 16168fi 16169 16170 16171 CFLAGS="$xorg_testset_save_CFLAGS" 16172 16173 eval supported=\$$cacheid 16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16175printf "%s\n" "$supported" >&6; } 16176 if test "$supported" = "yes" ; then 16177 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16178 found="yes" 16179 fi 16180 fi 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196xorg_testset_save_CFLAGS="$CFLAGS" 16197 16198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16202if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16203then : 16204 printf %s "(cached) " >&6 16205else $as_nop 16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208int i; 16209_ACEOF 16210if ac_fn_c_try_compile "$LINENO" 16211then : 16212 xorg_cv_cc_flag_unknown_warning_option=yes 16213else $as_nop 16214 xorg_cv_cc_flag_unknown_warning_option=no 16215fi 16216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16217fi 16218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16221 CFLAGS="$xorg_testset_save_CFLAGS" 16222fi 16223 16224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16227 fi 16228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16231if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16232then : 16233 printf %s "(cached) " >&6 16234else $as_nop 16235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16236/* end confdefs.h. */ 16237int i; 16238_ACEOF 16239if ac_fn_c_try_compile "$LINENO" 16240then : 16241 xorg_cv_cc_flag_unused_command_line_argument=yes 16242else $as_nop 16243 xorg_cv_cc_flag_unused_command_line_argument=no 16244fi 16245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16246fi 16247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16250 CFLAGS="$xorg_testset_save_CFLAGS" 16251fi 16252 16253found="no" 16254 16255 if test $found = "no" ; then 16256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16258 fi 16259 16260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16262 fi 16263 16264 CFLAGS="$CFLAGS -Werror=trigraphs" 16265 16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16267printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16268 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16269 if eval test \${$cacheid+y} 16270then : 16271 printf %s "(cached) " >&6 16272else $as_nop 16273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16274/* end confdefs.h. */ 16275int i; 16276int 16277main (void) 16278{ 16279 16280 ; 16281 return 0; 16282} 16283_ACEOF 16284if ac_fn_c_try_link "$LINENO" 16285then : 16286 eval $cacheid=yes 16287else $as_nop 16288 eval $cacheid=no 16289fi 16290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16291 conftest$ac_exeext conftest.$ac_ext 16292fi 16293 16294 16295 CFLAGS="$xorg_testset_save_CFLAGS" 16296 16297 eval supported=\$$cacheid 16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16299printf "%s\n" "$supported" >&6; } 16300 if test "$supported" = "yes" ; then 16301 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16302 found="yes" 16303 fi 16304 fi 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320xorg_testset_save_CFLAGS="$CFLAGS" 16321 16322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16326if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16327then : 16328 printf %s "(cached) " >&6 16329else $as_nop 16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16331/* end confdefs.h. */ 16332int i; 16333_ACEOF 16334if ac_fn_c_try_compile "$LINENO" 16335then : 16336 xorg_cv_cc_flag_unknown_warning_option=yes 16337else $as_nop 16338 xorg_cv_cc_flag_unknown_warning_option=no 16339fi 16340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16341fi 16342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16345 CFLAGS="$xorg_testset_save_CFLAGS" 16346fi 16347 16348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16351 fi 16352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16356then : 16357 printf %s "(cached) " >&6 16358else $as_nop 16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16360/* end confdefs.h. */ 16361int i; 16362_ACEOF 16363if ac_fn_c_try_compile "$LINENO" 16364then : 16365 xorg_cv_cc_flag_unused_command_line_argument=yes 16366else $as_nop 16367 xorg_cv_cc_flag_unused_command_line_argument=no 16368fi 16369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16370fi 16371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16374 CFLAGS="$xorg_testset_save_CFLAGS" 16375fi 16376 16377found="no" 16378 16379 if test $found = "no" ; then 16380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16382 fi 16383 16384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16386 fi 16387 16388 CFLAGS="$CFLAGS -Werror=array-bounds" 16389 16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16391printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16392 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16393 if eval test \${$cacheid+y} 16394then : 16395 printf %s "(cached) " >&6 16396else $as_nop 16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16398/* end confdefs.h. */ 16399int i; 16400int 16401main (void) 16402{ 16403 16404 ; 16405 return 0; 16406} 16407_ACEOF 16408if ac_fn_c_try_link "$LINENO" 16409then : 16410 eval $cacheid=yes 16411else $as_nop 16412 eval $cacheid=no 16413fi 16414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16415 conftest$ac_exeext conftest.$ac_ext 16416fi 16417 16418 16419 CFLAGS="$xorg_testset_save_CFLAGS" 16420 16421 eval supported=\$$cacheid 16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16423printf "%s\n" "$supported" >&6; } 16424 if test "$supported" = "yes" ; then 16425 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16426 found="yes" 16427 fi 16428 fi 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444xorg_testset_save_CFLAGS="$CFLAGS" 16445 16446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16450if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16451then : 16452 printf %s "(cached) " >&6 16453else $as_nop 16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16455/* end confdefs.h. */ 16456int i; 16457_ACEOF 16458if ac_fn_c_try_compile "$LINENO" 16459then : 16460 xorg_cv_cc_flag_unknown_warning_option=yes 16461else $as_nop 16462 xorg_cv_cc_flag_unknown_warning_option=no 16463fi 16464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16465fi 16466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16469 CFLAGS="$xorg_testset_save_CFLAGS" 16470fi 16471 16472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16475 fi 16476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16479if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16480then : 16481 printf %s "(cached) " >&6 16482else $as_nop 16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16484/* end confdefs.h. */ 16485int i; 16486_ACEOF 16487if ac_fn_c_try_compile "$LINENO" 16488then : 16489 xorg_cv_cc_flag_unused_command_line_argument=yes 16490else $as_nop 16491 xorg_cv_cc_flag_unused_command_line_argument=no 16492fi 16493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16494fi 16495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16498 CFLAGS="$xorg_testset_save_CFLAGS" 16499fi 16500 16501found="no" 16502 16503 if test $found = "no" ; then 16504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16506 fi 16507 16508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16510 fi 16511 16512 CFLAGS="$CFLAGS -Werror=write-strings" 16513 16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16515printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16516 cacheid=xorg_cv_cc_flag__Werror_write_strings 16517 if eval test \${$cacheid+y} 16518then : 16519 printf %s "(cached) " >&6 16520else $as_nop 16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16522/* end confdefs.h. */ 16523int i; 16524int 16525main (void) 16526{ 16527 16528 ; 16529 return 0; 16530} 16531_ACEOF 16532if ac_fn_c_try_link "$LINENO" 16533then : 16534 eval $cacheid=yes 16535else $as_nop 16536 eval $cacheid=no 16537fi 16538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16539 conftest$ac_exeext conftest.$ac_ext 16540fi 16541 16542 16543 CFLAGS="$xorg_testset_save_CFLAGS" 16544 16545 eval supported=\$$cacheid 16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16547printf "%s\n" "$supported" >&6; } 16548 if test "$supported" = "yes" ; then 16549 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16550 found="yes" 16551 fi 16552 fi 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568xorg_testset_save_CFLAGS="$CFLAGS" 16569 16570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16574if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16575then : 16576 printf %s "(cached) " >&6 16577else $as_nop 16578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16579/* end confdefs.h. */ 16580int i; 16581_ACEOF 16582if ac_fn_c_try_compile "$LINENO" 16583then : 16584 xorg_cv_cc_flag_unknown_warning_option=yes 16585else $as_nop 16586 xorg_cv_cc_flag_unknown_warning_option=no 16587fi 16588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16589fi 16590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16593 CFLAGS="$xorg_testset_save_CFLAGS" 16594fi 16595 16596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16599 fi 16600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16604then : 16605 printf %s "(cached) " >&6 16606else $as_nop 16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16608/* end confdefs.h. */ 16609int i; 16610_ACEOF 16611if ac_fn_c_try_compile "$LINENO" 16612then : 16613 xorg_cv_cc_flag_unused_command_line_argument=yes 16614else $as_nop 16615 xorg_cv_cc_flag_unused_command_line_argument=no 16616fi 16617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16618fi 16619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16622 CFLAGS="$xorg_testset_save_CFLAGS" 16623fi 16624 16625found="no" 16626 16627 if test $found = "no" ; then 16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16630 fi 16631 16632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16634 fi 16635 16636 CFLAGS="$CFLAGS -Werror=address" 16637 16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16639printf %s "checking if $CC supports -Werror=address... " >&6; } 16640 cacheid=xorg_cv_cc_flag__Werror_address 16641 if eval test \${$cacheid+y} 16642then : 16643 printf %s "(cached) " >&6 16644else $as_nop 16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16646/* end confdefs.h. */ 16647int i; 16648int 16649main (void) 16650{ 16651 16652 ; 16653 return 0; 16654} 16655_ACEOF 16656if ac_fn_c_try_link "$LINENO" 16657then : 16658 eval $cacheid=yes 16659else $as_nop 16660 eval $cacheid=no 16661fi 16662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16663 conftest$ac_exeext conftest.$ac_ext 16664fi 16665 16666 16667 CFLAGS="$xorg_testset_save_CFLAGS" 16668 16669 eval supported=\$$cacheid 16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16671printf "%s\n" "$supported" >&6; } 16672 if test "$supported" = "yes" ; then 16673 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16674 found="yes" 16675 fi 16676 fi 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692xorg_testset_save_CFLAGS="$CFLAGS" 16693 16694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16698if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16699then : 16700 printf %s "(cached) " >&6 16701else $as_nop 16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16703/* end confdefs.h. */ 16704int i; 16705_ACEOF 16706if ac_fn_c_try_compile "$LINENO" 16707then : 16708 xorg_cv_cc_flag_unknown_warning_option=yes 16709else $as_nop 16710 xorg_cv_cc_flag_unknown_warning_option=no 16711fi 16712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16713fi 16714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16717 CFLAGS="$xorg_testset_save_CFLAGS" 16718fi 16719 16720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16723 fi 16724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16727if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16728then : 16729 printf %s "(cached) " >&6 16730else $as_nop 16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16732/* end confdefs.h. */ 16733int i; 16734_ACEOF 16735if ac_fn_c_try_compile "$LINENO" 16736then : 16737 xorg_cv_cc_flag_unused_command_line_argument=yes 16738else $as_nop 16739 xorg_cv_cc_flag_unused_command_line_argument=no 16740fi 16741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16742fi 16743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16746 CFLAGS="$xorg_testset_save_CFLAGS" 16747fi 16748 16749found="no" 16750 16751 if test $found = "no" ; then 16752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16754 fi 16755 16756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16758 fi 16759 16760 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16761 16762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16763printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16764 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16765 if eval test \${$cacheid+y} 16766then : 16767 printf %s "(cached) " >&6 16768else $as_nop 16769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16770/* end confdefs.h. */ 16771int i; 16772int 16773main (void) 16774{ 16775 16776 ; 16777 return 0; 16778} 16779_ACEOF 16780if ac_fn_c_try_link "$LINENO" 16781then : 16782 eval $cacheid=yes 16783else $as_nop 16784 eval $cacheid=no 16785fi 16786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16787 conftest$ac_exeext conftest.$ac_ext 16788fi 16789 16790 16791 CFLAGS="$xorg_testset_save_CFLAGS" 16792 16793 eval supported=\$$cacheid 16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16795printf "%s\n" "$supported" >&6; } 16796 if test "$supported" = "yes" ; then 16797 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16798 found="yes" 16799 fi 16800 fi 16801 16802 if test $found = "no" ; then 16803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16805 fi 16806 16807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16809 fi 16810 16811 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16812 16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16814printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16815 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16816 if eval test \${$cacheid+y} 16817then : 16818 printf %s "(cached) " >&6 16819else $as_nop 16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16821/* end confdefs.h. */ 16822int i; 16823int 16824main (void) 16825{ 16826 16827 ; 16828 return 0; 16829} 16830_ACEOF 16831if ac_fn_c_try_link "$LINENO" 16832then : 16833 eval $cacheid=yes 16834else $as_nop 16835 eval $cacheid=no 16836fi 16837rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16838 conftest$ac_exeext conftest.$ac_ext 16839fi 16840 16841 16842 CFLAGS="$xorg_testset_save_CFLAGS" 16843 16844 eval supported=\$$cacheid 16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16846printf "%s\n" "$supported" >&6; } 16847 if test "$supported" = "yes" ; then 16848 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16849 found="yes" 16850 fi 16851 fi 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867xorg_testset_save_CFLAGS="$CFLAGS" 16868 16869if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16872printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16873if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16874then : 16875 printf %s "(cached) " >&6 16876else $as_nop 16877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16878/* end confdefs.h. */ 16879int i; 16880_ACEOF 16881if ac_fn_c_try_compile "$LINENO" 16882then : 16883 xorg_cv_cc_flag_unknown_warning_option=yes 16884else $as_nop 16885 xorg_cv_cc_flag_unknown_warning_option=no 16886fi 16887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16888fi 16889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16890printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16891 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16892 CFLAGS="$xorg_testset_save_CFLAGS" 16893fi 16894 16895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16898 fi 16899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16901printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16902if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16903then : 16904 printf %s "(cached) " >&6 16905else $as_nop 16906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16907/* end confdefs.h. */ 16908int i; 16909_ACEOF 16910if ac_fn_c_try_compile "$LINENO" 16911then : 16912 xorg_cv_cc_flag_unused_command_line_argument=yes 16913else $as_nop 16914 xorg_cv_cc_flag_unused_command_line_argument=no 16915fi 16916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16917fi 16918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16919printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16921 CFLAGS="$xorg_testset_save_CFLAGS" 16922fi 16923 16924found="no" 16925 16926 if test $found = "no" ; then 16927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16929 fi 16930 16931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16933 fi 16934 16935 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16936 16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16938printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16939 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16940 if eval test \${$cacheid+y} 16941then : 16942 printf %s "(cached) " >&6 16943else $as_nop 16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16945/* end confdefs.h. */ 16946int i; 16947int 16948main (void) 16949{ 16950 16951 ; 16952 return 0; 16953} 16954_ACEOF 16955if ac_fn_c_try_link "$LINENO" 16956then : 16957 eval $cacheid=yes 16958else $as_nop 16959 eval $cacheid=no 16960fi 16961rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16962 conftest$ac_exeext conftest.$ac_ext 16963fi 16964 16965 16966 CFLAGS="$xorg_testset_save_CFLAGS" 16967 16968 eval supported=\$$cacheid 16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16970printf "%s\n" "$supported" >&6; } 16971 if test "$supported" = "yes" ; then 16972 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16973 found="yes" 16974 fi 16975 fi 16976 16977 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16978else 16979{ 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 16980printf "%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;} 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994xorg_testset_save_CFLAGS="$CFLAGS" 16995 16996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17000if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17001then : 17002 printf %s "(cached) " >&6 17003else $as_nop 17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17005/* end confdefs.h. */ 17006int i; 17007_ACEOF 17008if ac_fn_c_try_compile "$LINENO" 17009then : 17010 xorg_cv_cc_flag_unknown_warning_option=yes 17011else $as_nop 17012 xorg_cv_cc_flag_unknown_warning_option=no 17013fi 17014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17015fi 17016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17019 CFLAGS="$xorg_testset_save_CFLAGS" 17020fi 17021 17022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17025 fi 17026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17029if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17030then : 17031 printf %s "(cached) " >&6 17032else $as_nop 17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17034/* end confdefs.h. */ 17035int i; 17036_ACEOF 17037if ac_fn_c_try_compile "$LINENO" 17038then : 17039 xorg_cv_cc_flag_unused_command_line_argument=yes 17040else $as_nop 17041 xorg_cv_cc_flag_unused_command_line_argument=no 17042fi 17043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17044fi 17045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17048 CFLAGS="$xorg_testset_save_CFLAGS" 17049fi 17050 17051found="no" 17052 17053 if test $found = "no" ; then 17054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17056 fi 17057 17058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17060 fi 17061 17062 CFLAGS="$CFLAGS -Wimplicit" 17063 17064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17065printf %s "checking if $CC supports -Wimplicit... " >&6; } 17066 cacheid=xorg_cv_cc_flag__Wimplicit 17067 if eval test \${$cacheid+y} 17068then : 17069 printf %s "(cached) " >&6 17070else $as_nop 17071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17072/* end confdefs.h. */ 17073int i; 17074int 17075main (void) 17076{ 17077 17078 ; 17079 return 0; 17080} 17081_ACEOF 17082if ac_fn_c_try_link "$LINENO" 17083then : 17084 eval $cacheid=yes 17085else $as_nop 17086 eval $cacheid=no 17087fi 17088rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17089 conftest$ac_exeext conftest.$ac_ext 17090fi 17091 17092 17093 CFLAGS="$xorg_testset_save_CFLAGS" 17094 17095 eval supported=\$$cacheid 17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17097printf "%s\n" "$supported" >&6; } 17098 if test "$supported" = "yes" ; then 17099 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17100 found="yes" 17101 fi 17102 fi 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118xorg_testset_save_CFLAGS="$CFLAGS" 17119 17120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17123printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17124if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17125then : 17126 printf %s "(cached) " >&6 17127else $as_nop 17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17129/* end confdefs.h. */ 17130int i; 17131_ACEOF 17132if ac_fn_c_try_compile "$LINENO" 17133then : 17134 xorg_cv_cc_flag_unknown_warning_option=yes 17135else $as_nop 17136 xorg_cv_cc_flag_unknown_warning_option=no 17137fi 17138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17139fi 17140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17141printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17143 CFLAGS="$xorg_testset_save_CFLAGS" 17144fi 17145 17146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17149 fi 17150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17152printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17153if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17154then : 17155 printf %s "(cached) " >&6 17156else $as_nop 17157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17158/* end confdefs.h. */ 17159int i; 17160_ACEOF 17161if ac_fn_c_try_compile "$LINENO" 17162then : 17163 xorg_cv_cc_flag_unused_command_line_argument=yes 17164else $as_nop 17165 xorg_cv_cc_flag_unused_command_line_argument=no 17166fi 17167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17168fi 17169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17170printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17172 CFLAGS="$xorg_testset_save_CFLAGS" 17173fi 17174 17175found="no" 17176 17177 if test $found = "no" ; then 17178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17180 fi 17181 17182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17184 fi 17185 17186 CFLAGS="$CFLAGS -Wnonnull" 17187 17188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17189printf %s "checking if $CC supports -Wnonnull... " >&6; } 17190 cacheid=xorg_cv_cc_flag__Wnonnull 17191 if eval test \${$cacheid+y} 17192then : 17193 printf %s "(cached) " >&6 17194else $as_nop 17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17196/* end confdefs.h. */ 17197int i; 17198int 17199main (void) 17200{ 17201 17202 ; 17203 return 0; 17204} 17205_ACEOF 17206if ac_fn_c_try_link "$LINENO" 17207then : 17208 eval $cacheid=yes 17209else $as_nop 17210 eval $cacheid=no 17211fi 17212rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17213 conftest$ac_exeext conftest.$ac_ext 17214fi 17215 17216 17217 CFLAGS="$xorg_testset_save_CFLAGS" 17218 17219 eval supported=\$$cacheid 17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17221printf "%s\n" "$supported" >&6; } 17222 if test "$supported" = "yes" ; then 17223 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17224 found="yes" 17225 fi 17226 fi 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242xorg_testset_save_CFLAGS="$CFLAGS" 17243 17244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17248if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17249then : 17250 printf %s "(cached) " >&6 17251else $as_nop 17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17253/* end confdefs.h. */ 17254int i; 17255_ACEOF 17256if ac_fn_c_try_compile "$LINENO" 17257then : 17258 xorg_cv_cc_flag_unknown_warning_option=yes 17259else $as_nop 17260 xorg_cv_cc_flag_unknown_warning_option=no 17261fi 17262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17263fi 17264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17265printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17267 CFLAGS="$xorg_testset_save_CFLAGS" 17268fi 17269 17270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17273 fi 17274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17276printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17277if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17278then : 17279 printf %s "(cached) " >&6 17280else $as_nop 17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17282/* end confdefs.h. */ 17283int i; 17284_ACEOF 17285if ac_fn_c_try_compile "$LINENO" 17286then : 17287 xorg_cv_cc_flag_unused_command_line_argument=yes 17288else $as_nop 17289 xorg_cv_cc_flag_unused_command_line_argument=no 17290fi 17291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17292fi 17293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17294printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17296 CFLAGS="$xorg_testset_save_CFLAGS" 17297fi 17298 17299found="no" 17300 17301 if test $found = "no" ; then 17302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17304 fi 17305 17306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17308 fi 17309 17310 CFLAGS="$CFLAGS -Winit-self" 17311 17312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17313printf %s "checking if $CC supports -Winit-self... " >&6; } 17314 cacheid=xorg_cv_cc_flag__Winit_self 17315 if eval test \${$cacheid+y} 17316then : 17317 printf %s "(cached) " >&6 17318else $as_nop 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17320/* end confdefs.h. */ 17321int i; 17322int 17323main (void) 17324{ 17325 17326 ; 17327 return 0; 17328} 17329_ACEOF 17330if ac_fn_c_try_link "$LINENO" 17331then : 17332 eval $cacheid=yes 17333else $as_nop 17334 eval $cacheid=no 17335fi 17336rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17337 conftest$ac_exeext conftest.$ac_ext 17338fi 17339 17340 17341 CFLAGS="$xorg_testset_save_CFLAGS" 17342 17343 eval supported=\$$cacheid 17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17345printf "%s\n" "$supported" >&6; } 17346 if test "$supported" = "yes" ; then 17347 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17348 found="yes" 17349 fi 17350 fi 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366xorg_testset_save_CFLAGS="$CFLAGS" 17367 17368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17372if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17373then : 17374 printf %s "(cached) " >&6 17375else $as_nop 17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17377/* end confdefs.h. */ 17378int i; 17379_ACEOF 17380if ac_fn_c_try_compile "$LINENO" 17381then : 17382 xorg_cv_cc_flag_unknown_warning_option=yes 17383else $as_nop 17384 xorg_cv_cc_flag_unknown_warning_option=no 17385fi 17386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17387fi 17388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17391 CFLAGS="$xorg_testset_save_CFLAGS" 17392fi 17393 17394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17397 fi 17398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17401if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17402then : 17403 printf %s "(cached) " >&6 17404else $as_nop 17405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17406/* end confdefs.h. */ 17407int i; 17408_ACEOF 17409if ac_fn_c_try_compile "$LINENO" 17410then : 17411 xorg_cv_cc_flag_unused_command_line_argument=yes 17412else $as_nop 17413 xorg_cv_cc_flag_unused_command_line_argument=no 17414fi 17415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17416fi 17417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17420 CFLAGS="$xorg_testset_save_CFLAGS" 17421fi 17422 17423found="no" 17424 17425 if test $found = "no" ; then 17426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17428 fi 17429 17430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17432 fi 17433 17434 CFLAGS="$CFLAGS -Wmain" 17435 17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17437printf %s "checking if $CC supports -Wmain... " >&6; } 17438 cacheid=xorg_cv_cc_flag__Wmain 17439 if eval test \${$cacheid+y} 17440then : 17441 printf %s "(cached) " >&6 17442else $as_nop 17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17444/* end confdefs.h. */ 17445int i; 17446int 17447main (void) 17448{ 17449 17450 ; 17451 return 0; 17452} 17453_ACEOF 17454if ac_fn_c_try_link "$LINENO" 17455then : 17456 eval $cacheid=yes 17457else $as_nop 17458 eval $cacheid=no 17459fi 17460rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17461 conftest$ac_exeext conftest.$ac_ext 17462fi 17463 17464 17465 CFLAGS="$xorg_testset_save_CFLAGS" 17466 17467 eval supported=\$$cacheid 17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17469printf "%s\n" "$supported" >&6; } 17470 if test "$supported" = "yes" ; then 17471 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17472 found="yes" 17473 fi 17474 fi 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490xorg_testset_save_CFLAGS="$CFLAGS" 17491 17492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17495printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17496if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17497then : 17498 printf %s "(cached) " >&6 17499else $as_nop 17500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17501/* end confdefs.h. */ 17502int i; 17503_ACEOF 17504if ac_fn_c_try_compile "$LINENO" 17505then : 17506 xorg_cv_cc_flag_unknown_warning_option=yes 17507else $as_nop 17508 xorg_cv_cc_flag_unknown_warning_option=no 17509fi 17510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17511fi 17512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17515 CFLAGS="$xorg_testset_save_CFLAGS" 17516fi 17517 17518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17521 fi 17522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17525if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17526then : 17527 printf %s "(cached) " >&6 17528else $as_nop 17529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17530/* end confdefs.h. */ 17531int i; 17532_ACEOF 17533if ac_fn_c_try_compile "$LINENO" 17534then : 17535 xorg_cv_cc_flag_unused_command_line_argument=yes 17536else $as_nop 17537 xorg_cv_cc_flag_unused_command_line_argument=no 17538fi 17539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17540fi 17541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17542printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17544 CFLAGS="$xorg_testset_save_CFLAGS" 17545fi 17546 17547found="no" 17548 17549 if test $found = "no" ; then 17550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17552 fi 17553 17554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17556 fi 17557 17558 CFLAGS="$CFLAGS -Wmissing-braces" 17559 17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17561printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17562 cacheid=xorg_cv_cc_flag__Wmissing_braces 17563 if eval test \${$cacheid+y} 17564then : 17565 printf %s "(cached) " >&6 17566else $as_nop 17567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17568/* end confdefs.h. */ 17569int i; 17570int 17571main (void) 17572{ 17573 17574 ; 17575 return 0; 17576} 17577_ACEOF 17578if ac_fn_c_try_link "$LINENO" 17579then : 17580 eval $cacheid=yes 17581else $as_nop 17582 eval $cacheid=no 17583fi 17584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17585 conftest$ac_exeext conftest.$ac_ext 17586fi 17587 17588 17589 CFLAGS="$xorg_testset_save_CFLAGS" 17590 17591 eval supported=\$$cacheid 17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17593printf "%s\n" "$supported" >&6; } 17594 if test "$supported" = "yes" ; then 17595 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17596 found="yes" 17597 fi 17598 fi 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614xorg_testset_save_CFLAGS="$CFLAGS" 17615 17616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17620if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17621then : 17622 printf %s "(cached) " >&6 17623else $as_nop 17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17625/* end confdefs.h. */ 17626int i; 17627_ACEOF 17628if ac_fn_c_try_compile "$LINENO" 17629then : 17630 xorg_cv_cc_flag_unknown_warning_option=yes 17631else $as_nop 17632 xorg_cv_cc_flag_unknown_warning_option=no 17633fi 17634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17635fi 17636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17639 CFLAGS="$xorg_testset_save_CFLAGS" 17640fi 17641 17642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17645 fi 17646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17649if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17650then : 17651 printf %s "(cached) " >&6 17652else $as_nop 17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17654/* end confdefs.h. */ 17655int i; 17656_ACEOF 17657if ac_fn_c_try_compile "$LINENO" 17658then : 17659 xorg_cv_cc_flag_unused_command_line_argument=yes 17660else $as_nop 17661 xorg_cv_cc_flag_unused_command_line_argument=no 17662fi 17663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17664fi 17665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17668 CFLAGS="$xorg_testset_save_CFLAGS" 17669fi 17670 17671found="no" 17672 17673 if test $found = "no" ; then 17674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17676 fi 17677 17678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17680 fi 17681 17682 CFLAGS="$CFLAGS -Wsequence-point" 17683 17684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17685printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17686 cacheid=xorg_cv_cc_flag__Wsequence_point 17687 if eval test \${$cacheid+y} 17688then : 17689 printf %s "(cached) " >&6 17690else $as_nop 17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17692/* end confdefs.h. */ 17693int i; 17694int 17695main (void) 17696{ 17697 17698 ; 17699 return 0; 17700} 17701_ACEOF 17702if ac_fn_c_try_link "$LINENO" 17703then : 17704 eval $cacheid=yes 17705else $as_nop 17706 eval $cacheid=no 17707fi 17708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17709 conftest$ac_exeext conftest.$ac_ext 17710fi 17711 17712 17713 CFLAGS="$xorg_testset_save_CFLAGS" 17714 17715 eval supported=\$$cacheid 17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17717printf "%s\n" "$supported" >&6; } 17718 if test "$supported" = "yes" ; then 17719 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17720 found="yes" 17721 fi 17722 fi 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738xorg_testset_save_CFLAGS="$CFLAGS" 17739 17740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17744if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17745then : 17746 printf %s "(cached) " >&6 17747else $as_nop 17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17749/* end confdefs.h. */ 17750int i; 17751_ACEOF 17752if ac_fn_c_try_compile "$LINENO" 17753then : 17754 xorg_cv_cc_flag_unknown_warning_option=yes 17755else $as_nop 17756 xorg_cv_cc_flag_unknown_warning_option=no 17757fi 17758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17759fi 17760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17763 CFLAGS="$xorg_testset_save_CFLAGS" 17764fi 17765 17766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17769 fi 17770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17773if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17774then : 17775 printf %s "(cached) " >&6 17776else $as_nop 17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17778/* end confdefs.h. */ 17779int i; 17780_ACEOF 17781if ac_fn_c_try_compile "$LINENO" 17782then : 17783 xorg_cv_cc_flag_unused_command_line_argument=yes 17784else $as_nop 17785 xorg_cv_cc_flag_unused_command_line_argument=no 17786fi 17787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17788fi 17789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17790printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17792 CFLAGS="$xorg_testset_save_CFLAGS" 17793fi 17794 17795found="no" 17796 17797 if test $found = "no" ; then 17798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17800 fi 17801 17802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17804 fi 17805 17806 CFLAGS="$CFLAGS -Wreturn-type" 17807 17808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17809printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17810 cacheid=xorg_cv_cc_flag__Wreturn_type 17811 if eval test \${$cacheid+y} 17812then : 17813 printf %s "(cached) " >&6 17814else $as_nop 17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17816/* end confdefs.h. */ 17817int i; 17818int 17819main (void) 17820{ 17821 17822 ; 17823 return 0; 17824} 17825_ACEOF 17826if ac_fn_c_try_link "$LINENO" 17827then : 17828 eval $cacheid=yes 17829else $as_nop 17830 eval $cacheid=no 17831fi 17832rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17833 conftest$ac_exeext conftest.$ac_ext 17834fi 17835 17836 17837 CFLAGS="$xorg_testset_save_CFLAGS" 17838 17839 eval supported=\$$cacheid 17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17841printf "%s\n" "$supported" >&6; } 17842 if test "$supported" = "yes" ; then 17843 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17844 found="yes" 17845 fi 17846 fi 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862xorg_testset_save_CFLAGS="$CFLAGS" 17863 17864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17867printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17868if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17869then : 17870 printf %s "(cached) " >&6 17871else $as_nop 17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17873/* end confdefs.h. */ 17874int i; 17875_ACEOF 17876if ac_fn_c_try_compile "$LINENO" 17877then : 17878 xorg_cv_cc_flag_unknown_warning_option=yes 17879else $as_nop 17880 xorg_cv_cc_flag_unknown_warning_option=no 17881fi 17882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17883fi 17884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17887 CFLAGS="$xorg_testset_save_CFLAGS" 17888fi 17889 17890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17893 fi 17894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17897if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17898then : 17899 printf %s "(cached) " >&6 17900else $as_nop 17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17902/* end confdefs.h. */ 17903int i; 17904_ACEOF 17905if ac_fn_c_try_compile "$LINENO" 17906then : 17907 xorg_cv_cc_flag_unused_command_line_argument=yes 17908else $as_nop 17909 xorg_cv_cc_flag_unused_command_line_argument=no 17910fi 17911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17912fi 17913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17914printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17916 CFLAGS="$xorg_testset_save_CFLAGS" 17917fi 17918 17919found="no" 17920 17921 if test $found = "no" ; then 17922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17924 fi 17925 17926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17928 fi 17929 17930 CFLAGS="$CFLAGS -Wtrigraphs" 17931 17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17933printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17934 cacheid=xorg_cv_cc_flag__Wtrigraphs 17935 if eval test \${$cacheid+y} 17936then : 17937 printf %s "(cached) " >&6 17938else $as_nop 17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17940/* end confdefs.h. */ 17941int i; 17942int 17943main (void) 17944{ 17945 17946 ; 17947 return 0; 17948} 17949_ACEOF 17950if ac_fn_c_try_link "$LINENO" 17951then : 17952 eval $cacheid=yes 17953else $as_nop 17954 eval $cacheid=no 17955fi 17956rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17957 conftest$ac_exeext conftest.$ac_ext 17958fi 17959 17960 17961 CFLAGS="$xorg_testset_save_CFLAGS" 17962 17963 eval supported=\$$cacheid 17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17965printf "%s\n" "$supported" >&6; } 17966 if test "$supported" = "yes" ; then 17967 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17968 found="yes" 17969 fi 17970 fi 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986xorg_testset_save_CFLAGS="$CFLAGS" 17987 17988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17991printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17992if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17993then : 17994 printf %s "(cached) " >&6 17995else $as_nop 17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17997/* end confdefs.h. */ 17998int i; 17999_ACEOF 18000if ac_fn_c_try_compile "$LINENO" 18001then : 18002 xorg_cv_cc_flag_unknown_warning_option=yes 18003else $as_nop 18004 xorg_cv_cc_flag_unknown_warning_option=no 18005fi 18006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18007fi 18008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18009printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18011 CFLAGS="$xorg_testset_save_CFLAGS" 18012fi 18013 18014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18017 fi 18018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18020printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18021if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18022then : 18023 printf %s "(cached) " >&6 18024else $as_nop 18025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18026/* end confdefs.h. */ 18027int i; 18028_ACEOF 18029if ac_fn_c_try_compile "$LINENO" 18030then : 18031 xorg_cv_cc_flag_unused_command_line_argument=yes 18032else $as_nop 18033 xorg_cv_cc_flag_unused_command_line_argument=no 18034fi 18035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18036fi 18037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18038printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18040 CFLAGS="$xorg_testset_save_CFLAGS" 18041fi 18042 18043found="no" 18044 18045 if test $found = "no" ; then 18046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18048 fi 18049 18050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18052 fi 18053 18054 CFLAGS="$CFLAGS -Warray-bounds" 18055 18056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18057printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18058 cacheid=xorg_cv_cc_flag__Warray_bounds 18059 if eval test \${$cacheid+y} 18060then : 18061 printf %s "(cached) " >&6 18062else $as_nop 18063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18064/* end confdefs.h. */ 18065int i; 18066int 18067main (void) 18068{ 18069 18070 ; 18071 return 0; 18072} 18073_ACEOF 18074if ac_fn_c_try_link "$LINENO" 18075then : 18076 eval $cacheid=yes 18077else $as_nop 18078 eval $cacheid=no 18079fi 18080rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18081 conftest$ac_exeext conftest.$ac_ext 18082fi 18083 18084 18085 CFLAGS="$xorg_testset_save_CFLAGS" 18086 18087 eval supported=\$$cacheid 18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18089printf "%s\n" "$supported" >&6; } 18090 if test "$supported" = "yes" ; then 18091 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18092 found="yes" 18093 fi 18094 fi 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110xorg_testset_save_CFLAGS="$CFLAGS" 18111 18112if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18115printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18116if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18117then : 18118 printf %s "(cached) " >&6 18119else $as_nop 18120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18121/* end confdefs.h. */ 18122int i; 18123_ACEOF 18124if ac_fn_c_try_compile "$LINENO" 18125then : 18126 xorg_cv_cc_flag_unknown_warning_option=yes 18127else $as_nop 18128 xorg_cv_cc_flag_unknown_warning_option=no 18129fi 18130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18131fi 18132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18133printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18135 CFLAGS="$xorg_testset_save_CFLAGS" 18136fi 18137 18138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18141 fi 18142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18144printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18145if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18146then : 18147 printf %s "(cached) " >&6 18148else $as_nop 18149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18150/* end confdefs.h. */ 18151int i; 18152_ACEOF 18153if ac_fn_c_try_compile "$LINENO" 18154then : 18155 xorg_cv_cc_flag_unused_command_line_argument=yes 18156else $as_nop 18157 xorg_cv_cc_flag_unused_command_line_argument=no 18158fi 18159rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18160fi 18161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18162printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18164 CFLAGS="$xorg_testset_save_CFLAGS" 18165fi 18166 18167found="no" 18168 18169 if test $found = "no" ; then 18170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18172 fi 18173 18174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18176 fi 18177 18178 CFLAGS="$CFLAGS -Wwrite-strings" 18179 18180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18181printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18182 cacheid=xorg_cv_cc_flag__Wwrite_strings 18183 if eval test \${$cacheid+y} 18184then : 18185 printf %s "(cached) " >&6 18186else $as_nop 18187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18188/* end confdefs.h. */ 18189int i; 18190int 18191main (void) 18192{ 18193 18194 ; 18195 return 0; 18196} 18197_ACEOF 18198if ac_fn_c_try_link "$LINENO" 18199then : 18200 eval $cacheid=yes 18201else $as_nop 18202 eval $cacheid=no 18203fi 18204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18205 conftest$ac_exeext conftest.$ac_ext 18206fi 18207 18208 18209 CFLAGS="$xorg_testset_save_CFLAGS" 18210 18211 eval supported=\$$cacheid 18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18213printf "%s\n" "$supported" >&6; } 18214 if test "$supported" = "yes" ; then 18215 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18216 found="yes" 18217 fi 18218 fi 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234xorg_testset_save_CFLAGS="$CFLAGS" 18235 18236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18240if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18241then : 18242 printf %s "(cached) " >&6 18243else $as_nop 18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18245/* end confdefs.h. */ 18246int i; 18247_ACEOF 18248if ac_fn_c_try_compile "$LINENO" 18249then : 18250 xorg_cv_cc_flag_unknown_warning_option=yes 18251else $as_nop 18252 xorg_cv_cc_flag_unknown_warning_option=no 18253fi 18254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18255fi 18256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18257printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18259 CFLAGS="$xorg_testset_save_CFLAGS" 18260fi 18261 18262if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18265 fi 18266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18268printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18269if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18270then : 18271 printf %s "(cached) " >&6 18272else $as_nop 18273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18274/* end confdefs.h. */ 18275int i; 18276_ACEOF 18277if ac_fn_c_try_compile "$LINENO" 18278then : 18279 xorg_cv_cc_flag_unused_command_line_argument=yes 18280else $as_nop 18281 xorg_cv_cc_flag_unused_command_line_argument=no 18282fi 18283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18284fi 18285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18286printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18288 CFLAGS="$xorg_testset_save_CFLAGS" 18289fi 18290 18291found="no" 18292 18293 if test $found = "no" ; then 18294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18296 fi 18297 18298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18300 fi 18301 18302 CFLAGS="$CFLAGS -Waddress" 18303 18304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18305printf %s "checking if $CC supports -Waddress... " >&6; } 18306 cacheid=xorg_cv_cc_flag__Waddress 18307 if eval test \${$cacheid+y} 18308then : 18309 printf %s "(cached) " >&6 18310else $as_nop 18311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18312/* end confdefs.h. */ 18313int i; 18314int 18315main (void) 18316{ 18317 18318 ; 18319 return 0; 18320} 18321_ACEOF 18322if ac_fn_c_try_link "$LINENO" 18323then : 18324 eval $cacheid=yes 18325else $as_nop 18326 eval $cacheid=no 18327fi 18328rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18329 conftest$ac_exeext conftest.$ac_ext 18330fi 18331 18332 18333 CFLAGS="$xorg_testset_save_CFLAGS" 18334 18335 eval supported=\$$cacheid 18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18337printf "%s\n" "$supported" >&6; } 18338 if test "$supported" = "yes" ; then 18339 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18340 found="yes" 18341 fi 18342 fi 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358xorg_testset_save_CFLAGS="$CFLAGS" 18359 18360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18363printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18364if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18365then : 18366 printf %s "(cached) " >&6 18367else $as_nop 18368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18369/* end confdefs.h. */ 18370int i; 18371_ACEOF 18372if ac_fn_c_try_compile "$LINENO" 18373then : 18374 xorg_cv_cc_flag_unknown_warning_option=yes 18375else $as_nop 18376 xorg_cv_cc_flag_unknown_warning_option=no 18377fi 18378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18379fi 18380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18383 CFLAGS="$xorg_testset_save_CFLAGS" 18384fi 18385 18386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18389 fi 18390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18393if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18394then : 18395 printf %s "(cached) " >&6 18396else $as_nop 18397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18398/* end confdefs.h. */ 18399int i; 18400_ACEOF 18401if ac_fn_c_try_compile "$LINENO" 18402then : 18403 xorg_cv_cc_flag_unused_command_line_argument=yes 18404else $as_nop 18405 xorg_cv_cc_flag_unused_command_line_argument=no 18406fi 18407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18408fi 18409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18410printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18411 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18412 CFLAGS="$xorg_testset_save_CFLAGS" 18413fi 18414 18415found="no" 18416 18417 if test $found = "no" ; then 18418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18420 fi 18421 18422 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18424 fi 18425 18426 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18427 18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18429printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18430 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18431 if eval test \${$cacheid+y} 18432then : 18433 printf %s "(cached) " >&6 18434else $as_nop 18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18436/* end confdefs.h. */ 18437int i; 18438int 18439main (void) 18440{ 18441 18442 ; 18443 return 0; 18444} 18445_ACEOF 18446if ac_fn_c_try_link "$LINENO" 18447then : 18448 eval $cacheid=yes 18449else $as_nop 18450 eval $cacheid=no 18451fi 18452rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18453 conftest$ac_exeext conftest.$ac_ext 18454fi 18455 18456 18457 CFLAGS="$xorg_testset_save_CFLAGS" 18458 18459 eval supported=\$$cacheid 18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18461printf "%s\n" "$supported" >&6; } 18462 if test "$supported" = "yes" ; then 18463 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18464 found="yes" 18465 fi 18466 fi 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482xorg_testset_save_CFLAGS="$CFLAGS" 18483 18484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18487printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18488if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18489then : 18490 printf %s "(cached) " >&6 18491else $as_nop 18492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18493/* end confdefs.h. */ 18494int i; 18495_ACEOF 18496if ac_fn_c_try_compile "$LINENO" 18497then : 18498 xorg_cv_cc_flag_unknown_warning_option=yes 18499else $as_nop 18500 xorg_cv_cc_flag_unknown_warning_option=no 18501fi 18502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18503fi 18504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18505printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18507 CFLAGS="$xorg_testset_save_CFLAGS" 18508fi 18509 18510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18513 fi 18514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18516printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18517if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18518then : 18519 printf %s "(cached) " >&6 18520else $as_nop 18521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18522/* end confdefs.h. */ 18523int i; 18524_ACEOF 18525if ac_fn_c_try_compile "$LINENO" 18526then : 18527 xorg_cv_cc_flag_unused_command_line_argument=yes 18528else $as_nop 18529 xorg_cv_cc_flag_unused_command_line_argument=no 18530fi 18531rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18532fi 18533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18534printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18536 CFLAGS="$xorg_testset_save_CFLAGS" 18537fi 18538 18539found="no" 18540 18541 if test $found = "no" ; then 18542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18544 fi 18545 18546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18548 fi 18549 18550 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18551 18552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18553printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18554 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18555 if eval test \${$cacheid+y} 18556then : 18557 printf %s "(cached) " >&6 18558else $as_nop 18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18560/* end confdefs.h. */ 18561int i; 18562int 18563main (void) 18564{ 18565 18566 ; 18567 return 0; 18568} 18569_ACEOF 18570if ac_fn_c_try_link "$LINENO" 18571then : 18572 eval $cacheid=yes 18573else $as_nop 18574 eval $cacheid=no 18575fi 18576rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18577 conftest$ac_exeext conftest.$ac_ext 18578fi 18579 18580 18581 CFLAGS="$xorg_testset_save_CFLAGS" 18582 18583 eval supported=\$$cacheid 18584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18585printf "%s\n" "$supported" >&6; } 18586 if test "$supported" = "yes" ; then 18587 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18588 found="yes" 18589 fi 18590 fi 18591 18592 18593fi 18594 18595 18596 18597 18598 18599 18600 18601 CWARNFLAGS="$BASE_CFLAGS" 18602 if test "x$GCC" = xyes ; then 18603 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18604 fi 18605 18606 18607 18608 18609 18610 18611 18612 18613# Check whether --enable-strict-compilation was given. 18614if test ${enable_strict_compilation+y} 18615then : 18616 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18617else $as_nop 18618 STRICT_COMPILE=no 18619fi 18620 18621 18622 18623 18624 18625 18626STRICT_CFLAGS="" 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640xorg_testset_save_CFLAGS="$CFLAGS" 18641 18642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18645printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18646if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18647then : 18648 printf %s "(cached) " >&6 18649else $as_nop 18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18651/* end confdefs.h. */ 18652int i; 18653_ACEOF 18654if ac_fn_c_try_compile "$LINENO" 18655then : 18656 xorg_cv_cc_flag_unknown_warning_option=yes 18657else $as_nop 18658 xorg_cv_cc_flag_unknown_warning_option=no 18659fi 18660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18661fi 18662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18663printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18665 CFLAGS="$xorg_testset_save_CFLAGS" 18666fi 18667 18668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18671 fi 18672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18674printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18675if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18676then : 18677 printf %s "(cached) " >&6 18678else $as_nop 18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18680/* end confdefs.h. */ 18681int i; 18682_ACEOF 18683if ac_fn_c_try_compile "$LINENO" 18684then : 18685 xorg_cv_cc_flag_unused_command_line_argument=yes 18686else $as_nop 18687 xorg_cv_cc_flag_unused_command_line_argument=no 18688fi 18689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18690fi 18691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18694 CFLAGS="$xorg_testset_save_CFLAGS" 18695fi 18696 18697found="no" 18698 18699 if test $found = "no" ; then 18700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18702 fi 18703 18704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18706 fi 18707 18708 CFLAGS="$CFLAGS -pedantic" 18709 18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18711printf %s "checking if $CC supports -pedantic... " >&6; } 18712 cacheid=xorg_cv_cc_flag__pedantic 18713 if eval test \${$cacheid+y} 18714then : 18715 printf %s "(cached) " >&6 18716else $as_nop 18717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18718/* end confdefs.h. */ 18719int i; 18720int 18721main (void) 18722{ 18723 18724 ; 18725 return 0; 18726} 18727_ACEOF 18728if ac_fn_c_try_link "$LINENO" 18729then : 18730 eval $cacheid=yes 18731else $as_nop 18732 eval $cacheid=no 18733fi 18734rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18735 conftest$ac_exeext conftest.$ac_ext 18736fi 18737 18738 18739 CFLAGS="$xorg_testset_save_CFLAGS" 18740 18741 eval supported=\$$cacheid 18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18743printf "%s\n" "$supported" >&6; } 18744 if test "$supported" = "yes" ; then 18745 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18746 found="yes" 18747 fi 18748 fi 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764xorg_testset_save_CFLAGS="$CFLAGS" 18765 18766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18769printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18770if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18771then : 18772 printf %s "(cached) " >&6 18773else $as_nop 18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18775/* end confdefs.h. */ 18776int i; 18777_ACEOF 18778if ac_fn_c_try_compile "$LINENO" 18779then : 18780 xorg_cv_cc_flag_unknown_warning_option=yes 18781else $as_nop 18782 xorg_cv_cc_flag_unknown_warning_option=no 18783fi 18784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18785fi 18786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18787printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18789 CFLAGS="$xorg_testset_save_CFLAGS" 18790fi 18791 18792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18795 fi 18796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18798printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18799if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18800then : 18801 printf %s "(cached) " >&6 18802else $as_nop 18803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18804/* end confdefs.h. */ 18805int i; 18806_ACEOF 18807if ac_fn_c_try_compile "$LINENO" 18808then : 18809 xorg_cv_cc_flag_unused_command_line_argument=yes 18810else $as_nop 18811 xorg_cv_cc_flag_unused_command_line_argument=no 18812fi 18813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18814fi 18815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18816printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18818 CFLAGS="$xorg_testset_save_CFLAGS" 18819fi 18820 18821found="no" 18822 18823 if test $found = "no" ; then 18824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18826 fi 18827 18828 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18830 fi 18831 18832 CFLAGS="$CFLAGS -Werror" 18833 18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18835printf %s "checking if $CC supports -Werror... " >&6; } 18836 cacheid=xorg_cv_cc_flag__Werror 18837 if eval test \${$cacheid+y} 18838then : 18839 printf %s "(cached) " >&6 18840else $as_nop 18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18842/* end confdefs.h. */ 18843int i; 18844int 18845main (void) 18846{ 18847 18848 ; 18849 return 0; 18850} 18851_ACEOF 18852if ac_fn_c_try_link "$LINENO" 18853then : 18854 eval $cacheid=yes 18855else $as_nop 18856 eval $cacheid=no 18857fi 18858rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18859 conftest$ac_exeext conftest.$ac_ext 18860fi 18861 18862 18863 CFLAGS="$xorg_testset_save_CFLAGS" 18864 18865 eval supported=\$$cacheid 18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18867printf "%s\n" "$supported" >&6; } 18868 if test "$supported" = "yes" ; then 18869 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18870 found="yes" 18871 fi 18872 fi 18873 18874 if test $found = "no" ; then 18875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18877 fi 18878 18879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18881 fi 18882 18883 CFLAGS="$CFLAGS -errwarn" 18884 18885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18886printf %s "checking if $CC supports -errwarn... " >&6; } 18887 cacheid=xorg_cv_cc_flag__errwarn 18888 if eval test \${$cacheid+y} 18889then : 18890 printf %s "(cached) " >&6 18891else $as_nop 18892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18893/* end confdefs.h. */ 18894int i; 18895int 18896main (void) 18897{ 18898 18899 ; 18900 return 0; 18901} 18902_ACEOF 18903if ac_fn_c_try_link "$LINENO" 18904then : 18905 eval $cacheid=yes 18906else $as_nop 18907 eval $cacheid=no 18908fi 18909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18910 conftest$ac_exeext conftest.$ac_ext 18911fi 18912 18913 18914 CFLAGS="$xorg_testset_save_CFLAGS" 18915 18916 eval supported=\$$cacheid 18917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18918printf "%s\n" "$supported" >&6; } 18919 if test "$supported" = "yes" ; then 18920 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18921 found="yes" 18922 fi 18923 fi 18924 18925 18926 18927# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18928# activate it with -Werror, so we add it here explicitly. 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942xorg_testset_save_CFLAGS="$CFLAGS" 18943 18944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18948if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18949then : 18950 printf %s "(cached) " >&6 18951else $as_nop 18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953/* end confdefs.h. */ 18954int i; 18955_ACEOF 18956if ac_fn_c_try_compile "$LINENO" 18957then : 18958 xorg_cv_cc_flag_unknown_warning_option=yes 18959else $as_nop 18960 xorg_cv_cc_flag_unknown_warning_option=no 18961fi 18962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18963fi 18964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18967 CFLAGS="$xorg_testset_save_CFLAGS" 18968fi 18969 18970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18973 fi 18974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18977if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18978then : 18979 printf %s "(cached) " >&6 18980else $as_nop 18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18982/* end confdefs.h. */ 18983int i; 18984_ACEOF 18985if ac_fn_c_try_compile "$LINENO" 18986then : 18987 xorg_cv_cc_flag_unused_command_line_argument=yes 18988else $as_nop 18989 xorg_cv_cc_flag_unused_command_line_argument=no 18990fi 18991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18992fi 18993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18996 CFLAGS="$xorg_testset_save_CFLAGS" 18997fi 18998 18999found="no" 19000 19001 if test $found = "no" ; then 19002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19004 fi 19005 19006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19008 fi 19009 19010 CFLAGS="$CFLAGS -Werror=attributes" 19011 19012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19013printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19014 cacheid=xorg_cv_cc_flag__Werror_attributes 19015 if eval test \${$cacheid+y} 19016then : 19017 printf %s "(cached) " >&6 19018else $as_nop 19019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19020/* end confdefs.h. */ 19021int i; 19022int 19023main (void) 19024{ 19025 19026 ; 19027 return 0; 19028} 19029_ACEOF 19030if ac_fn_c_try_link "$LINENO" 19031then : 19032 eval $cacheid=yes 19033else $as_nop 19034 eval $cacheid=no 19035fi 19036rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19037 conftest$ac_exeext conftest.$ac_ext 19038fi 19039 19040 19041 CFLAGS="$xorg_testset_save_CFLAGS" 19042 19043 eval supported=\$$cacheid 19044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19045printf "%s\n" "$supported" >&6; } 19046 if test "$supported" = "yes" ; then 19047 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19048 found="yes" 19049 fi 19050 fi 19051 19052 19053 19054if test "x$STRICT_COMPILE" = "xyes"; then 19055 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19056 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19057fi 19058 19059 19060 19061 19062 19063 19064 19065 19066cat >>confdefs.h <<_ACEOF 19067#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19068_ACEOF 19069 19070 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19071 if test "x$PVM" = "x"; then 19072 PVM="0" 19073 fi 19074 19075printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19076 19077 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19078 if test "x$PVP" = "x"; then 19079 PVP="0" 19080 fi 19081 19082printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19083 19084 19085 19086CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19087mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19088|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19089touch \$(top_srcdir)/ChangeLog; \ 19090echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19091 19092 19093 19094 19095macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19096INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19097mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19098|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19099touch \$(top_srcdir)/INSTALL; \ 19100echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19101 19102 19103 19104 19105 19106 19107case $host_os in 19108 solaris*) 19109 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19110 # check for a man page file found in later versions that use 19111 # traditional section numbers instead 19112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19113printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19114if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19115then : 19116 printf %s "(cached) " >&6 19117else $as_nop 19118 test "$cross_compiling" = yes && 19119 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19120if test -r "/usr/share/man/man7/attributes.7"; then 19121 ac_cv_file__usr_share_man_man7_attributes_7=yes 19122else 19123 ac_cv_file__usr_share_man_man7_attributes_7=no 19124fi 19125fi 19126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19127printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19128if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19129then : 19130 SYSV_MAN_SECTIONS=false 19131else $as_nop 19132 SYSV_MAN_SECTIONS=true 19133fi 19134 19135 ;; 19136 *) SYSV_MAN_SECTIONS=false ;; 19137esac 19138 19139if test x$APP_MAN_SUFFIX = x ; then 19140 APP_MAN_SUFFIX=1 19141fi 19142if test x$APP_MAN_DIR = x ; then 19143 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19144fi 19145 19146if test x$LIB_MAN_SUFFIX = x ; then 19147 LIB_MAN_SUFFIX=3 19148fi 19149if test x$LIB_MAN_DIR = x ; then 19150 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19151fi 19152 19153if test x$FILE_MAN_SUFFIX = x ; then 19154 case $SYSV_MAN_SECTIONS in 19155 true) FILE_MAN_SUFFIX=4 ;; 19156 *) FILE_MAN_SUFFIX=5 ;; 19157 esac 19158fi 19159if test x$FILE_MAN_DIR = x ; then 19160 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19161fi 19162 19163if test x$MISC_MAN_SUFFIX = x ; then 19164 case $SYSV_MAN_SECTIONS in 19165 true) MISC_MAN_SUFFIX=5 ;; 19166 *) MISC_MAN_SUFFIX=7 ;; 19167 esac 19168fi 19169if test x$MISC_MAN_DIR = x ; then 19170 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19171fi 19172 19173if test x$DRIVER_MAN_SUFFIX = x ; then 19174 case $SYSV_MAN_SECTIONS in 19175 true) DRIVER_MAN_SUFFIX=7 ;; 19176 *) DRIVER_MAN_SUFFIX=4 ;; 19177 esac 19178fi 19179if test x$DRIVER_MAN_DIR = x ; then 19180 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19181fi 19182 19183if test x$ADMIN_MAN_SUFFIX = x ; then 19184 case $SYSV_MAN_SECTIONS in 19185 true) ADMIN_MAN_SUFFIX=1m ;; 19186 *) ADMIN_MAN_SUFFIX=8 ;; 19187 esac 19188fi 19189if test x$ADMIN_MAN_DIR = x ; then 19190 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19191fi 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207XORG_MAN_PAGE="X Version 11" 19208 19209MAN_SUBSTS="\ 19210 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19211 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19212 -e 's|__xservername__|Xorg|g' \ 19213 -e 's|__xconfigfile__|xorg.conf|g' \ 19214 -e 's|__projectroot__|\$(prefix)|g' \ 19215 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19216 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19217 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19218 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19219 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19220 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19221 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19222 19223 19224 19225# Check whether --enable-silent-rules was given. 19226if test ${enable_silent_rules+y} 19227then : 19228 enableval=$enable_silent_rules; 19229fi 19230 19231case $enable_silent_rules in # ((( 19232 yes) AM_DEFAULT_VERBOSITY=0;; 19233 no) AM_DEFAULT_VERBOSITY=1;; 19234 *) AM_DEFAULT_VERBOSITY=0;; 19235esac 19236am_make=${MAKE-make} 19237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19238printf %s "checking whether $am_make supports nested variables... " >&6; } 19239if test ${am_cv_make_support_nested_variables+y} 19240then : 19241 printf %s "(cached) " >&6 19242else $as_nop 19243 if printf "%s\n" 'TRUE=$(BAR$(V)) 19244BAR0=false 19245BAR1=true 19246V=1 19247am__doit: 19248 @$(TRUE) 19249.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19250 am_cv_make_support_nested_variables=yes 19251else 19252 am_cv_make_support_nested_variables=no 19253fi 19254fi 19255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19256printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19257if test $am_cv_make_support_nested_variables = yes; then 19258 AM_V='$(V)' 19259 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19260else 19261 AM_V=$AM_DEFAULT_VERBOSITY 19262 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19263fi 19264AM_BACKSLASH='\' 19265 19266 19267 19268 19269# Checks for programs. 19270# Check whether --enable-static was given. 19271if test ${enable_static+y} 19272then : 19273 enableval=$enable_static; p=${PACKAGE-default} 19274 case $enableval in 19275 yes) enable_static=yes ;; 19276 no) enable_static=no ;; 19277 *) 19278 enable_static=no 19279 # Look at the argument we got. We use all the common list separators. 19280 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 19281 for pkg in $enableval; do 19282 IFS=$lt_save_ifs 19283 if test "X$pkg" = "X$p"; then 19284 enable_static=yes 19285 fi 19286 done 19287 IFS=$lt_save_ifs 19288 ;; 19289 esac 19290else $as_nop 19291 enable_static=no 19292fi 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303# ----------------------------------------------------------------------------- 19304# Configuration options 19305# ----------------------------------------------------------------------------- 19306# Define a configure option for an alternate input module directory 19307 19308# Check whether --with-xorg-module-dir was given. 19309if test ${with_xorg_module_dir+y} 19310then : 19311 withval=$with_xorg_module_dir; moduledir="$withval" 19312else $as_nop 19313 moduledir="$libdir/xorg/modules" 19314fi 19315 19316 19317 19318# Define a configure option to enable/disable lcd panel support 19319# Check whether --enable-geodegx-panel was given. 19320if test ${enable_geodegx_panel+y} 19321then : 19322 enableval=$enable_geodegx_panel; 19323else $as_nop 19324 PANEL_CPPFLAGS=-DPNL_SUP 19325fi 19326 19327 19328 19329# Define a configure option to enable/disable ztv 19330# Check whether --enable-ztv was given. 19331if test ${enable_ztv+y} 19332then : 19333 enableval=$enable_ztv; ztv=$enableval 19334else $as_nop 19335 ztv=auto 19336fi 19337 19338 19339# Check for Video4Linux Version 2 (V4L2) availability 19340 for ac_header in linux/videodev2.h 19341do : 19342 ac_fn_c_check_header_compile "$LINENO" "linux/videodev2.h" "ac_cv_header_linux_videodev2_h" "$ac_includes_default" 19343if test "x$ac_cv_header_linux_videodev2_h" = xyes 19344then : 19345 printf "%s\n" "#define HAVE_LINUX_VIDEODEV2_H 1" >>confdefs.h 19346 v4l2=yes 19347else $as_nop 19348 v4l2=no 19349fi 19350 19351done 19352if test "x$ztv" != "xno" ; then 19353 if test "x$v4l2" = "xno" ; then 19354 if test "x$ztv" = "xyes" ; then 19355 # User really wants ztv but V4L2 is not found 19356 as_fn_error $? "ZTV driver requested, but videodev2.h not found." "$LINENO" 5 19357 fi 19358 else 19359 BUILD_ZTV=yes 19360 fi 19361fi 19362 if test "x$BUILD_ZTV" = xyes; then 19363 BUILD_ZTV_TRUE= 19364 BUILD_ZTV_FALSE='#' 19365else 19366 BUILD_ZTV_TRUE='#' 19367 BUILD_ZTV_FALSE= 19368fi 19369 19370 19371# Check if GCC supports compiling in 32 bit mode for 64 bit computers 19372case $host_cpu in 19373 x86_64*|amd64*) 19374 if test "x$GCC" = xyes ; then 19375 SAVE_CFLAGS="$CFLAGS" 19376 CFLAGS="$CFLAGS -m32" 19377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports the -m32 Intel/AMD option" >&5 19378printf %s "checking if $CC supports the -m32 Intel/AMD option... " >&6; } 19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380/* end confdefs.h. */ 19381 19382#include <unistd.h> 19383int 19384main () 19385{ 19386 ; 19387 return 0; 19388} 19389_ACEOF 19390if ac_fn_c_try_compile "$LINENO" 19391then : 19392 m32_support=yes; M32_CFLAGS=-m32 19393else $as_nop 19394 m32_support=no 19395fi 19396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $m32_support" >&5 19398printf "%s\n" "$m32_support" >&6; } 19399 CFLAGS="$SAVE_CFLAGS" 19400 fi 19401 ;; 19402esac 19403 19404 19405# Store the list of server defined optional extensions in REQUIRED_MODULES 19406 19407 19408 SAVE_CFLAGS="$CFLAGS" 19409 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19411/* end confdefs.h. */ 19412 19413#include "xorg-server.h" 19414#if !defined RANDR 19415#error RANDR not defined 19416#endif 19417 19418int 19419main (void) 19420{ 19421 19422 ; 19423 return 0; 19424} 19425_ACEOF 19426if ac_fn_c_try_compile "$LINENO" 19427then : 19428 _EXT_CHECK=yes 19429else $as_nop 19430 _EXT_CHECK=no 19431fi 19432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19433 CFLAGS="$SAVE_CFLAGS" 19434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19435printf %s "checking if RANDR is defined... " >&6; } 19436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19437printf "%s\n" "$_EXT_CHECK" >&6; } 19438 if test "$_EXT_CHECK" != no; then 19439 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19440 fi 19441 19442 19443 19444 SAVE_CFLAGS="$CFLAGS" 19445 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19447/* end confdefs.h. */ 19448 19449#include "xorg-server.h" 19450#if !defined RENDER 19451#error RENDER not defined 19452#endif 19453 19454int 19455main (void) 19456{ 19457 19458 ; 19459 return 0; 19460} 19461_ACEOF 19462if ac_fn_c_try_compile "$LINENO" 19463then : 19464 _EXT_CHECK=yes 19465else $as_nop 19466 _EXT_CHECK=no 19467fi 19468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19469 CFLAGS="$SAVE_CFLAGS" 19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19471printf %s "checking if RENDER is defined... " >&6; } 19472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19473printf "%s\n" "$_EXT_CHECK" >&6; } 19474 if test "$_EXT_CHECK" != no; then 19475 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19476 fi 19477 19478 19479 19480 SAVE_CFLAGS="$CFLAGS" 19481 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19483/* end confdefs.h. */ 19484 19485#include "xorg-server.h" 19486#if !defined XV 19487#error XV not defined 19488#endif 19489 19490int 19491main (void) 19492{ 19493 19494 ; 19495 return 0; 19496} 19497_ACEOF 19498if ac_fn_c_try_compile "$LINENO" 19499then : 19500 _EXT_CHECK=yes 19501else $as_nop 19502 _EXT_CHECK=no 19503fi 19504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19505 CFLAGS="$SAVE_CFLAGS" 19506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19507printf %s "checking if XV is defined... " >&6; } 19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19509printf "%s\n" "$_EXT_CHECK" >&6; } 19510 if test "$_EXT_CHECK" != no; then 19511 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19512 fi 19513 19514 19515 19516 SAVE_CFLAGS="$CFLAGS" 19517 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19519/* end confdefs.h. */ 19520 19521#include "xorg-server.h" 19522#if !defined DPMSExtension 19523#error DPMSExtension not defined 19524#endif 19525 19526int 19527main (void) 19528{ 19529 19530 ; 19531 return 0; 19532} 19533_ACEOF 19534if ac_fn_c_try_compile "$LINENO" 19535then : 19536 _EXT_CHECK=yes 19537else $as_nop 19538 _EXT_CHECK=no 19539fi 19540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19541 CFLAGS="$SAVE_CFLAGS" 19542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19543printf %s "checking if DPMSExtension is defined... " >&6; } 19544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19545printf "%s\n" "$_EXT_CHECK" >&6; } 19546 if test "$_EXT_CHECK" != no; then 19547 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19548 fi 19549 19550 19551# Obtain compiler/linker options for the Geode driver dependencies 19552 19553pkg_failed=no 19554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19555printf %s "checking for XORG... " >&6; } 19556 19557if test -n "$XORG_CFLAGS"; then 19558 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19559 elif test -n "$PKG_CONFIG"; then 19560 if test -n "$PKG_CONFIG" && \ 19561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19562 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5 19563 ac_status=$? 19564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19565 test $ac_status = 0; }; then 19566 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19567 test "x$?" != "x0" && pkg_failed=yes 19568else 19569 pkg_failed=yes 19570fi 19571 else 19572 pkg_failed=untried 19573fi 19574if test -n "$XORG_LIBS"; then 19575 pkg_cv_XORG_LIBS="$XORG_LIBS" 19576 elif test -n "$PKG_CONFIG"; then 19577 if test -n "$PKG_CONFIG" && \ 19578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19579 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5 19580 ac_status=$? 19581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19582 test $ac_status = 0; }; then 19583 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19584 test "x$?" != "x0" && pkg_failed=yes 19585else 19586 pkg_failed=yes 19587fi 19588 else 19589 pkg_failed=untried 19590fi 19591 19592 19593 19594if test $pkg_failed = yes; then 19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19596printf "%s\n" "no" >&6; } 19597 19598if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19599 _pkg_short_errors_supported=yes 19600else 19601 _pkg_short_errors_supported=no 19602fi 19603 if test $_pkg_short_errors_supported = yes; then 19604 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1` 19605 else 19606 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1` 19607 fi 19608 # Put the nasty error message in config.log where it belongs 19609 echo "$XORG_PKG_ERRORS" >&5 19610 19611 as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met: 19612 19613$XORG_PKG_ERRORS 19614 19615Consider adjusting the PKG_CONFIG_PATH environment variable if you 19616installed software in a non-standard prefix. 19617 19618Alternatively, you may set the environment variables XORG_CFLAGS 19619and XORG_LIBS to avoid the need to call pkg-config. 19620See the pkg-config man page for more details." "$LINENO" 5 19621elif test $pkg_failed = untried; then 19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19623printf "%s\n" "no" >&6; } 19624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19625printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19626as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19627is in your PATH or set the PKG_CONFIG environment variable to the full 19628path to pkg-config. 19629 19630Alternatively, you may set the environment variables XORG_CFLAGS 19631and XORG_LIBS to avoid the need to call pkg-config. 19632See the pkg-config man page for more details. 19633 19634To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19635See \`config.log' for more details" "$LINENO" 5; } 19636else 19637 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19638 XORG_LIBS=$pkg_cv_XORG_LIBS 19639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19640printf "%s\n" "yes" >&6; } 19641 19642fi 19643 19644pkg_failed=no 19645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19646printf %s "checking for XEXT... " >&6; } 19647 19648if test -n "$XEXT_CFLAGS"; then 19649 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19650 elif test -n "$PKG_CONFIG"; then 19651 if test -n "$PKG_CONFIG" && \ 19652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19653 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19654 ac_status=$? 19655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19656 test $ac_status = 0; }; then 19657 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19658 test "x$?" != "x0" && pkg_failed=yes 19659else 19660 pkg_failed=yes 19661fi 19662 else 19663 pkg_failed=untried 19664fi 19665if test -n "$XEXT_LIBS"; then 19666 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19667 elif test -n "$PKG_CONFIG"; then 19668 if test -n "$PKG_CONFIG" && \ 19669 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19670 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19671 ac_status=$? 19672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19673 test $ac_status = 0; }; then 19674 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19675 test "x$?" != "x0" && pkg_failed=yes 19676else 19677 pkg_failed=yes 19678fi 19679 else 19680 pkg_failed=untried 19681fi 19682 19683 19684 19685if test $pkg_failed = yes; then 19686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19687printf "%s\n" "no" >&6; } 19688 19689if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19690 _pkg_short_errors_supported=yes 19691else 19692 _pkg_short_errors_supported=no 19693fi 19694 if test $_pkg_short_errors_supported = yes; then 19695 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19696 else 19697 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19698 fi 19699 # Put the nasty error message in config.log where it belongs 19700 echo "$XEXT_PKG_ERRORS" >&5 19701 19702 HAVE_XEXTPROTO_71="no" 19703elif test $pkg_failed = untried; then 19704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19705printf "%s\n" "no" >&6; } 19706 HAVE_XEXTPROTO_71="no" 19707else 19708 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19709 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19711printf "%s\n" "yes" >&6; } 19712 HAVE_XEXTPROTO_71="yes"; 19713printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19714 19715fi 19716 19717# Define a configure option to enable/disable XAA support; 19718# handles unavailability of XAA since xserver-1.13 19719# Check whether --enable-xaa was given. 19720if test ${enable_xaa+y} 19721then : 19722 enableval=$enable_xaa; 19723fi 19724 19725 19726if test "x$enable_xaa" != "xno" 19727then : 19728 19729 save_CFLAGS=$CFLAGS 19730 save_CPPFLAGS=$CPPFLAGS 19731 CFLAGS=$XORG_CFLAGS 19732 CPPFLAGS="$XORG_CFLAGS" 19733 for ac_header in xaa.h 19734do : 19735 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19736if test "x$ac_cv_header_xaa_h" = xyes 19737then : 19738 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19739 have_XAA=yes 19740else $as_nop 19741 have_XAA=no 19742fi 19743 19744done 19745 CFLAGS=$save_CFLAGS 19746 CPPFLAGS=$save_CPPFLAGS 19747 19748fi 19749 19750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19751printf %s "checking whether to include XAA support... " >&6; } 19752 19753if test "x$have_XAA" = "xyes" 19754then : 19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19756printf "%s\n" "yes" >&6; } 19757else $as_nop 19758 if test "x$enable_xaa" = "xyes" 19759then : 19760 as_fn_error $? "XAA requested but not found (perhaps building against xserver-1.13 or newer?)" "$LINENO" 5 19761else $as_nop 19762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19763printf "%s\n" "no" >&6; } 19764 19765fi 19766 19767fi 19768 19769# Checks for libpciaccess support. 19770SAVE_CPPFLAGS="$CPPFLAGS" 19771CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19772ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19773" "$ac_c_undeclared_builtin_options" "CFLAGS" 19774if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19775then : 19776 XSERVER_LIBPCIACCESS=yes 19777else $as_nop 19778 XSERVER_LIBPCIACCESS=no 19779fi 19780CPPFLAGS="$SAVE_CPPFLAGS" 19781 19782if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19783 19784pkg_failed=no 19785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19786printf %s "checking for PCIACCESS... " >&6; } 19787 19788if test -n "$PCIACCESS_CFLAGS"; then 19789 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19790 elif test -n "$PKG_CONFIG"; then 19791 if test -n "$PKG_CONFIG" && \ 19792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19793 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19794 ac_status=$? 19795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19796 test $ac_status = 0; }; then 19797 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19798 test "x$?" != "x0" && pkg_failed=yes 19799else 19800 pkg_failed=yes 19801fi 19802 else 19803 pkg_failed=untried 19804fi 19805if test -n "$PCIACCESS_LIBS"; then 19806 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19807 elif test -n "$PKG_CONFIG"; then 19808 if test -n "$PKG_CONFIG" && \ 19809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19810 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19811 ac_status=$? 19812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19813 test $ac_status = 0; }; then 19814 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19815 test "x$?" != "x0" && pkg_failed=yes 19816else 19817 pkg_failed=yes 19818fi 19819 else 19820 pkg_failed=untried 19821fi 19822 19823 19824 19825if test $pkg_failed = yes; then 19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19827printf "%s\n" "no" >&6; } 19828 19829if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19830 _pkg_short_errors_supported=yes 19831else 19832 _pkg_short_errors_supported=no 19833fi 19834 if test $_pkg_short_errors_supported = yes; then 19835 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19836 else 19837 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19838 fi 19839 # Put the nasty error message in config.log where it belongs 19840 echo "$PCIACCESS_PKG_ERRORS" >&5 19841 19842 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19843 19844$PCIACCESS_PKG_ERRORS 19845 19846Consider adjusting the PKG_CONFIG_PATH environment variable if you 19847installed software in a non-standard prefix. 19848 19849Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19850and PCIACCESS_LIBS to avoid the need to call pkg-config. 19851See the pkg-config man page for more details." "$LINENO" 5 19852elif test $pkg_failed = untried; then 19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19854printf "%s\n" "no" >&6; } 19855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19856printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19857as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19858is in your PATH or set the PKG_CONFIG environment variable to the full 19859path to pkg-config. 19860 19861Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19862and PCIACCESS_LIBS to avoid the need to call pkg-config. 19863See the pkg-config man page for more details. 19864 19865To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19866See \`config.log' for more details" "$LINENO" 5; } 19867else 19868 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19869 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19871printf "%s\n" "yes" >&6; } 19872 19873fi 19874 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 19875fi 19876 19877ac_config_files="$ac_config_files Makefile src/Makefile" 19878 19879cat >confcache <<\_ACEOF 19880# This file is a shell script that caches the results of configure 19881# tests run on this system so they can be shared between configure 19882# scripts and configure runs, see configure's option --config-cache. 19883# It is not useful on other systems. If it contains results you don't 19884# want to keep, you may remove or edit it. 19885# 19886# config.status only pays attention to the cache file if you give it 19887# the --recheck option to rerun configure. 19888# 19889# `ac_cv_env_foo' variables (set or unset) will be overridden when 19890# loading this file, other *unset* `ac_cv_foo' will be assigned the 19891# following values. 19892 19893_ACEOF 19894 19895# The following way of writing the cache mishandles newlines in values, 19896# but we know of no workaround that is simple, portable, and efficient. 19897# So, we kill variables containing newlines. 19898# Ultrix sh set writes to stderr and can't be redirected directly, 19899# and sets the high bit in the cache file unless we assign to the vars. 19900( 19901 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19902 eval ac_val=\$$ac_var 19903 case $ac_val in #( 19904 *${as_nl}*) 19905 case $ac_var in #( 19906 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19907printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19908 esac 19909 case $ac_var in #( 19910 _ | IFS | as_nl) ;; #( 19911 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19912 *) { eval $ac_var=; unset $ac_var;} ;; 19913 esac ;; 19914 esac 19915 done 19916 19917 (set) 2>&1 | 19918 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19919 *${as_nl}ac_space=\ *) 19920 # `set' does not quote correctly, so add quotes: double-quote 19921 # substitution turns \\\\ into \\, and sed turns \\ into \. 19922 sed -n \ 19923 "s/'/'\\\\''/g; 19924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19925 ;; #( 19926 *) 19927 # `set' quotes correctly as required by POSIX, so do not add quotes. 19928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19929 ;; 19930 esac | 19931 sort 19932) | 19933 sed ' 19934 /^ac_cv_env_/b end 19935 t clear 19936 :clear 19937 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19938 t end 19939 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19940 :end' >>confcache 19941if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19942 if test -w "$cache_file"; then 19943 if test "x$cache_file" != "x/dev/null"; then 19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19945printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19946 if test ! -f "$cache_file" || test -h "$cache_file"; then 19947 cat confcache >"$cache_file" 19948 else 19949 case $cache_file in #( 19950 */* | ?:*) 19951 mv -f confcache "$cache_file"$$ && 19952 mv -f "$cache_file"$$ "$cache_file" ;; #( 19953 *) 19954 mv -f confcache "$cache_file" ;; 19955 esac 19956 fi 19957 fi 19958 else 19959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19960printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19961 fi 19962fi 19963rm -f confcache 19964 19965test "x$prefix" = xNONE && prefix=$ac_default_prefix 19966# Let make expand exec_prefix. 19967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19968 19969DEFS=-DHAVE_CONFIG_H 19970 19971ac_libobjs= 19972ac_ltlibobjs= 19973U= 19974for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19975 # 1. Remove the extension, and $U if already installed. 19976 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19977 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19978 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19979 # will be set to the directory where LIBOBJS objects are built. 19980 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19981 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19982done 19983LIBOBJS=$ac_libobjs 19984 19985LTLIBOBJS=$ac_ltlibobjs 19986 19987 19988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19989printf %s "checking that generated files are newer than configure... " >&6; } 19990 if test -n "$am_sleep_pid"; then 19991 # Hide warnings about reused PIDs. 19992 wait $am_sleep_pid 2>/dev/null 19993 fi 19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19995printf "%s\n" "done" >&6; } 19996 if test -n "$EXEEXT"; then 19997 am__EXEEXT_TRUE= 19998 am__EXEEXT_FALSE='#' 19999else 20000 am__EXEEXT_TRUE='#' 20001 am__EXEEXT_FALSE= 20002fi 20003 20004if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20005 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 20006Usually this means the macro was only invoked conditionally." "$LINENO" 5 20007fi 20008if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20009 as_fn_error $? "conditional \"AMDEP\" was never defined. 20010Usually this means the macro was only invoked conditionally." "$LINENO" 5 20011fi 20012if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20013 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20014Usually this means the macro was only invoked conditionally." "$LINENO" 5 20015fi 20016if test -z "${BUILD_ZTV_TRUE}" && test -z "${BUILD_ZTV_FALSE}"; then 20017 as_fn_error $? "conditional \"BUILD_ZTV\" was never defined. 20018Usually this means the macro was only invoked conditionally." "$LINENO" 5 20019fi 20020 20021: "${CONFIG_STATUS=./config.status}" 20022ac_write_fail=0 20023ac_clean_files_save=$ac_clean_files 20024ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20026printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20027as_write_fail=0 20028cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20029#! $SHELL 20030# Generated by $as_me. 20031# Run this file to recreate the current configuration. 20032# Compiler output produced by configure, useful for debugging 20033# configure, is in config.log if it exists. 20034 20035debug=false 20036ac_cs_recheck=false 20037ac_cs_silent=false 20038 20039SHELL=\${CONFIG_SHELL-$SHELL} 20040export SHELL 20041_ASEOF 20042cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20043## -------------------- ## 20044## M4sh Initialization. ## 20045## -------------------- ## 20046 20047# Be more Bourne compatible 20048DUALCASE=1; export DUALCASE # for MKS sh 20049as_nop=: 20050if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20051then : 20052 emulate sh 20053 NULLCMD=: 20054 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20055 # is contrary to our usage. Disable this feature. 20056 alias -g '${1+"$@"}'='"$@"' 20057 setopt NO_GLOB_SUBST 20058else $as_nop 20059 case `(set -o) 2>/dev/null` in #( 20060 *posix*) : 20061 set -o posix ;; #( 20062 *) : 20063 ;; 20064esac 20065fi 20066 20067 20068 20069# Reset variables that may have inherited troublesome values from 20070# the environment. 20071 20072# IFS needs to be set, to space, tab, and newline, in precisely that order. 20073# (If _AS_PATH_WALK were called with IFS unset, it would have the 20074# side effect of setting IFS to empty, thus disabling word splitting.) 20075# Quoting is to prevent editors from complaining about space-tab. 20076as_nl=' 20077' 20078export as_nl 20079IFS=" "" $as_nl" 20080 20081PS1='$ ' 20082PS2='> ' 20083PS4='+ ' 20084 20085# Ensure predictable behavior from utilities with locale-dependent output. 20086LC_ALL=C 20087export LC_ALL 20088LANGUAGE=C 20089export LANGUAGE 20090 20091# We cannot yet rely on "unset" to work, but we need these variables 20092# to be unset--not just set to an empty or harmless value--now, to 20093# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20094# also avoids known problems related to "unset" and subshell syntax 20095# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20096for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20097do eval test \${$as_var+y} \ 20098 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20099done 20100 20101# Ensure that fds 0, 1, and 2 are open. 20102if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20103if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20104if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20105 20106# The user is always right. 20107if ${PATH_SEPARATOR+false} :; then 20108 PATH_SEPARATOR=: 20109 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20110 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20111 PATH_SEPARATOR=';' 20112 } 20113fi 20114 20115 20116# Find who we are. Look in the path if we contain no directory separator. 20117as_myself= 20118case $0 in #(( 20119 *[\\/]* ) as_myself=$0 ;; 20120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20121for as_dir in $PATH 20122do 20123 IFS=$as_save_IFS 20124 case $as_dir in #((( 20125 '') as_dir=./ ;; 20126 */) ;; 20127 *) as_dir=$as_dir/ ;; 20128 esac 20129 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20130 done 20131IFS=$as_save_IFS 20132 20133 ;; 20134esac 20135# We did not find ourselves, most probably we were run as `sh COMMAND' 20136# in which case we are not to be found in the path. 20137if test "x$as_myself" = x; then 20138 as_myself=$0 20139fi 20140if test ! -f "$as_myself"; then 20141 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20142 exit 1 20143fi 20144 20145 20146 20147# as_fn_error STATUS ERROR [LINENO LOG_FD] 20148# ---------------------------------------- 20149# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20150# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20151# script with STATUS, using 1 if that was 0. 20152as_fn_error () 20153{ 20154 as_status=$1; test $as_status -eq 0 && as_status=1 20155 if test "$4"; then 20156 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20158 fi 20159 printf "%s\n" "$as_me: error: $2" >&2 20160 as_fn_exit $as_status 20161} # as_fn_error 20162 20163 20164 20165# as_fn_set_status STATUS 20166# ----------------------- 20167# Set $? to STATUS, without forking. 20168as_fn_set_status () 20169{ 20170 return $1 20171} # as_fn_set_status 20172 20173# as_fn_exit STATUS 20174# ----------------- 20175# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20176as_fn_exit () 20177{ 20178 set +e 20179 as_fn_set_status $1 20180 exit $1 20181} # as_fn_exit 20182 20183# as_fn_unset VAR 20184# --------------- 20185# Portably unset VAR. 20186as_fn_unset () 20187{ 20188 { eval $1=; unset $1;} 20189} 20190as_unset=as_fn_unset 20191 20192# as_fn_append VAR VALUE 20193# ---------------------- 20194# Append the text in VALUE to the end of the definition contained in VAR. Take 20195# advantage of any shell optimizations that allow amortized linear growth over 20196# repeated appends, instead of the typical quadratic growth present in naive 20197# implementations. 20198if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20199then : 20200 eval 'as_fn_append () 20201 { 20202 eval $1+=\$2 20203 }' 20204else $as_nop 20205 as_fn_append () 20206 { 20207 eval $1=\$$1\$2 20208 } 20209fi # as_fn_append 20210 20211# as_fn_arith ARG... 20212# ------------------ 20213# Perform arithmetic evaluation on the ARGs, and store the result in the 20214# global $as_val. Take advantage of shells that can avoid forks. The arguments 20215# must be portable across $(()) and expr. 20216if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20217then : 20218 eval 'as_fn_arith () 20219 { 20220 as_val=$(( $* )) 20221 }' 20222else $as_nop 20223 as_fn_arith () 20224 { 20225 as_val=`expr "$@" || test $? -eq 1` 20226 } 20227fi # as_fn_arith 20228 20229 20230if expr a : '\(a\)' >/dev/null 2>&1 && 20231 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20232 as_expr=expr 20233else 20234 as_expr=false 20235fi 20236 20237if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20238 as_basename=basename 20239else 20240 as_basename=false 20241fi 20242 20243if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20244 as_dirname=dirname 20245else 20246 as_dirname=false 20247fi 20248 20249as_me=`$as_basename -- "$0" || 20250$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20251 X"$0" : 'X\(//\)$' \| \ 20252 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20253printf "%s\n" X/"$0" | 20254 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20255 s//\1/ 20256 q 20257 } 20258 /^X\/\(\/\/\)$/{ 20259 s//\1/ 20260 q 20261 } 20262 /^X\/\(\/\).*/{ 20263 s//\1/ 20264 q 20265 } 20266 s/.*/./; q'` 20267 20268# Avoid depending upon Character Ranges. 20269as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20270as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20271as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20272as_cr_digits='0123456789' 20273as_cr_alnum=$as_cr_Letters$as_cr_digits 20274 20275 20276# Determine whether it's possible to make 'echo' print without a newline. 20277# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20278# for compatibility with existing Makefiles. 20279ECHO_C= ECHO_N= ECHO_T= 20280case `echo -n x` in #((((( 20281-n*) 20282 case `echo 'xy\c'` in 20283 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20284 xy) ECHO_C='\c';; 20285 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20286 ECHO_T=' ';; 20287 esac;; 20288*) 20289 ECHO_N='-n';; 20290esac 20291 20292# For backward compatibility with old third-party macros, we provide 20293# the shell variables $as_echo and $as_echo_n. New code should use 20294# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20295as_echo='printf %s\n' 20296as_echo_n='printf %s' 20297 20298rm -f conf$$ conf$$.exe conf$$.file 20299if test -d conf$$.dir; then 20300 rm -f conf$$.dir/conf$$.file 20301else 20302 rm -f conf$$.dir 20303 mkdir conf$$.dir 2>/dev/null 20304fi 20305if (echo >conf$$.file) 2>/dev/null; then 20306 if ln -s conf$$.file conf$$ 2>/dev/null; then 20307 as_ln_s='ln -s' 20308 # ... but there are two gotchas: 20309 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20310 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20311 # In both cases, we have to default to `cp -pR'. 20312 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20313 as_ln_s='cp -pR' 20314 elif ln conf$$.file conf$$ 2>/dev/null; then 20315 as_ln_s=ln 20316 else 20317 as_ln_s='cp -pR' 20318 fi 20319else 20320 as_ln_s='cp -pR' 20321fi 20322rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20323rmdir conf$$.dir 2>/dev/null 20324 20325 20326# as_fn_mkdir_p 20327# ------------- 20328# Create "$as_dir" as a directory, including parents if necessary. 20329as_fn_mkdir_p () 20330{ 20331 20332 case $as_dir in #( 20333 -*) as_dir=./$as_dir;; 20334 esac 20335 test -d "$as_dir" || eval $as_mkdir_p || { 20336 as_dirs= 20337 while :; do 20338 case $as_dir in #( 20339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20340 *) as_qdir=$as_dir;; 20341 esac 20342 as_dirs="'$as_qdir' $as_dirs" 20343 as_dir=`$as_dirname -- "$as_dir" || 20344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20345 X"$as_dir" : 'X\(//\)[^/]' \| \ 20346 X"$as_dir" : 'X\(//\)$' \| \ 20347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20348printf "%s\n" X"$as_dir" | 20349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20350 s//\1/ 20351 q 20352 } 20353 /^X\(\/\/\)[^/].*/{ 20354 s//\1/ 20355 q 20356 } 20357 /^X\(\/\/\)$/{ 20358 s//\1/ 20359 q 20360 } 20361 /^X\(\/\).*/{ 20362 s//\1/ 20363 q 20364 } 20365 s/.*/./; q'` 20366 test -d "$as_dir" && break 20367 done 20368 test -z "$as_dirs" || eval "mkdir $as_dirs" 20369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20370 20371 20372} # as_fn_mkdir_p 20373if mkdir -p . 2>/dev/null; then 20374 as_mkdir_p='mkdir -p "$as_dir"' 20375else 20376 test -d ./-p && rmdir ./-p 20377 as_mkdir_p=false 20378fi 20379 20380 20381# as_fn_executable_p FILE 20382# ----------------------- 20383# Test if FILE is an executable regular file. 20384as_fn_executable_p () 20385{ 20386 test -f "$1" && test -x "$1" 20387} # as_fn_executable_p 20388as_test_x='test -x' 20389as_executable_p=as_fn_executable_p 20390 20391# Sed expression to map a string onto a valid CPP name. 20392as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20393 20394# Sed expression to map a string onto a valid variable name. 20395as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20396 20397 20398exec 6>&1 20399## ----------------------------------- ## 20400## Main body of $CONFIG_STATUS script. ## 20401## ----------------------------------- ## 20402_ASEOF 20403test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20404 20405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20406# Save the log message, to keep $0 and so on meaningful, and to 20407# report actual input values of CONFIG_FILES etc. instead of their 20408# values after options handling. 20409ac_log=" 20410This file was extended by xf86-video-geode $as_me 2.11.21, which was 20411generated by GNU Autoconf 2.71. Invocation command line was 20412 20413 CONFIG_FILES = $CONFIG_FILES 20414 CONFIG_HEADERS = $CONFIG_HEADERS 20415 CONFIG_LINKS = $CONFIG_LINKS 20416 CONFIG_COMMANDS = $CONFIG_COMMANDS 20417 $ $0 $@ 20418 20419on `(hostname || uname -n) 2>/dev/null | sed 1q` 20420" 20421 20422_ACEOF 20423 20424case $ac_config_files in *" 20425"*) set x $ac_config_files; shift; ac_config_files=$*;; 20426esac 20427 20428case $ac_config_headers in *" 20429"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20430esac 20431 20432 20433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20434# Files that config.status was made for. 20435config_files="$ac_config_files" 20436config_headers="$ac_config_headers" 20437config_commands="$ac_config_commands" 20438 20439_ACEOF 20440 20441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20442ac_cs_usage="\ 20443\`$as_me' instantiates files and other configuration actions 20444from templates according to the current configuration. Unless the files 20445and actions are specified as TAGs, all are instantiated by default. 20446 20447Usage: $0 [OPTION]... [TAG]... 20448 20449 -h, --help print this help, then exit 20450 -V, --version print version number and configuration settings, then exit 20451 --config print configuration, then exit 20452 -q, --quiet, --silent 20453 do not print progress messages 20454 -d, --debug don't remove temporary files 20455 --recheck update $as_me by reconfiguring in the same conditions 20456 --file=FILE[:TEMPLATE] 20457 instantiate the configuration file FILE 20458 --header=FILE[:TEMPLATE] 20459 instantiate the configuration header FILE 20460 20461Configuration files: 20462$config_files 20463 20464Configuration headers: 20465$config_headers 20466 20467Configuration commands: 20468$config_commands 20469 20470Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-geode/-/issues>. 20471xf86-video-geode home page: <http://www.x.org/wiki/GeodeDriver>." 20472 20473_ACEOF 20474ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20475ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20477ac_cs_config='$ac_cs_config_escaped' 20478ac_cs_version="\\ 20479xf86-video-geode config.status 2.11.21 20480configured by $0, generated by GNU Autoconf 2.71, 20481 with options \\"\$ac_cs_config\\" 20482 20483Copyright (C) 2021 Free Software Foundation, Inc. 20484This config.status script is free software; the Free Software Foundation 20485gives unlimited permission to copy, distribute and modify it." 20486 20487ac_pwd='$ac_pwd' 20488srcdir='$srcdir' 20489INSTALL='$INSTALL' 20490MKDIR_P='$MKDIR_P' 20491AWK='$AWK' 20492test -n "\$AWK" || AWK=awk 20493_ACEOF 20494 20495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20496# The default lists apply if the user does not specify any file. 20497ac_need_defaults=: 20498while test $# != 0 20499do 20500 case $1 in 20501 --*=?*) 20502 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20503 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20504 ac_shift=: 20505 ;; 20506 --*=) 20507 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20508 ac_optarg= 20509 ac_shift=: 20510 ;; 20511 *) 20512 ac_option=$1 20513 ac_optarg=$2 20514 ac_shift=shift 20515 ;; 20516 esac 20517 20518 case $ac_option in 20519 # Handling of the options. 20520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20521 ac_cs_recheck=: ;; 20522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20523 printf "%s\n" "$ac_cs_version"; exit ;; 20524 --config | --confi | --conf | --con | --co | --c ) 20525 printf "%s\n" "$ac_cs_config"; exit ;; 20526 --debug | --debu | --deb | --de | --d | -d ) 20527 debug=: ;; 20528 --file | --fil | --fi | --f ) 20529 $ac_shift 20530 case $ac_optarg in 20531 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20532 '') as_fn_error $? "missing file argument" ;; 20533 esac 20534 as_fn_append CONFIG_FILES " '$ac_optarg'" 20535 ac_need_defaults=false;; 20536 --header | --heade | --head | --hea ) 20537 $ac_shift 20538 case $ac_optarg in 20539 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20540 esac 20541 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20542 ac_need_defaults=false;; 20543 --he | --h) 20544 # Conflict between --help and --header 20545 as_fn_error $? "ambiguous option: \`$1' 20546Try \`$0 --help' for more information.";; 20547 --help | --hel | -h ) 20548 printf "%s\n" "$ac_cs_usage"; exit ;; 20549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20550 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20551 ac_cs_silent=: ;; 20552 20553 # This is an error. 20554 -*) as_fn_error $? "unrecognized option: \`$1' 20555Try \`$0 --help' for more information." ;; 20556 20557 *) as_fn_append ac_config_targets " $1" 20558 ac_need_defaults=false ;; 20559 20560 esac 20561 shift 20562done 20563 20564ac_configure_extra_args= 20565 20566if $ac_cs_silent; then 20567 exec 6>/dev/null 20568 ac_configure_extra_args="$ac_configure_extra_args --silent" 20569fi 20570 20571_ACEOF 20572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20573if \$ac_cs_recheck; then 20574 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20575 shift 20576 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20577 CONFIG_SHELL='$SHELL' 20578 export CONFIG_SHELL 20579 exec "\$@" 20580fi 20581 20582_ACEOF 20583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20584exec 5>>config.log 20585{ 20586 echo 20587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20588## Running $as_me. ## 20589_ASBOX 20590 printf "%s\n" "$ac_log" 20591} >&5 20592 20593_ACEOF 20594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20595# 20596# INIT-COMMANDS 20597# 20598AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20599 20600 20601# The HP-UX ksh and POSIX shell print the target directory to stdout 20602# if CDPATH is set. 20603(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20604 20605sed_quote_subst='$sed_quote_subst' 20606double_quote_subst='$double_quote_subst' 20607delay_variable_subst='$delay_variable_subst' 20608enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20609macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20610macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20611enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20612pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20613enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20614shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20615SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20616ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20617PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20618host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20619host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20620host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20621build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20622build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20623build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20624SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20625Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20626GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20627EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20628FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20629LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20630NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20631LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20632max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20633ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20634exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20635lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20636lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20637lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20638lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20639lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20640reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20641reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20642FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20643OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20644deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20645file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20646file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20647want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20648DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20649sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20650AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20651lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20652AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20653archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20654STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20655RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20656old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20657old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20658old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20659lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20660CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20661CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20662compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20663GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20664lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20665lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20666lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20667lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20668lt_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"`' 20669lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20670nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20671lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20672lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20673objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20674MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20675lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20676lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20677lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20678lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20679lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20680need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20681MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20682DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20683NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20684LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20685OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20686OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20687libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20688shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20689extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20690archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20691enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20692export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20693whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20694compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20695old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20696old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20697archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20698archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20699module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20700module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20701with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20702allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20703no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20704hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20705hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20706hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20707hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20708hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20709hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20710hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20711inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20712link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20713always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20714export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20715exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20716include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20717prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20718postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20719file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20720variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20721need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20722need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20723version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20724runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20725shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20726shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20727libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20728library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20729soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20730install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20731postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20732postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20733finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20734finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20735hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20736sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20737configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20738configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20739hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20740enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20741enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20742enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20743old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20744striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20745 20746LTCC='$LTCC' 20747LTCFLAGS='$LTCFLAGS' 20748compiler='$compiler_DEFAULT' 20749 20750# A function that is used when there is no print builtin or printf. 20751func_fallback_echo () 20752{ 20753 eval 'cat <<_LTECHO_EOF 20754\$1 20755_LTECHO_EOF' 20756} 20757 20758# Quote evaled strings. 20759for var in SHELL \ 20760ECHO \ 20761PATH_SEPARATOR \ 20762SED \ 20763GREP \ 20764EGREP \ 20765FGREP \ 20766LD \ 20767NM \ 20768LN_S \ 20769lt_SP2NL \ 20770lt_NL2SP \ 20771reload_flag \ 20772FILECMD \ 20773OBJDUMP \ 20774deplibs_check_method \ 20775file_magic_cmd \ 20776file_magic_glob \ 20777want_nocaseglob \ 20778DLLTOOL \ 20779sharedlib_from_linklib_cmd \ 20780AR \ 20781archiver_list_spec \ 20782STRIP \ 20783RANLIB \ 20784CC \ 20785CFLAGS \ 20786compiler \ 20787lt_cv_sys_global_symbol_pipe \ 20788lt_cv_sys_global_symbol_to_cdecl \ 20789lt_cv_sys_global_symbol_to_import \ 20790lt_cv_sys_global_symbol_to_c_name_address \ 20791lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20792lt_cv_nm_interface \ 20793nm_file_list_spec \ 20794lt_cv_truncate_bin \ 20795lt_prog_compiler_no_builtin_flag \ 20796lt_prog_compiler_pic \ 20797lt_prog_compiler_wl \ 20798lt_prog_compiler_static \ 20799lt_cv_prog_compiler_c_o \ 20800need_locks \ 20801MANIFEST_TOOL \ 20802DSYMUTIL \ 20803NMEDIT \ 20804LIPO \ 20805OTOOL \ 20806OTOOL64 \ 20807shrext_cmds \ 20808export_dynamic_flag_spec \ 20809whole_archive_flag_spec \ 20810compiler_needs_object \ 20811with_gnu_ld \ 20812allow_undefined_flag \ 20813no_undefined_flag \ 20814hardcode_libdir_flag_spec \ 20815hardcode_libdir_separator \ 20816exclude_expsyms \ 20817include_expsyms \ 20818file_list_spec \ 20819variables_saved_for_relink \ 20820libname_spec \ 20821library_names_spec \ 20822soname_spec \ 20823install_override_mode \ 20824finish_eval \ 20825old_striplib \ 20826striplib; do 20827 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20828 *[\\\\\\\`\\"\\\$]*) 20829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20830 ;; 20831 *) 20832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20833 ;; 20834 esac 20835done 20836 20837# Double-quote double-evaled strings. 20838for var in reload_cmds \ 20839old_postinstall_cmds \ 20840old_postuninstall_cmds \ 20841old_archive_cmds \ 20842extract_expsyms_cmds \ 20843old_archive_from_new_cmds \ 20844old_archive_from_expsyms_cmds \ 20845archive_cmds \ 20846archive_expsym_cmds \ 20847module_cmds \ 20848module_expsym_cmds \ 20849export_symbols_cmds \ 20850prelink_cmds \ 20851postlink_cmds \ 20852postinstall_cmds \ 20853postuninstall_cmds \ 20854finish_cmds \ 20855sys_lib_search_path_spec \ 20856configure_time_dlsearch_path \ 20857configure_time_lt_sys_library_path; do 20858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20859 *[\\\\\\\`\\"\\\$]*) 20860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20861 ;; 20862 *) 20863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20864 ;; 20865 esac 20866done 20867 20868ac_aux_dir='$ac_aux_dir' 20869 20870# See if we are running on zsh, and set the options that allow our 20871# commands through without removal of \ escapes INIT. 20872if test -n "\${ZSH_VERSION+set}"; then 20873 setopt NO_GLOB_SUBST 20874fi 20875 20876 20877 PACKAGE='$PACKAGE' 20878 VERSION='$VERSION' 20879 RM='$RM' 20880 ofile='$ofile' 20881 20882 20883 20884 20885_ACEOF 20886 20887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20888 20889# Handling of arguments. 20890for ac_config_target in $ac_config_targets 20891do 20892 case $ac_config_target in 20893 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20894 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20895 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20896 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20897 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20898 20899 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20900 esac 20901done 20902 20903 20904# If the user did not use the arguments to specify the items to instantiate, 20905# then the envvar interface is used. Set only those that are not. 20906# We use the long form for the default assignment because of an extremely 20907# bizarre bug on SunOS 4.1.3. 20908if $ac_need_defaults; then 20909 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20910 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20911 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20912fi 20913 20914# Have a temporary directory for convenience. Make it in the build tree 20915# simply because there is no reason against having it here, and in addition, 20916# creating and moving files from /tmp can sometimes cause problems. 20917# Hook for its removal unless debugging. 20918# Note that there is a small window in which the directory will not be cleaned: 20919# after its creation but before its name has been assigned to `$tmp'. 20920$debug || 20921{ 20922 tmp= ac_tmp= 20923 trap 'exit_status=$? 20924 : "${ac_tmp:=$tmp}" 20925 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20926' 0 20927 trap 'as_fn_exit 1' 1 2 13 15 20928} 20929# Create a (secure) tmp directory for tmp files. 20930 20931{ 20932 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20933 test -d "$tmp" 20934} || 20935{ 20936 tmp=./conf$$-$RANDOM 20937 (umask 077 && mkdir "$tmp") 20938} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20939ac_tmp=$tmp 20940 20941# Set up the scripts for CONFIG_FILES section. 20942# No need to generate them if there are no CONFIG_FILES. 20943# This happens for instance with `./config.status config.h'. 20944if test -n "$CONFIG_FILES"; then 20945 20946 20947ac_cr=`echo X | tr X '\015'` 20948# On cygwin, bash can eat \r inside `` if the user requested igncr. 20949# But we know of no other shell where ac_cr would be empty at this 20950# point, so we can use a bashism as a fallback. 20951if test "x$ac_cr" = x; then 20952 eval ac_cr=\$\'\\r\' 20953fi 20954ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20955if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20956 ac_cs_awk_cr='\\r' 20957else 20958 ac_cs_awk_cr=$ac_cr 20959fi 20960 20961echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20962_ACEOF 20963 20964 20965{ 20966 echo "cat >conf$$subs.awk <<_ACEOF" && 20967 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20968 echo "_ACEOF" 20969} >conf$$subs.sh || 20970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20971ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20972ac_delim='%!_!# ' 20973for ac_last_try in false false false false false :; do 20974 . ./conf$$subs.sh || 20975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20976 20977 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20978 if test $ac_delim_n = $ac_delim_num; then 20979 break 20980 elif $ac_last_try; then 20981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20982 else 20983 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20984 fi 20985done 20986rm -f conf$$subs.sh 20987 20988cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20989cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20990_ACEOF 20991sed -n ' 20992h 20993s/^/S["/; s/!.*/"]=/ 20994p 20995g 20996s/^[^!]*!// 20997:repl 20998t repl 20999s/'"$ac_delim"'$// 21000t delim 21001:nl 21002h 21003s/\(.\{148\}\)..*/\1/ 21004t more1 21005s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21006p 21007n 21008b repl 21009:more1 21010s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21011p 21012g 21013s/.\{148\}// 21014t nl 21015:delim 21016h 21017s/\(.\{148\}\)..*/\1/ 21018t more2 21019s/["\\]/\\&/g; s/^/"/; s/$/"/ 21020p 21021b 21022:more2 21023s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21024p 21025g 21026s/.\{148\}// 21027t delim 21028' <conf$$subs.awk | sed ' 21029/^[^""]/{ 21030 N 21031 s/\n// 21032} 21033' >>$CONFIG_STATUS || ac_write_fail=1 21034rm -f conf$$subs.awk 21035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21036_ACAWK 21037cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21038 for (key in S) S_is_set[key] = 1 21039 FS = "" 21040 21041} 21042{ 21043 line = $ 0 21044 nfields = split(line, field, "@") 21045 substed = 0 21046 len = length(field[1]) 21047 for (i = 2; i < nfields; i++) { 21048 key = field[i] 21049 keylen = length(key) 21050 if (S_is_set[key]) { 21051 value = S[key] 21052 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21053 len += length(value) + length(field[++i]) 21054 substed = 1 21055 } else 21056 len += 1 + keylen 21057 } 21058 21059 print line 21060} 21061 21062_ACAWK 21063_ACEOF 21064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21065if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21066 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21067else 21068 cat 21069fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21070 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21071_ACEOF 21072 21073# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21074# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21075# trailing colons and then remove the whole line if VPATH becomes empty 21076# (actually we leave an empty line to preserve line numbers). 21077if test "x$srcdir" = x.; then 21078 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21079h 21080s/// 21081s/^/:/ 21082s/[ ]*$/:/ 21083s/:\$(srcdir):/:/g 21084s/:\${srcdir}:/:/g 21085s/:@srcdir@:/:/g 21086s/^:*// 21087s/:*$// 21088x 21089s/\(=[ ]*\).*/\1/ 21090G 21091s/\n// 21092s/^[^=]*=[ ]*$// 21093}' 21094fi 21095 21096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21097fi # test -n "$CONFIG_FILES" 21098 21099# Set up the scripts for CONFIG_HEADERS section. 21100# No need to generate them if there are no CONFIG_HEADERS. 21101# This happens for instance with `./config.status Makefile'. 21102if test -n "$CONFIG_HEADERS"; then 21103cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21104BEGIN { 21105_ACEOF 21106 21107# Transform confdefs.h into an awk script `defines.awk', embedded as 21108# here-document in config.status, that substitutes the proper values into 21109# config.h.in to produce config.h. 21110 21111# Create a delimiter string that does not exist in confdefs.h, to ease 21112# handling of long lines. 21113ac_delim='%!_!# ' 21114for ac_last_try in false false :; do 21115 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21116 if test -z "$ac_tt"; then 21117 break 21118 elif $ac_last_try; then 21119 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21120 else 21121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21122 fi 21123done 21124 21125# For the awk script, D is an array of macro values keyed by name, 21126# likewise P contains macro parameters if any. Preserve backslash 21127# newline sequences. 21128 21129ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21130sed -n ' 21131s/.\{148\}/&'"$ac_delim"'/g 21132t rset 21133:rset 21134s/^[ ]*#[ ]*define[ ][ ]*/ / 21135t def 21136d 21137:def 21138s/\\$// 21139t bsnl 21140s/["\\]/\\&/g 21141s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21142D["\1"]=" \3"/p 21143s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21144d 21145:bsnl 21146s/["\\]/\\&/g 21147s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21148D["\1"]=" \3\\\\\\n"\\/p 21149t cont 21150s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21151t cont 21152d 21153:cont 21154n 21155s/.\{148\}/&'"$ac_delim"'/g 21156t clear 21157:clear 21158s/\\$// 21159t bsnlc 21160s/["\\]/\\&/g; s/^/"/; s/$/"/p 21161d 21162:bsnlc 21163s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21164b cont 21165' <confdefs.h | sed ' 21166s/'"$ac_delim"'/"\\\ 21167"/g' >>$CONFIG_STATUS || ac_write_fail=1 21168 21169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21170 for (key in D) D_is_set[key] = 1 21171 FS = "" 21172} 21173/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21174 line = \$ 0 21175 split(line, arg, " ") 21176 if (arg[1] == "#") { 21177 defundef = arg[2] 21178 mac1 = arg[3] 21179 } else { 21180 defundef = substr(arg[1], 2) 21181 mac1 = arg[2] 21182 } 21183 split(mac1, mac2, "(") #) 21184 macro = mac2[1] 21185 prefix = substr(line, 1, index(line, defundef) - 1) 21186 if (D_is_set[macro]) { 21187 # Preserve the white space surrounding the "#". 21188 print prefix "define", macro P[macro] D[macro] 21189 next 21190 } else { 21191 # Replace #undef with comments. This is necessary, for example, 21192 # in the case of _POSIX_SOURCE, which is predefined and required 21193 # on some systems where configure will not decide to define it. 21194 if (defundef == "undef") { 21195 print "/*", prefix defundef, macro, "*/" 21196 next 21197 } 21198 } 21199} 21200{ print } 21201_ACAWK 21202_ACEOF 21203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21204 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21205fi # test -n "$CONFIG_HEADERS" 21206 21207 21208eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21209shift 21210for ac_tag 21211do 21212 case $ac_tag in 21213 :[FHLC]) ac_mode=$ac_tag; continue;; 21214 esac 21215 case $ac_mode$ac_tag in 21216 :[FHL]*:*);; 21217 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21218 :[FH]-) ac_tag=-:-;; 21219 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21220 esac 21221 ac_save_IFS=$IFS 21222 IFS=: 21223 set x $ac_tag 21224 IFS=$ac_save_IFS 21225 shift 21226 ac_file=$1 21227 shift 21228 21229 case $ac_mode in 21230 :L) ac_source=$1;; 21231 :[FH]) 21232 ac_file_inputs= 21233 for ac_f 21234 do 21235 case $ac_f in 21236 -) ac_f="$ac_tmp/stdin";; 21237 *) # Look for the file first in the build tree, then in the source tree 21238 # (if the path is not absolute). The absolute path cannot be DOS-style, 21239 # because $ac_f cannot contain `:'. 21240 test -f "$ac_f" || 21241 case $ac_f in 21242 [\\/$]*) false;; 21243 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21244 esac || 21245 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21246 esac 21247 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21248 as_fn_append ac_file_inputs " '$ac_f'" 21249 done 21250 21251 # Let's still pretend it is `configure' which instantiates (i.e., don't 21252 # use $as_me), people would be surprised to read: 21253 # /* config.h. Generated by config.status. */ 21254 configure_input='Generated from '` 21255 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21256 `' by configure.' 21257 if test x"$ac_file" != x-; then 21258 configure_input="$ac_file. $configure_input" 21259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21260printf "%s\n" "$as_me: creating $ac_file" >&6;} 21261 fi 21262 # Neutralize special characters interpreted by sed in replacement strings. 21263 case $configure_input in #( 21264 *\&* | *\|* | *\\* ) 21265 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21266 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21267 *) ac_sed_conf_input=$configure_input;; 21268 esac 21269 21270 case $ac_tag in 21271 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21273 esac 21274 ;; 21275 esac 21276 21277 ac_dir=`$as_dirname -- "$ac_file" || 21278$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21279 X"$ac_file" : 'X\(//\)[^/]' \| \ 21280 X"$ac_file" : 'X\(//\)$' \| \ 21281 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21282printf "%s\n" X"$ac_file" | 21283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21284 s//\1/ 21285 q 21286 } 21287 /^X\(\/\/\)[^/].*/{ 21288 s//\1/ 21289 q 21290 } 21291 /^X\(\/\/\)$/{ 21292 s//\1/ 21293 q 21294 } 21295 /^X\(\/\).*/{ 21296 s//\1/ 21297 q 21298 } 21299 s/.*/./; q'` 21300 as_dir="$ac_dir"; as_fn_mkdir_p 21301 ac_builddir=. 21302 21303case "$ac_dir" in 21304.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21305*) 21306 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21307 # A ".." for each directory in $ac_dir_suffix. 21308 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21309 case $ac_top_builddir_sub in 21310 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21311 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21312 esac ;; 21313esac 21314ac_abs_top_builddir=$ac_pwd 21315ac_abs_builddir=$ac_pwd$ac_dir_suffix 21316# for backward compatibility: 21317ac_top_builddir=$ac_top_build_prefix 21318 21319case $srcdir in 21320 .) # We are building in place. 21321 ac_srcdir=. 21322 ac_top_srcdir=$ac_top_builddir_sub 21323 ac_abs_top_srcdir=$ac_pwd ;; 21324 [\\/]* | ?:[\\/]* ) # Absolute name. 21325 ac_srcdir=$srcdir$ac_dir_suffix; 21326 ac_top_srcdir=$srcdir 21327 ac_abs_top_srcdir=$srcdir ;; 21328 *) # Relative name. 21329 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21330 ac_top_srcdir=$ac_top_build_prefix$srcdir 21331 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21332esac 21333ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21334 21335 21336 case $ac_mode in 21337 :F) 21338 # 21339 # CONFIG_FILE 21340 # 21341 21342 case $INSTALL in 21343 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21344 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21345 esac 21346 ac_MKDIR_P=$MKDIR_P 21347 case $MKDIR_P in 21348 [\\/$]* | ?:[\\/]* ) ;; 21349 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21350 esac 21351_ACEOF 21352 21353cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21354# If the template does not know about datarootdir, expand it. 21355# FIXME: This hack should be removed a few years after 2.60. 21356ac_datarootdir_hack=; ac_datarootdir_seen= 21357ac_sed_dataroot=' 21358/datarootdir/ { 21359 p 21360 q 21361} 21362/@datadir@/p 21363/@docdir@/p 21364/@infodir@/p 21365/@localedir@/p 21366/@mandir@/p' 21367case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21368*datarootdir*) ac_datarootdir_seen=yes;; 21369*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21371printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21372_ACEOF 21373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21374 ac_datarootdir_hack=' 21375 s&@datadir@&$datadir&g 21376 s&@docdir@&$docdir&g 21377 s&@infodir@&$infodir&g 21378 s&@localedir@&$localedir&g 21379 s&@mandir@&$mandir&g 21380 s&\\\${datarootdir}&$datarootdir&g' ;; 21381esac 21382_ACEOF 21383 21384# Neutralize VPATH when `$srcdir' = `.'. 21385# Shell code in configure.ac might set extrasub. 21386# FIXME: do we really want to maintain this feature? 21387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21388ac_sed_extra="$ac_vpsub 21389$extrasub 21390_ACEOF 21391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21392:t 21393/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21394s|@configure_input@|$ac_sed_conf_input|;t t 21395s&@top_builddir@&$ac_top_builddir_sub&;t t 21396s&@top_build_prefix@&$ac_top_build_prefix&;t t 21397s&@srcdir@&$ac_srcdir&;t t 21398s&@abs_srcdir@&$ac_abs_srcdir&;t t 21399s&@top_srcdir@&$ac_top_srcdir&;t t 21400s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21401s&@builddir@&$ac_builddir&;t t 21402s&@abs_builddir@&$ac_abs_builddir&;t t 21403s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21404s&@INSTALL@&$ac_INSTALL&;t t 21405s&@MKDIR_P@&$ac_MKDIR_P&;t t 21406$ac_datarootdir_hack 21407" 21408eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21409 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21410 21411test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21412 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21413 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21414 "$ac_tmp/out"`; test -z "$ac_out"; } && 21415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21416which seems to be undefined. Please make sure it is defined" >&5 21417printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21418which seems to be undefined. Please make sure it is defined" >&2;} 21419 21420 rm -f "$ac_tmp/stdin" 21421 case $ac_file in 21422 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21423 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21424 esac \ 21425 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21426 ;; 21427 :H) 21428 # 21429 # CONFIG_HEADER 21430 # 21431 if test x"$ac_file" != x-; then 21432 { 21433 printf "%s\n" "/* $configure_input */" >&1 \ 21434 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21435 } >"$ac_tmp/config.h" \ 21436 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21437 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21439printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21440 else 21441 rm -f "$ac_file" 21442 mv "$ac_tmp/config.h" "$ac_file" \ 21443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21444 fi 21445 else 21446 printf "%s\n" "/* $configure_input */" >&1 \ 21447 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21448 || as_fn_error $? "could not create -" "$LINENO" 5 21449 fi 21450# Compute "$ac_file"'s index in $config_headers. 21451_am_arg="$ac_file" 21452_am_stamp_count=1 21453for _am_header in $config_headers :; do 21454 case $_am_header in 21455 $_am_arg | $_am_arg:* ) 21456 break ;; 21457 * ) 21458 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21459 esac 21460done 21461echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21462$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21463 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21464 X"$_am_arg" : 'X\(//\)$' \| \ 21465 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21466printf "%s\n" X"$_am_arg" | 21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21468 s//\1/ 21469 q 21470 } 21471 /^X\(\/\/\)[^/].*/{ 21472 s//\1/ 21473 q 21474 } 21475 /^X\(\/\/\)$/{ 21476 s//\1/ 21477 q 21478 } 21479 /^X\(\/\).*/{ 21480 s//\1/ 21481 q 21482 } 21483 s/.*/./; q'`/stamp-h$_am_stamp_count 21484 ;; 21485 21486 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21487printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21488 ;; 21489 esac 21490 21491 21492 case $ac_file$ac_mode in 21493 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21494 # Older Autoconf quotes --file arguments for eval, but not when files 21495 # are listed without --file. Let's play safe and only enable the eval 21496 # if we detect the quoting. 21497 # TODO: see whether this extra hack can be removed once we start 21498 # requiring Autoconf 2.70 or later. 21499 case $CONFIG_FILES in #( 21500 *\'*) : 21501 eval set x "$CONFIG_FILES" ;; #( 21502 *) : 21503 set x $CONFIG_FILES ;; #( 21504 *) : 21505 ;; 21506esac 21507 shift 21508 # Used to flag and report bootstrapping failures. 21509 am_rc=0 21510 for am_mf 21511 do 21512 # Strip MF so we end up with the name of the file. 21513 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21514 # Check whether this is an Automake generated Makefile which includes 21515 # dependency-tracking related rules and includes. 21516 # Grep'ing the whole file directly is not great: AIX grep has a line 21517 # limit of 2048, but all sed's we know have understand at least 4000. 21518 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21519 || continue 21520 am_dirpart=`$as_dirname -- "$am_mf" || 21521$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21522 X"$am_mf" : 'X\(//\)[^/]' \| \ 21523 X"$am_mf" : 'X\(//\)$' \| \ 21524 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21525printf "%s\n" X"$am_mf" | 21526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21527 s//\1/ 21528 q 21529 } 21530 /^X\(\/\/\)[^/].*/{ 21531 s//\1/ 21532 q 21533 } 21534 /^X\(\/\/\)$/{ 21535 s//\1/ 21536 q 21537 } 21538 /^X\(\/\).*/{ 21539 s//\1/ 21540 q 21541 } 21542 s/.*/./; q'` 21543 am_filepart=`$as_basename -- "$am_mf" || 21544$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21545 X"$am_mf" : 'X\(//\)$' \| \ 21546 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21547printf "%s\n" X/"$am_mf" | 21548 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21549 s//\1/ 21550 q 21551 } 21552 /^X\/\(\/\/\)$/{ 21553 s//\1/ 21554 q 21555 } 21556 /^X\/\(\/\).*/{ 21557 s//\1/ 21558 q 21559 } 21560 s/.*/./; q'` 21561 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21562 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21563 | $MAKE -f - am--depfiles" >&5 21564 (cd "$am_dirpart" \ 21565 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21566 | $MAKE -f - am--depfiles) >&5 2>&5 21567 ac_status=$? 21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21569 (exit $ac_status); } || am_rc=$? 21570 done 21571 if test $am_rc -ne 0; then 21572 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21573printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21574as_fn_error $? "Something went wrong bootstrapping makefile fragments 21575 for automatic dependency tracking. If GNU make was not used, consider 21576 re-running the configure script with MAKE=\"gmake\" (or whatever is 21577 necessary). You can also try re-running configure with the 21578 '--disable-dependency-tracking' option to at least be able to build 21579 the package (albeit without support for automatic dependency tracking). 21580See \`config.log' for more details" "$LINENO" 5; } 21581 fi 21582 { am_dirpart=; unset am_dirpart;} 21583 { am_filepart=; unset am_filepart;} 21584 { am_mf=; unset am_mf;} 21585 { am_rc=; unset am_rc;} 21586 rm -f conftest-deps.mk 21587} 21588 ;; 21589 "libtool":C) 21590 21591 # See if we are running on zsh, and set the options that allow our 21592 # commands through without removal of \ escapes. 21593 if test -n "${ZSH_VERSION+set}"; then 21594 setopt NO_GLOB_SUBST 21595 fi 21596 21597 cfgfile=${ofile}T 21598 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21599 $RM "$cfgfile" 21600 21601 cat <<_LT_EOF >> "$cfgfile" 21602#! $SHELL 21603# Generated automatically by $as_me ($PACKAGE) $VERSION 21604# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21605# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21606 21607# Provide generalized library-building support services. 21608# Written by Gordon Matzigkeit, 1996 21609 21610# Copyright (C) 2014 Free Software Foundation, Inc. 21611# This is free software; see the source for copying conditions. There is NO 21612# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21613 21614# GNU Libtool is free software; you can redistribute it and/or modify 21615# it under the terms of the GNU General Public License as published by 21616# the Free Software Foundation; either version 2 of of the License, or 21617# (at your option) any later version. 21618# 21619# As a special exception to the GNU General Public License, if you 21620# distribute this file as part of a program or library that is built 21621# using GNU Libtool, you may include this file under the same 21622# distribution terms that you use for the rest of that program. 21623# 21624# GNU Libtool is distributed in the hope that it will be useful, but 21625# WITHOUT ANY WARRANTY; without even the implied warranty of 21626# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21627# GNU General Public License for more details. 21628# 21629# You should have received a copy of the GNU General Public License 21630# along with this program. If not, see <http://www.gnu.org/licenses/>. 21631 21632 21633# The names of the tagged configurations supported by this script. 21634available_tags='' 21635 21636# Configured defaults for sys_lib_dlsearch_path munging. 21637: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21638 21639# ### BEGIN LIBTOOL CONFIG 21640 21641# Whether or not to build static libraries. 21642build_old_libs=$enable_static 21643 21644# Which release of libtool.m4 was used? 21645macro_version=$macro_version 21646macro_revision=$macro_revision 21647 21648# Whether or not to build shared libraries. 21649build_libtool_libs=$enable_shared 21650 21651# What type of objects to build. 21652pic_mode=$pic_mode 21653 21654# Whether or not to optimize for fast installation. 21655fast_install=$enable_fast_install 21656 21657# Shared archive member basename,for filename based shared library versioning on AIX. 21658shared_archive_member_spec=$shared_archive_member_spec 21659 21660# Shell to use when invoking shell scripts. 21661SHELL=$lt_SHELL 21662 21663# An echo program that protects backslashes. 21664ECHO=$lt_ECHO 21665 21666# The PATH separator for the build system. 21667PATH_SEPARATOR=$lt_PATH_SEPARATOR 21668 21669# The host system. 21670host_alias=$host_alias 21671host=$host 21672host_os=$host_os 21673 21674# The build system. 21675build_alias=$build_alias 21676build=$build 21677build_os=$build_os 21678 21679# A sed program that does not truncate output. 21680SED=$lt_SED 21681 21682# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21683Xsed="\$SED -e 1s/^X//" 21684 21685# A grep program that handles long lines. 21686GREP=$lt_GREP 21687 21688# An ERE matcher. 21689EGREP=$lt_EGREP 21690 21691# A literal string matcher. 21692FGREP=$lt_FGREP 21693 21694# A BSD- or MS-compatible name lister. 21695NM=$lt_NM 21696 21697# Whether we need soft or hard links. 21698LN_S=$lt_LN_S 21699 21700# What is the maximum length of a command? 21701max_cmd_len=$max_cmd_len 21702 21703# Object file suffix (normally "o"). 21704objext=$ac_objext 21705 21706# Executable file suffix (normally ""). 21707exeext=$exeext 21708 21709# whether the shell understands "unset". 21710lt_unset=$lt_unset 21711 21712# turn spaces into newlines. 21713SP2NL=$lt_lt_SP2NL 21714 21715# turn newlines into spaces. 21716NL2SP=$lt_lt_NL2SP 21717 21718# convert \$build file names to \$host format. 21719to_host_file_cmd=$lt_cv_to_host_file_cmd 21720 21721# convert \$build files to toolchain format. 21722to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21723 21724# A file(cmd) program that detects file types. 21725FILECMD=$lt_FILECMD 21726 21727# An object symbol dumper. 21728OBJDUMP=$lt_OBJDUMP 21729 21730# Method to check whether dependent libraries are shared objects. 21731deplibs_check_method=$lt_deplibs_check_method 21732 21733# Command to use when deplibs_check_method = "file_magic". 21734file_magic_cmd=$lt_file_magic_cmd 21735 21736# How to find potential files when deplibs_check_method = "file_magic". 21737file_magic_glob=$lt_file_magic_glob 21738 21739# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21740want_nocaseglob=$lt_want_nocaseglob 21741 21742# DLL creation program. 21743DLLTOOL=$lt_DLLTOOL 21744 21745# Command to associate shared and link libraries. 21746sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21747 21748# The archiver. 21749AR=$lt_AR 21750 21751# Flags to create an archive (by configure). 21752lt_ar_flags=$lt_ar_flags 21753 21754# Flags to create an archive. 21755AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21756 21757# How to feed a file listing to the archiver. 21758archiver_list_spec=$lt_archiver_list_spec 21759 21760# A symbol stripping program. 21761STRIP=$lt_STRIP 21762 21763# Commands used to install an old-style archive. 21764RANLIB=$lt_RANLIB 21765old_postinstall_cmds=$lt_old_postinstall_cmds 21766old_postuninstall_cmds=$lt_old_postuninstall_cmds 21767 21768# Whether to use a lock for old archive extraction. 21769lock_old_archive_extraction=$lock_old_archive_extraction 21770 21771# A C compiler. 21772LTCC=$lt_CC 21773 21774# LTCC compiler flags. 21775LTCFLAGS=$lt_CFLAGS 21776 21777# Take the output of nm and produce a listing of raw symbols and C names. 21778global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21779 21780# Transform the output of nm in a proper C declaration. 21781global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21782 21783# Transform the output of nm into a list of symbols to manually relocate. 21784global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21785 21786# Transform the output of nm in a C name address pair. 21787global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21788 21789# Transform the output of nm in a C name address pair when lib prefix is needed. 21790global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21791 21792# The name lister interface. 21793nm_interface=$lt_lt_cv_nm_interface 21794 21795# Specify filename containing input files for \$NM. 21796nm_file_list_spec=$lt_nm_file_list_spec 21797 21798# The root where to search for dependent libraries,and where our libraries should be installed. 21799lt_sysroot=$lt_sysroot 21800 21801# Command to truncate a binary pipe. 21802lt_truncate_bin=$lt_lt_cv_truncate_bin 21803 21804# The name of the directory that contains temporary libtool files. 21805objdir=$objdir 21806 21807# Used to examine libraries when file_magic_cmd begins with "file". 21808MAGIC_CMD=$MAGIC_CMD 21809 21810# Must we lock files when doing compilation? 21811need_locks=$lt_need_locks 21812 21813# Manifest tool. 21814MANIFEST_TOOL=$lt_MANIFEST_TOOL 21815 21816# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21817DSYMUTIL=$lt_DSYMUTIL 21818 21819# Tool to change global to local symbols on Mac OS X. 21820NMEDIT=$lt_NMEDIT 21821 21822# Tool to manipulate fat objects and archives on Mac OS X. 21823LIPO=$lt_LIPO 21824 21825# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21826OTOOL=$lt_OTOOL 21827 21828# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21829OTOOL64=$lt_OTOOL64 21830 21831# Old archive suffix (normally "a"). 21832libext=$libext 21833 21834# Shared library suffix (normally ".so"). 21835shrext_cmds=$lt_shrext_cmds 21836 21837# The commands to extract the exported symbol list from a shared archive. 21838extract_expsyms_cmds=$lt_extract_expsyms_cmds 21839 21840# Variables whose values should be saved in libtool wrapper scripts and 21841# restored at link time. 21842variables_saved_for_relink=$lt_variables_saved_for_relink 21843 21844# Do we need the "lib" prefix for modules? 21845need_lib_prefix=$need_lib_prefix 21846 21847# Do we need a version for libraries? 21848need_version=$need_version 21849 21850# Library versioning type. 21851version_type=$version_type 21852 21853# Shared library runtime path variable. 21854runpath_var=$runpath_var 21855 21856# Shared library path variable. 21857shlibpath_var=$shlibpath_var 21858 21859# Is shlibpath searched before the hard-coded library search path? 21860shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21861 21862# Format of library name prefix. 21863libname_spec=$lt_libname_spec 21864 21865# List of archive names. First name is the real one, the rest are links. 21866# The last name is the one that the linker finds with -lNAME 21867library_names_spec=$lt_library_names_spec 21868 21869# The coded name of the library, if different from the real name. 21870soname_spec=$lt_soname_spec 21871 21872# Permission mode override for installation of shared libraries. 21873install_override_mode=$lt_install_override_mode 21874 21875# Command to use after installation of a shared archive. 21876postinstall_cmds=$lt_postinstall_cmds 21877 21878# Command to use after uninstallation of a shared archive. 21879postuninstall_cmds=$lt_postuninstall_cmds 21880 21881# Commands used to finish a libtool library installation in a directory. 21882finish_cmds=$lt_finish_cmds 21883 21884# As "finish_cmds", except a single script fragment to be evaled but 21885# not shown. 21886finish_eval=$lt_finish_eval 21887 21888# Whether we should hardcode library paths into libraries. 21889hardcode_into_libs=$hardcode_into_libs 21890 21891# Compile-time system search path for libraries. 21892sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21893 21894# Detected run-time system search path for libraries. 21895sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21896 21897# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21898configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21899 21900# Whether dlopen is supported. 21901dlopen_support=$enable_dlopen 21902 21903# Whether dlopen of programs is supported. 21904dlopen_self=$enable_dlopen_self 21905 21906# Whether dlopen of statically linked programs is supported. 21907dlopen_self_static=$enable_dlopen_self_static 21908 21909# Commands to strip libraries. 21910old_striplib=$lt_old_striplib 21911striplib=$lt_striplib 21912 21913 21914# The linker used to build libraries. 21915LD=$lt_LD 21916 21917# How to create reloadable object files. 21918reload_flag=$lt_reload_flag 21919reload_cmds=$lt_reload_cmds 21920 21921# Commands used to build an old-style archive. 21922old_archive_cmds=$lt_old_archive_cmds 21923 21924# A language specific compiler. 21925CC=$lt_compiler 21926 21927# Is the compiler the GNU compiler? 21928with_gcc=$GCC 21929 21930# Compiler flag to turn off builtin functions. 21931no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21932 21933# Additional compiler flags for building library objects. 21934pic_flag=$lt_lt_prog_compiler_pic 21935 21936# How to pass a linker flag through the compiler. 21937wl=$lt_lt_prog_compiler_wl 21938 21939# Compiler flag to prevent dynamic linking. 21940link_static_flag=$lt_lt_prog_compiler_static 21941 21942# Does compiler simultaneously support -c and -o options? 21943compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21944 21945# Whether or not to add -lc for building shared libraries. 21946build_libtool_need_lc=$archive_cmds_need_lc 21947 21948# Whether or not to disallow shared libs when runtime libs are static. 21949allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21950 21951# Compiler flag to allow reflexive dlopens. 21952export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21953 21954# Compiler flag to generate shared objects directly from archives. 21955whole_archive_flag_spec=$lt_whole_archive_flag_spec 21956 21957# Whether the compiler copes with passing no objects directly. 21958compiler_needs_object=$lt_compiler_needs_object 21959 21960# Create an old-style archive from a shared archive. 21961old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21962 21963# Create a temporary old-style archive to link instead of a shared archive. 21964old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21965 21966# Commands used to build a shared archive. 21967archive_cmds=$lt_archive_cmds 21968archive_expsym_cmds=$lt_archive_expsym_cmds 21969 21970# Commands used to build a loadable module if different from building 21971# a shared archive. 21972module_cmds=$lt_module_cmds 21973module_expsym_cmds=$lt_module_expsym_cmds 21974 21975# Whether we are building with GNU ld or not. 21976with_gnu_ld=$lt_with_gnu_ld 21977 21978# Flag that allows shared libraries with undefined symbols to be built. 21979allow_undefined_flag=$lt_allow_undefined_flag 21980 21981# Flag that enforces no undefined symbols. 21982no_undefined_flag=$lt_no_undefined_flag 21983 21984# Flag to hardcode \$libdir into a binary during linking. 21985# This must work even if \$libdir does not exist 21986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21987 21988# Whether we need a single "-rpath" flag with a separated argument. 21989hardcode_libdir_separator=$lt_hardcode_libdir_separator 21990 21991# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21992# DIR into the resulting binary. 21993hardcode_direct=$hardcode_direct 21994 21995# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21996# DIR into the resulting binary and the resulting library dependency is 21997# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21998# library is relocated. 21999hardcode_direct_absolute=$hardcode_direct_absolute 22000 22001# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22002# into the resulting binary. 22003hardcode_minus_L=$hardcode_minus_L 22004 22005# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22006# into the resulting binary. 22007hardcode_shlibpath_var=$hardcode_shlibpath_var 22008 22009# Set to "yes" if building a shared library automatically hardcodes DIR 22010# into the library and all subsequent libraries and executables linked 22011# against it. 22012hardcode_automatic=$hardcode_automatic 22013 22014# Set to yes if linker adds runtime paths of dependent libraries 22015# to runtime path list. 22016inherit_rpath=$inherit_rpath 22017 22018# Whether libtool must link a program against all its dependency libraries. 22019link_all_deplibs=$link_all_deplibs 22020 22021# Set to "yes" if exported symbols are required. 22022always_export_symbols=$always_export_symbols 22023 22024# The commands to list exported symbols. 22025export_symbols_cmds=$lt_export_symbols_cmds 22026 22027# Symbols that should not be listed in the preloaded symbols. 22028exclude_expsyms=$lt_exclude_expsyms 22029 22030# Symbols that must always be exported. 22031include_expsyms=$lt_include_expsyms 22032 22033# Commands necessary for linking programs (against libraries) with templates. 22034prelink_cmds=$lt_prelink_cmds 22035 22036# Commands necessary for finishing linking programs. 22037postlink_cmds=$lt_postlink_cmds 22038 22039# Specify filename containing input files. 22040file_list_spec=$lt_file_list_spec 22041 22042# How to hardcode a shared library path into an executable. 22043hardcode_action=$hardcode_action 22044 22045# ### END LIBTOOL CONFIG 22046 22047_LT_EOF 22048 22049 cat <<'_LT_EOF' >> "$cfgfile" 22050 22051# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22052 22053# func_munge_path_list VARIABLE PATH 22054# ----------------------------------- 22055# VARIABLE is name of variable containing _space_ separated list of 22056# directories to be munged by the contents of PATH, which is string 22057# having a format: 22058# "DIR[:DIR]:" 22059# string "DIR[ DIR]" will be prepended to VARIABLE 22060# ":DIR[:DIR]" 22061# string "DIR[ DIR]" will be appended to VARIABLE 22062# "DIRP[:DIRP]::[DIRA:]DIRA" 22063# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22064# "DIRA[ DIRA]" will be appended to VARIABLE 22065# "DIR[:DIR]" 22066# VARIABLE will be replaced by "DIR[ DIR]" 22067func_munge_path_list () 22068{ 22069 case x$2 in 22070 x) 22071 ;; 22072 *:) 22073 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22074 ;; 22075 x:*) 22076 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22077 ;; 22078 *::*) 22079 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22080 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22081 ;; 22082 *) 22083 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22084 ;; 22085 esac 22086} 22087 22088 22089# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22090func_cc_basename () 22091{ 22092 for cc_temp in $*""; do 22093 case $cc_temp in 22094 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22095 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22096 \-*) ;; 22097 *) break;; 22098 esac 22099 done 22100 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22101} 22102 22103 22104# ### END FUNCTIONS SHARED WITH CONFIGURE 22105 22106_LT_EOF 22107 22108 case $host_os in 22109 aix3*) 22110 cat <<\_LT_EOF >> "$cfgfile" 22111# AIX sometimes has problems with the GCC collect2 program. For some 22112# reason, if we set the COLLECT_NAMES environment variable, the problems 22113# vanish in a puff of smoke. 22114if test set != "${COLLECT_NAMES+set}"; then 22115 COLLECT_NAMES= 22116 export COLLECT_NAMES 22117fi 22118_LT_EOF 22119 ;; 22120 esac 22121 22122 22123 22124ltmain=$ac_aux_dir/ltmain.sh 22125 22126 22127 # We use sed instead of cat because bash on DJGPP gets confused if 22128 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22129 # text mode, it properly converts lines to CR/LF. This bash problem 22130 # is reportedly fixed, but why not run on old versions too? 22131 $SED '$q' "$ltmain" >> "$cfgfile" \ 22132 || (rm -f "$cfgfile"; exit 1) 22133 22134 mv -f "$cfgfile" "$ofile" || 22135 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22136 chmod +x "$ofile" 22137 22138 ;; 22139 22140 esac 22141done # for ac_tag 22142 22143 22144as_fn_exit 0 22145_ACEOF 22146ac_clean_files=$ac_clean_files_save 22147 22148test $ac_write_fail = 0 || 22149 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22150 22151 22152# configure is writing to config.log, and then calls config.status. 22153# config.status does its own redirection, appending to config.log. 22154# Unfortunately, on DOS this fails, as config.log is still kept open 22155# by configure, so config.status won't be able to write to it; its 22156# output is simply discarded. So we exec the FD to /dev/null, 22157# effectively closing config.log, so it can be properly (re)opened and 22158# appended to by config.status. When coming back to configure, we 22159# need to make the FD available again. 22160if test "$no_create" != yes; then 22161 ac_cs_success=: 22162 ac_config_status_args= 22163 test "$silent" = yes && 22164 ac_config_status_args="$ac_config_status_args --quiet" 22165 exec 5>/dev/null 22166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22167 exec 5>>config.log 22168 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22169 # would make configure fail if this is the last instruction. 22170 $ac_cs_success || as_fn_exit 1 22171fi 22172if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22174printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22175fi 22176 22177 22178