configure revision e9f7eabc
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-i128 1.4.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/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 186test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 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-i128/-/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-i128' 624PACKAGE_TARNAME='xf86-video-i128' 625PACKAGE_VERSION='1.4.1' 626PACKAGE_STRING='xf86-video-i128 1.4.1' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667DRIVER_NAME 668moduledir 669XAA_FALSE 670XAA_TRUE 671XSERVER_LIBPCIACCESS_FALSE 672XSERVER_LIBPCIACCESS_TRUE 673PCIACCESS_LIBS 674PCIACCESS_CFLAGS 675XORG_LIBS 676XORG_CFLAGS 677LT_SYS_LIBRARY_PATH 678OTOOL64 679OTOOL 680LIPO 681NMEDIT 682DSYMUTIL 683MANIFEST_TOOL 684RANLIB 685ac_ct_AR 686AR 687DLLTOOL 688OBJDUMP 689FILECMD 690LN_S 691NM 692ac_ct_DUMPBIN 693DUMPBIN 694LD 695FGREP 696EGREP 697GREP 698LIBTOOL 699MAN_SUBSTS 700XORG_MAN_PAGE 701ADMIN_MAN_DIR 702DRIVER_MAN_DIR 703MISC_MAN_DIR 704FILE_MAN_DIR 705LIB_MAN_DIR 706APP_MAN_DIR 707ADMIN_MAN_SUFFIX 708DRIVER_MAN_SUFFIX 709MISC_MAN_SUFFIX 710FILE_MAN_SUFFIX 711LIB_MAN_SUFFIX 712APP_MAN_SUFFIX 713SED 714host_os 715host_vendor 716host_cpu 717host 718build_os 719build_vendor 720build_cpu 721build 722INSTALL_CMD 723PKG_CONFIG_LIBDIR 724PKG_CONFIG_PATH 725PKG_CONFIG 726CHANGELOG_CMD 727STRICT_CFLAGS 728CWARNFLAGS 729BASE_CFLAGS 730am__fastdepCC_FALSE 731am__fastdepCC_TRUE 732CCDEPMODE 733am__nodep 734AMDEPBACKSLASH 735AMDEP_FALSE 736AMDEP_TRUE 737am__include 738DEPDIR 739OBJEXT 740EXEEXT 741ac_ct_CC 742CPPFLAGS 743LDFLAGS 744CFLAGS 745CC 746MAINT 747MAINTAINER_MODE_FALSE 748MAINTAINER_MODE_TRUE 749AM_BACKSLASH 750AM_DEFAULT_VERBOSITY 751AM_DEFAULT_V 752AM_V 753CSCOPE 754ETAGS 755CTAGS 756am__untar 757am__tar 758AMTAR 759am__leading_dot 760SET_MAKE 761AWK 762mkdir_p 763MKDIR_P 764INSTALL_STRIP_PROGRAM 765STRIP 766install_sh 767MAKEINFO 768AUTOHEADER 769AUTOMAKE 770AUTOCONF 771ACLOCAL 772VERSION 773PACKAGE 774CYGPATH_W 775am__isrc 776INSTALL_DATA 777INSTALL_SCRIPT 778INSTALL_PROGRAM 779target_alias 780host_alias 781build_alias 782LIBS 783ECHO_T 784ECHO_N 785ECHO_C 786DEFS 787mandir 788localedir 789libdir 790psdir 791pdfdir 792dvidir 793htmldir 794infodir 795docdir 796oldincludedir 797includedir 798runstatedir 799localstatedir 800sharedstatedir 801sysconfdir 802datadir 803datarootdir 804libexecdir 805sbindir 806bindir 807program_transform_name 808prefix 809exec_prefix 810PACKAGE_URL 811PACKAGE_BUGREPORT 812PACKAGE_STRING 813PACKAGE_VERSION 814PACKAGE_TARNAME 815PACKAGE_NAME 816PATH_SEPARATOR 817SHELL 818am__quote' 819ac_subst_files='' 820ac_user_opts=' 821enable_option_checking 822enable_silent_rules 823enable_maintainer_mode 824enable_dependency_tracking 825enable_selective_werror 826enable_strict_compilation 827enable_static 828enable_shared 829with_pic 830enable_fast_install 831with_aix_soname 832with_gnu_ld 833with_sysroot 834enable_libtool_lock 835with_xorg_module_dir 836enable_xaa 837' 838 ac_precious_vars='build_alias 839host_alias 840target_alias 841CC 842CFLAGS 843LDFLAGS 844LIBS 845CPPFLAGS 846PKG_CONFIG 847PKG_CONFIG_PATH 848PKG_CONFIG_LIBDIR 849LT_SYS_LIBRARY_PATH 850XORG_CFLAGS 851XORG_LIBS 852PCIACCESS_CFLAGS 853PCIACCESS_LIBS' 854 855 856# Initialize some variables set by options. 857ac_init_help= 858ac_init_version=false 859ac_unrecognized_opts= 860ac_unrecognized_sep= 861# The variables have the same names as the options, with 862# dashes changed to underlines. 863cache_file=/dev/null 864exec_prefix=NONE 865no_create= 866no_recursion= 867prefix=NONE 868program_prefix=NONE 869program_suffix=NONE 870program_transform_name=s,x,x, 871silent= 872site= 873srcdir= 874verbose= 875x_includes=NONE 876x_libraries=NONE 877 878# Installation directory options. 879# These are left unexpanded so users can "make install exec_prefix=/foo" 880# and all the variables that are supposed to be based on exec_prefix 881# by default will actually change. 882# Use braces instead of parens because sh, perl, etc. also accept them. 883# (The list follows the same order as the GNU Coding Standards.) 884bindir='${exec_prefix}/bin' 885sbindir='${exec_prefix}/sbin' 886libexecdir='${exec_prefix}/libexec' 887datarootdir='${prefix}/share' 888datadir='${datarootdir}' 889sysconfdir='${prefix}/etc' 890sharedstatedir='${prefix}/com' 891localstatedir='${prefix}/var' 892runstatedir='${localstatedir}/run' 893includedir='${prefix}/include' 894oldincludedir='/usr/include' 895docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 896infodir='${datarootdir}/info' 897htmldir='${docdir}' 898dvidir='${docdir}' 899pdfdir='${docdir}' 900psdir='${docdir}' 901libdir='${exec_prefix}/lib' 902localedir='${datarootdir}/locale' 903mandir='${datarootdir}/man' 904 905ac_prev= 906ac_dashdash= 907for ac_option 908do 909 # If the previous option needs an argument, assign it. 910 if test -n "$ac_prev"; then 911 eval $ac_prev=\$ac_option 912 ac_prev= 913 continue 914 fi 915 916 case $ac_option in 917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 918 *=) ac_optarg= ;; 919 *) ac_optarg=yes ;; 920 esac 921 922 case $ac_dashdash$ac_option in 923 --) 924 ac_dashdash=yes ;; 925 926 -bindir | --bindir | --bindi | --bind | --bin | --bi) 927 ac_prev=bindir ;; 928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 929 bindir=$ac_optarg ;; 930 931 -build | --build | --buil | --bui | --bu) 932 ac_prev=build_alias ;; 933 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 934 build_alias=$ac_optarg ;; 935 936 -cache-file | --cache-file | --cache-fil | --cache-fi \ 937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 938 ac_prev=cache_file ;; 939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 941 cache_file=$ac_optarg ;; 942 943 --config-cache | -C) 944 cache_file=config.cache ;; 945 946 -datadir | --datadir | --datadi | --datad) 947 ac_prev=datadir ;; 948 -datadir=* | --datadir=* | --datadi=* | --datad=*) 949 datadir=$ac_optarg ;; 950 951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 952 | --dataroo | --dataro | --datar) 953 ac_prev=datarootdir ;; 954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 956 datarootdir=$ac_optarg ;; 957 958 -disable-* | --disable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: \`$ac_useropt'" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=no ;; 973 974 -docdir | --docdir | --docdi | --doc | --do) 975 ac_prev=docdir ;; 976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 977 docdir=$ac_optarg ;; 978 979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 980 ac_prev=dvidir ;; 981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 982 dvidir=$ac_optarg ;; 983 984 -enable-* | --enable-*) 985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 986 # Reject names that are not valid shell variable names. 987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 988 as_fn_error $? "invalid feature name: \`$ac_useropt'" 989 ac_useropt_orig=$ac_useropt 990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 991 case $ac_user_opts in 992 *" 993"enable_$ac_useropt" 994"*) ;; 995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 996 ac_unrecognized_sep=', ';; 997 esac 998 eval enable_$ac_useropt=\$ac_optarg ;; 999 1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1002 | --exec | --exe | --ex) 1003 ac_prev=exec_prefix ;; 1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1006 | --exec=* | --exe=* | --ex=*) 1007 exec_prefix=$ac_optarg ;; 1008 1009 -gas | --gas | --ga | --g) 1010 # Obsolete; use --with-gas. 1011 with_gas=yes ;; 1012 1013 -help | --help | --hel | --he | -h) 1014 ac_init_help=long ;; 1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1016 ac_init_help=recursive ;; 1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1018 ac_init_help=short ;; 1019 1020 -host | --host | --hos | --ho) 1021 ac_prev=host_alias ;; 1022 -host=* | --host=* | --hos=* | --ho=*) 1023 host_alias=$ac_optarg ;; 1024 1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1026 ac_prev=htmldir ;; 1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1028 | --ht=*) 1029 htmldir=$ac_optarg ;; 1030 1031 -includedir | --includedir | --includedi | --included | --include \ 1032 | --includ | --inclu | --incl | --inc) 1033 ac_prev=includedir ;; 1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1035 | --includ=* | --inclu=* | --incl=* | --inc=*) 1036 includedir=$ac_optarg ;; 1037 1038 -infodir | --infodir | --infodi | --infod | --info | --inf) 1039 ac_prev=infodir ;; 1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1041 infodir=$ac_optarg ;; 1042 1043 -libdir | --libdir | --libdi | --libd) 1044 ac_prev=libdir ;; 1045 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1046 libdir=$ac_optarg ;; 1047 1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1049 | --libexe | --libex | --libe) 1050 ac_prev=libexecdir ;; 1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1052 | --libexe=* | --libex=* | --libe=*) 1053 libexecdir=$ac_optarg ;; 1054 1055 -localedir | --localedir | --localedi | --localed | --locale) 1056 ac_prev=localedir ;; 1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1058 localedir=$ac_optarg ;; 1059 1060 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1061 | --localstate | --localstat | --localsta | --localst | --locals) 1062 ac_prev=localstatedir ;; 1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1065 localstatedir=$ac_optarg ;; 1066 1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1068 ac_prev=mandir ;; 1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1070 mandir=$ac_optarg ;; 1071 1072 -nfp | --nfp | --nf) 1073 # Obsolete; use --without-fp. 1074 with_fp=no ;; 1075 1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1077 | --no-cr | --no-c | -n) 1078 no_create=yes ;; 1079 1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1082 no_recursion=yes ;; 1083 1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1086 | --oldin | --oldi | --old | --ol | --o) 1087 ac_prev=oldincludedir ;; 1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1091 oldincludedir=$ac_optarg ;; 1092 1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1094 ac_prev=prefix ;; 1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1096 prefix=$ac_optarg ;; 1097 1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1099 | --program-pre | --program-pr | --program-p) 1100 ac_prev=program_prefix ;; 1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1103 program_prefix=$ac_optarg ;; 1104 1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1106 | --program-suf | --program-su | --program-s) 1107 ac_prev=program_suffix ;; 1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1110 program_suffix=$ac_optarg ;; 1111 1112 -program-transform-name | --program-transform-name \ 1113 | --program-transform-nam | --program-transform-na \ 1114 | --program-transform-n | --program-transform- \ 1115 | --program-transform | --program-transfor \ 1116 | --program-transfo | --program-transf \ 1117 | --program-trans | --program-tran \ 1118 | --progr-tra | --program-tr | --program-t) 1119 ac_prev=program_transform_name ;; 1120 -program-transform-name=* | --program-transform-name=* \ 1121 | --program-transform-nam=* | --program-transform-na=* \ 1122 | --program-transform-n=* | --program-transform-=* \ 1123 | --program-transform=* | --program-transfor=* \ 1124 | --program-transfo=* | --program-transf=* \ 1125 | --program-trans=* | --program-tran=* \ 1126 | --progr-tra=* | --program-tr=* | --program-t=*) 1127 program_transform_name=$ac_optarg ;; 1128 1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1130 ac_prev=pdfdir ;; 1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1132 pdfdir=$ac_optarg ;; 1133 1134 -psdir | --psdir | --psdi | --psd | --ps) 1135 ac_prev=psdir ;; 1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1137 psdir=$ac_optarg ;; 1138 1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1140 | -silent | --silent | --silen | --sile | --sil) 1141 silent=yes ;; 1142 1143 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1144 | --runstate | --runstat | --runsta | --runst | --runs \ 1145 | --run | --ru | --r) 1146 ac_prev=runstatedir ;; 1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1149 | --run=* | --ru=* | --r=*) 1150 runstatedir=$ac_optarg ;; 1151 1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1153 ac_prev=sbindir ;; 1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1155 | --sbi=* | --sb=*) 1156 sbindir=$ac_optarg ;; 1157 1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1160 | --sharedst | --shareds | --shared | --share | --shar \ 1161 | --sha | --sh) 1162 ac_prev=sharedstatedir ;; 1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1166 | --sha=* | --sh=*) 1167 sharedstatedir=$ac_optarg ;; 1168 1169 -site | --site | --sit) 1170 ac_prev=site ;; 1171 -site=* | --site=* | --sit=*) 1172 site=$ac_optarg ;; 1173 1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1175 ac_prev=srcdir ;; 1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1177 srcdir=$ac_optarg ;; 1178 1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1180 | --syscon | --sysco | --sysc | --sys | --sy) 1181 ac_prev=sysconfdir ;; 1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1184 sysconfdir=$ac_optarg ;; 1185 1186 -target | --target | --targe | --targ | --tar | --ta | --t) 1187 ac_prev=target_alias ;; 1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1189 target_alias=$ac_optarg ;; 1190 1191 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1192 verbose=yes ;; 1193 1194 -version | --version | --versio | --versi | --vers | -V) 1195 ac_init_version=: ;; 1196 1197 -with-* | --with-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: \`$ac_useropt'" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=\$ac_optarg ;; 1212 1213 -without-* | --without-*) 1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1215 # Reject names that are not valid shell variable names. 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1217 as_fn_error $? "invalid package name: \`$ac_useropt'" 1218 ac_useropt_orig=$ac_useropt 1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1220 case $ac_user_opts in 1221 *" 1222"with_$ac_useropt" 1223"*) ;; 1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1225 ac_unrecognized_sep=', ';; 1226 esac 1227 eval with_$ac_useropt=no ;; 1228 1229 --x) 1230 # Obsolete; use --with-x. 1231 with_x=yes ;; 1232 1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1234 | --x-incl | --x-inc | --x-in | --x-i) 1235 ac_prev=x_includes ;; 1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1238 x_includes=$ac_optarg ;; 1239 1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1242 ac_prev=x_libraries ;; 1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1245 x_libraries=$ac_optarg ;; 1246 1247 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1248Try \`$0 --help' for more information" 1249 ;; 1250 1251 *=*) 1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1253 # Reject names that are not valid shell variable names. 1254 case $ac_envvar in #( 1255 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1257 esac 1258 eval $ac_envvar=\$ac_optarg 1259 export $ac_envvar ;; 1260 1261 *) 1262 # FIXME: should be removed in autoconf 3.0. 1263 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1265 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1267 ;; 1268 1269 esac 1270done 1271 1272if test -n "$ac_prev"; then 1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1274 as_fn_error $? "missing argument to $ac_option" 1275fi 1276 1277if test -n "$ac_unrecognized_opts"; then 1278 case $enable_option_checking in 1279 no) ;; 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1281 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1282 esac 1283fi 1284 1285# Check all directory arguments for consistency. 1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1287 datadir sysconfdir sharedstatedir localstatedir includedir \ 1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1289 libdir localedir mandir runstatedir 1290do 1291 eval ac_val=\$$ac_var 1292 # Remove trailing slashes. 1293 case $ac_val in 1294 */ ) 1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1296 eval $ac_var=\$ac_val;; 1297 esac 1298 # Be sure to have absolute directory names. 1299 case $ac_val in 1300 [\\/$]* | ?:[\\/]* ) continue;; 1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1302 esac 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1304done 1305 1306# There might be people who depend on the old broken behavior: `$host' 1307# used to hold the argument of --host etc. 1308# FIXME: To remove some day. 1309build=$build_alias 1310host=$host_alias 1311target=$target_alias 1312 1313# FIXME: To remove some day. 1314if test "x$host_alias" != x; then 1315 if test "x$build_alias" = x; then 1316 cross_compiling=maybe 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 as_fn_error $? "working directory cannot be determined" 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1333 as_fn_error $? "pwd does not report name of working directory" 1334 1335 1336# Find the source files, if location was not specified. 1337if test -z "$srcdir"; then 1338 ac_srcdir_defaulted=yes 1339 # Try the directory containing this script, then the parent directory. 1340 ac_confdir=`$as_dirname -- "$as_myself" || 1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1342 X"$as_myself" : 'X\(//\)[^/]' \| \ 1343 X"$as_myself" : 'X\(//\)$' \| \ 1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1345printf "%s\n" X"$as_myself" | 1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)[^/].*/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\).*/{ 1359 s//\1/ 1360 q 1361 } 1362 s/.*/./; q'` 1363 srcdir=$ac_confdir 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 srcdir=.. 1366 fi 1367else 1368 ac_srcdir_defaulted=no 1369fi 1370if test ! -r "$srcdir/$ac_unique_file"; then 1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1373fi 1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1375ac_abs_confdir=`( 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1377 pwd)` 1378# When building in place, set srcdir=. 1379if test "$ac_abs_confdir" = "$ac_pwd"; then 1380 srcdir=. 1381fi 1382# Remove unnecessary trailing slashes from srcdir. 1383# Double slashes in file names in object file debugging info 1384# mess up M-x gdb in Emacs. 1385case $srcdir in 1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1387esac 1388for ac_var in $ac_precious_vars; do 1389 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_env_${ac_var}_value=\$${ac_var} 1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1393done 1394 1395# 1396# Report the --help message. 1397# 1398if test "$ac_init_help" = "long"; then 1399 # Omit some internal or obsolete options to make the list less imposing. 1400 # This message is too long to be a string in the A/UX 3.1 sh. 1401 cat <<_ACEOF 1402\`configure' configures xf86-video-i128 1.4.1 to adapt to many kinds of systems. 1403 1404Usage: $0 [OPTION]... [VAR=VALUE]... 1405 1406To assign environment variables (e.g., CC, CFLAGS...), specify them as 1407VAR=VALUE. See below for descriptions of some of the useful variables. 1408 1409Defaults for the options are specified in brackets. 1410 1411Configuration: 1412 -h, --help display this help and exit 1413 --help=short display options specific to this package 1414 --help=recursive display the short help of all the included packages 1415 -V, --version display version information and exit 1416 -q, --quiet, --silent do not print \`checking ...' messages 1417 --cache-file=FILE cache test results in FILE [disabled] 1418 -C, --config-cache alias for \`--cache-file=config.cache' 1419 -n, --no-create do not create output files 1420 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1421 1422Installation directories: 1423 --prefix=PREFIX install architecture-independent files in PREFIX 1424 [$ac_default_prefix] 1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1426 [PREFIX] 1427 1428By default, \`make install' will install all the files in 1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1430an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1431for instance \`--prefix=\$HOME'. 1432 1433For better control, use the options below. 1434 1435Fine tuning of the installation directories: 1436 --bindir=DIR user executables [EPREFIX/bin] 1437 --sbindir=DIR system admin executables [EPREFIX/sbin] 1438 --libexecdir=DIR program executables [EPREFIX/libexec] 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1443 --libdir=DIR object code libraries [EPREFIX/lib] 1444 --includedir=DIR C header files [PREFIX/include] 1445 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1448 --infodir=DIR info documentation [DATAROOTDIR/info] 1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1450 --mandir=DIR man documentation [DATAROOTDIR/man] 1451 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-i128] 1452 --htmldir=DIR html documentation [DOCDIR] 1453 --dvidir=DIR dvi documentation [DOCDIR] 1454 --pdfdir=DIR pdf documentation [DOCDIR] 1455 --psdir=DIR ps documentation [DOCDIR] 1456_ACEOF 1457 1458 cat <<\_ACEOF 1459 1460Program names: 1461 --program-prefix=PREFIX prepend PREFIX to installed program names 1462 --program-suffix=SUFFIX append SUFFIX to installed program names 1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1464 1465System types: 1466 --build=BUILD configure for building on BUILD [guessed] 1467 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1468_ACEOF 1469fi 1470 1471if test -n "$ac_init_help"; then 1472 case $ac_init_help in 1473 short | recursive ) echo "Configuration of xf86-video-i128 1.4.1:";; 1474 esac 1475 cat <<\_ACEOF 1476 1477Optional Features: 1478 --disable-option-checking ignore unrecognized --enable/--with options 1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1481 --enable-silent-rules less verbose build output (undo: "make V=1") 1482 --disable-silent-rules verbose build output (undo: "make V=0") 1483 --enable-maintainer-mode 1484 enable make rules and dependencies not useful (and 1485 sometimes confusing) to the casual installer 1486 --enable-dependency-tracking 1487 do not reject slow dependency extractors 1488 --disable-dependency-tracking 1489 speeds up one-time build 1490 --disable-selective-werror 1491 Turn off selective compiler errors. (default: 1492 enabled) 1493 --enable-strict-compilation 1494 Enable all warnings from compiler and make them 1495 errors (default: disabled) 1496 --enable-static[=PKGS] build static libraries [default=no] 1497 --enable-shared[=PKGS] build shared libraries [default=yes] 1498 --enable-fast-install[=PKGS] 1499 optimize for fast installation [default=yes] 1500 --disable-libtool-lock avoid locking (might break parallel builds) 1501 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1502 [default=auto] 1503 1504Optional Packages: 1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1507 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1508 both] 1509 --with-aix-soname=aix|svr4|both 1510 shared library versioning (aka "SONAME") variant to 1511 provide on AIX, [default=aix]. 1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1513 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1514 compiler's sysroot if not specified). 1515 --with-xorg-module-dir=DIR 1516 Default xorg module directory 1517 [[default=$libdir/xorg/modules]] 1518 1519Some influential environment variables: 1520 CC C compiler command 1521 CFLAGS C compiler flags 1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1523 nonstandard directory <lib dir> 1524 LIBS libraries to pass to the linker, e.g. -l<library> 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1526 you have headers in a nonstandard directory <include dir> 1527 PKG_CONFIG path to pkg-config utility 1528 PKG_CONFIG_PATH 1529 directories to add to pkg-config's search path 1530 PKG_CONFIG_LIBDIR 1531 path overriding pkg-config's built-in search path 1532 LT_SYS_LIBRARY_PATH 1533 User-defined run-time library search path. 1534 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1535 XORG_LIBS linker flags for XORG, overriding pkg-config 1536 PCIACCESS_CFLAGS 1537 C compiler flags for PCIACCESS, overriding pkg-config 1538 PCIACCESS_LIBS 1539 linker flags for PCIACCESS, overriding pkg-config 1540 1541Use these variables to override the choices made by `configure' or to help 1542it to find libraries and programs with nonstandard names/locations. 1543 1544Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/issues>. 1545_ACEOF 1546ac_status=$? 1547fi 1548 1549if test "$ac_init_help" = "recursive"; then 1550 # If there are subdirs, report their specific --help. 1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1552 test -d "$ac_dir" || 1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1554 continue 1555 ac_builddir=. 1556 1557case "$ac_dir" in 1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1559*) 1560 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1561 # A ".." for each directory in $ac_dir_suffix. 1562 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1563 case $ac_top_builddir_sub in 1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1566 esac ;; 1567esac 1568ac_abs_top_builddir=$ac_pwd 1569ac_abs_builddir=$ac_pwd$ac_dir_suffix 1570# for backward compatibility: 1571ac_top_builddir=$ac_top_build_prefix 1572 1573case $srcdir in 1574 .) # We are building in place. 1575 ac_srcdir=. 1576 ac_top_srcdir=$ac_top_builddir_sub 1577 ac_abs_top_srcdir=$ac_pwd ;; 1578 [\\/]* | ?:[\\/]* ) # Absolute name. 1579 ac_srcdir=$srcdir$ac_dir_suffix; 1580 ac_top_srcdir=$srcdir 1581 ac_abs_top_srcdir=$srcdir ;; 1582 *) # Relative name. 1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1584 ac_top_srcdir=$ac_top_build_prefix$srcdir 1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1586esac 1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1588 1589 cd "$ac_dir" || { ac_status=$?; continue; } 1590 # Check for configure.gnu first; this name is used for a wrapper for 1591 # Metaconfig's "Configure" on case-insensitive file systems. 1592 if test -f "$ac_srcdir/configure.gnu"; then 1593 echo && 1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1595 elif test -f "$ac_srcdir/configure"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure" --help=recursive 1598 else 1599 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1600 fi || ac_status=$? 1601 cd "$ac_pwd" || { ac_status=$?; break; } 1602 done 1603fi 1604 1605test -n "$ac_init_help" && exit $ac_status 1606if $ac_init_version; then 1607 cat <<\_ACEOF 1608xf86-video-i128 configure 1.4.1 1609generated by GNU Autoconf 2.71 1610 1611Copyright (C) 2021 Free Software Foundation, Inc. 1612This configure script is free software; the Free Software Foundation 1613gives unlimited permission to copy, distribute and modify it. 1614_ACEOF 1615 exit 1616fi 1617 1618## ------------------------ ## 1619## Autoconf initialization. ## 1620## ------------------------ ## 1621 1622# ac_fn_c_try_compile LINENO 1623# -------------------------- 1624# Try to compile conftest.$ac_ext, and return whether this succeeded. 1625ac_fn_c_try_compile () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 rm -f conftest.$ac_objext conftest.beam 1629 if { { ac_try="$ac_compile" 1630case "(($ac_try" in 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632 *) ac_try_echo=$ac_try;; 1633esac 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635printf "%s\n" "$ac_try_echo"; } >&5 1636 (eval "$ac_compile") 2>conftest.err 1637 ac_status=$? 1638 if test -s conftest.err; then 1639 grep -v '^ *+' conftest.err >conftest.er1 1640 cat conftest.er1 >&5 1641 mv -f conftest.er1 conftest.err 1642 fi 1643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } && { 1645 test -z "$ac_c_werror_flag" || 1646 test ! -s conftest.err 1647 } && test -s conftest.$ac_objext 1648then : 1649 ac_retval=0 1650else $as_nop 1651 printf "%s\n" "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_compile 1660 1661# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1662# ------------------------------------------------------------------ 1663# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1664# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1665ac_fn_check_decl () 1666{ 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 as_decl_name=`echo $2|sed 's/ *(.*//'` 1669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1670printf %s "checking whether $as_decl_name is declared... " >&6; } 1671if eval test \${$3+y} 1672then : 1673 printf %s "(cached) " >&6 1674else $as_nop 1675 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1676 eval ac_save_FLAGS=\$$6 1677 as_fn_append $6 " $5" 1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1679/* end confdefs.h. */ 1680$4 1681int 1682main (void) 1683{ 1684#ifndef $as_decl_name 1685#ifdef __cplusplus 1686 (void) $as_decl_use; 1687#else 1688 (void) $as_decl_name; 1689#endif 1690#endif 1691 1692 ; 1693 return 0; 1694} 1695_ACEOF 1696if ac_fn_c_try_compile "$LINENO" 1697then : 1698 eval "$3=yes" 1699else $as_nop 1700 eval "$3=no" 1701fi 1702rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1703 eval $6=\$ac_save_FLAGS 1704 1705fi 1706eval ac_res=\$$3 1707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1708printf "%s\n" "$ac_res" >&6; } 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 1711} # ac_fn_check_decl 1712 1713# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1714# ------------------------------------------------------- 1715# Tests whether HEADER exists and can be compiled using the include files in 1716# INCLUDES, setting the cache variable VAR accordingly. 1717ac_fn_c_check_header_compile () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1721printf %s "checking for $2... " >&6; } 1722if eval test \${$3+y} 1723then : 1724 printf %s "(cached) " >&6 1725else $as_nop 1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1727/* end confdefs.h. */ 1728$4 1729#include <$2> 1730_ACEOF 1731if ac_fn_c_try_compile "$LINENO" 1732then : 1733 eval "$3=yes" 1734else $as_nop 1735 eval "$3=no" 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1738fi 1739eval ac_res=\$$3 1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1741printf "%s\n" "$ac_res" >&6; } 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1743 1744} # ac_fn_c_check_header_compile 1745 1746# ac_fn_c_try_link LINENO 1747# ----------------------- 1748# Try to link conftest.$ac_ext, and return whether this succeeded. 1749ac_fn_c_try_link () 1750{ 1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1752 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1753 if { { ac_try="$ac_link" 1754case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759printf "%s\n" "$ac_try_echo"; } >&5 1760 (eval "$ac_link") 2>conftest.err 1761 ac_status=$? 1762 if test -s conftest.err; then 1763 grep -v '^ *+' conftest.err >conftest.er1 1764 cat conftest.er1 >&5 1765 mv -f conftest.er1 conftest.err 1766 fi 1767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1768 test $ac_status = 0; } && { 1769 test -z "$ac_c_werror_flag" || 1770 test ! -s conftest.err 1771 } && test -s conftest$ac_exeext && { 1772 test "$cross_compiling" = yes || 1773 test -x conftest$ac_exeext 1774 } 1775then : 1776 ac_retval=0 1777else $as_nop 1778 printf "%s\n" "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=1 1782fi 1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1785 # interfere with the next link command; also delete a directory that is 1786 # left behind by Apple's compiler. We do this before executing the actions. 1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 as_fn_set_status $ac_retval 1790 1791} # ac_fn_c_try_link 1792 1793# ac_fn_c_check_func LINENO FUNC VAR 1794# ---------------------------------- 1795# Tests whether FUNC exists, setting the cache variable VAR accordingly 1796ac_fn_c_check_func () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1800printf %s "checking for $2... " >&6; } 1801if eval test \${$3+y} 1802then : 1803 printf %s "(cached) " >&6 1804else $as_nop 1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1806/* end confdefs.h. */ 1807/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1808 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1809#define $2 innocuous_$2 1810 1811/* System header to define __stub macros and hopefully few prototypes, 1812 which can conflict with char $2 (); below. */ 1813 1814#include <limits.h> 1815#undef $2 1816 1817/* Override any GCC internal prototype to avoid an error. 1818 Use char because int might match the return type of a GCC 1819 builtin and then its argument prototype would still apply. */ 1820#ifdef __cplusplus 1821extern "C" 1822#endif 1823char $2 (); 1824/* The GNU C library defines this for functions which it implements 1825 to always fail with ENOSYS. Some functions are actually named 1826 something starting with __ and the normal name is an alias. */ 1827#if defined __stub_$2 || defined __stub___$2 1828choke me 1829#endif 1830 1831int 1832main (void) 1833{ 1834return $2 (); 1835 ; 1836 return 0; 1837} 1838_ACEOF 1839if ac_fn_c_try_link "$LINENO" 1840then : 1841 eval "$3=yes" 1842else $as_nop 1843 eval "$3=no" 1844fi 1845rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1846 conftest$ac_exeext conftest.$ac_ext 1847fi 1848eval ac_res=\$$3 1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1850printf "%s\n" "$ac_res" >&6; } 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 1853} # ac_fn_c_check_func 1854ac_configure_args_raw= 1855for ac_arg 1856do 1857 case $ac_arg in 1858 *\'*) 1859 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1860 esac 1861 as_fn_append ac_configure_args_raw " '$ac_arg'" 1862done 1863 1864case $ac_configure_args_raw in 1865 *$as_nl*) 1866 ac_safe_unquote= ;; 1867 *) 1868 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1869 ac_unsafe_a="$ac_unsafe_z#~" 1870 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1871 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1872esac 1873 1874cat >config.log <<_ACEOF 1875This file contains any messages produced by compilers while 1876running configure, to aid debugging if configure makes a mistake. 1877 1878It was created by xf86-video-i128 $as_me 1.4.1, which was 1879generated by GNU Autoconf 2.71. Invocation command line was 1880 1881 $ $0$ac_configure_args_raw 1882 1883_ACEOF 1884exec 5>>config.log 1885{ 1886cat <<_ASUNAME 1887## --------- ## 1888## Platform. ## 1889## --------- ## 1890 1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1892uname -m = `(uname -m) 2>/dev/null || echo unknown` 1893uname -r = `(uname -r) 2>/dev/null || echo unknown` 1894uname -s = `(uname -s) 2>/dev/null || echo unknown` 1895uname -v = `(uname -v) 2>/dev/null || echo unknown` 1896 1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1898/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1899 1900/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1901/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1903/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1904/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1905/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1906/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1907 1908_ASUNAME 1909 1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1911for as_dir in $PATH 1912do 1913 IFS=$as_save_IFS 1914 case $as_dir in #((( 1915 '') as_dir=./ ;; 1916 */) ;; 1917 *) as_dir=$as_dir/ ;; 1918 esac 1919 printf "%s\n" "PATH: $as_dir" 1920 done 1921IFS=$as_save_IFS 1922 1923} >&5 1924 1925cat >&5 <<_ACEOF 1926 1927 1928## ----------- ## 1929## Core tests. ## 1930## ----------- ## 1931 1932_ACEOF 1933 1934 1935# Keep a trace of the command line. 1936# Strip out --no-create and --no-recursion so they do not pile up. 1937# Strip out --silent because we don't want to record it for future runs. 1938# Also quote any args containing shell meta-characters. 1939# Make two passes to allow for proper duplicate-argument suppression. 1940ac_configure_args= 1941ac_configure_args0= 1942ac_configure_args1= 1943ac_must_keep_next=false 1944for ac_pass in 1 2 1945do 1946 for ac_arg 1947 do 1948 case $ac_arg in 1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1951 | -silent | --silent | --silen | --sile | --sil) 1952 continue ;; 1953 *\'*) 1954 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1955 esac 1956 case $ac_pass in 1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1958 2) 1959 as_fn_append ac_configure_args1 " '$ac_arg'" 1960 if test $ac_must_keep_next = true; then 1961 ac_must_keep_next=false # Got value, back to normal. 1962 else 1963 case $ac_arg in 1964 *=* | --config-cache | -C | -disable-* | --disable-* \ 1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1967 | -with-* | --with-* | -without-* | --without-* | --x) 1968 case "$ac_configure_args0 " in 1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1970 esac 1971 ;; 1972 -* ) ac_must_keep_next=true ;; 1973 esac 1974 fi 1975 as_fn_append ac_configure_args " '$ac_arg'" 1976 ;; 1977 esac 1978 done 1979done 1980{ ac_configure_args0=; unset ac_configure_args0;} 1981{ ac_configure_args1=; unset ac_configure_args1;} 1982 1983# When interrupted or exit'd, cleanup temporary files, and complete 1984# config.log. We remove comments because anyway the quotes in there 1985# would cause problems or look ugly. 1986# WARNING: Use '\'' to represent an apostrophe within the trap. 1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1988trap 'exit_status=$? 1989 # Sanitize IFS. 1990 IFS=" "" $as_nl" 1991 # Save into config.log some information that might help in debugging. 1992 { 1993 echo 1994 1995 printf "%s\n" "## ---------------- ## 1996## Cache variables. ## 1997## ---------------- ##" 1998 echo 1999 # The following way of writing the cache mishandles newlines in values, 2000( 2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in #( 2004 *${as_nl}*) 2005 case $ac_var in #( 2006 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2007printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2008 esac 2009 case $ac_var in #( 2010 _ | IFS | as_nl) ;; #( 2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2012 *) { eval $ac_var=; unset $ac_var;} ;; 2013 esac ;; 2014 esac 2015 done 2016 (set) 2>&1 | 2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2018 *${as_nl}ac_space=\ *) 2019 sed -n \ 2020 "s/'\''/'\''\\\\'\'''\''/g; 2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2022 ;; #( 2023 *) 2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2025 ;; 2026 esac | 2027 sort 2028) 2029 echo 2030 2031 printf "%s\n" "## ----------------- ## 2032## Output variables. ## 2033## ----------------- ##" 2034 echo 2035 for ac_var in $ac_subst_vars 2036 do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in 2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040 esac 2041 printf "%s\n" "$ac_var='\''$ac_val'\''" 2042 done | sort 2043 echo 2044 2045 if test -n "$ac_subst_files"; then 2046 printf "%s\n" "## ------------------- ## 2047## File substitutions. ## 2048## ------------------- ##" 2049 echo 2050 for ac_var in $ac_subst_files 2051 do 2052 eval ac_val=\$$ac_var 2053 case $ac_val in 2054 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2055 esac 2056 printf "%s\n" "$ac_var='\''$ac_val'\''" 2057 done | sort 2058 echo 2059 fi 2060 2061 if test -s confdefs.h; then 2062 printf "%s\n" "## ----------- ## 2063## confdefs.h. ## 2064## ----------- ##" 2065 echo 2066 cat confdefs.h 2067 echo 2068 fi 2069 test "$ac_signal" != 0 && 2070 printf "%s\n" "$as_me: caught signal $ac_signal" 2071 printf "%s\n" "$as_me: exit $exit_status" 2072 } >&5 2073 rm -f core *.core core.conftest.* && 2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2075 exit $exit_status 2076' 0 2077for ac_signal in 1 2 13 15; do 2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2079done 2080ac_signal=0 2081 2082# confdefs.h avoids OS command line length limits that DEFS can exceed. 2083rm -f -r conftest* confdefs.h 2084 2085printf "%s\n" "/* confdefs.h */" > confdefs.h 2086 2087# Predefined preprocessor variables. 2088 2089printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2090 2091printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2092 2093printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2094 2095printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2096 2097printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2098 2099printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2100 2101 2102# Let the site file select an alternate cache file if it wants to. 2103# Prefer an explicitly selected file to automatically selected ones. 2104if test -n "$CONFIG_SITE"; then 2105 ac_site_files="$CONFIG_SITE" 2106elif test "x$prefix" != xNONE; then 2107 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2108else 2109 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2110fi 2111 2112for ac_site_file in $ac_site_files 2113do 2114 case $ac_site_file in #( 2115 */*) : 2116 ;; #( 2117 *) : 2118 ac_site_file=./$ac_site_file ;; 2119esac 2120 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2122printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2123 sed 's/^/| /' "$ac_site_file" >&5 2124 . "$ac_site_file" \ 2125 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2126printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2127as_fn_error $? "failed to load site script $ac_site_file 2128See \`config.log' for more details" "$LINENO" 5; } 2129 fi 2130done 2131 2132if test -r "$cache_file"; then 2133 # Some versions of bash will fail to source /dev/null (special files 2134 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2135 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2137printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2138 case $cache_file in 2139 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2140 *) . "./$cache_file";; 2141 esac 2142 fi 2143else 2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2145printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2146 >$cache_file 2147fi 2148 2149# Test code for whether the C compiler supports C89 (global declarations) 2150ac_c_conftest_c89_globals=' 2151/* Does the compiler advertise C89 conformance? 2152 Do not test the value of __STDC__, because some compilers set it to 0 2153 while being otherwise adequately conformant. */ 2154#if !defined __STDC__ 2155# error "Compiler does not advertise C89 conformance" 2156#endif 2157 2158#include <stddef.h> 2159#include <stdarg.h> 2160struct stat; 2161/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2162struct buf { int x; }; 2163struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2164static char *e (p, i) 2165 char **p; 2166 int i; 2167{ 2168 return p[i]; 2169} 2170static char *f (char * (*g) (char **, int), char **p, ...) 2171{ 2172 char *s; 2173 va_list v; 2174 va_start (v,p); 2175 s = g (p, va_arg (v,int)); 2176 va_end (v); 2177 return s; 2178} 2179 2180/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2181 function prototypes and stuff, but not \xHH hex character constants. 2182 These do not provoke an error unfortunately, instead are silently treated 2183 as an "x". The following induces an error, until -std is added to get 2184 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2185 array size at least. It is necessary to write \x00 == 0 to get something 2186 that is true only with -std. */ 2187int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2188 2189/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2190 inside strings and character constants. */ 2191#define FOO(x) '\''x'\'' 2192int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2193 2194int test (int i, double x); 2195struct s1 {int (*f) (int a);}; 2196struct s2 {int (*f) (double a);}; 2197int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2198 int, int);' 2199 2200# Test code for whether the C compiler supports C89 (body of main). 2201ac_c_conftest_c89_main=' 2202ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2203' 2204 2205# Test code for whether the C compiler supports C99 (global declarations) 2206ac_c_conftest_c99_globals=' 2207// Does the compiler advertise C99 conformance? 2208#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2209# error "Compiler does not advertise C99 conformance" 2210#endif 2211 2212#include <stdbool.h> 2213extern int puts (const char *); 2214extern int printf (const char *, ...); 2215extern int dprintf (int, const char *, ...); 2216extern void *malloc (size_t); 2217 2218// Check varargs macros. These examples are taken from C99 6.10.3.5. 2219// dprintf is used instead of fprintf to avoid needing to declare 2220// FILE and stderr. 2221#define debug(...) dprintf (2, __VA_ARGS__) 2222#define showlist(...) puts (#__VA_ARGS__) 2223#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2224static void 2225test_varargs_macros (void) 2226{ 2227 int x = 1234; 2228 int y = 5678; 2229 debug ("Flag"); 2230 debug ("X = %d\n", x); 2231 showlist (The first, second, and third items.); 2232 report (x>y, "x is %d but y is %d", x, y); 2233} 2234 2235// Check long long types. 2236#define BIG64 18446744073709551615ull 2237#define BIG32 4294967295ul 2238#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2239#if !BIG_OK 2240 #error "your preprocessor is broken" 2241#endif 2242#if BIG_OK 2243#else 2244 #error "your preprocessor is broken" 2245#endif 2246static long long int bignum = -9223372036854775807LL; 2247static unsigned long long int ubignum = BIG64; 2248 2249struct incomplete_array 2250{ 2251 int datasize; 2252 double data[]; 2253}; 2254 2255struct named_init { 2256 int number; 2257 const wchar_t *name; 2258 double average; 2259}; 2260 2261typedef const char *ccp; 2262 2263static inline int 2264test_restrict (ccp restrict text) 2265{ 2266 // See if C++-style comments work. 2267 // Iterate through items via the restricted pointer. 2268 // Also check for declarations in for loops. 2269 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2270 continue; 2271 return 0; 2272} 2273 2274// Check varargs and va_copy. 2275static bool 2276test_varargs (const char *format, ...) 2277{ 2278 va_list args; 2279 va_start (args, format); 2280 va_list args_copy; 2281 va_copy (args_copy, args); 2282 2283 const char *str = ""; 2284 int number = 0; 2285 float fnumber = 0; 2286 2287 while (*format) 2288 { 2289 switch (*format++) 2290 { 2291 case '\''s'\'': // string 2292 str = va_arg (args_copy, const char *); 2293 break; 2294 case '\''d'\'': // int 2295 number = va_arg (args_copy, int); 2296 break; 2297 case '\''f'\'': // float 2298 fnumber = va_arg (args_copy, double); 2299 break; 2300 default: 2301 break; 2302 } 2303 } 2304 va_end (args_copy); 2305 va_end (args); 2306 2307 return *str && number && fnumber; 2308} 2309' 2310 2311# Test code for whether the C compiler supports C99 (body of main). 2312ac_c_conftest_c99_main=' 2313 // Check bool. 2314 _Bool success = false; 2315 success |= (argc != 0); 2316 2317 // Check restrict. 2318 if (test_restrict ("String literal") == 0) 2319 success = true; 2320 char *restrict newvar = "Another string"; 2321 2322 // Check varargs. 2323 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2324 test_varargs_macros (); 2325 2326 // Check flexible array members. 2327 struct incomplete_array *ia = 2328 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2329 ia->datasize = 10; 2330 for (int i = 0; i < ia->datasize; ++i) 2331 ia->data[i] = i * 1.234; 2332 2333 // Check named initializers. 2334 struct named_init ni = { 2335 .number = 34, 2336 .name = L"Test wide string", 2337 .average = 543.34343, 2338 }; 2339 2340 ni.number = 58; 2341 2342 int dynamic_array[ni.number]; 2343 dynamic_array[0] = argv[0][0]; 2344 dynamic_array[ni.number - 1] = 543; 2345 2346 // work around unused variable warnings 2347 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2348 || dynamic_array[ni.number - 1] != 543); 2349' 2350 2351# Test code for whether the C compiler supports C11 (global declarations) 2352ac_c_conftest_c11_globals=' 2353// Does the compiler advertise C11 conformance? 2354#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2355# error "Compiler does not advertise C11 conformance" 2356#endif 2357 2358// Check _Alignas. 2359char _Alignas (double) aligned_as_double; 2360char _Alignas (0) no_special_alignment; 2361extern char aligned_as_int; 2362char _Alignas (0) _Alignas (int) aligned_as_int; 2363 2364// Check _Alignof. 2365enum 2366{ 2367 int_alignment = _Alignof (int), 2368 int_array_alignment = _Alignof (int[100]), 2369 char_alignment = _Alignof (char) 2370}; 2371_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2372 2373// Check _Noreturn. 2374int _Noreturn does_not_return (void) { for (;;) continue; } 2375 2376// Check _Static_assert. 2377struct test_static_assert 2378{ 2379 int x; 2380 _Static_assert (sizeof (int) <= sizeof (long int), 2381 "_Static_assert does not work in struct"); 2382 long int y; 2383}; 2384 2385// Check UTF-8 literals. 2386#define u8 syntax error! 2387char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2388 2389// Check duplicate typedefs. 2390typedef long *long_ptr; 2391typedef long int *long_ptr; 2392typedef long_ptr long_ptr; 2393 2394// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2395struct anonymous 2396{ 2397 union { 2398 struct { int i; int j; }; 2399 struct { int k; long int l; } w; 2400 }; 2401 int m; 2402} v1; 2403' 2404 2405# Test code for whether the C compiler supports C11 (body of main). 2406ac_c_conftest_c11_main=' 2407 _Static_assert ((offsetof (struct anonymous, i) 2408 == offsetof (struct anonymous, w.k)), 2409 "Anonymous union alignment botch"); 2410 v1.i = 2; 2411 v1.w.k = 5; 2412 ok |= v1.i != 5; 2413' 2414 2415# Test code for whether the C compiler supports C11 (complete). 2416ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2417${ac_c_conftest_c99_globals} 2418${ac_c_conftest_c11_globals} 2419 2420int 2421main (int argc, char **argv) 2422{ 2423 int ok = 0; 2424 ${ac_c_conftest_c89_main} 2425 ${ac_c_conftest_c99_main} 2426 ${ac_c_conftest_c11_main} 2427 return ok; 2428} 2429" 2430 2431# Test code for whether the C compiler supports C99 (complete). 2432ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2433${ac_c_conftest_c99_globals} 2434 2435int 2436main (int argc, char **argv) 2437{ 2438 int ok = 0; 2439 ${ac_c_conftest_c89_main} 2440 ${ac_c_conftest_c99_main} 2441 return ok; 2442} 2443" 2444 2445# Test code for whether the C compiler supports C89 (complete). 2446ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2447 2448int 2449main (int argc, char **argv) 2450{ 2451 int ok = 0; 2452 ${ac_c_conftest_c89_main} 2453 return ok; 2454} 2455" 2456 2457as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2458as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2459as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2460as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2461as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2462as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2463as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2464as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2465as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2466 2467# Auxiliary files required by this configure script. 2468ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2469 2470# Locations in which to look for auxiliary files. 2471ac_aux_dir_candidates="${srcdir}/." 2472 2473# Search for a directory containing all of the required auxiliary files, 2474# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2475# If we don't find one directory that contains all the files we need, 2476# we report the set of missing files from the *first* directory in 2477# $ac_aux_dir_candidates and give up. 2478ac_missing_aux_files="" 2479ac_first_candidate=: 2480printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482as_found=false 2483for as_dir in $ac_aux_dir_candidates 2484do 2485 IFS=$as_save_IFS 2486 case $as_dir in #((( 2487 '') as_dir=./ ;; 2488 */) ;; 2489 *) as_dir=$as_dir/ ;; 2490 esac 2491 as_found=: 2492 2493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2494 ac_aux_dir_found=yes 2495 ac_install_sh= 2496 for ac_aux in $ac_aux_files 2497 do 2498 # As a special case, if "install-sh" is required, that requirement 2499 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2500 # and $ac_install_sh is set appropriately for whichever one is found. 2501 if test x"$ac_aux" = x"install-sh" 2502 then 2503 if test -f "${as_dir}install-sh"; then 2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2505 ac_install_sh="${as_dir}install-sh -c" 2506 elif test -f "${as_dir}install.sh"; then 2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2508 ac_install_sh="${as_dir}install.sh -c" 2509 elif test -f "${as_dir}shtool"; then 2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2511 ac_install_sh="${as_dir}shtool install -c" 2512 else 2513 ac_aux_dir_found=no 2514 if $ac_first_candidate; then 2515 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2516 else 2517 break 2518 fi 2519 fi 2520 else 2521 if test -f "${as_dir}${ac_aux}"; then 2522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2523 else 2524 ac_aux_dir_found=no 2525 if $ac_first_candidate; then 2526 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2527 else 2528 break 2529 fi 2530 fi 2531 fi 2532 done 2533 if test "$ac_aux_dir_found" = yes; then 2534 ac_aux_dir="$as_dir" 2535 break 2536 fi 2537 ac_first_candidate=false 2538 2539 as_found=false 2540done 2541IFS=$as_save_IFS 2542if $as_found 2543then : 2544 2545else $as_nop 2546 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2547fi 2548 2549 2550# These three variables are undocumented and unsupported, 2551# and are intended to be withdrawn in a future Autoconf release. 2552# They can cause serious problems if a builder's source tree is in a directory 2553# whose full name contains unusual characters. 2554if test -f "${ac_aux_dir}config.guess"; then 2555 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2556fi 2557if test -f "${ac_aux_dir}config.sub"; then 2558 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2559fi 2560if test -f "$ac_aux_dir/configure"; then 2561 ac_configure="$SHELL ${ac_aux_dir}configure" 2562fi 2563 2564# Check that the precious variables saved in the cache have kept the same 2565# value. 2566ac_cache_corrupted=false 2567for ac_var in $ac_precious_vars; do 2568 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2569 eval ac_new_set=\$ac_env_${ac_var}_set 2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2571 eval ac_new_val=\$ac_env_${ac_var}_value 2572 case $ac_old_set,$ac_new_set in 2573 set,) 2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2575printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2576 ac_cache_corrupted=: ;; 2577 ,set) 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2579printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2580 ac_cache_corrupted=: ;; 2581 ,);; 2582 *) 2583 if test "x$ac_old_val" != "x$ac_new_val"; then 2584 # differences in whitespace do not lead to failure. 2585 ac_old_val_w=`echo x $ac_old_val` 2586 ac_new_val_w=`echo x $ac_new_val` 2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2589printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2590 ac_cache_corrupted=: 2591 else 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2593printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2594 eval $ac_var=\$ac_old_val 2595 fi 2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2597printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2599printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2600 fi;; 2601 esac 2602 # Pass precious variables to config.status. 2603 if test "$ac_new_set" = set; then 2604 case $ac_new_val in 2605 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2606 *) ac_arg=$ac_var=$ac_new_val ;; 2607 esac 2608 case " $ac_configure_args " in 2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2610 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2611 esac 2612 fi 2613done 2614if $ac_cache_corrupted; then 2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2616printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2618printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2619 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2620 and start over" "$LINENO" 5 2621fi 2622## -------------------- ## 2623## Main body of script. ## 2624## -------------------- ## 2625 2626ac_ext=c 2627ac_cpp='$CPP $CPPFLAGS' 2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2630ac_compiler_gnu=$ac_cv_c_compiler_gnu 2631 2632 2633 2634ac_config_headers="$ac_config_headers config.h" 2635 2636 2637 2638# Initialize Automake 2639am__api_version='1.16' 2640 2641 2642 2643 # Find a good install program. We prefer a C program (faster), 2644# so one script is as good as another. But avoid the broken or 2645# incompatible versions: 2646# SysV /etc/install, /usr/sbin/install 2647# SunOS /usr/etc/install 2648# IRIX /sbin/install 2649# AIX /bin/install 2650# AmigaOS /C/install, which installs bootblocks on floppy discs 2651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2652# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2654# OS/2's system install, which has a completely different semantic 2655# ./install, which can be erroneously created by make from ./install.sh. 2656# Reject install programs that cannot install multiple files. 2657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2658printf %s "checking for a BSD-compatible install... " >&6; } 2659if test -z "$INSTALL"; then 2660if test ${ac_cv_path_install+y} 2661then : 2662 printf %s "(cached) " >&6 2663else $as_nop 2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 case $as_dir in #((( 2669 '') as_dir=./ ;; 2670 */) ;; 2671 *) as_dir=$as_dir/ ;; 2672 esac 2673 # Account for fact that we put trailing slashes in our PATH walk. 2674case $as_dir in #(( 2675 ./ | /[cC]/* | \ 2676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2677 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2678 /usr/ucb/* ) ;; 2679 *) 2680 # OSF1 and SCO ODT 3.0 have their own names for install. 2681 # Don't use installbsd from OSF since it installs stuff as root 2682 # by default. 2683 for ac_prog in ginstall scoinst install; do 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2686 if test $ac_prog = install && 2687 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2688 # AIX install. It has an incompatible calling convention. 2689 : 2690 elif test $ac_prog = install && 2691 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2692 # program-specific install script used by HP pwplus--don't use. 2693 : 2694 else 2695 rm -rf conftest.one conftest.two conftest.dir 2696 echo one > conftest.one 2697 echo two > conftest.two 2698 mkdir conftest.dir 2699 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2700 test -s conftest.one && test -s conftest.two && 2701 test -s conftest.dir/conftest.one && 2702 test -s conftest.dir/conftest.two 2703 then 2704 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2705 break 3 2706 fi 2707 fi 2708 fi 2709 done 2710 done 2711 ;; 2712esac 2713 2714 done 2715IFS=$as_save_IFS 2716 2717rm -rf conftest.one conftest.two conftest.dir 2718 2719fi 2720 if test ${ac_cv_path_install+y}; then 2721 INSTALL=$ac_cv_path_install 2722 else 2723 # As a last resort, use the slow shell script. Don't cache a 2724 # value for INSTALL within a source directory, because that will 2725 # break other packages using the cache if that directory is 2726 # removed, or if the value is a relative name. 2727 INSTALL=$ac_install_sh 2728 fi 2729fi 2730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2731printf "%s\n" "$INSTALL" >&6; } 2732 2733# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2734# It thinks the first close brace ends the variable substitution. 2735test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2736 2737test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2738 2739test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2740 2741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2742printf %s "checking whether build environment is sane... " >&6; } 2743# Reject unsafe characters in $srcdir or the absolute working directory 2744# name. Accept space and tab only in the latter. 2745am_lf=' 2746' 2747case `pwd` in 2748 *[\\\"\#\$\&\'\`$am_lf]*) 2749 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2750esac 2751case $srcdir in 2752 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2753 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2754esac 2755 2756# Do 'set' in a subshell so we don't clobber the current shell's 2757# arguments. Must try -L first in case configure is actually a 2758# symlink; some systems play weird games with the mod time of symlinks 2759# (eg FreeBSD returns the mod time of the symlink's containing 2760# directory). 2761if ( 2762 am_has_slept=no 2763 for am_try in 1 2; do 2764 echo "timestamp, slept: $am_has_slept" > conftest.file 2765 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2766 if test "$*" = "X"; then 2767 # -L didn't work. 2768 set X `ls -t "$srcdir/configure" conftest.file` 2769 fi 2770 if test "$*" != "X $srcdir/configure conftest.file" \ 2771 && test "$*" != "X conftest.file $srcdir/configure"; then 2772 2773 # If neither matched, then we have a broken ls. This can happen 2774 # if, for instance, CONFIG_SHELL is bash and it inherits a 2775 # broken ls alias from the environment. This has actually 2776 # happened. Such a system could not be considered "sane". 2777 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2778 alias in your environment" "$LINENO" 5 2779 fi 2780 if test "$2" = conftest.file || test $am_try -eq 2; then 2781 break 2782 fi 2783 # Just in case. 2784 sleep 1 2785 am_has_slept=yes 2786 done 2787 test "$2" = conftest.file 2788 ) 2789then 2790 # Ok. 2791 : 2792else 2793 as_fn_error $? "newly created file is older than distributed files! 2794Check your system clock" "$LINENO" 5 2795fi 2796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2797printf "%s\n" "yes" >&6; } 2798# If we didn't sleep, we still need to ensure time stamps of config.status and 2799# generated files are strictly newer. 2800am_sleep_pid= 2801if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2802 ( sleep 1 ) & 2803 am_sleep_pid=$! 2804fi 2805 2806rm -f conftest.file 2807 2808test "$program_prefix" != NONE && 2809 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2810# Use a double $ so make ignores it. 2811test "$program_suffix" != NONE && 2812 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2813# Double any \ or $. 2814# By default was `s,x,x', remove it if useless. 2815ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2816program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2817 2818 2819# Expand $ac_aux_dir to an absolute path. 2820am_aux_dir=`cd "$ac_aux_dir" && pwd` 2821 2822 2823 if test x"${MISSING+set}" != xset; then 2824 MISSING="\${SHELL} '$am_aux_dir/missing'" 2825fi 2826# Use eval to expand $SHELL 2827if eval "$MISSING --is-lightweight"; then 2828 am_missing_run="$MISSING " 2829else 2830 am_missing_run= 2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2832printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2833fi 2834 2835if test x"${install_sh+set}" != xset; then 2836 case $am_aux_dir in 2837 *\ * | *\ *) 2838 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2839 *) 2840 install_sh="\${SHELL} $am_aux_dir/install-sh" 2841 esac 2842fi 2843 2844# Installed binaries are usually stripped using 'strip' when the user 2845# run "make install-strip". However 'strip' might not be the right 2846# tool to use in cross-compilation environments, therefore Automake 2847# will honor the 'STRIP' environment variable to overrule this program. 2848if test "$cross_compiling" != no; then 2849 if test -n "$ac_tool_prefix"; then 2850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2851set dummy ${ac_tool_prefix}strip; ac_word=$2 2852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2853printf %s "checking for $ac_word... " >&6; } 2854if test ${ac_cv_prog_STRIP+y} 2855then : 2856 printf %s "(cached) " >&6 2857else $as_nop 2858 if test -n "$STRIP"; then 2859 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2860else 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 case $as_dir in #((( 2866 '') as_dir=./ ;; 2867 */) ;; 2868 *) as_dir=$as_dir/ ;; 2869 esac 2870 for ac_exec_ext in '' $ac_executable_extensions; do 2871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2872 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2874 break 2 2875 fi 2876done 2877 done 2878IFS=$as_save_IFS 2879 2880fi 2881fi 2882STRIP=$ac_cv_prog_STRIP 2883if test -n "$STRIP"; then 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2885printf "%s\n" "$STRIP" >&6; } 2886else 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2888printf "%s\n" "no" >&6; } 2889fi 2890 2891 2892fi 2893if test -z "$ac_cv_prog_STRIP"; then 2894 ac_ct_STRIP=$STRIP 2895 # Extract the first word of "strip", so it can be a program name with args. 2896set dummy strip; ac_word=$2 2897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2898printf %s "checking for $ac_word... " >&6; } 2899if test ${ac_cv_prog_ac_ct_STRIP+y} 2900then : 2901 printf %s "(cached) " >&6 2902else $as_nop 2903 if test -n "$ac_ct_STRIP"; then 2904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2905else 2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907for as_dir in $PATH 2908do 2909 IFS=$as_save_IFS 2910 case $as_dir in #((( 2911 '') as_dir=./ ;; 2912 */) ;; 2913 *) as_dir=$as_dir/ ;; 2914 esac 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2917 ac_cv_prog_ac_ct_STRIP="strip" 2918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2928if test -n "$ac_ct_STRIP"; then 2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2930printf "%s\n" "$ac_ct_STRIP" >&6; } 2931else 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933printf "%s\n" "no" >&6; } 2934fi 2935 2936 if test "x$ac_ct_STRIP" = x; then 2937 STRIP=":" 2938 else 2939 case $cross_compiling:$ac_tool_warned in 2940yes:) 2941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2942printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2943ac_tool_warned=yes ;; 2944esac 2945 STRIP=$ac_ct_STRIP 2946 fi 2947else 2948 STRIP="$ac_cv_prog_STRIP" 2949fi 2950 2951fi 2952INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2953 2954 2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2956printf %s "checking for a race-free mkdir -p... " >&6; } 2957if test -z "$MKDIR_P"; then 2958 if test ${ac_cv_path_mkdir+y} 2959then : 2960 printf %s "(cached) " >&6 2961else $as_nop 2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2963for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2964do 2965 IFS=$as_save_IFS 2966 case $as_dir in #((( 2967 '') as_dir=./ ;; 2968 */) ;; 2969 *) as_dir=$as_dir/ ;; 2970 esac 2971 for ac_prog in mkdir gmkdir; do 2972 for ac_exec_ext in '' $ac_executable_extensions; do 2973 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2974 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2975 'mkdir ('*'coreutils) '* | \ 2976 'BusyBox '* | \ 2977 'mkdir (fileutils) '4.1*) 2978 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2979 break 3;; 2980 esac 2981 done 2982 done 2983 done 2984IFS=$as_save_IFS 2985 2986fi 2987 2988 test -d ./--version && rmdir ./--version 2989 if test ${ac_cv_path_mkdir+y}; then 2990 MKDIR_P="$ac_cv_path_mkdir -p" 2991 else 2992 # As a last resort, use the slow shell script. Don't cache a 2993 # value for MKDIR_P within a source directory, because that will 2994 # break other packages using the cache if that directory is 2995 # removed, or if the value is a relative name. 2996 MKDIR_P="$ac_install_sh -d" 2997 fi 2998fi 2999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3000printf "%s\n" "$MKDIR_P" >&6; } 3001 3002for ac_prog in gawk mawk nawk awk 3003do 3004 # Extract the first word of "$ac_prog", so it can be a program name with args. 3005set dummy $ac_prog; ac_word=$2 3006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007printf %s "checking for $ac_word... " >&6; } 3008if test ${ac_cv_prog_AWK+y} 3009then : 3010 printf %s "(cached) " >&6 3011else $as_nop 3012 if test -n "$AWK"; then 3013 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3014else 3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3016for as_dir in $PATH 3017do 3018 IFS=$as_save_IFS 3019 case $as_dir in #((( 3020 '') as_dir=./ ;; 3021 */) ;; 3022 *) as_dir=$as_dir/ ;; 3023 esac 3024 for ac_exec_ext in '' $ac_executable_extensions; do 3025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3026 ac_cv_prog_AWK="$ac_prog" 3027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3028 break 2 3029 fi 3030done 3031 done 3032IFS=$as_save_IFS 3033 3034fi 3035fi 3036AWK=$ac_cv_prog_AWK 3037if test -n "$AWK"; then 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3039printf "%s\n" "$AWK" >&6; } 3040else 3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042printf "%s\n" "no" >&6; } 3043fi 3044 3045 3046 test -n "$AWK" && break 3047done 3048 3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3050printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3051set x ${MAKE-make} 3052ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3053if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3054then : 3055 printf %s "(cached) " >&6 3056else $as_nop 3057 cat >conftest.make <<\_ACEOF 3058SHELL = /bin/sh 3059all: 3060 @echo '@@@%%%=$(MAKE)=@@@%%%' 3061_ACEOF 3062# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3063case `${MAKE-make} -f conftest.make 2>/dev/null` in 3064 *@@@%%%=?*=@@@%%%*) 3065 eval ac_cv_prog_make_${ac_make}_set=yes;; 3066 *) 3067 eval ac_cv_prog_make_${ac_make}_set=no;; 3068esac 3069rm -f conftest.make 3070fi 3071if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3073printf "%s\n" "yes" >&6; } 3074 SET_MAKE= 3075else 3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077printf "%s\n" "no" >&6; } 3078 SET_MAKE="MAKE=${MAKE-make}" 3079fi 3080 3081rm -rf .tst 2>/dev/null 3082mkdir .tst 2>/dev/null 3083if test -d .tst; then 3084 am__leading_dot=. 3085else 3086 am__leading_dot=_ 3087fi 3088rmdir .tst 2>/dev/null 3089 3090# Check whether --enable-silent-rules was given. 3091if test ${enable_silent_rules+y} 3092then : 3093 enableval=$enable_silent_rules; 3094fi 3095 3096case $enable_silent_rules in # ((( 3097 yes) AM_DEFAULT_VERBOSITY=0;; 3098 no) AM_DEFAULT_VERBOSITY=1;; 3099 *) AM_DEFAULT_VERBOSITY=1;; 3100esac 3101am_make=${MAKE-make} 3102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3103printf %s "checking whether $am_make supports nested variables... " >&6; } 3104if test ${am_cv_make_support_nested_variables+y} 3105then : 3106 printf %s "(cached) " >&6 3107else $as_nop 3108 if printf "%s\n" 'TRUE=$(BAR$(V)) 3109BAR0=false 3110BAR1=true 3111V=1 3112am__doit: 3113 @$(TRUE) 3114.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3115 am_cv_make_support_nested_variables=yes 3116else 3117 am_cv_make_support_nested_variables=no 3118fi 3119fi 3120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3121printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3122if test $am_cv_make_support_nested_variables = yes; then 3123 AM_V='$(V)' 3124 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3125else 3126 AM_V=$AM_DEFAULT_VERBOSITY 3127 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3128fi 3129AM_BACKSLASH='\' 3130 3131if test "`cd $srcdir && pwd`" != "`pwd`"; then 3132 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3133 # is not polluted with repeated "-I." 3134 am__isrc=' -I$(srcdir)' 3135 # test to see if srcdir already configured 3136 if test -f $srcdir/config.status; then 3137 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3138 fi 3139fi 3140 3141# test whether we have cygpath 3142if test -z "$CYGPATH_W"; then 3143 if (cygpath --version) >/dev/null 2>/dev/null; then 3144 CYGPATH_W='cygpath -w' 3145 else 3146 CYGPATH_W=echo 3147 fi 3148fi 3149 3150 3151# Define the identity of the package. 3152 PACKAGE='xf86-video-i128' 3153 VERSION='1.4.1' 3154 3155 3156printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3157 3158 3159printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3160 3161# Some tools Automake needs. 3162 3163ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3164 3165 3166AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3167 3168 3169AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3170 3171 3172AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3173 3174 3175MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3176 3177# For better backward compatibility. To be removed once Automake 1.9.x 3178# dies out for good. For more background, see: 3179# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3180# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3181mkdir_p='$(MKDIR_P)' 3182 3183# We need awk for the "check" target (and possibly the TAP driver). The 3184# system "awk" is bad on some platforms. 3185# Always define AMTAR for backward compatibility. Yes, it's still used 3186# in the wild :-( We should find a proper way to deprecate it ... 3187AMTAR='$${TAR-tar}' 3188 3189 3190# We'll loop over all known methods to create a tar archive until one works. 3191_am_tools='gnutar pax cpio none' 3192 3193am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3194 3195 3196 3197 3198 3199# Variables for tags utilities; see am/tags.am 3200if test -z "$CTAGS"; then 3201 CTAGS=ctags 3202fi 3203 3204if test -z "$ETAGS"; then 3205 ETAGS=etags 3206fi 3207 3208if test -z "$CSCOPE"; then 3209 CSCOPE=cscope 3210fi 3211 3212 3213 3214# POSIX will say in a future version that running "rm -f" with no argument 3215# is OK; and we want to be able to make that assumption in our Makefile 3216# recipes. So use an aggressive probe to check that the usage we want is 3217# actually supported "in the wild" to an acceptable degree. 3218# See automake bug#10828. 3219# To make any issue more visible, cause the running configure to be aborted 3220# by default if the 'rm' program in use doesn't match our expectations; the 3221# user can still override this though. 3222if rm -f && rm -fr && rm -rf; then : OK; else 3223 cat >&2 <<'END' 3224Oops! 3225 3226Your 'rm' program seems unable to run without file operands specified 3227on the command line, even when the '-f' option is present. This is contrary 3228to the behaviour of most rm programs out there, and not conforming with 3229the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3230 3231Please tell bug-automake@gnu.org about your system, including the value 3232of your $PATH and any error possibly output before this message. This 3233can help us improve future automake versions. 3234 3235END 3236 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3237 echo 'Configuration will proceed anyway, since you have set the' >&2 3238 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3239 echo >&2 3240 else 3241 cat >&2 <<'END' 3242Aborting the configuration process, to ensure you take notice of the issue. 3243 3244You can download and install GNU coreutils to get an 'rm' implementation 3245that behaves properly: <https://www.gnu.org/software/coreutils/>. 3246 3247If you want to complete the configuration process using your problematic 3248'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3249to "yes", and re-run configure. 3250 3251END 3252 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3253 fi 3254fi 3255 3256 3257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3258printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3259 # Check whether --enable-maintainer-mode was given. 3260if test ${enable_maintainer_mode+y} 3261then : 3262 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3263else $as_nop 3264 USE_MAINTAINER_MODE=no 3265fi 3266 3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3268printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3269 if test $USE_MAINTAINER_MODE = yes; then 3270 MAINTAINER_MODE_TRUE= 3271 MAINTAINER_MODE_FALSE='#' 3272else 3273 MAINTAINER_MODE_TRUE='#' 3274 MAINTAINER_MODE_FALSE= 3275fi 3276 3277 MAINT=$MAINTAINER_MODE_TRUE 3278 3279 3280 3281# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302DEPDIR="${am__leading_dot}deps" 3303 3304ac_config_commands="$ac_config_commands depfiles" 3305 3306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3307printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3308cat > confinc.mk << 'END' 3309am__doit: 3310 @echo this is the am__doit target >confinc.out 3311.PHONY: am__doit 3312END 3313am__include="#" 3314am__quote= 3315# BSD make does it like this. 3316echo '.include "confinc.mk" # ignored' > confmf.BSD 3317# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3318echo 'include confinc.mk # ignored' > confmf.GNU 3319_am_result=no 3320for s in GNU BSD; do 3321 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3322 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3323 ac_status=$? 3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3325 (exit $ac_status); } 3326 case $?:`cat confinc.out 2>/dev/null` in #( 3327 '0:this is the am__doit target') : 3328 case $s in #( 3329 BSD) : 3330 am__include='.include' am__quote='"' ;; #( 3331 *) : 3332 am__include='include' am__quote='' ;; 3333esac ;; #( 3334 *) : 3335 ;; 3336esac 3337 if test "$am__include" != "#"; then 3338 _am_result="yes ($s style)" 3339 break 3340 fi 3341done 3342rm -f confinc.* confmf.* 3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3344printf "%s\n" "${_am_result}" >&6; } 3345 3346# Check whether --enable-dependency-tracking was given. 3347if test ${enable_dependency_tracking+y} 3348then : 3349 enableval=$enable_dependency_tracking; 3350fi 3351 3352if test "x$enable_dependency_tracking" != xno; then 3353 am_depcomp="$ac_aux_dir/depcomp" 3354 AMDEPBACKSLASH='\' 3355 am__nodep='_no' 3356fi 3357 if test "x$enable_dependency_tracking" != xno; then 3358 AMDEP_TRUE= 3359 AMDEP_FALSE='#' 3360else 3361 AMDEP_TRUE='#' 3362 AMDEP_FALSE= 3363fi 3364 3365 3366ac_ext=c 3367ac_cpp='$CPP $CPPFLAGS' 3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3370ac_compiler_gnu=$ac_cv_c_compiler_gnu 3371if test -n "$ac_tool_prefix"; then 3372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3373set dummy ${ac_tool_prefix}gcc; ac_word=$2 3374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3375printf %s "checking for $ac_word... " >&6; } 3376if test ${ac_cv_prog_CC+y} 3377then : 3378 printf %s "(cached) " >&6 3379else $as_nop 3380 if test -n "$CC"; then 3381 ac_cv_prog_CC="$CC" # Let the user override the test. 3382else 3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3384for as_dir in $PATH 3385do 3386 IFS=$as_save_IFS 3387 case $as_dir in #((( 3388 '') as_dir=./ ;; 3389 */) ;; 3390 *) as_dir=$as_dir/ ;; 3391 esac 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3394 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3396 break 2 3397 fi 3398done 3399 done 3400IFS=$as_save_IFS 3401 3402fi 3403fi 3404CC=$ac_cv_prog_CC 3405if test -n "$CC"; then 3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3407printf "%s\n" "$CC" >&6; } 3408else 3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3410printf "%s\n" "no" >&6; } 3411fi 3412 3413 3414fi 3415if test -z "$ac_cv_prog_CC"; then 3416 ac_ct_CC=$CC 3417 # Extract the first word of "gcc", so it can be a program name with args. 3418set dummy gcc; ac_word=$2 3419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3420printf %s "checking for $ac_word... " >&6; } 3421if test ${ac_cv_prog_ac_ct_CC+y} 3422then : 3423 printf %s "(cached) " >&6 3424else $as_nop 3425 if test -n "$ac_ct_CC"; then 3426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3427else 3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3429for as_dir in $PATH 3430do 3431 IFS=$as_save_IFS 3432 case $as_dir in #((( 3433 '') as_dir=./ ;; 3434 */) ;; 3435 *) as_dir=$as_dir/ ;; 3436 esac 3437 for ac_exec_ext in '' $ac_executable_extensions; do 3438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3439 ac_cv_prog_ac_ct_CC="gcc" 3440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3441 break 2 3442 fi 3443done 3444 done 3445IFS=$as_save_IFS 3446 3447fi 3448fi 3449ac_ct_CC=$ac_cv_prog_ac_ct_CC 3450if test -n "$ac_ct_CC"; then 3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3452printf "%s\n" "$ac_ct_CC" >&6; } 3453else 3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3455printf "%s\n" "no" >&6; } 3456fi 3457 3458 if test "x$ac_ct_CC" = x; then 3459 CC="" 3460 else 3461 case $cross_compiling:$ac_tool_warned in 3462yes:) 3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3464printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3465ac_tool_warned=yes ;; 3466esac 3467 CC=$ac_ct_CC 3468 fi 3469else 3470 CC="$ac_cv_prog_CC" 3471fi 3472 3473if test -z "$CC"; then 3474 if test -n "$ac_tool_prefix"; then 3475 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3476set dummy ${ac_tool_prefix}cc; ac_word=$2 3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3478printf %s "checking for $ac_word... " >&6; } 3479if test ${ac_cv_prog_CC+y} 3480then : 3481 printf %s "(cached) " >&6 3482else $as_nop 3483 if test -n "$CC"; then 3484 ac_cv_prog_CC="$CC" # Let the user override the test. 3485else 3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487for as_dir in $PATH 3488do 3489 IFS=$as_save_IFS 3490 case $as_dir in #((( 3491 '') as_dir=./ ;; 3492 */) ;; 3493 *) as_dir=$as_dir/ ;; 3494 esac 3495 for ac_exec_ext in '' $ac_executable_extensions; do 3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3497 ac_cv_prog_CC="${ac_tool_prefix}cc" 3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3499 break 2 3500 fi 3501done 3502 done 3503IFS=$as_save_IFS 3504 3505fi 3506fi 3507CC=$ac_cv_prog_CC 3508if test -n "$CC"; then 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3510printf "%s\n" "$CC" >&6; } 3511else 3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3513printf "%s\n" "no" >&6; } 3514fi 3515 3516 3517 fi 3518fi 3519if test -z "$CC"; then 3520 # Extract the first word of "cc", so it can be a program name with args. 3521set dummy cc; ac_word=$2 3522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3523printf %s "checking for $ac_word... " >&6; } 3524if test ${ac_cv_prog_CC+y} 3525then : 3526 printf %s "(cached) " >&6 3527else $as_nop 3528 if test -n "$CC"; then 3529 ac_cv_prog_CC="$CC" # Let the user override the test. 3530else 3531 ac_prog_rejected=no 3532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3533for as_dir in $PATH 3534do 3535 IFS=$as_save_IFS 3536 case $as_dir in #((( 3537 '') as_dir=./ ;; 3538 */) ;; 3539 *) as_dir=$as_dir/ ;; 3540 esac 3541 for ac_exec_ext in '' $ac_executable_extensions; do 3542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3543 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3544 ac_prog_rejected=yes 3545 continue 3546 fi 3547 ac_cv_prog_CC="cc" 3548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3549 break 2 3550 fi 3551done 3552 done 3553IFS=$as_save_IFS 3554 3555if test $ac_prog_rejected = yes; then 3556 # We found a bogon in the path, so make sure we never use it. 3557 set dummy $ac_cv_prog_CC 3558 shift 3559 if test $# != 0; then 3560 # We chose a different compiler from the bogus one. 3561 # However, it has the same basename, so the bogon will be chosen 3562 # first if we set CC to just the basename; use the full file name. 3563 shift 3564 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3565 fi 3566fi 3567fi 3568fi 3569CC=$ac_cv_prog_CC 3570if test -n "$CC"; then 3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3572printf "%s\n" "$CC" >&6; } 3573else 3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3575printf "%s\n" "no" >&6; } 3576fi 3577 3578 3579fi 3580if test -z "$CC"; then 3581 if test -n "$ac_tool_prefix"; then 3582 for ac_prog in cl.exe 3583 do 3584 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3585set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3587printf %s "checking for $ac_word... " >&6; } 3588if test ${ac_cv_prog_CC+y} 3589then : 3590 printf %s "(cached) " >&6 3591else $as_nop 3592 if test -n "$CC"; then 3593 ac_cv_prog_CC="$CC" # Let the user override the test. 3594else 3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596for as_dir in $PATH 3597do 3598 IFS=$as_save_IFS 3599 case $as_dir in #((( 3600 '') as_dir=./ ;; 3601 */) ;; 3602 *) as_dir=$as_dir/ ;; 3603 esac 3604 for ac_exec_ext in '' $ac_executable_extensions; do 3605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3608 break 2 3609 fi 3610done 3611 done 3612IFS=$as_save_IFS 3613 3614fi 3615fi 3616CC=$ac_cv_prog_CC 3617if test -n "$CC"; then 3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3619printf "%s\n" "$CC" >&6; } 3620else 3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3622printf "%s\n" "no" >&6; } 3623fi 3624 3625 3626 test -n "$CC" && break 3627 done 3628fi 3629if test -z "$CC"; then 3630 ac_ct_CC=$CC 3631 for ac_prog in cl.exe 3632do 3633 # Extract the first word of "$ac_prog", so it can be a program name with args. 3634set dummy $ac_prog; ac_word=$2 3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3636printf %s "checking for $ac_word... " >&6; } 3637if test ${ac_cv_prog_ac_ct_CC+y} 3638then : 3639 printf %s "(cached) " >&6 3640else $as_nop 3641 if test -n "$ac_ct_CC"; then 3642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3643else 3644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3645for as_dir in $PATH 3646do 3647 IFS=$as_save_IFS 3648 case $as_dir in #((( 3649 '') as_dir=./ ;; 3650 */) ;; 3651 *) as_dir=$as_dir/ ;; 3652 esac 3653 for ac_exec_ext in '' $ac_executable_extensions; do 3654 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3655 ac_cv_prog_ac_ct_CC="$ac_prog" 3656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3657 break 2 3658 fi 3659done 3660 done 3661IFS=$as_save_IFS 3662 3663fi 3664fi 3665ac_ct_CC=$ac_cv_prog_ac_ct_CC 3666if test -n "$ac_ct_CC"; then 3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3668printf "%s\n" "$ac_ct_CC" >&6; } 3669else 3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3671printf "%s\n" "no" >&6; } 3672fi 3673 3674 3675 test -n "$ac_ct_CC" && break 3676done 3677 3678 if test "x$ac_ct_CC" = x; then 3679 CC="" 3680 else 3681 case $cross_compiling:$ac_tool_warned in 3682yes:) 3683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3685ac_tool_warned=yes ;; 3686esac 3687 CC=$ac_ct_CC 3688 fi 3689fi 3690 3691fi 3692if test -z "$CC"; then 3693 if test -n "$ac_tool_prefix"; then 3694 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3695set dummy ${ac_tool_prefix}clang; ac_word=$2 3696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3697printf %s "checking for $ac_word... " >&6; } 3698if test ${ac_cv_prog_CC+y} 3699then : 3700 printf %s "(cached) " >&6 3701else $as_nop 3702 if test -n "$CC"; then 3703 ac_cv_prog_CC="$CC" # Let the user override the test. 3704else 3705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3706for as_dir in $PATH 3707do 3708 IFS=$as_save_IFS 3709 case $as_dir in #((( 3710 '') as_dir=./ ;; 3711 */) ;; 3712 *) as_dir=$as_dir/ ;; 3713 esac 3714 for ac_exec_ext in '' $ac_executable_extensions; do 3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3716 ac_cv_prog_CC="${ac_tool_prefix}clang" 3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3718 break 2 3719 fi 3720done 3721 done 3722IFS=$as_save_IFS 3723 3724fi 3725fi 3726CC=$ac_cv_prog_CC 3727if test -n "$CC"; then 3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3729printf "%s\n" "$CC" >&6; } 3730else 3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3732printf "%s\n" "no" >&6; } 3733fi 3734 3735 3736fi 3737if test -z "$ac_cv_prog_CC"; then 3738 ac_ct_CC=$CC 3739 # Extract the first word of "clang", so it can be a program name with args. 3740set dummy clang; ac_word=$2 3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3742printf %s "checking for $ac_word... " >&6; } 3743if test ${ac_cv_prog_ac_ct_CC+y} 3744then : 3745 printf %s "(cached) " >&6 3746else $as_nop 3747 if test -n "$ac_ct_CC"; then 3748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3749else 3750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3751for as_dir in $PATH 3752do 3753 IFS=$as_save_IFS 3754 case $as_dir in #((( 3755 '') as_dir=./ ;; 3756 */) ;; 3757 *) as_dir=$as_dir/ ;; 3758 esac 3759 for ac_exec_ext in '' $ac_executable_extensions; do 3760 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3761 ac_cv_prog_ac_ct_CC="clang" 3762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3763 break 2 3764 fi 3765done 3766 done 3767IFS=$as_save_IFS 3768 3769fi 3770fi 3771ac_ct_CC=$ac_cv_prog_ac_ct_CC 3772if test -n "$ac_ct_CC"; then 3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3774printf "%s\n" "$ac_ct_CC" >&6; } 3775else 3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3777printf "%s\n" "no" >&6; } 3778fi 3779 3780 if test "x$ac_ct_CC" = x; then 3781 CC="" 3782 else 3783 case $cross_compiling:$ac_tool_warned in 3784yes:) 3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3786printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3787ac_tool_warned=yes ;; 3788esac 3789 CC=$ac_ct_CC 3790 fi 3791else 3792 CC="$ac_cv_prog_CC" 3793fi 3794 3795fi 3796 3797 3798test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3799printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3800as_fn_error $? "no acceptable C compiler found in \$PATH 3801See \`config.log' for more details" "$LINENO" 5; } 3802 3803# Provide some information about the compiler. 3804printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3805set X $ac_compile 3806ac_compiler=$2 3807for ac_option in --version -v -V -qversion -version; do 3808 { { ac_try="$ac_compiler $ac_option >&5" 3809case "(($ac_try" in 3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811 *) ac_try_echo=$ac_try;; 3812esac 3813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3814printf "%s\n" "$ac_try_echo"; } >&5 3815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3816 ac_status=$? 3817 if test -s conftest.err; then 3818 sed '10a\ 3819... rest of stderr output deleted ... 3820 10q' conftest.err >conftest.er1 3821 cat conftest.er1 >&5 3822 fi 3823 rm -f conftest.er1 conftest.err 3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3825 test $ac_status = 0; } 3826done 3827 3828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3829/* end confdefs.h. */ 3830 3831int 3832main (void) 3833{ 3834 3835 ; 3836 return 0; 3837} 3838_ACEOF 3839ac_clean_files_save=$ac_clean_files 3840ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3841# Try to create an executable without -o first, disregard a.out. 3842# It will help us diagnose broken compilers, and finding out an intuition 3843# of exeext. 3844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3845printf %s "checking whether the C compiler works... " >&6; } 3846ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3847 3848# The possible output files: 3849ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3850 3851ac_rmfiles= 3852for ac_file in $ac_files 3853do 3854 case $ac_file in 3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3856 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3857 esac 3858done 3859rm -f $ac_rmfiles 3860 3861if { { ac_try="$ac_link_default" 3862case "(($ac_try" in 3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3864 *) ac_try_echo=$ac_try;; 3865esac 3866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3867printf "%s\n" "$ac_try_echo"; } >&5 3868 (eval "$ac_link_default") 2>&5 3869 ac_status=$? 3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3871 test $ac_status = 0; } 3872then : 3873 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3874# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3875# in a Makefile. We should not override ac_cv_exeext if it was cached, 3876# so that the user can short-circuit this test for compilers unknown to 3877# Autoconf. 3878for ac_file in $ac_files '' 3879do 3880 test -f "$ac_file" || continue 3881 case $ac_file in 3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3883 ;; 3884 [ab].out ) 3885 # We found the default executable, but exeext='' is most 3886 # certainly right. 3887 break;; 3888 *.* ) 3889 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3890 then :; else 3891 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3892 fi 3893 # We set ac_cv_exeext here because the later test for it is not 3894 # safe: cross compilers may not add the suffix if given an `-o' 3895 # argument, so we may need to know it at that point already. 3896 # Even if this section looks crufty: it has the advantage of 3897 # actually working. 3898 break;; 3899 * ) 3900 break;; 3901 esac 3902done 3903test "$ac_cv_exeext" = no && ac_cv_exeext= 3904 3905else $as_nop 3906 ac_file='' 3907fi 3908if test -z "$ac_file" 3909then : 3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3911printf "%s\n" "no" >&6; } 3912printf "%s\n" "$as_me: failed program was:" >&5 3913sed 's/^/| /' conftest.$ac_ext >&5 3914 3915{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3916printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3917as_fn_error 77 "C compiler cannot create executables 3918See \`config.log' for more details" "$LINENO" 5; } 3919else $as_nop 3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3921printf "%s\n" "yes" >&6; } 3922fi 3923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3924printf %s "checking for C compiler default output file name... " >&6; } 3925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3926printf "%s\n" "$ac_file" >&6; } 3927ac_exeext=$ac_cv_exeext 3928 3929rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3930ac_clean_files=$ac_clean_files_save 3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3932printf %s "checking for suffix of executables... " >&6; } 3933if { { ac_try="$ac_link" 3934case "(($ac_try" in 3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3936 *) ac_try_echo=$ac_try;; 3937esac 3938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3939printf "%s\n" "$ac_try_echo"; } >&5 3940 (eval "$ac_link") 2>&5 3941 ac_status=$? 3942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3943 test $ac_status = 0; } 3944then : 3945 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3946# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3947# work properly (i.e., refer to `conftest.exe'), while it won't with 3948# `rm'. 3949for ac_file in conftest.exe conftest conftest.*; do 3950 test -f "$ac_file" || continue 3951 case $ac_file in 3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3953 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3954 break;; 3955 * ) break;; 3956 esac 3957done 3958else $as_nop 3959 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3960printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3961as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3962See \`config.log' for more details" "$LINENO" 5; } 3963fi 3964rm -f conftest conftest$ac_cv_exeext 3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3966printf "%s\n" "$ac_cv_exeext" >&6; } 3967 3968rm -f conftest.$ac_ext 3969EXEEXT=$ac_cv_exeext 3970ac_exeext=$EXEEXT 3971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3972/* end confdefs.h. */ 3973#include <stdio.h> 3974int 3975main (void) 3976{ 3977FILE *f = fopen ("conftest.out", "w"); 3978 return ferror (f) || fclose (f) != 0; 3979 3980 ; 3981 return 0; 3982} 3983_ACEOF 3984ac_clean_files="$ac_clean_files conftest.out" 3985# Check that the compiler produces executables we can run. If not, either 3986# the compiler is broken, or we cross compile. 3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3988printf %s "checking whether we are cross compiling... " >&6; } 3989if test "$cross_compiling" != yes; then 3990 { { ac_try="$ac_link" 3991case "(($ac_try" in 3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3993 *) ac_try_echo=$ac_try;; 3994esac 3995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3996printf "%s\n" "$ac_try_echo"; } >&5 3997 (eval "$ac_link") 2>&5 3998 ac_status=$? 3999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4000 test $ac_status = 0; } 4001 if { ac_try='./conftest$ac_cv_exeext' 4002 { { case "(($ac_try" in 4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4004 *) ac_try_echo=$ac_try;; 4005esac 4006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4007printf "%s\n" "$ac_try_echo"; } >&5 4008 (eval "$ac_try") 2>&5 4009 ac_status=$? 4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4011 test $ac_status = 0; }; }; then 4012 cross_compiling=no 4013 else 4014 if test "$cross_compiling" = maybe; then 4015 cross_compiling=yes 4016 else 4017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4018printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4019as_fn_error 77 "cannot run C compiled programs. 4020If you meant to cross compile, use \`--host'. 4021See \`config.log' for more details" "$LINENO" 5; } 4022 fi 4023 fi 4024fi 4025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4026printf "%s\n" "$cross_compiling" >&6; } 4027 4028rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4029ac_clean_files=$ac_clean_files_save 4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4031printf %s "checking for suffix of object files... " >&6; } 4032if test ${ac_cv_objext+y} 4033then : 4034 printf %s "(cached) " >&6 4035else $as_nop 4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4037/* end confdefs.h. */ 4038 4039int 4040main (void) 4041{ 4042 4043 ; 4044 return 0; 4045} 4046_ACEOF 4047rm -f conftest.o conftest.obj 4048if { { ac_try="$ac_compile" 4049case "(($ac_try" in 4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4051 *) ac_try_echo=$ac_try;; 4052esac 4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4054printf "%s\n" "$ac_try_echo"; } >&5 4055 (eval "$ac_compile") 2>&5 4056 ac_status=$? 4057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4058 test $ac_status = 0; } 4059then : 4060 for ac_file in conftest.o conftest.obj conftest.*; do 4061 test -f "$ac_file" || continue; 4062 case $ac_file in 4063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4064 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4065 break;; 4066 esac 4067done 4068else $as_nop 4069 printf "%s\n" "$as_me: failed program was:" >&5 4070sed 's/^/| /' conftest.$ac_ext >&5 4071 4072{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4073printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4074as_fn_error $? "cannot compute suffix of object files: cannot compile 4075See \`config.log' for more details" "$LINENO" 5; } 4076fi 4077rm -f conftest.$ac_cv_objext conftest.$ac_ext 4078fi 4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4080printf "%s\n" "$ac_cv_objext" >&6; } 4081OBJEXT=$ac_cv_objext 4082ac_objext=$OBJEXT 4083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4084printf %s "checking whether the compiler supports GNU C... " >&6; } 4085if test ${ac_cv_c_compiler_gnu+y} 4086then : 4087 printf %s "(cached) " >&6 4088else $as_nop 4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090/* end confdefs.h. */ 4091 4092int 4093main (void) 4094{ 4095#ifndef __GNUC__ 4096 choke me 4097#endif 4098 4099 ; 4100 return 0; 4101} 4102_ACEOF 4103if ac_fn_c_try_compile "$LINENO" 4104then : 4105 ac_compiler_gnu=yes 4106else $as_nop 4107 ac_compiler_gnu=no 4108fi 4109rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4110ac_cv_c_compiler_gnu=$ac_compiler_gnu 4111 4112fi 4113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4114printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4115ac_compiler_gnu=$ac_cv_c_compiler_gnu 4116 4117if test $ac_compiler_gnu = yes; then 4118 GCC=yes 4119else 4120 GCC= 4121fi 4122ac_test_CFLAGS=${CFLAGS+y} 4123ac_save_CFLAGS=$CFLAGS 4124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4125printf %s "checking whether $CC accepts -g... " >&6; } 4126if test ${ac_cv_prog_cc_g+y} 4127then : 4128 printf %s "(cached) " >&6 4129else $as_nop 4130 ac_save_c_werror_flag=$ac_c_werror_flag 4131 ac_c_werror_flag=yes 4132 ac_cv_prog_cc_g=no 4133 CFLAGS="-g" 4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4135/* end confdefs.h. */ 4136 4137int 4138main (void) 4139{ 4140 4141 ; 4142 return 0; 4143} 4144_ACEOF 4145if ac_fn_c_try_compile "$LINENO" 4146then : 4147 ac_cv_prog_cc_g=yes 4148else $as_nop 4149 CFLAGS="" 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152 4153int 4154main (void) 4155{ 4156 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161if ac_fn_c_try_compile "$LINENO" 4162then : 4163 4164else $as_nop 4165 ac_c_werror_flag=$ac_save_c_werror_flag 4166 CFLAGS="-g" 4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4168/* end confdefs.h. */ 4169 4170int 4171main (void) 4172{ 4173 4174 ; 4175 return 0; 4176} 4177_ACEOF 4178if ac_fn_c_try_compile "$LINENO" 4179then : 4180 ac_cv_prog_cc_g=yes 4181fi 4182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4183fi 4184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4185fi 4186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4187 ac_c_werror_flag=$ac_save_c_werror_flag 4188fi 4189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4190printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4191if test $ac_test_CFLAGS; then 4192 CFLAGS=$ac_save_CFLAGS 4193elif test $ac_cv_prog_cc_g = yes; then 4194 if test "$GCC" = yes; then 4195 CFLAGS="-g -O2" 4196 else 4197 CFLAGS="-g" 4198 fi 4199else 4200 if test "$GCC" = yes; then 4201 CFLAGS="-O2" 4202 else 4203 CFLAGS= 4204 fi 4205fi 4206ac_prog_cc_stdc=no 4207if test x$ac_prog_cc_stdc = xno 4208then : 4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4210printf %s "checking for $CC option to enable C11 features... " >&6; } 4211if test ${ac_cv_prog_cc_c11+y} 4212then : 4213 printf %s "(cached) " >&6 4214else $as_nop 4215 ac_cv_prog_cc_c11=no 4216ac_save_CC=$CC 4217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4218/* end confdefs.h. */ 4219$ac_c_conftest_c11_program 4220_ACEOF 4221for ac_arg in '' -std=gnu11 4222do 4223 CC="$ac_save_CC $ac_arg" 4224 if ac_fn_c_try_compile "$LINENO" 4225then : 4226 ac_cv_prog_cc_c11=$ac_arg 4227fi 4228rm -f core conftest.err conftest.$ac_objext conftest.beam 4229 test "x$ac_cv_prog_cc_c11" != "xno" && break 4230done 4231rm -f conftest.$ac_ext 4232CC=$ac_save_CC 4233fi 4234 4235if test "x$ac_cv_prog_cc_c11" = xno 4236then : 4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4238printf "%s\n" "unsupported" >&6; } 4239else $as_nop 4240 if test "x$ac_cv_prog_cc_c11" = x 4241then : 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4243printf "%s\n" "none needed" >&6; } 4244else $as_nop 4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4246printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4247 CC="$CC $ac_cv_prog_cc_c11" 4248fi 4249 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4250 ac_prog_cc_stdc=c11 4251fi 4252fi 4253if test x$ac_prog_cc_stdc = xno 4254then : 4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4256printf %s "checking for $CC option to enable C99 features... " >&6; } 4257if test ${ac_cv_prog_cc_c99+y} 4258then : 4259 printf %s "(cached) " >&6 4260else $as_nop 4261 ac_cv_prog_cc_c99=no 4262ac_save_CC=$CC 4263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4264/* end confdefs.h. */ 4265$ac_c_conftest_c99_program 4266_ACEOF 4267for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4268do 4269 CC="$ac_save_CC $ac_arg" 4270 if ac_fn_c_try_compile "$LINENO" 4271then : 4272 ac_cv_prog_cc_c99=$ac_arg 4273fi 4274rm -f core conftest.err conftest.$ac_objext conftest.beam 4275 test "x$ac_cv_prog_cc_c99" != "xno" && break 4276done 4277rm -f conftest.$ac_ext 4278CC=$ac_save_CC 4279fi 4280 4281if test "x$ac_cv_prog_cc_c99" = xno 4282then : 4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4284printf "%s\n" "unsupported" >&6; } 4285else $as_nop 4286 if test "x$ac_cv_prog_cc_c99" = x 4287then : 4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4289printf "%s\n" "none needed" >&6; } 4290else $as_nop 4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4292printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4293 CC="$CC $ac_cv_prog_cc_c99" 4294fi 4295 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4296 ac_prog_cc_stdc=c99 4297fi 4298fi 4299if test x$ac_prog_cc_stdc = xno 4300then : 4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4302printf %s "checking for $CC option to enable C89 features... " >&6; } 4303if test ${ac_cv_prog_cc_c89+y} 4304then : 4305 printf %s "(cached) " >&6 4306else $as_nop 4307 ac_cv_prog_cc_c89=no 4308ac_save_CC=$CC 4309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311$ac_c_conftest_c89_program 4312_ACEOF 4313for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4314do 4315 CC="$ac_save_CC $ac_arg" 4316 if ac_fn_c_try_compile "$LINENO" 4317then : 4318 ac_cv_prog_cc_c89=$ac_arg 4319fi 4320rm -f core conftest.err conftest.$ac_objext conftest.beam 4321 test "x$ac_cv_prog_cc_c89" != "xno" && break 4322done 4323rm -f conftest.$ac_ext 4324CC=$ac_save_CC 4325fi 4326 4327if test "x$ac_cv_prog_cc_c89" = xno 4328then : 4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4330printf "%s\n" "unsupported" >&6; } 4331else $as_nop 4332 if test "x$ac_cv_prog_cc_c89" = x 4333then : 4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4335printf "%s\n" "none needed" >&6; } 4336else $as_nop 4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4338printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4339 CC="$CC $ac_cv_prog_cc_c89" 4340fi 4341 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4342 ac_prog_cc_stdc=c89 4343fi 4344fi 4345 4346ac_ext=c 4347ac_cpp='$CPP $CPPFLAGS' 4348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4350ac_compiler_gnu=$ac_cv_c_compiler_gnu 4351 4352 4353 ac_ext=c 4354ac_cpp='$CPP $CPPFLAGS' 4355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4357ac_compiler_gnu=$ac_cv_c_compiler_gnu 4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4359printf %s "checking whether $CC understands -c and -o together... " >&6; } 4360if test ${am_cv_prog_cc_c_o+y} 4361then : 4362 printf %s "(cached) " >&6 4363else $as_nop 4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4365/* end confdefs.h. */ 4366 4367int 4368main (void) 4369{ 4370 4371 ; 4372 return 0; 4373} 4374_ACEOF 4375 # Make sure it works both with $CC and with simple cc. 4376 # Following AC_PROG_CC_C_O, we do the test twice because some 4377 # compilers refuse to overwrite an existing .o file with -o, 4378 # though they will create one. 4379 am_cv_prog_cc_c_o=yes 4380 for am_i in 1 2; do 4381 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4382 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4383 ac_status=$? 4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4385 (exit $ac_status); } \ 4386 && test -f conftest2.$ac_objext; then 4387 : OK 4388 else 4389 am_cv_prog_cc_c_o=no 4390 break 4391 fi 4392 done 4393 rm -f core conftest* 4394 unset am_i 4395fi 4396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4397printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4398if test "$am_cv_prog_cc_c_o" != yes; then 4399 # Losing compiler, so override with the script. 4400 # FIXME: It is wrong to rewrite CC. 4401 # But if we don't then we get into trouble of one sort or another. 4402 # A longer-term fix would be to have automake use am__CC in this case, 4403 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4404 CC="$am_aux_dir/compile $CC" 4405fi 4406ac_ext=c 4407ac_cpp='$CPP $CPPFLAGS' 4408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4410ac_compiler_gnu=$ac_cv_c_compiler_gnu 4411 4412 4413depcc="$CC" am_compiler_list= 4414 4415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4416printf %s "checking dependency style of $depcc... " >&6; } 4417if test ${am_cv_CC_dependencies_compiler_type+y} 4418then : 4419 printf %s "(cached) " >&6 4420else $as_nop 4421 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4422 # We make a subdir and do the tests there. Otherwise we can end up 4423 # making bogus files that we don't know about and never remove. For 4424 # instance it was reported that on HP-UX the gcc test will end up 4425 # making a dummy file named 'D' -- because '-MD' means "put the output 4426 # in D". 4427 rm -rf conftest.dir 4428 mkdir conftest.dir 4429 # Copy depcomp to subdir because otherwise we won't find it if we're 4430 # using a relative directory. 4431 cp "$am_depcomp" conftest.dir 4432 cd conftest.dir 4433 # We will build objects and dependencies in a subdirectory because 4434 # it helps to detect inapplicable dependency modes. For instance 4435 # both Tru64's cc and ICC support -MD to output dependencies as a 4436 # side effect of compilation, but ICC will put the dependencies in 4437 # the current directory while Tru64 will put them in the object 4438 # directory. 4439 mkdir sub 4440 4441 am_cv_CC_dependencies_compiler_type=none 4442 if test "$am_compiler_list" = ""; then 4443 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4444 fi 4445 am__universal=false 4446 case " $depcc " in #( 4447 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4448 esac 4449 4450 for depmode in $am_compiler_list; do 4451 # Setup a source with many dependencies, because some compilers 4452 # like to wrap large dependency lists on column 80 (with \), and 4453 # we should not choose a depcomp mode which is confused by this. 4454 # 4455 # We need to recreate these files for each test, as the compiler may 4456 # overwrite some of them when testing with obscure command lines. 4457 # This happens at least with the AIX C compiler. 4458 : > sub/conftest.c 4459 for i in 1 2 3 4 5 6; do 4460 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4461 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4462 # Solaris 10 /bin/sh. 4463 echo '/* dummy */' > sub/conftst$i.h 4464 done 4465 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4466 4467 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4468 # mode. It turns out that the SunPro C++ compiler does not properly 4469 # handle '-M -o', and we need to detect this. Also, some Intel 4470 # versions had trouble with output in subdirs. 4471 am__obj=sub/conftest.${OBJEXT-o} 4472 am__minus_obj="-o $am__obj" 4473 case $depmode in 4474 gcc) 4475 # This depmode causes a compiler race in universal mode. 4476 test "$am__universal" = false || continue 4477 ;; 4478 nosideeffect) 4479 # After this tag, mechanisms are not by side-effect, so they'll 4480 # only be used when explicitly requested. 4481 if test "x$enable_dependency_tracking" = xyes; then 4482 continue 4483 else 4484 break 4485 fi 4486 ;; 4487 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4488 # This compiler won't grok '-c -o', but also, the minuso test has 4489 # not run yet. These depmodes are late enough in the game, and 4490 # so weak that their functioning should not be impacted. 4491 am__obj=conftest.${OBJEXT-o} 4492 am__minus_obj= 4493 ;; 4494 none) break ;; 4495 esac 4496 if depmode=$depmode \ 4497 source=sub/conftest.c object=$am__obj \ 4498 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4499 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4500 >/dev/null 2>conftest.err && 4501 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4503 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4505 # icc doesn't choke on unknown options, it will just issue warnings 4506 # or remarks (even with -Werror). So we grep stderr for any message 4507 # that says an option was ignored or not supported. 4508 # When given -MP, icc 7.0 and 7.1 complain thusly: 4509 # icc: Command line warning: ignoring option '-M'; no argument required 4510 # The diagnosis changed in icc 8.0: 4511 # icc: Command line remark: option '-MP' not supported 4512 if (grep 'ignoring option' conftest.err || 4513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4514 am_cv_CC_dependencies_compiler_type=$depmode 4515 break 4516 fi 4517 fi 4518 done 4519 4520 cd .. 4521 rm -rf conftest.dir 4522else 4523 am_cv_CC_dependencies_compiler_type=none 4524fi 4525 4526fi 4527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4528printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4529CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4530 4531 if 4532 test "x$enable_dependency_tracking" != xno \ 4533 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4534 am__fastdepCC_TRUE= 4535 am__fastdepCC_FALSE='#' 4536else 4537 am__fastdepCC_TRUE='#' 4538 am__fastdepCC_FALSE= 4539fi 4540 4541 4542 4543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4544printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4545if test ${ac_cv_c_undeclared_builtin_options+y} 4546then : 4547 printf %s "(cached) " >&6 4548else $as_nop 4549 ac_save_CFLAGS=$CFLAGS 4550 ac_cv_c_undeclared_builtin_options='cannot detect' 4551 for ac_arg in '' -fno-builtin; do 4552 CFLAGS="$ac_save_CFLAGS $ac_arg" 4553 # This test program should *not* compile successfully. 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4555/* end confdefs.h. */ 4556 4557int 4558main (void) 4559{ 4560(void) strchr; 4561 ; 4562 return 0; 4563} 4564_ACEOF 4565if ac_fn_c_try_compile "$LINENO" 4566then : 4567 4568else $as_nop 4569 # This test program should compile successfully. 4570 # No library function is consistently available on 4571 # freestanding implementations, so test against a dummy 4572 # declaration. Include always-available headers on the 4573 # off chance that they somehow elicit warnings. 4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4575/* end confdefs.h. */ 4576#include <float.h> 4577#include <limits.h> 4578#include <stdarg.h> 4579#include <stddef.h> 4580extern void ac_decl (int, char *); 4581 4582int 4583main (void) 4584{ 4585(void) ac_decl (0, (char *) 0); 4586 (void) ac_decl; 4587 4588 ; 4589 return 0; 4590} 4591_ACEOF 4592if ac_fn_c_try_compile "$LINENO" 4593then : 4594 if test x"$ac_arg" = x 4595then : 4596 ac_cv_c_undeclared_builtin_options='none needed' 4597else $as_nop 4598 ac_cv_c_undeclared_builtin_options=$ac_arg 4599fi 4600 break 4601fi 4602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4603fi 4604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4605 done 4606 CFLAGS=$ac_save_CFLAGS 4607 4608fi 4609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4610printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4611 case $ac_cv_c_undeclared_builtin_options in #( 4612 'cannot detect') : 4613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4614printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4615as_fn_error $? "cannot make $CC report undeclared builtins 4616See \`config.log' for more details" "$LINENO" 5; } ;; #( 4617 'none needed') : 4618 ac_c_undeclared_builtin_options='' ;; #( 4619 *) : 4620 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4621esac 4622 4623ac_header= ac_cache= 4624for ac_item in $ac_header_c_list 4625do 4626 if test $ac_cache; then 4627 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4628 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4629 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4630 fi 4631 ac_header= ac_cache= 4632 elif test $ac_header; then 4633 ac_cache=$ac_item 4634 else 4635 ac_header=$ac_item 4636 fi 4637done 4638 4639 4640 4641 4642 4643 4644 4645 4646if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4647then : 4648 4649printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4650 4651fi 4652 4653 4654 4655 4656ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4657if test "x$ac_cv_have_decl___clang__" = xyes 4658then : 4659 CLANGCC="yes" 4660else $as_nop 4661 CLANGCC="no" 4662fi 4663ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4664if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4665then : 4666 INTELCC="yes" 4667else $as_nop 4668 INTELCC="no" 4669fi 4670ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4671if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4672then : 4673 SUNCC="yes" 4674else $as_nop 4675 SUNCC="no" 4676fi 4677 4678 4679 4680 4681 4682 4683 4684 4685if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4686 if test -n "$ac_tool_prefix"; then 4687 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4688set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4690printf %s "checking for $ac_word... " >&6; } 4691if test ${ac_cv_path_PKG_CONFIG+y} 4692then : 4693 printf %s "(cached) " >&6 4694else $as_nop 4695 case $PKG_CONFIG in 4696 [\\/]* | ?:[\\/]*) 4697 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4698 ;; 4699 *) 4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4701for as_dir in $PATH 4702do 4703 IFS=$as_save_IFS 4704 case $as_dir in #((( 4705 '') as_dir=./ ;; 4706 */) ;; 4707 *) as_dir=$as_dir/ ;; 4708 esac 4709 for ac_exec_ext in '' $ac_executable_extensions; do 4710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4711 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4713 break 2 4714 fi 4715done 4716 done 4717IFS=$as_save_IFS 4718 4719 ;; 4720esac 4721fi 4722PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4723if test -n "$PKG_CONFIG"; then 4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4725printf "%s\n" "$PKG_CONFIG" >&6; } 4726else 4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4728printf "%s\n" "no" >&6; } 4729fi 4730 4731 4732fi 4733if test -z "$ac_cv_path_PKG_CONFIG"; then 4734 ac_pt_PKG_CONFIG=$PKG_CONFIG 4735 # Extract the first word of "pkg-config", so it can be a program name with args. 4736set dummy pkg-config; ac_word=$2 4737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4738printf %s "checking for $ac_word... " >&6; } 4739if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4740then : 4741 printf %s "(cached) " >&6 4742else $as_nop 4743 case $ac_pt_PKG_CONFIG in 4744 [\\/]* | ?:[\\/]*) 4745 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4746 ;; 4747 *) 4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4749for as_dir in $PATH 4750do 4751 IFS=$as_save_IFS 4752 case $as_dir in #((( 4753 '') as_dir=./ ;; 4754 */) ;; 4755 *) as_dir=$as_dir/ ;; 4756 esac 4757 for ac_exec_ext in '' $ac_executable_extensions; do 4758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4759 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4761 break 2 4762 fi 4763done 4764 done 4765IFS=$as_save_IFS 4766 4767 ;; 4768esac 4769fi 4770ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4771if test -n "$ac_pt_PKG_CONFIG"; then 4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4773printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4774else 4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4776printf "%s\n" "no" >&6; } 4777fi 4778 4779 if test "x$ac_pt_PKG_CONFIG" = x; then 4780 PKG_CONFIG="" 4781 else 4782 case $cross_compiling:$ac_tool_warned in 4783yes:) 4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4785printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4786ac_tool_warned=yes ;; 4787esac 4788 PKG_CONFIG=$ac_pt_PKG_CONFIG 4789 fi 4790else 4791 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4792fi 4793 4794fi 4795if test -n "$PKG_CONFIG"; then 4796 _pkg_min_version=0.9.0 4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4798printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4799 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4801printf "%s\n" "yes" >&6; } 4802 else 4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4804printf "%s\n" "no" >&6; } 4805 PKG_CONFIG="" 4806 fi 4807fi 4808 4809 4810 # Make sure we can run config.sub. 4811$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4812 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4813 4814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4815printf %s "checking build system type... " >&6; } 4816if test ${ac_cv_build+y} 4817then : 4818 printf %s "(cached) " >&6 4819else $as_nop 4820 ac_build_alias=$build_alias 4821test "x$ac_build_alias" = x && 4822 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4823test "x$ac_build_alias" = x && 4824 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4825ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4826 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4827 4828fi 4829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4830printf "%s\n" "$ac_cv_build" >&6; } 4831case $ac_cv_build in 4832*-*-*) ;; 4833*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4834esac 4835build=$ac_cv_build 4836ac_save_IFS=$IFS; IFS='-' 4837set x $ac_cv_build 4838shift 4839build_cpu=$1 4840build_vendor=$2 4841shift; shift 4842# Remember, the first character of IFS is used to create $*, 4843# except with old shells: 4844build_os=$* 4845IFS=$ac_save_IFS 4846case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4847 4848 4849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4850printf %s "checking host system type... " >&6; } 4851if test ${ac_cv_host+y} 4852then : 4853 printf %s "(cached) " >&6 4854else $as_nop 4855 if test "x$host_alias" = x; then 4856 ac_cv_host=$ac_cv_build 4857else 4858 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4859 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4860fi 4861 4862fi 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4864printf "%s\n" "$ac_cv_host" >&6; } 4865case $ac_cv_host in 4866*-*-*) ;; 4867*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4868esac 4869host=$ac_cv_host 4870ac_save_IFS=$IFS; IFS='-' 4871set x $ac_cv_host 4872shift 4873host_cpu=$1 4874host_vendor=$2 4875shift; shift 4876# Remember, the first character of IFS is used to create $*, 4877# except with old shells: 4878host_os=$* 4879IFS=$ac_save_IFS 4880case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4881 4882 4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4884printf %s "checking for a sed that does not truncate output... " >&6; } 4885if test ${ac_cv_path_SED+y} 4886then : 4887 printf %s "(cached) " >&6 4888else $as_nop 4889 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4890 for ac_i in 1 2 3 4 5 6 7; do 4891 ac_script="$ac_script$as_nl$ac_script" 4892 done 4893 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4894 { ac_script=; unset ac_script;} 4895 if test -z "$SED"; then 4896 ac_path_SED_found=false 4897 # Loop through the user's path and test for each of PROGNAME-LIST 4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4899for as_dir in $PATH 4900do 4901 IFS=$as_save_IFS 4902 case $as_dir in #((( 4903 '') as_dir=./ ;; 4904 */) ;; 4905 *) as_dir=$as_dir/ ;; 4906 esac 4907 for ac_prog in sed gsed 4908 do 4909 for ac_exec_ext in '' $ac_executable_extensions; do 4910 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4911 as_fn_executable_p "$ac_path_SED" || continue 4912# Check for GNU ac_path_SED and select it if it is found. 4913 # Check for GNU $ac_path_SED 4914case `"$ac_path_SED" --version 2>&1` in 4915*GNU*) 4916 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4917*) 4918 ac_count=0 4919 printf %s 0123456789 >"conftest.in" 4920 while : 4921 do 4922 cat "conftest.in" "conftest.in" >"conftest.tmp" 4923 mv "conftest.tmp" "conftest.in" 4924 cp "conftest.in" "conftest.nl" 4925 printf "%s\n" '' >> "conftest.nl" 4926 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4928 as_fn_arith $ac_count + 1 && ac_count=$as_val 4929 if test $ac_count -gt ${ac_path_SED_max-0}; then 4930 # Best one so far, save it but keep looking for a better one 4931 ac_cv_path_SED="$ac_path_SED" 4932 ac_path_SED_max=$ac_count 4933 fi 4934 # 10*(2^10) chars as input seems more than enough 4935 test $ac_count -gt 10 && break 4936 done 4937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4938esac 4939 4940 $ac_path_SED_found && break 3 4941 done 4942 done 4943 done 4944IFS=$as_save_IFS 4945 if test -z "$ac_cv_path_SED"; then 4946 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4947 fi 4948else 4949 ac_cv_path_SED=$SED 4950fi 4951 4952fi 4953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4954printf "%s\n" "$ac_cv_path_SED" >&6; } 4955 SED="$ac_cv_path_SED" 4956 rm -f conftest.sed 4957 4958 4959 4960 4961 4962 4963# Check whether --enable-selective-werror was given. 4964if test ${enable_selective_werror+y} 4965then : 4966 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4967else $as_nop 4968 SELECTIVE_WERROR=yes 4969fi 4970 4971 4972 4973 4974 4975# -v is too short to test reliably with XORG_TESTSET_CFLAG 4976if test "x$SUNCC" = "xyes"; then 4977 BASE_CFLAGS="-v" 4978else 4979 BASE_CFLAGS="" 4980fi 4981 4982# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996xorg_testset_save_CFLAGS="$CFLAGS" 4997 4998if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5001printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5002if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5003then : 5004 printf %s "(cached) " >&6 5005else $as_nop 5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5007/* end confdefs.h. */ 5008int i; 5009_ACEOF 5010if ac_fn_c_try_compile "$LINENO" 5011then : 5012 xorg_cv_cc_flag_unknown_warning_option=yes 5013else $as_nop 5014 xorg_cv_cc_flag_unknown_warning_option=no 5015fi 5016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5017fi 5018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5019printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5021 CFLAGS="$xorg_testset_save_CFLAGS" 5022fi 5023 5024if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5027 fi 5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5030printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5031if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5032then : 5033 printf %s "(cached) " >&6 5034else $as_nop 5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5036/* end confdefs.h. */ 5037int i; 5038_ACEOF 5039if ac_fn_c_try_compile "$LINENO" 5040then : 5041 xorg_cv_cc_flag_unused_command_line_argument=yes 5042else $as_nop 5043 xorg_cv_cc_flag_unused_command_line_argument=no 5044fi 5045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5046fi 5047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5048printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5049 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5050 CFLAGS="$xorg_testset_save_CFLAGS" 5051fi 5052 5053found="no" 5054 5055 if test $found = "no" ; then 5056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5058 fi 5059 5060 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5062 fi 5063 5064 CFLAGS="$CFLAGS -Wall" 5065 5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5067printf %s "checking if $CC supports -Wall... " >&6; } 5068 cacheid=xorg_cv_cc_flag__Wall 5069 if eval test \${$cacheid+y} 5070then : 5071 printf %s "(cached) " >&6 5072else $as_nop 5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5074/* end confdefs.h. */ 5075int i; 5076int 5077main (void) 5078{ 5079 5080 ; 5081 return 0; 5082} 5083_ACEOF 5084if ac_fn_c_try_link "$LINENO" 5085then : 5086 eval $cacheid=yes 5087else $as_nop 5088 eval $cacheid=no 5089fi 5090rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5091 conftest$ac_exeext conftest.$ac_ext 5092fi 5093 5094 5095 CFLAGS="$xorg_testset_save_CFLAGS" 5096 5097 eval supported=\$$cacheid 5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5099printf "%s\n" "$supported" >&6; } 5100 if test "$supported" = "yes" ; then 5101 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5102 found="yes" 5103 fi 5104 fi 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120xorg_testset_save_CFLAGS="$CFLAGS" 5121 5122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5125printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5126if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5127then : 5128 printf %s "(cached) " >&6 5129else $as_nop 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132int i; 5133_ACEOF 5134if ac_fn_c_try_compile "$LINENO" 5135then : 5136 xorg_cv_cc_flag_unknown_warning_option=yes 5137else $as_nop 5138 xorg_cv_cc_flag_unknown_warning_option=no 5139fi 5140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5141fi 5142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5143printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5145 CFLAGS="$xorg_testset_save_CFLAGS" 5146fi 5147 5148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5151 fi 5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5154printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5155if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5156then : 5157 printf %s "(cached) " >&6 5158else $as_nop 5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5160/* end confdefs.h. */ 5161int i; 5162_ACEOF 5163if ac_fn_c_try_compile "$LINENO" 5164then : 5165 xorg_cv_cc_flag_unused_command_line_argument=yes 5166else $as_nop 5167 xorg_cv_cc_flag_unused_command_line_argument=no 5168fi 5169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5170fi 5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5172printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5174 CFLAGS="$xorg_testset_save_CFLAGS" 5175fi 5176 5177found="no" 5178 5179 if test $found = "no" ; then 5180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5182 fi 5183 5184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5186 fi 5187 5188 CFLAGS="$CFLAGS -Wpointer-arith" 5189 5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5191printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5192 cacheid=xorg_cv_cc_flag__Wpointer_arith 5193 if eval test \${$cacheid+y} 5194then : 5195 printf %s "(cached) " >&6 5196else $as_nop 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199int i; 5200int 5201main (void) 5202{ 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_link "$LINENO" 5209then : 5210 eval $cacheid=yes 5211else $as_nop 5212 eval $cacheid=no 5213fi 5214rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5215 conftest$ac_exeext conftest.$ac_ext 5216fi 5217 5218 5219 CFLAGS="$xorg_testset_save_CFLAGS" 5220 5221 eval supported=\$$cacheid 5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5223printf "%s\n" "$supported" >&6; } 5224 if test "$supported" = "yes" ; then 5225 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5226 found="yes" 5227 fi 5228 fi 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244xorg_testset_save_CFLAGS="$CFLAGS" 5245 5246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5249printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5250if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5251then : 5252 printf %s "(cached) " >&6 5253else $as_nop 5254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5255/* end confdefs.h. */ 5256int i; 5257_ACEOF 5258if ac_fn_c_try_compile "$LINENO" 5259then : 5260 xorg_cv_cc_flag_unknown_warning_option=yes 5261else $as_nop 5262 xorg_cv_cc_flag_unknown_warning_option=no 5263fi 5264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5265fi 5266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5269 CFLAGS="$xorg_testset_save_CFLAGS" 5270fi 5271 5272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5275 fi 5276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5279if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5280then : 5281 printf %s "(cached) " >&6 5282else $as_nop 5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5284/* end confdefs.h. */ 5285int i; 5286_ACEOF 5287if ac_fn_c_try_compile "$LINENO" 5288then : 5289 xorg_cv_cc_flag_unused_command_line_argument=yes 5290else $as_nop 5291 xorg_cv_cc_flag_unused_command_line_argument=no 5292fi 5293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5294fi 5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5296printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5298 CFLAGS="$xorg_testset_save_CFLAGS" 5299fi 5300 5301found="no" 5302 5303 if test $found = "no" ; then 5304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5306 fi 5307 5308 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5310 fi 5311 5312 CFLAGS="$CFLAGS -Wmissing-declarations" 5313 5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5315printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5316 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5317 if eval test \${$cacheid+y} 5318then : 5319 printf %s "(cached) " >&6 5320else $as_nop 5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5322/* end confdefs.h. */ 5323int i; 5324int 5325main (void) 5326{ 5327 5328 ; 5329 return 0; 5330} 5331_ACEOF 5332if ac_fn_c_try_link "$LINENO" 5333then : 5334 eval $cacheid=yes 5335else $as_nop 5336 eval $cacheid=no 5337fi 5338rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5339 conftest$ac_exeext conftest.$ac_ext 5340fi 5341 5342 5343 CFLAGS="$xorg_testset_save_CFLAGS" 5344 5345 eval supported=\$$cacheid 5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5347printf "%s\n" "$supported" >&6; } 5348 if test "$supported" = "yes" ; then 5349 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5350 found="yes" 5351 fi 5352 fi 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368xorg_testset_save_CFLAGS="$CFLAGS" 5369 5370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5373printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5374if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5375then : 5376 printf %s "(cached) " >&6 5377else $as_nop 5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5379/* end confdefs.h. */ 5380int i; 5381_ACEOF 5382if ac_fn_c_try_compile "$LINENO" 5383then : 5384 xorg_cv_cc_flag_unknown_warning_option=yes 5385else $as_nop 5386 xorg_cv_cc_flag_unknown_warning_option=no 5387fi 5388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5389fi 5390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5391printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5393 CFLAGS="$xorg_testset_save_CFLAGS" 5394fi 5395 5396if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5399 fi 5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5402printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5403if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5404then : 5405 printf %s "(cached) " >&6 5406else $as_nop 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409int i; 5410_ACEOF 5411if ac_fn_c_try_compile "$LINENO" 5412then : 5413 xorg_cv_cc_flag_unused_command_line_argument=yes 5414else $as_nop 5415 xorg_cv_cc_flag_unused_command_line_argument=no 5416fi 5417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5418fi 5419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5422 CFLAGS="$xorg_testset_save_CFLAGS" 5423fi 5424 5425found="no" 5426 5427 if test $found = "no" ; then 5428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430 fi 5431 5432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5434 fi 5435 5436 CFLAGS="$CFLAGS -Wformat=2" 5437 5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5439printf %s "checking if $CC supports -Wformat=2... " >&6; } 5440 cacheid=xorg_cv_cc_flag__Wformat_2 5441 if eval test \${$cacheid+y} 5442then : 5443 printf %s "(cached) " >&6 5444else $as_nop 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447int i; 5448int 5449main (void) 5450{ 5451 5452 ; 5453 return 0; 5454} 5455_ACEOF 5456if ac_fn_c_try_link "$LINENO" 5457then : 5458 eval $cacheid=yes 5459else $as_nop 5460 eval $cacheid=no 5461fi 5462rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5463 conftest$ac_exeext conftest.$ac_ext 5464fi 5465 5466 5467 CFLAGS="$xorg_testset_save_CFLAGS" 5468 5469 eval supported=\$$cacheid 5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5471printf "%s\n" "$supported" >&6; } 5472 if test "$supported" = "yes" ; then 5473 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5474 found="yes" 5475 fi 5476 fi 5477 5478 if test $found = "no" ; then 5479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5481 fi 5482 5483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5485 fi 5486 5487 CFLAGS="$CFLAGS -Wformat" 5488 5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5490printf %s "checking if $CC supports -Wformat... " >&6; } 5491 cacheid=xorg_cv_cc_flag__Wformat 5492 if eval test \${$cacheid+y} 5493then : 5494 printf %s "(cached) " >&6 5495else $as_nop 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5497/* end confdefs.h. */ 5498int i; 5499int 5500main (void) 5501{ 5502 5503 ; 5504 return 0; 5505} 5506_ACEOF 5507if ac_fn_c_try_link "$LINENO" 5508then : 5509 eval $cacheid=yes 5510else $as_nop 5511 eval $cacheid=no 5512fi 5513rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5514 conftest$ac_exeext conftest.$ac_ext 5515fi 5516 5517 5518 CFLAGS="$xorg_testset_save_CFLAGS" 5519 5520 eval supported=\$$cacheid 5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5522printf "%s\n" "$supported" >&6; } 5523 if test "$supported" = "yes" ; then 5524 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5525 found="yes" 5526 fi 5527 fi 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545xorg_testset_save_CFLAGS="$CFLAGS" 5546 5547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5552then : 5553 printf %s "(cached) " >&6 5554else $as_nop 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556/* end confdefs.h. */ 5557int i; 5558_ACEOF 5559if ac_fn_c_try_compile "$LINENO" 5560then : 5561 xorg_cv_cc_flag_unknown_warning_option=yes 5562else $as_nop 5563 xorg_cv_cc_flag_unknown_warning_option=no 5564fi 5565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5566fi 5567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5570 CFLAGS="$xorg_testset_save_CFLAGS" 5571fi 5572 5573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5576 fi 5577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5580if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5581then : 5582 printf %s "(cached) " >&6 5583else $as_nop 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585/* end confdefs.h. */ 5586int i; 5587_ACEOF 5588if ac_fn_c_try_compile "$LINENO" 5589then : 5590 xorg_cv_cc_flag_unused_command_line_argument=yes 5591else $as_nop 5592 xorg_cv_cc_flag_unused_command_line_argument=no 5593fi 5594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5595fi 5596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5599 CFLAGS="$xorg_testset_save_CFLAGS" 5600fi 5601 5602found="no" 5603 5604 if test $found = "no" ; then 5605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5607 fi 5608 5609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5611 fi 5612 5613 CFLAGS="$CFLAGS -Wstrict-prototypes" 5614 5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5616printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5617 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5618 if eval test \${$cacheid+y} 5619then : 5620 printf %s "(cached) " >&6 5621else $as_nop 5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5623/* end confdefs.h. */ 5624int i; 5625int 5626main (void) 5627{ 5628 5629 ; 5630 return 0; 5631} 5632_ACEOF 5633if ac_fn_c_try_link "$LINENO" 5634then : 5635 eval $cacheid=yes 5636else $as_nop 5637 eval $cacheid=no 5638fi 5639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5640 conftest$ac_exeext conftest.$ac_ext 5641fi 5642 5643 5644 CFLAGS="$xorg_testset_save_CFLAGS" 5645 5646 eval supported=\$$cacheid 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5648printf "%s\n" "$supported" >&6; } 5649 if test "$supported" = "yes" ; then 5650 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5651 found="yes" 5652 fi 5653 fi 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669xorg_testset_save_CFLAGS="$CFLAGS" 5670 5671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5676then : 5677 printf %s "(cached) " >&6 5678else $as_nop 5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5680/* end confdefs.h. */ 5681int i; 5682_ACEOF 5683if ac_fn_c_try_compile "$LINENO" 5684then : 5685 xorg_cv_cc_flag_unknown_warning_option=yes 5686else $as_nop 5687 xorg_cv_cc_flag_unknown_warning_option=no 5688fi 5689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5690fi 5691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5694 CFLAGS="$xorg_testset_save_CFLAGS" 5695fi 5696 5697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5700 fi 5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5704if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5705then : 5706 printf %s "(cached) " >&6 5707else $as_nop 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5709/* end confdefs.h. */ 5710int i; 5711_ACEOF 5712if ac_fn_c_try_compile "$LINENO" 5713then : 5714 xorg_cv_cc_flag_unused_command_line_argument=yes 5715else $as_nop 5716 xorg_cv_cc_flag_unused_command_line_argument=no 5717fi 5718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5719fi 5720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5723 CFLAGS="$xorg_testset_save_CFLAGS" 5724fi 5725 5726found="no" 5727 5728 if test $found = "no" ; then 5729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5731 fi 5732 5733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5735 fi 5736 5737 CFLAGS="$CFLAGS -Wmissing-prototypes" 5738 5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5740printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5741 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5742 if eval test \${$cacheid+y} 5743then : 5744 printf %s "(cached) " >&6 5745else $as_nop 5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5747/* end confdefs.h. */ 5748int i; 5749int 5750main (void) 5751{ 5752 5753 ; 5754 return 0; 5755} 5756_ACEOF 5757if ac_fn_c_try_link "$LINENO" 5758then : 5759 eval $cacheid=yes 5760else $as_nop 5761 eval $cacheid=no 5762fi 5763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5764 conftest$ac_exeext conftest.$ac_ext 5765fi 5766 5767 5768 CFLAGS="$xorg_testset_save_CFLAGS" 5769 5770 eval supported=\$$cacheid 5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5772printf "%s\n" "$supported" >&6; } 5773 if test "$supported" = "yes" ; then 5774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5775 found="yes" 5776 fi 5777 fi 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793xorg_testset_save_CFLAGS="$CFLAGS" 5794 5795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5799if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5800then : 5801 printf %s "(cached) " >&6 5802else $as_nop 5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5804/* end confdefs.h. */ 5805int i; 5806_ACEOF 5807if ac_fn_c_try_compile "$LINENO" 5808then : 5809 xorg_cv_cc_flag_unknown_warning_option=yes 5810else $as_nop 5811 xorg_cv_cc_flag_unknown_warning_option=no 5812fi 5813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5814fi 5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5818 CFLAGS="$xorg_testset_save_CFLAGS" 5819fi 5820 5821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5824 fi 5825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5828if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5829then : 5830 printf %s "(cached) " >&6 5831else $as_nop 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833/* end confdefs.h. */ 5834int i; 5835_ACEOF 5836if ac_fn_c_try_compile "$LINENO" 5837then : 5838 xorg_cv_cc_flag_unused_command_line_argument=yes 5839else $as_nop 5840 xorg_cv_cc_flag_unused_command_line_argument=no 5841fi 5842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5843fi 5844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5847 CFLAGS="$xorg_testset_save_CFLAGS" 5848fi 5849 5850found="no" 5851 5852 if test $found = "no" ; then 5853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5855 fi 5856 5857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5859 fi 5860 5861 CFLAGS="$CFLAGS -Wnested-externs" 5862 5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5864printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5865 cacheid=xorg_cv_cc_flag__Wnested_externs 5866 if eval test \${$cacheid+y} 5867then : 5868 printf %s "(cached) " >&6 5869else $as_nop 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5871/* end confdefs.h. */ 5872int i; 5873int 5874main (void) 5875{ 5876 5877 ; 5878 return 0; 5879} 5880_ACEOF 5881if ac_fn_c_try_link "$LINENO" 5882then : 5883 eval $cacheid=yes 5884else $as_nop 5885 eval $cacheid=no 5886fi 5887rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5888 conftest$ac_exeext conftest.$ac_ext 5889fi 5890 5891 5892 CFLAGS="$xorg_testset_save_CFLAGS" 5893 5894 eval supported=\$$cacheid 5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5896printf "%s\n" "$supported" >&6; } 5897 if test "$supported" = "yes" ; then 5898 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5899 found="yes" 5900 fi 5901 fi 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917xorg_testset_save_CFLAGS="$CFLAGS" 5918 5919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5923if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5924then : 5925 printf %s "(cached) " >&6 5926else $as_nop 5927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5928/* end confdefs.h. */ 5929int i; 5930_ACEOF 5931if ac_fn_c_try_compile "$LINENO" 5932then : 5933 xorg_cv_cc_flag_unknown_warning_option=yes 5934else $as_nop 5935 xorg_cv_cc_flag_unknown_warning_option=no 5936fi 5937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5938fi 5939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5940printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5942 CFLAGS="$xorg_testset_save_CFLAGS" 5943fi 5944 5945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5948 fi 5949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5951printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5952if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5953then : 5954 printf %s "(cached) " >&6 5955else $as_nop 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5957/* end confdefs.h. */ 5958int i; 5959_ACEOF 5960if ac_fn_c_try_compile "$LINENO" 5961then : 5962 xorg_cv_cc_flag_unused_command_line_argument=yes 5963else $as_nop 5964 xorg_cv_cc_flag_unused_command_line_argument=no 5965fi 5966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5967fi 5968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5969printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5971 CFLAGS="$xorg_testset_save_CFLAGS" 5972fi 5973 5974found="no" 5975 5976 if test $found = "no" ; then 5977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5979 fi 5980 5981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5983 fi 5984 5985 CFLAGS="$CFLAGS -Wbad-function-cast" 5986 5987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5988printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5989 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5990 if eval test \${$cacheid+y} 5991then : 5992 printf %s "(cached) " >&6 5993else $as_nop 5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5995/* end confdefs.h. */ 5996int i; 5997int 5998main (void) 5999{ 6000 6001 ; 6002 return 0; 6003} 6004_ACEOF 6005if ac_fn_c_try_link "$LINENO" 6006then : 6007 eval $cacheid=yes 6008else $as_nop 6009 eval $cacheid=no 6010fi 6011rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6012 conftest$ac_exeext conftest.$ac_ext 6013fi 6014 6015 6016 CFLAGS="$xorg_testset_save_CFLAGS" 6017 6018 eval supported=\$$cacheid 6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6020printf "%s\n" "$supported" >&6; } 6021 if test "$supported" = "yes" ; then 6022 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6023 found="yes" 6024 fi 6025 fi 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041xorg_testset_save_CFLAGS="$CFLAGS" 6042 6043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6047if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6048then : 6049 printf %s "(cached) " >&6 6050else $as_nop 6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6052/* end confdefs.h. */ 6053int i; 6054_ACEOF 6055if ac_fn_c_try_compile "$LINENO" 6056then : 6057 xorg_cv_cc_flag_unknown_warning_option=yes 6058else $as_nop 6059 xorg_cv_cc_flag_unknown_warning_option=no 6060fi 6061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6062fi 6063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6066 CFLAGS="$xorg_testset_save_CFLAGS" 6067fi 6068 6069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6072 fi 6073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6076if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6077then : 6078 printf %s "(cached) " >&6 6079else $as_nop 6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6081/* end confdefs.h. */ 6082int i; 6083_ACEOF 6084if ac_fn_c_try_compile "$LINENO" 6085then : 6086 xorg_cv_cc_flag_unused_command_line_argument=yes 6087else $as_nop 6088 xorg_cv_cc_flag_unused_command_line_argument=no 6089fi 6090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6091fi 6092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6095 CFLAGS="$xorg_testset_save_CFLAGS" 6096fi 6097 6098found="no" 6099 6100 if test $found = "no" ; then 6101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6103 fi 6104 6105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6107 fi 6108 6109 CFLAGS="$CFLAGS -Wold-style-definition" 6110 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6112printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6113 cacheid=xorg_cv_cc_flag__Wold_style_definition 6114 if eval test \${$cacheid+y} 6115then : 6116 printf %s "(cached) " >&6 6117else $as_nop 6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6119/* end confdefs.h. */ 6120int i; 6121int 6122main (void) 6123{ 6124 6125 ; 6126 return 0; 6127} 6128_ACEOF 6129if ac_fn_c_try_link "$LINENO" 6130then : 6131 eval $cacheid=yes 6132else $as_nop 6133 eval $cacheid=no 6134fi 6135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6136 conftest$ac_exeext conftest.$ac_ext 6137fi 6138 6139 6140 CFLAGS="$xorg_testset_save_CFLAGS" 6141 6142 eval supported=\$$cacheid 6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6144printf "%s\n" "$supported" >&6; } 6145 if test "$supported" = "yes" ; then 6146 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6147 found="yes" 6148 fi 6149 fi 6150 6151 if test $found = "no" ; then 6152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6154 fi 6155 6156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6158 fi 6159 6160 CFLAGS="$CFLAGS -fd" 6161 6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6163printf %s "checking if $CC supports -fd... " >&6; } 6164 cacheid=xorg_cv_cc_flag__fd 6165 if eval test \${$cacheid+y} 6166then : 6167 printf %s "(cached) " >&6 6168else $as_nop 6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6170/* end confdefs.h. */ 6171int i; 6172int 6173main (void) 6174{ 6175 6176 ; 6177 return 0; 6178} 6179_ACEOF 6180if ac_fn_c_try_link "$LINENO" 6181then : 6182 eval $cacheid=yes 6183else $as_nop 6184 eval $cacheid=no 6185fi 6186rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6187 conftest$ac_exeext conftest.$ac_ext 6188fi 6189 6190 6191 CFLAGS="$xorg_testset_save_CFLAGS" 6192 6193 eval supported=\$$cacheid 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6195printf "%s\n" "$supported" >&6; } 6196 if test "$supported" = "yes" ; then 6197 BASE_CFLAGS="$BASE_CFLAGS -fd" 6198 found="yes" 6199 fi 6200 fi 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216xorg_testset_save_CFLAGS="$CFLAGS" 6217 6218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6222if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6223then : 6224 printf %s "(cached) " >&6 6225else $as_nop 6226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6227/* end confdefs.h. */ 6228int i; 6229_ACEOF 6230if ac_fn_c_try_compile "$LINENO" 6231then : 6232 xorg_cv_cc_flag_unknown_warning_option=yes 6233else $as_nop 6234 xorg_cv_cc_flag_unknown_warning_option=no 6235fi 6236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6237fi 6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6239printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6241 CFLAGS="$xorg_testset_save_CFLAGS" 6242fi 6243 6244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6247 fi 6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6250printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6251if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6252then : 6253 printf %s "(cached) " >&6 6254else $as_nop 6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256/* end confdefs.h. */ 6257int i; 6258_ACEOF 6259if ac_fn_c_try_compile "$LINENO" 6260then : 6261 xorg_cv_cc_flag_unused_command_line_argument=yes 6262else $as_nop 6263 xorg_cv_cc_flag_unused_command_line_argument=no 6264fi 6265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6266fi 6267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6270 CFLAGS="$xorg_testset_save_CFLAGS" 6271fi 6272 6273found="no" 6274 6275 if test $found = "no" ; then 6276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6278 fi 6279 6280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6282 fi 6283 6284 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6285 6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6287printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6288 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6289 if eval test \${$cacheid+y} 6290then : 6291 printf %s "(cached) " >&6 6292else $as_nop 6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6294/* end confdefs.h. */ 6295int i; 6296int 6297main (void) 6298{ 6299 6300 ; 6301 return 0; 6302} 6303_ACEOF 6304if ac_fn_c_try_link "$LINENO" 6305then : 6306 eval $cacheid=yes 6307else $as_nop 6308 eval $cacheid=no 6309fi 6310rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6311 conftest$ac_exeext conftest.$ac_ext 6312fi 6313 6314 6315 CFLAGS="$xorg_testset_save_CFLAGS" 6316 6317 eval supported=\$$cacheid 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6319printf "%s\n" "$supported" >&6; } 6320 if test "$supported" = "yes" ; then 6321 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6322 found="yes" 6323 fi 6324 fi 6325 6326 6327 6328 6329 6330# This chunk adds additional warnings that could catch undesired effects. 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344xorg_testset_save_CFLAGS="$CFLAGS" 6345 6346if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6349printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6350if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6351then : 6352 printf %s "(cached) " >&6 6353else $as_nop 6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6355/* end confdefs.h. */ 6356int i; 6357_ACEOF 6358if ac_fn_c_try_compile "$LINENO" 6359then : 6360 xorg_cv_cc_flag_unknown_warning_option=yes 6361else $as_nop 6362 xorg_cv_cc_flag_unknown_warning_option=no 6363fi 6364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6365fi 6366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6367printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6369 CFLAGS="$xorg_testset_save_CFLAGS" 6370fi 6371 6372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6375 fi 6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6378printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6379if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6380then : 6381 printf %s "(cached) " >&6 6382else $as_nop 6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6384/* end confdefs.h. */ 6385int i; 6386_ACEOF 6387if ac_fn_c_try_compile "$LINENO" 6388then : 6389 xorg_cv_cc_flag_unused_command_line_argument=yes 6390else $as_nop 6391 xorg_cv_cc_flag_unused_command_line_argument=no 6392fi 6393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6394fi 6395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6396printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6398 CFLAGS="$xorg_testset_save_CFLAGS" 6399fi 6400 6401found="no" 6402 6403 if test $found = "no" ; then 6404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6406 fi 6407 6408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6410 fi 6411 6412 CFLAGS="$CFLAGS -Wunused" 6413 6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6415printf %s "checking if $CC supports -Wunused... " >&6; } 6416 cacheid=xorg_cv_cc_flag__Wunused 6417 if eval test \${$cacheid+y} 6418then : 6419 printf %s "(cached) " >&6 6420else $as_nop 6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6422/* end confdefs.h. */ 6423int i; 6424int 6425main (void) 6426{ 6427 6428 ; 6429 return 0; 6430} 6431_ACEOF 6432if ac_fn_c_try_link "$LINENO" 6433then : 6434 eval $cacheid=yes 6435else $as_nop 6436 eval $cacheid=no 6437fi 6438rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6439 conftest$ac_exeext conftest.$ac_ext 6440fi 6441 6442 6443 CFLAGS="$xorg_testset_save_CFLAGS" 6444 6445 eval supported=\$$cacheid 6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6447printf "%s\n" "$supported" >&6; } 6448 if test "$supported" = "yes" ; then 6449 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6450 found="yes" 6451 fi 6452 fi 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468xorg_testset_save_CFLAGS="$CFLAGS" 6469 6470if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6473printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6474if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6475then : 6476 printf %s "(cached) " >&6 6477else $as_nop 6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6479/* end confdefs.h. */ 6480int i; 6481_ACEOF 6482if ac_fn_c_try_compile "$LINENO" 6483then : 6484 xorg_cv_cc_flag_unknown_warning_option=yes 6485else $as_nop 6486 xorg_cv_cc_flag_unknown_warning_option=no 6487fi 6488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6489fi 6490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6491printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6493 CFLAGS="$xorg_testset_save_CFLAGS" 6494fi 6495 6496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6499 fi 6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6502printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6503if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6504then : 6505 printf %s "(cached) " >&6 6506else $as_nop 6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6508/* end confdefs.h. */ 6509int i; 6510_ACEOF 6511if ac_fn_c_try_compile "$LINENO" 6512then : 6513 xorg_cv_cc_flag_unused_command_line_argument=yes 6514else $as_nop 6515 xorg_cv_cc_flag_unused_command_line_argument=no 6516fi 6517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6518fi 6519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6520printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6522 CFLAGS="$xorg_testset_save_CFLAGS" 6523fi 6524 6525found="no" 6526 6527 if test $found = "no" ; then 6528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6530 fi 6531 6532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6534 fi 6535 6536 CFLAGS="$CFLAGS -Wuninitialized" 6537 6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6539printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6540 cacheid=xorg_cv_cc_flag__Wuninitialized 6541 if eval test \${$cacheid+y} 6542then : 6543 printf %s "(cached) " >&6 6544else $as_nop 6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6546/* end confdefs.h. */ 6547int i; 6548int 6549main (void) 6550{ 6551 6552 ; 6553 return 0; 6554} 6555_ACEOF 6556if ac_fn_c_try_link "$LINENO" 6557then : 6558 eval $cacheid=yes 6559else $as_nop 6560 eval $cacheid=no 6561fi 6562rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6563 conftest$ac_exeext conftest.$ac_ext 6564fi 6565 6566 6567 CFLAGS="$xorg_testset_save_CFLAGS" 6568 6569 eval supported=\$$cacheid 6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6571printf "%s\n" "$supported" >&6; } 6572 if test "$supported" = "yes" ; then 6573 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6574 found="yes" 6575 fi 6576 fi 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592xorg_testset_save_CFLAGS="$CFLAGS" 6593 6594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6597printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6598if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6599then : 6600 printf %s "(cached) " >&6 6601else $as_nop 6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6603/* end confdefs.h. */ 6604int i; 6605_ACEOF 6606if ac_fn_c_try_compile "$LINENO" 6607then : 6608 xorg_cv_cc_flag_unknown_warning_option=yes 6609else $as_nop 6610 xorg_cv_cc_flag_unknown_warning_option=no 6611fi 6612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6613fi 6614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6615printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6617 CFLAGS="$xorg_testset_save_CFLAGS" 6618fi 6619 6620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6623 fi 6624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6626printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6627if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6628then : 6629 printf %s "(cached) " >&6 6630else $as_nop 6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6632/* end confdefs.h. */ 6633int i; 6634_ACEOF 6635if ac_fn_c_try_compile "$LINENO" 6636then : 6637 xorg_cv_cc_flag_unused_command_line_argument=yes 6638else $as_nop 6639 xorg_cv_cc_flag_unused_command_line_argument=no 6640fi 6641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6642fi 6643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6644printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6646 CFLAGS="$xorg_testset_save_CFLAGS" 6647fi 6648 6649found="no" 6650 6651 if test $found = "no" ; then 6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6654 fi 6655 6656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6658 fi 6659 6660 CFLAGS="$CFLAGS -Wshadow" 6661 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6663printf %s "checking if $CC supports -Wshadow... " >&6; } 6664 cacheid=xorg_cv_cc_flag__Wshadow 6665 if eval test \${$cacheid+y} 6666then : 6667 printf %s "(cached) " >&6 6668else $as_nop 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671int i; 6672int 6673main (void) 6674{ 6675 6676 ; 6677 return 0; 6678} 6679_ACEOF 6680if ac_fn_c_try_link "$LINENO" 6681then : 6682 eval $cacheid=yes 6683else $as_nop 6684 eval $cacheid=no 6685fi 6686rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6687 conftest$ac_exeext conftest.$ac_ext 6688fi 6689 6690 6691 CFLAGS="$xorg_testset_save_CFLAGS" 6692 6693 eval supported=\$$cacheid 6694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6695printf "%s\n" "$supported" >&6; } 6696 if test "$supported" = "yes" ; then 6697 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6698 found="yes" 6699 fi 6700 fi 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716xorg_testset_save_CFLAGS="$CFLAGS" 6717 6718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6722if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6723then : 6724 printf %s "(cached) " >&6 6725else $as_nop 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6727/* end confdefs.h. */ 6728int i; 6729_ACEOF 6730if ac_fn_c_try_compile "$LINENO" 6731then : 6732 xorg_cv_cc_flag_unknown_warning_option=yes 6733else $as_nop 6734 xorg_cv_cc_flag_unknown_warning_option=no 6735fi 6736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6737fi 6738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6741 CFLAGS="$xorg_testset_save_CFLAGS" 6742fi 6743 6744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6747 fi 6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6751if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6752then : 6753 printf %s "(cached) " >&6 6754else $as_nop 6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6756/* end confdefs.h. */ 6757int i; 6758_ACEOF 6759if ac_fn_c_try_compile "$LINENO" 6760then : 6761 xorg_cv_cc_flag_unused_command_line_argument=yes 6762else $as_nop 6763 xorg_cv_cc_flag_unused_command_line_argument=no 6764fi 6765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6766fi 6767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6770 CFLAGS="$xorg_testset_save_CFLAGS" 6771fi 6772 6773found="no" 6774 6775 if test $found = "no" ; then 6776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6778 fi 6779 6780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6782 fi 6783 6784 CFLAGS="$CFLAGS -Wmissing-noreturn" 6785 6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6787printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6788 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6789 if eval test \${$cacheid+y} 6790then : 6791 printf %s "(cached) " >&6 6792else $as_nop 6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6794/* end confdefs.h. */ 6795int i; 6796int 6797main (void) 6798{ 6799 6800 ; 6801 return 0; 6802} 6803_ACEOF 6804if ac_fn_c_try_link "$LINENO" 6805then : 6806 eval $cacheid=yes 6807else $as_nop 6808 eval $cacheid=no 6809fi 6810rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6811 conftest$ac_exeext conftest.$ac_ext 6812fi 6813 6814 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816 6817 eval supported=\$$cacheid 6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6819printf "%s\n" "$supported" >&6; } 6820 if test "$supported" = "yes" ; then 6821 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6822 found="yes" 6823 fi 6824 fi 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840xorg_testset_save_CFLAGS="$CFLAGS" 6841 6842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6845printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6846if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6847then : 6848 printf %s "(cached) " >&6 6849else $as_nop 6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6851/* end confdefs.h. */ 6852int i; 6853_ACEOF 6854if ac_fn_c_try_compile "$LINENO" 6855then : 6856 xorg_cv_cc_flag_unknown_warning_option=yes 6857else $as_nop 6858 xorg_cv_cc_flag_unknown_warning_option=no 6859fi 6860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6861fi 6862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6863printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6865 CFLAGS="$xorg_testset_save_CFLAGS" 6866fi 6867 6868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6871 fi 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6874printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6875if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6876then : 6877 printf %s "(cached) " >&6 6878else $as_nop 6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6880/* end confdefs.h. */ 6881int i; 6882_ACEOF 6883if ac_fn_c_try_compile "$LINENO" 6884then : 6885 xorg_cv_cc_flag_unused_command_line_argument=yes 6886else $as_nop 6887 xorg_cv_cc_flag_unused_command_line_argument=no 6888fi 6889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6890fi 6891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6892printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6894 CFLAGS="$xorg_testset_save_CFLAGS" 6895fi 6896 6897found="no" 6898 6899 if test $found = "no" ; then 6900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6902 fi 6903 6904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6906 fi 6907 6908 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6909 6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6911printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6912 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6913 if eval test \${$cacheid+y} 6914then : 6915 printf %s "(cached) " >&6 6916else $as_nop 6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6918/* end confdefs.h. */ 6919int i; 6920int 6921main (void) 6922{ 6923 6924 ; 6925 return 0; 6926} 6927_ACEOF 6928if ac_fn_c_try_link "$LINENO" 6929then : 6930 eval $cacheid=yes 6931else $as_nop 6932 eval $cacheid=no 6933fi 6934rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6935 conftest$ac_exeext conftest.$ac_ext 6936fi 6937 6938 6939 CFLAGS="$xorg_testset_save_CFLAGS" 6940 6941 eval supported=\$$cacheid 6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6943printf "%s\n" "$supported" >&6; } 6944 if test "$supported" = "yes" ; then 6945 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6946 found="yes" 6947 fi 6948 fi 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964xorg_testset_save_CFLAGS="$CFLAGS" 6965 6966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6969printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6970if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6971then : 6972 printf %s "(cached) " >&6 6973else $as_nop 6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6975/* end confdefs.h. */ 6976int i; 6977_ACEOF 6978if ac_fn_c_try_compile "$LINENO" 6979then : 6980 xorg_cv_cc_flag_unknown_warning_option=yes 6981else $as_nop 6982 xorg_cv_cc_flag_unknown_warning_option=no 6983fi 6984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6985fi 6986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6987printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6989 CFLAGS="$xorg_testset_save_CFLAGS" 6990fi 6991 6992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6995 fi 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6998printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6999if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7000then : 7001 printf %s "(cached) " >&6 7002else $as_nop 7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004/* end confdefs.h. */ 7005int i; 7006_ACEOF 7007if ac_fn_c_try_compile "$LINENO" 7008then : 7009 xorg_cv_cc_flag_unused_command_line_argument=yes 7010else $as_nop 7011 xorg_cv_cc_flag_unused_command_line_argument=no 7012fi 7013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7014fi 7015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7018 CFLAGS="$xorg_testset_save_CFLAGS" 7019fi 7020 7021found="no" 7022 7023 if test $found = "no" ; then 7024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7026 fi 7027 7028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7030 fi 7031 7032 CFLAGS="$CFLAGS -Wredundant-decls" 7033 7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7035printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7036 cacheid=xorg_cv_cc_flag__Wredundant_decls 7037 if eval test \${$cacheid+y} 7038then : 7039 printf %s "(cached) " >&6 7040else $as_nop 7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7042/* end confdefs.h. */ 7043int i; 7044int 7045main (void) 7046{ 7047 7048 ; 7049 return 0; 7050} 7051_ACEOF 7052if ac_fn_c_try_link "$LINENO" 7053then : 7054 eval $cacheid=yes 7055else $as_nop 7056 eval $cacheid=no 7057fi 7058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7059 conftest$ac_exeext conftest.$ac_ext 7060fi 7061 7062 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064 7065 eval supported=\$$cacheid 7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7067printf "%s\n" "$supported" >&6; } 7068 if test "$supported" = "yes" ; then 7069 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7070 found="yes" 7071 fi 7072 fi 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088xorg_testset_save_CFLAGS="$CFLAGS" 7089 7090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7093printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7094if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7095then : 7096 printf %s "(cached) " >&6 7097else $as_nop 7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7099/* end confdefs.h. */ 7100int i; 7101_ACEOF 7102if ac_fn_c_try_compile "$LINENO" 7103then : 7104 xorg_cv_cc_flag_unknown_warning_option=yes 7105else $as_nop 7106 xorg_cv_cc_flag_unknown_warning_option=no 7107fi 7108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7109fi 7110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7113 CFLAGS="$xorg_testset_save_CFLAGS" 7114fi 7115 7116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7119 fi 7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7123if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7124then : 7125 printf %s "(cached) " >&6 7126else $as_nop 7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7128/* end confdefs.h. */ 7129int i; 7130_ACEOF 7131if ac_fn_c_try_compile "$LINENO" 7132then : 7133 xorg_cv_cc_flag_unused_command_line_argument=yes 7134else $as_nop 7135 xorg_cv_cc_flag_unused_command_line_argument=no 7136fi 7137rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7138fi 7139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7140printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7142 CFLAGS="$xorg_testset_save_CFLAGS" 7143fi 7144 7145found="no" 7146 7147 if test $found = "no" ; then 7148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7150 fi 7151 7152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7154 fi 7155 7156 CFLAGS="$CFLAGS -Wlogical-op" 7157 7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7159printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7160 cacheid=xorg_cv_cc_flag__Wlogical_op 7161 if eval test \${$cacheid+y} 7162then : 7163 printf %s "(cached) " >&6 7164else $as_nop 7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166/* end confdefs.h. */ 7167int i; 7168int 7169main (void) 7170{ 7171 7172 ; 7173 return 0; 7174} 7175_ACEOF 7176if ac_fn_c_try_link "$LINENO" 7177then : 7178 eval $cacheid=yes 7179else $as_nop 7180 eval $cacheid=no 7181fi 7182rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7183 conftest$ac_exeext conftest.$ac_ext 7184fi 7185 7186 7187 CFLAGS="$xorg_testset_save_CFLAGS" 7188 7189 eval supported=\$$cacheid 7190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7191printf "%s\n" "$supported" >&6; } 7192 if test "$supported" = "yes" ; then 7193 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7194 found="yes" 7195 fi 7196 fi 7197 7198 7199 7200# These are currently disabled because they are noisy. They will be enabled 7201# in the future once the codebase is sufficiently modernized to silence 7202# them. For now, I don't want them to drown out the other warnings. 7203# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7204# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7205# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7206 7207# Turn some warnings into errors, so we don't accidentally get successful builds 7208# when there are problems that should be fixed. 7209 7210if test "x$SELECTIVE_WERROR" = "xyes" ; then 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224xorg_testset_save_CFLAGS="$CFLAGS" 7225 7226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7229printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7230if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7231then : 7232 printf %s "(cached) " >&6 7233else $as_nop 7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7235/* end confdefs.h. */ 7236int i; 7237_ACEOF 7238if ac_fn_c_try_compile "$LINENO" 7239then : 7240 xorg_cv_cc_flag_unknown_warning_option=yes 7241else $as_nop 7242 xorg_cv_cc_flag_unknown_warning_option=no 7243fi 7244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7245fi 7246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7247printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7249 CFLAGS="$xorg_testset_save_CFLAGS" 7250fi 7251 7252if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7255 fi 7256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7258printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7259if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7260then : 7261 printf %s "(cached) " >&6 7262else $as_nop 7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7264/* end confdefs.h. */ 7265int i; 7266_ACEOF 7267if ac_fn_c_try_compile "$LINENO" 7268then : 7269 xorg_cv_cc_flag_unused_command_line_argument=yes 7270else $as_nop 7271 xorg_cv_cc_flag_unused_command_line_argument=no 7272fi 7273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7274fi 7275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7276printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7278 CFLAGS="$xorg_testset_save_CFLAGS" 7279fi 7280 7281found="no" 7282 7283 if test $found = "no" ; then 7284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7286 fi 7287 7288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7290 fi 7291 7292 CFLAGS="$CFLAGS -Werror=implicit" 7293 7294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7295printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7296 cacheid=xorg_cv_cc_flag__Werror_implicit 7297 if eval test \${$cacheid+y} 7298then : 7299 printf %s "(cached) " >&6 7300else $as_nop 7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7302/* end confdefs.h. */ 7303int i; 7304int 7305main (void) 7306{ 7307 7308 ; 7309 return 0; 7310} 7311_ACEOF 7312if ac_fn_c_try_link "$LINENO" 7313then : 7314 eval $cacheid=yes 7315else $as_nop 7316 eval $cacheid=no 7317fi 7318rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7319 conftest$ac_exeext conftest.$ac_ext 7320fi 7321 7322 7323 CFLAGS="$xorg_testset_save_CFLAGS" 7324 7325 eval supported=\$$cacheid 7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7327printf "%s\n" "$supported" >&6; } 7328 if test "$supported" = "yes" ; then 7329 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7330 found="yes" 7331 fi 7332 fi 7333 7334 if test $found = "no" ; then 7335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7337 fi 7338 7339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7341 fi 7342 7343 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7344 7345 { 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 7346printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7347 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7348 if eval test \${$cacheid+y} 7349then : 7350 printf %s "(cached) " >&6 7351else $as_nop 7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7353/* end confdefs.h. */ 7354int i; 7355int 7356main (void) 7357{ 7358 7359 ; 7360 return 0; 7361} 7362_ACEOF 7363if ac_fn_c_try_link "$LINENO" 7364then : 7365 eval $cacheid=yes 7366else $as_nop 7367 eval $cacheid=no 7368fi 7369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7370 conftest$ac_exeext conftest.$ac_ext 7371fi 7372 7373 7374 CFLAGS="$xorg_testset_save_CFLAGS" 7375 7376 eval supported=\$$cacheid 7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7378printf "%s\n" "$supported" >&6; } 7379 if test "$supported" = "yes" ; then 7380 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7381 found="yes" 7382 fi 7383 fi 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399xorg_testset_save_CFLAGS="$CFLAGS" 7400 7401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7404printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7405if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7406then : 7407 printf %s "(cached) " >&6 7408else $as_nop 7409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7410/* end confdefs.h. */ 7411int i; 7412_ACEOF 7413if ac_fn_c_try_compile "$LINENO" 7414then : 7415 xorg_cv_cc_flag_unknown_warning_option=yes 7416else $as_nop 7417 xorg_cv_cc_flag_unknown_warning_option=no 7418fi 7419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7420fi 7421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7422printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7423 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7424 CFLAGS="$xorg_testset_save_CFLAGS" 7425fi 7426 7427if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7430 fi 7431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7433printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7434if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7435then : 7436 printf %s "(cached) " >&6 7437else $as_nop 7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7439/* end confdefs.h. */ 7440int i; 7441_ACEOF 7442if ac_fn_c_try_compile "$LINENO" 7443then : 7444 xorg_cv_cc_flag_unused_command_line_argument=yes 7445else $as_nop 7446 xorg_cv_cc_flag_unused_command_line_argument=no 7447fi 7448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7449fi 7450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7451printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7453 CFLAGS="$xorg_testset_save_CFLAGS" 7454fi 7455 7456found="no" 7457 7458 if test $found = "no" ; then 7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7461 fi 7462 7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7465 fi 7466 7467 CFLAGS="$CFLAGS -Werror=nonnull" 7468 7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7470printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7471 cacheid=xorg_cv_cc_flag__Werror_nonnull 7472 if eval test \${$cacheid+y} 7473then : 7474 printf %s "(cached) " >&6 7475else $as_nop 7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7477/* end confdefs.h. */ 7478int i; 7479int 7480main (void) 7481{ 7482 7483 ; 7484 return 0; 7485} 7486_ACEOF 7487if ac_fn_c_try_link "$LINENO" 7488then : 7489 eval $cacheid=yes 7490else $as_nop 7491 eval $cacheid=no 7492fi 7493rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7494 conftest$ac_exeext conftest.$ac_ext 7495fi 7496 7497 7498 CFLAGS="$xorg_testset_save_CFLAGS" 7499 7500 eval supported=\$$cacheid 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7502printf "%s\n" "$supported" >&6; } 7503 if test "$supported" = "yes" ; then 7504 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7505 found="yes" 7506 fi 7507 fi 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523xorg_testset_save_CFLAGS="$CFLAGS" 7524 7525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7529if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7530then : 7531 printf %s "(cached) " >&6 7532else $as_nop 7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534/* end confdefs.h. */ 7535int i; 7536_ACEOF 7537if ac_fn_c_try_compile "$LINENO" 7538then : 7539 xorg_cv_cc_flag_unknown_warning_option=yes 7540else $as_nop 7541 xorg_cv_cc_flag_unknown_warning_option=no 7542fi 7543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7544fi 7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7546printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7547 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7548 CFLAGS="$xorg_testset_save_CFLAGS" 7549fi 7550 7551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7554 fi 7555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7557printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7558if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7559then : 7560 printf %s "(cached) " >&6 7561else $as_nop 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564int i; 7565_ACEOF 7566if ac_fn_c_try_compile "$LINENO" 7567then : 7568 xorg_cv_cc_flag_unused_command_line_argument=yes 7569else $as_nop 7570 xorg_cv_cc_flag_unused_command_line_argument=no 7571fi 7572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7573fi 7574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7575printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7576 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7577 CFLAGS="$xorg_testset_save_CFLAGS" 7578fi 7579 7580found="no" 7581 7582 if test $found = "no" ; then 7583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7585 fi 7586 7587 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7589 fi 7590 7591 CFLAGS="$CFLAGS -Werror=init-self" 7592 7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7594printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7595 cacheid=xorg_cv_cc_flag__Werror_init_self 7596 if eval test \${$cacheid+y} 7597then : 7598 printf %s "(cached) " >&6 7599else $as_nop 7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7601/* end confdefs.h. */ 7602int i; 7603int 7604main (void) 7605{ 7606 7607 ; 7608 return 0; 7609} 7610_ACEOF 7611if ac_fn_c_try_link "$LINENO" 7612then : 7613 eval $cacheid=yes 7614else $as_nop 7615 eval $cacheid=no 7616fi 7617rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7618 conftest$ac_exeext conftest.$ac_ext 7619fi 7620 7621 7622 CFLAGS="$xorg_testset_save_CFLAGS" 7623 7624 eval supported=\$$cacheid 7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7626printf "%s\n" "$supported" >&6; } 7627 if test "$supported" = "yes" ; then 7628 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7629 found="yes" 7630 fi 7631 fi 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647xorg_testset_save_CFLAGS="$CFLAGS" 7648 7649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7650 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7652printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7653if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7654then : 7655 printf %s "(cached) " >&6 7656else $as_nop 7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7658/* end confdefs.h. */ 7659int i; 7660_ACEOF 7661if ac_fn_c_try_compile "$LINENO" 7662then : 7663 xorg_cv_cc_flag_unknown_warning_option=yes 7664else $as_nop 7665 xorg_cv_cc_flag_unknown_warning_option=no 7666fi 7667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7668fi 7669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7671 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7672 CFLAGS="$xorg_testset_save_CFLAGS" 7673fi 7674 7675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7678 fi 7679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7682if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7683then : 7684 printf %s "(cached) " >&6 7685else $as_nop 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688int i; 7689_ACEOF 7690if ac_fn_c_try_compile "$LINENO" 7691then : 7692 xorg_cv_cc_flag_unused_command_line_argument=yes 7693else $as_nop 7694 xorg_cv_cc_flag_unused_command_line_argument=no 7695fi 7696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7697fi 7698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7701 CFLAGS="$xorg_testset_save_CFLAGS" 7702fi 7703 7704found="no" 7705 7706 if test $found = "no" ; then 7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7709 fi 7710 7711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7713 fi 7714 7715 CFLAGS="$CFLAGS -Werror=main" 7716 7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7718printf %s "checking if $CC supports -Werror=main... " >&6; } 7719 cacheid=xorg_cv_cc_flag__Werror_main 7720 if eval test \${$cacheid+y} 7721then : 7722 printf %s "(cached) " >&6 7723else $as_nop 7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7725/* end confdefs.h. */ 7726int i; 7727int 7728main (void) 7729{ 7730 7731 ; 7732 return 0; 7733} 7734_ACEOF 7735if ac_fn_c_try_link "$LINENO" 7736then : 7737 eval $cacheid=yes 7738else $as_nop 7739 eval $cacheid=no 7740fi 7741rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7742 conftest$ac_exeext conftest.$ac_ext 7743fi 7744 7745 7746 CFLAGS="$xorg_testset_save_CFLAGS" 7747 7748 eval supported=\$$cacheid 7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7750printf "%s\n" "$supported" >&6; } 7751 if test "$supported" = "yes" ; then 7752 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7753 found="yes" 7754 fi 7755 fi 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771xorg_testset_save_CFLAGS="$CFLAGS" 7772 7773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7777if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7778then : 7779 printf %s "(cached) " >&6 7780else $as_nop 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784_ACEOF 7785if ac_fn_c_try_compile "$LINENO" 7786then : 7787 xorg_cv_cc_flag_unknown_warning_option=yes 7788else $as_nop 7789 xorg_cv_cc_flag_unknown_warning_option=no 7790fi 7791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7792fi 7793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7794printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7796 CFLAGS="$xorg_testset_save_CFLAGS" 7797fi 7798 7799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7802 fi 7803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7805printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7806if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7807then : 7808 printf %s "(cached) " >&6 7809else $as_nop 7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812int i; 7813_ACEOF 7814if ac_fn_c_try_compile "$LINENO" 7815then : 7816 xorg_cv_cc_flag_unused_command_line_argument=yes 7817else $as_nop 7818 xorg_cv_cc_flag_unused_command_line_argument=no 7819fi 7820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7821fi 7822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7825 CFLAGS="$xorg_testset_save_CFLAGS" 7826fi 7827 7828found="no" 7829 7830 if test $found = "no" ; then 7831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7833 fi 7834 7835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7837 fi 7838 7839 CFLAGS="$CFLAGS -Werror=missing-braces" 7840 7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7842printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7843 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7844 if eval test \${$cacheid+y} 7845then : 7846 printf %s "(cached) " >&6 7847else $as_nop 7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7849/* end confdefs.h. */ 7850int i; 7851int 7852main (void) 7853{ 7854 7855 ; 7856 return 0; 7857} 7858_ACEOF 7859if ac_fn_c_try_link "$LINENO" 7860then : 7861 eval $cacheid=yes 7862else $as_nop 7863 eval $cacheid=no 7864fi 7865rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7866 conftest$ac_exeext conftest.$ac_ext 7867fi 7868 7869 7870 CFLAGS="$xorg_testset_save_CFLAGS" 7871 7872 eval supported=\$$cacheid 7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7874printf "%s\n" "$supported" >&6; } 7875 if test "$supported" = "yes" ; then 7876 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7877 found="yes" 7878 fi 7879 fi 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895xorg_testset_save_CFLAGS="$CFLAGS" 7896 7897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7900printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7901if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7902then : 7903 printf %s "(cached) " >&6 7904else $as_nop 7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7906/* end confdefs.h. */ 7907int i; 7908_ACEOF 7909if ac_fn_c_try_compile "$LINENO" 7910then : 7911 xorg_cv_cc_flag_unknown_warning_option=yes 7912else $as_nop 7913 xorg_cv_cc_flag_unknown_warning_option=no 7914fi 7915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7916fi 7917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7918printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7920 CFLAGS="$xorg_testset_save_CFLAGS" 7921fi 7922 7923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7926 fi 7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7929printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7930if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7931then : 7932 printf %s "(cached) " >&6 7933else $as_nop 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936int i; 7937_ACEOF 7938if ac_fn_c_try_compile "$LINENO" 7939then : 7940 xorg_cv_cc_flag_unused_command_line_argument=yes 7941else $as_nop 7942 xorg_cv_cc_flag_unused_command_line_argument=no 7943fi 7944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7945fi 7946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7947printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7949 CFLAGS="$xorg_testset_save_CFLAGS" 7950fi 7951 7952found="no" 7953 7954 if test $found = "no" ; then 7955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7957 fi 7958 7959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7961 fi 7962 7963 CFLAGS="$CFLAGS -Werror=sequence-point" 7964 7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7966printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7967 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7968 if eval test \${$cacheid+y} 7969then : 7970 printf %s "(cached) " >&6 7971else $as_nop 7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7973/* end confdefs.h. */ 7974int i; 7975int 7976main (void) 7977{ 7978 7979 ; 7980 return 0; 7981} 7982_ACEOF 7983if ac_fn_c_try_link "$LINENO" 7984then : 7985 eval $cacheid=yes 7986else $as_nop 7987 eval $cacheid=no 7988fi 7989rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7990 conftest$ac_exeext conftest.$ac_ext 7991fi 7992 7993 7994 CFLAGS="$xorg_testset_save_CFLAGS" 7995 7996 eval supported=\$$cacheid 7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7998printf "%s\n" "$supported" >&6; } 7999 if test "$supported" = "yes" ; then 8000 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8001 found="yes" 8002 fi 8003 fi 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019xorg_testset_save_CFLAGS="$CFLAGS" 8020 8021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8025if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8026then : 8027 printf %s "(cached) " >&6 8028else $as_nop 8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8030/* end confdefs.h. */ 8031int i; 8032_ACEOF 8033if ac_fn_c_try_compile "$LINENO" 8034then : 8035 xorg_cv_cc_flag_unknown_warning_option=yes 8036else $as_nop 8037 xorg_cv_cc_flag_unknown_warning_option=no 8038fi 8039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8040fi 8041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8044 CFLAGS="$xorg_testset_save_CFLAGS" 8045fi 8046 8047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8050 fi 8051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8054if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8055then : 8056 printf %s "(cached) " >&6 8057else $as_nop 8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8059/* end confdefs.h. */ 8060int i; 8061_ACEOF 8062if ac_fn_c_try_compile "$LINENO" 8063then : 8064 xorg_cv_cc_flag_unused_command_line_argument=yes 8065else $as_nop 8066 xorg_cv_cc_flag_unused_command_line_argument=no 8067fi 8068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8069fi 8070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8073 CFLAGS="$xorg_testset_save_CFLAGS" 8074fi 8075 8076found="no" 8077 8078 if test $found = "no" ; then 8079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8081 fi 8082 8083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8085 fi 8086 8087 CFLAGS="$CFLAGS -Werror=return-type" 8088 8089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8090printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8091 cacheid=xorg_cv_cc_flag__Werror_return_type 8092 if eval test \${$cacheid+y} 8093then : 8094 printf %s "(cached) " >&6 8095else $as_nop 8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097/* end confdefs.h. */ 8098int i; 8099int 8100main (void) 8101{ 8102 8103 ; 8104 return 0; 8105} 8106_ACEOF 8107if ac_fn_c_try_link "$LINENO" 8108then : 8109 eval $cacheid=yes 8110else $as_nop 8111 eval $cacheid=no 8112fi 8113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8114 conftest$ac_exeext conftest.$ac_ext 8115fi 8116 8117 8118 CFLAGS="$xorg_testset_save_CFLAGS" 8119 8120 eval supported=\$$cacheid 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8122printf "%s\n" "$supported" >&6; } 8123 if test "$supported" = "yes" ; then 8124 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8125 found="yes" 8126 fi 8127 fi 8128 8129 if test $found = "no" ; then 8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8132 fi 8133 8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8136 fi 8137 8138 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8139 8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8141printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8142 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8143 if eval test \${$cacheid+y} 8144then : 8145 printf %s "(cached) " >&6 8146else $as_nop 8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148/* end confdefs.h. */ 8149int i; 8150int 8151main (void) 8152{ 8153 8154 ; 8155 return 0; 8156} 8157_ACEOF 8158if ac_fn_c_try_link "$LINENO" 8159then : 8160 eval $cacheid=yes 8161else $as_nop 8162 eval $cacheid=no 8163fi 8164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8165 conftest$ac_exeext conftest.$ac_ext 8166fi 8167 8168 8169 CFLAGS="$xorg_testset_save_CFLAGS" 8170 8171 eval supported=\$$cacheid 8172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8173printf "%s\n" "$supported" >&6; } 8174 if test "$supported" = "yes" ; then 8175 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8176 found="yes" 8177 fi 8178 fi 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194xorg_testset_save_CFLAGS="$CFLAGS" 8195 8196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8200if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8201then : 8202 printf %s "(cached) " >&6 8203else $as_nop 8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8205/* end confdefs.h. */ 8206int i; 8207_ACEOF 8208if ac_fn_c_try_compile "$LINENO" 8209then : 8210 xorg_cv_cc_flag_unknown_warning_option=yes 8211else $as_nop 8212 xorg_cv_cc_flag_unknown_warning_option=no 8213fi 8214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8215fi 8216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8219 CFLAGS="$xorg_testset_save_CFLAGS" 8220fi 8221 8222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8225 fi 8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8229if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8230then : 8231 printf %s "(cached) " >&6 8232else $as_nop 8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234/* end confdefs.h. */ 8235int i; 8236_ACEOF 8237if ac_fn_c_try_compile "$LINENO" 8238then : 8239 xorg_cv_cc_flag_unused_command_line_argument=yes 8240else $as_nop 8241 xorg_cv_cc_flag_unused_command_line_argument=no 8242fi 8243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8244fi 8245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8248 CFLAGS="$xorg_testset_save_CFLAGS" 8249fi 8250 8251found="no" 8252 8253 if test $found = "no" ; then 8254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8256 fi 8257 8258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8260 fi 8261 8262 CFLAGS="$CFLAGS -Werror=trigraphs" 8263 8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8265printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8266 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8267 if eval test \${$cacheid+y} 8268then : 8269 printf %s "(cached) " >&6 8270else $as_nop 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8272/* end confdefs.h. */ 8273int i; 8274int 8275main (void) 8276{ 8277 8278 ; 8279 return 0; 8280} 8281_ACEOF 8282if ac_fn_c_try_link "$LINENO" 8283then : 8284 eval $cacheid=yes 8285else $as_nop 8286 eval $cacheid=no 8287fi 8288rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8289 conftest$ac_exeext conftest.$ac_ext 8290fi 8291 8292 8293 CFLAGS="$xorg_testset_save_CFLAGS" 8294 8295 eval supported=\$$cacheid 8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8297printf "%s\n" "$supported" >&6; } 8298 if test "$supported" = "yes" ; then 8299 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8300 found="yes" 8301 fi 8302 fi 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318xorg_testset_save_CFLAGS="$CFLAGS" 8319 8320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8323printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8324if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8325then : 8326 printf %s "(cached) " >&6 8327else $as_nop 8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329/* end confdefs.h. */ 8330int i; 8331_ACEOF 8332if ac_fn_c_try_compile "$LINENO" 8333then : 8334 xorg_cv_cc_flag_unknown_warning_option=yes 8335else $as_nop 8336 xorg_cv_cc_flag_unknown_warning_option=no 8337fi 8338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8339fi 8340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8341printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8343 CFLAGS="$xorg_testset_save_CFLAGS" 8344fi 8345 8346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8349 fi 8350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8352printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8353if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8354then : 8355 printf %s "(cached) " >&6 8356else $as_nop 8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359int i; 8360_ACEOF 8361if ac_fn_c_try_compile "$LINENO" 8362then : 8363 xorg_cv_cc_flag_unused_command_line_argument=yes 8364else $as_nop 8365 xorg_cv_cc_flag_unused_command_line_argument=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8368fi 8369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8370printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8371 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8372 CFLAGS="$xorg_testset_save_CFLAGS" 8373fi 8374 8375found="no" 8376 8377 if test $found = "no" ; then 8378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8380 fi 8381 8382 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8384 fi 8385 8386 CFLAGS="$CFLAGS -Werror=array-bounds" 8387 8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8389printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8390 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8391 if eval test \${$cacheid+y} 8392then : 8393 printf %s "(cached) " >&6 8394else $as_nop 8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8396/* end confdefs.h. */ 8397int i; 8398int 8399main (void) 8400{ 8401 8402 ; 8403 return 0; 8404} 8405_ACEOF 8406if ac_fn_c_try_link "$LINENO" 8407then : 8408 eval $cacheid=yes 8409else $as_nop 8410 eval $cacheid=no 8411fi 8412rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8413 conftest$ac_exeext conftest.$ac_ext 8414fi 8415 8416 8417 CFLAGS="$xorg_testset_save_CFLAGS" 8418 8419 eval supported=\$$cacheid 8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8421printf "%s\n" "$supported" >&6; } 8422 if test "$supported" = "yes" ; then 8423 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8424 found="yes" 8425 fi 8426 fi 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442xorg_testset_save_CFLAGS="$CFLAGS" 8443 8444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8448if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8449then : 8450 printf %s "(cached) " >&6 8451else $as_nop 8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454int i; 8455_ACEOF 8456if ac_fn_c_try_compile "$LINENO" 8457then : 8458 xorg_cv_cc_flag_unknown_warning_option=yes 8459else $as_nop 8460 xorg_cv_cc_flag_unknown_warning_option=no 8461fi 8462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8463fi 8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8467 CFLAGS="$xorg_testset_save_CFLAGS" 8468fi 8469 8470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8473 fi 8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8477if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8478then : 8479 printf %s "(cached) " >&6 8480else $as_nop 8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483int i; 8484_ACEOF 8485if ac_fn_c_try_compile "$LINENO" 8486then : 8487 xorg_cv_cc_flag_unused_command_line_argument=yes 8488else $as_nop 8489 xorg_cv_cc_flag_unused_command_line_argument=no 8490fi 8491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8492fi 8493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8494printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8496 CFLAGS="$xorg_testset_save_CFLAGS" 8497fi 8498 8499found="no" 8500 8501 if test $found = "no" ; then 8502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8504 fi 8505 8506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8508 fi 8509 8510 CFLAGS="$CFLAGS -Werror=write-strings" 8511 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8513printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8514 cacheid=xorg_cv_cc_flag__Werror_write_strings 8515 if eval test \${$cacheid+y} 8516then : 8517 printf %s "(cached) " >&6 8518else $as_nop 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521int i; 8522int 8523main (void) 8524{ 8525 8526 ; 8527 return 0; 8528} 8529_ACEOF 8530if ac_fn_c_try_link "$LINENO" 8531then : 8532 eval $cacheid=yes 8533else $as_nop 8534 eval $cacheid=no 8535fi 8536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8537 conftest$ac_exeext conftest.$ac_ext 8538fi 8539 8540 8541 CFLAGS="$xorg_testset_save_CFLAGS" 8542 8543 eval supported=\$$cacheid 8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8545printf "%s\n" "$supported" >&6; } 8546 if test "$supported" = "yes" ; then 8547 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8548 found="yes" 8549 fi 8550 fi 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566xorg_testset_save_CFLAGS="$CFLAGS" 8567 8568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8573then : 8574 printf %s "(cached) " >&6 8575else $as_nop 8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577/* end confdefs.h. */ 8578int i; 8579_ACEOF 8580if ac_fn_c_try_compile "$LINENO" 8581then : 8582 xorg_cv_cc_flag_unknown_warning_option=yes 8583else $as_nop 8584 xorg_cv_cc_flag_unknown_warning_option=no 8585fi 8586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8587fi 8588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8589printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8591 CFLAGS="$xorg_testset_save_CFLAGS" 8592fi 8593 8594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8597 fi 8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8600printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8601if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8602then : 8603 printf %s "(cached) " >&6 8604else $as_nop 8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8606/* end confdefs.h. */ 8607int i; 8608_ACEOF 8609if ac_fn_c_try_compile "$LINENO" 8610then : 8611 xorg_cv_cc_flag_unused_command_line_argument=yes 8612else $as_nop 8613 xorg_cv_cc_flag_unused_command_line_argument=no 8614fi 8615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8616fi 8617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621fi 8622 8623found="no" 8624 8625 if test $found = "no" ; then 8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8628 fi 8629 8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8632 fi 8633 8634 CFLAGS="$CFLAGS -Werror=address" 8635 8636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8637printf %s "checking if $CC supports -Werror=address... " >&6; } 8638 cacheid=xorg_cv_cc_flag__Werror_address 8639 if eval test \${$cacheid+y} 8640then : 8641 printf %s "(cached) " >&6 8642else $as_nop 8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8644/* end confdefs.h. */ 8645int i; 8646int 8647main (void) 8648{ 8649 8650 ; 8651 return 0; 8652} 8653_ACEOF 8654if ac_fn_c_try_link "$LINENO" 8655then : 8656 eval $cacheid=yes 8657else $as_nop 8658 eval $cacheid=no 8659fi 8660rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8661 conftest$ac_exeext conftest.$ac_ext 8662fi 8663 8664 8665 CFLAGS="$xorg_testset_save_CFLAGS" 8666 8667 eval supported=\$$cacheid 8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8669printf "%s\n" "$supported" >&6; } 8670 if test "$supported" = "yes" ; then 8671 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8672 found="yes" 8673 fi 8674 fi 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690xorg_testset_save_CFLAGS="$CFLAGS" 8691 8692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8696if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8697then : 8698 printf %s "(cached) " >&6 8699else $as_nop 8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701/* end confdefs.h. */ 8702int i; 8703_ACEOF 8704if ac_fn_c_try_compile "$LINENO" 8705then : 8706 xorg_cv_cc_flag_unknown_warning_option=yes 8707else $as_nop 8708 xorg_cv_cc_flag_unknown_warning_option=no 8709fi 8710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8711fi 8712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8713printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8715 CFLAGS="$xorg_testset_save_CFLAGS" 8716fi 8717 8718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8721 fi 8722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8724printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8725if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8726then : 8727 printf %s "(cached) " >&6 8728else $as_nop 8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8730/* end confdefs.h. */ 8731int i; 8732_ACEOF 8733if ac_fn_c_try_compile "$LINENO" 8734then : 8735 xorg_cv_cc_flag_unused_command_line_argument=yes 8736else $as_nop 8737 xorg_cv_cc_flag_unused_command_line_argument=no 8738fi 8739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8740fi 8741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8742printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8744 CFLAGS="$xorg_testset_save_CFLAGS" 8745fi 8746 8747found="no" 8748 8749 if test $found = "no" ; then 8750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8752 fi 8753 8754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8756 fi 8757 8758 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8759 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8761printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8762 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8763 if eval test \${$cacheid+y} 8764then : 8765 printf %s "(cached) " >&6 8766else $as_nop 8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768/* end confdefs.h. */ 8769int i; 8770int 8771main (void) 8772{ 8773 8774 ; 8775 return 0; 8776} 8777_ACEOF 8778if ac_fn_c_try_link "$LINENO" 8779then : 8780 eval $cacheid=yes 8781else $as_nop 8782 eval $cacheid=no 8783fi 8784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8785 conftest$ac_exeext conftest.$ac_ext 8786fi 8787 8788 8789 CFLAGS="$xorg_testset_save_CFLAGS" 8790 8791 eval supported=\$$cacheid 8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8793printf "%s\n" "$supported" >&6; } 8794 if test "$supported" = "yes" ; then 8795 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8796 found="yes" 8797 fi 8798 fi 8799 8800 if test $found = "no" ; then 8801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8803 fi 8804 8805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8807 fi 8808 8809 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8810 8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8812printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8813 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8814 if eval test \${$cacheid+y} 8815then : 8816 printf %s "(cached) " >&6 8817else $as_nop 8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8819/* end confdefs.h. */ 8820int i; 8821int 8822main (void) 8823{ 8824 8825 ; 8826 return 0; 8827} 8828_ACEOF 8829if ac_fn_c_try_link "$LINENO" 8830then : 8831 eval $cacheid=yes 8832else $as_nop 8833 eval $cacheid=no 8834fi 8835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8836 conftest$ac_exeext conftest.$ac_ext 8837fi 8838 8839 8840 CFLAGS="$xorg_testset_save_CFLAGS" 8841 8842 eval supported=\$$cacheid 8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8844printf "%s\n" "$supported" >&6; } 8845 if test "$supported" = "yes" ; then 8846 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8847 found="yes" 8848 fi 8849 fi 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865xorg_testset_save_CFLAGS="$CFLAGS" 8866 8867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8870printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8871if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8872then : 8873 printf %s "(cached) " >&6 8874else $as_nop 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876/* end confdefs.h. */ 8877int i; 8878_ACEOF 8879if ac_fn_c_try_compile "$LINENO" 8880then : 8881 xorg_cv_cc_flag_unknown_warning_option=yes 8882else $as_nop 8883 xorg_cv_cc_flag_unknown_warning_option=no 8884fi 8885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8886fi 8887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8888printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8890 CFLAGS="$xorg_testset_save_CFLAGS" 8891fi 8892 8893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8896 fi 8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8899printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8900if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8901then : 8902 printf %s "(cached) " >&6 8903else $as_nop 8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8905/* end confdefs.h. */ 8906int i; 8907_ACEOF 8908if ac_fn_c_try_compile "$LINENO" 8909then : 8910 xorg_cv_cc_flag_unused_command_line_argument=yes 8911else $as_nop 8912 xorg_cv_cc_flag_unused_command_line_argument=no 8913fi 8914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8915fi 8916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8917printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8919 CFLAGS="$xorg_testset_save_CFLAGS" 8920fi 8921 8922found="no" 8923 8924 if test $found = "no" ; then 8925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8927 fi 8928 8929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8931 fi 8932 8933 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8934 8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8936printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8937 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8938 if eval test \${$cacheid+y} 8939then : 8940 printf %s "(cached) " >&6 8941else $as_nop 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943/* end confdefs.h. */ 8944int i; 8945int 8946main (void) 8947{ 8948 8949 ; 8950 return 0; 8951} 8952_ACEOF 8953if ac_fn_c_try_link "$LINENO" 8954then : 8955 eval $cacheid=yes 8956else $as_nop 8957 eval $cacheid=no 8958fi 8959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8960 conftest$ac_exeext conftest.$ac_ext 8961fi 8962 8963 8964 CFLAGS="$xorg_testset_save_CFLAGS" 8965 8966 eval supported=\$$cacheid 8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8968printf "%s\n" "$supported" >&6; } 8969 if test "$supported" = "yes" ; then 8970 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8971 found="yes" 8972 fi 8973 fi 8974 8975 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8976else 8977{ 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 8978printf "%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;} 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992xorg_testset_save_CFLAGS="$CFLAGS" 8993 8994if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8997printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8998if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8999then : 9000 printf %s "(cached) " >&6 9001else $as_nop 9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9003/* end confdefs.h. */ 9004int i; 9005_ACEOF 9006if ac_fn_c_try_compile "$LINENO" 9007then : 9008 xorg_cv_cc_flag_unknown_warning_option=yes 9009else $as_nop 9010 xorg_cv_cc_flag_unknown_warning_option=no 9011fi 9012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9013fi 9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9015printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9017 CFLAGS="$xorg_testset_save_CFLAGS" 9018fi 9019 9020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9023 fi 9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9026printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9027if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9028then : 9029 printf %s "(cached) " >&6 9030else $as_nop 9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9032/* end confdefs.h. */ 9033int i; 9034_ACEOF 9035if ac_fn_c_try_compile "$LINENO" 9036then : 9037 xorg_cv_cc_flag_unused_command_line_argument=yes 9038else $as_nop 9039 xorg_cv_cc_flag_unused_command_line_argument=no 9040fi 9041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9042fi 9043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9044printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9046 CFLAGS="$xorg_testset_save_CFLAGS" 9047fi 9048 9049found="no" 9050 9051 if test $found = "no" ; then 9052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9053 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9054 fi 9055 9056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9058 fi 9059 9060 CFLAGS="$CFLAGS -Wimplicit" 9061 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9063printf %s "checking if $CC supports -Wimplicit... " >&6; } 9064 cacheid=xorg_cv_cc_flag__Wimplicit 9065 if eval test \${$cacheid+y} 9066then : 9067 printf %s "(cached) " >&6 9068else $as_nop 9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9070/* end confdefs.h. */ 9071int i; 9072int 9073main (void) 9074{ 9075 9076 ; 9077 return 0; 9078} 9079_ACEOF 9080if ac_fn_c_try_link "$LINENO" 9081then : 9082 eval $cacheid=yes 9083else $as_nop 9084 eval $cacheid=no 9085fi 9086rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9087 conftest$ac_exeext conftest.$ac_ext 9088fi 9089 9090 9091 CFLAGS="$xorg_testset_save_CFLAGS" 9092 9093 eval supported=\$$cacheid 9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9095printf "%s\n" "$supported" >&6; } 9096 if test "$supported" = "yes" ; then 9097 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9098 found="yes" 9099 fi 9100 fi 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116xorg_testset_save_CFLAGS="$CFLAGS" 9117 9118if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9121printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9122if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9123then : 9124 printf %s "(cached) " >&6 9125else $as_nop 9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9127/* end confdefs.h. */ 9128int i; 9129_ACEOF 9130if ac_fn_c_try_compile "$LINENO" 9131then : 9132 xorg_cv_cc_flag_unknown_warning_option=yes 9133else $as_nop 9134 xorg_cv_cc_flag_unknown_warning_option=no 9135fi 9136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9137fi 9138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9139printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9141 CFLAGS="$xorg_testset_save_CFLAGS" 9142fi 9143 9144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9147 fi 9148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9150printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9151if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9152then : 9153 printf %s "(cached) " >&6 9154else $as_nop 9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9156/* end confdefs.h. */ 9157int i; 9158_ACEOF 9159if ac_fn_c_try_compile "$LINENO" 9160then : 9161 xorg_cv_cc_flag_unused_command_line_argument=yes 9162else $as_nop 9163 xorg_cv_cc_flag_unused_command_line_argument=no 9164fi 9165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9166fi 9167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9168printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171fi 9172 9173found="no" 9174 9175 if test $found = "no" ; then 9176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9178 fi 9179 9180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9182 fi 9183 9184 CFLAGS="$CFLAGS -Wnonnull" 9185 9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9187printf %s "checking if $CC supports -Wnonnull... " >&6; } 9188 cacheid=xorg_cv_cc_flag__Wnonnull 9189 if eval test \${$cacheid+y} 9190then : 9191 printf %s "(cached) " >&6 9192else $as_nop 9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9194/* end confdefs.h. */ 9195int i; 9196int 9197main (void) 9198{ 9199 9200 ; 9201 return 0; 9202} 9203_ACEOF 9204if ac_fn_c_try_link "$LINENO" 9205then : 9206 eval $cacheid=yes 9207else $as_nop 9208 eval $cacheid=no 9209fi 9210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9211 conftest$ac_exeext conftest.$ac_ext 9212fi 9213 9214 9215 CFLAGS="$xorg_testset_save_CFLAGS" 9216 9217 eval supported=\$$cacheid 9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9219printf "%s\n" "$supported" >&6; } 9220 if test "$supported" = "yes" ; then 9221 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9222 found="yes" 9223 fi 9224 fi 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240xorg_testset_save_CFLAGS="$CFLAGS" 9241 9242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9245printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9246if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9247then : 9248 printf %s "(cached) " >&6 9249else $as_nop 9250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251/* end confdefs.h. */ 9252int i; 9253_ACEOF 9254if ac_fn_c_try_compile "$LINENO" 9255then : 9256 xorg_cv_cc_flag_unknown_warning_option=yes 9257else $as_nop 9258 xorg_cv_cc_flag_unknown_warning_option=no 9259fi 9260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9261fi 9262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9263printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9265 CFLAGS="$xorg_testset_save_CFLAGS" 9266fi 9267 9268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9271 fi 9272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9274printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9275if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9276then : 9277 printf %s "(cached) " >&6 9278else $as_nop 9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9280/* end confdefs.h. */ 9281int i; 9282_ACEOF 9283if ac_fn_c_try_compile "$LINENO" 9284then : 9285 xorg_cv_cc_flag_unused_command_line_argument=yes 9286else $as_nop 9287 xorg_cv_cc_flag_unused_command_line_argument=no 9288fi 9289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9290fi 9291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9292printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9294 CFLAGS="$xorg_testset_save_CFLAGS" 9295fi 9296 9297found="no" 9298 9299 if test $found = "no" ; then 9300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9302 fi 9303 9304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9306 fi 9307 9308 CFLAGS="$CFLAGS -Winit-self" 9309 9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9311printf %s "checking if $CC supports -Winit-self... " >&6; } 9312 cacheid=xorg_cv_cc_flag__Winit_self 9313 if eval test \${$cacheid+y} 9314then : 9315 printf %s "(cached) " >&6 9316else $as_nop 9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318/* end confdefs.h. */ 9319int i; 9320int 9321main (void) 9322{ 9323 9324 ; 9325 return 0; 9326} 9327_ACEOF 9328if ac_fn_c_try_link "$LINENO" 9329then : 9330 eval $cacheid=yes 9331else $as_nop 9332 eval $cacheid=no 9333fi 9334rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9335 conftest$ac_exeext conftest.$ac_ext 9336fi 9337 9338 9339 CFLAGS="$xorg_testset_save_CFLAGS" 9340 9341 eval supported=\$$cacheid 9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9343printf "%s\n" "$supported" >&6; } 9344 if test "$supported" = "yes" ; then 9345 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9346 found="yes" 9347 fi 9348 fi 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364xorg_testset_save_CFLAGS="$CFLAGS" 9365 9366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9369printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9370if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9371then : 9372 printf %s "(cached) " >&6 9373else $as_nop 9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9375/* end confdefs.h. */ 9376int i; 9377_ACEOF 9378if ac_fn_c_try_compile "$LINENO" 9379then : 9380 xorg_cv_cc_flag_unknown_warning_option=yes 9381else $as_nop 9382 xorg_cv_cc_flag_unknown_warning_option=no 9383fi 9384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9385fi 9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9387printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9389 CFLAGS="$xorg_testset_save_CFLAGS" 9390fi 9391 9392if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9395 fi 9396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9398printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9399if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9400then : 9401 printf %s "(cached) " >&6 9402else $as_nop 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405int i; 9406_ACEOF 9407if ac_fn_c_try_compile "$LINENO" 9408then : 9409 xorg_cv_cc_flag_unused_command_line_argument=yes 9410else $as_nop 9411 xorg_cv_cc_flag_unused_command_line_argument=no 9412fi 9413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9414fi 9415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9416printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9418 CFLAGS="$xorg_testset_save_CFLAGS" 9419fi 9420 9421found="no" 9422 9423 if test $found = "no" ; then 9424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9426 fi 9427 9428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9430 fi 9431 9432 CFLAGS="$CFLAGS -Wmain" 9433 9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9435printf %s "checking if $CC supports -Wmain... " >&6; } 9436 cacheid=xorg_cv_cc_flag__Wmain 9437 if eval test \${$cacheid+y} 9438then : 9439 printf %s "(cached) " >&6 9440else $as_nop 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443int i; 9444int 9445main (void) 9446{ 9447 9448 ; 9449 return 0; 9450} 9451_ACEOF 9452if ac_fn_c_try_link "$LINENO" 9453then : 9454 eval $cacheid=yes 9455else $as_nop 9456 eval $cacheid=no 9457fi 9458rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9459 conftest$ac_exeext conftest.$ac_ext 9460fi 9461 9462 9463 CFLAGS="$xorg_testset_save_CFLAGS" 9464 9465 eval supported=\$$cacheid 9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9467printf "%s\n" "$supported" >&6; } 9468 if test "$supported" = "yes" ; then 9469 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9470 found="yes" 9471 fi 9472 fi 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488xorg_testset_save_CFLAGS="$CFLAGS" 9489 9490if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9493printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9494if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9495then : 9496 printf %s "(cached) " >&6 9497else $as_nop 9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499/* end confdefs.h. */ 9500int i; 9501_ACEOF 9502if ac_fn_c_try_compile "$LINENO" 9503then : 9504 xorg_cv_cc_flag_unknown_warning_option=yes 9505else $as_nop 9506 xorg_cv_cc_flag_unknown_warning_option=no 9507fi 9508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9509fi 9510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9511printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9513 CFLAGS="$xorg_testset_save_CFLAGS" 9514fi 9515 9516if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9519 fi 9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9522printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9523if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9524then : 9525 printf %s "(cached) " >&6 9526else $as_nop 9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9528/* end confdefs.h. */ 9529int i; 9530_ACEOF 9531if ac_fn_c_try_compile "$LINENO" 9532then : 9533 xorg_cv_cc_flag_unused_command_line_argument=yes 9534else $as_nop 9535 xorg_cv_cc_flag_unused_command_line_argument=no 9536fi 9537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9538fi 9539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9540printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543fi 9544 9545found="no" 9546 9547 if test $found = "no" ; then 9548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9550 fi 9551 9552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9554 fi 9555 9556 CFLAGS="$CFLAGS -Wmissing-braces" 9557 9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9559printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9560 cacheid=xorg_cv_cc_flag__Wmissing_braces 9561 if eval test \${$cacheid+y} 9562then : 9563 printf %s "(cached) " >&6 9564else $as_nop 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567int i; 9568int 9569main (void) 9570{ 9571 9572 ; 9573 return 0; 9574} 9575_ACEOF 9576if ac_fn_c_try_link "$LINENO" 9577then : 9578 eval $cacheid=yes 9579else $as_nop 9580 eval $cacheid=no 9581fi 9582rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9583 conftest$ac_exeext conftest.$ac_ext 9584fi 9585 9586 9587 CFLAGS="$xorg_testset_save_CFLAGS" 9588 9589 eval supported=\$$cacheid 9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9591printf "%s\n" "$supported" >&6; } 9592 if test "$supported" = "yes" ; then 9593 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9594 found="yes" 9595 fi 9596 fi 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612xorg_testset_save_CFLAGS="$CFLAGS" 9613 9614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9618if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9619then : 9620 printf %s "(cached) " >&6 9621else $as_nop 9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9623/* end confdefs.h. */ 9624int i; 9625_ACEOF 9626if ac_fn_c_try_compile "$LINENO" 9627then : 9628 xorg_cv_cc_flag_unknown_warning_option=yes 9629else $as_nop 9630 xorg_cv_cc_flag_unknown_warning_option=no 9631fi 9632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9633fi 9634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9635printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9637 CFLAGS="$xorg_testset_save_CFLAGS" 9638fi 9639 9640if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9643 fi 9644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9646printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9647if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9648then : 9649 printf %s "(cached) " >&6 9650else $as_nop 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652/* end confdefs.h. */ 9653int i; 9654_ACEOF 9655if ac_fn_c_try_compile "$LINENO" 9656then : 9657 xorg_cv_cc_flag_unused_command_line_argument=yes 9658else $as_nop 9659 xorg_cv_cc_flag_unused_command_line_argument=no 9660fi 9661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9662fi 9663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9664printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9666 CFLAGS="$xorg_testset_save_CFLAGS" 9667fi 9668 9669found="no" 9670 9671 if test $found = "no" ; then 9672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9674 fi 9675 9676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9678 fi 9679 9680 CFLAGS="$CFLAGS -Wsequence-point" 9681 9682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9683printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9684 cacheid=xorg_cv_cc_flag__Wsequence_point 9685 if eval test \${$cacheid+y} 9686then : 9687 printf %s "(cached) " >&6 9688else $as_nop 9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9690/* end confdefs.h. */ 9691int i; 9692int 9693main (void) 9694{ 9695 9696 ; 9697 return 0; 9698} 9699_ACEOF 9700if ac_fn_c_try_link "$LINENO" 9701then : 9702 eval $cacheid=yes 9703else $as_nop 9704 eval $cacheid=no 9705fi 9706rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9707 conftest$ac_exeext conftest.$ac_ext 9708fi 9709 9710 9711 CFLAGS="$xorg_testset_save_CFLAGS" 9712 9713 eval supported=\$$cacheid 9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9715printf "%s\n" "$supported" >&6; } 9716 if test "$supported" = "yes" ; then 9717 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9718 found="yes" 9719 fi 9720 fi 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736xorg_testset_save_CFLAGS="$CFLAGS" 9737 9738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9741printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9742if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9743then : 9744 printf %s "(cached) " >&6 9745else $as_nop 9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9747/* end confdefs.h. */ 9748int i; 9749_ACEOF 9750if ac_fn_c_try_compile "$LINENO" 9751then : 9752 xorg_cv_cc_flag_unknown_warning_option=yes 9753else $as_nop 9754 xorg_cv_cc_flag_unknown_warning_option=no 9755fi 9756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9757fi 9758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9759printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9761 CFLAGS="$xorg_testset_save_CFLAGS" 9762fi 9763 9764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9767 fi 9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9770printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9771if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9772then : 9773 printf %s "(cached) " >&6 9774else $as_nop 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776/* end confdefs.h. */ 9777int i; 9778_ACEOF 9779if ac_fn_c_try_compile "$LINENO" 9780then : 9781 xorg_cv_cc_flag_unused_command_line_argument=yes 9782else $as_nop 9783 xorg_cv_cc_flag_unused_command_line_argument=no 9784fi 9785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9786fi 9787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9788printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9790 CFLAGS="$xorg_testset_save_CFLAGS" 9791fi 9792 9793found="no" 9794 9795 if test $found = "no" ; then 9796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9798 fi 9799 9800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9802 fi 9803 9804 CFLAGS="$CFLAGS -Wreturn-type" 9805 9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9807printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9808 cacheid=xorg_cv_cc_flag__Wreturn_type 9809 if eval test \${$cacheid+y} 9810then : 9811 printf %s "(cached) " >&6 9812else $as_nop 9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9814/* end confdefs.h. */ 9815int i; 9816int 9817main (void) 9818{ 9819 9820 ; 9821 return 0; 9822} 9823_ACEOF 9824if ac_fn_c_try_link "$LINENO" 9825then : 9826 eval $cacheid=yes 9827else $as_nop 9828 eval $cacheid=no 9829fi 9830rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9831 conftest$ac_exeext conftest.$ac_ext 9832fi 9833 9834 9835 CFLAGS="$xorg_testset_save_CFLAGS" 9836 9837 eval supported=\$$cacheid 9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9839printf "%s\n" "$supported" >&6; } 9840 if test "$supported" = "yes" ; then 9841 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9842 found="yes" 9843 fi 9844 fi 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860xorg_testset_save_CFLAGS="$CFLAGS" 9861 9862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9865printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9866if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9867then : 9868 printf %s "(cached) " >&6 9869else $as_nop 9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9871/* end confdefs.h. */ 9872int i; 9873_ACEOF 9874if ac_fn_c_try_compile "$LINENO" 9875then : 9876 xorg_cv_cc_flag_unknown_warning_option=yes 9877else $as_nop 9878 xorg_cv_cc_flag_unknown_warning_option=no 9879fi 9880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9881fi 9882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9883printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9885 CFLAGS="$xorg_testset_save_CFLAGS" 9886fi 9887 9888if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9891 fi 9892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9894printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9895if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9896then : 9897 printf %s "(cached) " >&6 9898else $as_nop 9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9900/* end confdefs.h. */ 9901int i; 9902_ACEOF 9903if ac_fn_c_try_compile "$LINENO" 9904then : 9905 xorg_cv_cc_flag_unused_command_line_argument=yes 9906else $as_nop 9907 xorg_cv_cc_flag_unused_command_line_argument=no 9908fi 9909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9910fi 9911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9912printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9914 CFLAGS="$xorg_testset_save_CFLAGS" 9915fi 9916 9917found="no" 9918 9919 if test $found = "no" ; then 9920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9922 fi 9923 9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9926 fi 9927 9928 CFLAGS="$CFLAGS -Wtrigraphs" 9929 9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9931printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9932 cacheid=xorg_cv_cc_flag__Wtrigraphs 9933 if eval test \${$cacheid+y} 9934then : 9935 printf %s "(cached) " >&6 9936else $as_nop 9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9938/* end confdefs.h. */ 9939int i; 9940int 9941main (void) 9942{ 9943 9944 ; 9945 return 0; 9946} 9947_ACEOF 9948if ac_fn_c_try_link "$LINENO" 9949then : 9950 eval $cacheid=yes 9951else $as_nop 9952 eval $cacheid=no 9953fi 9954rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9955 conftest$ac_exeext conftest.$ac_ext 9956fi 9957 9958 9959 CFLAGS="$xorg_testset_save_CFLAGS" 9960 9961 eval supported=\$$cacheid 9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9963printf "%s\n" "$supported" >&6; } 9964 if test "$supported" = "yes" ; then 9965 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9966 found="yes" 9967 fi 9968 fi 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984xorg_testset_save_CFLAGS="$CFLAGS" 9985 9986if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9989printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9990if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9991then : 9992 printf %s "(cached) " >&6 9993else $as_nop 9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9995/* end confdefs.h. */ 9996int i; 9997_ACEOF 9998if ac_fn_c_try_compile "$LINENO" 9999then : 10000 xorg_cv_cc_flag_unknown_warning_option=yes 10001else $as_nop 10002 xorg_cv_cc_flag_unknown_warning_option=no 10003fi 10004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10005fi 10006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10007printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10009 CFLAGS="$xorg_testset_save_CFLAGS" 10010fi 10011 10012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10015 fi 10016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10018printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10019if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10020then : 10021 printf %s "(cached) " >&6 10022else $as_nop 10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024/* end confdefs.h. */ 10025int i; 10026_ACEOF 10027if ac_fn_c_try_compile "$LINENO" 10028then : 10029 xorg_cv_cc_flag_unused_command_line_argument=yes 10030else $as_nop 10031 xorg_cv_cc_flag_unused_command_line_argument=no 10032fi 10033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10034fi 10035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10036printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039fi 10040 10041found="no" 10042 10043 if test $found = "no" ; then 10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10046 fi 10047 10048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10050 fi 10051 10052 CFLAGS="$CFLAGS -Warray-bounds" 10053 10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10055printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10056 cacheid=xorg_cv_cc_flag__Warray_bounds 10057 if eval test \${$cacheid+y} 10058then : 10059 printf %s "(cached) " >&6 10060else $as_nop 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064int 10065main (void) 10066{ 10067 10068 ; 10069 return 0; 10070} 10071_ACEOF 10072if ac_fn_c_try_link "$LINENO" 10073then : 10074 eval $cacheid=yes 10075else $as_nop 10076 eval $cacheid=no 10077fi 10078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10079 conftest$ac_exeext conftest.$ac_ext 10080fi 10081 10082 10083 CFLAGS="$xorg_testset_save_CFLAGS" 10084 10085 eval supported=\$$cacheid 10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10087printf "%s\n" "$supported" >&6; } 10088 if test "$supported" = "yes" ; then 10089 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10090 found="yes" 10091 fi 10092 fi 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108xorg_testset_save_CFLAGS="$CFLAGS" 10109 10110if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10113printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10114if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10115then : 10116 printf %s "(cached) " >&6 10117else $as_nop 10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10119/* end confdefs.h. */ 10120int i; 10121_ACEOF 10122if ac_fn_c_try_compile "$LINENO" 10123then : 10124 xorg_cv_cc_flag_unknown_warning_option=yes 10125else $as_nop 10126 xorg_cv_cc_flag_unknown_warning_option=no 10127fi 10128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10129fi 10130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10131printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10133 CFLAGS="$xorg_testset_save_CFLAGS" 10134fi 10135 10136if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10139 fi 10140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10142printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10143if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10144then : 10145 printf %s "(cached) " >&6 10146else $as_nop 10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10148/* end confdefs.h. */ 10149int i; 10150_ACEOF 10151if ac_fn_c_try_compile "$LINENO" 10152then : 10153 xorg_cv_cc_flag_unused_command_line_argument=yes 10154else $as_nop 10155 xorg_cv_cc_flag_unused_command_line_argument=no 10156fi 10157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10158fi 10159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10162 CFLAGS="$xorg_testset_save_CFLAGS" 10163fi 10164 10165found="no" 10166 10167 if test $found = "no" ; then 10168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10170 fi 10171 10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10174 fi 10175 10176 CFLAGS="$CFLAGS -Wwrite-strings" 10177 10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10179printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10180 cacheid=xorg_cv_cc_flag__Wwrite_strings 10181 if eval test \${$cacheid+y} 10182then : 10183 printf %s "(cached) " >&6 10184else $as_nop 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187int i; 10188int 10189main (void) 10190{ 10191 10192 ; 10193 return 0; 10194} 10195_ACEOF 10196if ac_fn_c_try_link "$LINENO" 10197then : 10198 eval $cacheid=yes 10199else $as_nop 10200 eval $cacheid=no 10201fi 10202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10203 conftest$ac_exeext conftest.$ac_ext 10204fi 10205 10206 10207 CFLAGS="$xorg_testset_save_CFLAGS" 10208 10209 eval supported=\$$cacheid 10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10211printf "%s\n" "$supported" >&6; } 10212 if test "$supported" = "yes" ; then 10213 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10214 found="yes" 10215 fi 10216 fi 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232xorg_testset_save_CFLAGS="$CFLAGS" 10233 10234if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10237printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10238if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10239then : 10240 printf %s "(cached) " >&6 10241else $as_nop 10242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10243/* end confdefs.h. */ 10244int i; 10245_ACEOF 10246if ac_fn_c_try_compile "$LINENO" 10247then : 10248 xorg_cv_cc_flag_unknown_warning_option=yes 10249else $as_nop 10250 xorg_cv_cc_flag_unknown_warning_option=no 10251fi 10252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10253fi 10254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10257 CFLAGS="$xorg_testset_save_CFLAGS" 10258fi 10259 10260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10263 fi 10264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10267if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10268then : 10269 printf %s "(cached) " >&6 10270else $as_nop 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273int i; 10274_ACEOF 10275if ac_fn_c_try_compile "$LINENO" 10276then : 10277 xorg_cv_cc_flag_unused_command_line_argument=yes 10278else $as_nop 10279 xorg_cv_cc_flag_unused_command_line_argument=no 10280fi 10281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10282fi 10283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10284printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10286 CFLAGS="$xorg_testset_save_CFLAGS" 10287fi 10288 10289found="no" 10290 10291 if test $found = "no" ; then 10292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10294 fi 10295 10296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10298 fi 10299 10300 CFLAGS="$CFLAGS -Waddress" 10301 10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10303printf %s "checking if $CC supports -Waddress... " >&6; } 10304 cacheid=xorg_cv_cc_flag__Waddress 10305 if eval test \${$cacheid+y} 10306then : 10307 printf %s "(cached) " >&6 10308else $as_nop 10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311int i; 10312int 10313main (void) 10314{ 10315 10316 ; 10317 return 0; 10318} 10319_ACEOF 10320if ac_fn_c_try_link "$LINENO" 10321then : 10322 eval $cacheid=yes 10323else $as_nop 10324 eval $cacheid=no 10325fi 10326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10327 conftest$ac_exeext conftest.$ac_ext 10328fi 10329 10330 10331 CFLAGS="$xorg_testset_save_CFLAGS" 10332 10333 eval supported=\$$cacheid 10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10335printf "%s\n" "$supported" >&6; } 10336 if test "$supported" = "yes" ; then 10337 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10338 found="yes" 10339 fi 10340 fi 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356xorg_testset_save_CFLAGS="$CFLAGS" 10357 10358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10362if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10363then : 10364 printf %s "(cached) " >&6 10365else $as_nop 10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10367/* end confdefs.h. */ 10368int i; 10369_ACEOF 10370if ac_fn_c_try_compile "$LINENO" 10371then : 10372 xorg_cv_cc_flag_unknown_warning_option=yes 10373else $as_nop 10374 xorg_cv_cc_flag_unknown_warning_option=no 10375fi 10376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10377fi 10378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10379printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10381 CFLAGS="$xorg_testset_save_CFLAGS" 10382fi 10383 10384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10387 fi 10388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10390printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10391if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10392then : 10393 printf %s "(cached) " >&6 10394else $as_nop 10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397int i; 10398_ACEOF 10399if ac_fn_c_try_compile "$LINENO" 10400then : 10401 xorg_cv_cc_flag_unused_command_line_argument=yes 10402else $as_nop 10403 xorg_cv_cc_flag_unused_command_line_argument=no 10404fi 10405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10406fi 10407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10408printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10410 CFLAGS="$xorg_testset_save_CFLAGS" 10411fi 10412 10413found="no" 10414 10415 if test $found = "no" ; then 10416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10418 fi 10419 10420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10422 fi 10423 10424 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10425 10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10427printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10428 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10429 if eval test \${$cacheid+y} 10430then : 10431 printf %s "(cached) " >&6 10432else $as_nop 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434/* end confdefs.h. */ 10435int i; 10436int 10437main (void) 10438{ 10439 10440 ; 10441 return 0; 10442} 10443_ACEOF 10444if ac_fn_c_try_link "$LINENO" 10445then : 10446 eval $cacheid=yes 10447else $as_nop 10448 eval $cacheid=no 10449fi 10450rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10451 conftest$ac_exeext conftest.$ac_ext 10452fi 10453 10454 10455 CFLAGS="$xorg_testset_save_CFLAGS" 10456 10457 eval supported=\$$cacheid 10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10459printf "%s\n" "$supported" >&6; } 10460 if test "$supported" = "yes" ; then 10461 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10462 found="yes" 10463 fi 10464 fi 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480xorg_testset_save_CFLAGS="$CFLAGS" 10481 10482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10485printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10486if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10487then : 10488 printf %s "(cached) " >&6 10489else $as_nop 10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10491/* end confdefs.h. */ 10492int i; 10493_ACEOF 10494if ac_fn_c_try_compile "$LINENO" 10495then : 10496 xorg_cv_cc_flag_unknown_warning_option=yes 10497else $as_nop 10498 xorg_cv_cc_flag_unknown_warning_option=no 10499fi 10500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10501fi 10502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10503printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10505 CFLAGS="$xorg_testset_save_CFLAGS" 10506fi 10507 10508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10511 fi 10512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10514printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10515if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10516then : 10517 printf %s "(cached) " >&6 10518else $as_nop 10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10520/* end confdefs.h. */ 10521int i; 10522_ACEOF 10523if ac_fn_c_try_compile "$LINENO" 10524then : 10525 xorg_cv_cc_flag_unused_command_line_argument=yes 10526else $as_nop 10527 xorg_cv_cc_flag_unused_command_line_argument=no 10528fi 10529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10530fi 10531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10532printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10534 CFLAGS="$xorg_testset_save_CFLAGS" 10535fi 10536 10537found="no" 10538 10539 if test $found = "no" ; then 10540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10542 fi 10543 10544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10546 fi 10547 10548 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10549 10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10551printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10552 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10553 if eval test \${$cacheid+y} 10554then : 10555 printf %s "(cached) " >&6 10556else $as_nop 10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10558/* end confdefs.h. */ 10559int i; 10560int 10561main (void) 10562{ 10563 10564 ; 10565 return 0; 10566} 10567_ACEOF 10568if ac_fn_c_try_link "$LINENO" 10569then : 10570 eval $cacheid=yes 10571else $as_nop 10572 eval $cacheid=no 10573fi 10574rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10575 conftest$ac_exeext conftest.$ac_ext 10576fi 10577 10578 10579 CFLAGS="$xorg_testset_save_CFLAGS" 10580 10581 eval supported=\$$cacheid 10582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10583printf "%s\n" "$supported" >&6; } 10584 if test "$supported" = "yes" ; then 10585 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10586 found="yes" 10587 fi 10588 fi 10589 10590 10591fi 10592 10593 10594 10595 10596 10597 10598 10599 CWARNFLAGS="$BASE_CFLAGS" 10600 if test "x$GCC" = xyes ; then 10601 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10602 fi 10603 10604 10605 10606 10607 10608 10609 10610 10611# Check whether --enable-strict-compilation was given. 10612if test ${enable_strict_compilation+y} 10613then : 10614 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10615else $as_nop 10616 STRICT_COMPILE=no 10617fi 10618 10619 10620 10621 10622 10623 10624STRICT_CFLAGS="" 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638xorg_testset_save_CFLAGS="$CFLAGS" 10639 10640if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10643printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10644if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10645then : 10646 printf %s "(cached) " >&6 10647else $as_nop 10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10649/* end confdefs.h. */ 10650int i; 10651_ACEOF 10652if ac_fn_c_try_compile "$LINENO" 10653then : 10654 xorg_cv_cc_flag_unknown_warning_option=yes 10655else $as_nop 10656 xorg_cv_cc_flag_unknown_warning_option=no 10657fi 10658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10659fi 10660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10661printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10663 CFLAGS="$xorg_testset_save_CFLAGS" 10664fi 10665 10666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10669 fi 10670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10672printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10673if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10674then : 10675 printf %s "(cached) " >&6 10676else $as_nop 10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10678/* end confdefs.h. */ 10679int i; 10680_ACEOF 10681if ac_fn_c_try_compile "$LINENO" 10682then : 10683 xorg_cv_cc_flag_unused_command_line_argument=yes 10684else $as_nop 10685 xorg_cv_cc_flag_unused_command_line_argument=no 10686fi 10687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10688fi 10689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10690printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10692 CFLAGS="$xorg_testset_save_CFLAGS" 10693fi 10694 10695found="no" 10696 10697 if test $found = "no" ; then 10698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10700 fi 10701 10702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10704 fi 10705 10706 CFLAGS="$CFLAGS -pedantic" 10707 10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10709printf %s "checking if $CC supports -pedantic... " >&6; } 10710 cacheid=xorg_cv_cc_flag__pedantic 10711 if eval test \${$cacheid+y} 10712then : 10713 printf %s "(cached) " >&6 10714else $as_nop 10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10716/* end confdefs.h. */ 10717int i; 10718int 10719main (void) 10720{ 10721 10722 ; 10723 return 0; 10724} 10725_ACEOF 10726if ac_fn_c_try_link "$LINENO" 10727then : 10728 eval $cacheid=yes 10729else $as_nop 10730 eval $cacheid=no 10731fi 10732rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10733 conftest$ac_exeext conftest.$ac_ext 10734fi 10735 10736 10737 CFLAGS="$xorg_testset_save_CFLAGS" 10738 10739 eval supported=\$$cacheid 10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10741printf "%s\n" "$supported" >&6; } 10742 if test "$supported" = "yes" ; then 10743 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10744 found="yes" 10745 fi 10746 fi 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762xorg_testset_save_CFLAGS="$CFLAGS" 10763 10764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10767printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10768if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10769then : 10770 printf %s "(cached) " >&6 10771else $as_nop 10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10773/* end confdefs.h. */ 10774int i; 10775_ACEOF 10776if ac_fn_c_try_compile "$LINENO" 10777then : 10778 xorg_cv_cc_flag_unknown_warning_option=yes 10779else $as_nop 10780 xorg_cv_cc_flag_unknown_warning_option=no 10781fi 10782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10783fi 10784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10785printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10787 CFLAGS="$xorg_testset_save_CFLAGS" 10788fi 10789 10790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10793 fi 10794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10796printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10797if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10798then : 10799 printf %s "(cached) " >&6 10800else $as_nop 10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803int i; 10804_ACEOF 10805if ac_fn_c_try_compile "$LINENO" 10806then : 10807 xorg_cv_cc_flag_unused_command_line_argument=yes 10808else $as_nop 10809 xorg_cv_cc_flag_unused_command_line_argument=no 10810fi 10811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10812fi 10813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10816 CFLAGS="$xorg_testset_save_CFLAGS" 10817fi 10818 10819found="no" 10820 10821 if test $found = "no" ; then 10822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10824 fi 10825 10826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10828 fi 10829 10830 CFLAGS="$CFLAGS -Werror" 10831 10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10833printf %s "checking if $CC supports -Werror... " >&6; } 10834 cacheid=xorg_cv_cc_flag__Werror 10835 if eval test \${$cacheid+y} 10836then : 10837 printf %s "(cached) " >&6 10838else $as_nop 10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10840/* end confdefs.h. */ 10841int i; 10842int 10843main (void) 10844{ 10845 10846 ; 10847 return 0; 10848} 10849_ACEOF 10850if ac_fn_c_try_link "$LINENO" 10851then : 10852 eval $cacheid=yes 10853else $as_nop 10854 eval $cacheid=no 10855fi 10856rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10857 conftest$ac_exeext conftest.$ac_ext 10858fi 10859 10860 10861 CFLAGS="$xorg_testset_save_CFLAGS" 10862 10863 eval supported=\$$cacheid 10864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10865printf "%s\n" "$supported" >&6; } 10866 if test "$supported" = "yes" ; then 10867 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10868 found="yes" 10869 fi 10870 fi 10871 10872 if test $found = "no" ; then 10873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10875 fi 10876 10877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10879 fi 10880 10881 CFLAGS="$CFLAGS -errwarn" 10882 10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10884printf %s "checking if $CC supports -errwarn... " >&6; } 10885 cacheid=xorg_cv_cc_flag__errwarn 10886 if eval test \${$cacheid+y} 10887then : 10888 printf %s "(cached) " >&6 10889else $as_nop 10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10891/* end confdefs.h. */ 10892int i; 10893int 10894main (void) 10895{ 10896 10897 ; 10898 return 0; 10899} 10900_ACEOF 10901if ac_fn_c_try_link "$LINENO" 10902then : 10903 eval $cacheid=yes 10904else $as_nop 10905 eval $cacheid=no 10906fi 10907rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10908 conftest$ac_exeext conftest.$ac_ext 10909fi 10910 10911 10912 CFLAGS="$xorg_testset_save_CFLAGS" 10913 10914 eval supported=\$$cacheid 10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10916printf "%s\n" "$supported" >&6; } 10917 if test "$supported" = "yes" ; then 10918 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10919 found="yes" 10920 fi 10921 fi 10922 10923 10924 10925# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10926# activate it with -Werror, so we add it here explicitly. 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940xorg_testset_save_CFLAGS="$CFLAGS" 10941 10942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10946if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10947then : 10948 printf %s "(cached) " >&6 10949else $as_nop 10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10951/* end confdefs.h. */ 10952int i; 10953_ACEOF 10954if ac_fn_c_try_compile "$LINENO" 10955then : 10956 xorg_cv_cc_flag_unknown_warning_option=yes 10957else $as_nop 10958 xorg_cv_cc_flag_unknown_warning_option=no 10959fi 10960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10961fi 10962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10965 CFLAGS="$xorg_testset_save_CFLAGS" 10966fi 10967 10968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10971 fi 10972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10975if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10976then : 10977 printf %s "(cached) " >&6 10978else $as_nop 10979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10980/* end confdefs.h. */ 10981int i; 10982_ACEOF 10983if ac_fn_c_try_compile "$LINENO" 10984then : 10985 xorg_cv_cc_flag_unused_command_line_argument=yes 10986else $as_nop 10987 xorg_cv_cc_flag_unused_command_line_argument=no 10988fi 10989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10990fi 10991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10994 CFLAGS="$xorg_testset_save_CFLAGS" 10995fi 10996 10997found="no" 10998 10999 if test $found = "no" ; then 11000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11002 fi 11003 11004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11006 fi 11007 11008 CFLAGS="$CFLAGS -Werror=attributes" 11009 11010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11011printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11012 cacheid=xorg_cv_cc_flag__Werror_attributes 11013 if eval test \${$cacheid+y} 11014then : 11015 printf %s "(cached) " >&6 11016else $as_nop 11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11018/* end confdefs.h. */ 11019int i; 11020int 11021main (void) 11022{ 11023 11024 ; 11025 return 0; 11026} 11027_ACEOF 11028if ac_fn_c_try_link "$LINENO" 11029then : 11030 eval $cacheid=yes 11031else $as_nop 11032 eval $cacheid=no 11033fi 11034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11035 conftest$ac_exeext conftest.$ac_ext 11036fi 11037 11038 11039 CFLAGS="$xorg_testset_save_CFLAGS" 11040 11041 eval supported=\$$cacheid 11042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11043printf "%s\n" "$supported" >&6; } 11044 if test "$supported" = "yes" ; then 11045 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11046 found="yes" 11047 fi 11048 fi 11049 11050 11051 11052if test "x$STRICT_COMPILE" = "xyes"; then 11053 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11054 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11055fi 11056 11057 11058 11059 11060 11061 11062 11063 11064cat >>confdefs.h <<_ACEOF 11065#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11066_ACEOF 11067 11068 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11069 if test "x$PVM" = "x"; then 11070 PVM="0" 11071 fi 11072 11073printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11074 11075 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11076 if test "x$PVP" = "x"; then 11077 PVP="0" 11078 fi 11079 11080printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11081 11082 11083 11084CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11085mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11086|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11087touch \$(top_srcdir)/ChangeLog; \ 11088echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11089 11090 11091 11092 11093macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11094INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11095mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11096|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11097touch \$(top_srcdir)/INSTALL; \ 11098echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11099 11100 11101 11102 11103 11104 11105case $host_os in 11106 solaris*) 11107 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11108 # check for a man page file found in later versions that use 11109 # traditional section numbers instead 11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11111printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11112if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11113then : 11114 printf %s "(cached) " >&6 11115else $as_nop 11116 test "$cross_compiling" = yes && 11117 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11118if test -r "/usr/share/man/man7/attributes.7"; then 11119 ac_cv_file__usr_share_man_man7_attributes_7=yes 11120else 11121 ac_cv_file__usr_share_man_man7_attributes_7=no 11122fi 11123fi 11124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11125printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11126if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11127then : 11128 SYSV_MAN_SECTIONS=false 11129else $as_nop 11130 SYSV_MAN_SECTIONS=true 11131fi 11132 11133 ;; 11134 *) SYSV_MAN_SECTIONS=false ;; 11135esac 11136 11137if test x$APP_MAN_SUFFIX = x ; then 11138 APP_MAN_SUFFIX=1 11139fi 11140if test x$APP_MAN_DIR = x ; then 11141 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11142fi 11143 11144if test x$LIB_MAN_SUFFIX = x ; then 11145 LIB_MAN_SUFFIX=3 11146fi 11147if test x$LIB_MAN_DIR = x ; then 11148 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11149fi 11150 11151if test x$FILE_MAN_SUFFIX = x ; then 11152 case $SYSV_MAN_SECTIONS in 11153 true) FILE_MAN_SUFFIX=4 ;; 11154 *) FILE_MAN_SUFFIX=5 ;; 11155 esac 11156fi 11157if test x$FILE_MAN_DIR = x ; then 11158 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11159fi 11160 11161if test x$MISC_MAN_SUFFIX = x ; then 11162 case $SYSV_MAN_SECTIONS in 11163 true) MISC_MAN_SUFFIX=5 ;; 11164 *) MISC_MAN_SUFFIX=7 ;; 11165 esac 11166fi 11167if test x$MISC_MAN_DIR = x ; then 11168 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11169fi 11170 11171if test x$DRIVER_MAN_SUFFIX = x ; then 11172 case $SYSV_MAN_SECTIONS in 11173 true) DRIVER_MAN_SUFFIX=7 ;; 11174 *) DRIVER_MAN_SUFFIX=4 ;; 11175 esac 11176fi 11177if test x$DRIVER_MAN_DIR = x ; then 11178 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11179fi 11180 11181if test x$ADMIN_MAN_SUFFIX = x ; then 11182 case $SYSV_MAN_SECTIONS in 11183 true) ADMIN_MAN_SUFFIX=1m ;; 11184 *) ADMIN_MAN_SUFFIX=8 ;; 11185 esac 11186fi 11187if test x$ADMIN_MAN_DIR = x ; then 11188 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11189fi 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205XORG_MAN_PAGE="X Version 11" 11206 11207MAN_SUBSTS="\ 11208 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11209 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11210 -e 's|__xservername__|Xorg|g' \ 11211 -e 's|__xconfigfile__|xorg.conf|g' \ 11212 -e 's|__projectroot__|\$(prefix)|g' \ 11213 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11214 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11215 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11216 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11217 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11218 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11219 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11220 11221 11222 11223# Check whether --enable-silent-rules was given. 11224if test ${enable_silent_rules+y} 11225then : 11226 enableval=$enable_silent_rules; 11227fi 11228 11229case $enable_silent_rules in # ((( 11230 yes) AM_DEFAULT_VERBOSITY=0;; 11231 no) AM_DEFAULT_VERBOSITY=1;; 11232 *) AM_DEFAULT_VERBOSITY=0;; 11233esac 11234am_make=${MAKE-make} 11235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11236printf %s "checking whether $am_make supports nested variables... " >&6; } 11237if test ${am_cv_make_support_nested_variables+y} 11238then : 11239 printf %s "(cached) " >&6 11240else $as_nop 11241 if printf "%s\n" 'TRUE=$(BAR$(V)) 11242BAR0=false 11243BAR1=true 11244V=1 11245am__doit: 11246 @$(TRUE) 11247.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11248 am_cv_make_support_nested_variables=yes 11249else 11250 am_cv_make_support_nested_variables=no 11251fi 11252fi 11253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11254printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11255if test $am_cv_make_support_nested_variables = yes; then 11256 AM_V='$(V)' 11257 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11258else 11259 AM_V=$AM_DEFAULT_VERBOSITY 11260 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11261fi 11262AM_BACKSLASH='\' 11263 11264 11265 11266 11267# Initialize libtool 11268# Check whether --enable-static was given. 11269if test ${enable_static+y} 11270then : 11271 enableval=$enable_static; p=${PACKAGE-default} 11272 case $enableval in 11273 yes) enable_static=yes ;; 11274 no) enable_static=no ;; 11275 *) 11276 enable_static=no 11277 # Look at the argument we got. We use all the common list separators. 11278 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11279 for pkg in $enableval; do 11280 IFS=$lt_save_ifs 11281 if test "X$pkg" = "X$p"; then 11282 enable_static=yes 11283 fi 11284 done 11285 IFS=$lt_save_ifs 11286 ;; 11287 esac 11288else $as_nop 11289 enable_static=no 11290fi 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300case `pwd` in 11301 *\ * | *\ *) 11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11303printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11304esac 11305 11306 11307 11308macro_version='2.4.7' 11309macro_revision='2.4.7' 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324ltmain=$ac_aux_dir/ltmain.sh 11325 11326# Backslashify metacharacters that are still active within 11327# double-quoted strings. 11328sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11329 11330# Same as above, but do not quote variable references. 11331double_quote_subst='s/\(["`\\]\)/\\\1/g' 11332 11333# Sed substitution to delay expansion of an escaped shell variable in a 11334# double_quote_subst'ed string. 11335delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11336 11337# Sed substitution to delay expansion of an escaped single quote. 11338delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11339 11340# Sed substitution to avoid accidental globbing in evaled expressions 11341no_glob_subst='s/\*/\\\*/g' 11342 11343ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11344ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11345ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11346 11347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11348printf %s "checking how to print strings... " >&6; } 11349# Test print first, because it will be a builtin if present. 11350if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11351 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11352 ECHO='print -r --' 11353elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11354 ECHO='printf %s\n' 11355else 11356 # Use this function as a fallback that always works. 11357 func_fallback_echo () 11358 { 11359 eval 'cat <<_LTECHO_EOF 11360$1 11361_LTECHO_EOF' 11362 } 11363 ECHO='func_fallback_echo' 11364fi 11365 11366# func_echo_all arg... 11367# Invoke $ECHO with all args, space-separated. 11368func_echo_all () 11369{ 11370 $ECHO "" 11371} 11372 11373case $ECHO in 11374 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11375printf "%s\n" "printf" >&6; } ;; 11376 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11377printf "%s\n" "print -r" >&6; } ;; 11378 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11379printf "%s\n" "cat" >&6; } ;; 11380esac 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11396printf %s "checking for a sed that does not truncate output... " >&6; } 11397if test ${ac_cv_path_SED+y} 11398then : 11399 printf %s "(cached) " >&6 11400else $as_nop 11401 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11402 for ac_i in 1 2 3 4 5 6 7; do 11403 ac_script="$ac_script$as_nl$ac_script" 11404 done 11405 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11406 { ac_script=; unset ac_script;} 11407 if test -z "$SED"; then 11408 ac_path_SED_found=false 11409 # Loop through the user's path and test for each of PROGNAME-LIST 11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11411for as_dir in $PATH 11412do 11413 IFS=$as_save_IFS 11414 case $as_dir in #((( 11415 '') as_dir=./ ;; 11416 */) ;; 11417 *) as_dir=$as_dir/ ;; 11418 esac 11419 for ac_prog in sed gsed 11420 do 11421 for ac_exec_ext in '' $ac_executable_extensions; do 11422 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11423 as_fn_executable_p "$ac_path_SED" || continue 11424# Check for GNU ac_path_SED and select it if it is found. 11425 # Check for GNU $ac_path_SED 11426case `"$ac_path_SED" --version 2>&1` in 11427*GNU*) 11428 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11429*) 11430 ac_count=0 11431 printf %s 0123456789 >"conftest.in" 11432 while : 11433 do 11434 cat "conftest.in" "conftest.in" >"conftest.tmp" 11435 mv "conftest.tmp" "conftest.in" 11436 cp "conftest.in" "conftest.nl" 11437 printf "%s\n" '' >> "conftest.nl" 11438 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11440 as_fn_arith $ac_count + 1 && ac_count=$as_val 11441 if test $ac_count -gt ${ac_path_SED_max-0}; then 11442 # Best one so far, save it but keep looking for a better one 11443 ac_cv_path_SED="$ac_path_SED" 11444 ac_path_SED_max=$ac_count 11445 fi 11446 # 10*(2^10) chars as input seems more than enough 11447 test $ac_count -gt 10 && break 11448 done 11449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11450esac 11451 11452 $ac_path_SED_found && break 3 11453 done 11454 done 11455 done 11456IFS=$as_save_IFS 11457 if test -z "$ac_cv_path_SED"; then 11458 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11459 fi 11460else 11461 ac_cv_path_SED=$SED 11462fi 11463 11464fi 11465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11466printf "%s\n" "$ac_cv_path_SED" >&6; } 11467 SED="$ac_cv_path_SED" 11468 rm -f conftest.sed 11469 11470test -z "$SED" && SED=sed 11471Xsed="$SED -e 1s/^X//" 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11484printf %s "checking for grep that handles long lines and -e... " >&6; } 11485if test ${ac_cv_path_GREP+y} 11486then : 11487 printf %s "(cached) " >&6 11488else $as_nop 11489 if test -z "$GREP"; then 11490 ac_path_GREP_found=false 11491 # Loop through the user's path and test for each of PROGNAME-LIST 11492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11493for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11494do 11495 IFS=$as_save_IFS 11496 case $as_dir in #((( 11497 '') as_dir=./ ;; 11498 */) ;; 11499 *) as_dir=$as_dir/ ;; 11500 esac 11501 for ac_prog in grep ggrep 11502 do 11503 for ac_exec_ext in '' $ac_executable_extensions; do 11504 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11505 as_fn_executable_p "$ac_path_GREP" || continue 11506# Check for GNU ac_path_GREP and select it if it is found. 11507 # Check for GNU $ac_path_GREP 11508case `"$ac_path_GREP" --version 2>&1` in 11509*GNU*) 11510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11511*) 11512 ac_count=0 11513 printf %s 0123456789 >"conftest.in" 11514 while : 11515 do 11516 cat "conftest.in" "conftest.in" >"conftest.tmp" 11517 mv "conftest.tmp" "conftest.in" 11518 cp "conftest.in" "conftest.nl" 11519 printf "%s\n" 'GREP' >> "conftest.nl" 11520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11522 as_fn_arith $ac_count + 1 && ac_count=$as_val 11523 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11524 # Best one so far, save it but keep looking for a better one 11525 ac_cv_path_GREP="$ac_path_GREP" 11526 ac_path_GREP_max=$ac_count 11527 fi 11528 # 10*(2^10) chars as input seems more than enough 11529 test $ac_count -gt 10 && break 11530 done 11531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11532esac 11533 11534 $ac_path_GREP_found && break 3 11535 done 11536 done 11537 done 11538IFS=$as_save_IFS 11539 if test -z "$ac_cv_path_GREP"; then 11540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11541 fi 11542else 11543 ac_cv_path_GREP=$GREP 11544fi 11545 11546fi 11547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11548printf "%s\n" "$ac_cv_path_GREP" >&6; } 11549 GREP="$ac_cv_path_GREP" 11550 11551 11552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11553printf %s "checking for egrep... " >&6; } 11554if test ${ac_cv_path_EGREP+y} 11555then : 11556 printf %s "(cached) " >&6 11557else $as_nop 11558 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11559 then ac_cv_path_EGREP="$GREP -E" 11560 else 11561 if test -z "$EGREP"; then 11562 ac_path_EGREP_found=false 11563 # Loop through the user's path and test for each of PROGNAME-LIST 11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11565for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11566do 11567 IFS=$as_save_IFS 11568 case $as_dir in #((( 11569 '') as_dir=./ ;; 11570 */) ;; 11571 *) as_dir=$as_dir/ ;; 11572 esac 11573 for ac_prog in egrep 11574 do 11575 for ac_exec_ext in '' $ac_executable_extensions; do 11576 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11577 as_fn_executable_p "$ac_path_EGREP" || continue 11578# Check for GNU ac_path_EGREP and select it if it is found. 11579 # Check for GNU $ac_path_EGREP 11580case `"$ac_path_EGREP" --version 2>&1` in 11581*GNU*) 11582 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11583*) 11584 ac_count=0 11585 printf %s 0123456789 >"conftest.in" 11586 while : 11587 do 11588 cat "conftest.in" "conftest.in" >"conftest.tmp" 11589 mv "conftest.tmp" "conftest.in" 11590 cp "conftest.in" "conftest.nl" 11591 printf "%s\n" 'EGREP' >> "conftest.nl" 11592 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11594 as_fn_arith $ac_count + 1 && ac_count=$as_val 11595 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11596 # Best one so far, save it but keep looking for a better one 11597 ac_cv_path_EGREP="$ac_path_EGREP" 11598 ac_path_EGREP_max=$ac_count 11599 fi 11600 # 10*(2^10) chars as input seems more than enough 11601 test $ac_count -gt 10 && break 11602 done 11603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11604esac 11605 11606 $ac_path_EGREP_found && break 3 11607 done 11608 done 11609 done 11610IFS=$as_save_IFS 11611 if test -z "$ac_cv_path_EGREP"; then 11612 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11613 fi 11614else 11615 ac_cv_path_EGREP=$EGREP 11616fi 11617 11618 fi 11619fi 11620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11621printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11622 EGREP="$ac_cv_path_EGREP" 11623 11624 11625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11626printf %s "checking for fgrep... " >&6; } 11627if test ${ac_cv_path_FGREP+y} 11628then : 11629 printf %s "(cached) " >&6 11630else $as_nop 11631 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11632 then ac_cv_path_FGREP="$GREP -F" 11633 else 11634 if test -z "$FGREP"; then 11635 ac_path_FGREP_found=false 11636 # Loop through the user's path and test for each of PROGNAME-LIST 11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11638for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11639do 11640 IFS=$as_save_IFS 11641 case $as_dir in #((( 11642 '') as_dir=./ ;; 11643 */) ;; 11644 *) as_dir=$as_dir/ ;; 11645 esac 11646 for ac_prog in fgrep 11647 do 11648 for ac_exec_ext in '' $ac_executable_extensions; do 11649 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11650 as_fn_executable_p "$ac_path_FGREP" || continue 11651# Check for GNU ac_path_FGREP and select it if it is found. 11652 # Check for GNU $ac_path_FGREP 11653case `"$ac_path_FGREP" --version 2>&1` in 11654*GNU*) 11655 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11656*) 11657 ac_count=0 11658 printf %s 0123456789 >"conftest.in" 11659 while : 11660 do 11661 cat "conftest.in" "conftest.in" >"conftest.tmp" 11662 mv "conftest.tmp" "conftest.in" 11663 cp "conftest.in" "conftest.nl" 11664 printf "%s\n" 'FGREP' >> "conftest.nl" 11665 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11666 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11667 as_fn_arith $ac_count + 1 && ac_count=$as_val 11668 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11669 # Best one so far, save it but keep looking for a better one 11670 ac_cv_path_FGREP="$ac_path_FGREP" 11671 ac_path_FGREP_max=$ac_count 11672 fi 11673 # 10*(2^10) chars as input seems more than enough 11674 test $ac_count -gt 10 && break 11675 done 11676 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11677esac 11678 11679 $ac_path_FGREP_found && break 3 11680 done 11681 done 11682 done 11683IFS=$as_save_IFS 11684 if test -z "$ac_cv_path_FGREP"; then 11685 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11686 fi 11687else 11688 ac_cv_path_FGREP=$FGREP 11689fi 11690 11691 fi 11692fi 11693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11694printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11695 FGREP="$ac_cv_path_FGREP" 11696 11697 11698test -z "$GREP" && GREP=grep 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718# Check whether --with-gnu-ld was given. 11719if test ${with_gnu_ld+y} 11720then : 11721 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11722else $as_nop 11723 with_gnu_ld=no 11724fi 11725 11726ac_prog=ld 11727if test yes = "$GCC"; then 11728 # Check if gcc -print-prog-name=ld gives a path. 11729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11730printf %s "checking for ld used by $CC... " >&6; } 11731 case $host in 11732 *-*-mingw*) 11733 # gcc leaves a trailing carriage return, which upsets mingw 11734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11735 *) 11736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11737 esac 11738 case $ac_prog in 11739 # Accept absolute paths. 11740 [\\/]* | ?:[\\/]*) 11741 re_direlt='/[^/][^/]*/\.\./' 11742 # Canonicalize the pathname of ld 11743 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11744 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11745 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11746 done 11747 test -z "$LD" && LD=$ac_prog 11748 ;; 11749 "") 11750 # If it fails, then pretend we aren't using GCC. 11751 ac_prog=ld 11752 ;; 11753 *) 11754 # If it is relative, then search for the first ld in PATH. 11755 with_gnu_ld=unknown 11756 ;; 11757 esac 11758elif test yes = "$with_gnu_ld"; then 11759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11760printf %s "checking for GNU ld... " >&6; } 11761else 11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11763printf %s "checking for non-GNU ld... " >&6; } 11764fi 11765if test ${lt_cv_path_LD+y} 11766then : 11767 printf %s "(cached) " >&6 11768else $as_nop 11769 if test -z "$LD"; then 11770 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11771 for ac_dir in $PATH; do 11772 IFS=$lt_save_ifs 11773 test -z "$ac_dir" && ac_dir=. 11774 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11775 lt_cv_path_LD=$ac_dir/$ac_prog 11776 # Check to see if the program is GNU ld. I'd rather use --version, 11777 # but apparently some variants of GNU ld only accept -v. 11778 # Break only if it was the GNU/non-GNU ld that we prefer. 11779 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11780 *GNU* | *'with BFD'*) 11781 test no != "$with_gnu_ld" && break 11782 ;; 11783 *) 11784 test yes != "$with_gnu_ld" && break 11785 ;; 11786 esac 11787 fi 11788 done 11789 IFS=$lt_save_ifs 11790else 11791 lt_cv_path_LD=$LD # Let the user override the test with a path. 11792fi 11793fi 11794 11795LD=$lt_cv_path_LD 11796if test -n "$LD"; then 11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11798printf "%s\n" "$LD" >&6; } 11799else 11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11801printf "%s\n" "no" >&6; } 11802fi 11803test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11805printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11806if test ${lt_cv_prog_gnu_ld+y} 11807then : 11808 printf %s "(cached) " >&6 11809else $as_nop 11810 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11811case `$LD -v 2>&1 </dev/null` in 11812*GNU* | *'with BFD'*) 11813 lt_cv_prog_gnu_ld=yes 11814 ;; 11815*) 11816 lt_cv_prog_gnu_ld=no 11817 ;; 11818esac 11819fi 11820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11821printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11822with_gnu_ld=$lt_cv_prog_gnu_ld 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11833printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11834if test ${lt_cv_path_NM+y} 11835then : 11836 printf %s "(cached) " >&6 11837else $as_nop 11838 if test -n "$NM"; then 11839 # Let the user override the test. 11840 lt_cv_path_NM=$NM 11841else 11842 lt_nm_to_check=${ac_tool_prefix}nm 11843 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11844 lt_nm_to_check="$lt_nm_to_check nm" 11845 fi 11846 for lt_tmp_nm in $lt_nm_to_check; do 11847 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11848 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11849 IFS=$lt_save_ifs 11850 test -z "$ac_dir" && ac_dir=. 11851 tmp_nm=$ac_dir/$lt_tmp_nm 11852 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11853 # Check to see if the nm accepts a BSD-compat flag. 11854 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11855 # nm: unknown option "B" ignored 11856 # Tru64's nm complains that /dev/null is an invalid object file 11857 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11858 case $build_os in 11859 mingw*) lt_bad_file=conftest.nm/nofile ;; 11860 *) lt_bad_file=/dev/null ;; 11861 esac 11862 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11863 *$lt_bad_file* | *'Invalid file or object type'*) 11864 lt_cv_path_NM="$tmp_nm -B" 11865 break 2 11866 ;; 11867 *) 11868 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11869 */dev/null*) 11870 lt_cv_path_NM="$tmp_nm -p" 11871 break 2 11872 ;; 11873 *) 11874 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11875 continue # so that we can try to find one that supports BSD flags 11876 ;; 11877 esac 11878 ;; 11879 esac 11880 fi 11881 done 11882 IFS=$lt_save_ifs 11883 done 11884 : ${lt_cv_path_NM=no} 11885fi 11886fi 11887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11888printf "%s\n" "$lt_cv_path_NM" >&6; } 11889if test no != "$lt_cv_path_NM"; then 11890 NM=$lt_cv_path_NM 11891else 11892 # Didn't find any BSD compatible name lister, look for dumpbin. 11893 if test -n "$DUMPBIN"; then : 11894 # Let the user override the test. 11895 else 11896 if test -n "$ac_tool_prefix"; then 11897 for ac_prog in dumpbin "link -dump" 11898 do 11899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11900set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11902printf %s "checking for $ac_word... " >&6; } 11903if test ${ac_cv_prog_DUMPBIN+y} 11904then : 11905 printf %s "(cached) " >&6 11906else $as_nop 11907 if test -n "$DUMPBIN"; then 11908 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11909else 11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11911for as_dir in $PATH 11912do 11913 IFS=$as_save_IFS 11914 case $as_dir in #((( 11915 '') as_dir=./ ;; 11916 */) ;; 11917 *) as_dir=$as_dir/ ;; 11918 esac 11919 for ac_exec_ext in '' $ac_executable_extensions; do 11920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11921 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11923 break 2 11924 fi 11925done 11926 done 11927IFS=$as_save_IFS 11928 11929fi 11930fi 11931DUMPBIN=$ac_cv_prog_DUMPBIN 11932if test -n "$DUMPBIN"; then 11933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11934printf "%s\n" "$DUMPBIN" >&6; } 11935else 11936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11937printf "%s\n" "no" >&6; } 11938fi 11939 11940 11941 test -n "$DUMPBIN" && break 11942 done 11943fi 11944if test -z "$DUMPBIN"; then 11945 ac_ct_DUMPBIN=$DUMPBIN 11946 for ac_prog in dumpbin "link -dump" 11947do 11948 # Extract the first word of "$ac_prog", so it can be a program name with args. 11949set dummy $ac_prog; ac_word=$2 11950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11951printf %s "checking for $ac_word... " >&6; } 11952if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11953then : 11954 printf %s "(cached) " >&6 11955else $as_nop 11956 if test -n "$ac_ct_DUMPBIN"; then 11957 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11958else 11959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11960for as_dir in $PATH 11961do 11962 IFS=$as_save_IFS 11963 case $as_dir in #((( 11964 '') as_dir=./ ;; 11965 */) ;; 11966 *) as_dir=$as_dir/ ;; 11967 esac 11968 for ac_exec_ext in '' $ac_executable_extensions; do 11969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11970 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11972 break 2 11973 fi 11974done 11975 done 11976IFS=$as_save_IFS 11977 11978fi 11979fi 11980ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11981if test -n "$ac_ct_DUMPBIN"; then 11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11983printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11984else 11985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11986printf "%s\n" "no" >&6; } 11987fi 11988 11989 11990 test -n "$ac_ct_DUMPBIN" && break 11991done 11992 11993 if test "x$ac_ct_DUMPBIN" = x; then 11994 DUMPBIN=":" 11995 else 11996 case $cross_compiling:$ac_tool_warned in 11997yes:) 11998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11999printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12000ac_tool_warned=yes ;; 12001esac 12002 DUMPBIN=$ac_ct_DUMPBIN 12003 fi 12004fi 12005 12006 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12007 *COFF*) 12008 DUMPBIN="$DUMPBIN -symbols -headers" 12009 ;; 12010 *) 12011 DUMPBIN=: 12012 ;; 12013 esac 12014 fi 12015 12016 if test : != "$DUMPBIN"; then 12017 NM=$DUMPBIN 12018 fi 12019fi 12020test -z "$NM" && NM=nm 12021 12022 12023 12024 12025 12026 12027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12028printf %s "checking the name lister ($NM) interface... " >&6; } 12029if test ${lt_cv_nm_interface+y} 12030then : 12031 printf %s "(cached) " >&6 12032else $as_nop 12033 lt_cv_nm_interface="BSD nm" 12034 echo "int some_variable = 0;" > conftest.$ac_ext 12035 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12036 (eval "$ac_compile" 2>conftest.err) 12037 cat conftest.err >&5 12038 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12039 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12040 cat conftest.err >&5 12041 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12042 cat conftest.out >&5 12043 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12044 lt_cv_nm_interface="MS dumpbin" 12045 fi 12046 rm -f conftest* 12047fi 12048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12049printf "%s\n" "$lt_cv_nm_interface" >&6; } 12050 12051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12052printf %s "checking whether ln -s works... " >&6; } 12053LN_S=$as_ln_s 12054if test "$LN_S" = "ln -s"; then 12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12056printf "%s\n" "yes" >&6; } 12057else 12058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12059printf "%s\n" "no, using $LN_S" >&6; } 12060fi 12061 12062# find the maximum length of command line arguments 12063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12064printf %s "checking the maximum length of command line arguments... " >&6; } 12065if test ${lt_cv_sys_max_cmd_len+y} 12066then : 12067 printf %s "(cached) " >&6 12068else $as_nop 12069 i=0 12070 teststring=ABCD 12071 12072 case $build_os in 12073 msdosdjgpp*) 12074 # On DJGPP, this test can blow up pretty badly due to problems in libc 12075 # (any single argument exceeding 2000 bytes causes a buffer overrun 12076 # during glob expansion). Even if it were fixed, the result of this 12077 # check would be larger than it should be. 12078 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12079 ;; 12080 12081 gnu*) 12082 # Under GNU Hurd, this test is not required because there is 12083 # no limit to the length of command line arguments. 12084 # Libtool will interpret -1 as no limit whatsoever 12085 lt_cv_sys_max_cmd_len=-1; 12086 ;; 12087 12088 cygwin* | mingw* | cegcc*) 12089 # On Win9x/ME, this test blows up -- it succeeds, but takes 12090 # about 5 minutes as the teststring grows exponentially. 12091 # Worse, since 9x/ME are not pre-emptively multitasking, 12092 # you end up with a "frozen" computer, even though with patience 12093 # the test eventually succeeds (with a max line length of 256k). 12094 # Instead, let's just punt: use the minimum linelength reported by 12095 # all of the supported platforms: 8192 (on NT/2K/XP). 12096 lt_cv_sys_max_cmd_len=8192; 12097 ;; 12098 12099 mint*) 12100 # On MiNT this can take a long time and run out of memory. 12101 lt_cv_sys_max_cmd_len=8192; 12102 ;; 12103 12104 amigaos*) 12105 # On AmigaOS with pdksh, this test takes hours, literally. 12106 # So we just punt and use a minimum line length of 8192. 12107 lt_cv_sys_max_cmd_len=8192; 12108 ;; 12109 12110 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12111 # This has been around since 386BSD, at least. Likely further. 12112 if test -x /sbin/sysctl; then 12113 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12114 elif test -x /usr/sbin/sysctl; then 12115 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12116 else 12117 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12118 fi 12119 # And add a safety zone 12120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12122 ;; 12123 12124 interix*) 12125 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12126 lt_cv_sys_max_cmd_len=196608 12127 ;; 12128 12129 os2*) 12130 # The test takes a long time on OS/2. 12131 lt_cv_sys_max_cmd_len=8192 12132 ;; 12133 12134 osf*) 12135 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12136 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12137 # nice to cause kernel panics so lets avoid the loop below. 12138 # First set a reasonable default. 12139 lt_cv_sys_max_cmd_len=16384 12140 # 12141 if test -x /sbin/sysconfig; then 12142 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12143 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12144 esac 12145 fi 12146 ;; 12147 sco3.2v5*) 12148 lt_cv_sys_max_cmd_len=102400 12149 ;; 12150 sysv5* | sco5v6* | sysv4.2uw2*) 12151 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12152 if test -n "$kargmax"; then 12153 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12154 else 12155 lt_cv_sys_max_cmd_len=32768 12156 fi 12157 ;; 12158 *) 12159 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12160 if test -n "$lt_cv_sys_max_cmd_len" && \ 12161 test undefined != "$lt_cv_sys_max_cmd_len"; then 12162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12164 else 12165 # Make teststring a little bigger before we do anything with it. 12166 # a 1K string should be a reasonable start. 12167 for i in 1 2 3 4 5 6 7 8; do 12168 teststring=$teststring$teststring 12169 done 12170 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12171 # If test is not a shell built-in, we'll probably end up computing a 12172 # maximum length that is only half of the actual maximum length, but 12173 # we can't tell. 12174 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12175 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12176 test 17 != "$i" # 1/2 MB should be enough 12177 do 12178 i=`expr $i + 1` 12179 teststring=$teststring$teststring 12180 done 12181 # Only check the string length outside the loop. 12182 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12183 teststring= 12184 # Add a significant safety factor because C++ compilers can tack on 12185 # massive amounts of additional arguments before passing them to the 12186 # linker. It appears as though 1/2 is a usable value. 12187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12188 fi 12189 ;; 12190 esac 12191 12192fi 12193 12194if test -n "$lt_cv_sys_max_cmd_len"; then 12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12196printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12197else 12198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12199printf "%s\n" "none" >&6; } 12200fi 12201max_cmd_len=$lt_cv_sys_max_cmd_len 12202 12203 12204 12205 12206 12207 12208: ${CP="cp -f"} 12209: ${MV="mv -f"} 12210: ${RM="rm -f"} 12211 12212if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12213 lt_unset=unset 12214else 12215 lt_unset=false 12216fi 12217 12218 12219 12220 12221 12222# test EBCDIC or ASCII 12223case `echo X|tr X '\101'` in 12224 A) # ASCII based system 12225 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12226 lt_SP2NL='tr \040 \012' 12227 lt_NL2SP='tr \015\012 \040\040' 12228 ;; 12229 *) # EBCDIC based system 12230 lt_SP2NL='tr \100 \n' 12231 lt_NL2SP='tr \r\n \100\100' 12232 ;; 12233esac 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12244printf %s "checking how to convert $build file names to $host format... " >&6; } 12245if test ${lt_cv_to_host_file_cmd+y} 12246then : 12247 printf %s "(cached) " >&6 12248else $as_nop 12249 case $host in 12250 *-*-mingw* ) 12251 case $build in 12252 *-*-mingw* ) # actually msys 12253 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12254 ;; 12255 *-*-cygwin* ) 12256 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12257 ;; 12258 * ) # otherwise, assume *nix 12259 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12260 ;; 12261 esac 12262 ;; 12263 *-*-cygwin* ) 12264 case $build in 12265 *-*-mingw* ) # actually msys 12266 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12267 ;; 12268 *-*-cygwin* ) 12269 lt_cv_to_host_file_cmd=func_convert_file_noop 12270 ;; 12271 * ) # otherwise, assume *nix 12272 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12273 ;; 12274 esac 12275 ;; 12276 * ) # unhandled hosts (and "normal" native builds) 12277 lt_cv_to_host_file_cmd=func_convert_file_noop 12278 ;; 12279esac 12280 12281fi 12282 12283to_host_file_cmd=$lt_cv_to_host_file_cmd 12284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12285printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12286 12287 12288 12289 12290 12291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12292printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12293if test ${lt_cv_to_tool_file_cmd+y} 12294then : 12295 printf %s "(cached) " >&6 12296else $as_nop 12297 #assume ordinary cross tools, or native build. 12298lt_cv_to_tool_file_cmd=func_convert_file_noop 12299case $host in 12300 *-*-mingw* ) 12301 case $build in 12302 *-*-mingw* ) # actually msys 12303 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12304 ;; 12305 esac 12306 ;; 12307esac 12308 12309fi 12310 12311to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12313printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12314 12315 12316 12317 12318 12319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12320printf %s "checking for $LD option to reload object files... " >&6; } 12321if test ${lt_cv_ld_reload_flag+y} 12322then : 12323 printf %s "(cached) " >&6 12324else $as_nop 12325 lt_cv_ld_reload_flag='-r' 12326fi 12327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12328printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12329reload_flag=$lt_cv_ld_reload_flag 12330case $reload_flag in 12331"" | " "*) ;; 12332*) reload_flag=" $reload_flag" ;; 12333esac 12334reload_cmds='$LD$reload_flag -o $output$reload_objs' 12335case $host_os in 12336 cygwin* | mingw* | pw32* | cegcc*) 12337 if test yes != "$GCC"; then 12338 reload_cmds=false 12339 fi 12340 ;; 12341 darwin*) 12342 if test yes = "$GCC"; then 12343 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12344 else 12345 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12346 fi 12347 ;; 12348esac 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358if test -n "$ac_tool_prefix"; then 12359 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12360set dummy ${ac_tool_prefix}file; ac_word=$2 12361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12362printf %s "checking for $ac_word... " >&6; } 12363if test ${ac_cv_prog_FILECMD+y} 12364then : 12365 printf %s "(cached) " >&6 12366else $as_nop 12367 if test -n "$FILECMD"; then 12368 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12369else 12370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12371for as_dir in $PATH 12372do 12373 IFS=$as_save_IFS 12374 case $as_dir in #((( 12375 '') as_dir=./ ;; 12376 */) ;; 12377 *) as_dir=$as_dir/ ;; 12378 esac 12379 for ac_exec_ext in '' $ac_executable_extensions; do 12380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12381 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12383 break 2 12384 fi 12385done 12386 done 12387IFS=$as_save_IFS 12388 12389fi 12390fi 12391FILECMD=$ac_cv_prog_FILECMD 12392if test -n "$FILECMD"; then 12393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12394printf "%s\n" "$FILECMD" >&6; } 12395else 12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12397printf "%s\n" "no" >&6; } 12398fi 12399 12400 12401fi 12402if test -z "$ac_cv_prog_FILECMD"; then 12403 ac_ct_FILECMD=$FILECMD 12404 # Extract the first word of "file", so it can be a program name with args. 12405set dummy file; ac_word=$2 12406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12407printf %s "checking for $ac_word... " >&6; } 12408if test ${ac_cv_prog_ac_ct_FILECMD+y} 12409then : 12410 printf %s "(cached) " >&6 12411else $as_nop 12412 if test -n "$ac_ct_FILECMD"; then 12413 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12414else 12415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12416for as_dir in $PATH 12417do 12418 IFS=$as_save_IFS 12419 case $as_dir in #((( 12420 '') as_dir=./ ;; 12421 */) ;; 12422 *) as_dir=$as_dir/ ;; 12423 esac 12424 for ac_exec_ext in '' $ac_executable_extensions; do 12425 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12426 ac_cv_prog_ac_ct_FILECMD="file" 12427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12428 break 2 12429 fi 12430done 12431 done 12432IFS=$as_save_IFS 12433 12434fi 12435fi 12436ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12437if test -n "$ac_ct_FILECMD"; then 12438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12439printf "%s\n" "$ac_ct_FILECMD" >&6; } 12440else 12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12442printf "%s\n" "no" >&6; } 12443fi 12444 12445 if test "x$ac_ct_FILECMD" = x; then 12446 FILECMD=":" 12447 else 12448 case $cross_compiling:$ac_tool_warned in 12449yes:) 12450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12451printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12452ac_tool_warned=yes ;; 12453esac 12454 FILECMD=$ac_ct_FILECMD 12455 fi 12456else 12457 FILECMD="$ac_cv_prog_FILECMD" 12458fi 12459 12460 12461 12462 12463 12464 12465 12466if test -n "$ac_tool_prefix"; then 12467 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12468set dummy ${ac_tool_prefix}objdump; ac_word=$2 12469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12470printf %s "checking for $ac_word... " >&6; } 12471if test ${ac_cv_prog_OBJDUMP+y} 12472then : 12473 printf %s "(cached) " >&6 12474else $as_nop 12475 if test -n "$OBJDUMP"; then 12476 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12477else 12478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12479for as_dir in $PATH 12480do 12481 IFS=$as_save_IFS 12482 case $as_dir in #((( 12483 '') as_dir=./ ;; 12484 */) ;; 12485 *) as_dir=$as_dir/ ;; 12486 esac 12487 for ac_exec_ext in '' $ac_executable_extensions; do 12488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12489 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12491 break 2 12492 fi 12493done 12494 done 12495IFS=$as_save_IFS 12496 12497fi 12498fi 12499OBJDUMP=$ac_cv_prog_OBJDUMP 12500if test -n "$OBJDUMP"; then 12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12502printf "%s\n" "$OBJDUMP" >&6; } 12503else 12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12505printf "%s\n" "no" >&6; } 12506fi 12507 12508 12509fi 12510if test -z "$ac_cv_prog_OBJDUMP"; then 12511 ac_ct_OBJDUMP=$OBJDUMP 12512 # Extract the first word of "objdump", so it can be a program name with args. 12513set dummy objdump; ac_word=$2 12514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12515printf %s "checking for $ac_word... " >&6; } 12516if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12517then : 12518 printf %s "(cached) " >&6 12519else $as_nop 12520 if test -n "$ac_ct_OBJDUMP"; then 12521 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12522else 12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12524for as_dir in $PATH 12525do 12526 IFS=$as_save_IFS 12527 case $as_dir in #((( 12528 '') as_dir=./ ;; 12529 */) ;; 12530 *) as_dir=$as_dir/ ;; 12531 esac 12532 for ac_exec_ext in '' $ac_executable_extensions; do 12533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12534 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12536 break 2 12537 fi 12538done 12539 done 12540IFS=$as_save_IFS 12541 12542fi 12543fi 12544ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12545if test -n "$ac_ct_OBJDUMP"; then 12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12547printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12548else 12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12550printf "%s\n" "no" >&6; } 12551fi 12552 12553 if test "x$ac_ct_OBJDUMP" = x; then 12554 OBJDUMP="false" 12555 else 12556 case $cross_compiling:$ac_tool_warned in 12557yes:) 12558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12559printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12560ac_tool_warned=yes ;; 12561esac 12562 OBJDUMP=$ac_ct_OBJDUMP 12563 fi 12564else 12565 OBJDUMP="$ac_cv_prog_OBJDUMP" 12566fi 12567 12568test -z "$OBJDUMP" && OBJDUMP=objdump 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12579printf %s "checking how to recognize dependent libraries... " >&6; } 12580if test ${lt_cv_deplibs_check_method+y} 12581then : 12582 printf %s "(cached) " >&6 12583else $as_nop 12584 lt_cv_file_magic_cmd='$MAGIC_CMD' 12585lt_cv_file_magic_test_file= 12586lt_cv_deplibs_check_method='unknown' 12587# Need to set the preceding variable on all platforms that support 12588# interlibrary dependencies. 12589# 'none' -- dependencies not supported. 12590# 'unknown' -- same as none, but documents that we really don't know. 12591# 'pass_all' -- all dependencies passed with no checks. 12592# 'test_compile' -- check by making test program. 12593# 'file_magic [[regex]]' -- check by looking for files in library path 12594# that responds to the $file_magic_cmd with a given extended regex. 12595# If you have 'file' or equivalent on your system and you're not sure 12596# whether 'pass_all' will *always* work, you probably want this one. 12597 12598case $host_os in 12599aix[4-9]*) 12600 lt_cv_deplibs_check_method=pass_all 12601 ;; 12602 12603beos*) 12604 lt_cv_deplibs_check_method=pass_all 12605 ;; 12606 12607bsdi[45]*) 12608 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12609 lt_cv_file_magic_cmd='$FILECMD -L' 12610 lt_cv_file_magic_test_file=/shlib/libc.so 12611 ;; 12612 12613cygwin*) 12614 # func_win32_libid is a shell function defined in ltmain.sh 12615 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12616 lt_cv_file_magic_cmd='func_win32_libid' 12617 ;; 12618 12619mingw* | pw32*) 12620 # Base MSYS/MinGW do not provide the 'file' command needed by 12621 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12622 # unless we find 'file', for example because we are cross-compiling. 12623 if ( file / ) >/dev/null 2>&1; then 12624 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12625 lt_cv_file_magic_cmd='func_win32_libid' 12626 else 12627 # Keep this pattern in sync with the one in func_win32_libid. 12628 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12629 lt_cv_file_magic_cmd='$OBJDUMP -f' 12630 fi 12631 ;; 12632 12633cegcc*) 12634 # use the weaker test based on 'objdump'. See mingw*. 12635 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12636 lt_cv_file_magic_cmd='$OBJDUMP -f' 12637 ;; 12638 12639darwin* | rhapsody*) 12640 lt_cv_deplibs_check_method=pass_all 12641 ;; 12642 12643freebsd* | dragonfly* | midnightbsd*) 12644 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12645 case $host_cpu in 12646 i*86 ) 12647 # Not sure whether the presence of OpenBSD here was a mistake. 12648 # Let's accept both of them until this is cleared up. 12649 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12650 lt_cv_file_magic_cmd=$FILECMD 12651 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12652 ;; 12653 esac 12654 else 12655 lt_cv_deplibs_check_method=pass_all 12656 fi 12657 ;; 12658 12659haiku*) 12660 lt_cv_deplibs_check_method=pass_all 12661 ;; 12662 12663hpux10.20* | hpux11*) 12664 lt_cv_file_magic_cmd=$FILECMD 12665 case $host_cpu in 12666 ia64*) 12667 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12668 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12669 ;; 12670 hppa*64*) 12671 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]' 12672 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12673 ;; 12674 *) 12675 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12676 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12677 ;; 12678 esac 12679 ;; 12680 12681interix[3-9]*) 12682 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12683 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12684 ;; 12685 12686irix5* | irix6* | nonstopux*) 12687 case $LD in 12688 *-32|*"-32 ") libmagic=32-bit;; 12689 *-n32|*"-n32 ") libmagic=N32;; 12690 *-64|*"-64 ") libmagic=64-bit;; 12691 *) libmagic=never-match;; 12692 esac 12693 lt_cv_deplibs_check_method=pass_all 12694 ;; 12695 12696# This must be glibc/ELF. 12697linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12698 lt_cv_deplibs_check_method=pass_all 12699 ;; 12700 12701netbsd*) 12702 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12703 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12704 else 12705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12706 fi 12707 ;; 12708 12709newos6*) 12710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12711 lt_cv_file_magic_cmd=$FILECMD 12712 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12713 ;; 12714 12715*nto* | *qnx*) 12716 lt_cv_deplibs_check_method=pass_all 12717 ;; 12718 12719openbsd* | bitrig*) 12720 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12722 else 12723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12724 fi 12725 ;; 12726 12727osf3* | osf4* | osf5*) 12728 lt_cv_deplibs_check_method=pass_all 12729 ;; 12730 12731rdos*) 12732 lt_cv_deplibs_check_method=pass_all 12733 ;; 12734 12735solaris*) 12736 lt_cv_deplibs_check_method=pass_all 12737 ;; 12738 12739sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12740 lt_cv_deplibs_check_method=pass_all 12741 ;; 12742 12743sysv4 | sysv4.3*) 12744 case $host_vendor in 12745 motorola) 12746 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]' 12747 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12748 ;; 12749 ncr) 12750 lt_cv_deplibs_check_method=pass_all 12751 ;; 12752 sequent) 12753 lt_cv_file_magic_cmd='/bin/file' 12754 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12755 ;; 12756 sni) 12757 lt_cv_file_magic_cmd='/bin/file' 12758 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12759 lt_cv_file_magic_test_file=/lib/libc.so 12760 ;; 12761 siemens) 12762 lt_cv_deplibs_check_method=pass_all 12763 ;; 12764 pc) 12765 lt_cv_deplibs_check_method=pass_all 12766 ;; 12767 esac 12768 ;; 12769 12770tpf*) 12771 lt_cv_deplibs_check_method=pass_all 12772 ;; 12773os2*) 12774 lt_cv_deplibs_check_method=pass_all 12775 ;; 12776esac 12777 12778fi 12779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12780printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12781 12782file_magic_glob= 12783want_nocaseglob=no 12784if test "$build" = "$host"; then 12785 case $host_os in 12786 mingw* | pw32*) 12787 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12788 want_nocaseglob=yes 12789 else 12790 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12791 fi 12792 ;; 12793 esac 12794fi 12795 12796file_magic_cmd=$lt_cv_file_magic_cmd 12797deplibs_check_method=$lt_cv_deplibs_check_method 12798test -z "$deplibs_check_method" && deplibs_check_method=unknown 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821if test -n "$ac_tool_prefix"; then 12822 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12823set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12825printf %s "checking for $ac_word... " >&6; } 12826if test ${ac_cv_prog_DLLTOOL+y} 12827then : 12828 printf %s "(cached) " >&6 12829else $as_nop 12830 if test -n "$DLLTOOL"; then 12831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12832else 12833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12834for as_dir in $PATH 12835do 12836 IFS=$as_save_IFS 12837 case $as_dir in #((( 12838 '') as_dir=./ ;; 12839 */) ;; 12840 *) as_dir=$as_dir/ ;; 12841 esac 12842 for ac_exec_ext in '' $ac_executable_extensions; do 12843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12844 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12846 break 2 12847 fi 12848done 12849 done 12850IFS=$as_save_IFS 12851 12852fi 12853fi 12854DLLTOOL=$ac_cv_prog_DLLTOOL 12855if test -n "$DLLTOOL"; then 12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12857printf "%s\n" "$DLLTOOL" >&6; } 12858else 12859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12860printf "%s\n" "no" >&6; } 12861fi 12862 12863 12864fi 12865if test -z "$ac_cv_prog_DLLTOOL"; then 12866 ac_ct_DLLTOOL=$DLLTOOL 12867 # Extract the first word of "dlltool", so it can be a program name with args. 12868set dummy dlltool; ac_word=$2 12869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12870printf %s "checking for $ac_word... " >&6; } 12871if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12872then : 12873 printf %s "(cached) " >&6 12874else $as_nop 12875 if test -n "$ac_ct_DLLTOOL"; then 12876 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12877else 12878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12879for as_dir in $PATH 12880do 12881 IFS=$as_save_IFS 12882 case $as_dir in #((( 12883 '') as_dir=./ ;; 12884 */) ;; 12885 *) as_dir=$as_dir/ ;; 12886 esac 12887 for ac_exec_ext in '' $ac_executable_extensions; do 12888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12889 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12891 break 2 12892 fi 12893done 12894 done 12895IFS=$as_save_IFS 12896 12897fi 12898fi 12899ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12900if test -n "$ac_ct_DLLTOOL"; then 12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12902printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12903else 12904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12905printf "%s\n" "no" >&6; } 12906fi 12907 12908 if test "x$ac_ct_DLLTOOL" = x; then 12909 DLLTOOL="false" 12910 else 12911 case $cross_compiling:$ac_tool_warned in 12912yes:) 12913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12914printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12915ac_tool_warned=yes ;; 12916esac 12917 DLLTOOL=$ac_ct_DLLTOOL 12918 fi 12919else 12920 DLLTOOL="$ac_cv_prog_DLLTOOL" 12921fi 12922 12923test -z "$DLLTOOL" && DLLTOOL=dlltool 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12935printf %s "checking how to associate runtime and link libraries... " >&6; } 12936if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12937then : 12938 printf %s "(cached) " >&6 12939else $as_nop 12940 lt_cv_sharedlib_from_linklib_cmd='unknown' 12941 12942case $host_os in 12943cygwin* | mingw* | pw32* | cegcc*) 12944 # two different shell functions defined in ltmain.sh; 12945 # decide which one to use based on capabilities of $DLLTOOL 12946 case `$DLLTOOL --help 2>&1` in 12947 *--identify-strict*) 12948 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12949 ;; 12950 *) 12951 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12952 ;; 12953 esac 12954 ;; 12955*) 12956 # fallback: assume linklib IS sharedlib 12957 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12958 ;; 12959esac 12960 12961fi 12962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12963printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12964sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12965test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12966 12967 12968 12969 12970 12971 12972 12973if test -n "$ac_tool_prefix"; then 12974 for ac_prog in ar 12975 do 12976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12977set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12979printf %s "checking for $ac_word... " >&6; } 12980if test ${ac_cv_prog_AR+y} 12981then : 12982 printf %s "(cached) " >&6 12983else $as_nop 12984 if test -n "$AR"; then 12985 ac_cv_prog_AR="$AR" # Let the user override the test. 12986else 12987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12988for as_dir in $PATH 12989do 12990 IFS=$as_save_IFS 12991 case $as_dir in #((( 12992 '') as_dir=./ ;; 12993 */) ;; 12994 *) as_dir=$as_dir/ ;; 12995 esac 12996 for ac_exec_ext in '' $ac_executable_extensions; do 12997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12998 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13000 break 2 13001 fi 13002done 13003 done 13004IFS=$as_save_IFS 13005 13006fi 13007fi 13008AR=$ac_cv_prog_AR 13009if test -n "$AR"; then 13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13011printf "%s\n" "$AR" >&6; } 13012else 13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13014printf "%s\n" "no" >&6; } 13015fi 13016 13017 13018 test -n "$AR" && break 13019 done 13020fi 13021if test -z "$AR"; then 13022 ac_ct_AR=$AR 13023 for ac_prog in ar 13024do 13025 # Extract the first word of "$ac_prog", so it can be a program name with args. 13026set dummy $ac_prog; ac_word=$2 13027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13028printf %s "checking for $ac_word... " >&6; } 13029if test ${ac_cv_prog_ac_ct_AR+y} 13030then : 13031 printf %s "(cached) " >&6 13032else $as_nop 13033 if test -n "$ac_ct_AR"; then 13034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13035else 13036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13037for as_dir in $PATH 13038do 13039 IFS=$as_save_IFS 13040 case $as_dir in #((( 13041 '') as_dir=./ ;; 13042 */) ;; 13043 *) as_dir=$as_dir/ ;; 13044 esac 13045 for ac_exec_ext in '' $ac_executable_extensions; do 13046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13047 ac_cv_prog_ac_ct_AR="$ac_prog" 13048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13049 break 2 13050 fi 13051done 13052 done 13053IFS=$as_save_IFS 13054 13055fi 13056fi 13057ac_ct_AR=$ac_cv_prog_ac_ct_AR 13058if test -n "$ac_ct_AR"; then 13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13060printf "%s\n" "$ac_ct_AR" >&6; } 13061else 13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13063printf "%s\n" "no" >&6; } 13064fi 13065 13066 13067 test -n "$ac_ct_AR" && break 13068done 13069 13070 if test "x$ac_ct_AR" = x; then 13071 AR="false" 13072 else 13073 case $cross_compiling:$ac_tool_warned in 13074yes:) 13075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13076printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13077ac_tool_warned=yes ;; 13078esac 13079 AR=$ac_ct_AR 13080 fi 13081fi 13082 13083: ${AR=ar} 13084 13085 13086 13087 13088 13089 13090# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13091# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13092# higher priority because thats what people were doing historically (setting 13093# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13094# variable obsoleted/removed. 13095 13096test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13097lt_ar_flags=$AR_FLAGS 13098 13099 13100 13101 13102 13103 13104# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13105# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13106 13107 13108 13109 13110 13111 13112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13113printf %s "checking for archiver @FILE support... " >&6; } 13114if test ${lt_cv_ar_at_file+y} 13115then : 13116 printf %s "(cached) " >&6 13117else $as_nop 13118 lt_cv_ar_at_file=no 13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13120/* end confdefs.h. */ 13121 13122int 13123main (void) 13124{ 13125 13126 ; 13127 return 0; 13128} 13129_ACEOF 13130if ac_fn_c_try_compile "$LINENO" 13131then : 13132 echo conftest.$ac_objext > conftest.lst 13133 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13135 (eval $lt_ar_try) 2>&5 13136 ac_status=$? 13137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13138 test $ac_status = 0; } 13139 if test 0 -eq "$ac_status"; then 13140 # Ensure the archiver fails upon bogus file names. 13141 rm -f conftest.$ac_objext libconftest.a 13142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13143 (eval $lt_ar_try) 2>&5 13144 ac_status=$? 13145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13146 test $ac_status = 0; } 13147 if test 0 -ne "$ac_status"; then 13148 lt_cv_ar_at_file=@ 13149 fi 13150 fi 13151 rm -f conftest.* libconftest.a 13152 13153fi 13154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13155 13156fi 13157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13158printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13159 13160if test no = "$lt_cv_ar_at_file"; then 13161 archiver_list_spec= 13162else 13163 archiver_list_spec=$lt_cv_ar_at_file 13164fi 13165 13166 13167 13168 13169 13170 13171 13172if test -n "$ac_tool_prefix"; then 13173 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13174set dummy ${ac_tool_prefix}strip; ac_word=$2 13175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13176printf %s "checking for $ac_word... " >&6; } 13177if test ${ac_cv_prog_STRIP+y} 13178then : 13179 printf %s "(cached) " >&6 13180else $as_nop 13181 if test -n "$STRIP"; then 13182 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13183else 13184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13185for as_dir in $PATH 13186do 13187 IFS=$as_save_IFS 13188 case $as_dir in #((( 13189 '') as_dir=./ ;; 13190 */) ;; 13191 *) as_dir=$as_dir/ ;; 13192 esac 13193 for ac_exec_ext in '' $ac_executable_extensions; do 13194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13195 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13197 break 2 13198 fi 13199done 13200 done 13201IFS=$as_save_IFS 13202 13203fi 13204fi 13205STRIP=$ac_cv_prog_STRIP 13206if test -n "$STRIP"; then 13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13208printf "%s\n" "$STRIP" >&6; } 13209else 13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13211printf "%s\n" "no" >&6; } 13212fi 13213 13214 13215fi 13216if test -z "$ac_cv_prog_STRIP"; then 13217 ac_ct_STRIP=$STRIP 13218 # Extract the first word of "strip", so it can be a program name with args. 13219set dummy strip; ac_word=$2 13220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13221printf %s "checking for $ac_word... " >&6; } 13222if test ${ac_cv_prog_ac_ct_STRIP+y} 13223then : 13224 printf %s "(cached) " >&6 13225else $as_nop 13226 if test -n "$ac_ct_STRIP"; then 13227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13228else 13229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13230for as_dir in $PATH 13231do 13232 IFS=$as_save_IFS 13233 case $as_dir in #((( 13234 '') as_dir=./ ;; 13235 */) ;; 13236 *) as_dir=$as_dir/ ;; 13237 esac 13238 for ac_exec_ext in '' $ac_executable_extensions; do 13239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13240 ac_cv_prog_ac_ct_STRIP="strip" 13241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13242 break 2 13243 fi 13244done 13245 done 13246IFS=$as_save_IFS 13247 13248fi 13249fi 13250ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13251if test -n "$ac_ct_STRIP"; then 13252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13253printf "%s\n" "$ac_ct_STRIP" >&6; } 13254else 13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13256printf "%s\n" "no" >&6; } 13257fi 13258 13259 if test "x$ac_ct_STRIP" = x; then 13260 STRIP=":" 13261 else 13262 case $cross_compiling:$ac_tool_warned in 13263yes:) 13264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13265printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13266ac_tool_warned=yes ;; 13267esac 13268 STRIP=$ac_ct_STRIP 13269 fi 13270else 13271 STRIP="$ac_cv_prog_STRIP" 13272fi 13273 13274test -z "$STRIP" && STRIP=: 13275 13276 13277 13278 13279 13280 13281if test -n "$ac_tool_prefix"; then 13282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13283set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13285printf %s "checking for $ac_word... " >&6; } 13286if test ${ac_cv_prog_RANLIB+y} 13287then : 13288 printf %s "(cached) " >&6 13289else $as_nop 13290 if test -n "$RANLIB"; then 13291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13292else 13293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13294for as_dir in $PATH 13295do 13296 IFS=$as_save_IFS 13297 case $as_dir in #((( 13298 '') as_dir=./ ;; 13299 */) ;; 13300 *) as_dir=$as_dir/ ;; 13301 esac 13302 for ac_exec_ext in '' $ac_executable_extensions; do 13303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13306 break 2 13307 fi 13308done 13309 done 13310IFS=$as_save_IFS 13311 13312fi 13313fi 13314RANLIB=$ac_cv_prog_RANLIB 13315if test -n "$RANLIB"; then 13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13317printf "%s\n" "$RANLIB" >&6; } 13318else 13319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13320printf "%s\n" "no" >&6; } 13321fi 13322 13323 13324fi 13325if test -z "$ac_cv_prog_RANLIB"; then 13326 ac_ct_RANLIB=$RANLIB 13327 # Extract the first word of "ranlib", so it can be a program name with args. 13328set dummy ranlib; ac_word=$2 13329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13330printf %s "checking for $ac_word... " >&6; } 13331if test ${ac_cv_prog_ac_ct_RANLIB+y} 13332then : 13333 printf %s "(cached) " >&6 13334else $as_nop 13335 if test -n "$ac_ct_RANLIB"; then 13336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13337else 13338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13339for as_dir in $PATH 13340do 13341 IFS=$as_save_IFS 13342 case $as_dir in #((( 13343 '') as_dir=./ ;; 13344 */) ;; 13345 *) as_dir=$as_dir/ ;; 13346 esac 13347 for ac_exec_ext in '' $ac_executable_extensions; do 13348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13349 ac_cv_prog_ac_ct_RANLIB="ranlib" 13350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13351 break 2 13352 fi 13353done 13354 done 13355IFS=$as_save_IFS 13356 13357fi 13358fi 13359ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13360if test -n "$ac_ct_RANLIB"; then 13361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13362printf "%s\n" "$ac_ct_RANLIB" >&6; } 13363else 13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13365printf "%s\n" "no" >&6; } 13366fi 13367 13368 if test "x$ac_ct_RANLIB" = x; then 13369 RANLIB=":" 13370 else 13371 case $cross_compiling:$ac_tool_warned in 13372yes:) 13373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13375ac_tool_warned=yes ;; 13376esac 13377 RANLIB=$ac_ct_RANLIB 13378 fi 13379else 13380 RANLIB="$ac_cv_prog_RANLIB" 13381fi 13382 13383test -z "$RANLIB" && RANLIB=: 13384 13385 13386 13387 13388 13389 13390# Determine commands to create old-style static archives. 13391old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13392old_postinstall_cmds='chmod 644 $oldlib' 13393old_postuninstall_cmds= 13394 13395if test -n "$RANLIB"; then 13396 case $host_os in 13397 bitrig* | openbsd*) 13398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13399 ;; 13400 *) 13401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13402 ;; 13403 esac 13404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13405fi 13406 13407case $host_os in 13408 darwin*) 13409 lock_old_archive_extraction=yes ;; 13410 *) 13411 lock_old_archive_extraction=no ;; 13412esac 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452# If no C compiler was specified, use CC. 13453LTCC=${LTCC-"$CC"} 13454 13455# If no C compiler flags were specified, use CFLAGS. 13456LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13457 13458# Allow CC to be a program name with arguments. 13459compiler=$CC 13460 13461 13462# Check for command to grab the raw symbol name followed by C symbol from nm. 13463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13464printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13465if test ${lt_cv_sys_global_symbol_pipe+y} 13466then : 13467 printf %s "(cached) " >&6 13468else $as_nop 13469 13470# These are sane defaults that work on at least a few old systems. 13471# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13472 13473# Character class describing NM global symbol codes. 13474symcode='[BCDEGRST]' 13475 13476# Regexp to match symbols that can be accessed directly from C. 13477sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13478 13479# Define system-specific variables. 13480case $host_os in 13481aix*) 13482 symcode='[BCDT]' 13483 ;; 13484cygwin* | mingw* | pw32* | cegcc*) 13485 symcode='[ABCDGISTW]' 13486 ;; 13487hpux*) 13488 if test ia64 = "$host_cpu"; then 13489 symcode='[ABCDEGRST]' 13490 fi 13491 ;; 13492irix* | nonstopux*) 13493 symcode='[BCDEGRST]' 13494 ;; 13495osf*) 13496 symcode='[BCDEGQRST]' 13497 ;; 13498solaris*) 13499 symcode='[BDRT]' 13500 ;; 13501sco3.2v5*) 13502 symcode='[DT]' 13503 ;; 13504sysv4.2uw2*) 13505 symcode='[DT]' 13506 ;; 13507sysv5* | sco5v6* | unixware* | OpenUNIX*) 13508 symcode='[ABDT]' 13509 ;; 13510sysv4) 13511 symcode='[DFNSTU]' 13512 ;; 13513esac 13514 13515# If we're using GNU nm, then use its standard symbol codes. 13516case `$NM -V 2>&1` in 13517*GNU* | *'with BFD'*) 13518 symcode='[ABCDGIRSTW]' ;; 13519esac 13520 13521if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13522 # Gets list of data symbols to import. 13523 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13524 # Adjust the below global symbol transforms to fixup imported variables. 13525 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13526 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13527 lt_c_name_lib_hook="\ 13528 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13529 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13530else 13531 # Disable hooks by default. 13532 lt_cv_sys_global_symbol_to_import= 13533 lt_cdecl_hook= 13534 lt_c_name_hook= 13535 lt_c_name_lib_hook= 13536fi 13537 13538# Transform an extracted symbol line into a proper C declaration. 13539# Some systems (esp. on ia64) link data and code symbols differently, 13540# so use this general approach. 13541lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13542$lt_cdecl_hook\ 13543" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13544" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13545 13546# Transform an extracted symbol line into symbol name and symbol address 13547lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13548$lt_c_name_hook\ 13549" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13550" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13551 13552# Transform an extracted symbol line into symbol name with lib prefix and 13553# symbol address. 13554lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13555$lt_c_name_lib_hook\ 13556" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13557" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13558" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13559 13560# Handle CRLF in mingw tool chain 13561opt_cr= 13562case $build_os in 13563mingw*) 13564 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13565 ;; 13566esac 13567 13568# Try without a prefix underscore, then with it. 13569for ac_symprfx in "" "_"; do 13570 13571 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13572 symxfrm="\\1 $ac_symprfx\\2 \\2" 13573 13574 # Write the raw and C identifiers. 13575 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13576 # Fake it for dumpbin and say T for any non-static function, 13577 # D for any global variable and I for any imported variable. 13578 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13579 # which start with @ or ?. 13580 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13581" {last_section=section; section=\$ 3};"\ 13582" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13583" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13584" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13585" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13586" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13587" \$ 0!~/External *\|/{next};"\ 13588" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13589" {if(hide[section]) next};"\ 13590" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13591" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13592" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13593" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13594" ' prfx=^$ac_symprfx" 13595 else 13596 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13597 fi 13598 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13599 13600 # Check to see that the pipe works correctly. 13601 pipe_works=no 13602 13603 rm -f conftest* 13604 cat > conftest.$ac_ext <<_LT_EOF 13605#ifdef __cplusplus 13606extern "C" { 13607#endif 13608char nm_test_var; 13609void nm_test_func(void); 13610void nm_test_func(void){} 13611#ifdef __cplusplus 13612} 13613#endif 13614int main(){nm_test_var='a';nm_test_func();return(0);} 13615_LT_EOF 13616 13617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13618 (eval $ac_compile) 2>&5 13619 ac_status=$? 13620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13621 test $ac_status = 0; }; then 13622 # Now try to grab the symbols. 13623 nlist=conftest.nm 13624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13625 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13626 ac_status=$? 13627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13628 test $ac_status = 0; } && test -s "$nlist"; then 13629 # Try sorting and uniquifying the output. 13630 if sort "$nlist" | uniq > "$nlist"T; then 13631 mv -f "$nlist"T "$nlist" 13632 else 13633 rm -f "$nlist"T 13634 fi 13635 13636 # Make sure that we snagged all the symbols we need. 13637 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13638 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13639 cat <<_LT_EOF > conftest.$ac_ext 13640/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13641#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13642/* DATA imports from DLLs on WIN32 can't be const, because runtime 13643 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13644# define LT_DLSYM_CONST 13645#elif defined __osf__ 13646/* This system does not cope well with relocations in const data. */ 13647# define LT_DLSYM_CONST 13648#else 13649# define LT_DLSYM_CONST const 13650#endif 13651 13652#ifdef __cplusplus 13653extern "C" { 13654#endif 13655 13656_LT_EOF 13657 # Now generate the symbol file. 13658 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13659 13660 cat <<_LT_EOF >> conftest.$ac_ext 13661 13662/* The mapping between symbol names and symbols. */ 13663LT_DLSYM_CONST struct { 13664 const char *name; 13665 void *address; 13666} 13667lt__PROGRAM__LTX_preloaded_symbols[] = 13668{ 13669 { "@PROGRAM@", (void *) 0 }, 13670_LT_EOF 13671 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13672 cat <<\_LT_EOF >> conftest.$ac_ext 13673 {0, (void *) 0} 13674}; 13675 13676/* This works around a problem in FreeBSD linker */ 13677#ifdef FREEBSD_WORKAROUND 13678static const void *lt_preloaded_setup() { 13679 return lt__PROGRAM__LTX_preloaded_symbols; 13680} 13681#endif 13682 13683#ifdef __cplusplus 13684} 13685#endif 13686_LT_EOF 13687 # Now try linking the two files. 13688 mv conftest.$ac_objext conftstm.$ac_objext 13689 lt_globsym_save_LIBS=$LIBS 13690 lt_globsym_save_CFLAGS=$CFLAGS 13691 LIBS=conftstm.$ac_objext 13692 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13694 (eval $ac_link) 2>&5 13695 ac_status=$? 13696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13697 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13698 pipe_works=yes 13699 fi 13700 LIBS=$lt_globsym_save_LIBS 13701 CFLAGS=$lt_globsym_save_CFLAGS 13702 else 13703 echo "cannot find nm_test_func in $nlist" >&5 13704 fi 13705 else 13706 echo "cannot find nm_test_var in $nlist" >&5 13707 fi 13708 else 13709 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13710 fi 13711 else 13712 echo "$progname: failed program was:" >&5 13713 cat conftest.$ac_ext >&5 13714 fi 13715 rm -rf conftest* conftst* 13716 13717 # Do not use the global_symbol_pipe unless it works. 13718 if test yes = "$pipe_works"; then 13719 break 13720 else 13721 lt_cv_sys_global_symbol_pipe= 13722 fi 13723done 13724 13725fi 13726 13727if test -z "$lt_cv_sys_global_symbol_pipe"; then 13728 lt_cv_sys_global_symbol_to_cdecl= 13729fi 13730if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13732printf "%s\n" "failed" >&6; } 13733else 13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13735printf "%s\n" "ok" >&6; } 13736fi 13737 13738# Response file support. 13739if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13740 nm_file_list_spec='@' 13741elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13742 nm_file_list_spec='@' 13743fi 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13782printf %s "checking for sysroot... " >&6; } 13783 13784# Check whether --with-sysroot was given. 13785if test ${with_sysroot+y} 13786then : 13787 withval=$with_sysroot; 13788else $as_nop 13789 with_sysroot=no 13790fi 13791 13792 13793lt_sysroot= 13794case $with_sysroot in #( 13795 yes) 13796 if test yes = "$GCC"; then 13797 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13798 fi 13799 ;; #( 13800 /*) 13801 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13802 ;; #( 13803 no|'') 13804 ;; #( 13805 *) 13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13807printf "%s\n" "$with_sysroot" >&6; } 13808 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13809 ;; 13810esac 13811 13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13813printf "%s\n" "${lt_sysroot:-no}" >&6; } 13814 13815 13816 13817 13818 13819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13820printf %s "checking for a working dd... " >&6; } 13821if test ${ac_cv_path_lt_DD+y} 13822then : 13823 printf %s "(cached) " >&6 13824else $as_nop 13825 printf 0123456789abcdef0123456789abcdef >conftest.i 13826cat conftest.i conftest.i >conftest2.i 13827: ${lt_DD:=$DD} 13828if test -z "$lt_DD"; then 13829 ac_path_lt_DD_found=false 13830 # Loop through the user's path and test for each of PROGNAME-LIST 13831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13832for as_dir in $PATH 13833do 13834 IFS=$as_save_IFS 13835 case $as_dir in #((( 13836 '') as_dir=./ ;; 13837 */) ;; 13838 *) as_dir=$as_dir/ ;; 13839 esac 13840 for ac_prog in dd 13841 do 13842 for ac_exec_ext in '' $ac_executable_extensions; do 13843 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13844 as_fn_executable_p "$ac_path_lt_DD" || continue 13845if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13846 cmp -s conftest.i conftest.out \ 13847 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13848fi 13849 $ac_path_lt_DD_found && break 3 13850 done 13851 done 13852 done 13853IFS=$as_save_IFS 13854 if test -z "$ac_cv_path_lt_DD"; then 13855 : 13856 fi 13857else 13858 ac_cv_path_lt_DD=$lt_DD 13859fi 13860 13861rm -f conftest.i conftest2.i conftest.out 13862fi 13863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13864printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13865 13866 13867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13868printf %s "checking how to truncate binary pipes... " >&6; } 13869if test ${lt_cv_truncate_bin+y} 13870then : 13871 printf %s "(cached) " >&6 13872else $as_nop 13873 printf 0123456789abcdef0123456789abcdef >conftest.i 13874cat conftest.i conftest.i >conftest2.i 13875lt_cv_truncate_bin= 13876if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13877 cmp -s conftest.i conftest.out \ 13878 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13879fi 13880rm -f conftest.i conftest2.i conftest.out 13881test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13882fi 13883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13884printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13885 13886 13887 13888 13889 13890 13891 13892# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13893func_cc_basename () 13894{ 13895 for cc_temp in $*""; do 13896 case $cc_temp in 13897 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13898 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13899 \-*) ;; 13900 *) break;; 13901 esac 13902 done 13903 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13904} 13905 13906# Check whether --enable-libtool-lock was given. 13907if test ${enable_libtool_lock+y} 13908then : 13909 enableval=$enable_libtool_lock; 13910fi 13911 13912test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13913 13914# Some flags need to be propagated to the compiler or linker for good 13915# libtool support. 13916case $host in 13917ia64-*-hpux*) 13918 # Find out what ABI is being produced by ac_compile, and set mode 13919 # options accordingly. 13920 echo 'int i;' > conftest.$ac_ext 13921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13922 (eval $ac_compile) 2>&5 13923 ac_status=$? 13924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13925 test $ac_status = 0; }; then 13926 case `$FILECMD conftest.$ac_objext` in 13927 *ELF-32*) 13928 HPUX_IA64_MODE=32 13929 ;; 13930 *ELF-64*) 13931 HPUX_IA64_MODE=64 13932 ;; 13933 esac 13934 fi 13935 rm -rf conftest* 13936 ;; 13937*-*-irix6*) 13938 # Find out what ABI is being produced by ac_compile, and set linker 13939 # options accordingly. 13940 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13942 (eval $ac_compile) 2>&5 13943 ac_status=$? 13944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13945 test $ac_status = 0; }; then 13946 if test yes = "$lt_cv_prog_gnu_ld"; then 13947 case `$FILECMD conftest.$ac_objext` in 13948 *32-bit*) 13949 LD="${LD-ld} -melf32bsmip" 13950 ;; 13951 *N32*) 13952 LD="${LD-ld} -melf32bmipn32" 13953 ;; 13954 *64-bit*) 13955 LD="${LD-ld} -melf64bmip" 13956 ;; 13957 esac 13958 else 13959 case `$FILECMD conftest.$ac_objext` in 13960 *32-bit*) 13961 LD="${LD-ld} -32" 13962 ;; 13963 *N32*) 13964 LD="${LD-ld} -n32" 13965 ;; 13966 *64-bit*) 13967 LD="${LD-ld} -64" 13968 ;; 13969 esac 13970 fi 13971 fi 13972 rm -rf conftest* 13973 ;; 13974 13975mips64*-*linux*) 13976 # Find out what ABI is being produced by ac_compile, and set linker 13977 # options accordingly. 13978 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13980 (eval $ac_compile) 2>&5 13981 ac_status=$? 13982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13983 test $ac_status = 0; }; then 13984 emul=elf 13985 case `$FILECMD conftest.$ac_objext` in 13986 *32-bit*) 13987 emul="${emul}32" 13988 ;; 13989 *64-bit*) 13990 emul="${emul}64" 13991 ;; 13992 esac 13993 case `$FILECMD conftest.$ac_objext` in 13994 *MSB*) 13995 emul="${emul}btsmip" 13996 ;; 13997 *LSB*) 13998 emul="${emul}ltsmip" 13999 ;; 14000 esac 14001 case `$FILECMD conftest.$ac_objext` in 14002 *N32*) 14003 emul="${emul}n32" 14004 ;; 14005 esac 14006 LD="${LD-ld} -m $emul" 14007 fi 14008 rm -rf conftest* 14009 ;; 14010 14011x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14012s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14013 # Find out what ABI is being produced by ac_compile, and set linker 14014 # options accordingly. Note that the listed cases only cover the 14015 # situations where additional linker options are needed (such as when 14016 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14017 # vice versa); the common cases where no linker options are needed do 14018 # not appear in the list. 14019 echo 'int i;' > conftest.$ac_ext 14020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14021 (eval $ac_compile) 2>&5 14022 ac_status=$? 14023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14024 test $ac_status = 0; }; then 14025 case `$FILECMD conftest.o` in 14026 *32-bit*) 14027 case $host in 14028 x86_64-*kfreebsd*-gnu) 14029 LD="${LD-ld} -m elf_i386_fbsd" 14030 ;; 14031 x86_64-*linux*) 14032 case `$FILECMD conftest.o` in 14033 *x86-64*) 14034 LD="${LD-ld} -m elf32_x86_64" 14035 ;; 14036 *) 14037 LD="${LD-ld} -m elf_i386" 14038 ;; 14039 esac 14040 ;; 14041 powerpc64le-*linux*) 14042 LD="${LD-ld} -m elf32lppclinux" 14043 ;; 14044 powerpc64-*linux*) 14045 LD="${LD-ld} -m elf32ppclinux" 14046 ;; 14047 s390x-*linux*) 14048 LD="${LD-ld} -m elf_s390" 14049 ;; 14050 sparc64-*linux*) 14051 LD="${LD-ld} -m elf32_sparc" 14052 ;; 14053 esac 14054 ;; 14055 *64-bit*) 14056 case $host in 14057 x86_64-*kfreebsd*-gnu) 14058 LD="${LD-ld} -m elf_x86_64_fbsd" 14059 ;; 14060 x86_64-*linux*) 14061 LD="${LD-ld} -m elf_x86_64" 14062 ;; 14063 powerpcle-*linux*) 14064 LD="${LD-ld} -m elf64lppc" 14065 ;; 14066 powerpc-*linux*) 14067 LD="${LD-ld} -m elf64ppc" 14068 ;; 14069 s390*-*linux*|s390*-*tpf*) 14070 LD="${LD-ld} -m elf64_s390" 14071 ;; 14072 sparc*-*linux*) 14073 LD="${LD-ld} -m elf64_sparc" 14074 ;; 14075 esac 14076 ;; 14077 esac 14078 fi 14079 rm -rf conftest* 14080 ;; 14081 14082*-*-sco3.2v5*) 14083 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14084 SAVE_CFLAGS=$CFLAGS 14085 CFLAGS="$CFLAGS -belf" 14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14087printf %s "checking whether the C compiler needs -belf... " >&6; } 14088if test ${lt_cv_cc_needs_belf+y} 14089then : 14090 printf %s "(cached) " >&6 14091else $as_nop 14092 ac_ext=c 14093ac_cpp='$CPP $CPPFLAGS' 14094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14096ac_compiler_gnu=$ac_cv_c_compiler_gnu 14097 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100 14101int 14102main (void) 14103{ 14104 14105 ; 14106 return 0; 14107} 14108_ACEOF 14109if ac_fn_c_try_link "$LINENO" 14110then : 14111 lt_cv_cc_needs_belf=yes 14112else $as_nop 14113 lt_cv_cc_needs_belf=no 14114fi 14115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14116 conftest$ac_exeext conftest.$ac_ext 14117 ac_ext=c 14118ac_cpp='$CPP $CPPFLAGS' 14119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14121ac_compiler_gnu=$ac_cv_c_compiler_gnu 14122 14123fi 14124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14125printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14126 if test yes != "$lt_cv_cc_needs_belf"; then 14127 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14128 CFLAGS=$SAVE_CFLAGS 14129 fi 14130 ;; 14131*-*solaris*) 14132 # Find out what ABI is being produced by ac_compile, and set linker 14133 # options accordingly. 14134 echo 'int i;' > conftest.$ac_ext 14135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14136 (eval $ac_compile) 2>&5 14137 ac_status=$? 14138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14139 test $ac_status = 0; }; then 14140 case `$FILECMD conftest.o` in 14141 *64-bit*) 14142 case $lt_cv_prog_gnu_ld in 14143 yes*) 14144 case $host in 14145 i?86-*-solaris*|x86_64-*-solaris*) 14146 LD="${LD-ld} -m elf_x86_64" 14147 ;; 14148 sparc*-*-solaris*) 14149 LD="${LD-ld} -m elf64_sparc" 14150 ;; 14151 esac 14152 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14153 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14154 LD=${LD-ld}_sol2 14155 fi 14156 ;; 14157 *) 14158 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14159 LD="${LD-ld} -64" 14160 fi 14161 ;; 14162 esac 14163 ;; 14164 esac 14165 fi 14166 rm -rf conftest* 14167 ;; 14168esac 14169 14170need_locks=$enable_libtool_lock 14171 14172if test -n "$ac_tool_prefix"; then 14173 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14174set dummy ${ac_tool_prefix}mt; ac_word=$2 14175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14176printf %s "checking for $ac_word... " >&6; } 14177if test ${ac_cv_prog_MANIFEST_TOOL+y} 14178then : 14179 printf %s "(cached) " >&6 14180else $as_nop 14181 if test -n "$MANIFEST_TOOL"; then 14182 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14183else 14184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14185for as_dir in $PATH 14186do 14187 IFS=$as_save_IFS 14188 case $as_dir in #((( 14189 '') as_dir=./ ;; 14190 */) ;; 14191 *) as_dir=$as_dir/ ;; 14192 esac 14193 for ac_exec_ext in '' $ac_executable_extensions; do 14194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14195 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14197 break 2 14198 fi 14199done 14200 done 14201IFS=$as_save_IFS 14202 14203fi 14204fi 14205MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14206if test -n "$MANIFEST_TOOL"; then 14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14208printf "%s\n" "$MANIFEST_TOOL" >&6; } 14209else 14210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14211printf "%s\n" "no" >&6; } 14212fi 14213 14214 14215fi 14216if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14217 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14218 # Extract the first word of "mt", so it can be a program name with args. 14219set dummy mt; ac_word=$2 14220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14221printf %s "checking for $ac_word... " >&6; } 14222if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14223then : 14224 printf %s "(cached) " >&6 14225else $as_nop 14226 if test -n "$ac_ct_MANIFEST_TOOL"; then 14227 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14228else 14229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14230for as_dir in $PATH 14231do 14232 IFS=$as_save_IFS 14233 case $as_dir in #((( 14234 '') as_dir=./ ;; 14235 */) ;; 14236 *) as_dir=$as_dir/ ;; 14237 esac 14238 for ac_exec_ext in '' $ac_executable_extensions; do 14239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14240 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14242 break 2 14243 fi 14244done 14245 done 14246IFS=$as_save_IFS 14247 14248fi 14249fi 14250ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14251if test -n "$ac_ct_MANIFEST_TOOL"; then 14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14253printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14254else 14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14256printf "%s\n" "no" >&6; } 14257fi 14258 14259 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14260 MANIFEST_TOOL=":" 14261 else 14262 case $cross_compiling:$ac_tool_warned in 14263yes:) 14264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14265printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14266ac_tool_warned=yes ;; 14267esac 14268 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14269 fi 14270else 14271 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14272fi 14273 14274test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14276printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14277if test ${lt_cv_path_mainfest_tool+y} 14278then : 14279 printf %s "(cached) " >&6 14280else $as_nop 14281 lt_cv_path_mainfest_tool=no 14282 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14283 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14284 cat conftest.err >&5 14285 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14286 lt_cv_path_mainfest_tool=yes 14287 fi 14288 rm -f conftest* 14289fi 14290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14291printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14292if test yes != "$lt_cv_path_mainfest_tool"; then 14293 MANIFEST_TOOL=: 14294fi 14295 14296 14297 14298 14299 14300 14301 case $host_os in 14302 rhapsody* | darwin*) 14303 if test -n "$ac_tool_prefix"; then 14304 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14305set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14307printf %s "checking for $ac_word... " >&6; } 14308if test ${ac_cv_prog_DSYMUTIL+y} 14309then : 14310 printf %s "(cached) " >&6 14311else $as_nop 14312 if test -n "$DSYMUTIL"; then 14313 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14314else 14315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14316for as_dir in $PATH 14317do 14318 IFS=$as_save_IFS 14319 case $as_dir in #((( 14320 '') as_dir=./ ;; 14321 */) ;; 14322 *) as_dir=$as_dir/ ;; 14323 esac 14324 for ac_exec_ext in '' $ac_executable_extensions; do 14325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14326 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14328 break 2 14329 fi 14330done 14331 done 14332IFS=$as_save_IFS 14333 14334fi 14335fi 14336DSYMUTIL=$ac_cv_prog_DSYMUTIL 14337if test -n "$DSYMUTIL"; then 14338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14339printf "%s\n" "$DSYMUTIL" >&6; } 14340else 14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14342printf "%s\n" "no" >&6; } 14343fi 14344 14345 14346fi 14347if test -z "$ac_cv_prog_DSYMUTIL"; then 14348 ac_ct_DSYMUTIL=$DSYMUTIL 14349 # Extract the first word of "dsymutil", so it can be a program name with args. 14350set dummy dsymutil; ac_word=$2 14351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14352printf %s "checking for $ac_word... " >&6; } 14353if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14354then : 14355 printf %s "(cached) " >&6 14356else $as_nop 14357 if test -n "$ac_ct_DSYMUTIL"; then 14358 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14359else 14360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14361for as_dir in $PATH 14362do 14363 IFS=$as_save_IFS 14364 case $as_dir in #((( 14365 '') as_dir=./ ;; 14366 */) ;; 14367 *) as_dir=$as_dir/ ;; 14368 esac 14369 for ac_exec_ext in '' $ac_executable_extensions; do 14370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14371 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14373 break 2 14374 fi 14375done 14376 done 14377IFS=$as_save_IFS 14378 14379fi 14380fi 14381ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14382if test -n "$ac_ct_DSYMUTIL"; then 14383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14384printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14385else 14386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14387printf "%s\n" "no" >&6; } 14388fi 14389 14390 if test "x$ac_ct_DSYMUTIL" = x; then 14391 DSYMUTIL=":" 14392 else 14393 case $cross_compiling:$ac_tool_warned in 14394yes:) 14395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14396printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14397ac_tool_warned=yes ;; 14398esac 14399 DSYMUTIL=$ac_ct_DSYMUTIL 14400 fi 14401else 14402 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14403fi 14404 14405 if test -n "$ac_tool_prefix"; then 14406 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14407set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14409printf %s "checking for $ac_word... " >&6; } 14410if test ${ac_cv_prog_NMEDIT+y} 14411then : 14412 printf %s "(cached) " >&6 14413else $as_nop 14414 if test -n "$NMEDIT"; then 14415 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14416else 14417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14418for as_dir in $PATH 14419do 14420 IFS=$as_save_IFS 14421 case $as_dir in #((( 14422 '') as_dir=./ ;; 14423 */) ;; 14424 *) as_dir=$as_dir/ ;; 14425 esac 14426 for ac_exec_ext in '' $ac_executable_extensions; do 14427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14428 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14430 break 2 14431 fi 14432done 14433 done 14434IFS=$as_save_IFS 14435 14436fi 14437fi 14438NMEDIT=$ac_cv_prog_NMEDIT 14439if test -n "$NMEDIT"; then 14440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14441printf "%s\n" "$NMEDIT" >&6; } 14442else 14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14444printf "%s\n" "no" >&6; } 14445fi 14446 14447 14448fi 14449if test -z "$ac_cv_prog_NMEDIT"; then 14450 ac_ct_NMEDIT=$NMEDIT 14451 # Extract the first word of "nmedit", so it can be a program name with args. 14452set dummy nmedit; ac_word=$2 14453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14454printf %s "checking for $ac_word... " >&6; } 14455if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14456then : 14457 printf %s "(cached) " >&6 14458else $as_nop 14459 if test -n "$ac_ct_NMEDIT"; then 14460 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14461else 14462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14463for as_dir in $PATH 14464do 14465 IFS=$as_save_IFS 14466 case $as_dir in #((( 14467 '') as_dir=./ ;; 14468 */) ;; 14469 *) as_dir=$as_dir/ ;; 14470 esac 14471 for ac_exec_ext in '' $ac_executable_extensions; do 14472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14473 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14475 break 2 14476 fi 14477done 14478 done 14479IFS=$as_save_IFS 14480 14481fi 14482fi 14483ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14484if test -n "$ac_ct_NMEDIT"; then 14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14486printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14487else 14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14489printf "%s\n" "no" >&6; } 14490fi 14491 14492 if test "x$ac_ct_NMEDIT" = x; then 14493 NMEDIT=":" 14494 else 14495 case $cross_compiling:$ac_tool_warned in 14496yes:) 14497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14498printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14499ac_tool_warned=yes ;; 14500esac 14501 NMEDIT=$ac_ct_NMEDIT 14502 fi 14503else 14504 NMEDIT="$ac_cv_prog_NMEDIT" 14505fi 14506 14507 if test -n "$ac_tool_prefix"; then 14508 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14509set dummy ${ac_tool_prefix}lipo; ac_word=$2 14510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14511printf %s "checking for $ac_word... " >&6; } 14512if test ${ac_cv_prog_LIPO+y} 14513then : 14514 printf %s "(cached) " >&6 14515else $as_nop 14516 if test -n "$LIPO"; then 14517 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14518else 14519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14520for as_dir in $PATH 14521do 14522 IFS=$as_save_IFS 14523 case $as_dir in #((( 14524 '') as_dir=./ ;; 14525 */) ;; 14526 *) as_dir=$as_dir/ ;; 14527 esac 14528 for ac_exec_ext in '' $ac_executable_extensions; do 14529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14530 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14532 break 2 14533 fi 14534done 14535 done 14536IFS=$as_save_IFS 14537 14538fi 14539fi 14540LIPO=$ac_cv_prog_LIPO 14541if test -n "$LIPO"; then 14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14543printf "%s\n" "$LIPO" >&6; } 14544else 14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14546printf "%s\n" "no" >&6; } 14547fi 14548 14549 14550fi 14551if test -z "$ac_cv_prog_LIPO"; then 14552 ac_ct_LIPO=$LIPO 14553 # Extract the first word of "lipo", so it can be a program name with args. 14554set dummy lipo; ac_word=$2 14555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14556printf %s "checking for $ac_word... " >&6; } 14557if test ${ac_cv_prog_ac_ct_LIPO+y} 14558then : 14559 printf %s "(cached) " >&6 14560else $as_nop 14561 if test -n "$ac_ct_LIPO"; then 14562 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14563else 14564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14565for as_dir in $PATH 14566do 14567 IFS=$as_save_IFS 14568 case $as_dir in #((( 14569 '') as_dir=./ ;; 14570 */) ;; 14571 *) as_dir=$as_dir/ ;; 14572 esac 14573 for ac_exec_ext in '' $ac_executable_extensions; do 14574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14575 ac_cv_prog_ac_ct_LIPO="lipo" 14576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14577 break 2 14578 fi 14579done 14580 done 14581IFS=$as_save_IFS 14582 14583fi 14584fi 14585ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14586if test -n "$ac_ct_LIPO"; then 14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14588printf "%s\n" "$ac_ct_LIPO" >&6; } 14589else 14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14591printf "%s\n" "no" >&6; } 14592fi 14593 14594 if test "x$ac_ct_LIPO" = x; then 14595 LIPO=":" 14596 else 14597 case $cross_compiling:$ac_tool_warned in 14598yes:) 14599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14600printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14601ac_tool_warned=yes ;; 14602esac 14603 LIPO=$ac_ct_LIPO 14604 fi 14605else 14606 LIPO="$ac_cv_prog_LIPO" 14607fi 14608 14609 if test -n "$ac_tool_prefix"; then 14610 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14611set dummy ${ac_tool_prefix}otool; ac_word=$2 14612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14613printf %s "checking for $ac_word... " >&6; } 14614if test ${ac_cv_prog_OTOOL+y} 14615then : 14616 printf %s "(cached) " >&6 14617else $as_nop 14618 if test -n "$OTOOL"; then 14619 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14620else 14621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14622for as_dir in $PATH 14623do 14624 IFS=$as_save_IFS 14625 case $as_dir in #((( 14626 '') as_dir=./ ;; 14627 */) ;; 14628 *) as_dir=$as_dir/ ;; 14629 esac 14630 for ac_exec_ext in '' $ac_executable_extensions; do 14631 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14632 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14634 break 2 14635 fi 14636done 14637 done 14638IFS=$as_save_IFS 14639 14640fi 14641fi 14642OTOOL=$ac_cv_prog_OTOOL 14643if test -n "$OTOOL"; then 14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14645printf "%s\n" "$OTOOL" >&6; } 14646else 14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14648printf "%s\n" "no" >&6; } 14649fi 14650 14651 14652fi 14653if test -z "$ac_cv_prog_OTOOL"; then 14654 ac_ct_OTOOL=$OTOOL 14655 # Extract the first word of "otool", so it can be a program name with args. 14656set dummy otool; ac_word=$2 14657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14658printf %s "checking for $ac_word... " >&6; } 14659if test ${ac_cv_prog_ac_ct_OTOOL+y} 14660then : 14661 printf %s "(cached) " >&6 14662else $as_nop 14663 if test -n "$ac_ct_OTOOL"; then 14664 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14665else 14666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14667for as_dir in $PATH 14668do 14669 IFS=$as_save_IFS 14670 case $as_dir in #((( 14671 '') as_dir=./ ;; 14672 */) ;; 14673 *) as_dir=$as_dir/ ;; 14674 esac 14675 for ac_exec_ext in '' $ac_executable_extensions; do 14676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14677 ac_cv_prog_ac_ct_OTOOL="otool" 14678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14679 break 2 14680 fi 14681done 14682 done 14683IFS=$as_save_IFS 14684 14685fi 14686fi 14687ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14688if test -n "$ac_ct_OTOOL"; then 14689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14690printf "%s\n" "$ac_ct_OTOOL" >&6; } 14691else 14692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14693printf "%s\n" "no" >&6; } 14694fi 14695 14696 if test "x$ac_ct_OTOOL" = x; then 14697 OTOOL=":" 14698 else 14699 case $cross_compiling:$ac_tool_warned in 14700yes:) 14701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14702printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14703ac_tool_warned=yes ;; 14704esac 14705 OTOOL=$ac_ct_OTOOL 14706 fi 14707else 14708 OTOOL="$ac_cv_prog_OTOOL" 14709fi 14710 14711 if test -n "$ac_tool_prefix"; then 14712 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14713set dummy ${ac_tool_prefix}otool64; ac_word=$2 14714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14715printf %s "checking for $ac_word... " >&6; } 14716if test ${ac_cv_prog_OTOOL64+y} 14717then : 14718 printf %s "(cached) " >&6 14719else $as_nop 14720 if test -n "$OTOOL64"; then 14721 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14722else 14723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14724for as_dir in $PATH 14725do 14726 IFS=$as_save_IFS 14727 case $as_dir in #((( 14728 '') as_dir=./ ;; 14729 */) ;; 14730 *) as_dir=$as_dir/ ;; 14731 esac 14732 for ac_exec_ext in '' $ac_executable_extensions; do 14733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14734 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14736 break 2 14737 fi 14738done 14739 done 14740IFS=$as_save_IFS 14741 14742fi 14743fi 14744OTOOL64=$ac_cv_prog_OTOOL64 14745if test -n "$OTOOL64"; then 14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14747printf "%s\n" "$OTOOL64" >&6; } 14748else 14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14750printf "%s\n" "no" >&6; } 14751fi 14752 14753 14754fi 14755if test -z "$ac_cv_prog_OTOOL64"; then 14756 ac_ct_OTOOL64=$OTOOL64 14757 # Extract the first word of "otool64", so it can be a program name with args. 14758set dummy otool64; ac_word=$2 14759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14760printf %s "checking for $ac_word... " >&6; } 14761if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14762then : 14763 printf %s "(cached) " >&6 14764else $as_nop 14765 if test -n "$ac_ct_OTOOL64"; then 14766 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14767else 14768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14769for as_dir in $PATH 14770do 14771 IFS=$as_save_IFS 14772 case $as_dir in #((( 14773 '') as_dir=./ ;; 14774 */) ;; 14775 *) as_dir=$as_dir/ ;; 14776 esac 14777 for ac_exec_ext in '' $ac_executable_extensions; do 14778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14779 ac_cv_prog_ac_ct_OTOOL64="otool64" 14780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14781 break 2 14782 fi 14783done 14784 done 14785IFS=$as_save_IFS 14786 14787fi 14788fi 14789ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14790if test -n "$ac_ct_OTOOL64"; then 14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14792printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14793else 14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14795printf "%s\n" "no" >&6; } 14796fi 14797 14798 if test "x$ac_ct_OTOOL64" = x; then 14799 OTOOL64=":" 14800 else 14801 case $cross_compiling:$ac_tool_warned in 14802yes:) 14803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14804printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14805ac_tool_warned=yes ;; 14806esac 14807 OTOOL64=$ac_ct_OTOOL64 14808 fi 14809else 14810 OTOOL64="$ac_cv_prog_OTOOL64" 14811fi 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14840printf %s "checking for -single_module linker flag... " >&6; } 14841if test ${lt_cv_apple_cc_single_mod+y} 14842then : 14843 printf %s "(cached) " >&6 14844else $as_nop 14845 lt_cv_apple_cc_single_mod=no 14846 if test -z "$LT_MULTI_MODULE"; then 14847 # By default we will add the -single_module flag. You can override 14848 # by either setting the environment variable LT_MULTI_MODULE 14849 # non-empty at configure time, or by adding -multi_module to the 14850 # link flags. 14851 rm -rf libconftest.dylib* 14852 echo "int foo(void){return 1;}" > conftest.c 14853 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14854-dynamiclib -Wl,-single_module conftest.c" >&5 14855 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14856 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14857 _lt_result=$? 14858 # If there is a non-empty error log, and "single_module" 14859 # appears in it, assume the flag caused a linker warning 14860 if test -s conftest.err && $GREP single_module conftest.err; then 14861 cat conftest.err >&5 14862 # Otherwise, if the output was created with a 0 exit code from 14863 # the compiler, it worked. 14864 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14865 lt_cv_apple_cc_single_mod=yes 14866 else 14867 cat conftest.err >&5 14868 fi 14869 rm -rf libconftest.dylib* 14870 rm -f conftest.* 14871 fi 14872fi 14873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14874printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14875 14876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14877printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14878if test ${lt_cv_ld_exported_symbols_list+y} 14879then : 14880 printf %s "(cached) " >&6 14881else $as_nop 14882 lt_cv_ld_exported_symbols_list=no 14883 save_LDFLAGS=$LDFLAGS 14884 echo "_main" > conftest.sym 14885 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14887/* end confdefs.h. */ 14888 14889int 14890main (void) 14891{ 14892 14893 ; 14894 return 0; 14895} 14896_ACEOF 14897if ac_fn_c_try_link "$LINENO" 14898then : 14899 lt_cv_ld_exported_symbols_list=yes 14900else $as_nop 14901 lt_cv_ld_exported_symbols_list=no 14902fi 14903rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14904 conftest$ac_exeext conftest.$ac_ext 14905 LDFLAGS=$save_LDFLAGS 14906 14907fi 14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14909printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14910 14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14912printf %s "checking for -force_load linker flag... " >&6; } 14913if test ${lt_cv_ld_force_load+y} 14914then : 14915 printf %s "(cached) " >&6 14916else $as_nop 14917 lt_cv_ld_force_load=no 14918 cat > conftest.c << _LT_EOF 14919int forced_loaded() { return 2;} 14920_LT_EOF 14921 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14922 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14923 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14924 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14925 echo "$RANLIB libconftest.a" >&5 14926 $RANLIB libconftest.a 2>&5 14927 cat > conftest.c << _LT_EOF 14928int main() { return 0;} 14929_LT_EOF 14930 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14931 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14932 _lt_result=$? 14933 if test -s conftest.err && $GREP force_load conftest.err; then 14934 cat conftest.err >&5 14935 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14936 lt_cv_ld_force_load=yes 14937 else 14938 cat conftest.err >&5 14939 fi 14940 rm -f conftest.err libconftest.a conftest conftest.c 14941 rm -rf conftest.dSYM 14942 14943fi 14944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14945printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14946 case $host_os in 14947 rhapsody* | darwin1.[012]) 14948 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14949 darwin1.*) 14950 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14951 darwin*) 14952 case $MACOSX_DEPLOYMENT_TARGET,$host in 14953 10.[012],*|,*powerpc*-darwin[5-8]*) 14954 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14955 *) 14956 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14957 esac 14958 ;; 14959 esac 14960 if test yes = "$lt_cv_apple_cc_single_mod"; then 14961 _lt_dar_single_mod='$single_module' 14962 fi 14963 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14964 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14965 else 14966 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14967 fi 14968 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14969 _lt_dsymutil='~$DSYMUTIL $lib || :' 14970 else 14971 _lt_dsymutil= 14972 fi 14973 ;; 14974 esac 14975 14976# func_munge_path_list VARIABLE PATH 14977# ----------------------------------- 14978# VARIABLE is name of variable containing _space_ separated list of 14979# directories to be munged by the contents of PATH, which is string 14980# having a format: 14981# "DIR[:DIR]:" 14982# string "DIR[ DIR]" will be prepended to VARIABLE 14983# ":DIR[:DIR]" 14984# string "DIR[ DIR]" will be appended to VARIABLE 14985# "DIRP[:DIRP]::[DIRA:]DIRA" 14986# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14987# "DIRA[ DIRA]" will be appended to VARIABLE 14988# "DIR[:DIR]" 14989# VARIABLE will be replaced by "DIR[ DIR]" 14990func_munge_path_list () 14991{ 14992 case x$2 in 14993 x) 14994 ;; 14995 *:) 14996 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14997 ;; 14998 x:*) 14999 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15000 ;; 15001 *::*) 15002 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15003 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15004 ;; 15005 *) 15006 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15007 ;; 15008 esac 15009} 15010 15011ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15012" 15013if test "x$ac_cv_header_dlfcn_h" = xyes 15014then : 15015 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15016 15017fi 15018 15019 15020 15021 15022 15023# Set options 15024 15025 15026 15027 enable_dlopen=no 15028 15029 15030 enable_win32_dll=no 15031 15032 15033 # Check whether --enable-shared was given. 15034if test ${enable_shared+y} 15035then : 15036 enableval=$enable_shared; p=${PACKAGE-default} 15037 case $enableval in 15038 yes) enable_shared=yes ;; 15039 no) enable_shared=no ;; 15040 *) 15041 enable_shared=no 15042 # Look at the argument we got. We use all the common list separators. 15043 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15044 for pkg in $enableval; do 15045 IFS=$lt_save_ifs 15046 if test "X$pkg" = "X$p"; then 15047 enable_shared=yes 15048 fi 15049 done 15050 IFS=$lt_save_ifs 15051 ;; 15052 esac 15053else $as_nop 15054 enable_shared=yes 15055fi 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067# Check whether --with-pic was given. 15068if test ${with_pic+y} 15069then : 15070 withval=$with_pic; lt_p=${PACKAGE-default} 15071 case $withval in 15072 yes|no) pic_mode=$withval ;; 15073 *) 15074 pic_mode=default 15075 # Look at the argument we got. We use all the common list separators. 15076 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15077 for lt_pkg in $withval; do 15078 IFS=$lt_save_ifs 15079 if test "X$lt_pkg" = "X$lt_p"; then 15080 pic_mode=yes 15081 fi 15082 done 15083 IFS=$lt_save_ifs 15084 ;; 15085 esac 15086else $as_nop 15087 pic_mode=default 15088fi 15089 15090 15091 15092 15093 15094 15095 15096 15097 # Check whether --enable-fast-install was given. 15098if test ${enable_fast_install+y} 15099then : 15100 enableval=$enable_fast_install; p=${PACKAGE-default} 15101 case $enableval in 15102 yes) enable_fast_install=yes ;; 15103 no) enable_fast_install=no ;; 15104 *) 15105 enable_fast_install=no 15106 # Look at the argument we got. We use all the common list separators. 15107 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15108 for pkg in $enableval; do 15109 IFS=$lt_save_ifs 15110 if test "X$pkg" = "X$p"; then 15111 enable_fast_install=yes 15112 fi 15113 done 15114 IFS=$lt_save_ifs 15115 ;; 15116 esac 15117else $as_nop 15118 enable_fast_install=yes 15119fi 15120 15121 15122 15123 15124 15125 15126 15127 15128 shared_archive_member_spec= 15129case $host,$enable_shared in 15130power*-*-aix[5-9]*,yes) 15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15132printf %s "checking which variant of shared library versioning to provide... " >&6; } 15133 15134# Check whether --with-aix-soname was given. 15135if test ${with_aix_soname+y} 15136then : 15137 withval=$with_aix_soname; case $withval in 15138 aix|svr4|both) 15139 ;; 15140 *) 15141 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15142 ;; 15143 esac 15144 lt_cv_with_aix_soname=$with_aix_soname 15145else $as_nop 15146 if test ${lt_cv_with_aix_soname+y} 15147then : 15148 printf %s "(cached) " >&6 15149else $as_nop 15150 lt_cv_with_aix_soname=aix 15151fi 15152 15153 with_aix_soname=$lt_cv_with_aix_soname 15154fi 15155 15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15157printf "%s\n" "$with_aix_soname" >&6; } 15158 if test aix != "$with_aix_soname"; then 15159 # For the AIX way of multilib, we name the shared archive member 15160 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15161 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15162 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15163 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15164 if test 64 = "${OBJECT_MODE-32}"; then 15165 shared_archive_member_spec=shr_64 15166 else 15167 shared_archive_member_spec=shr 15168 fi 15169 fi 15170 ;; 15171*) 15172 with_aix_soname=aix 15173 ;; 15174esac 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185# This can be used to rebuild libtool when needed 15186LIBTOOL_DEPS=$ltmain 15187 15188# Always use our own libtool. 15189LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220test -z "$LN_S" && LN_S="ln -s" 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235if test -n "${ZSH_VERSION+set}"; then 15236 setopt NO_GLOB_SUBST 15237fi 15238 15239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15240printf %s "checking for objdir... " >&6; } 15241if test ${lt_cv_objdir+y} 15242then : 15243 printf %s "(cached) " >&6 15244else $as_nop 15245 rm -f .libs 2>/dev/null 15246mkdir .libs 2>/dev/null 15247if test -d .libs; then 15248 lt_cv_objdir=.libs 15249else 15250 # MS-DOS does not allow filenames that begin with a dot. 15251 lt_cv_objdir=_libs 15252fi 15253rmdir .libs 2>/dev/null 15254fi 15255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15256printf "%s\n" "$lt_cv_objdir" >&6; } 15257objdir=$lt_cv_objdir 15258 15259 15260 15261 15262 15263printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15264 15265 15266 15267 15268case $host_os in 15269aix3*) 15270 # AIX sometimes has problems with the GCC collect2 program. For some 15271 # reason, if we set the COLLECT_NAMES environment variable, the problems 15272 # vanish in a puff of smoke. 15273 if test set != "${COLLECT_NAMES+set}"; then 15274 COLLECT_NAMES= 15275 export COLLECT_NAMES 15276 fi 15277 ;; 15278esac 15279 15280# Global variables: 15281ofile=libtool 15282can_build_shared=yes 15283 15284# All known linkers require a '.a' archive for static linking (except MSVC and 15285# ICC, which need '.lib'). 15286libext=a 15287 15288with_gnu_ld=$lt_cv_prog_gnu_ld 15289 15290old_CC=$CC 15291old_CFLAGS=$CFLAGS 15292 15293# Set sane defaults for various variables 15294test -z "$CC" && CC=cc 15295test -z "$LTCC" && LTCC=$CC 15296test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15297test -z "$LD" && LD=ld 15298test -z "$ac_objext" && ac_objext=o 15299 15300func_cc_basename $compiler 15301cc_basename=$func_cc_basename_result 15302 15303 15304# Only perform the check for file, if the check method requires it 15305test -z "$MAGIC_CMD" && MAGIC_CMD=file 15306case $deplibs_check_method in 15307file_magic*) 15308 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15310printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15311if test ${lt_cv_path_MAGIC_CMD+y} 15312then : 15313 printf %s "(cached) " >&6 15314else $as_nop 15315 case $MAGIC_CMD in 15316[\\/*] | ?:[\\/]*) 15317 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15318 ;; 15319*) 15320 lt_save_MAGIC_CMD=$MAGIC_CMD 15321 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15322 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15323 for ac_dir in $ac_dummy; do 15324 IFS=$lt_save_ifs 15325 test -z "$ac_dir" && ac_dir=. 15326 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15327 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15328 if test -n "$file_magic_test_file"; then 15329 case $deplibs_check_method in 15330 "file_magic "*) 15331 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15332 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15334 $EGREP "$file_magic_regex" > /dev/null; then 15335 : 15336 else 15337 cat <<_LT_EOF 1>&2 15338 15339*** Warning: the command libtool uses to detect shared libraries, 15340*** $file_magic_cmd, produces output that libtool cannot recognize. 15341*** The result is that libtool may fail to recognize shared libraries 15342*** as such. This will affect the creation of libtool libraries that 15343*** depend on shared libraries, but programs linked with such libtool 15344*** libraries will work regardless of this problem. Nevertheless, you 15345*** may want to report the problem to your system manager and/or to 15346*** bug-libtool@gnu.org 15347 15348_LT_EOF 15349 fi ;; 15350 esac 15351 fi 15352 break 15353 fi 15354 done 15355 IFS=$lt_save_ifs 15356 MAGIC_CMD=$lt_save_MAGIC_CMD 15357 ;; 15358esac 15359fi 15360 15361MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15362if test -n "$MAGIC_CMD"; then 15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15364printf "%s\n" "$MAGIC_CMD" >&6; } 15365else 15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15367printf "%s\n" "no" >&6; } 15368fi 15369 15370 15371 15372 15373 15374if test -z "$lt_cv_path_MAGIC_CMD"; then 15375 if test -n "$ac_tool_prefix"; then 15376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15377printf %s "checking for file... " >&6; } 15378if test ${lt_cv_path_MAGIC_CMD+y} 15379then : 15380 printf %s "(cached) " >&6 15381else $as_nop 15382 case $MAGIC_CMD in 15383[\\/*] | ?:[\\/]*) 15384 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15385 ;; 15386*) 15387 lt_save_MAGIC_CMD=$MAGIC_CMD 15388 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15389 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15390 for ac_dir in $ac_dummy; do 15391 IFS=$lt_save_ifs 15392 test -z "$ac_dir" && ac_dir=. 15393 if test -f "$ac_dir/file"; then 15394 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15395 if test -n "$file_magic_test_file"; then 15396 case $deplibs_check_method in 15397 "file_magic "*) 15398 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15399 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15400 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15401 $EGREP "$file_magic_regex" > /dev/null; then 15402 : 15403 else 15404 cat <<_LT_EOF 1>&2 15405 15406*** Warning: the command libtool uses to detect shared libraries, 15407*** $file_magic_cmd, produces output that libtool cannot recognize. 15408*** The result is that libtool may fail to recognize shared libraries 15409*** as such. This will affect the creation of libtool libraries that 15410*** depend on shared libraries, but programs linked with such libtool 15411*** libraries will work regardless of this problem. Nevertheless, you 15412*** may want to report the problem to your system manager and/or to 15413*** bug-libtool@gnu.org 15414 15415_LT_EOF 15416 fi ;; 15417 esac 15418 fi 15419 break 15420 fi 15421 done 15422 IFS=$lt_save_ifs 15423 MAGIC_CMD=$lt_save_MAGIC_CMD 15424 ;; 15425esac 15426fi 15427 15428MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15429if test -n "$MAGIC_CMD"; then 15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15431printf "%s\n" "$MAGIC_CMD" >&6; } 15432else 15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15434printf "%s\n" "no" >&6; } 15435fi 15436 15437 15438 else 15439 MAGIC_CMD=: 15440 fi 15441fi 15442 15443 fi 15444 ;; 15445esac 15446 15447# Use C for the default configuration in the libtool script 15448 15449lt_save_CC=$CC 15450ac_ext=c 15451ac_cpp='$CPP $CPPFLAGS' 15452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15454ac_compiler_gnu=$ac_cv_c_compiler_gnu 15455 15456 15457# Source file extension for C test sources. 15458ac_ext=c 15459 15460# Object file extension for compiled C test sources. 15461objext=o 15462objext=$objext 15463 15464# Code to be used in simple compile tests 15465lt_simple_compile_test_code="int some_variable = 0;" 15466 15467# Code to be used in simple link tests 15468lt_simple_link_test_code='int main(){return(0);}' 15469 15470 15471 15472 15473 15474 15475 15476# If no C compiler was specified, use CC. 15477LTCC=${LTCC-"$CC"} 15478 15479# If no C compiler flags were specified, use CFLAGS. 15480LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15481 15482# Allow CC to be a program name with arguments. 15483compiler=$CC 15484 15485# Save the default compiler, since it gets overwritten when the other 15486# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15487compiler_DEFAULT=$CC 15488 15489# save warnings/boilerplate of simple test code 15490ac_outfile=conftest.$ac_objext 15491echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15492eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15493_lt_compiler_boilerplate=`cat conftest.err` 15494$RM conftest* 15495 15496ac_outfile=conftest.$ac_objext 15497echo "$lt_simple_link_test_code" >conftest.$ac_ext 15498eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15499_lt_linker_boilerplate=`cat conftest.err` 15500$RM -r conftest* 15501 15502 15503if test -n "$compiler"; then 15504 15505lt_prog_compiler_no_builtin_flag= 15506 15507if test yes = "$GCC"; then 15508 case $cc_basename in 15509 nvcc*) 15510 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15511 *) 15512 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15513 esac 15514 15515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15516printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15517if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15518then : 15519 printf %s "(cached) " >&6 15520else $as_nop 15521 lt_cv_prog_compiler_rtti_exceptions=no 15522 ac_outfile=conftest.$ac_objext 15523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15524 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15525 # Insert the option either (1) after the last *FLAGS variable, or 15526 # (2) before a word containing "conftest.", or (3) at the end. 15527 # Note that $ac_compile itself does not contain backslashes and begins 15528 # with a dollar sign (not a hyphen), so the echo should work correctly. 15529 # The option is referenced via a variable to avoid confusing sed. 15530 lt_compile=`echo "$ac_compile" | $SED \ 15531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15533 -e 's:$: $lt_compiler_flag:'` 15534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15535 (eval "$lt_compile" 2>conftest.err) 15536 ac_status=$? 15537 cat conftest.err >&5 15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15539 if (exit $ac_status) && test -s "$ac_outfile"; then 15540 # The compiler can only warn and ignore the option if not recognized 15541 # So say no if there are warnings other than the usual output. 15542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15545 lt_cv_prog_compiler_rtti_exceptions=yes 15546 fi 15547 fi 15548 $RM conftest* 15549 15550fi 15551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15552printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15553 15554if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15556else 15557 : 15558fi 15559 15560fi 15561 15562 15563 15564 15565 15566 15567 lt_prog_compiler_wl= 15568lt_prog_compiler_pic= 15569lt_prog_compiler_static= 15570 15571 15572 if test yes = "$GCC"; then 15573 lt_prog_compiler_wl='-Wl,' 15574 lt_prog_compiler_static='-static' 15575 15576 case $host_os in 15577 aix*) 15578 # All AIX code is PIC. 15579 if test ia64 = "$host_cpu"; then 15580 # AIX 5 now supports IA64 processor 15581 lt_prog_compiler_static='-Bstatic' 15582 fi 15583 lt_prog_compiler_pic='-fPIC' 15584 ;; 15585 15586 amigaos*) 15587 case $host_cpu in 15588 powerpc) 15589 # see comment about AmigaOS4 .so support 15590 lt_prog_compiler_pic='-fPIC' 15591 ;; 15592 m68k) 15593 # FIXME: we need at least 68020 code to build shared libraries, but 15594 # adding the '-m68020' flag to GCC prevents building anything better, 15595 # like '-m68040'. 15596 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15597 ;; 15598 esac 15599 ;; 15600 15601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15602 # PIC is the default for these OSes. 15603 ;; 15604 15605 mingw* | cygwin* | pw32* | os2* | cegcc*) 15606 # This hack is so that the source file can tell whether it is being 15607 # built for inclusion in a dll (and should export symbols for example). 15608 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15609 # (--disable-auto-import) libraries 15610 lt_prog_compiler_pic='-DDLL_EXPORT' 15611 case $host_os in 15612 os2*) 15613 lt_prog_compiler_static='$wl-static' 15614 ;; 15615 esac 15616 ;; 15617 15618 darwin* | rhapsody*) 15619 # PIC is the default on this platform 15620 # Common symbols not allowed in MH_DYLIB files 15621 lt_prog_compiler_pic='-fno-common' 15622 ;; 15623 15624 haiku*) 15625 # PIC is the default for Haiku. 15626 # The "-static" flag exists, but is broken. 15627 lt_prog_compiler_static= 15628 ;; 15629 15630 hpux*) 15631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15633 # sets the default TLS model and affects inlining. 15634 case $host_cpu in 15635 hppa*64*) 15636 # +Z the default 15637 ;; 15638 *) 15639 lt_prog_compiler_pic='-fPIC' 15640 ;; 15641 esac 15642 ;; 15643 15644 interix[3-9]*) 15645 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15646 # Instead, we relocate shared libraries at runtime. 15647 ;; 15648 15649 msdosdjgpp*) 15650 # Just because we use GCC doesn't mean we suddenly get shared libraries 15651 # on systems that don't support them. 15652 lt_prog_compiler_can_build_shared=no 15653 enable_shared=no 15654 ;; 15655 15656 *nto* | *qnx*) 15657 # QNX uses GNU C++, but need to define -shared option too, otherwise 15658 # it will coredump. 15659 lt_prog_compiler_pic='-fPIC -shared' 15660 ;; 15661 15662 sysv4*MP*) 15663 if test -d /usr/nec; then 15664 lt_prog_compiler_pic=-Kconform_pic 15665 fi 15666 ;; 15667 15668 *) 15669 lt_prog_compiler_pic='-fPIC' 15670 ;; 15671 esac 15672 15673 case $cc_basename in 15674 nvcc*) # Cuda Compiler Driver 2.2 15675 lt_prog_compiler_wl='-Xlinker ' 15676 if test -n "$lt_prog_compiler_pic"; then 15677 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15678 fi 15679 ;; 15680 esac 15681 else 15682 # PORTME Check for flag to pass linker flags through the system compiler. 15683 case $host_os in 15684 aix*) 15685 lt_prog_compiler_wl='-Wl,' 15686 if test ia64 = "$host_cpu"; then 15687 # AIX 5 now supports IA64 processor 15688 lt_prog_compiler_static='-Bstatic' 15689 else 15690 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15691 fi 15692 ;; 15693 15694 darwin* | rhapsody*) 15695 # PIC is the default on this platform 15696 # Common symbols not allowed in MH_DYLIB files 15697 lt_prog_compiler_pic='-fno-common' 15698 case $cc_basename in 15699 nagfor*) 15700 # NAG Fortran compiler 15701 lt_prog_compiler_wl='-Wl,-Wl,,' 15702 lt_prog_compiler_pic='-PIC' 15703 lt_prog_compiler_static='-Bstatic' 15704 ;; 15705 esac 15706 ;; 15707 15708 mingw* | cygwin* | pw32* | os2* | cegcc*) 15709 # This hack is so that the source file can tell whether it is being 15710 # built for inclusion in a dll (and should export symbols for example). 15711 lt_prog_compiler_pic='-DDLL_EXPORT' 15712 case $host_os in 15713 os2*) 15714 lt_prog_compiler_static='$wl-static' 15715 ;; 15716 esac 15717 ;; 15718 15719 hpux9* | hpux10* | hpux11*) 15720 lt_prog_compiler_wl='-Wl,' 15721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15722 # not for PA HP-UX. 15723 case $host_cpu in 15724 hppa*64*|ia64*) 15725 # +Z the default 15726 ;; 15727 *) 15728 lt_prog_compiler_pic='+Z' 15729 ;; 15730 esac 15731 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15732 lt_prog_compiler_static='$wl-a ${wl}archive' 15733 ;; 15734 15735 irix5* | irix6* | nonstopux*) 15736 lt_prog_compiler_wl='-Wl,' 15737 # PIC (with -KPIC) is the default. 15738 lt_prog_compiler_static='-non_shared' 15739 ;; 15740 15741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15742 case $cc_basename in 15743 # old Intel for x86_64, which still supported -KPIC. 15744 ecc*) 15745 lt_prog_compiler_wl='-Wl,' 15746 lt_prog_compiler_pic='-KPIC' 15747 lt_prog_compiler_static='-static' 15748 ;; 15749 # icc used to be incompatible with GCC. 15750 # ICC 10 doesn't accept -KPIC any more. 15751 icc* | ifort*) 15752 lt_prog_compiler_wl='-Wl,' 15753 lt_prog_compiler_pic='-fPIC' 15754 lt_prog_compiler_static='-static' 15755 ;; 15756 # Lahey Fortran 8.1. 15757 lf95*) 15758 lt_prog_compiler_wl='-Wl,' 15759 lt_prog_compiler_pic='--shared' 15760 lt_prog_compiler_static='--static' 15761 ;; 15762 nagfor*) 15763 # NAG Fortran compiler 15764 lt_prog_compiler_wl='-Wl,-Wl,,' 15765 lt_prog_compiler_pic='-PIC' 15766 lt_prog_compiler_static='-Bstatic' 15767 ;; 15768 tcc*) 15769 # Fabrice Bellard et al's Tiny C Compiler 15770 lt_prog_compiler_wl='-Wl,' 15771 lt_prog_compiler_pic='-fPIC' 15772 lt_prog_compiler_static='-static' 15773 ;; 15774 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15775 # Portland Group compilers (*not* the Pentium gcc compiler, 15776 # which looks to be a dead project) 15777 lt_prog_compiler_wl='-Wl,' 15778 lt_prog_compiler_pic='-fpic' 15779 lt_prog_compiler_static='-Bstatic' 15780 ;; 15781 ccc*) 15782 lt_prog_compiler_wl='-Wl,' 15783 # All Alpha code is PIC. 15784 lt_prog_compiler_static='-non_shared' 15785 ;; 15786 xl* | bgxl* | bgf* | mpixl*) 15787 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15788 lt_prog_compiler_wl='-Wl,' 15789 lt_prog_compiler_pic='-qpic' 15790 lt_prog_compiler_static='-qstaticlink' 15791 ;; 15792 *) 15793 case `$CC -V 2>&1 | $SED 5q` in 15794 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15795 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15796 lt_prog_compiler_pic='-KPIC' 15797 lt_prog_compiler_static='-Bstatic' 15798 lt_prog_compiler_wl='' 15799 ;; 15800 *Sun\ F* | *Sun*Fortran*) 15801 lt_prog_compiler_pic='-KPIC' 15802 lt_prog_compiler_static='-Bstatic' 15803 lt_prog_compiler_wl='-Qoption ld ' 15804 ;; 15805 *Sun\ C*) 15806 # Sun C 5.9 15807 lt_prog_compiler_pic='-KPIC' 15808 lt_prog_compiler_static='-Bstatic' 15809 lt_prog_compiler_wl='-Wl,' 15810 ;; 15811 *Intel*\ [CF]*Compiler*) 15812 lt_prog_compiler_wl='-Wl,' 15813 lt_prog_compiler_pic='-fPIC' 15814 lt_prog_compiler_static='-static' 15815 ;; 15816 *Portland\ Group*) 15817 lt_prog_compiler_wl='-Wl,' 15818 lt_prog_compiler_pic='-fpic' 15819 lt_prog_compiler_static='-Bstatic' 15820 ;; 15821 esac 15822 ;; 15823 esac 15824 ;; 15825 15826 newsos6) 15827 lt_prog_compiler_pic='-KPIC' 15828 lt_prog_compiler_static='-Bstatic' 15829 ;; 15830 15831 *nto* | *qnx*) 15832 # QNX uses GNU C++, but need to define -shared option too, otherwise 15833 # it will coredump. 15834 lt_prog_compiler_pic='-fPIC -shared' 15835 ;; 15836 15837 osf3* | osf4* | osf5*) 15838 lt_prog_compiler_wl='-Wl,' 15839 # All OSF/1 code is PIC. 15840 lt_prog_compiler_static='-non_shared' 15841 ;; 15842 15843 rdos*) 15844 lt_prog_compiler_static='-non_shared' 15845 ;; 15846 15847 solaris*) 15848 lt_prog_compiler_pic='-KPIC' 15849 lt_prog_compiler_static='-Bstatic' 15850 case $cc_basename in 15851 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15852 lt_prog_compiler_wl='-Qoption ld ';; 15853 *) 15854 lt_prog_compiler_wl='-Wl,';; 15855 esac 15856 ;; 15857 15858 sunos4*) 15859 lt_prog_compiler_wl='-Qoption ld ' 15860 lt_prog_compiler_pic='-PIC' 15861 lt_prog_compiler_static='-Bstatic' 15862 ;; 15863 15864 sysv4 | sysv4.2uw2* | sysv4.3*) 15865 lt_prog_compiler_wl='-Wl,' 15866 lt_prog_compiler_pic='-KPIC' 15867 lt_prog_compiler_static='-Bstatic' 15868 ;; 15869 15870 sysv4*MP*) 15871 if test -d /usr/nec; then 15872 lt_prog_compiler_pic='-Kconform_pic' 15873 lt_prog_compiler_static='-Bstatic' 15874 fi 15875 ;; 15876 15877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15878 lt_prog_compiler_wl='-Wl,' 15879 lt_prog_compiler_pic='-KPIC' 15880 lt_prog_compiler_static='-Bstatic' 15881 ;; 15882 15883 unicos*) 15884 lt_prog_compiler_wl='-Wl,' 15885 lt_prog_compiler_can_build_shared=no 15886 ;; 15887 15888 uts4*) 15889 lt_prog_compiler_pic='-pic' 15890 lt_prog_compiler_static='-Bstatic' 15891 ;; 15892 15893 *) 15894 lt_prog_compiler_can_build_shared=no 15895 ;; 15896 esac 15897 fi 15898 15899case $host_os in 15900 # For platforms that do not support PIC, -DPIC is meaningless: 15901 *djgpp*) 15902 lt_prog_compiler_pic= 15903 ;; 15904 *) 15905 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15906 ;; 15907esac 15908 15909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15910printf %s "checking for $compiler option to produce PIC... " >&6; } 15911if test ${lt_cv_prog_compiler_pic+y} 15912then : 15913 printf %s "(cached) " >&6 15914else $as_nop 15915 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15916fi 15917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15918printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15919lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15920 15921# 15922# Check to make sure the PIC flag actually works. 15923# 15924if test -n "$lt_prog_compiler_pic"; then 15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15926printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15927if test ${lt_cv_prog_compiler_pic_works+y} 15928then : 15929 printf %s "(cached) " >&6 15930else $as_nop 15931 lt_cv_prog_compiler_pic_works=no 15932 ac_outfile=conftest.$ac_objext 15933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15934 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15935 # Insert the option either (1) after the last *FLAGS variable, or 15936 # (2) before a word containing "conftest.", or (3) at the end. 15937 # Note that $ac_compile itself does not contain backslashes and begins 15938 # with a dollar sign (not a hyphen), so the echo should work correctly. 15939 # The option is referenced via a variable to avoid confusing sed. 15940 lt_compile=`echo "$ac_compile" | $SED \ 15941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15943 -e 's:$: $lt_compiler_flag:'` 15944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15945 (eval "$lt_compile" 2>conftest.err) 15946 ac_status=$? 15947 cat conftest.err >&5 15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15949 if (exit $ac_status) && test -s "$ac_outfile"; then 15950 # The compiler can only warn and ignore the option if not recognized 15951 # So say no if there are warnings other than the usual output. 15952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15955 lt_cv_prog_compiler_pic_works=yes 15956 fi 15957 fi 15958 $RM conftest* 15959 15960fi 15961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15962printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15963 15964if test yes = "$lt_cv_prog_compiler_pic_works"; then 15965 case $lt_prog_compiler_pic in 15966 "" | " "*) ;; 15967 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15968 esac 15969else 15970 lt_prog_compiler_pic= 15971 lt_prog_compiler_can_build_shared=no 15972fi 15973 15974fi 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986# 15987# Check to make sure the static flag actually works. 15988# 15989wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15991printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15992if test ${lt_cv_prog_compiler_static_works+y} 15993then : 15994 printf %s "(cached) " >&6 15995else $as_nop 15996 lt_cv_prog_compiler_static_works=no 15997 save_LDFLAGS=$LDFLAGS 15998 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15999 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16000 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16001 # The linker can only warn and ignore the option if not recognized 16002 # So say no if there are warnings 16003 if test -s conftest.err; then 16004 # Append any errors to the config.log. 16005 cat conftest.err 1>&5 16006 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16007 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16008 if diff conftest.exp conftest.er2 >/dev/null; then 16009 lt_cv_prog_compiler_static_works=yes 16010 fi 16011 else 16012 lt_cv_prog_compiler_static_works=yes 16013 fi 16014 fi 16015 $RM -r conftest* 16016 LDFLAGS=$save_LDFLAGS 16017 16018fi 16019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16020printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16021 16022if test yes = "$lt_cv_prog_compiler_static_works"; then 16023 : 16024else 16025 lt_prog_compiler_static= 16026fi 16027 16028 16029 16030 16031 16032 16033 16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16035printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16036if test ${lt_cv_prog_compiler_c_o+y} 16037then : 16038 printf %s "(cached) " >&6 16039else $as_nop 16040 lt_cv_prog_compiler_c_o=no 16041 $RM -r conftest 2>/dev/null 16042 mkdir conftest 16043 cd conftest 16044 mkdir out 16045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16046 16047 lt_compiler_flag="-o out/conftest2.$ac_objext" 16048 # Insert the option either (1) after the last *FLAGS variable, or 16049 # (2) before a word containing "conftest.", or (3) at the end. 16050 # Note that $ac_compile itself does not contain backslashes and begins 16051 # with a dollar sign (not a hyphen), so the echo should work correctly. 16052 lt_compile=`echo "$ac_compile" | $SED \ 16053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16055 -e 's:$: $lt_compiler_flag:'` 16056 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16057 (eval "$lt_compile" 2>out/conftest.err) 16058 ac_status=$? 16059 cat out/conftest.err >&5 16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16061 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16062 then 16063 # The compiler can only warn and ignore the option if not recognized 16064 # So say no if there are warnings 16065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16068 lt_cv_prog_compiler_c_o=yes 16069 fi 16070 fi 16071 chmod u+w . 2>&5 16072 $RM conftest* 16073 # SGI C++ compiler will create directory out/ii_files/ for 16074 # template instantiation 16075 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16076 $RM out/* && rmdir out 16077 cd .. 16078 $RM -r conftest 16079 $RM conftest* 16080 16081fi 16082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16083printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16084 16085 16086 16087 16088 16089 16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16091printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16092if test ${lt_cv_prog_compiler_c_o+y} 16093then : 16094 printf %s "(cached) " >&6 16095else $as_nop 16096 lt_cv_prog_compiler_c_o=no 16097 $RM -r conftest 2>/dev/null 16098 mkdir conftest 16099 cd conftest 16100 mkdir out 16101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16102 16103 lt_compiler_flag="-o out/conftest2.$ac_objext" 16104 # Insert the option either (1) after the last *FLAGS variable, or 16105 # (2) before a word containing "conftest.", or (3) at the end. 16106 # Note that $ac_compile itself does not contain backslashes and begins 16107 # with a dollar sign (not a hyphen), so the echo should work correctly. 16108 lt_compile=`echo "$ac_compile" | $SED \ 16109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16111 -e 's:$: $lt_compiler_flag:'` 16112 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16113 (eval "$lt_compile" 2>out/conftest.err) 16114 ac_status=$? 16115 cat out/conftest.err >&5 16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16117 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16118 then 16119 # The compiler can only warn and ignore the option if not recognized 16120 # So say no if there are warnings 16121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16122 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16123 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16124 lt_cv_prog_compiler_c_o=yes 16125 fi 16126 fi 16127 chmod u+w . 2>&5 16128 $RM conftest* 16129 # SGI C++ compiler will create directory out/ii_files/ for 16130 # template instantiation 16131 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16132 $RM out/* && rmdir out 16133 cd .. 16134 $RM -r conftest 16135 $RM conftest* 16136 16137fi 16138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16139printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16140 16141 16142 16143 16144hard_links=nottested 16145if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16146 # do not overwrite the value of need_locks provided by the user 16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16148printf %s "checking if we can lock with hard links... " >&6; } 16149 hard_links=yes 16150 $RM conftest* 16151 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16152 touch conftest.a 16153 ln conftest.a conftest.b 2>&5 || hard_links=no 16154 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16156printf "%s\n" "$hard_links" >&6; } 16157 if test no = "$hard_links"; then 16158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16159printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16160 need_locks=warn 16161 fi 16162else 16163 need_locks=no 16164fi 16165 16166 16167 16168 16169 16170 16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16172printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16173 16174 runpath_var= 16175 allow_undefined_flag= 16176 always_export_symbols=no 16177 archive_cmds= 16178 archive_expsym_cmds= 16179 compiler_needs_object=no 16180 enable_shared_with_static_runtimes=no 16181 export_dynamic_flag_spec= 16182 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16183 hardcode_automatic=no 16184 hardcode_direct=no 16185 hardcode_direct_absolute=no 16186 hardcode_libdir_flag_spec= 16187 hardcode_libdir_separator= 16188 hardcode_minus_L=no 16189 hardcode_shlibpath_var=unsupported 16190 inherit_rpath=no 16191 link_all_deplibs=unknown 16192 module_cmds= 16193 module_expsym_cmds= 16194 old_archive_from_new_cmds= 16195 old_archive_from_expsyms_cmds= 16196 thread_safe_flag_spec= 16197 whole_archive_flag_spec= 16198 # include_expsyms should be a list of space-separated symbols to be *always* 16199 # included in the symbol list 16200 include_expsyms= 16201 # exclude_expsyms can be an extended regexp of symbols to exclude 16202 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16203 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16204 # as well as any symbol that contains 'd'. 16205 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16206 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16207 # platforms (ab)use it in PIC code, but their linkers get confused if 16208 # the symbol is explicitly referenced. Since portable code cannot 16209 # rely on this symbol name, it's probably fine to never include it in 16210 # preloaded symbol tables. 16211 # Exclude shared library initialization/finalization symbols. 16212 extract_expsyms_cmds= 16213 16214 case $host_os in 16215 cygwin* | mingw* | pw32* | cegcc*) 16216 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16217 # When not using gcc, we currently assume that we are using 16218 # Microsoft Visual C++ or Intel C++ Compiler. 16219 if test yes != "$GCC"; then 16220 with_gnu_ld=no 16221 fi 16222 ;; 16223 interix*) 16224 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16225 with_gnu_ld=yes 16226 ;; 16227 openbsd* | bitrig*) 16228 with_gnu_ld=no 16229 ;; 16230 esac 16231 16232 ld_shlibs=yes 16233 16234 # On some targets, GNU ld is compatible enough with the native linker 16235 # that we're better off using the native interface for both. 16236 lt_use_gnu_ld_interface=no 16237 if test yes = "$with_gnu_ld"; then 16238 case $host_os in 16239 aix*) 16240 # The AIX port of GNU ld has always aspired to compatibility 16241 # with the native linker. However, as the warning in the GNU ld 16242 # block says, versions before 2.19.5* couldn't really create working 16243 # shared libraries, regardless of the interface used. 16244 case `$LD -v 2>&1` in 16245 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16246 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16247 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16248 *) 16249 lt_use_gnu_ld_interface=yes 16250 ;; 16251 esac 16252 ;; 16253 *) 16254 lt_use_gnu_ld_interface=yes 16255 ;; 16256 esac 16257 fi 16258 16259 if test yes = "$lt_use_gnu_ld_interface"; then 16260 # If archive_cmds runs LD, not CC, wlarc should be empty 16261 wlarc='$wl' 16262 16263 # Set some defaults for GNU ld with shared library support. These 16264 # are reset later if shared libraries are not supported. Putting them 16265 # here allows them to be overridden if necessary. 16266 runpath_var=LD_RUN_PATH 16267 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16268 export_dynamic_flag_spec='$wl--export-dynamic' 16269 # ancient GNU ld didn't support --whole-archive et. al. 16270 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16271 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16272 else 16273 whole_archive_flag_spec= 16274 fi 16275 supports_anon_versioning=no 16276 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16277 *GNU\ gold*) supports_anon_versioning=yes ;; 16278 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16279 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16280 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16281 *\ 2.11.*) ;; # other 2.11 versions 16282 *) supports_anon_versioning=yes ;; 16283 esac 16284 16285 # See if GNU ld supports shared libraries. 16286 case $host_os in 16287 aix[3-9]*) 16288 # On AIX/PPC, the GNU linker is very broken 16289 if test ia64 != "$host_cpu"; then 16290 ld_shlibs=no 16291 cat <<_LT_EOF 1>&2 16292 16293*** Warning: the GNU linker, at least up to release 2.19, is reported 16294*** to be unable to reliably create shared libraries on AIX. 16295*** Therefore, libtool is disabling shared libraries support. If you 16296*** really care for shared libraries, you may want to install binutils 16297*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16298*** You will then need to restart the configuration process. 16299 16300_LT_EOF 16301 fi 16302 ;; 16303 16304 amigaos*) 16305 case $host_cpu in 16306 powerpc) 16307 # see comment about AmigaOS4 .so support 16308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16309 archive_expsym_cmds='' 16310 ;; 16311 m68k) 16312 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)' 16313 hardcode_libdir_flag_spec='-L$libdir' 16314 hardcode_minus_L=yes 16315 ;; 16316 esac 16317 ;; 16318 16319 beos*) 16320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16321 allow_undefined_flag=unsupported 16322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16323 # support --undefined. This deserves some investigation. FIXME 16324 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16325 else 16326 ld_shlibs=no 16327 fi 16328 ;; 16329 16330 cygwin* | mingw* | pw32* | cegcc*) 16331 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16332 # as there is no search path for DLLs. 16333 hardcode_libdir_flag_spec='-L$libdir' 16334 export_dynamic_flag_spec='$wl--export-all-symbols' 16335 allow_undefined_flag=unsupported 16336 always_export_symbols=no 16337 enable_shared_with_static_runtimes=yes 16338 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' 16339 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16340 16341 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16343 # If the export-symbols file already is a .def file, use it as 16344 # is; otherwise, prepend EXPORTS... 16345 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16346 cp $export_symbols $output_objdir/$soname.def; 16347 else 16348 echo EXPORTS > $output_objdir/$soname.def; 16349 cat $export_symbols >> $output_objdir/$soname.def; 16350 fi~ 16351 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16352 else 16353 ld_shlibs=no 16354 fi 16355 ;; 16356 16357 haiku*) 16358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16359 link_all_deplibs=yes 16360 ;; 16361 16362 os2*) 16363 hardcode_libdir_flag_spec='-L$libdir' 16364 hardcode_minus_L=yes 16365 allow_undefined_flag=unsupported 16366 shrext_cmds=.dll 16367 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16368 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16369 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16370 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16371 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16372 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16373 emximp -o $lib $output_objdir/$libname.def' 16374 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16375 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16376 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16377 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16378 prefix_cmds="$SED"~ 16379 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16380 prefix_cmds="$prefix_cmds -e 1d"; 16381 fi~ 16382 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16383 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16384 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16385 emximp -o $lib $output_objdir/$libname.def' 16386 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16387 enable_shared_with_static_runtimes=yes 16388 file_list_spec='@' 16389 ;; 16390 16391 interix[3-9]*) 16392 hardcode_direct=no 16393 hardcode_shlibpath_var=no 16394 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16395 export_dynamic_flag_spec='$wl-E' 16396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16397 # Instead, shared libraries are loaded at an image base (0x10000000 by 16398 # default) and relocated if they conflict, which is a slow very memory 16399 # consuming and fragmenting process. To avoid this, we pick a random, 16400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16401 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16402 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16403 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' 16404 ;; 16405 16406 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16407 tmp_diet=no 16408 if test linux-dietlibc = "$host_os"; then 16409 case $cc_basename in 16410 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16411 esac 16412 fi 16413 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16414 && test no = "$tmp_diet" 16415 then 16416 tmp_addflag=' $pic_flag' 16417 tmp_sharedflag='-shared' 16418 case $cc_basename,$host_cpu in 16419 pgcc*) # Portland Group C compiler 16420 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' 16421 tmp_addflag=' $pic_flag' 16422 ;; 16423 pgf77* | pgf90* | pgf95* | pgfortran*) 16424 # Portland Group f77 and f90 compilers 16425 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' 16426 tmp_addflag=' $pic_flag -Mnomain' ;; 16427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16428 tmp_addflag=' -i_dynamic' ;; 16429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16430 tmp_addflag=' -i_dynamic -nofor_main' ;; 16431 ifc* | ifort*) # Intel Fortran compiler 16432 tmp_addflag=' -nofor_main' ;; 16433 lf95*) # Lahey Fortran 8.1 16434 whole_archive_flag_spec= 16435 tmp_sharedflag='--shared' ;; 16436 nagfor*) # NAGFOR 5.3 16437 tmp_sharedflag='-Wl,-shared' ;; 16438 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16439 tmp_sharedflag='-qmkshrobj' 16440 tmp_addflag= ;; 16441 nvcc*) # Cuda Compiler Driver 2.2 16442 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' 16443 compiler_needs_object=yes 16444 ;; 16445 esac 16446 case `$CC -V 2>&1 | $SED 5q` in 16447 *Sun\ C*) # Sun C 5.9 16448 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' 16449 compiler_needs_object=yes 16450 tmp_sharedflag='-G' ;; 16451 *Sun\ F*) # Sun Fortran 8.3 16452 tmp_sharedflag='-G' ;; 16453 esac 16454 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16455 16456 if test yes = "$supports_anon_versioning"; then 16457 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16458 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16459 echo "local: *; };" >> $output_objdir/$libname.ver~ 16460 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16461 fi 16462 16463 case $cc_basename in 16464 tcc*) 16465 export_dynamic_flag_spec='-rdynamic' 16466 ;; 16467 xlf* | bgf* | bgxlf* | mpixlf*) 16468 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16469 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16470 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16471 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16472 if test yes = "$supports_anon_versioning"; then 16473 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16474 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16475 echo "local: *; };" >> $output_objdir/$libname.ver~ 16476 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16477 fi 16478 ;; 16479 esac 16480 else 16481 ld_shlibs=no 16482 fi 16483 ;; 16484 16485 netbsd*) 16486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16488 wlarc= 16489 else 16490 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16492 fi 16493 ;; 16494 16495 solaris*) 16496 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16497 ld_shlibs=no 16498 cat <<_LT_EOF 1>&2 16499 16500*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16501*** create shared libraries on Solaris systems. Therefore, libtool 16502*** is disabling shared libraries support. We urge you to upgrade GNU 16503*** binutils to release 2.9.1 or newer. Another option is to modify 16504*** your PATH or compiler configuration so that the native linker is 16505*** used, and then restart. 16506 16507_LT_EOF 16508 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16509 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16510 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16511 else 16512 ld_shlibs=no 16513 fi 16514 ;; 16515 16516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16517 case `$LD -v 2>&1` in 16518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16519 ld_shlibs=no 16520 cat <<_LT_EOF 1>&2 16521 16522*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16523*** reliably create shared libraries on SCO systems. Therefore, libtool 16524*** is disabling shared libraries support. We urge you to upgrade GNU 16525*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16526*** your PATH or compiler configuration so that the native linker is 16527*** used, and then restart. 16528 16529_LT_EOF 16530 ;; 16531 *) 16532 # For security reasons, it is highly recommended that you always 16533 # use absolute paths for naming shared libraries, and exclude the 16534 # DT_RUNPATH tag from executables and libraries. But doing so 16535 # requires that you compile everything twice, which is a pain. 16536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16540 else 16541 ld_shlibs=no 16542 fi 16543 ;; 16544 esac 16545 ;; 16546 16547 sunos4*) 16548 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16549 wlarc= 16550 hardcode_direct=yes 16551 hardcode_shlibpath_var=no 16552 ;; 16553 16554 *) 16555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16557 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16558 else 16559 ld_shlibs=no 16560 fi 16561 ;; 16562 esac 16563 16564 if test no = "$ld_shlibs"; then 16565 runpath_var= 16566 hardcode_libdir_flag_spec= 16567 export_dynamic_flag_spec= 16568 whole_archive_flag_spec= 16569 fi 16570 else 16571 # PORTME fill in a description of your system's linker (not GNU ld) 16572 case $host_os in 16573 aix3*) 16574 allow_undefined_flag=unsupported 16575 always_export_symbols=yes 16576 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' 16577 # Note: this linker hardcodes the directories in LIBPATH if there 16578 # are no directories specified by -L. 16579 hardcode_minus_L=yes 16580 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16581 # Neither direct hardcoding nor static linking is supported with a 16582 # broken collect2. 16583 hardcode_direct=unsupported 16584 fi 16585 ;; 16586 16587 aix[4-9]*) 16588 if test ia64 = "$host_cpu"; then 16589 # On IA64, the linker does run time linking by default, so we don't 16590 # have to do anything special. 16591 aix_use_runtimelinking=no 16592 exp_sym_flag='-Bexport' 16593 no_entry_flag= 16594 else 16595 # If we're using GNU nm, then we don't want the "-C" option. 16596 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16597 # Without the "-l" option, or with the "-B" option, AIX nm treats 16598 # weak defined symbols like other global defined symbols, whereas 16599 # GNU nm marks them as "W". 16600 # While the 'weak' keyword is ignored in the Export File, we need 16601 # it in the Import File for the 'aix-soname' feature, so we have 16602 # to replace the "-B" option with "-P" for AIX nm. 16603 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16604 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' 16605 else 16606 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' 16607 fi 16608 aix_use_runtimelinking=no 16609 16610 # Test if we are trying to use run time linking or normal 16611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16612 # have runtime linking enabled, and use it for executables. 16613 # For shared libraries, we enable/disable runtime linking 16614 # depending on the kind of the shared library created - 16615 # when "with_aix_soname,aix_use_runtimelinking" is: 16616 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16617 # "aix,yes" lib.so shared, rtl:yes, for executables 16618 # lib.a static archive 16619 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16620 # lib.a(lib.so.V) shared, rtl:no, for executables 16621 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16622 # lib.a(lib.so.V) shared, rtl:no 16623 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16624 # lib.a static archive 16625 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16626 for ld_flag in $LDFLAGS; do 16627 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16628 aix_use_runtimelinking=yes 16629 break 16630 fi 16631 done 16632 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16633 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16634 # so we don't have lib.a shared libs to link our executables. 16635 # We have to force runtime linking in this case. 16636 aix_use_runtimelinking=yes 16637 LDFLAGS="$LDFLAGS -Wl,-brtl" 16638 fi 16639 ;; 16640 esac 16641 16642 exp_sym_flag='-bexport' 16643 no_entry_flag='-bnoentry' 16644 fi 16645 16646 # When large executables or shared objects are built, AIX ld can 16647 # have problems creating the table of contents. If linking a library 16648 # or program results in "error TOC overflow" add -mminimal-toc to 16649 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16650 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16651 16652 archive_cmds='' 16653 hardcode_direct=yes 16654 hardcode_direct_absolute=yes 16655 hardcode_libdir_separator=':' 16656 link_all_deplibs=yes 16657 file_list_spec='$wl-f,' 16658 case $with_aix_soname,$aix_use_runtimelinking in 16659 aix,*) ;; # traditional, no import file 16660 svr4,* | *,yes) # use import file 16661 # The Import File defines what to hardcode. 16662 hardcode_direct=no 16663 hardcode_direct_absolute=no 16664 ;; 16665 esac 16666 16667 if test yes = "$GCC"; then 16668 case $host_os in aix4.[012]|aix4.[012].*) 16669 # We only want to do this on AIX 4.2 and lower, the check 16670 # below for broken collect2 doesn't work under 4.3+ 16671 collect2name=`$CC -print-prog-name=collect2` 16672 if test -f "$collect2name" && 16673 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16674 then 16675 # We have reworked collect2 16676 : 16677 else 16678 # We have old collect2 16679 hardcode_direct=unsupported 16680 # It fails to find uninstalled libraries when the uninstalled 16681 # path is not listed in the libpath. Setting hardcode_minus_L 16682 # to unsupported forces relinking 16683 hardcode_minus_L=yes 16684 hardcode_libdir_flag_spec='-L$libdir' 16685 hardcode_libdir_separator= 16686 fi 16687 ;; 16688 esac 16689 shared_flag='-shared' 16690 if test yes = "$aix_use_runtimelinking"; then 16691 shared_flag="$shared_flag "'$wl-G' 16692 fi 16693 # Need to ensure runtime linking is disabled for the traditional 16694 # shared library, or the linker may eventually find shared libraries 16695 # /with/ Import File - we do not want to mix them. 16696 shared_flag_aix='-shared' 16697 shared_flag_svr4='-shared $wl-G' 16698 else 16699 # not using gcc 16700 if test ia64 = "$host_cpu"; then 16701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16702 # chokes on -Wl,-G. The following line is correct: 16703 shared_flag='-G' 16704 else 16705 if test yes = "$aix_use_runtimelinking"; then 16706 shared_flag='$wl-G' 16707 else 16708 shared_flag='$wl-bM:SRE' 16709 fi 16710 shared_flag_aix='$wl-bM:SRE' 16711 shared_flag_svr4='$wl-G' 16712 fi 16713 fi 16714 16715 export_dynamic_flag_spec='$wl-bexpall' 16716 # It seems that -bexpall does not export symbols beginning with 16717 # underscore (_), so it is better to generate a list of symbols to export. 16718 always_export_symbols=yes 16719 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16720 # Warning - without using the other runtime loading flags (-brtl), 16721 # -berok will link without error, but may produce a broken library. 16722 allow_undefined_flag='-berok' 16723 # Determine the default libpath from the value encoded in an 16724 # empty executable. 16725 if test set = "${lt_cv_aix_libpath+set}"; then 16726 aix_libpath=$lt_cv_aix_libpath 16727else 16728 if test ${lt_cv_aix_libpath_+y} 16729then : 16730 printf %s "(cached) " >&6 16731else $as_nop 16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16733/* end confdefs.h. */ 16734 16735int 16736main (void) 16737{ 16738 16739 ; 16740 return 0; 16741} 16742_ACEOF 16743if ac_fn_c_try_link "$LINENO" 16744then : 16745 16746 lt_aix_libpath_sed=' 16747 /Import File Strings/,/^$/ { 16748 /^0/ { 16749 s/^0 *\([^ ]*\) *$/\1/ 16750 p 16751 } 16752 }' 16753 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16754 # Check for a 64-bit object if we didn't find anything. 16755 if test -z "$lt_cv_aix_libpath_"; then 16756 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16757 fi 16758fi 16759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16760 conftest$ac_exeext conftest.$ac_ext 16761 if test -z "$lt_cv_aix_libpath_"; then 16762 lt_cv_aix_libpath_=/usr/lib:/lib 16763 fi 16764 16765fi 16766 16767 aix_libpath=$lt_cv_aix_libpath_ 16768fi 16769 16770 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16771 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 16772 else 16773 if test ia64 = "$host_cpu"; then 16774 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16775 allow_undefined_flag="-z nodefs" 16776 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" 16777 else 16778 # Determine the default libpath from the value encoded in an 16779 # empty executable. 16780 if test set = "${lt_cv_aix_libpath+set}"; then 16781 aix_libpath=$lt_cv_aix_libpath 16782else 16783 if test ${lt_cv_aix_libpath_+y} 16784then : 16785 printf %s "(cached) " >&6 16786else $as_nop 16787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16788/* end confdefs.h. */ 16789 16790int 16791main (void) 16792{ 16793 16794 ; 16795 return 0; 16796} 16797_ACEOF 16798if ac_fn_c_try_link "$LINENO" 16799then : 16800 16801 lt_aix_libpath_sed=' 16802 /Import File Strings/,/^$/ { 16803 /^0/ { 16804 s/^0 *\([^ ]*\) *$/\1/ 16805 p 16806 } 16807 }' 16808 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16809 # Check for a 64-bit object if we didn't find anything. 16810 if test -z "$lt_cv_aix_libpath_"; then 16811 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16812 fi 16813fi 16814rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16815 conftest$ac_exeext conftest.$ac_ext 16816 if test -z "$lt_cv_aix_libpath_"; then 16817 lt_cv_aix_libpath_=/usr/lib:/lib 16818 fi 16819 16820fi 16821 16822 aix_libpath=$lt_cv_aix_libpath_ 16823fi 16824 16825 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16826 # Warning - without using the other run time loading flags, 16827 # -berok will link without error, but may produce a broken library. 16828 no_undefined_flag=' $wl-bernotok' 16829 allow_undefined_flag=' $wl-berok' 16830 if test yes = "$with_gnu_ld"; then 16831 # We only use this code for GNU lds that support --whole-archive. 16832 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16833 else 16834 # Exported symbols can be pulled into shared objects from archives 16835 whole_archive_flag_spec='$convenience' 16836 fi 16837 archive_cmds_need_lc=yes 16838 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16839 # -brtl affects multiple linker settings, -berok does not and is overridden later 16840 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16841 if test svr4 != "$with_aix_soname"; then 16842 # This is similar to how AIX traditionally builds its shared libraries. 16843 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' 16844 fi 16845 if test aix != "$with_aix_soname"; then 16846 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' 16847 else 16848 # used by -dlpreopen to get the symbols 16849 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16850 fi 16851 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16852 fi 16853 fi 16854 ;; 16855 16856 amigaos*) 16857 case $host_cpu in 16858 powerpc) 16859 # see comment about AmigaOS4 .so support 16860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16861 archive_expsym_cmds='' 16862 ;; 16863 m68k) 16864 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)' 16865 hardcode_libdir_flag_spec='-L$libdir' 16866 hardcode_minus_L=yes 16867 ;; 16868 esac 16869 ;; 16870 16871 bsdi[45]*) 16872 export_dynamic_flag_spec=-rdynamic 16873 ;; 16874 16875 cygwin* | mingw* | pw32* | cegcc*) 16876 # When not using gcc, we currently assume that we are using 16877 # Microsoft Visual C++ or Intel C++ Compiler. 16878 # hardcode_libdir_flag_spec is actually meaningless, as there is 16879 # no search path for DLLs. 16880 case $cc_basename in 16881 cl* | icl*) 16882 # Native MSVC or ICC 16883 hardcode_libdir_flag_spec=' ' 16884 allow_undefined_flag=unsupported 16885 always_export_symbols=yes 16886 file_list_spec='@' 16887 # Tell ltmain to make .lib files, not .a files. 16888 libext=lib 16889 # Tell ltmain to make .dll files, not .so files. 16890 shrext_cmds=.dll 16891 # FIXME: Setting linknames here is a bad hack. 16892 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16893 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16894 cp "$export_symbols" "$output_objdir/$soname.def"; 16895 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16896 else 16897 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16898 fi~ 16899 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16900 linknames=' 16901 # The linker will not automatically build a static lib if we build a DLL. 16902 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16903 enable_shared_with_static_runtimes=yes 16904 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16905 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16906 # Don't use ranlib 16907 old_postinstall_cmds='chmod 644 $oldlib' 16908 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16909 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16910 case $lt_outputfile in 16911 *.exe|*.EXE) ;; 16912 *) 16913 lt_outputfile=$lt_outputfile.exe 16914 lt_tool_outputfile=$lt_tool_outputfile.exe 16915 ;; 16916 esac~ 16917 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16918 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16919 $RM "$lt_outputfile.manifest"; 16920 fi' 16921 ;; 16922 *) 16923 # Assume MSVC and ICC wrapper 16924 hardcode_libdir_flag_spec=' ' 16925 allow_undefined_flag=unsupported 16926 # Tell ltmain to make .lib files, not .a files. 16927 libext=lib 16928 # Tell ltmain to make .dll files, not .so files. 16929 shrext_cmds=.dll 16930 # FIXME: Setting linknames here is a bad hack. 16931 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16932 # The linker will automatically build a .lib file if we build a DLL. 16933 old_archive_from_new_cmds='true' 16934 # FIXME: Should let the user specify the lib program. 16935 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16936 enable_shared_with_static_runtimes=yes 16937 ;; 16938 esac 16939 ;; 16940 16941 darwin* | rhapsody*) 16942 16943 16944 archive_cmds_need_lc=no 16945 hardcode_direct=no 16946 hardcode_automatic=yes 16947 hardcode_shlibpath_var=unsupported 16948 if test yes = "$lt_cv_ld_force_load"; then 16949 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\"`' 16950 16951 else 16952 whole_archive_flag_spec='' 16953 fi 16954 link_all_deplibs=yes 16955 allow_undefined_flag=$_lt_dar_allow_undefined 16956 case $cc_basename in 16957 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16958 *) _lt_dar_can_shared=$GCC ;; 16959 esac 16960 if test yes = "$_lt_dar_can_shared"; then 16961 output_verbose_link_cmd=func_echo_all 16962 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16963 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16964 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" 16965 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" 16966 16967 else 16968 ld_shlibs=no 16969 fi 16970 16971 ;; 16972 16973 dgux*) 16974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16975 hardcode_libdir_flag_spec='-L$libdir' 16976 hardcode_shlibpath_var=no 16977 ;; 16978 16979 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16980 # support. Future versions do this automatically, but an explicit c++rt0.o 16981 # does not break anything, and helps significantly (at the cost of a little 16982 # extra space). 16983 freebsd2.2*) 16984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16985 hardcode_libdir_flag_spec='-R$libdir' 16986 hardcode_direct=yes 16987 hardcode_shlibpath_var=no 16988 ;; 16989 16990 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16991 freebsd2.*) 16992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16993 hardcode_direct=yes 16994 hardcode_minus_L=yes 16995 hardcode_shlibpath_var=no 16996 ;; 16997 16998 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16999 freebsd* | dragonfly* | midnightbsd*) 17000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17001 hardcode_libdir_flag_spec='-R$libdir' 17002 hardcode_direct=yes 17003 hardcode_shlibpath_var=no 17004 ;; 17005 17006 hpux9*) 17007 if test yes = "$GCC"; then 17008 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' 17009 else 17010 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' 17011 fi 17012 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17013 hardcode_libdir_separator=: 17014 hardcode_direct=yes 17015 17016 # hardcode_minus_L: Not really in the search PATH, 17017 # but as the default location of the library. 17018 hardcode_minus_L=yes 17019 export_dynamic_flag_spec='$wl-E' 17020 ;; 17021 17022 hpux10*) 17023 if test yes,no = "$GCC,$with_gnu_ld"; then 17024 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17025 else 17026 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17027 fi 17028 if test no = "$with_gnu_ld"; then 17029 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17030 hardcode_libdir_separator=: 17031 hardcode_direct=yes 17032 hardcode_direct_absolute=yes 17033 export_dynamic_flag_spec='$wl-E' 17034 # hardcode_minus_L: Not really in the search PATH, 17035 # but as the default location of the library. 17036 hardcode_minus_L=yes 17037 fi 17038 ;; 17039 17040 hpux11*) 17041 if test yes,no = "$GCC,$with_gnu_ld"; then 17042 case $host_cpu in 17043 hppa*64*) 17044 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17045 ;; 17046 ia64*) 17047 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17048 ;; 17049 *) 17050 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17051 ;; 17052 esac 17053 else 17054 case $host_cpu in 17055 hppa*64*) 17056 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17057 ;; 17058 ia64*) 17059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17060 ;; 17061 *) 17062 17063 # Older versions of the 11.00 compiler do not understand -b yet 17064 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17066printf %s "checking if $CC understands -b... " >&6; } 17067if test ${lt_cv_prog_compiler__b+y} 17068then : 17069 printf %s "(cached) " >&6 17070else $as_nop 17071 lt_cv_prog_compiler__b=no 17072 save_LDFLAGS=$LDFLAGS 17073 LDFLAGS="$LDFLAGS -b" 17074 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17076 # The linker can only warn and ignore the option if not recognized 17077 # So say no if there are warnings 17078 if test -s conftest.err; then 17079 # Append any errors to the config.log. 17080 cat conftest.err 1>&5 17081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17083 if diff conftest.exp conftest.er2 >/dev/null; then 17084 lt_cv_prog_compiler__b=yes 17085 fi 17086 else 17087 lt_cv_prog_compiler__b=yes 17088 fi 17089 fi 17090 $RM -r conftest* 17091 LDFLAGS=$save_LDFLAGS 17092 17093fi 17094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17095printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17096 17097if test yes = "$lt_cv_prog_compiler__b"; then 17098 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17099else 17100 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17101fi 17102 17103 ;; 17104 esac 17105 fi 17106 if test no = "$with_gnu_ld"; then 17107 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17108 hardcode_libdir_separator=: 17109 17110 case $host_cpu in 17111 hppa*64*|ia64*) 17112 hardcode_direct=no 17113 hardcode_shlibpath_var=no 17114 ;; 17115 *) 17116 hardcode_direct=yes 17117 hardcode_direct_absolute=yes 17118 export_dynamic_flag_spec='$wl-E' 17119 17120 # hardcode_minus_L: Not really in the search PATH, 17121 # but as the default location of the library. 17122 hardcode_minus_L=yes 17123 ;; 17124 esac 17125 fi 17126 ;; 17127 17128 irix5* | irix6* | nonstopux*) 17129 if test yes = "$GCC"; then 17130 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' 17131 # Try to use the -exported_symbol ld option, if it does not 17132 # work, assume that -exports_file does not work either and 17133 # implicitly export all symbols. 17134 # This should be the same for all languages, so no per-tag cache variable. 17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17136printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17137if test ${lt_cv_irix_exported_symbol+y} 17138then : 17139 printf %s "(cached) " >&6 17140else $as_nop 17141 save_LDFLAGS=$LDFLAGS 17142 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17144/* end confdefs.h. */ 17145int foo (void) { return 0; } 17146_ACEOF 17147if ac_fn_c_try_link "$LINENO" 17148then : 17149 lt_cv_irix_exported_symbol=yes 17150else $as_nop 17151 lt_cv_irix_exported_symbol=no 17152fi 17153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17154 conftest$ac_exeext conftest.$ac_ext 17155 LDFLAGS=$save_LDFLAGS 17156fi 17157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17158printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17159 if test yes = "$lt_cv_irix_exported_symbol"; then 17160 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' 17161 fi 17162 else 17163 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' 17164 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' 17165 fi 17166 archive_cmds_need_lc='no' 17167 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17168 hardcode_libdir_separator=: 17169 inherit_rpath=yes 17170 link_all_deplibs=yes 17171 ;; 17172 17173 linux*) 17174 case $cc_basename in 17175 tcc*) 17176 # Fabrice Bellard et al's Tiny C Compiler 17177 ld_shlibs=yes 17178 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17179 ;; 17180 esac 17181 ;; 17182 17183 netbsd*) 17184 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17186 else 17187 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17188 fi 17189 hardcode_libdir_flag_spec='-R$libdir' 17190 hardcode_direct=yes 17191 hardcode_shlibpath_var=no 17192 ;; 17193 17194 newsos6) 17195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17196 hardcode_direct=yes 17197 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17198 hardcode_libdir_separator=: 17199 hardcode_shlibpath_var=no 17200 ;; 17201 17202 *nto* | *qnx*) 17203 ;; 17204 17205 openbsd* | bitrig*) 17206 if test -f /usr/libexec/ld.so; then 17207 hardcode_direct=yes 17208 hardcode_shlibpath_var=no 17209 hardcode_direct_absolute=yes 17210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17211 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17212 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17213 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17214 export_dynamic_flag_spec='$wl-E' 17215 else 17216 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17217 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17218 fi 17219 else 17220 ld_shlibs=no 17221 fi 17222 ;; 17223 17224 os2*) 17225 hardcode_libdir_flag_spec='-L$libdir' 17226 hardcode_minus_L=yes 17227 allow_undefined_flag=unsupported 17228 shrext_cmds=.dll 17229 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17230 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17231 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17232 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17233 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17234 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17235 emximp -o $lib $output_objdir/$libname.def' 17236 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17237 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17238 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17239 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17240 prefix_cmds="$SED"~ 17241 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17242 prefix_cmds="$prefix_cmds -e 1d"; 17243 fi~ 17244 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17245 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17246 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17247 emximp -o $lib $output_objdir/$libname.def' 17248 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17249 enable_shared_with_static_runtimes=yes 17250 file_list_spec='@' 17251 ;; 17252 17253 osf3*) 17254 if test yes = "$GCC"; then 17255 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17256 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' 17257 else 17258 allow_undefined_flag=' -expect_unresolved \*' 17259 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' 17260 fi 17261 archive_cmds_need_lc='no' 17262 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17263 hardcode_libdir_separator=: 17264 ;; 17265 17266 osf4* | osf5*) # as osf3* with the addition of -msym flag 17267 if test yes = "$GCC"; then 17268 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17269 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' 17270 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17271 else 17272 allow_undefined_flag=' -expect_unresolved \*' 17273 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' 17274 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~ 17275 $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' 17276 17277 # Both c and cxx compiler support -rpath directly 17278 hardcode_libdir_flag_spec='-rpath $libdir' 17279 fi 17280 archive_cmds_need_lc='no' 17281 hardcode_libdir_separator=: 17282 ;; 17283 17284 solaris*) 17285 no_undefined_flag=' -z defs' 17286 if test yes = "$GCC"; then 17287 wlarc='$wl' 17288 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17290 $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' 17291 else 17292 case `$CC -V 2>&1` in 17293 *"Compilers 5.0"*) 17294 wlarc='' 17295 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17297 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17298 ;; 17299 *) 17300 wlarc='$wl' 17301 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17303 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17304 ;; 17305 esac 17306 fi 17307 hardcode_libdir_flag_spec='-R$libdir' 17308 hardcode_shlibpath_var=no 17309 case $host_os in 17310 solaris2.[0-5] | solaris2.[0-5].*) ;; 17311 *) 17312 # The compiler driver will combine and reorder linker options, 17313 # but understands '-z linker_flag'. GCC discards it without '$wl', 17314 # but is careful enough not to reorder. 17315 # Supported since Solaris 2.6 (maybe 2.5.1?) 17316 if test yes = "$GCC"; then 17317 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17318 else 17319 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17320 fi 17321 ;; 17322 esac 17323 link_all_deplibs=yes 17324 ;; 17325 17326 sunos4*) 17327 if test sequent = "$host_vendor"; then 17328 # Use $CC to link under sequent, because it throws in some extra .o 17329 # files that make .init and .fini sections work. 17330 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17331 else 17332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17333 fi 17334 hardcode_libdir_flag_spec='-L$libdir' 17335 hardcode_direct=yes 17336 hardcode_minus_L=yes 17337 hardcode_shlibpath_var=no 17338 ;; 17339 17340 sysv4) 17341 case $host_vendor in 17342 sni) 17343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17344 hardcode_direct=yes # is this really true??? 17345 ;; 17346 siemens) 17347 ## LD is ld it makes a PLAMLIB 17348 ## CC just makes a GrossModule. 17349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17350 reload_cmds='$CC -r -o $output$reload_objs' 17351 hardcode_direct=no 17352 ;; 17353 motorola) 17354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17356 ;; 17357 esac 17358 runpath_var='LD_RUN_PATH' 17359 hardcode_shlibpath_var=no 17360 ;; 17361 17362 sysv4.3*) 17363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17364 hardcode_shlibpath_var=no 17365 export_dynamic_flag_spec='-Bexport' 17366 ;; 17367 17368 sysv4*MP*) 17369 if test -d /usr/nec; then 17370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17371 hardcode_shlibpath_var=no 17372 runpath_var=LD_RUN_PATH 17373 hardcode_runpath_var=yes 17374 ld_shlibs=yes 17375 fi 17376 ;; 17377 17378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17379 no_undefined_flag='$wl-z,text' 17380 archive_cmds_need_lc=no 17381 hardcode_shlibpath_var=no 17382 runpath_var='LD_RUN_PATH' 17383 17384 if test yes = "$GCC"; then 17385 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17386 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17387 else 17388 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17389 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17390 fi 17391 ;; 17392 17393 sysv5* | sco3.2v5* | sco5v6*) 17394 # Note: We CANNOT use -z defs as we might desire, because we do not 17395 # link with -lc, and that would cause any symbols used from libc to 17396 # always be unresolved, which means just about no library would 17397 # ever link correctly. If we're not using GNU ld we use -z text 17398 # though, which does catch some bad symbols but isn't as heavy-handed 17399 # as -z defs. 17400 no_undefined_flag='$wl-z,text' 17401 allow_undefined_flag='$wl-z,nodefs' 17402 archive_cmds_need_lc=no 17403 hardcode_shlibpath_var=no 17404 hardcode_libdir_flag_spec='$wl-R,$libdir' 17405 hardcode_libdir_separator=':' 17406 link_all_deplibs=yes 17407 export_dynamic_flag_spec='$wl-Bexport' 17408 runpath_var='LD_RUN_PATH' 17409 17410 if test yes = "$GCC"; then 17411 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17412 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17413 else 17414 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17415 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17416 fi 17417 ;; 17418 17419 uts4*) 17420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17421 hardcode_libdir_flag_spec='-L$libdir' 17422 hardcode_shlibpath_var=no 17423 ;; 17424 17425 *) 17426 ld_shlibs=no 17427 ;; 17428 esac 17429 17430 if test sni = "$host_vendor"; then 17431 case $host in 17432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17433 export_dynamic_flag_spec='$wl-Blargedynsym' 17434 ;; 17435 esac 17436 fi 17437 fi 17438 17439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17440printf "%s\n" "$ld_shlibs" >&6; } 17441test no = "$ld_shlibs" && can_build_shared=no 17442 17443with_gnu_ld=$with_gnu_ld 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459# 17460# Do we need to explicitly link libc? 17461# 17462case "x$archive_cmds_need_lc" in 17463x|xyes) 17464 # Assume -lc should be added 17465 archive_cmds_need_lc=yes 17466 17467 if test yes,yes = "$GCC,$enable_shared"; then 17468 case $archive_cmds in 17469 *'~'*) 17470 # FIXME: we may have to deal with multi-command sequences. 17471 ;; 17472 '$CC '*) 17473 # Test whether the compiler implicitly links with -lc since on some 17474 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17475 # to ld, don't add -lc before -lgcc. 17476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17477printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17478if test ${lt_cv_archive_cmds_need_lc+y} 17479then : 17480 printf %s "(cached) " >&6 17481else $as_nop 17482 $RM conftest* 17483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17484 17485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17486 (eval $ac_compile) 2>&5 17487 ac_status=$? 17488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17489 test $ac_status = 0; } 2>conftest.err; then 17490 soname=conftest 17491 lib=conftest 17492 libobjs=conftest.$ac_objext 17493 deplibs= 17494 wl=$lt_prog_compiler_wl 17495 pic_flag=$lt_prog_compiler_pic 17496 compiler_flags=-v 17497 linker_flags=-v 17498 verstring= 17499 output_objdir=. 17500 libname=conftest 17501 lt_save_allow_undefined_flag=$allow_undefined_flag 17502 allow_undefined_flag= 17503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17504 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17505 ac_status=$? 17506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17507 test $ac_status = 0; } 17508 then 17509 lt_cv_archive_cmds_need_lc=no 17510 else 17511 lt_cv_archive_cmds_need_lc=yes 17512 fi 17513 allow_undefined_flag=$lt_save_allow_undefined_flag 17514 else 17515 cat conftest.err 1>&5 17516 fi 17517 $RM conftest* 17518 17519fi 17520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17521printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17522 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17523 ;; 17524 esac 17525 fi 17526 ;; 17527esac 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17681printf %s "checking dynamic linker characteristics... " >&6; } 17682 17683if test yes = "$GCC"; then 17684 case $host_os in 17685 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17686 *) lt_awk_arg='/^libraries:/' ;; 17687 esac 17688 case $host_os in 17689 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17690 *) lt_sed_strip_eq='s|=/|/|g' ;; 17691 esac 17692 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17693 case $lt_search_path_spec in 17694 *\;*) 17695 # if the path contains ";" then we assume it to be the separator 17696 # otherwise default to the standard path separator (i.e. ":") - it is 17697 # assumed that no part of a normal pathname contains ";" but that should 17698 # okay in the real world where ";" in dirpaths is itself problematic. 17699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17700 ;; 17701 *) 17702 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17703 ;; 17704 esac 17705 # Ok, now we have the path, separated by spaces, we can step through it 17706 # and add multilib dir if necessary... 17707 lt_tmp_lt_search_path_spec= 17708 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17709 # ...but if some path component already ends with the multilib dir we assume 17710 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17711 case "$lt_multi_os_dir; $lt_search_path_spec " in 17712 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17713 lt_multi_os_dir= 17714 ;; 17715 esac 17716 for lt_sys_path in $lt_search_path_spec; do 17717 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17719 elif test -n "$lt_multi_os_dir"; then 17720 test -d "$lt_sys_path" && \ 17721 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17722 fi 17723 done 17724 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17725BEGIN {RS = " "; FS = "/|\n";} { 17726 lt_foo = ""; 17727 lt_count = 0; 17728 for (lt_i = NF; lt_i > 0; lt_i--) { 17729 if ($lt_i != "" && $lt_i != ".") { 17730 if ($lt_i == "..") { 17731 lt_count++; 17732 } else { 17733 if (lt_count == 0) { 17734 lt_foo = "/" $lt_i lt_foo; 17735 } else { 17736 lt_count--; 17737 } 17738 } 17739 } 17740 } 17741 if (lt_foo != "") { lt_freq[lt_foo]++; } 17742 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17743}'` 17744 # AWK program above erroneously prepends '/' to C:/dos/paths 17745 # for these hosts. 17746 case $host_os in 17747 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17748 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17749 esac 17750 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17751else 17752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17753fi 17754library_names_spec= 17755libname_spec='lib$name' 17756soname_spec= 17757shrext_cmds=.so 17758postinstall_cmds= 17759postuninstall_cmds= 17760finish_cmds= 17761finish_eval= 17762shlibpath_var= 17763shlibpath_overrides_runpath=unknown 17764version_type=none 17765dynamic_linker="$host_os ld.so" 17766sys_lib_dlsearch_path_spec="/lib /usr/lib" 17767need_lib_prefix=unknown 17768hardcode_into_libs=no 17769 17770# when you set need_version to no, make sure it does not cause -set_version 17771# flags to be left without arguments 17772need_version=unknown 17773 17774 17775 17776case $host_os in 17777aix3*) 17778 version_type=linux # correct to gnu/linux during the next big refactor 17779 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17780 shlibpath_var=LIBPATH 17781 17782 # AIX 3 has no versioning support, so we append a major version to the name. 17783 soname_spec='$libname$release$shared_ext$major' 17784 ;; 17785 17786aix[4-9]*) 17787 version_type=linux # correct to gnu/linux during the next big refactor 17788 need_lib_prefix=no 17789 need_version=no 17790 hardcode_into_libs=yes 17791 if test ia64 = "$host_cpu"; then 17792 # AIX 5 supports IA64 17793 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17794 shlibpath_var=LD_LIBRARY_PATH 17795 else 17796 # With GCC up to 2.95.x, collect2 would create an import file 17797 # for dependence libraries. The import file would start with 17798 # the line '#! .'. This would cause the generated library to 17799 # depend on '.', always an invalid library. This was fixed in 17800 # development snapshots of GCC prior to 3.0. 17801 case $host_os in 17802 aix4 | aix4.[01] | aix4.[01].*) 17803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17804 echo ' yes ' 17805 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17806 : 17807 else 17808 can_build_shared=no 17809 fi 17810 ;; 17811 esac 17812 # Using Import Files as archive members, it is possible to support 17813 # filename-based versioning of shared library archives on AIX. While 17814 # this would work for both with and without runtime linking, it will 17815 # prevent static linking of such archives. So we do filename-based 17816 # shared library versioning with .so extension only, which is used 17817 # when both runtime linking and shared linking is enabled. 17818 # Unfortunately, runtime linking may impact performance, so we do 17819 # not want this to be the default eventually. Also, we use the 17820 # versioned .so libs for executables only if there is the -brtl 17821 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17822 # To allow for filename-based versioning support, we need to create 17823 # libNAME.so.V as an archive file, containing: 17824 # *) an Import File, referring to the versioned filename of the 17825 # archive as well as the shared archive member, telling the 17826 # bitwidth (32 or 64) of that shared object, and providing the 17827 # list of exported symbols of that shared object, eventually 17828 # decorated with the 'weak' keyword 17829 # *) the shared object with the F_LOADONLY flag set, to really avoid 17830 # it being seen by the linker. 17831 # At run time we better use the real file rather than another symlink, 17832 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17833 17834 case $with_aix_soname,$aix_use_runtimelinking in 17835 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17836 # soname into executable. Probably we can add versioning support to 17837 # collect2, so additional links can be useful in future. 17838 aix,yes) # traditional libtool 17839 dynamic_linker='AIX unversionable lib.so' 17840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17841 # instead of lib<name>.a to let people know that these are not 17842 # typical AIX shared libraries. 17843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17844 ;; 17845 aix,no) # traditional AIX only 17846 dynamic_linker='AIX lib.a(lib.so.V)' 17847 # We preserve .a as extension for shared libraries through AIX4.2 17848 # and later when we are not doing run time linking. 17849 library_names_spec='$libname$release.a $libname.a' 17850 soname_spec='$libname$release$shared_ext$major' 17851 ;; 17852 svr4,*) # full svr4 only 17853 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17854 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17855 # We do not specify a path in Import Files, so LIBPATH fires. 17856 shlibpath_overrides_runpath=yes 17857 ;; 17858 *,yes) # both, prefer svr4 17859 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17860 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17861 # unpreferred sharedlib libNAME.a needs extra handling 17862 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"' 17863 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"' 17864 # We do not specify a path in Import Files, so LIBPATH fires. 17865 shlibpath_overrides_runpath=yes 17866 ;; 17867 *,no) # both, prefer aix 17868 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17869 library_names_spec='$libname$release.a $libname.a' 17870 soname_spec='$libname$release$shared_ext$major' 17871 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17872 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)' 17873 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"' 17874 ;; 17875 esac 17876 shlibpath_var=LIBPATH 17877 fi 17878 ;; 17879 17880amigaos*) 17881 case $host_cpu in 17882 powerpc) 17883 # Since July 2007 AmigaOS4 officially supports .so libraries. 17884 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17886 ;; 17887 m68k) 17888 library_names_spec='$libname.ixlibrary $libname.a' 17889 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17890 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' 17891 ;; 17892 esac 17893 ;; 17894 17895beos*) 17896 library_names_spec='$libname$shared_ext' 17897 dynamic_linker="$host_os ld.so" 17898 shlibpath_var=LIBRARY_PATH 17899 ;; 17900 17901bsdi[45]*) 17902 version_type=linux # correct to gnu/linux during the next big refactor 17903 need_version=no 17904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17905 soname_spec='$libname$release$shared_ext$major' 17906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17907 shlibpath_var=LD_LIBRARY_PATH 17908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17910 # the default ld.so.conf also contains /usr/contrib/lib and 17911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17912 # libtool to hard-code these into programs 17913 ;; 17914 17915cygwin* | mingw* | pw32* | cegcc*) 17916 version_type=windows 17917 shrext_cmds=.dll 17918 need_version=no 17919 need_lib_prefix=no 17920 17921 case $GCC,$cc_basename in 17922 yes,*) 17923 # gcc 17924 library_names_spec='$libname.dll.a' 17925 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17926 postinstall_cmds='base_file=`basename \$file`~ 17927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17928 dldir=$destdir/`dirname \$dlpath`~ 17929 test -d \$dldir || mkdir -p \$dldir~ 17930 $install_prog $dir/$dlname \$dldir/$dlname~ 17931 chmod a+x \$dldir/$dlname~ 17932 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17933 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17934 fi' 17935 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17936 dlpath=$dir/\$dldll~ 17937 $RM \$dlpath' 17938 shlibpath_overrides_runpath=yes 17939 17940 case $host_os in 17941 cygwin*) 17942 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17943 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17944 17945 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17946 ;; 17947 mingw* | cegcc*) 17948 # MinGW DLLs use traditional 'lib' prefix 17949 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17950 ;; 17951 pw32*) 17952 # pw32 DLLs use 'pw' prefix rather than 'lib' 17953 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17954 ;; 17955 esac 17956 dynamic_linker='Win32 ld.exe' 17957 ;; 17958 17959 *,cl* | *,icl*) 17960 # Native MSVC or ICC 17961 libname_spec='$name' 17962 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17963 library_names_spec='$libname.dll.lib' 17964 17965 case $build_os in 17966 mingw*) 17967 sys_lib_search_path_spec= 17968 lt_save_ifs=$IFS 17969 IFS=';' 17970 for lt_path in $LIB 17971 do 17972 IFS=$lt_save_ifs 17973 # Let DOS variable expansion print the short 8.3 style file name. 17974 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17975 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17976 done 17977 IFS=$lt_save_ifs 17978 # Convert to MSYS style. 17979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17980 ;; 17981 cygwin*) 17982 # Convert to unix form, then to dos form, then back to unix form 17983 # but this time dos style (no spaces!) so that the unix form looks 17984 # like /cygdrive/c/PROGRA~1:/cygdr... 17985 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17986 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17987 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17988 ;; 17989 *) 17990 sys_lib_search_path_spec=$LIB 17991 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17992 # It is most probably a Windows format PATH. 17993 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17994 else 17995 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17996 fi 17997 # FIXME: find the short name or the path components, as spaces are 17998 # common. (e.g. "Program Files" -> "PROGRA~1") 17999 ;; 18000 esac 18001 18002 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18003 postinstall_cmds='base_file=`basename \$file`~ 18004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18005 dldir=$destdir/`dirname \$dlpath`~ 18006 test -d \$dldir || mkdir -p \$dldir~ 18007 $install_prog $dir/$dlname \$dldir/$dlname' 18008 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18009 dlpath=$dir/\$dldll~ 18010 $RM \$dlpath' 18011 shlibpath_overrides_runpath=yes 18012 dynamic_linker='Win32 link.exe' 18013 ;; 18014 18015 *) 18016 # Assume MSVC and ICC wrapper 18017 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18018 dynamic_linker='Win32 ld.exe' 18019 ;; 18020 esac 18021 # FIXME: first we should search . and the directory the executable is in 18022 shlibpath_var=PATH 18023 ;; 18024 18025darwin* | rhapsody*) 18026 dynamic_linker="$host_os dyld" 18027 version_type=darwin 18028 need_lib_prefix=no 18029 need_version=no 18030 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18031 soname_spec='$libname$release$major$shared_ext' 18032 shlibpath_overrides_runpath=yes 18033 shlibpath_var=DYLD_LIBRARY_PATH 18034 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18035 18036 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18038 ;; 18039 18040dgux*) 18041 version_type=linux # correct to gnu/linux during the next big refactor 18042 need_lib_prefix=no 18043 need_version=no 18044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18045 soname_spec='$libname$release$shared_ext$major' 18046 shlibpath_var=LD_LIBRARY_PATH 18047 ;; 18048 18049freebsd* | dragonfly* | midnightbsd*) 18050 # DragonFly does not have aout. When/if they implement a new 18051 # versioning mechanism, adjust this. 18052 if test -x /usr/bin/objformat; then 18053 objformat=`/usr/bin/objformat` 18054 else 18055 case $host_os in 18056 freebsd[23].*) objformat=aout ;; 18057 *) objformat=elf ;; 18058 esac 18059 fi 18060 version_type=freebsd-$objformat 18061 case $version_type in 18062 freebsd-elf*) 18063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18064 soname_spec='$libname$release$shared_ext$major' 18065 need_version=no 18066 need_lib_prefix=no 18067 ;; 18068 freebsd-*) 18069 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18070 need_version=yes 18071 ;; 18072 esac 18073 shlibpath_var=LD_LIBRARY_PATH 18074 case $host_os in 18075 freebsd2.*) 18076 shlibpath_overrides_runpath=yes 18077 ;; 18078 freebsd3.[01]* | freebsdelf3.[01]*) 18079 shlibpath_overrides_runpath=yes 18080 hardcode_into_libs=yes 18081 ;; 18082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18084 shlibpath_overrides_runpath=no 18085 hardcode_into_libs=yes 18086 ;; 18087 *) # from 4.6 on, and DragonFly 18088 shlibpath_overrides_runpath=yes 18089 hardcode_into_libs=yes 18090 ;; 18091 esac 18092 ;; 18093 18094haiku*) 18095 version_type=linux # correct to gnu/linux during the next big refactor 18096 need_lib_prefix=no 18097 need_version=no 18098 dynamic_linker="$host_os runtime_loader" 18099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18100 soname_spec='$libname$release$shared_ext$major' 18101 shlibpath_var=LIBRARY_PATH 18102 shlibpath_overrides_runpath=no 18103 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18104 hardcode_into_libs=yes 18105 ;; 18106 18107hpux9* | hpux10* | hpux11*) 18108 # Give a soname corresponding to the major version so that dld.sl refuses to 18109 # link against other versions. 18110 version_type=sunos 18111 need_lib_prefix=no 18112 need_version=no 18113 case $host_cpu in 18114 ia64*) 18115 shrext_cmds='.so' 18116 hardcode_into_libs=yes 18117 dynamic_linker="$host_os dld.so" 18118 shlibpath_var=LD_LIBRARY_PATH 18119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18121 soname_spec='$libname$release$shared_ext$major' 18122 if test 32 = "$HPUX_IA64_MODE"; then 18123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18124 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18125 else 18126 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18127 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18128 fi 18129 ;; 18130 hppa*64*) 18131 shrext_cmds='.sl' 18132 hardcode_into_libs=yes 18133 dynamic_linker="$host_os dld.sl" 18134 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18135 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18137 soname_spec='$libname$release$shared_ext$major' 18138 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18140 ;; 18141 *) 18142 shrext_cmds='.sl' 18143 dynamic_linker="$host_os dld.sl" 18144 shlibpath_var=SHLIB_PATH 18145 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18147 soname_spec='$libname$release$shared_ext$major' 18148 ;; 18149 esac 18150 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18151 postinstall_cmds='chmod 555 $lib' 18152 # or fails outright, so override atomically: 18153 install_override_mode=555 18154 ;; 18155 18156interix[3-9]*) 18157 version_type=linux # correct to gnu/linux during the next big refactor 18158 need_lib_prefix=no 18159 need_version=no 18160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18161 soname_spec='$libname$release$shared_ext$major' 18162 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18163 shlibpath_var=LD_LIBRARY_PATH 18164 shlibpath_overrides_runpath=no 18165 hardcode_into_libs=yes 18166 ;; 18167 18168irix5* | irix6* | nonstopux*) 18169 case $host_os in 18170 nonstopux*) version_type=nonstopux ;; 18171 *) 18172 if test yes = "$lt_cv_prog_gnu_ld"; then 18173 version_type=linux # correct to gnu/linux during the next big refactor 18174 else 18175 version_type=irix 18176 fi ;; 18177 esac 18178 need_lib_prefix=no 18179 need_version=no 18180 soname_spec='$libname$release$shared_ext$major' 18181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18182 case $host_os in 18183 irix5* | nonstopux*) 18184 libsuff= shlibsuff= 18185 ;; 18186 *) 18187 case $LD in # libtool.m4 will add one of these switches to LD 18188 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18189 libsuff= shlibsuff= libmagic=32-bit;; 18190 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18191 libsuff=32 shlibsuff=N32 libmagic=N32;; 18192 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18193 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18194 *) libsuff= shlibsuff= libmagic=never-match;; 18195 esac 18196 ;; 18197 esac 18198 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18199 shlibpath_overrides_runpath=no 18200 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18201 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18202 hardcode_into_libs=yes 18203 ;; 18204 18205# No shared lib support for Linux oldld, aout, or coff. 18206linux*oldld* | linux*aout* | linux*coff*) 18207 dynamic_linker=no 18208 ;; 18209 18210linux*android*) 18211 version_type=none # Android doesn't support versioned libraries. 18212 need_lib_prefix=no 18213 need_version=no 18214 library_names_spec='$libname$release$shared_ext' 18215 soname_spec='$libname$release$shared_ext' 18216 finish_cmds= 18217 shlibpath_var=LD_LIBRARY_PATH 18218 shlibpath_overrides_runpath=yes 18219 18220 # This implies no fast_install, which is unacceptable. 18221 # Some rework will be needed to allow for fast_install 18222 # before this can be enabled. 18223 hardcode_into_libs=yes 18224 18225 dynamic_linker='Android linker' 18226 # Don't embed -rpath directories since the linker doesn't support them. 18227 hardcode_libdir_flag_spec='-L$libdir' 18228 ;; 18229 18230# This must be glibc/ELF. 18231linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18232 version_type=linux # correct to gnu/linux during the next big refactor 18233 need_lib_prefix=no 18234 need_version=no 18235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18236 soname_spec='$libname$release$shared_ext$major' 18237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18238 shlibpath_var=LD_LIBRARY_PATH 18239 shlibpath_overrides_runpath=no 18240 18241 # Some binutils ld are patched to set DT_RUNPATH 18242 if test ${lt_cv_shlibpath_overrides_runpath+y} 18243then : 18244 printf %s "(cached) " >&6 18245else $as_nop 18246 lt_cv_shlibpath_overrides_runpath=no 18247 save_LDFLAGS=$LDFLAGS 18248 save_libdir=$libdir 18249 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18250 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18252/* end confdefs.h. */ 18253 18254int 18255main (void) 18256{ 18257 18258 ; 18259 return 0; 18260} 18261_ACEOF 18262if ac_fn_c_try_link "$LINENO" 18263then : 18264 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18265then : 18266 lt_cv_shlibpath_overrides_runpath=yes 18267fi 18268fi 18269rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18270 conftest$ac_exeext conftest.$ac_ext 18271 LDFLAGS=$save_LDFLAGS 18272 libdir=$save_libdir 18273 18274fi 18275 18276 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18277 18278 # This implies no fast_install, which is unacceptable. 18279 # Some rework will be needed to allow for fast_install 18280 # before this can be enabled. 18281 hardcode_into_libs=yes 18282 18283 # Ideally, we could use ldconfig to report *all* directores which are 18284 # searched for libraries, however this is still not possible. Aside from not 18285 # being certain /sbin/ldconfig is available, command 18286 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18287 # even though it is searched at run-time. Try to do the best guess by 18288 # appending ld.so.conf contents (and includes) to the search path. 18289 if test -f /etc/ld.so.conf; then 18290 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' ' '` 18291 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18292 fi 18293 18294 # We used to test for /lib/ld.so.1 and disable shared libraries on 18295 # powerpc, because MkLinux only supported shared libraries with the 18296 # GNU dynamic linker. Since this was broken with cross compilers, 18297 # most powerpc-linux boxes support dynamic linking these days and 18298 # people can always --disable-shared, the test was removed, and we 18299 # assume the GNU/Linux dynamic linker is in use. 18300 dynamic_linker='GNU/Linux ld.so' 18301 ;; 18302 18303netbsd*) 18304 version_type=sunos 18305 need_lib_prefix=no 18306 need_version=no 18307 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18308 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18310 dynamic_linker='NetBSD (a.out) ld.so' 18311 else 18312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18313 soname_spec='$libname$release$shared_ext$major' 18314 dynamic_linker='NetBSD ld.elf_so' 18315 fi 18316 shlibpath_var=LD_LIBRARY_PATH 18317 shlibpath_overrides_runpath=yes 18318 hardcode_into_libs=yes 18319 ;; 18320 18321newsos6) 18322 version_type=linux # correct to gnu/linux during the next big refactor 18323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18324 shlibpath_var=LD_LIBRARY_PATH 18325 shlibpath_overrides_runpath=yes 18326 ;; 18327 18328*nto* | *qnx*) 18329 version_type=qnx 18330 need_lib_prefix=no 18331 need_version=no 18332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18333 soname_spec='$libname$release$shared_ext$major' 18334 shlibpath_var=LD_LIBRARY_PATH 18335 shlibpath_overrides_runpath=no 18336 hardcode_into_libs=yes 18337 dynamic_linker='ldqnx.so' 18338 ;; 18339 18340openbsd* | bitrig*) 18341 version_type=sunos 18342 sys_lib_dlsearch_path_spec=/usr/lib 18343 need_lib_prefix=no 18344 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18345 need_version=no 18346 else 18347 need_version=yes 18348 fi 18349 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18351 shlibpath_var=LD_LIBRARY_PATH 18352 shlibpath_overrides_runpath=yes 18353 ;; 18354 18355os2*) 18356 libname_spec='$name' 18357 version_type=windows 18358 shrext_cmds=.dll 18359 need_version=no 18360 need_lib_prefix=no 18361 # OS/2 can only load a DLL with a base name of 8 characters or less. 18362 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18363 v=$($ECHO $release$versuffix | tr -d .-); 18364 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18365 $ECHO $n$v`$shared_ext' 18366 library_names_spec='${libname}_dll.$libext' 18367 dynamic_linker='OS/2 ld.exe' 18368 shlibpath_var=BEGINLIBPATH 18369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18371 postinstall_cmds='base_file=`basename \$file`~ 18372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18373 dldir=$destdir/`dirname \$dlpath`~ 18374 test -d \$dldir || mkdir -p \$dldir~ 18375 $install_prog $dir/$dlname \$dldir/$dlname~ 18376 chmod a+x \$dldir/$dlname~ 18377 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18378 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18379 fi' 18380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18381 dlpath=$dir/\$dldll~ 18382 $RM \$dlpath' 18383 ;; 18384 18385osf3* | osf4* | osf5*) 18386 version_type=osf 18387 need_lib_prefix=no 18388 need_version=no 18389 soname_spec='$libname$release$shared_ext$major' 18390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18391 shlibpath_var=LD_LIBRARY_PATH 18392 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18394 ;; 18395 18396rdos*) 18397 dynamic_linker=no 18398 ;; 18399 18400solaris*) 18401 version_type=linux # correct to gnu/linux during the next big refactor 18402 need_lib_prefix=no 18403 need_version=no 18404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18405 soname_spec='$libname$release$shared_ext$major' 18406 shlibpath_var=LD_LIBRARY_PATH 18407 shlibpath_overrides_runpath=yes 18408 hardcode_into_libs=yes 18409 # ldd complains unless libraries are executable 18410 postinstall_cmds='chmod +x $lib' 18411 ;; 18412 18413sunos4*) 18414 version_type=sunos 18415 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18416 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18417 shlibpath_var=LD_LIBRARY_PATH 18418 shlibpath_overrides_runpath=yes 18419 if test yes = "$with_gnu_ld"; then 18420 need_lib_prefix=no 18421 fi 18422 need_version=yes 18423 ;; 18424 18425sysv4 | sysv4.3*) 18426 version_type=linux # correct to gnu/linux during the next big refactor 18427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18428 soname_spec='$libname$release$shared_ext$major' 18429 shlibpath_var=LD_LIBRARY_PATH 18430 case $host_vendor in 18431 sni) 18432 shlibpath_overrides_runpath=no 18433 need_lib_prefix=no 18434 runpath_var=LD_RUN_PATH 18435 ;; 18436 siemens) 18437 need_lib_prefix=no 18438 ;; 18439 motorola) 18440 need_lib_prefix=no 18441 need_version=no 18442 shlibpath_overrides_runpath=no 18443 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18444 ;; 18445 esac 18446 ;; 18447 18448sysv4*MP*) 18449 if test -d /usr/nec; then 18450 version_type=linux # correct to gnu/linux during the next big refactor 18451 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18452 soname_spec='$libname$shared_ext.$major' 18453 shlibpath_var=LD_LIBRARY_PATH 18454 fi 18455 ;; 18456 18457sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18458 version_type=sco 18459 need_lib_prefix=no 18460 need_version=no 18461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18462 soname_spec='$libname$release$shared_ext$major' 18463 shlibpath_var=LD_LIBRARY_PATH 18464 shlibpath_overrides_runpath=yes 18465 hardcode_into_libs=yes 18466 if test yes = "$with_gnu_ld"; then 18467 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18468 else 18469 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18470 case $host_os in 18471 sco3.2v5*) 18472 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18473 ;; 18474 esac 18475 fi 18476 sys_lib_dlsearch_path_spec='/usr/lib' 18477 ;; 18478 18479tpf*) 18480 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18481 version_type=linux # correct to gnu/linux during the next big refactor 18482 need_lib_prefix=no 18483 need_version=no 18484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18485 shlibpath_var=LD_LIBRARY_PATH 18486 shlibpath_overrides_runpath=no 18487 hardcode_into_libs=yes 18488 ;; 18489 18490uts4*) 18491 version_type=linux # correct to gnu/linux during the next big refactor 18492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18493 soname_spec='$libname$release$shared_ext$major' 18494 shlibpath_var=LD_LIBRARY_PATH 18495 ;; 18496 18497*) 18498 dynamic_linker=no 18499 ;; 18500esac 18501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18502printf "%s\n" "$dynamic_linker" >&6; } 18503test no = "$dynamic_linker" && can_build_shared=no 18504 18505variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18506if test yes = "$GCC"; then 18507 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18508fi 18509 18510if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18511 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18512fi 18513 18514if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18515 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18516fi 18517 18518# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18519configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18520 18521# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18522func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18523 18524# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18525configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18624printf %s "checking how to hardcode library paths into programs... " >&6; } 18625hardcode_action= 18626if test -n "$hardcode_libdir_flag_spec" || 18627 test -n "$runpath_var" || 18628 test yes = "$hardcode_automatic"; then 18629 18630 # We can hardcode non-existent directories. 18631 if test no != "$hardcode_direct" && 18632 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18633 # have to relink, otherwise we might link with an installed library 18634 # when we should be linking with a yet-to-be-installed one 18635 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18636 test no != "$hardcode_minus_L"; then 18637 # Linking always hardcodes the temporary library directory. 18638 hardcode_action=relink 18639 else 18640 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18641 hardcode_action=immediate 18642 fi 18643else 18644 # We cannot hardcode anything, or else we can only hardcode existing 18645 # directories. 18646 hardcode_action=unsupported 18647fi 18648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18649printf "%s\n" "$hardcode_action" >&6; } 18650 18651if test relink = "$hardcode_action" || 18652 test yes = "$inherit_rpath"; then 18653 # Fast installation is not supported 18654 enable_fast_install=no 18655elif test yes = "$shlibpath_overrides_runpath" || 18656 test no = "$enable_shared"; then 18657 # Fast installation is not necessary 18658 enable_fast_install=needless 18659fi 18660 18661 18662 18663 18664 18665 18666 if test yes != "$enable_dlopen"; then 18667 enable_dlopen=unknown 18668 enable_dlopen_self=unknown 18669 enable_dlopen_self_static=unknown 18670else 18671 lt_cv_dlopen=no 18672 lt_cv_dlopen_libs= 18673 18674 case $host_os in 18675 beos*) 18676 lt_cv_dlopen=load_add_on 18677 lt_cv_dlopen_libs= 18678 lt_cv_dlopen_self=yes 18679 ;; 18680 18681 mingw* | pw32* | cegcc*) 18682 lt_cv_dlopen=LoadLibrary 18683 lt_cv_dlopen_libs= 18684 ;; 18685 18686 cygwin*) 18687 lt_cv_dlopen=dlopen 18688 lt_cv_dlopen_libs= 18689 ;; 18690 18691 darwin*) 18692 # if libdl is installed we need to link against it 18693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18694printf %s "checking for dlopen in -ldl... " >&6; } 18695if test ${ac_cv_lib_dl_dlopen+y} 18696then : 18697 printf %s "(cached) " >&6 18698else $as_nop 18699 ac_check_lib_save_LIBS=$LIBS 18700LIBS="-ldl $LIBS" 18701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18702/* end confdefs.h. */ 18703 18704/* Override any GCC internal prototype to avoid an error. 18705 Use char because int might match the return type of a GCC 18706 builtin and then its argument prototype would still apply. */ 18707char dlopen (); 18708int 18709main (void) 18710{ 18711return dlopen (); 18712 ; 18713 return 0; 18714} 18715_ACEOF 18716if ac_fn_c_try_link "$LINENO" 18717then : 18718 ac_cv_lib_dl_dlopen=yes 18719else $as_nop 18720 ac_cv_lib_dl_dlopen=no 18721fi 18722rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18723 conftest$ac_exeext conftest.$ac_ext 18724LIBS=$ac_check_lib_save_LIBS 18725fi 18726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18727printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18728if test "x$ac_cv_lib_dl_dlopen" = xyes 18729then : 18730 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18731else $as_nop 18732 18733 lt_cv_dlopen=dyld 18734 lt_cv_dlopen_libs= 18735 lt_cv_dlopen_self=yes 18736 18737fi 18738 18739 ;; 18740 18741 tpf*) 18742 # Don't try to run any link tests for TPF. We know it's impossible 18743 # because TPF is a cross-compiler, and we know how we open DSOs. 18744 lt_cv_dlopen=dlopen 18745 lt_cv_dlopen_libs= 18746 lt_cv_dlopen_self=no 18747 ;; 18748 18749 *) 18750 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18751if test "x$ac_cv_func_shl_load" = xyes 18752then : 18753 lt_cv_dlopen=shl_load 18754else $as_nop 18755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18756printf %s "checking for shl_load in -ldld... " >&6; } 18757if test ${ac_cv_lib_dld_shl_load+y} 18758then : 18759 printf %s "(cached) " >&6 18760else $as_nop 18761 ac_check_lib_save_LIBS=$LIBS 18762LIBS="-ldld $LIBS" 18763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18764/* end confdefs.h. */ 18765 18766/* Override any GCC internal prototype to avoid an error. 18767 Use char because int might match the return type of a GCC 18768 builtin and then its argument prototype would still apply. */ 18769char shl_load (); 18770int 18771main (void) 18772{ 18773return shl_load (); 18774 ; 18775 return 0; 18776} 18777_ACEOF 18778if ac_fn_c_try_link "$LINENO" 18779then : 18780 ac_cv_lib_dld_shl_load=yes 18781else $as_nop 18782 ac_cv_lib_dld_shl_load=no 18783fi 18784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18785 conftest$ac_exeext conftest.$ac_ext 18786LIBS=$ac_check_lib_save_LIBS 18787fi 18788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18789printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18790if test "x$ac_cv_lib_dld_shl_load" = xyes 18791then : 18792 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18793else $as_nop 18794 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18795if test "x$ac_cv_func_dlopen" = xyes 18796then : 18797 lt_cv_dlopen=dlopen 18798else $as_nop 18799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18800printf %s "checking for dlopen in -ldl... " >&6; } 18801if test ${ac_cv_lib_dl_dlopen+y} 18802then : 18803 printf %s "(cached) " >&6 18804else $as_nop 18805 ac_check_lib_save_LIBS=$LIBS 18806LIBS="-ldl $LIBS" 18807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18808/* end confdefs.h. */ 18809 18810/* Override any GCC internal prototype to avoid an error. 18811 Use char because int might match the return type of a GCC 18812 builtin and then its argument prototype would still apply. */ 18813char dlopen (); 18814int 18815main (void) 18816{ 18817return dlopen (); 18818 ; 18819 return 0; 18820} 18821_ACEOF 18822if ac_fn_c_try_link "$LINENO" 18823then : 18824 ac_cv_lib_dl_dlopen=yes 18825else $as_nop 18826 ac_cv_lib_dl_dlopen=no 18827fi 18828rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18829 conftest$ac_exeext conftest.$ac_ext 18830LIBS=$ac_check_lib_save_LIBS 18831fi 18832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18833printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18834if test "x$ac_cv_lib_dl_dlopen" = xyes 18835then : 18836 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18837else $as_nop 18838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18839printf %s "checking for dlopen in -lsvld... " >&6; } 18840if test ${ac_cv_lib_svld_dlopen+y} 18841then : 18842 printf %s "(cached) " >&6 18843else $as_nop 18844 ac_check_lib_save_LIBS=$LIBS 18845LIBS="-lsvld $LIBS" 18846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18847/* end confdefs.h. */ 18848 18849/* Override any GCC internal prototype to avoid an error. 18850 Use char because int might match the return type of a GCC 18851 builtin and then its argument prototype would still apply. */ 18852char dlopen (); 18853int 18854main (void) 18855{ 18856return dlopen (); 18857 ; 18858 return 0; 18859} 18860_ACEOF 18861if ac_fn_c_try_link "$LINENO" 18862then : 18863 ac_cv_lib_svld_dlopen=yes 18864else $as_nop 18865 ac_cv_lib_svld_dlopen=no 18866fi 18867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18868 conftest$ac_exeext conftest.$ac_ext 18869LIBS=$ac_check_lib_save_LIBS 18870fi 18871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18872printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18873if test "x$ac_cv_lib_svld_dlopen" = xyes 18874then : 18875 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18876else $as_nop 18877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18878printf %s "checking for dld_link in -ldld... " >&6; } 18879if test ${ac_cv_lib_dld_dld_link+y} 18880then : 18881 printf %s "(cached) " >&6 18882else $as_nop 18883 ac_check_lib_save_LIBS=$LIBS 18884LIBS="-ldld $LIBS" 18885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18886/* end confdefs.h. */ 18887 18888/* Override any GCC internal prototype to avoid an error. 18889 Use char because int might match the return type of a GCC 18890 builtin and then its argument prototype would still apply. */ 18891char dld_link (); 18892int 18893main (void) 18894{ 18895return dld_link (); 18896 ; 18897 return 0; 18898} 18899_ACEOF 18900if ac_fn_c_try_link "$LINENO" 18901then : 18902 ac_cv_lib_dld_dld_link=yes 18903else $as_nop 18904 ac_cv_lib_dld_dld_link=no 18905fi 18906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18907 conftest$ac_exeext conftest.$ac_ext 18908LIBS=$ac_check_lib_save_LIBS 18909fi 18910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18911printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18912if test "x$ac_cv_lib_dld_dld_link" = xyes 18913then : 18914 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18915fi 18916 18917 18918fi 18919 18920 18921fi 18922 18923 18924fi 18925 18926 18927fi 18928 18929 18930fi 18931 18932 ;; 18933 esac 18934 18935 if test no = "$lt_cv_dlopen"; then 18936 enable_dlopen=no 18937 else 18938 enable_dlopen=yes 18939 fi 18940 18941 case $lt_cv_dlopen in 18942 dlopen) 18943 save_CPPFLAGS=$CPPFLAGS 18944 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18945 18946 save_LDFLAGS=$LDFLAGS 18947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18948 18949 save_LIBS=$LIBS 18950 LIBS="$lt_cv_dlopen_libs $LIBS" 18951 18952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18953printf %s "checking whether a program can dlopen itself... " >&6; } 18954if test ${lt_cv_dlopen_self+y} 18955then : 18956 printf %s "(cached) " >&6 18957else $as_nop 18958 if test yes = "$cross_compiling"; then : 18959 lt_cv_dlopen_self=cross 18960else 18961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18962 lt_status=$lt_dlunknown 18963 cat > conftest.$ac_ext <<_LT_EOF 18964#line $LINENO "configure" 18965#include "confdefs.h" 18966 18967#if HAVE_DLFCN_H 18968#include <dlfcn.h> 18969#endif 18970 18971#include <stdio.h> 18972 18973#ifdef RTLD_GLOBAL 18974# define LT_DLGLOBAL RTLD_GLOBAL 18975#else 18976# ifdef DL_GLOBAL 18977# define LT_DLGLOBAL DL_GLOBAL 18978# else 18979# define LT_DLGLOBAL 0 18980# endif 18981#endif 18982 18983/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18984 find out it does not work in some platform. */ 18985#ifndef LT_DLLAZY_OR_NOW 18986# ifdef RTLD_LAZY 18987# define LT_DLLAZY_OR_NOW RTLD_LAZY 18988# else 18989# ifdef DL_LAZY 18990# define LT_DLLAZY_OR_NOW DL_LAZY 18991# else 18992# ifdef RTLD_NOW 18993# define LT_DLLAZY_OR_NOW RTLD_NOW 18994# else 18995# ifdef DL_NOW 18996# define LT_DLLAZY_OR_NOW DL_NOW 18997# else 18998# define LT_DLLAZY_OR_NOW 0 18999# endif 19000# endif 19001# endif 19002# endif 19003#endif 19004 19005/* When -fvisibility=hidden is used, assume the code has been annotated 19006 correspondingly for the symbols needed. */ 19007#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19008int fnord () __attribute__((visibility("default"))); 19009#endif 19010 19011int fnord () { return 42; } 19012int main () 19013{ 19014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19015 int status = $lt_dlunknown; 19016 19017 if (self) 19018 { 19019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19020 else 19021 { 19022 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19023 else puts (dlerror ()); 19024 } 19025 /* dlclose (self); */ 19026 } 19027 else 19028 puts (dlerror ()); 19029 19030 return status; 19031} 19032_LT_EOF 19033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19034 (eval $ac_link) 2>&5 19035 ac_status=$? 19036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19037 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19038 (./conftest; exit; ) >&5 2>/dev/null 19039 lt_status=$? 19040 case x$lt_status in 19041 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19042 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19043 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19044 esac 19045 else : 19046 # compilation failed 19047 lt_cv_dlopen_self=no 19048 fi 19049fi 19050rm -fr conftest* 19051 19052 19053fi 19054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19055printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19056 19057 if test yes = "$lt_cv_dlopen_self"; then 19058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19060printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19061if test ${lt_cv_dlopen_self_static+y} 19062then : 19063 printf %s "(cached) " >&6 19064else $as_nop 19065 if test yes = "$cross_compiling"; then : 19066 lt_cv_dlopen_self_static=cross 19067else 19068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19069 lt_status=$lt_dlunknown 19070 cat > conftest.$ac_ext <<_LT_EOF 19071#line $LINENO "configure" 19072#include "confdefs.h" 19073 19074#if HAVE_DLFCN_H 19075#include <dlfcn.h> 19076#endif 19077 19078#include <stdio.h> 19079 19080#ifdef RTLD_GLOBAL 19081# define LT_DLGLOBAL RTLD_GLOBAL 19082#else 19083# ifdef DL_GLOBAL 19084# define LT_DLGLOBAL DL_GLOBAL 19085# else 19086# define LT_DLGLOBAL 0 19087# endif 19088#endif 19089 19090/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19091 find out it does not work in some platform. */ 19092#ifndef LT_DLLAZY_OR_NOW 19093# ifdef RTLD_LAZY 19094# define LT_DLLAZY_OR_NOW RTLD_LAZY 19095# else 19096# ifdef DL_LAZY 19097# define LT_DLLAZY_OR_NOW DL_LAZY 19098# else 19099# ifdef RTLD_NOW 19100# define LT_DLLAZY_OR_NOW RTLD_NOW 19101# else 19102# ifdef DL_NOW 19103# define LT_DLLAZY_OR_NOW DL_NOW 19104# else 19105# define LT_DLLAZY_OR_NOW 0 19106# endif 19107# endif 19108# endif 19109# endif 19110#endif 19111 19112/* When -fvisibility=hidden is used, assume the code has been annotated 19113 correspondingly for the symbols needed. */ 19114#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19115int fnord () __attribute__((visibility("default"))); 19116#endif 19117 19118int fnord () { return 42; } 19119int main () 19120{ 19121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19122 int status = $lt_dlunknown; 19123 19124 if (self) 19125 { 19126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19127 else 19128 { 19129 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19130 else puts (dlerror ()); 19131 } 19132 /* dlclose (self); */ 19133 } 19134 else 19135 puts (dlerror ()); 19136 19137 return status; 19138} 19139_LT_EOF 19140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19141 (eval $ac_link) 2>&5 19142 ac_status=$? 19143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19144 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19145 (./conftest; exit; ) >&5 2>/dev/null 19146 lt_status=$? 19147 case x$lt_status in 19148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19150 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19151 esac 19152 else : 19153 # compilation failed 19154 lt_cv_dlopen_self_static=no 19155 fi 19156fi 19157rm -fr conftest* 19158 19159 19160fi 19161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19162printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19163 fi 19164 19165 CPPFLAGS=$save_CPPFLAGS 19166 LDFLAGS=$save_LDFLAGS 19167 LIBS=$save_LIBS 19168 ;; 19169 esac 19170 19171 case $lt_cv_dlopen_self in 19172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19173 *) enable_dlopen_self=unknown ;; 19174 esac 19175 19176 case $lt_cv_dlopen_self_static in 19177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19178 *) enable_dlopen_self_static=unknown ;; 19179 esac 19180fi 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198striplib= 19199old_striplib= 19200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19201printf %s "checking whether stripping libraries is possible... " >&6; } 19202if test -z "$STRIP"; then 19203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19204printf "%s\n" "no" >&6; } 19205else 19206 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19207 old_striplib="$STRIP --strip-debug" 19208 striplib="$STRIP --strip-unneeded" 19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19210printf "%s\n" "yes" >&6; } 19211 else 19212 case $host_os in 19213 darwin*) 19214 # FIXME - insert some real tests, host_os isn't really good enough 19215 striplib="$STRIP -x" 19216 old_striplib="$STRIP -S" 19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19218printf "%s\n" "yes" >&6; } 19219 ;; 19220 freebsd*) 19221 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19222 old_striplib="$STRIP --strip-debug" 19223 striplib="$STRIP --strip-unneeded" 19224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19225printf "%s\n" "yes" >&6; } 19226 else 19227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19228printf "%s\n" "no" >&6; } 19229 fi 19230 ;; 19231 *) 19232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19233printf "%s\n" "no" >&6; } 19234 ;; 19235 esac 19236 fi 19237fi 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 # Report what library types will actually be built 19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19252printf %s "checking if libtool supports shared libraries... " >&6; } 19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19254printf "%s\n" "$can_build_shared" >&6; } 19255 19256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19257printf %s "checking whether to build shared libraries... " >&6; } 19258 test no = "$can_build_shared" && enable_shared=no 19259 19260 # On AIX, shared libraries and static libraries use the same namespace, and 19261 # are all built from PIC. 19262 case $host_os in 19263 aix3*) 19264 test yes = "$enable_shared" && enable_static=no 19265 if test -n "$RANLIB"; then 19266 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19267 postinstall_cmds='$RANLIB $lib' 19268 fi 19269 ;; 19270 19271 aix[4-9]*) 19272 if test ia64 != "$host_cpu"; then 19273 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19274 yes,aix,yes) ;; # shared object as lib.so file only 19275 yes,svr4,*) ;; # shared object as lib.so archive member only 19276 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19277 esac 19278 fi 19279 ;; 19280 esac 19281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19282printf "%s\n" "$enable_shared" >&6; } 19283 19284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19285printf %s "checking whether to build static libraries... " >&6; } 19286 # Make sure either enable_shared or enable_static is yes. 19287 test yes = "$enable_shared" || enable_static=yes 19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19289printf "%s\n" "$enable_static" >&6; } 19290 19291 19292 19293 19294fi 19295ac_ext=c 19296ac_cpp='$CPP $CPPFLAGS' 19297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19299ac_compiler_gnu=$ac_cv_c_compiler_gnu 19300 19301CC=$lt_save_CC 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 ac_config_commands="$ac_config_commands libtool" 19318 19319 19320 19321 19322# Only expand once: 19323 19324 19325 19326 19327 19328# Define a configure option for an alternate module directory 19329 19330# Check whether --with-xorg-module-dir was given. 19331if test ${with_xorg_module_dir+y} 19332then : 19333 withval=$with_xorg_module_dir; moduledir="$withval" 19334else $as_nop 19335 moduledir="$libdir/xorg/modules" 19336fi 19337 19338 19339# Store the list of server defined optional extensions in REQUIRED_MODULES 19340 19341 19342 SAVE_CFLAGS="$CFLAGS" 19343 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19345/* end confdefs.h. */ 19346 19347#include "xorg-server.h" 19348#if !defined RANDR 19349#error RANDR not defined 19350#endif 19351 19352int 19353main (void) 19354{ 19355 19356 ; 19357 return 0; 19358} 19359_ACEOF 19360if ac_fn_c_try_compile "$LINENO" 19361then : 19362 _EXT_CHECK=yes 19363else $as_nop 19364 _EXT_CHECK=no 19365fi 19366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19367 CFLAGS="$SAVE_CFLAGS" 19368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19369printf %s "checking if RANDR is defined... " >&6; } 19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19371printf "%s\n" "$_EXT_CHECK" >&6; } 19372 if test "$_EXT_CHECK" != no; then 19373 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19374 fi 19375 19376 19377 19378 SAVE_CFLAGS="$CFLAGS" 19379 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19381/* end confdefs.h. */ 19382 19383#include "xorg-server.h" 19384#if !defined RENDER 19385#error RENDER not defined 19386#endif 19387 19388int 19389main (void) 19390{ 19391 19392 ; 19393 return 0; 19394} 19395_ACEOF 19396if ac_fn_c_try_compile "$LINENO" 19397then : 19398 _EXT_CHECK=yes 19399else $as_nop 19400 _EXT_CHECK=no 19401fi 19402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19403 CFLAGS="$SAVE_CFLAGS" 19404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19405printf %s "checking if RENDER is defined... " >&6; } 19406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19407printf "%s\n" "$_EXT_CHECK" >&6; } 19408 if test "$_EXT_CHECK" != no; then 19409 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19410 fi 19411 19412 19413 19414 SAVE_CFLAGS="$CFLAGS" 19415 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19417/* end confdefs.h. */ 19418 19419#include "xorg-server.h" 19420#if !defined XV 19421#error XV not defined 19422#endif 19423 19424int 19425main (void) 19426{ 19427 19428 ; 19429 return 0; 19430} 19431_ACEOF 19432if ac_fn_c_try_compile "$LINENO" 19433then : 19434 _EXT_CHECK=yes 19435else $as_nop 19436 _EXT_CHECK=no 19437fi 19438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19439 CFLAGS="$SAVE_CFLAGS" 19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19441printf %s "checking if XV is defined... " >&6; } 19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19443printf "%s\n" "$_EXT_CHECK" >&6; } 19444 if test "$_EXT_CHECK" != no; then 19445 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19446 fi 19447 19448 19449 19450 SAVE_CFLAGS="$CFLAGS" 19451 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19453/* end confdefs.h. */ 19454 19455#include "xorg-server.h" 19456#if !defined DPMSExtension 19457#error DPMSExtension not defined 19458#endif 19459 19460int 19461main (void) 19462{ 19463 19464 ; 19465 return 0; 19466} 19467_ACEOF 19468if ac_fn_c_try_compile "$LINENO" 19469then : 19470 _EXT_CHECK=yes 19471else $as_nop 19472 _EXT_CHECK=no 19473fi 19474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19475 CFLAGS="$SAVE_CFLAGS" 19476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19477printf %s "checking if DPMSExtension is defined... " >&6; } 19478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19479printf "%s\n" "$_EXT_CHECK" >&6; } 19480 if test "$_EXT_CHECK" != no; then 19481 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19482 fi 19483 19484 19485# Obtain compiler/linker options for the driver dependencies 19486 19487pkg_failed=no 19488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19489printf %s "checking for XORG... " >&6; } 19490 19491if test -n "$XORG_CFLAGS"; then 19492 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19493 elif test -n "$PKG_CONFIG"; then 19494 if test -n "$PKG_CONFIG" && \ 19495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19496 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5 19497 ac_status=$? 19498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19499 test $ac_status = 0; }; then 19500 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19501 test "x$?" != "x0" && pkg_failed=yes 19502else 19503 pkg_failed=yes 19504fi 19505 else 19506 pkg_failed=untried 19507fi 19508if test -n "$XORG_LIBS"; then 19509 pkg_cv_XORG_LIBS="$XORG_LIBS" 19510 elif test -n "$PKG_CONFIG"; then 19511 if test -n "$PKG_CONFIG" && \ 19512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19513 ($PKG_CONFIG --exists --print-errors "xorg-server xproto fontsproto $REQUIRED_MODULES") 2>&5 19514 ac_status=$? 19515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19516 test $ac_status = 0; }; then 19517 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19518 test "x$?" != "x0" && pkg_failed=yes 19519else 19520 pkg_failed=yes 19521fi 19522 else 19523 pkg_failed=untried 19524fi 19525 19526 19527 19528if test $pkg_failed = yes; then 19529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19530printf "%s\n" "no" >&6; } 19531 19532if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19533 _pkg_short_errors_supported=yes 19534else 19535 _pkg_short_errors_supported=no 19536fi 19537 if test $_pkg_short_errors_supported = yes; then 19538 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1` 19539 else 19540 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server xproto fontsproto $REQUIRED_MODULES" 2>&1` 19541 fi 19542 # Put the nasty error message in config.log where it belongs 19543 echo "$XORG_PKG_ERRORS" >&5 19544 19545 as_fn_error $? "Package requirements (xorg-server xproto fontsproto $REQUIRED_MODULES) were not met: 19546 19547$XORG_PKG_ERRORS 19548 19549Consider adjusting the PKG_CONFIG_PATH environment variable if you 19550installed software in a non-standard prefix. 19551 19552Alternatively, you may set the environment variables XORG_CFLAGS 19553and XORG_LIBS to avoid the need to call pkg-config. 19554See the pkg-config man page for more details." "$LINENO" 5 19555elif test $pkg_failed = untried; then 19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19557printf "%s\n" "no" >&6; } 19558 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19559printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19560as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19561is in your PATH or set the PKG_CONFIG environment variable to the full 19562path to pkg-config. 19563 19564Alternatively, you may set the environment variables XORG_CFLAGS 19565and XORG_LIBS to avoid the need to call pkg-config. 19566See the pkg-config man page for more details. 19567 19568To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19569See \`config.log' for more details" "$LINENO" 5; } 19570else 19571 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19572 XORG_LIBS=$pkg_cv_XORG_LIBS 19573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19574printf "%s\n" "yes" >&6; } 19575 19576fi 19577 19578# Checks for libraries. 19579SAVE_CPPFLAGS="$CPPFLAGS" 19580CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19581ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19582" "$ac_c_undeclared_builtin_options" "CFLAGS" 19583if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19584then : 19585 XSERVER_LIBPCIACCESS=yes 19586else $as_nop 19587 XSERVER_LIBPCIACCESS=no 19588fi 19589ac_fn_c_check_header_compile "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default" 19590if test "x$ac_cv_header_xf1bpp_h" = xyes 19591then : 19592 19593printf "%s\n" "#define HAVE_XF1BPP 1" >>confdefs.h 19594 19595fi 19596 19597ac_fn_c_check_header_compile "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default" 19598if test "x$ac_cv_header_xf4bpp_h" = xyes 19599then : 19600 19601printf "%s\n" "#define HAVE_XF4BPP 1" >>confdefs.h 19602 19603fi 19604 19605CPPFLAGS="$SAVE_CPPFLAGS" 19606 19607if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19608 19609pkg_failed=no 19610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19611printf %s "checking for PCIACCESS... " >&6; } 19612 19613if test -n "$PCIACCESS_CFLAGS"; then 19614 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19615 elif test -n "$PKG_CONFIG"; then 19616 if test -n "$PKG_CONFIG" && \ 19617 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19618 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19619 ac_status=$? 19620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19621 test $ac_status = 0; }; then 19622 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19623 test "x$?" != "x0" && pkg_failed=yes 19624else 19625 pkg_failed=yes 19626fi 19627 else 19628 pkg_failed=untried 19629fi 19630if test -n "$PCIACCESS_LIBS"; then 19631 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19632 elif test -n "$PKG_CONFIG"; then 19633 if test -n "$PKG_CONFIG" && \ 19634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19635 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19636 ac_status=$? 19637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19638 test $ac_status = 0; }; then 19639 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19640 test "x$?" != "x0" && pkg_failed=yes 19641else 19642 pkg_failed=yes 19643fi 19644 else 19645 pkg_failed=untried 19646fi 19647 19648 19649 19650if test $pkg_failed = yes; then 19651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19652printf "%s\n" "no" >&6; } 19653 19654if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19655 _pkg_short_errors_supported=yes 19656else 19657 _pkg_short_errors_supported=no 19658fi 19659 if test $_pkg_short_errors_supported = yes; then 19660 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19661 else 19662 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19663 fi 19664 # Put the nasty error message in config.log where it belongs 19665 echo "$PCIACCESS_PKG_ERRORS" >&5 19666 19667 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19668 19669$PCIACCESS_PKG_ERRORS 19670 19671Consider adjusting the PKG_CONFIG_PATH environment variable if you 19672installed software in a non-standard prefix. 19673 19674Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19675and PCIACCESS_LIBS to avoid the need to call pkg-config. 19676See the pkg-config man page for more details." "$LINENO" 5 19677elif test $pkg_failed = untried; then 19678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19679printf "%s\n" "no" >&6; } 19680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19681printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19682as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19683is in your PATH or set the PKG_CONFIG environment variable to the full 19684path to pkg-config. 19685 19686Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19687and PCIACCESS_LIBS to avoid the need to call pkg-config. 19688See the pkg-config man page for more details. 19689 19690To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19691See \`config.log' for more details" "$LINENO" 5; } 19692else 19693 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19694 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19696printf "%s\n" "yes" >&6; } 19697 19698fi 19699 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 19700fi 19701 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19702 XSERVER_LIBPCIACCESS_TRUE= 19703 XSERVER_LIBPCIACCESS_FALSE='#' 19704else 19705 XSERVER_LIBPCIACCESS_TRUE='#' 19706 XSERVER_LIBPCIACCESS_FALSE= 19707fi 19708 19709 19710 19711# Check whether --enable-xaa was given. 19712if test ${enable_xaa+y} 19713then : 19714 enableval=$enable_xaa; XAA="$enableval" 19715else $as_nop 19716 XAA=auto 19717fi 19718 19719if test "x$XAA" != xno; then 19720 save_CFLAGS=$CFLAGS 19721 save_CPPFLAGS=$CPPFLAGS 19722 CFLAGS=$XORG_CFLAGS 19723 CPPFLAGS="$XORG_CFLAGS" 19724 for ac_header in xaa.h 19725do : 19726 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19727if test "x$ac_cv_header_xaa_h" = xyes 19728then : 19729 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19730 XAA=yes 19731else $as_nop 19732 XAA=no 19733fi 19734 19735done 19736 CFLAGS=$save_CFLAGS 19737 CPPFLAGS=$save_CPPFLAGS 19738fi 19739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19740printf %s "checking whether to include XAA support... " >&6; } 19741 if test "x$XAA" = xyes; then 19742 XAA_TRUE= 19743 XAA_FALSE='#' 19744else 19745 XAA_TRUE='#' 19746 XAA_FALSE= 19747fi 19748 19749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19750printf "%s\n" "$XAA" >&6; } 19751 19752# Required by exa.h 19753 19754printf "%s\n" "#define EXA_DRIVER_KNOWN_MAJOR 3" >>confdefs.h 19755 19756 19757 19758 19759 19760DRIVER_NAME=i128 19761 19762 19763ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19764 19765cat >confcache <<\_ACEOF 19766# This file is a shell script that caches the results of configure 19767# tests run on this system so they can be shared between configure 19768# scripts and configure runs, see configure's option --config-cache. 19769# It is not useful on other systems. If it contains results you don't 19770# want to keep, you may remove or edit it. 19771# 19772# config.status only pays attention to the cache file if you give it 19773# the --recheck option to rerun configure. 19774# 19775# `ac_cv_env_foo' variables (set or unset) will be overridden when 19776# loading this file, other *unset* `ac_cv_foo' will be assigned the 19777# following values. 19778 19779_ACEOF 19780 19781# The following way of writing the cache mishandles newlines in values, 19782# but we know of no workaround that is simple, portable, and efficient. 19783# So, we kill variables containing newlines. 19784# Ultrix sh set writes to stderr and can't be redirected directly, 19785# and sets the high bit in the cache file unless we assign to the vars. 19786( 19787 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19788 eval ac_val=\$$ac_var 19789 case $ac_val in #( 19790 *${as_nl}*) 19791 case $ac_var in #( 19792 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19793printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19794 esac 19795 case $ac_var in #( 19796 _ | IFS | as_nl) ;; #( 19797 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19798 *) { eval $ac_var=; unset $ac_var;} ;; 19799 esac ;; 19800 esac 19801 done 19802 19803 (set) 2>&1 | 19804 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19805 *${as_nl}ac_space=\ *) 19806 # `set' does not quote correctly, so add quotes: double-quote 19807 # substitution turns \\\\ into \\, and sed turns \\ into \. 19808 sed -n \ 19809 "s/'/'\\\\''/g; 19810 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19811 ;; #( 19812 *) 19813 # `set' quotes correctly as required by POSIX, so do not add quotes. 19814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19815 ;; 19816 esac | 19817 sort 19818) | 19819 sed ' 19820 /^ac_cv_env_/b end 19821 t clear 19822 :clear 19823 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19824 t end 19825 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19826 :end' >>confcache 19827if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19828 if test -w "$cache_file"; then 19829 if test "x$cache_file" != "x/dev/null"; then 19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19831printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19832 if test ! -f "$cache_file" || test -h "$cache_file"; then 19833 cat confcache >"$cache_file" 19834 else 19835 case $cache_file in #( 19836 */* | ?:*) 19837 mv -f confcache "$cache_file"$$ && 19838 mv -f "$cache_file"$$ "$cache_file" ;; #( 19839 *) 19840 mv -f confcache "$cache_file" ;; 19841 esac 19842 fi 19843 fi 19844 else 19845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19846printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19847 fi 19848fi 19849rm -f confcache 19850 19851test "x$prefix" = xNONE && prefix=$ac_default_prefix 19852# Let make expand exec_prefix. 19853test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19854 19855DEFS=-DHAVE_CONFIG_H 19856 19857ac_libobjs= 19858ac_ltlibobjs= 19859U= 19860for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19861 # 1. Remove the extension, and $U if already installed. 19862 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19863 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19864 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19865 # will be set to the directory where LIBOBJS objects are built. 19866 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19867 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19868done 19869LIBOBJS=$ac_libobjs 19870 19871LTLIBOBJS=$ac_ltlibobjs 19872 19873 19874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19875printf %s "checking that generated files are newer than configure... " >&6; } 19876 if test -n "$am_sleep_pid"; then 19877 # Hide warnings about reused PIDs. 19878 wait $am_sleep_pid 2>/dev/null 19879 fi 19880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19881printf "%s\n" "done" >&6; } 19882 if test -n "$EXEEXT"; then 19883 am__EXEEXT_TRUE= 19884 am__EXEEXT_FALSE='#' 19885else 19886 am__EXEEXT_TRUE='#' 19887 am__EXEEXT_FALSE= 19888fi 19889 19890if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19891 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19892Usually this means the macro was only invoked conditionally." "$LINENO" 5 19893fi 19894if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19895 as_fn_error $? "conditional \"AMDEP\" was never defined. 19896Usually this means the macro was only invoked conditionally." "$LINENO" 5 19897fi 19898if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19899 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19900Usually this means the macro was only invoked conditionally." "$LINENO" 5 19901fi 19902if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19903 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19904Usually this means the macro was only invoked conditionally." "$LINENO" 5 19905fi 19906if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19907 as_fn_error $? "conditional \"XAA\" was never defined. 19908Usually this means the macro was only invoked conditionally." "$LINENO" 5 19909fi 19910 19911: "${CONFIG_STATUS=./config.status}" 19912ac_write_fail=0 19913ac_clean_files_save=$ac_clean_files 19914ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19916printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19917as_write_fail=0 19918cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19919#! $SHELL 19920# Generated by $as_me. 19921# Run this file to recreate the current configuration. 19922# Compiler output produced by configure, useful for debugging 19923# configure, is in config.log if it exists. 19924 19925debug=false 19926ac_cs_recheck=false 19927ac_cs_silent=false 19928 19929SHELL=\${CONFIG_SHELL-$SHELL} 19930export SHELL 19931_ASEOF 19932cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19933## -------------------- ## 19934## M4sh Initialization. ## 19935## -------------------- ## 19936 19937# Be more Bourne compatible 19938DUALCASE=1; export DUALCASE # for MKS sh 19939as_nop=: 19940if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19941then : 19942 emulate sh 19943 NULLCMD=: 19944 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19945 # is contrary to our usage. Disable this feature. 19946 alias -g '${1+"$@"}'='"$@"' 19947 setopt NO_GLOB_SUBST 19948else $as_nop 19949 case `(set -o) 2>/dev/null` in #( 19950 *posix*) : 19951 set -o posix ;; #( 19952 *) : 19953 ;; 19954esac 19955fi 19956 19957 19958 19959# Reset variables that may have inherited troublesome values from 19960# the environment. 19961 19962# IFS needs to be set, to space, tab, and newline, in precisely that order. 19963# (If _AS_PATH_WALK were called with IFS unset, it would have the 19964# side effect of setting IFS to empty, thus disabling word splitting.) 19965# Quoting is to prevent editors from complaining about space-tab. 19966as_nl=' 19967' 19968export as_nl 19969IFS=" "" $as_nl" 19970 19971PS1='$ ' 19972PS2='> ' 19973PS4='+ ' 19974 19975# Ensure predictable behavior from utilities with locale-dependent output. 19976LC_ALL=C 19977export LC_ALL 19978LANGUAGE=C 19979export LANGUAGE 19980 19981# We cannot yet rely on "unset" to work, but we need these variables 19982# to be unset--not just set to an empty or harmless value--now, to 19983# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19984# also avoids known problems related to "unset" and subshell syntax 19985# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19986for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19987do eval test \${$as_var+y} \ 19988 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19989done 19990 19991# Ensure that fds 0, 1, and 2 are open. 19992if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19993if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19994if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19995 19996# The user is always right. 19997if ${PATH_SEPARATOR+false} :; then 19998 PATH_SEPARATOR=: 19999 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20000 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20001 PATH_SEPARATOR=';' 20002 } 20003fi 20004 20005 20006# Find who we are. Look in the path if we contain no directory separator. 20007as_myself= 20008case $0 in #(( 20009 *[\\/]* ) as_myself=$0 ;; 20010 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20011for as_dir in $PATH 20012do 20013 IFS=$as_save_IFS 20014 case $as_dir in #((( 20015 '') as_dir=./ ;; 20016 */) ;; 20017 *) as_dir=$as_dir/ ;; 20018 esac 20019 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20020 done 20021IFS=$as_save_IFS 20022 20023 ;; 20024esac 20025# We did not find ourselves, most probably we were run as `sh COMMAND' 20026# in which case we are not to be found in the path. 20027if test "x$as_myself" = x; then 20028 as_myself=$0 20029fi 20030if test ! -f "$as_myself"; then 20031 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20032 exit 1 20033fi 20034 20035 20036 20037# as_fn_error STATUS ERROR [LINENO LOG_FD] 20038# ---------------------------------------- 20039# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20040# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20041# script with STATUS, using 1 if that was 0. 20042as_fn_error () 20043{ 20044 as_status=$1; test $as_status -eq 0 && as_status=1 20045 if test "$4"; then 20046 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20048 fi 20049 printf "%s\n" "$as_me: error: $2" >&2 20050 as_fn_exit $as_status 20051} # as_fn_error 20052 20053 20054 20055# as_fn_set_status STATUS 20056# ----------------------- 20057# Set $? to STATUS, without forking. 20058as_fn_set_status () 20059{ 20060 return $1 20061} # as_fn_set_status 20062 20063# as_fn_exit STATUS 20064# ----------------- 20065# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20066as_fn_exit () 20067{ 20068 set +e 20069 as_fn_set_status $1 20070 exit $1 20071} # as_fn_exit 20072 20073# as_fn_unset VAR 20074# --------------- 20075# Portably unset VAR. 20076as_fn_unset () 20077{ 20078 { eval $1=; unset $1;} 20079} 20080as_unset=as_fn_unset 20081 20082# as_fn_append VAR VALUE 20083# ---------------------- 20084# Append the text in VALUE to the end of the definition contained in VAR. Take 20085# advantage of any shell optimizations that allow amortized linear growth over 20086# repeated appends, instead of the typical quadratic growth present in naive 20087# implementations. 20088if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20089then : 20090 eval 'as_fn_append () 20091 { 20092 eval $1+=\$2 20093 }' 20094else $as_nop 20095 as_fn_append () 20096 { 20097 eval $1=\$$1\$2 20098 } 20099fi # as_fn_append 20100 20101# as_fn_arith ARG... 20102# ------------------ 20103# Perform arithmetic evaluation on the ARGs, and store the result in the 20104# global $as_val. Take advantage of shells that can avoid forks. The arguments 20105# must be portable across $(()) and expr. 20106if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20107then : 20108 eval 'as_fn_arith () 20109 { 20110 as_val=$(( $* )) 20111 }' 20112else $as_nop 20113 as_fn_arith () 20114 { 20115 as_val=`expr "$@" || test $? -eq 1` 20116 } 20117fi # as_fn_arith 20118 20119 20120if expr a : '\(a\)' >/dev/null 2>&1 && 20121 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20122 as_expr=expr 20123else 20124 as_expr=false 20125fi 20126 20127if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20128 as_basename=basename 20129else 20130 as_basename=false 20131fi 20132 20133if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20134 as_dirname=dirname 20135else 20136 as_dirname=false 20137fi 20138 20139as_me=`$as_basename -- "$0" || 20140$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20141 X"$0" : 'X\(//\)$' \| \ 20142 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20143printf "%s\n" X/"$0" | 20144 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20145 s//\1/ 20146 q 20147 } 20148 /^X\/\(\/\/\)$/{ 20149 s//\1/ 20150 q 20151 } 20152 /^X\/\(\/\).*/{ 20153 s//\1/ 20154 q 20155 } 20156 s/.*/./; q'` 20157 20158# Avoid depending upon Character Ranges. 20159as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20160as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20161as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20162as_cr_digits='0123456789' 20163as_cr_alnum=$as_cr_Letters$as_cr_digits 20164 20165 20166# Determine whether it's possible to make 'echo' print without a newline. 20167# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20168# for compatibility with existing Makefiles. 20169ECHO_C= ECHO_N= ECHO_T= 20170case `echo -n x` in #((((( 20171-n*) 20172 case `echo 'xy\c'` in 20173 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20174 xy) ECHO_C='\c';; 20175 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20176 ECHO_T=' ';; 20177 esac;; 20178*) 20179 ECHO_N='-n';; 20180esac 20181 20182# For backward compatibility with old third-party macros, we provide 20183# the shell variables $as_echo and $as_echo_n. New code should use 20184# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20185as_echo='printf %s\n' 20186as_echo_n='printf %s' 20187 20188rm -f conf$$ conf$$.exe conf$$.file 20189if test -d conf$$.dir; then 20190 rm -f conf$$.dir/conf$$.file 20191else 20192 rm -f conf$$.dir 20193 mkdir conf$$.dir 2>/dev/null 20194fi 20195if (echo >conf$$.file) 2>/dev/null; then 20196 if ln -s conf$$.file conf$$ 2>/dev/null; then 20197 as_ln_s='ln -s' 20198 # ... but there are two gotchas: 20199 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20200 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20201 # In both cases, we have to default to `cp -pR'. 20202 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20203 as_ln_s='cp -pR' 20204 elif ln conf$$.file conf$$ 2>/dev/null; then 20205 as_ln_s=ln 20206 else 20207 as_ln_s='cp -pR' 20208 fi 20209else 20210 as_ln_s='cp -pR' 20211fi 20212rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20213rmdir conf$$.dir 2>/dev/null 20214 20215 20216# as_fn_mkdir_p 20217# ------------- 20218# Create "$as_dir" as a directory, including parents if necessary. 20219as_fn_mkdir_p () 20220{ 20221 20222 case $as_dir in #( 20223 -*) as_dir=./$as_dir;; 20224 esac 20225 test -d "$as_dir" || eval $as_mkdir_p || { 20226 as_dirs= 20227 while :; do 20228 case $as_dir in #( 20229 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20230 *) as_qdir=$as_dir;; 20231 esac 20232 as_dirs="'$as_qdir' $as_dirs" 20233 as_dir=`$as_dirname -- "$as_dir" || 20234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20235 X"$as_dir" : 'X\(//\)[^/]' \| \ 20236 X"$as_dir" : 'X\(//\)$' \| \ 20237 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20238printf "%s\n" X"$as_dir" | 20239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20240 s//\1/ 20241 q 20242 } 20243 /^X\(\/\/\)[^/].*/{ 20244 s//\1/ 20245 q 20246 } 20247 /^X\(\/\/\)$/{ 20248 s//\1/ 20249 q 20250 } 20251 /^X\(\/\).*/{ 20252 s//\1/ 20253 q 20254 } 20255 s/.*/./; q'` 20256 test -d "$as_dir" && break 20257 done 20258 test -z "$as_dirs" || eval "mkdir $as_dirs" 20259 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20260 20261 20262} # as_fn_mkdir_p 20263if mkdir -p . 2>/dev/null; then 20264 as_mkdir_p='mkdir -p "$as_dir"' 20265else 20266 test -d ./-p && rmdir ./-p 20267 as_mkdir_p=false 20268fi 20269 20270 20271# as_fn_executable_p FILE 20272# ----------------------- 20273# Test if FILE is an executable regular file. 20274as_fn_executable_p () 20275{ 20276 test -f "$1" && test -x "$1" 20277} # as_fn_executable_p 20278as_test_x='test -x' 20279as_executable_p=as_fn_executable_p 20280 20281# Sed expression to map a string onto a valid CPP name. 20282as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20283 20284# Sed expression to map a string onto a valid variable name. 20285as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20286 20287 20288exec 6>&1 20289## ----------------------------------- ## 20290## Main body of $CONFIG_STATUS script. ## 20291## ----------------------------------- ## 20292_ASEOF 20293test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20294 20295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20296# Save the log message, to keep $0 and so on meaningful, and to 20297# report actual input values of CONFIG_FILES etc. instead of their 20298# values after options handling. 20299ac_log=" 20300This file was extended by xf86-video-i128 $as_me 1.4.1, which was 20301generated by GNU Autoconf 2.71. Invocation command line was 20302 20303 CONFIG_FILES = $CONFIG_FILES 20304 CONFIG_HEADERS = $CONFIG_HEADERS 20305 CONFIG_LINKS = $CONFIG_LINKS 20306 CONFIG_COMMANDS = $CONFIG_COMMANDS 20307 $ $0 $@ 20308 20309on `(hostname || uname -n) 2>/dev/null | sed 1q` 20310" 20311 20312_ACEOF 20313 20314case $ac_config_files in *" 20315"*) set x $ac_config_files; shift; ac_config_files=$*;; 20316esac 20317 20318case $ac_config_headers in *" 20319"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20320esac 20321 20322 20323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20324# Files that config.status was made for. 20325config_files="$ac_config_files" 20326config_headers="$ac_config_headers" 20327config_commands="$ac_config_commands" 20328 20329_ACEOF 20330 20331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20332ac_cs_usage="\ 20333\`$as_me' instantiates files and other configuration actions 20334from templates according to the current configuration. Unless the files 20335and actions are specified as TAGs, all are instantiated by default. 20336 20337Usage: $0 [OPTION]... [TAG]... 20338 20339 -h, --help print this help, then exit 20340 -V, --version print version number and configuration settings, then exit 20341 --config print configuration, then exit 20342 -q, --quiet, --silent 20343 do not print progress messages 20344 -d, --debug don't remove temporary files 20345 --recheck update $as_me by reconfiguring in the same conditions 20346 --file=FILE[:TEMPLATE] 20347 instantiate the configuration file FILE 20348 --header=FILE[:TEMPLATE] 20349 instantiate the configuration header FILE 20350 20351Configuration files: 20352$config_files 20353 20354Configuration headers: 20355$config_headers 20356 20357Configuration commands: 20358$config_commands 20359 20360Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-i128/-/issues>." 20361 20362_ACEOF 20363ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20364ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20366ac_cs_config='$ac_cs_config_escaped' 20367ac_cs_version="\\ 20368xf86-video-i128 config.status 1.4.1 20369configured by $0, generated by GNU Autoconf 2.71, 20370 with options \\"\$ac_cs_config\\" 20371 20372Copyright (C) 2021 Free Software Foundation, Inc. 20373This config.status script is free software; the Free Software Foundation 20374gives unlimited permission to copy, distribute and modify it." 20375 20376ac_pwd='$ac_pwd' 20377srcdir='$srcdir' 20378INSTALL='$INSTALL' 20379MKDIR_P='$MKDIR_P' 20380AWK='$AWK' 20381test -n "\$AWK" || AWK=awk 20382_ACEOF 20383 20384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20385# The default lists apply if the user does not specify any file. 20386ac_need_defaults=: 20387while test $# != 0 20388do 20389 case $1 in 20390 --*=?*) 20391 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20392 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20393 ac_shift=: 20394 ;; 20395 --*=) 20396 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20397 ac_optarg= 20398 ac_shift=: 20399 ;; 20400 *) 20401 ac_option=$1 20402 ac_optarg=$2 20403 ac_shift=shift 20404 ;; 20405 esac 20406 20407 case $ac_option in 20408 # Handling of the options. 20409 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20410 ac_cs_recheck=: ;; 20411 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20412 printf "%s\n" "$ac_cs_version"; exit ;; 20413 --config | --confi | --conf | --con | --co | --c ) 20414 printf "%s\n" "$ac_cs_config"; exit ;; 20415 --debug | --debu | --deb | --de | --d | -d ) 20416 debug=: ;; 20417 --file | --fil | --fi | --f ) 20418 $ac_shift 20419 case $ac_optarg in 20420 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20421 '') as_fn_error $? "missing file argument" ;; 20422 esac 20423 as_fn_append CONFIG_FILES " '$ac_optarg'" 20424 ac_need_defaults=false;; 20425 --header | --heade | --head | --hea ) 20426 $ac_shift 20427 case $ac_optarg in 20428 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20429 esac 20430 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20431 ac_need_defaults=false;; 20432 --he | --h) 20433 # Conflict between --help and --header 20434 as_fn_error $? "ambiguous option: \`$1' 20435Try \`$0 --help' for more information.";; 20436 --help | --hel | -h ) 20437 printf "%s\n" "$ac_cs_usage"; exit ;; 20438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20439 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20440 ac_cs_silent=: ;; 20441 20442 # This is an error. 20443 -*) as_fn_error $? "unrecognized option: \`$1' 20444Try \`$0 --help' for more information." ;; 20445 20446 *) as_fn_append ac_config_targets " $1" 20447 ac_need_defaults=false ;; 20448 20449 esac 20450 shift 20451done 20452 20453ac_configure_extra_args= 20454 20455if $ac_cs_silent; then 20456 exec 6>/dev/null 20457 ac_configure_extra_args="$ac_configure_extra_args --silent" 20458fi 20459 20460_ACEOF 20461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20462if \$ac_cs_recheck; then 20463 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20464 shift 20465 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20466 CONFIG_SHELL='$SHELL' 20467 export CONFIG_SHELL 20468 exec "\$@" 20469fi 20470 20471_ACEOF 20472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20473exec 5>>config.log 20474{ 20475 echo 20476 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20477## Running $as_me. ## 20478_ASBOX 20479 printf "%s\n" "$ac_log" 20480} >&5 20481 20482_ACEOF 20483cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20484# 20485# INIT-COMMANDS 20486# 20487AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20488 20489 20490# The HP-UX ksh and POSIX shell print the target directory to stdout 20491# if CDPATH is set. 20492(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20493 20494sed_quote_subst='$sed_quote_subst' 20495double_quote_subst='$double_quote_subst' 20496delay_variable_subst='$delay_variable_subst' 20497enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20498macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20499macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20500enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20501pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20502enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20503shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20504SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20505ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20506PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20507host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20508host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20509host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20510build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20511build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20512build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20513SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20514Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20515GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20516EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20517FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20518LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20519NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20520LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20521max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20522ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20523exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20524lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20525lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20526lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20527lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20528lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20529reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20530reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20531FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20532OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20533deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20534file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20535file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20536want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20537DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20538sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20539AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20540lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20541AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20542archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20543STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20544RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20545old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20546old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20547old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20548lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20549CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20550CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20551compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20552GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20553lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20554lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20555lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20556lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20557lt_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"`' 20558lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20559nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20560lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20561lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20562objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20563MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20564lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20565lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20566lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20567lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20568lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20569need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20570MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20571DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20572NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20573LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20574OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20575OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20576libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20577shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20578extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20579archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20580enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20581export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20582whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20583compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20584old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20585old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20586archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20587archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20588module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20589module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20590with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20591allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20592no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20593hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20594hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20595hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20596hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20597hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20598hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20599hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20600inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20601link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20602always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20603export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20604exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20605include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20606prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20607postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20608file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20609variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20610need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20611need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20612version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20613runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20614shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20615shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20616libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20617library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20618soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20619install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20620postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20621postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20622finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20623finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20624hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20625sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20626configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20627configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20628hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20629enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20630enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20631enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20632old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20633striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20634 20635LTCC='$LTCC' 20636LTCFLAGS='$LTCFLAGS' 20637compiler='$compiler_DEFAULT' 20638 20639# A function that is used when there is no print builtin or printf. 20640func_fallback_echo () 20641{ 20642 eval 'cat <<_LTECHO_EOF 20643\$1 20644_LTECHO_EOF' 20645} 20646 20647# Quote evaled strings. 20648for var in SHELL \ 20649ECHO \ 20650PATH_SEPARATOR \ 20651SED \ 20652GREP \ 20653EGREP \ 20654FGREP \ 20655LD \ 20656NM \ 20657LN_S \ 20658lt_SP2NL \ 20659lt_NL2SP \ 20660reload_flag \ 20661FILECMD \ 20662OBJDUMP \ 20663deplibs_check_method \ 20664file_magic_cmd \ 20665file_magic_glob \ 20666want_nocaseglob \ 20667DLLTOOL \ 20668sharedlib_from_linklib_cmd \ 20669AR \ 20670archiver_list_spec \ 20671STRIP \ 20672RANLIB \ 20673CC \ 20674CFLAGS \ 20675compiler \ 20676lt_cv_sys_global_symbol_pipe \ 20677lt_cv_sys_global_symbol_to_cdecl \ 20678lt_cv_sys_global_symbol_to_import \ 20679lt_cv_sys_global_symbol_to_c_name_address \ 20680lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20681lt_cv_nm_interface \ 20682nm_file_list_spec \ 20683lt_cv_truncate_bin \ 20684lt_prog_compiler_no_builtin_flag \ 20685lt_prog_compiler_pic \ 20686lt_prog_compiler_wl \ 20687lt_prog_compiler_static \ 20688lt_cv_prog_compiler_c_o \ 20689need_locks \ 20690MANIFEST_TOOL \ 20691DSYMUTIL \ 20692NMEDIT \ 20693LIPO \ 20694OTOOL \ 20695OTOOL64 \ 20696shrext_cmds \ 20697export_dynamic_flag_spec \ 20698whole_archive_flag_spec \ 20699compiler_needs_object \ 20700with_gnu_ld \ 20701allow_undefined_flag \ 20702no_undefined_flag \ 20703hardcode_libdir_flag_spec \ 20704hardcode_libdir_separator \ 20705exclude_expsyms \ 20706include_expsyms \ 20707file_list_spec \ 20708variables_saved_for_relink \ 20709libname_spec \ 20710library_names_spec \ 20711soname_spec \ 20712install_override_mode \ 20713finish_eval \ 20714old_striplib \ 20715striplib; do 20716 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20717 *[\\\\\\\`\\"\\\$]*) 20718 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20719 ;; 20720 *) 20721 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20722 ;; 20723 esac 20724done 20725 20726# Double-quote double-evaled strings. 20727for var in reload_cmds \ 20728old_postinstall_cmds \ 20729old_postuninstall_cmds \ 20730old_archive_cmds \ 20731extract_expsyms_cmds \ 20732old_archive_from_new_cmds \ 20733old_archive_from_expsyms_cmds \ 20734archive_cmds \ 20735archive_expsym_cmds \ 20736module_cmds \ 20737module_expsym_cmds \ 20738export_symbols_cmds \ 20739prelink_cmds \ 20740postlink_cmds \ 20741postinstall_cmds \ 20742postuninstall_cmds \ 20743finish_cmds \ 20744sys_lib_search_path_spec \ 20745configure_time_dlsearch_path \ 20746configure_time_lt_sys_library_path; do 20747 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20748 *[\\\\\\\`\\"\\\$]*) 20749 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20750 ;; 20751 *) 20752 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20753 ;; 20754 esac 20755done 20756 20757ac_aux_dir='$ac_aux_dir' 20758 20759# See if we are running on zsh, and set the options that allow our 20760# commands through without removal of \ escapes INIT. 20761if test -n "\${ZSH_VERSION+set}"; then 20762 setopt NO_GLOB_SUBST 20763fi 20764 20765 20766 PACKAGE='$PACKAGE' 20767 VERSION='$VERSION' 20768 RM='$RM' 20769 ofile='$ofile' 20770 20771 20772 20773 20774_ACEOF 20775 20776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20777 20778# Handling of arguments. 20779for ac_config_target in $ac_config_targets 20780do 20781 case $ac_config_target in 20782 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20783 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20784 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20786 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20787 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20788 20789 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20790 esac 20791done 20792 20793 20794# If the user did not use the arguments to specify the items to instantiate, 20795# then the envvar interface is used. Set only those that are not. 20796# We use the long form for the default assignment because of an extremely 20797# bizarre bug on SunOS 4.1.3. 20798if $ac_need_defaults; then 20799 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20800 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20801 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20802fi 20803 20804# Have a temporary directory for convenience. Make it in the build tree 20805# simply because there is no reason against having it here, and in addition, 20806# creating and moving files from /tmp can sometimes cause problems. 20807# Hook for its removal unless debugging. 20808# Note that there is a small window in which the directory will not be cleaned: 20809# after its creation but before its name has been assigned to `$tmp'. 20810$debug || 20811{ 20812 tmp= ac_tmp= 20813 trap 'exit_status=$? 20814 : "${ac_tmp:=$tmp}" 20815 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20816' 0 20817 trap 'as_fn_exit 1' 1 2 13 15 20818} 20819# Create a (secure) tmp directory for tmp files. 20820 20821{ 20822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20823 test -d "$tmp" 20824} || 20825{ 20826 tmp=./conf$$-$RANDOM 20827 (umask 077 && mkdir "$tmp") 20828} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20829ac_tmp=$tmp 20830 20831# Set up the scripts for CONFIG_FILES section. 20832# No need to generate them if there are no CONFIG_FILES. 20833# This happens for instance with `./config.status config.h'. 20834if test -n "$CONFIG_FILES"; then 20835 20836 20837ac_cr=`echo X | tr X '\015'` 20838# On cygwin, bash can eat \r inside `` if the user requested igncr. 20839# But we know of no other shell where ac_cr would be empty at this 20840# point, so we can use a bashism as a fallback. 20841if test "x$ac_cr" = x; then 20842 eval ac_cr=\$\'\\r\' 20843fi 20844ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20845if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20846 ac_cs_awk_cr='\\r' 20847else 20848 ac_cs_awk_cr=$ac_cr 20849fi 20850 20851echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20852_ACEOF 20853 20854 20855{ 20856 echo "cat >conf$$subs.awk <<_ACEOF" && 20857 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20858 echo "_ACEOF" 20859} >conf$$subs.sh || 20860 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20861ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20862ac_delim='%!_!# ' 20863for ac_last_try in false false false false false :; do 20864 . ./conf$$subs.sh || 20865 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20866 20867 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20868 if test $ac_delim_n = $ac_delim_num; then 20869 break 20870 elif $ac_last_try; then 20871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20872 else 20873 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20874 fi 20875done 20876rm -f conf$$subs.sh 20877 20878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20879cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20880_ACEOF 20881sed -n ' 20882h 20883s/^/S["/; s/!.*/"]=/ 20884p 20885g 20886s/^[^!]*!// 20887:repl 20888t repl 20889s/'"$ac_delim"'$// 20890t delim 20891:nl 20892h 20893s/\(.\{148\}\)..*/\1/ 20894t more1 20895s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20896p 20897n 20898b repl 20899:more1 20900s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20901p 20902g 20903s/.\{148\}// 20904t nl 20905:delim 20906h 20907s/\(.\{148\}\)..*/\1/ 20908t more2 20909s/["\\]/\\&/g; s/^/"/; s/$/"/ 20910p 20911b 20912:more2 20913s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20914p 20915g 20916s/.\{148\}// 20917t delim 20918' <conf$$subs.awk | sed ' 20919/^[^""]/{ 20920 N 20921 s/\n// 20922} 20923' >>$CONFIG_STATUS || ac_write_fail=1 20924rm -f conf$$subs.awk 20925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20926_ACAWK 20927cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20928 for (key in S) S_is_set[key] = 1 20929 FS = "" 20930 20931} 20932{ 20933 line = $ 0 20934 nfields = split(line, field, "@") 20935 substed = 0 20936 len = length(field[1]) 20937 for (i = 2; i < nfields; i++) { 20938 key = field[i] 20939 keylen = length(key) 20940 if (S_is_set[key]) { 20941 value = S[key] 20942 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20943 len += length(value) + length(field[++i]) 20944 substed = 1 20945 } else 20946 len += 1 + keylen 20947 } 20948 20949 print line 20950} 20951 20952_ACAWK 20953_ACEOF 20954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20955if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20956 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20957else 20958 cat 20959fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20960 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20961_ACEOF 20962 20963# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20964# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20965# trailing colons and then remove the whole line if VPATH becomes empty 20966# (actually we leave an empty line to preserve line numbers). 20967if test "x$srcdir" = x.; then 20968 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20969h 20970s/// 20971s/^/:/ 20972s/[ ]*$/:/ 20973s/:\$(srcdir):/:/g 20974s/:\${srcdir}:/:/g 20975s/:@srcdir@:/:/g 20976s/^:*// 20977s/:*$// 20978x 20979s/\(=[ ]*\).*/\1/ 20980G 20981s/\n// 20982s/^[^=]*=[ ]*$// 20983}' 20984fi 20985 20986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20987fi # test -n "$CONFIG_FILES" 20988 20989# Set up the scripts for CONFIG_HEADERS section. 20990# No need to generate them if there are no CONFIG_HEADERS. 20991# This happens for instance with `./config.status Makefile'. 20992if test -n "$CONFIG_HEADERS"; then 20993cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20994BEGIN { 20995_ACEOF 20996 20997# Transform confdefs.h into an awk script `defines.awk', embedded as 20998# here-document in config.status, that substitutes the proper values into 20999# config.h.in to produce config.h. 21000 21001# Create a delimiter string that does not exist in confdefs.h, to ease 21002# handling of long lines. 21003ac_delim='%!_!# ' 21004for ac_last_try in false false :; do 21005 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21006 if test -z "$ac_tt"; then 21007 break 21008 elif $ac_last_try; then 21009 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21010 else 21011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21012 fi 21013done 21014 21015# For the awk script, D is an array of macro values keyed by name, 21016# likewise P contains macro parameters if any. Preserve backslash 21017# newline sequences. 21018 21019ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21020sed -n ' 21021s/.\{148\}/&'"$ac_delim"'/g 21022t rset 21023:rset 21024s/^[ ]*#[ ]*define[ ][ ]*/ / 21025t def 21026d 21027:def 21028s/\\$// 21029t bsnl 21030s/["\\]/\\&/g 21031s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21032D["\1"]=" \3"/p 21033s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21034d 21035:bsnl 21036s/["\\]/\\&/g 21037s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21038D["\1"]=" \3\\\\\\n"\\/p 21039t cont 21040s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21041t cont 21042d 21043:cont 21044n 21045s/.\{148\}/&'"$ac_delim"'/g 21046t clear 21047:clear 21048s/\\$// 21049t bsnlc 21050s/["\\]/\\&/g; s/^/"/; s/$/"/p 21051d 21052:bsnlc 21053s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21054b cont 21055' <confdefs.h | sed ' 21056s/'"$ac_delim"'/"\\\ 21057"/g' >>$CONFIG_STATUS || ac_write_fail=1 21058 21059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21060 for (key in D) D_is_set[key] = 1 21061 FS = "" 21062} 21063/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21064 line = \$ 0 21065 split(line, arg, " ") 21066 if (arg[1] == "#") { 21067 defundef = arg[2] 21068 mac1 = arg[3] 21069 } else { 21070 defundef = substr(arg[1], 2) 21071 mac1 = arg[2] 21072 } 21073 split(mac1, mac2, "(") #) 21074 macro = mac2[1] 21075 prefix = substr(line, 1, index(line, defundef) - 1) 21076 if (D_is_set[macro]) { 21077 # Preserve the white space surrounding the "#". 21078 print prefix "define", macro P[macro] D[macro] 21079 next 21080 } else { 21081 # Replace #undef with comments. This is necessary, for example, 21082 # in the case of _POSIX_SOURCE, which is predefined and required 21083 # on some systems where configure will not decide to define it. 21084 if (defundef == "undef") { 21085 print "/*", prefix defundef, macro, "*/" 21086 next 21087 } 21088 } 21089} 21090{ print } 21091_ACAWK 21092_ACEOF 21093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21094 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21095fi # test -n "$CONFIG_HEADERS" 21096 21097 21098eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21099shift 21100for ac_tag 21101do 21102 case $ac_tag in 21103 :[FHLC]) ac_mode=$ac_tag; continue;; 21104 esac 21105 case $ac_mode$ac_tag in 21106 :[FHL]*:*);; 21107 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21108 :[FH]-) ac_tag=-:-;; 21109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21110 esac 21111 ac_save_IFS=$IFS 21112 IFS=: 21113 set x $ac_tag 21114 IFS=$ac_save_IFS 21115 shift 21116 ac_file=$1 21117 shift 21118 21119 case $ac_mode in 21120 :L) ac_source=$1;; 21121 :[FH]) 21122 ac_file_inputs= 21123 for ac_f 21124 do 21125 case $ac_f in 21126 -) ac_f="$ac_tmp/stdin";; 21127 *) # Look for the file first in the build tree, then in the source tree 21128 # (if the path is not absolute). The absolute path cannot be DOS-style, 21129 # because $ac_f cannot contain `:'. 21130 test -f "$ac_f" || 21131 case $ac_f in 21132 [\\/$]*) false;; 21133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21134 esac || 21135 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21136 esac 21137 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21138 as_fn_append ac_file_inputs " '$ac_f'" 21139 done 21140 21141 # Let's still pretend it is `configure' which instantiates (i.e., don't 21142 # use $as_me), people would be surprised to read: 21143 # /* config.h. Generated by config.status. */ 21144 configure_input='Generated from '` 21145 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21146 `' by configure.' 21147 if test x"$ac_file" != x-; then 21148 configure_input="$ac_file. $configure_input" 21149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21150printf "%s\n" "$as_me: creating $ac_file" >&6;} 21151 fi 21152 # Neutralize special characters interpreted by sed in replacement strings. 21153 case $configure_input in #( 21154 *\&* | *\|* | *\\* ) 21155 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21156 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21157 *) ac_sed_conf_input=$configure_input;; 21158 esac 21159 21160 case $ac_tag in 21161 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21163 esac 21164 ;; 21165 esac 21166 21167 ac_dir=`$as_dirname -- "$ac_file" || 21168$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21169 X"$ac_file" : 'X\(//\)[^/]' \| \ 21170 X"$ac_file" : 'X\(//\)$' \| \ 21171 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21172printf "%s\n" X"$ac_file" | 21173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21174 s//\1/ 21175 q 21176 } 21177 /^X\(\/\/\)[^/].*/{ 21178 s//\1/ 21179 q 21180 } 21181 /^X\(\/\/\)$/{ 21182 s//\1/ 21183 q 21184 } 21185 /^X\(\/\).*/{ 21186 s//\1/ 21187 q 21188 } 21189 s/.*/./; q'` 21190 as_dir="$ac_dir"; as_fn_mkdir_p 21191 ac_builddir=. 21192 21193case "$ac_dir" in 21194.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21195*) 21196 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21197 # A ".." for each directory in $ac_dir_suffix. 21198 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21199 case $ac_top_builddir_sub in 21200 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21201 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21202 esac ;; 21203esac 21204ac_abs_top_builddir=$ac_pwd 21205ac_abs_builddir=$ac_pwd$ac_dir_suffix 21206# for backward compatibility: 21207ac_top_builddir=$ac_top_build_prefix 21208 21209case $srcdir in 21210 .) # We are building in place. 21211 ac_srcdir=. 21212 ac_top_srcdir=$ac_top_builddir_sub 21213 ac_abs_top_srcdir=$ac_pwd ;; 21214 [\\/]* | ?:[\\/]* ) # Absolute name. 21215 ac_srcdir=$srcdir$ac_dir_suffix; 21216 ac_top_srcdir=$srcdir 21217 ac_abs_top_srcdir=$srcdir ;; 21218 *) # Relative name. 21219 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21220 ac_top_srcdir=$ac_top_build_prefix$srcdir 21221 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21222esac 21223ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21224 21225 21226 case $ac_mode in 21227 :F) 21228 # 21229 # CONFIG_FILE 21230 # 21231 21232 case $INSTALL in 21233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21234 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21235 esac 21236 ac_MKDIR_P=$MKDIR_P 21237 case $MKDIR_P in 21238 [\\/$]* | ?:[\\/]* ) ;; 21239 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21240 esac 21241_ACEOF 21242 21243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21244# If the template does not know about datarootdir, expand it. 21245# FIXME: This hack should be removed a few years after 2.60. 21246ac_datarootdir_hack=; ac_datarootdir_seen= 21247ac_sed_dataroot=' 21248/datarootdir/ { 21249 p 21250 q 21251} 21252/@datadir@/p 21253/@docdir@/p 21254/@infodir@/p 21255/@localedir@/p 21256/@mandir@/p' 21257case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21258*datarootdir*) ac_datarootdir_seen=yes;; 21259*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21261printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21262_ACEOF 21263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21264 ac_datarootdir_hack=' 21265 s&@datadir@&$datadir&g 21266 s&@docdir@&$docdir&g 21267 s&@infodir@&$infodir&g 21268 s&@localedir@&$localedir&g 21269 s&@mandir@&$mandir&g 21270 s&\\\${datarootdir}&$datarootdir&g' ;; 21271esac 21272_ACEOF 21273 21274# Neutralize VPATH when `$srcdir' = `.'. 21275# Shell code in configure.ac might set extrasub. 21276# FIXME: do we really want to maintain this feature? 21277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21278ac_sed_extra="$ac_vpsub 21279$extrasub 21280_ACEOF 21281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21282:t 21283/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21284s|@configure_input@|$ac_sed_conf_input|;t t 21285s&@top_builddir@&$ac_top_builddir_sub&;t t 21286s&@top_build_prefix@&$ac_top_build_prefix&;t t 21287s&@srcdir@&$ac_srcdir&;t t 21288s&@abs_srcdir@&$ac_abs_srcdir&;t t 21289s&@top_srcdir@&$ac_top_srcdir&;t t 21290s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21291s&@builddir@&$ac_builddir&;t t 21292s&@abs_builddir@&$ac_abs_builddir&;t t 21293s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21294s&@INSTALL@&$ac_INSTALL&;t t 21295s&@MKDIR_P@&$ac_MKDIR_P&;t t 21296$ac_datarootdir_hack 21297" 21298eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21299 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21300 21301test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21302 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21304 "$ac_tmp/out"`; test -z "$ac_out"; } && 21305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21306which seems to be undefined. Please make sure it is defined" >&5 21307printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21308which seems to be undefined. Please make sure it is defined" >&2;} 21309 21310 rm -f "$ac_tmp/stdin" 21311 case $ac_file in 21312 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21313 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21314 esac \ 21315 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21316 ;; 21317 :H) 21318 # 21319 # CONFIG_HEADER 21320 # 21321 if test x"$ac_file" != x-; then 21322 { 21323 printf "%s\n" "/* $configure_input */" >&1 \ 21324 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21325 } >"$ac_tmp/config.h" \ 21326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21327 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21329printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21330 else 21331 rm -f "$ac_file" 21332 mv "$ac_tmp/config.h" "$ac_file" \ 21333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21334 fi 21335 else 21336 printf "%s\n" "/* $configure_input */" >&1 \ 21337 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21338 || as_fn_error $? "could not create -" "$LINENO" 5 21339 fi 21340# Compute "$ac_file"'s index in $config_headers. 21341_am_arg="$ac_file" 21342_am_stamp_count=1 21343for _am_header in $config_headers :; do 21344 case $_am_header in 21345 $_am_arg | $_am_arg:* ) 21346 break ;; 21347 * ) 21348 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21349 esac 21350done 21351echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21352$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21353 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21354 X"$_am_arg" : 'X\(//\)$' \| \ 21355 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21356printf "%s\n" X"$_am_arg" | 21357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21358 s//\1/ 21359 q 21360 } 21361 /^X\(\/\/\)[^/].*/{ 21362 s//\1/ 21363 q 21364 } 21365 /^X\(\/\/\)$/{ 21366 s//\1/ 21367 q 21368 } 21369 /^X\(\/\).*/{ 21370 s//\1/ 21371 q 21372 } 21373 s/.*/./; q'`/stamp-h$_am_stamp_count 21374 ;; 21375 21376 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21377printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21378 ;; 21379 esac 21380 21381 21382 case $ac_file$ac_mode in 21383 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21384 # Older Autoconf quotes --file arguments for eval, but not when files 21385 # are listed without --file. Let's play safe and only enable the eval 21386 # if we detect the quoting. 21387 # TODO: see whether this extra hack can be removed once we start 21388 # requiring Autoconf 2.70 or later. 21389 case $CONFIG_FILES in #( 21390 *\'*) : 21391 eval set x "$CONFIG_FILES" ;; #( 21392 *) : 21393 set x $CONFIG_FILES ;; #( 21394 *) : 21395 ;; 21396esac 21397 shift 21398 # Used to flag and report bootstrapping failures. 21399 am_rc=0 21400 for am_mf 21401 do 21402 # Strip MF so we end up with the name of the file. 21403 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21404 # Check whether this is an Automake generated Makefile which includes 21405 # dependency-tracking related rules and includes. 21406 # Grep'ing the whole file directly is not great: AIX grep has a line 21407 # limit of 2048, but all sed's we know have understand at least 4000. 21408 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21409 || continue 21410 am_dirpart=`$as_dirname -- "$am_mf" || 21411$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21412 X"$am_mf" : 'X\(//\)[^/]' \| \ 21413 X"$am_mf" : 'X\(//\)$' \| \ 21414 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21415printf "%s\n" X"$am_mf" | 21416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21417 s//\1/ 21418 q 21419 } 21420 /^X\(\/\/\)[^/].*/{ 21421 s//\1/ 21422 q 21423 } 21424 /^X\(\/\/\)$/{ 21425 s//\1/ 21426 q 21427 } 21428 /^X\(\/\).*/{ 21429 s//\1/ 21430 q 21431 } 21432 s/.*/./; q'` 21433 am_filepart=`$as_basename -- "$am_mf" || 21434$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21435 X"$am_mf" : 'X\(//\)$' \| \ 21436 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21437printf "%s\n" X/"$am_mf" | 21438 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21439 s//\1/ 21440 q 21441 } 21442 /^X\/\(\/\/\)$/{ 21443 s//\1/ 21444 q 21445 } 21446 /^X\/\(\/\).*/{ 21447 s//\1/ 21448 q 21449 } 21450 s/.*/./; q'` 21451 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21452 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21453 | $MAKE -f - am--depfiles" >&5 21454 (cd "$am_dirpart" \ 21455 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21456 | $MAKE -f - am--depfiles) >&5 2>&5 21457 ac_status=$? 21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21459 (exit $ac_status); } || am_rc=$? 21460 done 21461 if test $am_rc -ne 0; then 21462 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21463printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21464as_fn_error $? "Something went wrong bootstrapping makefile fragments 21465 for automatic dependency tracking. If GNU make was not used, consider 21466 re-running the configure script with MAKE=\"gmake\" (or whatever is 21467 necessary). You can also try re-running configure with the 21468 '--disable-dependency-tracking' option to at least be able to build 21469 the package (albeit without support for automatic dependency tracking). 21470See \`config.log' for more details" "$LINENO" 5; } 21471 fi 21472 { am_dirpart=; unset am_dirpart;} 21473 { am_filepart=; unset am_filepart;} 21474 { am_mf=; unset am_mf;} 21475 { am_rc=; unset am_rc;} 21476 rm -f conftest-deps.mk 21477} 21478 ;; 21479 "libtool":C) 21480 21481 # See if we are running on zsh, and set the options that allow our 21482 # commands through without removal of \ escapes. 21483 if test -n "${ZSH_VERSION+set}"; then 21484 setopt NO_GLOB_SUBST 21485 fi 21486 21487 cfgfile=${ofile}T 21488 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21489 $RM "$cfgfile" 21490 21491 cat <<_LT_EOF >> "$cfgfile" 21492#! $SHELL 21493# Generated automatically by $as_me ($PACKAGE) $VERSION 21494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21495# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21496 21497# Provide generalized library-building support services. 21498# Written by Gordon Matzigkeit, 1996 21499 21500# Copyright (C) 2014 Free Software Foundation, Inc. 21501# This is free software; see the source for copying conditions. There is NO 21502# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21503 21504# GNU Libtool is free software; you can redistribute it and/or modify 21505# it under the terms of the GNU General Public License as published by 21506# the Free Software Foundation; either version 2 of of the License, or 21507# (at your option) any later version. 21508# 21509# As a special exception to the GNU General Public License, if you 21510# distribute this file as part of a program or library that is built 21511# using GNU Libtool, you may include this file under the same 21512# distribution terms that you use for the rest of that program. 21513# 21514# GNU Libtool is distributed in the hope that it will be useful, but 21515# WITHOUT ANY WARRANTY; without even the implied warranty of 21516# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21517# GNU General Public License for more details. 21518# 21519# You should have received a copy of the GNU General Public License 21520# along with this program. If not, see <http://www.gnu.org/licenses/>. 21521 21522 21523# The names of the tagged configurations supported by this script. 21524available_tags='' 21525 21526# Configured defaults for sys_lib_dlsearch_path munging. 21527: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21528 21529# ### BEGIN LIBTOOL CONFIG 21530 21531# Whether or not to build static libraries. 21532build_old_libs=$enable_static 21533 21534# Which release of libtool.m4 was used? 21535macro_version=$macro_version 21536macro_revision=$macro_revision 21537 21538# Whether or not to build shared libraries. 21539build_libtool_libs=$enable_shared 21540 21541# What type of objects to build. 21542pic_mode=$pic_mode 21543 21544# Whether or not to optimize for fast installation. 21545fast_install=$enable_fast_install 21546 21547# Shared archive member basename,for filename based shared library versioning on AIX. 21548shared_archive_member_spec=$shared_archive_member_spec 21549 21550# Shell to use when invoking shell scripts. 21551SHELL=$lt_SHELL 21552 21553# An echo program that protects backslashes. 21554ECHO=$lt_ECHO 21555 21556# The PATH separator for the build system. 21557PATH_SEPARATOR=$lt_PATH_SEPARATOR 21558 21559# The host system. 21560host_alias=$host_alias 21561host=$host 21562host_os=$host_os 21563 21564# The build system. 21565build_alias=$build_alias 21566build=$build 21567build_os=$build_os 21568 21569# A sed program that does not truncate output. 21570SED=$lt_SED 21571 21572# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21573Xsed="\$SED -e 1s/^X//" 21574 21575# A grep program that handles long lines. 21576GREP=$lt_GREP 21577 21578# An ERE matcher. 21579EGREP=$lt_EGREP 21580 21581# A literal string matcher. 21582FGREP=$lt_FGREP 21583 21584# A BSD- or MS-compatible name lister. 21585NM=$lt_NM 21586 21587# Whether we need soft or hard links. 21588LN_S=$lt_LN_S 21589 21590# What is the maximum length of a command? 21591max_cmd_len=$max_cmd_len 21592 21593# Object file suffix (normally "o"). 21594objext=$ac_objext 21595 21596# Executable file suffix (normally ""). 21597exeext=$exeext 21598 21599# whether the shell understands "unset". 21600lt_unset=$lt_unset 21601 21602# turn spaces into newlines. 21603SP2NL=$lt_lt_SP2NL 21604 21605# turn newlines into spaces. 21606NL2SP=$lt_lt_NL2SP 21607 21608# convert \$build file names to \$host format. 21609to_host_file_cmd=$lt_cv_to_host_file_cmd 21610 21611# convert \$build files to toolchain format. 21612to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21613 21614# A file(cmd) program that detects file types. 21615FILECMD=$lt_FILECMD 21616 21617# An object symbol dumper. 21618OBJDUMP=$lt_OBJDUMP 21619 21620# Method to check whether dependent libraries are shared objects. 21621deplibs_check_method=$lt_deplibs_check_method 21622 21623# Command to use when deplibs_check_method = "file_magic". 21624file_magic_cmd=$lt_file_magic_cmd 21625 21626# How to find potential files when deplibs_check_method = "file_magic". 21627file_magic_glob=$lt_file_magic_glob 21628 21629# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21630want_nocaseglob=$lt_want_nocaseglob 21631 21632# DLL creation program. 21633DLLTOOL=$lt_DLLTOOL 21634 21635# Command to associate shared and link libraries. 21636sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21637 21638# The archiver. 21639AR=$lt_AR 21640 21641# Flags to create an archive (by configure). 21642lt_ar_flags=$lt_ar_flags 21643 21644# Flags to create an archive. 21645AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21646 21647# How to feed a file listing to the archiver. 21648archiver_list_spec=$lt_archiver_list_spec 21649 21650# A symbol stripping program. 21651STRIP=$lt_STRIP 21652 21653# Commands used to install an old-style archive. 21654RANLIB=$lt_RANLIB 21655old_postinstall_cmds=$lt_old_postinstall_cmds 21656old_postuninstall_cmds=$lt_old_postuninstall_cmds 21657 21658# Whether to use a lock for old archive extraction. 21659lock_old_archive_extraction=$lock_old_archive_extraction 21660 21661# A C compiler. 21662LTCC=$lt_CC 21663 21664# LTCC compiler flags. 21665LTCFLAGS=$lt_CFLAGS 21666 21667# Take the output of nm and produce a listing of raw symbols and C names. 21668global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21669 21670# Transform the output of nm in a proper C declaration. 21671global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21672 21673# Transform the output of nm into a list of symbols to manually relocate. 21674global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21675 21676# Transform the output of nm in a C name address pair. 21677global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21678 21679# Transform the output of nm in a C name address pair when lib prefix is needed. 21680global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21681 21682# The name lister interface. 21683nm_interface=$lt_lt_cv_nm_interface 21684 21685# Specify filename containing input files for \$NM. 21686nm_file_list_spec=$lt_nm_file_list_spec 21687 21688# The root where to search for dependent libraries,and where our libraries should be installed. 21689lt_sysroot=$lt_sysroot 21690 21691# Command to truncate a binary pipe. 21692lt_truncate_bin=$lt_lt_cv_truncate_bin 21693 21694# The name of the directory that contains temporary libtool files. 21695objdir=$objdir 21696 21697# Used to examine libraries when file_magic_cmd begins with "file". 21698MAGIC_CMD=$MAGIC_CMD 21699 21700# Must we lock files when doing compilation? 21701need_locks=$lt_need_locks 21702 21703# Manifest tool. 21704MANIFEST_TOOL=$lt_MANIFEST_TOOL 21705 21706# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21707DSYMUTIL=$lt_DSYMUTIL 21708 21709# Tool to change global to local symbols on Mac OS X. 21710NMEDIT=$lt_NMEDIT 21711 21712# Tool to manipulate fat objects and archives on Mac OS X. 21713LIPO=$lt_LIPO 21714 21715# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21716OTOOL=$lt_OTOOL 21717 21718# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21719OTOOL64=$lt_OTOOL64 21720 21721# Old archive suffix (normally "a"). 21722libext=$libext 21723 21724# Shared library suffix (normally ".so"). 21725shrext_cmds=$lt_shrext_cmds 21726 21727# The commands to extract the exported symbol list from a shared archive. 21728extract_expsyms_cmds=$lt_extract_expsyms_cmds 21729 21730# Variables whose values should be saved in libtool wrapper scripts and 21731# restored at link time. 21732variables_saved_for_relink=$lt_variables_saved_for_relink 21733 21734# Do we need the "lib" prefix for modules? 21735need_lib_prefix=$need_lib_prefix 21736 21737# Do we need a version for libraries? 21738need_version=$need_version 21739 21740# Library versioning type. 21741version_type=$version_type 21742 21743# Shared library runtime path variable. 21744runpath_var=$runpath_var 21745 21746# Shared library path variable. 21747shlibpath_var=$shlibpath_var 21748 21749# Is shlibpath searched before the hard-coded library search path? 21750shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21751 21752# Format of library name prefix. 21753libname_spec=$lt_libname_spec 21754 21755# List of archive names. First name is the real one, the rest are links. 21756# The last name is the one that the linker finds with -lNAME 21757library_names_spec=$lt_library_names_spec 21758 21759# The coded name of the library, if different from the real name. 21760soname_spec=$lt_soname_spec 21761 21762# Permission mode override for installation of shared libraries. 21763install_override_mode=$lt_install_override_mode 21764 21765# Command to use after installation of a shared archive. 21766postinstall_cmds=$lt_postinstall_cmds 21767 21768# Command to use after uninstallation of a shared archive. 21769postuninstall_cmds=$lt_postuninstall_cmds 21770 21771# Commands used to finish a libtool library installation in a directory. 21772finish_cmds=$lt_finish_cmds 21773 21774# As "finish_cmds", except a single script fragment to be evaled but 21775# not shown. 21776finish_eval=$lt_finish_eval 21777 21778# Whether we should hardcode library paths into libraries. 21779hardcode_into_libs=$hardcode_into_libs 21780 21781# Compile-time system search path for libraries. 21782sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21783 21784# Detected run-time system search path for libraries. 21785sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21786 21787# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21788configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21789 21790# Whether dlopen is supported. 21791dlopen_support=$enable_dlopen 21792 21793# Whether dlopen of programs is supported. 21794dlopen_self=$enable_dlopen_self 21795 21796# Whether dlopen of statically linked programs is supported. 21797dlopen_self_static=$enable_dlopen_self_static 21798 21799# Commands to strip libraries. 21800old_striplib=$lt_old_striplib 21801striplib=$lt_striplib 21802 21803 21804# The linker used to build libraries. 21805LD=$lt_LD 21806 21807# How to create reloadable object files. 21808reload_flag=$lt_reload_flag 21809reload_cmds=$lt_reload_cmds 21810 21811# Commands used to build an old-style archive. 21812old_archive_cmds=$lt_old_archive_cmds 21813 21814# A language specific compiler. 21815CC=$lt_compiler 21816 21817# Is the compiler the GNU compiler? 21818with_gcc=$GCC 21819 21820# Compiler flag to turn off builtin functions. 21821no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21822 21823# Additional compiler flags for building library objects. 21824pic_flag=$lt_lt_prog_compiler_pic 21825 21826# How to pass a linker flag through the compiler. 21827wl=$lt_lt_prog_compiler_wl 21828 21829# Compiler flag to prevent dynamic linking. 21830link_static_flag=$lt_lt_prog_compiler_static 21831 21832# Does compiler simultaneously support -c and -o options? 21833compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21834 21835# Whether or not to add -lc for building shared libraries. 21836build_libtool_need_lc=$archive_cmds_need_lc 21837 21838# Whether or not to disallow shared libs when runtime libs are static. 21839allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21840 21841# Compiler flag to allow reflexive dlopens. 21842export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21843 21844# Compiler flag to generate shared objects directly from archives. 21845whole_archive_flag_spec=$lt_whole_archive_flag_spec 21846 21847# Whether the compiler copes with passing no objects directly. 21848compiler_needs_object=$lt_compiler_needs_object 21849 21850# Create an old-style archive from a shared archive. 21851old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21852 21853# Create a temporary old-style archive to link instead of a shared archive. 21854old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21855 21856# Commands used to build a shared archive. 21857archive_cmds=$lt_archive_cmds 21858archive_expsym_cmds=$lt_archive_expsym_cmds 21859 21860# Commands used to build a loadable module if different from building 21861# a shared archive. 21862module_cmds=$lt_module_cmds 21863module_expsym_cmds=$lt_module_expsym_cmds 21864 21865# Whether we are building with GNU ld or not. 21866with_gnu_ld=$lt_with_gnu_ld 21867 21868# Flag that allows shared libraries with undefined symbols to be built. 21869allow_undefined_flag=$lt_allow_undefined_flag 21870 21871# Flag that enforces no undefined symbols. 21872no_undefined_flag=$lt_no_undefined_flag 21873 21874# Flag to hardcode \$libdir into a binary during linking. 21875# This must work even if \$libdir does not exist 21876hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21877 21878# Whether we need a single "-rpath" flag with a separated argument. 21879hardcode_libdir_separator=$lt_hardcode_libdir_separator 21880 21881# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21882# DIR into the resulting binary. 21883hardcode_direct=$hardcode_direct 21884 21885# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21886# DIR into the resulting binary and the resulting library dependency is 21887# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21888# library is relocated. 21889hardcode_direct_absolute=$hardcode_direct_absolute 21890 21891# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21892# into the resulting binary. 21893hardcode_minus_L=$hardcode_minus_L 21894 21895# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21896# into the resulting binary. 21897hardcode_shlibpath_var=$hardcode_shlibpath_var 21898 21899# Set to "yes" if building a shared library automatically hardcodes DIR 21900# into the library and all subsequent libraries and executables linked 21901# against it. 21902hardcode_automatic=$hardcode_automatic 21903 21904# Set to yes if linker adds runtime paths of dependent libraries 21905# to runtime path list. 21906inherit_rpath=$inherit_rpath 21907 21908# Whether libtool must link a program against all its dependency libraries. 21909link_all_deplibs=$link_all_deplibs 21910 21911# Set to "yes" if exported symbols are required. 21912always_export_symbols=$always_export_symbols 21913 21914# The commands to list exported symbols. 21915export_symbols_cmds=$lt_export_symbols_cmds 21916 21917# Symbols that should not be listed in the preloaded symbols. 21918exclude_expsyms=$lt_exclude_expsyms 21919 21920# Symbols that must always be exported. 21921include_expsyms=$lt_include_expsyms 21922 21923# Commands necessary for linking programs (against libraries) with templates. 21924prelink_cmds=$lt_prelink_cmds 21925 21926# Commands necessary for finishing linking programs. 21927postlink_cmds=$lt_postlink_cmds 21928 21929# Specify filename containing input files. 21930file_list_spec=$lt_file_list_spec 21931 21932# How to hardcode a shared library path into an executable. 21933hardcode_action=$hardcode_action 21934 21935# ### END LIBTOOL CONFIG 21936 21937_LT_EOF 21938 21939 cat <<'_LT_EOF' >> "$cfgfile" 21940 21941# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21942 21943# func_munge_path_list VARIABLE PATH 21944# ----------------------------------- 21945# VARIABLE is name of variable containing _space_ separated list of 21946# directories to be munged by the contents of PATH, which is string 21947# having a format: 21948# "DIR[:DIR]:" 21949# string "DIR[ DIR]" will be prepended to VARIABLE 21950# ":DIR[:DIR]" 21951# string "DIR[ DIR]" will be appended to VARIABLE 21952# "DIRP[:DIRP]::[DIRA:]DIRA" 21953# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21954# "DIRA[ DIRA]" will be appended to VARIABLE 21955# "DIR[:DIR]" 21956# VARIABLE will be replaced by "DIR[ DIR]" 21957func_munge_path_list () 21958{ 21959 case x$2 in 21960 x) 21961 ;; 21962 *:) 21963 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21964 ;; 21965 x:*) 21966 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21967 ;; 21968 *::*) 21969 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21970 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21971 ;; 21972 *) 21973 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21974 ;; 21975 esac 21976} 21977 21978 21979# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21980func_cc_basename () 21981{ 21982 for cc_temp in $*""; do 21983 case $cc_temp in 21984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21986 \-*) ;; 21987 *) break;; 21988 esac 21989 done 21990 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21991} 21992 21993 21994# ### END FUNCTIONS SHARED WITH CONFIGURE 21995 21996_LT_EOF 21997 21998 case $host_os in 21999 aix3*) 22000 cat <<\_LT_EOF >> "$cfgfile" 22001# AIX sometimes has problems with the GCC collect2 program. For some 22002# reason, if we set the COLLECT_NAMES environment variable, the problems 22003# vanish in a puff of smoke. 22004if test set != "${COLLECT_NAMES+set}"; then 22005 COLLECT_NAMES= 22006 export COLLECT_NAMES 22007fi 22008_LT_EOF 22009 ;; 22010 esac 22011 22012 22013 22014ltmain=$ac_aux_dir/ltmain.sh 22015 22016 22017 # We use sed instead of cat because bash on DJGPP gets confused if 22018 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22019 # text mode, it properly converts lines to CR/LF. This bash problem 22020 # is reportedly fixed, but why not run on old versions too? 22021 $SED '$q' "$ltmain" >> "$cfgfile" \ 22022 || (rm -f "$cfgfile"; exit 1) 22023 22024 mv -f "$cfgfile" "$ofile" || 22025 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22026 chmod +x "$ofile" 22027 22028 ;; 22029 22030 esac 22031done # for ac_tag 22032 22033 22034as_fn_exit 0 22035_ACEOF 22036ac_clean_files=$ac_clean_files_save 22037 22038test $ac_write_fail = 0 || 22039 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22040 22041 22042# configure is writing to config.log, and then calls config.status. 22043# config.status does its own redirection, appending to config.log. 22044# Unfortunately, on DOS this fails, as config.log is still kept open 22045# by configure, so config.status won't be able to write to it; its 22046# output is simply discarded. So we exec the FD to /dev/null, 22047# effectively closing config.log, so it can be properly (re)opened and 22048# appended to by config.status. When coming back to configure, we 22049# need to make the FD available again. 22050if test "$no_create" != yes; then 22051 ac_cs_success=: 22052 ac_config_status_args= 22053 test "$silent" = yes && 22054 ac_config_status_args="$ac_config_status_args --quiet" 22055 exec 5>/dev/null 22056 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22057 exec 5>>config.log 22058 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22059 # would make configure fail if this is the last instruction. 22060 $ac_cs_success || as_fn_exit 1 22061fi 22062if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22064printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22065fi 22066 22067 22068