1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-neomagic 1.3.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-neomagic/-/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-neomagic/-/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-neomagic' 624PACKAGE_TARNAME='xf86-video-neomagic' 625PACKAGE_VERSION='1.3.1' 626PACKAGE_STRING='xf86-video-neomagic 1.3.1' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-neomagic/-/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 669XSERVER_LIBPCIACCESS_FALSE 670XSERVER_LIBPCIACCESS_TRUE 671PCIACCESS_LIBS 672PCIACCESS_CFLAGS 673XAA_FALSE 674XAA_TRUE 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 746AM_BACKSLASH 747AM_DEFAULT_VERBOSITY 748AM_DEFAULT_V 749AM_V 750CSCOPE 751ETAGS 752CTAGS 753am__untar 754am__tar 755AMTAR 756am__leading_dot 757SET_MAKE 758AWK 759mkdir_p 760MKDIR_P 761INSTALL_STRIP_PROGRAM 762STRIP 763install_sh 764MAKEINFO 765AUTOHEADER 766AUTOMAKE 767AUTOCONF 768ACLOCAL 769VERSION 770PACKAGE 771CYGPATH_W 772am__isrc 773INSTALL_DATA 774INSTALL_SCRIPT 775INSTALL_PROGRAM 776target_alias 777host_alias 778build_alias 779LIBS 780ECHO_T 781ECHO_N 782ECHO_C 783DEFS 784mandir 785localedir 786libdir 787psdir 788pdfdir 789dvidir 790htmldir 791infodir 792docdir 793oldincludedir 794includedir 795runstatedir 796localstatedir 797sharedstatedir 798sysconfdir 799datadir 800datarootdir 801libexecdir 802sbindir 803bindir 804program_transform_name 805prefix 806exec_prefix 807PACKAGE_URL 808PACKAGE_BUGREPORT 809PACKAGE_STRING 810PACKAGE_VERSION 811PACKAGE_TARNAME 812PACKAGE_NAME 813PATH_SEPARATOR 814SHELL 815am__quote' 816ac_subst_files='' 817ac_user_opts=' 818enable_option_checking 819enable_silent_rules 820enable_dependency_tracking 821enable_selective_werror 822enable_strict_compilation 823enable_static 824enable_shared 825with_pic 826enable_fast_install 827with_aix_soname 828with_gnu_ld 829with_sysroot 830enable_libtool_lock 831with_xorg_module_dir 832enable_xaa 833' 834 ac_precious_vars='build_alias 835host_alias 836target_alias 837CC 838CFLAGS 839LDFLAGS 840LIBS 841CPPFLAGS 842PKG_CONFIG 843PKG_CONFIG_PATH 844PKG_CONFIG_LIBDIR 845LT_SYS_LIBRARY_PATH 846XORG_CFLAGS 847XORG_LIBS 848PCIACCESS_CFLAGS 849PCIACCESS_LIBS' 850 851 852# Initialize some variables set by options. 853ac_init_help= 854ac_init_version=false 855ac_unrecognized_opts= 856ac_unrecognized_sep= 857# The variables have the same names as the options, with 858# dashes changed to underlines. 859cache_file=/dev/null 860exec_prefix=NONE 861no_create= 862no_recursion= 863prefix=NONE 864program_prefix=NONE 865program_suffix=NONE 866program_transform_name=s,x,x, 867silent= 868site= 869srcdir= 870verbose= 871x_includes=NONE 872x_libraries=NONE 873 874# Installation directory options. 875# These are left unexpanded so users can "make install exec_prefix=/foo" 876# and all the variables that are supposed to be based on exec_prefix 877# by default will actually change. 878# Use braces instead of parens because sh, perl, etc. also accept them. 879# (The list follows the same order as the GNU Coding Standards.) 880bindir='${exec_prefix}/bin' 881sbindir='${exec_prefix}/sbin' 882libexecdir='${exec_prefix}/libexec' 883datarootdir='${prefix}/share' 884datadir='${datarootdir}' 885sysconfdir='${prefix}/etc' 886sharedstatedir='${prefix}/com' 887localstatedir='${prefix}/var' 888runstatedir='${localstatedir}/run' 889includedir='${prefix}/include' 890oldincludedir='/usr/include' 891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 892infodir='${datarootdir}/info' 893htmldir='${docdir}' 894dvidir='${docdir}' 895pdfdir='${docdir}' 896psdir='${docdir}' 897libdir='${exec_prefix}/lib' 898localedir='${datarootdir}/locale' 899mandir='${datarootdir}/man' 900 901ac_prev= 902ac_dashdash= 903for ac_option 904do 905 # If the previous option needs an argument, assign it. 906 if test -n "$ac_prev"; then 907 eval $ac_prev=\$ac_option 908 ac_prev= 909 continue 910 fi 911 912 case $ac_option in 913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 914 *=) ac_optarg= ;; 915 *) ac_optarg=yes ;; 916 esac 917 918 case $ac_dashdash$ac_option in 919 --) 920 ac_dashdash=yes ;; 921 922 -bindir | --bindir | --bindi | --bind | --bin | --bi) 923 ac_prev=bindir ;; 924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 925 bindir=$ac_optarg ;; 926 927 -build | --build | --buil | --bui | --bu) 928 ac_prev=build_alias ;; 929 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 930 build_alias=$ac_optarg ;; 931 932 -cache-file | --cache-file | --cache-fil | --cache-fi \ 933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 934 ac_prev=cache_file ;; 935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 937 cache_file=$ac_optarg ;; 938 939 --config-cache | -C) 940 cache_file=config.cache ;; 941 942 -datadir | --datadir | --datadi | --datad) 943 ac_prev=datadir ;; 944 -datadir=* | --datadir=* | --datadi=* | --datad=*) 945 datadir=$ac_optarg ;; 946 947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 948 | --dataroo | --dataro | --datar) 949 ac_prev=datarootdir ;; 950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 952 datarootdir=$ac_optarg ;; 953 954 -disable-* | --disable-*) 955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 956 # Reject names that are not valid shell variable names. 957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 958 as_fn_error $? "invalid feature name: \`$ac_useropt'" 959 ac_useropt_orig=$ac_useropt 960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 961 case $ac_user_opts in 962 *" 963"enable_$ac_useropt" 964"*) ;; 965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 966 ac_unrecognized_sep=', ';; 967 esac 968 eval enable_$ac_useropt=no ;; 969 970 -docdir | --docdir | --docdi | --doc | --do) 971 ac_prev=docdir ;; 972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 973 docdir=$ac_optarg ;; 974 975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 976 ac_prev=dvidir ;; 977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 978 dvidir=$ac_optarg ;; 979 980 -enable-* | --enable-*) 981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 982 # Reject names that are not valid shell variable names. 983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 984 as_fn_error $? "invalid feature name: \`$ac_useropt'" 985 ac_useropt_orig=$ac_useropt 986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 987 case $ac_user_opts in 988 *" 989"enable_$ac_useropt" 990"*) ;; 991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 992 ac_unrecognized_sep=', ';; 993 esac 994 eval enable_$ac_useropt=\$ac_optarg ;; 995 996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 998 | --exec | --exe | --ex) 999 ac_prev=exec_prefix ;; 1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1002 | --exec=* | --exe=* | --ex=*) 1003 exec_prefix=$ac_optarg ;; 1004 1005 -gas | --gas | --ga | --g) 1006 # Obsolete; use --with-gas. 1007 with_gas=yes ;; 1008 1009 -help | --help | --hel | --he | -h) 1010 ac_init_help=long ;; 1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1012 ac_init_help=recursive ;; 1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1014 ac_init_help=short ;; 1015 1016 -host | --host | --hos | --ho) 1017 ac_prev=host_alias ;; 1018 -host=* | --host=* | --hos=* | --ho=*) 1019 host_alias=$ac_optarg ;; 1020 1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1022 ac_prev=htmldir ;; 1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1024 | --ht=*) 1025 htmldir=$ac_optarg ;; 1026 1027 -includedir | --includedir | --includedi | --included | --include \ 1028 | --includ | --inclu | --incl | --inc) 1029 ac_prev=includedir ;; 1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1031 | --includ=* | --inclu=* | --incl=* | --inc=*) 1032 includedir=$ac_optarg ;; 1033 1034 -infodir | --infodir | --infodi | --infod | --info | --inf) 1035 ac_prev=infodir ;; 1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1037 infodir=$ac_optarg ;; 1038 1039 -libdir | --libdir | --libdi | --libd) 1040 ac_prev=libdir ;; 1041 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1042 libdir=$ac_optarg ;; 1043 1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1045 | --libexe | --libex | --libe) 1046 ac_prev=libexecdir ;; 1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1048 | --libexe=* | --libex=* | --libe=*) 1049 libexecdir=$ac_optarg ;; 1050 1051 -localedir | --localedir | --localedi | --localed | --locale) 1052 ac_prev=localedir ;; 1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1054 localedir=$ac_optarg ;; 1055 1056 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1057 | --localstate | --localstat | --localsta | --localst | --locals) 1058 ac_prev=localstatedir ;; 1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1061 localstatedir=$ac_optarg ;; 1062 1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1064 ac_prev=mandir ;; 1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1066 mandir=$ac_optarg ;; 1067 1068 -nfp | --nfp | --nf) 1069 # Obsolete; use --without-fp. 1070 with_fp=no ;; 1071 1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1073 | --no-cr | --no-c | -n) 1074 no_create=yes ;; 1075 1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1078 no_recursion=yes ;; 1079 1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1082 | --oldin | --oldi | --old | --ol | --o) 1083 ac_prev=oldincludedir ;; 1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1087 oldincludedir=$ac_optarg ;; 1088 1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1090 ac_prev=prefix ;; 1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1092 prefix=$ac_optarg ;; 1093 1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1095 | --program-pre | --program-pr | --program-p) 1096 ac_prev=program_prefix ;; 1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1099 program_prefix=$ac_optarg ;; 1100 1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1102 | --program-suf | --program-su | --program-s) 1103 ac_prev=program_suffix ;; 1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1106 program_suffix=$ac_optarg ;; 1107 1108 -program-transform-name | --program-transform-name \ 1109 | --program-transform-nam | --program-transform-na \ 1110 | --program-transform-n | --program-transform- \ 1111 | --program-transform | --program-transfor \ 1112 | --program-transfo | --program-transf \ 1113 | --program-trans | --program-tran \ 1114 | --progr-tra | --program-tr | --program-t) 1115 ac_prev=program_transform_name ;; 1116 -program-transform-name=* | --program-transform-name=* \ 1117 | --program-transform-nam=* | --program-transform-na=* \ 1118 | --program-transform-n=* | --program-transform-=* \ 1119 | --program-transform=* | --program-transfor=* \ 1120 | --program-transfo=* | --program-transf=* \ 1121 | --program-trans=* | --program-tran=* \ 1122 | --progr-tra=* | --program-tr=* | --program-t=*) 1123 program_transform_name=$ac_optarg ;; 1124 1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1126 ac_prev=pdfdir ;; 1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1128 pdfdir=$ac_optarg ;; 1129 1130 -psdir | --psdir | --psdi | --psd | --ps) 1131 ac_prev=psdir ;; 1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1133 psdir=$ac_optarg ;; 1134 1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1136 | -silent | --silent | --silen | --sile | --sil) 1137 silent=yes ;; 1138 1139 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1140 | --runstate | --runstat | --runsta | --runst | --runs \ 1141 | --run | --ru | --r) 1142 ac_prev=runstatedir ;; 1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1145 | --run=* | --ru=* | --r=*) 1146 runstatedir=$ac_optarg ;; 1147 1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1149 ac_prev=sbindir ;; 1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1151 | --sbi=* | --sb=*) 1152 sbindir=$ac_optarg ;; 1153 1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1156 | --sharedst | --shareds | --shared | --share | --shar \ 1157 | --sha | --sh) 1158 ac_prev=sharedstatedir ;; 1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1162 | --sha=* | --sh=*) 1163 sharedstatedir=$ac_optarg ;; 1164 1165 -site | --site | --sit) 1166 ac_prev=site ;; 1167 -site=* | --site=* | --sit=*) 1168 site=$ac_optarg ;; 1169 1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1171 ac_prev=srcdir ;; 1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1173 srcdir=$ac_optarg ;; 1174 1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1176 | --syscon | --sysco | --sysc | --sys | --sy) 1177 ac_prev=sysconfdir ;; 1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1180 sysconfdir=$ac_optarg ;; 1181 1182 -target | --target | --targe | --targ | --tar | --ta | --t) 1183 ac_prev=target_alias ;; 1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1185 target_alias=$ac_optarg ;; 1186 1187 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1188 verbose=yes ;; 1189 1190 -version | --version | --versio | --versi | --vers | -V) 1191 ac_init_version=: ;; 1192 1193 -with-* | --with-*) 1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1195 # Reject names that are not valid shell variable names. 1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1197 as_fn_error $? "invalid package name: \`$ac_useropt'" 1198 ac_useropt_orig=$ac_useropt 1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1200 case $ac_user_opts in 1201 *" 1202"with_$ac_useropt" 1203"*) ;; 1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1205 ac_unrecognized_sep=', ';; 1206 esac 1207 eval with_$ac_useropt=\$ac_optarg ;; 1208 1209 -without-* | --without-*) 1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1211 # Reject names that are not valid shell variable names. 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1213 as_fn_error $? "invalid package name: \`$ac_useropt'" 1214 ac_useropt_orig=$ac_useropt 1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1216 case $ac_user_opts in 1217 *" 1218"with_$ac_useropt" 1219"*) ;; 1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1221 ac_unrecognized_sep=', ';; 1222 esac 1223 eval with_$ac_useropt=no ;; 1224 1225 --x) 1226 # Obsolete; use --with-x. 1227 with_x=yes ;; 1228 1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1230 | --x-incl | --x-inc | --x-in | --x-i) 1231 ac_prev=x_includes ;; 1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1234 x_includes=$ac_optarg ;; 1235 1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1238 ac_prev=x_libraries ;; 1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1241 x_libraries=$ac_optarg ;; 1242 1243 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1244Try \`$0 --help' for more information" 1245 ;; 1246 1247 *=*) 1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1249 # Reject names that are not valid shell variable names. 1250 case $ac_envvar in #( 1251 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1253 esac 1254 eval $ac_envvar=\$ac_optarg 1255 export $ac_envvar ;; 1256 1257 *) 1258 # FIXME: should be removed in autoconf 3.0. 1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1263 ;; 1264 1265 esac 1266done 1267 1268if test -n "$ac_prev"; then 1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1270 as_fn_error $? "missing argument to $ac_option" 1271fi 1272 1273if test -n "$ac_unrecognized_opts"; then 1274 case $enable_option_checking in 1275 no) ;; 1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1278 esac 1279fi 1280 1281# Check all directory arguments for consistency. 1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1283 datadir sysconfdir sharedstatedir localstatedir includedir \ 1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1285 libdir localedir mandir runstatedir 1286do 1287 eval ac_val=\$$ac_var 1288 # Remove trailing slashes. 1289 case $ac_val in 1290 */ ) 1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1292 eval $ac_var=\$ac_val;; 1293 esac 1294 # Be sure to have absolute directory names. 1295 case $ac_val in 1296 [\\/$]* | ?:[\\/]* ) continue;; 1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1298 esac 1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1300done 1301 1302# There might be people who depend on the old broken behavior: `$host' 1303# used to hold the argument of --host etc. 1304# FIXME: To remove some day. 1305build=$build_alias 1306host=$host_alias 1307target=$target_alias 1308 1309# FIXME: To remove some day. 1310if test "x$host_alias" != x; then 1311 if test "x$build_alias" = x; then 1312 cross_compiling=maybe 1313 elif test "x$build_alias" != "x$host_alias"; then 1314 cross_compiling=yes 1315 fi 1316fi 1317 1318ac_tool_prefix= 1319test -n "$host_alias" && ac_tool_prefix=$host_alias- 1320 1321test "$silent" = yes && exec 6>/dev/null 1322 1323 1324ac_pwd=`pwd` && test -n "$ac_pwd" && 1325ac_ls_di=`ls -di .` && 1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1327 as_fn_error $? "working directory cannot be determined" 1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1329 as_fn_error $? "pwd does not report name of working directory" 1330 1331 1332# Find the source files, if location was not specified. 1333if test -z "$srcdir"; then 1334 ac_srcdir_defaulted=yes 1335 # Try the directory containing this script, then the parent directory. 1336 ac_confdir=`$as_dirname -- "$as_myself" || 1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1338 X"$as_myself" : 'X\(//\)[^/]' \| \ 1339 X"$as_myself" : 'X\(//\)$' \| \ 1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1341printf "%s\n" X"$as_myself" | 1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\/\)[^/].*/{ 1347 s//\1/ 1348 q 1349 } 1350 /^X\(\/\/\)$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\).*/{ 1355 s//\1/ 1356 q 1357 } 1358 s/.*/./; q'` 1359 srcdir=$ac_confdir 1360 if test ! -r "$srcdir/$ac_unique_file"; then 1361 srcdir=.. 1362 fi 1363else 1364 ac_srcdir_defaulted=no 1365fi 1366if test ! -r "$srcdir/$ac_unique_file"; then 1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1369fi 1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1371ac_abs_confdir=`( 1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1373 pwd)` 1374# When building in place, set srcdir=. 1375if test "$ac_abs_confdir" = "$ac_pwd"; then 1376 srcdir=. 1377fi 1378# Remove unnecessary trailing slashes from srcdir. 1379# Double slashes in file names in object file debugging info 1380# mess up M-x gdb in Emacs. 1381case $srcdir in 1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1383esac 1384for ac_var in $ac_precious_vars; do 1385 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1386 eval ac_env_${ac_var}_value=\$${ac_var} 1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1389done 1390 1391# 1392# Report the --help message. 1393# 1394if test "$ac_init_help" = "long"; then 1395 # Omit some internal or obsolete options to make the list less imposing. 1396 # This message is too long to be a string in the A/UX 3.1 sh. 1397 cat <<_ACEOF 1398\`configure' configures xf86-video-neomagic 1.3.1 to adapt to many kinds of systems. 1399 1400Usage: $0 [OPTION]... [VAR=VALUE]... 1401 1402To assign environment variables (e.g., CC, CFLAGS...), specify them as 1403VAR=VALUE. See below for descriptions of some of the useful variables. 1404 1405Defaults for the options are specified in brackets. 1406 1407Configuration: 1408 -h, --help display this help and exit 1409 --help=short display options specific to this package 1410 --help=recursive display the short help of all the included packages 1411 -V, --version display version information and exit 1412 -q, --quiet, --silent do not print \`checking ...' messages 1413 --cache-file=FILE cache test results in FILE [disabled] 1414 -C, --config-cache alias for \`--cache-file=config.cache' 1415 -n, --no-create do not create output files 1416 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1417 1418Installation directories: 1419 --prefix=PREFIX install architecture-independent files in PREFIX 1420 [$ac_default_prefix] 1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1422 [PREFIX] 1423 1424By default, \`make install' will install all the files in 1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1426an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1427for instance \`--prefix=\$HOME'. 1428 1429For better control, use the options below. 1430 1431Fine tuning of the installation directories: 1432 --bindir=DIR user executables [EPREFIX/bin] 1433 --sbindir=DIR system admin executables [EPREFIX/sbin] 1434 --libexecdir=DIR program executables [EPREFIX/libexec] 1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1439 --libdir=DIR object code libraries [EPREFIX/lib] 1440 --includedir=DIR C header files [PREFIX/include] 1441 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1444 --infodir=DIR info documentation [DATAROOTDIR/info] 1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1446 --mandir=DIR man documentation [DATAROOTDIR/man] 1447 --docdir=DIR documentation root 1448 [DATAROOTDIR/doc/xf86-video-neomagic] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462System types: 1463 --build=BUILD configure for building on BUILD [guessed] 1464 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 case $ac_init_help in 1470 short | recursive ) echo "Configuration of xf86-video-neomagic 1.3.1:";; 1471 esac 1472 cat <<\_ACEOF 1473 1474Optional Features: 1475 --disable-option-checking ignore unrecognized --enable/--with options 1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1478 --enable-silent-rules less verbose build output (undo: "make V=1") 1479 --disable-silent-rules verbose build output (undo: "make V=0") 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --disable-selective-werror 1485 Turn off selective compiler errors. (default: 1486 enabled) 1487 --enable-strict-compilation 1488 Enable all warnings from compiler and make them 1489 errors (default: disabled) 1490 --enable-static[=PKGS] build static libraries [default=no] 1491 --enable-shared[=PKGS] build shared libraries [default=yes] 1492 --enable-fast-install[=PKGS] 1493 optimize for fast installation [default=yes] 1494 --disable-libtool-lock avoid locking (might break parallel builds) 1495 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1496 [default=auto] 1497 1498Optional Packages: 1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1502 both] 1503 --with-aix-soname=aix|svr4|both 1504 shared library versioning (aka "SONAME") variant to 1505 provide on AIX, [default=aix]. 1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1507 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1508 compiler's sysroot if not specified). 1509 --with-xorg-module-dir=DIR 1510 Default xorg module directory 1511 [[default=$libdir/xorg/modules]] 1512 1513Some influential environment variables: 1514 CC C compiler command 1515 CFLAGS C compiler flags 1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1517 nonstandard directory <lib dir> 1518 LIBS libraries to pass to the linker, e.g. -l<library> 1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1520 you have headers in a nonstandard directory <include dir> 1521 PKG_CONFIG path to pkg-config utility 1522 PKG_CONFIG_PATH 1523 directories to add to pkg-config's search path 1524 PKG_CONFIG_LIBDIR 1525 path overriding pkg-config's built-in search path 1526 LT_SYS_LIBRARY_PATH 1527 User-defined run-time library search path. 1528 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1529 XORG_LIBS linker flags for XORG, overriding pkg-config 1530 PCIACCESS_CFLAGS 1531 C compiler flags for PCIACCESS, overriding pkg-config 1532 PCIACCESS_LIBS 1533 linker flags for PCIACCESS, overriding pkg-config 1534 1535Use these variables to override the choices made by `configure' or to help 1536it to find libraries and programs with nonstandard names/locations. 1537 1538Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-neomagic/-/issues>. 1539_ACEOF 1540ac_status=$? 1541fi 1542 1543if test "$ac_init_help" = "recursive"; then 1544 # If there are subdirs, report their specific --help. 1545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1546 test -d "$ac_dir" || 1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1548 continue 1549 ac_builddir=. 1550 1551case "$ac_dir" in 1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1553*) 1554 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1555 # A ".." for each directory in $ac_dir_suffix. 1556 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1557 case $ac_top_builddir_sub in 1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1560 esac ;; 1561esac 1562ac_abs_top_builddir=$ac_pwd 1563ac_abs_builddir=$ac_pwd$ac_dir_suffix 1564# for backward compatibility: 1565ac_top_builddir=$ac_top_build_prefix 1566 1567case $srcdir in 1568 .) # We are building in place. 1569 ac_srcdir=. 1570 ac_top_srcdir=$ac_top_builddir_sub 1571 ac_abs_top_srcdir=$ac_pwd ;; 1572 [\\/]* | ?:[\\/]* ) # Absolute name. 1573 ac_srcdir=$srcdir$ac_dir_suffix; 1574 ac_top_srcdir=$srcdir 1575 ac_abs_top_srcdir=$srcdir ;; 1576 *) # Relative name. 1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1578 ac_top_srcdir=$ac_top_build_prefix$srcdir 1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1580esac 1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1582 1583 cd "$ac_dir" || { ac_status=$?; continue; } 1584 # Check for configure.gnu first; this name is used for a wrapper for 1585 # Metaconfig's "Configure" on case-insensitive file systems. 1586 if test -f "$ac_srcdir/configure.gnu"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1589 elif test -f "$ac_srcdir/configure"; then 1590 echo && 1591 $SHELL "$ac_srcdir/configure" --help=recursive 1592 else 1593 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1594 fi || ac_status=$? 1595 cd "$ac_pwd" || { ac_status=$?; break; } 1596 done 1597fi 1598 1599test -n "$ac_init_help" && exit $ac_status 1600if $ac_init_version; then 1601 cat <<\_ACEOF 1602xf86-video-neomagic configure 1.3.1 1603generated by GNU Autoconf 2.71 1604 1605Copyright (C) 2021 Free Software Foundation, Inc. 1606This configure script is free software; the Free Software Foundation 1607gives unlimited permission to copy, distribute and modify it. 1608_ACEOF 1609 exit 1610fi 1611 1612## ------------------------ ## 1613## Autoconf initialization. ## 1614## ------------------------ ## 1615 1616# ac_fn_c_try_compile LINENO 1617# -------------------------- 1618# Try to compile conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_c_try_compile () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 rm -f conftest.$ac_objext conftest.beam 1623 if { { ac_try="$ac_compile" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629printf "%s\n" "$ac_try_echo"; } >&5 1630 (eval "$ac_compile") 2>conftest.err 1631 ac_status=$? 1632 if test -s conftest.err; then 1633 grep -v '^ *+' conftest.err >conftest.er1 1634 cat conftest.er1 >&5 1635 mv -f conftest.er1 conftest.err 1636 fi 1637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } && { 1639 test -z "$ac_c_werror_flag" || 1640 test ! -s conftest.err 1641 } && test -s conftest.$ac_objext 1642then : 1643 ac_retval=0 1644else $as_nop 1645 printf "%s\n" "$as_me: failed program was:" >&5 1646sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=1 1649fi 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653} # ac_fn_c_try_compile 1654 1655# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1656# ------------------------------------------------------------------ 1657# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1658# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1659ac_fn_check_decl () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 as_decl_name=`echo $2|sed 's/ *(.*//'` 1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1664printf %s "checking whether $as_decl_name is declared... " >&6; } 1665if eval test \${$3+y} 1666then : 1667 printf %s "(cached) " >&6 1668else $as_nop 1669 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1670 eval ac_save_FLAGS=\$$6 1671 as_fn_append $6 " $5" 1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1673/* end confdefs.h. */ 1674$4 1675int 1676main (void) 1677{ 1678#ifndef $as_decl_name 1679#ifdef __cplusplus 1680 (void) $as_decl_use; 1681#else 1682 (void) $as_decl_name; 1683#endif 1684#endif 1685 1686 ; 1687 return 0; 1688} 1689_ACEOF 1690if ac_fn_c_try_compile "$LINENO" 1691then : 1692 eval "$3=yes" 1693else $as_nop 1694 eval "$3=no" 1695fi 1696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1697 eval $6=\$ac_save_FLAGS 1698 1699fi 1700eval ac_res=\$$3 1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1702printf "%s\n" "$ac_res" >&6; } 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 1705} # ac_fn_check_decl 1706 1707# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1708# ------------------------------------------------------- 1709# Tests whether HEADER exists and can be compiled using the include files in 1710# INCLUDES, setting the cache variable VAR accordingly. 1711ac_fn_c_check_header_compile () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1715printf %s "checking for $2... " >&6; } 1716if eval test \${$3+y} 1717then : 1718 printf %s "(cached) " >&6 1719else $as_nop 1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722$4 1723#include <$2> 1724_ACEOF 1725if ac_fn_c_try_compile "$LINENO" 1726then : 1727 eval "$3=yes" 1728else $as_nop 1729 eval "$3=no" 1730fi 1731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1732fi 1733eval ac_res=\$$3 1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1735printf "%s\n" "$ac_res" >&6; } 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1737 1738} # ac_fn_c_check_header_compile 1739 1740# ac_fn_c_try_link LINENO 1741# ----------------------- 1742# Try to link conftest.$ac_ext, and return whether this succeeded. 1743ac_fn_c_try_link () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1747 if { { ac_try="$ac_link" 1748case "(($ac_try" in 1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1750 *) ac_try_echo=$ac_try;; 1751esac 1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1753printf "%s\n" "$ac_try_echo"; } >&5 1754 (eval "$ac_link") 2>conftest.err 1755 ac_status=$? 1756 if test -s conftest.err; then 1757 grep -v '^ *+' conftest.err >conftest.er1 1758 cat conftest.er1 >&5 1759 mv -f conftest.er1 conftest.err 1760 fi 1761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1762 test $ac_status = 0; } && { 1763 test -z "$ac_c_werror_flag" || 1764 test ! -s conftest.err 1765 } && test -s conftest$ac_exeext && { 1766 test "$cross_compiling" = yes || 1767 test -x conftest$ac_exeext 1768 } 1769then : 1770 ac_retval=0 1771else $as_nop 1772 printf "%s\n" "$as_me: failed program was:" >&5 1773sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=1 1776fi 1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1779 # interfere with the next link command; also delete a directory that is 1780 # left behind by Apple's compiler. We do this before executing the actions. 1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 as_fn_set_status $ac_retval 1784 1785} # ac_fn_c_try_link 1786 1787# ac_fn_c_check_func LINENO FUNC VAR 1788# ---------------------------------- 1789# Tests whether FUNC exists, setting the cache variable VAR accordingly 1790ac_fn_c_check_func () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794printf %s "checking for $2... " >&6; } 1795if eval test \${$3+y} 1796then : 1797 printf %s "(cached) " >&6 1798else $as_nop 1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1800/* end confdefs.h. */ 1801/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1802 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1803#define $2 innocuous_$2 1804 1805/* System header to define __stub macros and hopefully few prototypes, 1806 which can conflict with char $2 (); below. */ 1807 1808#include <limits.h> 1809#undef $2 1810 1811/* Override any GCC internal prototype to avoid an error. 1812 Use char because int might match the return type of a GCC 1813 builtin and then its argument prototype would still apply. */ 1814#ifdef __cplusplus 1815extern "C" 1816#endif 1817char $2 (); 1818/* The GNU C library defines this for functions which it implements 1819 to always fail with ENOSYS. Some functions are actually named 1820 something starting with __ and the normal name is an alias. */ 1821#if defined __stub_$2 || defined __stub___$2 1822choke me 1823#endif 1824 1825int 1826main (void) 1827{ 1828return $2 (); 1829 ; 1830 return 0; 1831} 1832_ACEOF 1833if ac_fn_c_try_link "$LINENO" 1834then : 1835 eval "$3=yes" 1836else $as_nop 1837 eval "$3=no" 1838fi 1839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1840 conftest$ac_exeext conftest.$ac_ext 1841fi 1842eval ac_res=\$$3 1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1844printf "%s\n" "$ac_res" >&6; } 1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1846 1847} # ac_fn_c_check_func 1848ac_configure_args_raw= 1849for ac_arg 1850do 1851 case $ac_arg in 1852 *\'*) 1853 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1854 esac 1855 as_fn_append ac_configure_args_raw " '$ac_arg'" 1856done 1857 1858case $ac_configure_args_raw in 1859 *$as_nl*) 1860 ac_safe_unquote= ;; 1861 *) 1862 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1863 ac_unsafe_a="$ac_unsafe_z#~" 1864 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1865 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1866esac 1867 1868cat >config.log <<_ACEOF 1869This file contains any messages produced by compilers while 1870running configure, to aid debugging if configure makes a mistake. 1871 1872It was created by xf86-video-neomagic $as_me 1.3.1, which was 1873generated by GNU Autoconf 2.71. Invocation command line was 1874 1875 $ $0$ac_configure_args_raw 1876 1877_ACEOF 1878exec 5>>config.log 1879{ 1880cat <<_ASUNAME 1881## --------- ## 1882## Platform. ## 1883## --------- ## 1884 1885hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1886uname -m = `(uname -m) 2>/dev/null || echo unknown` 1887uname -r = `(uname -r) 2>/dev/null || echo unknown` 1888uname -s = `(uname -s) 2>/dev/null || echo unknown` 1889uname -v = `(uname -v) 2>/dev/null || echo unknown` 1890 1891/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1892/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1893 1894/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1895/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1896/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1897/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1898/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1899/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1900/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1901 1902_ASUNAME 1903 1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1905for as_dir in $PATH 1906do 1907 IFS=$as_save_IFS 1908 case $as_dir in #((( 1909 '') as_dir=./ ;; 1910 */) ;; 1911 *) as_dir=$as_dir/ ;; 1912 esac 1913 printf "%s\n" "PATH: $as_dir" 1914 done 1915IFS=$as_save_IFS 1916 1917} >&5 1918 1919cat >&5 <<_ACEOF 1920 1921 1922## ----------- ## 1923## Core tests. ## 1924## ----------- ## 1925 1926_ACEOF 1927 1928 1929# Keep a trace of the command line. 1930# Strip out --no-create and --no-recursion so they do not pile up. 1931# Strip out --silent because we don't want to record it for future runs. 1932# Also quote any args containing shell meta-characters. 1933# Make two passes to allow for proper duplicate-argument suppression. 1934ac_configure_args= 1935ac_configure_args0= 1936ac_configure_args1= 1937ac_must_keep_next=false 1938for ac_pass in 1 2 1939do 1940 for ac_arg 1941 do 1942 case $ac_arg in 1943 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1945 | -silent | --silent | --silen | --sile | --sil) 1946 continue ;; 1947 *\'*) 1948 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1949 esac 1950 case $ac_pass in 1951 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1952 2) 1953 as_fn_append ac_configure_args1 " '$ac_arg'" 1954 if test $ac_must_keep_next = true; then 1955 ac_must_keep_next=false # Got value, back to normal. 1956 else 1957 case $ac_arg in 1958 *=* | --config-cache | -C | -disable-* | --disable-* \ 1959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1961 | -with-* | --with-* | -without-* | --without-* | --x) 1962 case "$ac_configure_args0 " in 1963 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1964 esac 1965 ;; 1966 -* ) ac_must_keep_next=true ;; 1967 esac 1968 fi 1969 as_fn_append ac_configure_args " '$ac_arg'" 1970 ;; 1971 esac 1972 done 1973done 1974{ ac_configure_args0=; unset ac_configure_args0;} 1975{ ac_configure_args1=; unset ac_configure_args1;} 1976 1977# When interrupted or exit'd, cleanup temporary files, and complete 1978# config.log. We remove comments because anyway the quotes in there 1979# would cause problems or look ugly. 1980# WARNING: Use '\'' to represent an apostrophe within the trap. 1981# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1982trap 'exit_status=$? 1983 # Sanitize IFS. 1984 IFS=" "" $as_nl" 1985 # Save into config.log some information that might help in debugging. 1986 { 1987 echo 1988 1989 printf "%s\n" "## ---------------- ## 1990## Cache variables. ## 1991## ---------------- ##" 1992 echo 1993 # The following way of writing the cache mishandles newlines in values, 1994( 1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1996 eval ac_val=\$$ac_var 1997 case $ac_val in #( 1998 *${as_nl}*) 1999 case $ac_var in #( 2000 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2001printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2002 esac 2003 case $ac_var in #( 2004 _ | IFS | as_nl) ;; #( 2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2006 *) { eval $ac_var=; unset $ac_var;} ;; 2007 esac ;; 2008 esac 2009 done 2010 (set) 2>&1 | 2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2012 *${as_nl}ac_space=\ *) 2013 sed -n \ 2014 "s/'\''/'\''\\\\'\'''\''/g; 2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2016 ;; #( 2017 *) 2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2019 ;; 2020 esac | 2021 sort 2022) 2023 echo 2024 2025 printf "%s\n" "## ----------------- ## 2026## Output variables. ## 2027## ----------------- ##" 2028 echo 2029 for ac_var in $ac_subst_vars 2030 do 2031 eval ac_val=\$$ac_var 2032 case $ac_val in 2033 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2034 esac 2035 printf "%s\n" "$ac_var='\''$ac_val'\''" 2036 done | sort 2037 echo 2038 2039 if test -n "$ac_subst_files"; then 2040 printf "%s\n" "## ------------------- ## 2041## File substitutions. ## 2042## ------------------- ##" 2043 echo 2044 for ac_var in $ac_subst_files 2045 do 2046 eval ac_val=\$$ac_var 2047 case $ac_val in 2048 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2049 esac 2050 printf "%s\n" "$ac_var='\''$ac_val'\''" 2051 done | sort 2052 echo 2053 fi 2054 2055 if test -s confdefs.h; then 2056 printf "%s\n" "## ----------- ## 2057## confdefs.h. ## 2058## ----------- ##" 2059 echo 2060 cat confdefs.h 2061 echo 2062 fi 2063 test "$ac_signal" != 0 && 2064 printf "%s\n" "$as_me: caught signal $ac_signal" 2065 printf "%s\n" "$as_me: exit $exit_status" 2066 } >&5 2067 rm -f core *.core core.conftest.* && 2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2069 exit $exit_status 2070' 0 2071for ac_signal in 1 2 13 15; do 2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2073done 2074ac_signal=0 2075 2076# confdefs.h avoids OS command line length limits that DEFS can exceed. 2077rm -f -r conftest* confdefs.h 2078 2079printf "%s\n" "/* confdefs.h */" > confdefs.h 2080 2081# Predefined preprocessor variables. 2082 2083printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2084 2085printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2086 2087printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2088 2089printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2090 2091printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2092 2093printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2094 2095 2096# Let the site file select an alternate cache file if it wants to. 2097# Prefer an explicitly selected file to automatically selected ones. 2098if test -n "$CONFIG_SITE"; then 2099 ac_site_files="$CONFIG_SITE" 2100elif test "x$prefix" != xNONE; then 2101 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2102else 2103 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2104fi 2105 2106for ac_site_file in $ac_site_files 2107do 2108 case $ac_site_file in #( 2109 */*) : 2110 ;; #( 2111 *) : 2112 ac_site_file=./$ac_site_file ;; 2113esac 2114 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2116printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2117 sed 's/^/| /' "$ac_site_file" >&5 2118 . "$ac_site_file" \ 2119 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2120printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2121as_fn_error $? "failed to load site script $ac_site_file 2122See \`config.log' for more details" "$LINENO" 5; } 2123 fi 2124done 2125 2126if test -r "$cache_file"; then 2127 # Some versions of bash will fail to source /dev/null (special files 2128 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2131printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2132 case $cache_file in 2133 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2134 *) . "./$cache_file";; 2135 esac 2136 fi 2137else 2138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2139printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2140 >$cache_file 2141fi 2142 2143# Test code for whether the C compiler supports C89 (global declarations) 2144ac_c_conftest_c89_globals=' 2145/* Does the compiler advertise C89 conformance? 2146 Do not test the value of __STDC__, because some compilers set it to 0 2147 while being otherwise adequately conformant. */ 2148#if !defined __STDC__ 2149# error "Compiler does not advertise C89 conformance" 2150#endif 2151 2152#include <stddef.h> 2153#include <stdarg.h> 2154struct stat; 2155/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2156struct buf { int x; }; 2157struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2158static char *e (p, i) 2159 char **p; 2160 int i; 2161{ 2162 return p[i]; 2163} 2164static char *f (char * (*g) (char **, int), char **p, ...) 2165{ 2166 char *s; 2167 va_list v; 2168 va_start (v,p); 2169 s = g (p, va_arg (v,int)); 2170 va_end (v); 2171 return s; 2172} 2173 2174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2175 function prototypes and stuff, but not \xHH hex character constants. 2176 These do not provoke an error unfortunately, instead are silently treated 2177 as an "x". The following induces an error, until -std is added to get 2178 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2179 array size at least. It is necessary to write \x00 == 0 to get something 2180 that is true only with -std. */ 2181int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2182 2183/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2184 inside strings and character constants. */ 2185#define FOO(x) '\''x'\'' 2186int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2187 2188int test (int i, double x); 2189struct s1 {int (*f) (int a);}; 2190struct s2 {int (*f) (double a);}; 2191int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2192 int, int);' 2193 2194# Test code for whether the C compiler supports C89 (body of main). 2195ac_c_conftest_c89_main=' 2196ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2197' 2198 2199# Test code for whether the C compiler supports C99 (global declarations) 2200ac_c_conftest_c99_globals=' 2201// Does the compiler advertise C99 conformance? 2202#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2203# error "Compiler does not advertise C99 conformance" 2204#endif 2205 2206#include <stdbool.h> 2207extern int puts (const char *); 2208extern int printf (const char *, ...); 2209extern int dprintf (int, const char *, ...); 2210extern void *malloc (size_t); 2211 2212// Check varargs macros. These examples are taken from C99 6.10.3.5. 2213// dprintf is used instead of fprintf to avoid needing to declare 2214// FILE and stderr. 2215#define debug(...) dprintf (2, __VA_ARGS__) 2216#define showlist(...) puts (#__VA_ARGS__) 2217#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2218static void 2219test_varargs_macros (void) 2220{ 2221 int x = 1234; 2222 int y = 5678; 2223 debug ("Flag"); 2224 debug ("X = %d\n", x); 2225 showlist (The first, second, and third items.); 2226 report (x>y, "x is %d but y is %d", x, y); 2227} 2228 2229// Check long long types. 2230#define BIG64 18446744073709551615ull 2231#define BIG32 4294967295ul 2232#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2233#if !BIG_OK 2234 #error "your preprocessor is broken" 2235#endif 2236#if BIG_OK 2237#else 2238 #error "your preprocessor is broken" 2239#endif 2240static long long int bignum = -9223372036854775807LL; 2241static unsigned long long int ubignum = BIG64; 2242 2243struct incomplete_array 2244{ 2245 int datasize; 2246 double data[]; 2247}; 2248 2249struct named_init { 2250 int number; 2251 const wchar_t *name; 2252 double average; 2253}; 2254 2255typedef const char *ccp; 2256 2257static inline int 2258test_restrict (ccp restrict text) 2259{ 2260 // See if C++-style comments work. 2261 // Iterate through items via the restricted pointer. 2262 // Also check for declarations in for loops. 2263 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2264 continue; 2265 return 0; 2266} 2267 2268// Check varargs and va_copy. 2269static bool 2270test_varargs (const char *format, ...) 2271{ 2272 va_list args; 2273 va_start (args, format); 2274 va_list args_copy; 2275 va_copy (args_copy, args); 2276 2277 const char *str = ""; 2278 int number = 0; 2279 float fnumber = 0; 2280 2281 while (*format) 2282 { 2283 switch (*format++) 2284 { 2285 case '\''s'\'': // string 2286 str = va_arg (args_copy, const char *); 2287 break; 2288 case '\''d'\'': // int 2289 number = va_arg (args_copy, int); 2290 break; 2291 case '\''f'\'': // float 2292 fnumber = va_arg (args_copy, double); 2293 break; 2294 default: 2295 break; 2296 } 2297 } 2298 va_end (args_copy); 2299 va_end (args); 2300 2301 return *str && number && fnumber; 2302} 2303' 2304 2305# Test code for whether the C compiler supports C99 (body of main). 2306ac_c_conftest_c99_main=' 2307 // Check bool. 2308 _Bool success = false; 2309 success |= (argc != 0); 2310 2311 // Check restrict. 2312 if (test_restrict ("String literal") == 0) 2313 success = true; 2314 char *restrict newvar = "Another string"; 2315 2316 // Check varargs. 2317 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2318 test_varargs_macros (); 2319 2320 // Check flexible array members. 2321 struct incomplete_array *ia = 2322 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2323 ia->datasize = 10; 2324 for (int i = 0; i < ia->datasize; ++i) 2325 ia->data[i] = i * 1.234; 2326 2327 // Check named initializers. 2328 struct named_init ni = { 2329 .number = 34, 2330 .name = L"Test wide string", 2331 .average = 543.34343, 2332 }; 2333 2334 ni.number = 58; 2335 2336 int dynamic_array[ni.number]; 2337 dynamic_array[0] = argv[0][0]; 2338 dynamic_array[ni.number - 1] = 543; 2339 2340 // work around unused variable warnings 2341 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2342 || dynamic_array[ni.number - 1] != 543); 2343' 2344 2345# Test code for whether the C compiler supports C11 (global declarations) 2346ac_c_conftest_c11_globals=' 2347// Does the compiler advertise C11 conformance? 2348#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2349# error "Compiler does not advertise C11 conformance" 2350#endif 2351 2352// Check _Alignas. 2353char _Alignas (double) aligned_as_double; 2354char _Alignas (0) no_special_alignment; 2355extern char aligned_as_int; 2356char _Alignas (0) _Alignas (int) aligned_as_int; 2357 2358// Check _Alignof. 2359enum 2360{ 2361 int_alignment = _Alignof (int), 2362 int_array_alignment = _Alignof (int[100]), 2363 char_alignment = _Alignof (char) 2364}; 2365_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2366 2367// Check _Noreturn. 2368int _Noreturn does_not_return (void) { for (;;) continue; } 2369 2370// Check _Static_assert. 2371struct test_static_assert 2372{ 2373 int x; 2374 _Static_assert (sizeof (int) <= sizeof (long int), 2375 "_Static_assert does not work in struct"); 2376 long int y; 2377}; 2378 2379// Check UTF-8 literals. 2380#define u8 syntax error! 2381char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2382 2383// Check duplicate typedefs. 2384typedef long *long_ptr; 2385typedef long int *long_ptr; 2386typedef long_ptr long_ptr; 2387 2388// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2389struct anonymous 2390{ 2391 union { 2392 struct { int i; int j; }; 2393 struct { int k; long int l; } w; 2394 }; 2395 int m; 2396} v1; 2397' 2398 2399# Test code for whether the C compiler supports C11 (body of main). 2400ac_c_conftest_c11_main=' 2401 _Static_assert ((offsetof (struct anonymous, i) 2402 == offsetof (struct anonymous, w.k)), 2403 "Anonymous union alignment botch"); 2404 v1.i = 2; 2405 v1.w.k = 5; 2406 ok |= v1.i != 5; 2407' 2408 2409# Test code for whether the C compiler supports C11 (complete). 2410ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2411${ac_c_conftest_c99_globals} 2412${ac_c_conftest_c11_globals} 2413 2414int 2415main (int argc, char **argv) 2416{ 2417 int ok = 0; 2418 ${ac_c_conftest_c89_main} 2419 ${ac_c_conftest_c99_main} 2420 ${ac_c_conftest_c11_main} 2421 return ok; 2422} 2423" 2424 2425# Test code for whether the C compiler supports C99 (complete). 2426ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2427${ac_c_conftest_c99_globals} 2428 2429int 2430main (int argc, char **argv) 2431{ 2432 int ok = 0; 2433 ${ac_c_conftest_c89_main} 2434 ${ac_c_conftest_c99_main} 2435 return ok; 2436} 2437" 2438 2439# Test code for whether the C compiler supports C89 (complete). 2440ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2441 2442int 2443main (int argc, char **argv) 2444{ 2445 int ok = 0; 2446 ${ac_c_conftest_c89_main} 2447 return ok; 2448} 2449" 2450 2451as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2452as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2453as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2454as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2455as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2456as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2457as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2458as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2459as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2460 2461# Auxiliary files required by this configure script. 2462ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2463 2464# Locations in which to look for auxiliary files. 2465ac_aux_dir_candidates="${srcdir}/." 2466 2467# Search for a directory containing all of the required auxiliary files, 2468# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2469# If we don't find one directory that contains all the files we need, 2470# we report the set of missing files from the *first* directory in 2471# $ac_aux_dir_candidates and give up. 2472ac_missing_aux_files="" 2473ac_first_candidate=: 2474printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476as_found=false 2477for as_dir in $ac_aux_dir_candidates 2478do 2479 IFS=$as_save_IFS 2480 case $as_dir in #((( 2481 '') as_dir=./ ;; 2482 */) ;; 2483 *) as_dir=$as_dir/ ;; 2484 esac 2485 as_found=: 2486 2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2488 ac_aux_dir_found=yes 2489 ac_install_sh= 2490 for ac_aux in $ac_aux_files 2491 do 2492 # As a special case, if "install-sh" is required, that requirement 2493 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2494 # and $ac_install_sh is set appropriately for whichever one is found. 2495 if test x"$ac_aux" = x"install-sh" 2496 then 2497 if test -f "${as_dir}install-sh"; then 2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2499 ac_install_sh="${as_dir}install-sh -c" 2500 elif test -f "${as_dir}install.sh"; then 2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2502 ac_install_sh="${as_dir}install.sh -c" 2503 elif test -f "${as_dir}shtool"; then 2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2505 ac_install_sh="${as_dir}shtool install -c" 2506 else 2507 ac_aux_dir_found=no 2508 if $ac_first_candidate; then 2509 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2510 else 2511 break 2512 fi 2513 fi 2514 else 2515 if test -f "${as_dir}${ac_aux}"; then 2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2517 else 2518 ac_aux_dir_found=no 2519 if $ac_first_candidate; then 2520 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2521 else 2522 break 2523 fi 2524 fi 2525 fi 2526 done 2527 if test "$ac_aux_dir_found" = yes; then 2528 ac_aux_dir="$as_dir" 2529 break 2530 fi 2531 ac_first_candidate=false 2532 2533 as_found=false 2534done 2535IFS=$as_save_IFS 2536if $as_found 2537then : 2538 2539else $as_nop 2540 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2541fi 2542 2543 2544# These three variables are undocumented and unsupported, 2545# and are intended to be withdrawn in a future Autoconf release. 2546# They can cause serious problems if a builder's source tree is in a directory 2547# whose full name contains unusual characters. 2548if test -f "${ac_aux_dir}config.guess"; then 2549 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2550fi 2551if test -f "${ac_aux_dir}config.sub"; then 2552 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2553fi 2554if test -f "$ac_aux_dir/configure"; then 2555 ac_configure="$SHELL ${ac_aux_dir}configure" 2556fi 2557 2558# Check that the precious variables saved in the cache have kept the same 2559# value. 2560ac_cache_corrupted=false 2561for ac_var in $ac_precious_vars; do 2562 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2563 eval ac_new_set=\$ac_env_${ac_var}_set 2564 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2565 eval ac_new_val=\$ac_env_${ac_var}_value 2566 case $ac_old_set,$ac_new_set in 2567 set,) 2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2569printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2570 ac_cache_corrupted=: ;; 2571 ,set) 2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2573printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2574 ac_cache_corrupted=: ;; 2575 ,);; 2576 *) 2577 if test "x$ac_old_val" != "x$ac_new_val"; then 2578 # differences in whitespace do not lead to failure. 2579 ac_old_val_w=`echo x $ac_old_val` 2580 ac_new_val_w=`echo x $ac_new_val` 2581 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2583printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2584 ac_cache_corrupted=: 2585 else 2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2587printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2588 eval $ac_var=\$ac_old_val 2589 fi 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2591printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2593printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2594 fi;; 2595 esac 2596 # Pass precious variables to config.status. 2597 if test "$ac_new_set" = set; then 2598 case $ac_new_val in 2599 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2600 *) ac_arg=$ac_var=$ac_new_val ;; 2601 esac 2602 case " $ac_configure_args " in 2603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2604 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2605 esac 2606 fi 2607done 2608if $ac_cache_corrupted; then 2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2610printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2612printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2613 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2614 and start over" "$LINENO" 5 2615fi 2616## -------------------- ## 2617## Main body of script. ## 2618## -------------------- ## 2619 2620ac_ext=c 2621ac_cpp='$CPP $CPPFLAGS' 2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2624ac_compiler_gnu=$ac_cv_c_compiler_gnu 2625 2626 2627 2628ac_config_headers="$ac_config_headers config.h" 2629 2630 2631 2632# Initialize Automake 2633am__api_version='1.16' 2634 2635 2636 2637 # Find a good install program. We prefer a C program (faster), 2638# so one script is as good as another. But avoid the broken or 2639# incompatible versions: 2640# SysV /etc/install, /usr/sbin/install 2641# SunOS /usr/etc/install 2642# IRIX /sbin/install 2643# AIX /bin/install 2644# AmigaOS /C/install, which installs bootblocks on floppy discs 2645# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2646# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2647# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2648# OS/2's system install, which has a completely different semantic 2649# ./install, which can be erroneously created by make from ./install.sh. 2650# Reject install programs that cannot install multiple files. 2651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2652printf %s "checking for a BSD-compatible install... " >&6; } 2653if test -z "$INSTALL"; then 2654if test ${ac_cv_path_install+y} 2655then : 2656 printf %s "(cached) " >&6 2657else $as_nop 2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2659for as_dir in $PATH 2660do 2661 IFS=$as_save_IFS 2662 case $as_dir in #((( 2663 '') as_dir=./ ;; 2664 */) ;; 2665 *) as_dir=$as_dir/ ;; 2666 esac 2667 # Account for fact that we put trailing slashes in our PATH walk. 2668case $as_dir in #(( 2669 ./ | /[cC]/* | \ 2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2671 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2672 /usr/ucb/* ) ;; 2673 *) 2674 # OSF1 and SCO ODT 3.0 have their own names for install. 2675 # Don't use installbsd from OSF since it installs stuff as root 2676 # by default. 2677 for ac_prog in ginstall scoinst install; do 2678 for ac_exec_ext in '' $ac_executable_extensions; do 2679 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2680 if test $ac_prog = install && 2681 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2682 # AIX install. It has an incompatible calling convention. 2683 : 2684 elif test $ac_prog = install && 2685 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2686 # program-specific install script used by HP pwplus--don't use. 2687 : 2688 else 2689 rm -rf conftest.one conftest.two conftest.dir 2690 echo one > conftest.one 2691 echo two > conftest.two 2692 mkdir conftest.dir 2693 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2694 test -s conftest.one && test -s conftest.two && 2695 test -s conftest.dir/conftest.one && 2696 test -s conftest.dir/conftest.two 2697 then 2698 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2699 break 3 2700 fi 2701 fi 2702 fi 2703 done 2704 done 2705 ;; 2706esac 2707 2708 done 2709IFS=$as_save_IFS 2710 2711rm -rf conftest.one conftest.two conftest.dir 2712 2713fi 2714 if test ${ac_cv_path_install+y}; then 2715 INSTALL=$ac_cv_path_install 2716 else 2717 # As a last resort, use the slow shell script. Don't cache a 2718 # value for INSTALL within a source directory, because that will 2719 # break other packages using the cache if that directory is 2720 # removed, or if the value is a relative name. 2721 INSTALL=$ac_install_sh 2722 fi 2723fi 2724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2725printf "%s\n" "$INSTALL" >&6; } 2726 2727# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2728# It thinks the first close brace ends the variable substitution. 2729test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2730 2731test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2732 2733test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2734 2735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2736printf %s "checking whether build environment is sane... " >&6; } 2737# Reject unsafe characters in $srcdir or the absolute working directory 2738# name. Accept space and tab only in the latter. 2739am_lf=' 2740' 2741case `pwd` in 2742 *[\\\"\#\$\&\'\`$am_lf]*) 2743 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2744esac 2745case $srcdir in 2746 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2747 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2748esac 2749 2750# Do 'set' in a subshell so we don't clobber the current shell's 2751# arguments. Must try -L first in case configure is actually a 2752# symlink; some systems play weird games with the mod time of symlinks 2753# (eg FreeBSD returns the mod time of the symlink's containing 2754# directory). 2755if ( 2756 am_has_slept=no 2757 for am_try in 1 2; do 2758 echo "timestamp, slept: $am_has_slept" > conftest.file 2759 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2760 if test "$*" = "X"; then 2761 # -L didn't work. 2762 set X `ls -t "$srcdir/configure" conftest.file` 2763 fi 2764 if test "$*" != "X $srcdir/configure conftest.file" \ 2765 && test "$*" != "X conftest.file $srcdir/configure"; then 2766 2767 # If neither matched, then we have a broken ls. This can happen 2768 # if, for instance, CONFIG_SHELL is bash and it inherits a 2769 # broken ls alias from the environment. This has actually 2770 # happened. Such a system could not be considered "sane". 2771 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2772 alias in your environment" "$LINENO" 5 2773 fi 2774 if test "$2" = conftest.file || test $am_try -eq 2; then 2775 break 2776 fi 2777 # Just in case. 2778 sleep 1 2779 am_has_slept=yes 2780 done 2781 test "$2" = conftest.file 2782 ) 2783then 2784 # Ok. 2785 : 2786else 2787 as_fn_error $? "newly created file is older than distributed files! 2788Check your system clock" "$LINENO" 5 2789fi 2790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2791printf "%s\n" "yes" >&6; } 2792# If we didn't sleep, we still need to ensure time stamps of config.status and 2793# generated files are strictly newer. 2794am_sleep_pid= 2795if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2796 ( sleep 1 ) & 2797 am_sleep_pid=$! 2798fi 2799 2800rm -f conftest.file 2801 2802test "$program_prefix" != NONE && 2803 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2804# Use a double $ so make ignores it. 2805test "$program_suffix" != NONE && 2806 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2807# Double any \ or $. 2808# By default was `s,x,x', remove it if useless. 2809ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2810program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2811 2812 2813# Expand $ac_aux_dir to an absolute path. 2814am_aux_dir=`cd "$ac_aux_dir" && pwd` 2815 2816 2817 if test x"${MISSING+set}" != xset; then 2818 MISSING="\${SHELL} '$am_aux_dir/missing'" 2819fi 2820# Use eval to expand $SHELL 2821if eval "$MISSING --is-lightweight"; then 2822 am_missing_run="$MISSING " 2823else 2824 am_missing_run= 2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2826printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2827fi 2828 2829if test x"${install_sh+set}" != xset; then 2830 case $am_aux_dir in 2831 *\ * | *\ *) 2832 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2833 *) 2834 install_sh="\${SHELL} $am_aux_dir/install-sh" 2835 esac 2836fi 2837 2838# Installed binaries are usually stripped using 'strip' when the user 2839# run "make install-strip". However 'strip' might not be the right 2840# tool to use in cross-compilation environments, therefore Automake 2841# will honor the 'STRIP' environment variable to overrule this program. 2842if test "$cross_compiling" != no; then 2843 if test -n "$ac_tool_prefix"; then 2844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2845set dummy ${ac_tool_prefix}strip; ac_word=$2 2846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2847printf %s "checking for $ac_word... " >&6; } 2848if test ${ac_cv_prog_STRIP+y} 2849then : 2850 printf %s "(cached) " >&6 2851else $as_nop 2852 if test -n "$STRIP"; then 2853 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2854else 2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856for as_dir in $PATH 2857do 2858 IFS=$as_save_IFS 2859 case $as_dir in #((( 2860 '') as_dir=./ ;; 2861 */) ;; 2862 *) as_dir=$as_dir/ ;; 2863 esac 2864 for ac_exec_ext in '' $ac_executable_extensions; do 2865 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2866 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2868 break 2 2869 fi 2870done 2871 done 2872IFS=$as_save_IFS 2873 2874fi 2875fi 2876STRIP=$ac_cv_prog_STRIP 2877if test -n "$STRIP"; then 2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2879printf "%s\n" "$STRIP" >&6; } 2880else 2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2882printf "%s\n" "no" >&6; } 2883fi 2884 2885 2886fi 2887if test -z "$ac_cv_prog_STRIP"; then 2888 ac_ct_STRIP=$STRIP 2889 # Extract the first word of "strip", so it can be a program name with args. 2890set dummy strip; ac_word=$2 2891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2892printf %s "checking for $ac_word... " >&6; } 2893if test ${ac_cv_prog_ac_ct_STRIP+y} 2894then : 2895 printf %s "(cached) " >&6 2896else $as_nop 2897 if test -n "$ac_ct_STRIP"; then 2898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2899else 2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901for as_dir in $PATH 2902do 2903 IFS=$as_save_IFS 2904 case $as_dir in #((( 2905 '') as_dir=./ ;; 2906 */) ;; 2907 *) as_dir=$as_dir/ ;; 2908 esac 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2911 ac_cv_prog_ac_ct_STRIP="strip" 2912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915done 2916 done 2917IFS=$as_save_IFS 2918 2919fi 2920fi 2921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2922if test -n "$ac_ct_STRIP"; then 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2924printf "%s\n" "$ac_ct_STRIP" >&6; } 2925else 2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927printf "%s\n" "no" >&6; } 2928fi 2929 2930 if test "x$ac_ct_STRIP" = x; then 2931 STRIP=":" 2932 else 2933 case $cross_compiling:$ac_tool_warned in 2934yes:) 2935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2936printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2937ac_tool_warned=yes ;; 2938esac 2939 STRIP=$ac_ct_STRIP 2940 fi 2941else 2942 STRIP="$ac_cv_prog_STRIP" 2943fi 2944 2945fi 2946INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2947 2948 2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2950printf %s "checking for a race-free mkdir -p... " >&6; } 2951if test -z "$MKDIR_P"; then 2952 if test ${ac_cv_path_mkdir+y} 2953then : 2954 printf %s "(cached) " >&6 2955else $as_nop 2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2958do 2959 IFS=$as_save_IFS 2960 case $as_dir in #((( 2961 '') as_dir=./ ;; 2962 */) ;; 2963 *) as_dir=$as_dir/ ;; 2964 esac 2965 for ac_prog in mkdir gmkdir; do 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2968 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2969 'mkdir ('*'coreutils) '* | \ 2970 'BusyBox '* | \ 2971 'mkdir (fileutils) '4.1*) 2972 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2973 break 3;; 2974 esac 2975 done 2976 done 2977 done 2978IFS=$as_save_IFS 2979 2980fi 2981 2982 test -d ./--version && rmdir ./--version 2983 if test ${ac_cv_path_mkdir+y}; then 2984 MKDIR_P="$ac_cv_path_mkdir -p" 2985 else 2986 # As a last resort, use the slow shell script. Don't cache a 2987 # value for MKDIR_P within a source directory, because that will 2988 # break other packages using the cache if that directory is 2989 # removed, or if the value is a relative name. 2990 MKDIR_P="$ac_install_sh -d" 2991 fi 2992fi 2993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2994printf "%s\n" "$MKDIR_P" >&6; } 2995 2996for ac_prog in gawk mawk nawk awk 2997do 2998 # Extract the first word of "$ac_prog", so it can be a program name with args. 2999set dummy $ac_prog; ac_word=$2 3000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3001printf %s "checking for $ac_word... " >&6; } 3002if test ${ac_cv_prog_AWK+y} 3003then : 3004 printf %s "(cached) " >&6 3005else $as_nop 3006 if test -n "$AWK"; then 3007 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3008else 3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3010for as_dir in $PATH 3011do 3012 IFS=$as_save_IFS 3013 case $as_dir in #((( 3014 '') as_dir=./ ;; 3015 */) ;; 3016 *) as_dir=$as_dir/ ;; 3017 esac 3018 for ac_exec_ext in '' $ac_executable_extensions; do 3019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3020 ac_cv_prog_AWK="$ac_prog" 3021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3022 break 2 3023 fi 3024done 3025 done 3026IFS=$as_save_IFS 3027 3028fi 3029fi 3030AWK=$ac_cv_prog_AWK 3031if test -n "$AWK"; then 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3033printf "%s\n" "$AWK" >&6; } 3034else 3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3036printf "%s\n" "no" >&6; } 3037fi 3038 3039 3040 test -n "$AWK" && break 3041done 3042 3043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3044printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3045set x ${MAKE-make} 3046ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3047if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3048then : 3049 printf %s "(cached) " >&6 3050else $as_nop 3051 cat >conftest.make <<\_ACEOF 3052SHELL = /bin/sh 3053all: 3054 @echo '@@@%%%=$(MAKE)=@@@%%%' 3055_ACEOF 3056# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3057case `${MAKE-make} -f conftest.make 2>/dev/null` in 3058 *@@@%%%=?*=@@@%%%*) 3059 eval ac_cv_prog_make_${ac_make}_set=yes;; 3060 *) 3061 eval ac_cv_prog_make_${ac_make}_set=no;; 3062esac 3063rm -f conftest.make 3064fi 3065if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3067printf "%s\n" "yes" >&6; } 3068 SET_MAKE= 3069else 3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071printf "%s\n" "no" >&6; } 3072 SET_MAKE="MAKE=${MAKE-make}" 3073fi 3074 3075rm -rf .tst 2>/dev/null 3076mkdir .tst 2>/dev/null 3077if test -d .tst; then 3078 am__leading_dot=. 3079else 3080 am__leading_dot=_ 3081fi 3082rmdir .tst 2>/dev/null 3083 3084# Check whether --enable-silent-rules was given. 3085if test ${enable_silent_rules+y} 3086then : 3087 enableval=$enable_silent_rules; 3088fi 3089 3090case $enable_silent_rules in # ((( 3091 yes) AM_DEFAULT_VERBOSITY=0;; 3092 no) AM_DEFAULT_VERBOSITY=1;; 3093 *) AM_DEFAULT_VERBOSITY=1;; 3094esac 3095am_make=${MAKE-make} 3096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3097printf %s "checking whether $am_make supports nested variables... " >&6; } 3098if test ${am_cv_make_support_nested_variables+y} 3099then : 3100 printf %s "(cached) " >&6 3101else $as_nop 3102 if printf "%s\n" 'TRUE=$(BAR$(V)) 3103BAR0=false 3104BAR1=true 3105V=1 3106am__doit: 3107 @$(TRUE) 3108.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3109 am_cv_make_support_nested_variables=yes 3110else 3111 am_cv_make_support_nested_variables=no 3112fi 3113fi 3114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3115printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3116if test $am_cv_make_support_nested_variables = yes; then 3117 AM_V='$(V)' 3118 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3119else 3120 AM_V=$AM_DEFAULT_VERBOSITY 3121 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3122fi 3123AM_BACKSLASH='\' 3124 3125if test "`cd $srcdir && pwd`" != "`pwd`"; then 3126 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3127 # is not polluted with repeated "-I." 3128 am__isrc=' -I$(srcdir)' 3129 # test to see if srcdir already configured 3130 if test -f $srcdir/config.status; then 3131 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3132 fi 3133fi 3134 3135# test whether we have cygpath 3136if test -z "$CYGPATH_W"; then 3137 if (cygpath --version) >/dev/null 2>/dev/null; then 3138 CYGPATH_W='cygpath -w' 3139 else 3140 CYGPATH_W=echo 3141 fi 3142fi 3143 3144 3145# Define the identity of the package. 3146 PACKAGE='xf86-video-neomagic' 3147 VERSION='1.3.1' 3148 3149 3150printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3151 3152 3153printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3154 3155# Some tools Automake needs. 3156 3157ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3158 3159 3160AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3161 3162 3163AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3164 3165 3166AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3167 3168 3169MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3170 3171# For better backward compatibility. To be removed once Automake 1.9.x 3172# dies out for good. For more background, see: 3173# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3174# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3175mkdir_p='$(MKDIR_P)' 3176 3177# We need awk for the "check" target (and possibly the TAP driver). The 3178# system "awk" is bad on some platforms. 3179# Always define AMTAR for backward compatibility. Yes, it's still used 3180# in the wild :-( We should find a proper way to deprecate it ... 3181AMTAR='$${TAR-tar}' 3182 3183 3184# We'll loop over all known methods to create a tar archive until one works. 3185_am_tools='gnutar pax cpio none' 3186 3187am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3188 3189 3190 3191 3192 3193# Variables for tags utilities; see am/tags.am 3194if test -z "$CTAGS"; then 3195 CTAGS=ctags 3196fi 3197 3198if test -z "$ETAGS"; then 3199 ETAGS=etags 3200fi 3201 3202if test -z "$CSCOPE"; then 3203 CSCOPE=cscope 3204fi 3205 3206 3207 3208# POSIX will say in a future version that running "rm -f" with no argument 3209# is OK; and we want to be able to make that assumption in our Makefile 3210# recipes. So use an aggressive probe to check that the usage we want is 3211# actually supported "in the wild" to an acceptable degree. 3212# See automake bug#10828. 3213# To make any issue more visible, cause the running configure to be aborted 3214# by default if the 'rm' program in use doesn't match our expectations; the 3215# user can still override this though. 3216if rm -f && rm -fr && rm -rf; then : OK; else 3217 cat >&2 <<'END' 3218Oops! 3219 3220Your 'rm' program seems unable to run without file operands specified 3221on the command line, even when the '-f' option is present. This is contrary 3222to the behaviour of most rm programs out there, and not conforming with 3223the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3224 3225Please tell bug-automake@gnu.org about your system, including the value 3226of your $PATH and any error possibly output before this message. This 3227can help us improve future automake versions. 3228 3229END 3230 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3231 echo 'Configuration will proceed anyway, since you have set the' >&2 3232 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3233 echo >&2 3234 else 3235 cat >&2 <<'END' 3236Aborting the configuration process, to ensure you take notice of the issue. 3237 3238You can download and install GNU coreutils to get an 'rm' implementation 3239that behaves properly: <https://www.gnu.org/software/coreutils/>. 3240 3241If you want to complete the configuration process using your problematic 3242'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3243to "yes", and re-run configure. 3244 3245END 3246 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3247 fi 3248fi 3249 3250 3251# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272DEPDIR="${am__leading_dot}deps" 3273 3274ac_config_commands="$ac_config_commands depfiles" 3275 3276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3277printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3278cat > confinc.mk << 'END' 3279am__doit: 3280 @echo this is the am__doit target >confinc.out 3281.PHONY: am__doit 3282END 3283am__include="#" 3284am__quote= 3285# BSD make does it like this. 3286echo '.include "confinc.mk" # ignored' > confmf.BSD 3287# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3288echo 'include confinc.mk # ignored' > confmf.GNU 3289_am_result=no 3290for s in GNU BSD; do 3291 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3292 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3293 ac_status=$? 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } 3296 case $?:`cat confinc.out 2>/dev/null` in #( 3297 '0:this is the am__doit target') : 3298 case $s in #( 3299 BSD) : 3300 am__include='.include' am__quote='"' ;; #( 3301 *) : 3302 am__include='include' am__quote='' ;; 3303esac ;; #( 3304 *) : 3305 ;; 3306esac 3307 if test "$am__include" != "#"; then 3308 _am_result="yes ($s style)" 3309 break 3310 fi 3311done 3312rm -f confinc.* confmf.* 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3314printf "%s\n" "${_am_result}" >&6; } 3315 3316# Check whether --enable-dependency-tracking was given. 3317if test ${enable_dependency_tracking+y} 3318then : 3319 enableval=$enable_dependency_tracking; 3320fi 3321 3322if test "x$enable_dependency_tracking" != xno; then 3323 am_depcomp="$ac_aux_dir/depcomp" 3324 AMDEPBACKSLASH='\' 3325 am__nodep='_no' 3326fi 3327 if test "x$enable_dependency_tracking" != xno; then 3328 AMDEP_TRUE= 3329 AMDEP_FALSE='#' 3330else 3331 AMDEP_TRUE='#' 3332 AMDEP_FALSE= 3333fi 3334 3335 3336ac_ext=c 3337ac_cpp='$CPP $CPPFLAGS' 3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3340ac_compiler_gnu=$ac_cv_c_compiler_gnu 3341if test -n "$ac_tool_prefix"; then 3342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3343set dummy ${ac_tool_prefix}gcc; ac_word=$2 3344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3345printf %s "checking for $ac_word... " >&6; } 3346if test ${ac_cv_prog_CC+y} 3347then : 3348 printf %s "(cached) " >&6 3349else $as_nop 3350 if test -n "$CC"; then 3351 ac_cv_prog_CC="$CC" # Let the user override the test. 3352else 3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3354for as_dir in $PATH 3355do 3356 IFS=$as_save_IFS 3357 case $as_dir in #((( 3358 '') as_dir=./ ;; 3359 */) ;; 3360 *) as_dir=$as_dir/ ;; 3361 esac 3362 for ac_exec_ext in '' $ac_executable_extensions; do 3363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3364 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3366 break 2 3367 fi 3368done 3369 done 3370IFS=$as_save_IFS 3371 3372fi 3373fi 3374CC=$ac_cv_prog_CC 3375if test -n "$CC"; then 3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3377printf "%s\n" "$CC" >&6; } 3378else 3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3380printf "%s\n" "no" >&6; } 3381fi 3382 3383 3384fi 3385if test -z "$ac_cv_prog_CC"; then 3386 ac_ct_CC=$CC 3387 # Extract the first word of "gcc", so it can be a program name with args. 3388set dummy gcc; ac_word=$2 3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3390printf %s "checking for $ac_word... " >&6; } 3391if test ${ac_cv_prog_ac_ct_CC+y} 3392then : 3393 printf %s "(cached) " >&6 3394else $as_nop 3395 if test -n "$ac_ct_CC"; then 3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3397else 3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3399for as_dir in $PATH 3400do 3401 IFS=$as_save_IFS 3402 case $as_dir in #((( 3403 '') as_dir=./ ;; 3404 */) ;; 3405 *) as_dir=$as_dir/ ;; 3406 esac 3407 for ac_exec_ext in '' $ac_executable_extensions; do 3408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3409 ac_cv_prog_ac_ct_CC="gcc" 3410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3411 break 2 3412 fi 3413done 3414 done 3415IFS=$as_save_IFS 3416 3417fi 3418fi 3419ac_ct_CC=$ac_cv_prog_ac_ct_CC 3420if test -n "$ac_ct_CC"; then 3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3422printf "%s\n" "$ac_ct_CC" >&6; } 3423else 3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3425printf "%s\n" "no" >&6; } 3426fi 3427 3428 if test "x$ac_ct_CC" = x; then 3429 CC="" 3430 else 3431 case $cross_compiling:$ac_tool_warned in 3432yes:) 3433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3434printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3435ac_tool_warned=yes ;; 3436esac 3437 CC=$ac_ct_CC 3438 fi 3439else 3440 CC="$ac_cv_prog_CC" 3441fi 3442 3443if test -z "$CC"; then 3444 if test -n "$ac_tool_prefix"; then 3445 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3446set dummy ${ac_tool_prefix}cc; ac_word=$2 3447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3448printf %s "checking for $ac_word... " >&6; } 3449if test ${ac_cv_prog_CC+y} 3450then : 3451 printf %s "(cached) " >&6 3452else $as_nop 3453 if test -n "$CC"; then 3454 ac_cv_prog_CC="$CC" # Let the user override the test. 3455else 3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3457for as_dir in $PATH 3458do 3459 IFS=$as_save_IFS 3460 case $as_dir in #((( 3461 '') as_dir=./ ;; 3462 */) ;; 3463 *) as_dir=$as_dir/ ;; 3464 esac 3465 for ac_exec_ext in '' $ac_executable_extensions; do 3466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3467 ac_cv_prog_CC="${ac_tool_prefix}cc" 3468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3469 break 2 3470 fi 3471done 3472 done 3473IFS=$as_save_IFS 3474 3475fi 3476fi 3477CC=$ac_cv_prog_CC 3478if test -n "$CC"; then 3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3480printf "%s\n" "$CC" >&6; } 3481else 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483printf "%s\n" "no" >&6; } 3484fi 3485 3486 3487 fi 3488fi 3489if test -z "$CC"; then 3490 # Extract the first word of "cc", so it can be a program name with args. 3491set dummy cc; ac_word=$2 3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3493printf %s "checking for $ac_word... " >&6; } 3494if test ${ac_cv_prog_CC+y} 3495then : 3496 printf %s "(cached) " >&6 3497else $as_nop 3498 if test -n "$CC"; then 3499 ac_cv_prog_CC="$CC" # Let the user override the test. 3500else 3501 ac_prog_rejected=no 3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3503for as_dir in $PATH 3504do 3505 IFS=$as_save_IFS 3506 case $as_dir in #((( 3507 '') as_dir=./ ;; 3508 */) ;; 3509 *) as_dir=$as_dir/ ;; 3510 esac 3511 for ac_exec_ext in '' $ac_executable_extensions; do 3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3513 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3514 ac_prog_rejected=yes 3515 continue 3516 fi 3517 ac_cv_prog_CC="cc" 3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3519 break 2 3520 fi 3521done 3522 done 3523IFS=$as_save_IFS 3524 3525if test $ac_prog_rejected = yes; then 3526 # We found a bogon in the path, so make sure we never use it. 3527 set dummy $ac_cv_prog_CC 3528 shift 3529 if test $# != 0; then 3530 # We chose a different compiler from the bogus one. 3531 # However, it has the same basename, so the bogon will be chosen 3532 # first if we set CC to just the basename; use the full file name. 3533 shift 3534 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3535 fi 3536fi 3537fi 3538fi 3539CC=$ac_cv_prog_CC 3540if test -n "$CC"; then 3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3542printf "%s\n" "$CC" >&6; } 3543else 3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3545printf "%s\n" "no" >&6; } 3546fi 3547 3548 3549fi 3550if test -z "$CC"; then 3551 if test -n "$ac_tool_prefix"; then 3552 for ac_prog in cl.exe 3553 do 3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3555set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557printf %s "checking for $ac_word... " >&6; } 3558if test ${ac_cv_prog_CC+y} 3559then : 3560 printf %s "(cached) " >&6 3561else $as_nop 3562 if test -n "$CC"; then 3563 ac_cv_prog_CC="$CC" # Let the user override the test. 3564else 3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3566for as_dir in $PATH 3567do 3568 IFS=$as_save_IFS 3569 case $as_dir in #((( 3570 '') as_dir=./ ;; 3571 */) ;; 3572 *) as_dir=$as_dir/ ;; 3573 esac 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3578 break 2 3579 fi 3580done 3581 done 3582IFS=$as_save_IFS 3583 3584fi 3585fi 3586CC=$ac_cv_prog_CC 3587if test -n "$CC"; then 3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3589printf "%s\n" "$CC" >&6; } 3590else 3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3592printf "%s\n" "no" >&6; } 3593fi 3594 3595 3596 test -n "$CC" && break 3597 done 3598fi 3599if test -z "$CC"; then 3600 ac_ct_CC=$CC 3601 for ac_prog in cl.exe 3602do 3603 # Extract the first word of "$ac_prog", so it can be a program name with args. 3604set dummy $ac_prog; ac_word=$2 3605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3606printf %s "checking for $ac_word... " >&6; } 3607if test ${ac_cv_prog_ac_ct_CC+y} 3608then : 3609 printf %s "(cached) " >&6 3610else $as_nop 3611 if test -n "$ac_ct_CC"; then 3612 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3613else 3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3615for as_dir in $PATH 3616do 3617 IFS=$as_save_IFS 3618 case $as_dir in #((( 3619 '') as_dir=./ ;; 3620 */) ;; 3621 *) as_dir=$as_dir/ ;; 3622 esac 3623 for ac_exec_ext in '' $ac_executable_extensions; do 3624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3625 ac_cv_prog_ac_ct_CC="$ac_prog" 3626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3627 break 2 3628 fi 3629done 3630 done 3631IFS=$as_save_IFS 3632 3633fi 3634fi 3635ac_ct_CC=$ac_cv_prog_ac_ct_CC 3636if test -n "$ac_ct_CC"; then 3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3638printf "%s\n" "$ac_ct_CC" >&6; } 3639else 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3641printf "%s\n" "no" >&6; } 3642fi 3643 3644 3645 test -n "$ac_ct_CC" && break 3646done 3647 3648 if test "x$ac_ct_CC" = x; then 3649 CC="" 3650 else 3651 case $cross_compiling:$ac_tool_warned in 3652yes:) 3653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3654printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3655ac_tool_warned=yes ;; 3656esac 3657 CC=$ac_ct_CC 3658 fi 3659fi 3660 3661fi 3662if test -z "$CC"; then 3663 if test -n "$ac_tool_prefix"; then 3664 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3665set dummy ${ac_tool_prefix}clang; ac_word=$2 3666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3667printf %s "checking for $ac_word... " >&6; } 3668if test ${ac_cv_prog_CC+y} 3669then : 3670 printf %s "(cached) " >&6 3671else $as_nop 3672 if test -n "$CC"; then 3673 ac_cv_prog_CC="$CC" # Let the user override the test. 3674else 3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3676for as_dir in $PATH 3677do 3678 IFS=$as_save_IFS 3679 case $as_dir in #((( 3680 '') as_dir=./ ;; 3681 */) ;; 3682 *) as_dir=$as_dir/ ;; 3683 esac 3684 for ac_exec_ext in '' $ac_executable_extensions; do 3685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3686 ac_cv_prog_CC="${ac_tool_prefix}clang" 3687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3688 break 2 3689 fi 3690done 3691 done 3692IFS=$as_save_IFS 3693 3694fi 3695fi 3696CC=$ac_cv_prog_CC 3697if test -n "$CC"; then 3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3699printf "%s\n" "$CC" >&6; } 3700else 3701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3702printf "%s\n" "no" >&6; } 3703fi 3704 3705 3706fi 3707if test -z "$ac_cv_prog_CC"; then 3708 ac_ct_CC=$CC 3709 # Extract the first word of "clang", so it can be a program name with args. 3710set dummy clang; ac_word=$2 3711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3712printf %s "checking for $ac_word... " >&6; } 3713if test ${ac_cv_prog_ac_ct_CC+y} 3714then : 3715 printf %s "(cached) " >&6 3716else $as_nop 3717 if test -n "$ac_ct_CC"; then 3718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3719else 3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3721for as_dir in $PATH 3722do 3723 IFS=$as_save_IFS 3724 case $as_dir in #((( 3725 '') as_dir=./ ;; 3726 */) ;; 3727 *) as_dir=$as_dir/ ;; 3728 esac 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3731 ac_cv_prog_ac_ct_CC="clang" 3732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3733 break 2 3734 fi 3735done 3736 done 3737IFS=$as_save_IFS 3738 3739fi 3740fi 3741ac_ct_CC=$ac_cv_prog_ac_ct_CC 3742if test -n "$ac_ct_CC"; then 3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3744printf "%s\n" "$ac_ct_CC" >&6; } 3745else 3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747printf "%s\n" "no" >&6; } 3748fi 3749 3750 if test "x$ac_ct_CC" = x; then 3751 CC="" 3752 else 3753 case $cross_compiling:$ac_tool_warned in 3754yes:) 3755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3756printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3757ac_tool_warned=yes ;; 3758esac 3759 CC=$ac_ct_CC 3760 fi 3761else 3762 CC="$ac_cv_prog_CC" 3763fi 3764 3765fi 3766 3767 3768test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3769printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3770as_fn_error $? "no acceptable C compiler found in \$PATH 3771See \`config.log' for more details" "$LINENO" 5; } 3772 3773# Provide some information about the compiler. 3774printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3775set X $ac_compile 3776ac_compiler=$2 3777for ac_option in --version -v -V -qversion -version; do 3778 { { ac_try="$ac_compiler $ac_option >&5" 3779case "(($ac_try" in 3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3781 *) ac_try_echo=$ac_try;; 3782esac 3783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3784printf "%s\n" "$ac_try_echo"; } >&5 3785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3786 ac_status=$? 3787 if test -s conftest.err; then 3788 sed '10a\ 3789... rest of stderr output deleted ... 3790 10q' conftest.err >conftest.er1 3791 cat conftest.er1 >&5 3792 fi 3793 rm -f conftest.er1 conftest.err 3794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3795 test $ac_status = 0; } 3796done 3797 3798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799/* end confdefs.h. */ 3800 3801int 3802main (void) 3803{ 3804 3805 ; 3806 return 0; 3807} 3808_ACEOF 3809ac_clean_files_save=$ac_clean_files 3810ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3811# Try to create an executable without -o first, disregard a.out. 3812# It will help us diagnose broken compilers, and finding out an intuition 3813# of exeext. 3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3815printf %s "checking whether the C compiler works... " >&6; } 3816ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3817 3818# The possible output files: 3819ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3820 3821ac_rmfiles= 3822for ac_file in $ac_files 3823do 3824 case $ac_file in 3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3826 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3827 esac 3828done 3829rm -f $ac_rmfiles 3830 3831if { { ac_try="$ac_link_default" 3832case "(($ac_try" in 3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3834 *) ac_try_echo=$ac_try;; 3835esac 3836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3837printf "%s\n" "$ac_try_echo"; } >&5 3838 (eval "$ac_link_default") 2>&5 3839 ac_status=$? 3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3841 test $ac_status = 0; } 3842then : 3843 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3844# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3845# in a Makefile. We should not override ac_cv_exeext if it was cached, 3846# so that the user can short-circuit this test for compilers unknown to 3847# Autoconf. 3848for ac_file in $ac_files '' 3849do 3850 test -f "$ac_file" || continue 3851 case $ac_file in 3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3853 ;; 3854 [ab].out ) 3855 # We found the default executable, but exeext='' is most 3856 # certainly right. 3857 break;; 3858 *.* ) 3859 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3860 then :; else 3861 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3862 fi 3863 # We set ac_cv_exeext here because the later test for it is not 3864 # safe: cross compilers may not add the suffix if given an `-o' 3865 # argument, so we may need to know it at that point already. 3866 # Even if this section looks crufty: it has the advantage of 3867 # actually working. 3868 break;; 3869 * ) 3870 break;; 3871 esac 3872done 3873test "$ac_cv_exeext" = no && ac_cv_exeext= 3874 3875else $as_nop 3876 ac_file='' 3877fi 3878if test -z "$ac_file" 3879then : 3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3881printf "%s\n" "no" >&6; } 3882printf "%s\n" "$as_me: failed program was:" >&5 3883sed 's/^/| /' conftest.$ac_ext >&5 3884 3885{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3886printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3887as_fn_error 77 "C compiler cannot create executables 3888See \`config.log' for more details" "$LINENO" 5; } 3889else $as_nop 3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3891printf "%s\n" "yes" >&6; } 3892fi 3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3894printf %s "checking for C compiler default output file name... " >&6; } 3895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3896printf "%s\n" "$ac_file" >&6; } 3897ac_exeext=$ac_cv_exeext 3898 3899rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3900ac_clean_files=$ac_clean_files_save 3901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3902printf %s "checking for suffix of executables... " >&6; } 3903if { { ac_try="$ac_link" 3904case "(($ac_try" in 3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3906 *) ac_try_echo=$ac_try;; 3907esac 3908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3909printf "%s\n" "$ac_try_echo"; } >&5 3910 (eval "$ac_link") 2>&5 3911 ac_status=$? 3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3913 test $ac_status = 0; } 3914then : 3915 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3916# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3917# work properly (i.e., refer to `conftest.exe'), while it won't with 3918# `rm'. 3919for ac_file in conftest.exe conftest conftest.*; do 3920 test -f "$ac_file" || continue 3921 case $ac_file in 3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3924 break;; 3925 * ) break;; 3926 esac 3927done 3928else $as_nop 3929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3930printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3931as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3932See \`config.log' for more details" "$LINENO" 5; } 3933fi 3934rm -f conftest conftest$ac_cv_exeext 3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3936printf "%s\n" "$ac_cv_exeext" >&6; } 3937 3938rm -f conftest.$ac_ext 3939EXEEXT=$ac_cv_exeext 3940ac_exeext=$EXEEXT 3941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3942/* end confdefs.h. */ 3943#include <stdio.h> 3944int 3945main (void) 3946{ 3947FILE *f = fopen ("conftest.out", "w"); 3948 return ferror (f) || fclose (f) != 0; 3949 3950 ; 3951 return 0; 3952} 3953_ACEOF 3954ac_clean_files="$ac_clean_files conftest.out" 3955# Check that the compiler produces executables we can run. If not, either 3956# the compiler is broken, or we cross compile. 3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3958printf %s "checking whether we are cross compiling... " >&6; } 3959if test "$cross_compiling" != yes; then 3960 { { ac_try="$ac_link" 3961case "(($ac_try" in 3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3963 *) ac_try_echo=$ac_try;; 3964esac 3965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3966printf "%s\n" "$ac_try_echo"; } >&5 3967 (eval "$ac_link") 2>&5 3968 ac_status=$? 3969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3970 test $ac_status = 0; } 3971 if { ac_try='./conftest$ac_cv_exeext' 3972 { { case "(($ac_try" in 3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3974 *) ac_try_echo=$ac_try;; 3975esac 3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3977printf "%s\n" "$ac_try_echo"; } >&5 3978 (eval "$ac_try") 2>&5 3979 ac_status=$? 3980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3981 test $ac_status = 0; }; }; then 3982 cross_compiling=no 3983 else 3984 if test "$cross_compiling" = maybe; then 3985 cross_compiling=yes 3986 else 3987 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3988printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3989as_fn_error 77 "cannot run C compiled programs. 3990If you meant to cross compile, use \`--host'. 3991See \`config.log' for more details" "$LINENO" 5; } 3992 fi 3993 fi 3994fi 3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3996printf "%s\n" "$cross_compiling" >&6; } 3997 3998rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3999ac_clean_files=$ac_clean_files_save 4000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4001printf %s "checking for suffix of object files... " >&6; } 4002if test ${ac_cv_objext+y} 4003then : 4004 printf %s "(cached) " >&6 4005else $as_nop 4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4007/* end confdefs.h. */ 4008 4009int 4010main (void) 4011{ 4012 4013 ; 4014 return 0; 4015} 4016_ACEOF 4017rm -f conftest.o conftest.obj 4018if { { ac_try="$ac_compile" 4019case "(($ac_try" in 4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4021 *) ac_try_echo=$ac_try;; 4022esac 4023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4024printf "%s\n" "$ac_try_echo"; } >&5 4025 (eval "$ac_compile") 2>&5 4026 ac_status=$? 4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4028 test $ac_status = 0; } 4029then : 4030 for ac_file in conftest.o conftest.obj conftest.*; do 4031 test -f "$ac_file" || continue; 4032 case $ac_file in 4033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4035 break;; 4036 esac 4037done 4038else $as_nop 4039 printf "%s\n" "$as_me: failed program was:" >&5 4040sed 's/^/| /' conftest.$ac_ext >&5 4041 4042{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4043printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4044as_fn_error $? "cannot compute suffix of object files: cannot compile 4045See \`config.log' for more details" "$LINENO" 5; } 4046fi 4047rm -f conftest.$ac_cv_objext conftest.$ac_ext 4048fi 4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4050printf "%s\n" "$ac_cv_objext" >&6; } 4051OBJEXT=$ac_cv_objext 4052ac_objext=$OBJEXT 4053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4054printf %s "checking whether the compiler supports GNU C... " >&6; } 4055if test ${ac_cv_c_compiler_gnu+y} 4056then : 4057 printf %s "(cached) " >&6 4058else $as_nop 4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4060/* end confdefs.h. */ 4061 4062int 4063main (void) 4064{ 4065#ifndef __GNUC__ 4066 choke me 4067#endif 4068 4069 ; 4070 return 0; 4071} 4072_ACEOF 4073if ac_fn_c_try_compile "$LINENO" 4074then : 4075 ac_compiler_gnu=yes 4076else $as_nop 4077 ac_compiler_gnu=no 4078fi 4079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4080ac_cv_c_compiler_gnu=$ac_compiler_gnu 4081 4082fi 4083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4084printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4085ac_compiler_gnu=$ac_cv_c_compiler_gnu 4086 4087if test $ac_compiler_gnu = yes; then 4088 GCC=yes 4089else 4090 GCC= 4091fi 4092ac_test_CFLAGS=${CFLAGS+y} 4093ac_save_CFLAGS=$CFLAGS 4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4095printf %s "checking whether $CC accepts -g... " >&6; } 4096if test ${ac_cv_prog_cc_g+y} 4097then : 4098 printf %s "(cached) " >&6 4099else $as_nop 4100 ac_save_c_werror_flag=$ac_c_werror_flag 4101 ac_c_werror_flag=yes 4102 ac_cv_prog_cc_g=no 4103 CFLAGS="-g" 4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4105/* end confdefs.h. */ 4106 4107int 4108main (void) 4109{ 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115if ac_fn_c_try_compile "$LINENO" 4116then : 4117 ac_cv_prog_cc_g=yes 4118else $as_nop 4119 CFLAGS="" 4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4121/* end confdefs.h. */ 4122 4123int 4124main (void) 4125{ 4126 4127 ; 4128 return 0; 4129} 4130_ACEOF 4131if ac_fn_c_try_compile "$LINENO" 4132then : 4133 4134else $as_nop 4135 ac_c_werror_flag=$ac_save_c_werror_flag 4136 CFLAGS="-g" 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139 4140int 4141main (void) 4142{ 4143 4144 ; 4145 return 0; 4146} 4147_ACEOF 4148if ac_fn_c_try_compile "$LINENO" 4149then : 4150 ac_cv_prog_cc_g=yes 4151fi 4152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4153fi 4154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4155fi 4156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4157 ac_c_werror_flag=$ac_save_c_werror_flag 4158fi 4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4160printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4161if test $ac_test_CFLAGS; then 4162 CFLAGS=$ac_save_CFLAGS 4163elif test $ac_cv_prog_cc_g = yes; then 4164 if test "$GCC" = yes; then 4165 CFLAGS="-g -O2" 4166 else 4167 CFLAGS="-g" 4168 fi 4169else 4170 if test "$GCC" = yes; then 4171 CFLAGS="-O2" 4172 else 4173 CFLAGS= 4174 fi 4175fi 4176ac_prog_cc_stdc=no 4177if test x$ac_prog_cc_stdc = xno 4178then : 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4180printf %s "checking for $CC option to enable C11 features... " >&6; } 4181if test ${ac_cv_prog_cc_c11+y} 4182then : 4183 printf %s "(cached) " >&6 4184else $as_nop 4185 ac_cv_prog_cc_c11=no 4186ac_save_CC=$CC 4187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4188/* end confdefs.h. */ 4189$ac_c_conftest_c11_program 4190_ACEOF 4191for ac_arg in '' -std=gnu11 4192do 4193 CC="$ac_save_CC $ac_arg" 4194 if ac_fn_c_try_compile "$LINENO" 4195then : 4196 ac_cv_prog_cc_c11=$ac_arg 4197fi 4198rm -f core conftest.err conftest.$ac_objext conftest.beam 4199 test "x$ac_cv_prog_cc_c11" != "xno" && break 4200done 4201rm -f conftest.$ac_ext 4202CC=$ac_save_CC 4203fi 4204 4205if test "x$ac_cv_prog_cc_c11" = xno 4206then : 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4208printf "%s\n" "unsupported" >&6; } 4209else $as_nop 4210 if test "x$ac_cv_prog_cc_c11" = x 4211then : 4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4213printf "%s\n" "none needed" >&6; } 4214else $as_nop 4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4216printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4217 CC="$CC $ac_cv_prog_cc_c11" 4218fi 4219 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4220 ac_prog_cc_stdc=c11 4221fi 4222fi 4223if test x$ac_prog_cc_stdc = xno 4224then : 4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4226printf %s "checking for $CC option to enable C99 features... " >&6; } 4227if test ${ac_cv_prog_cc_c99+y} 4228then : 4229 printf %s "(cached) " >&6 4230else $as_nop 4231 ac_cv_prog_cc_c99=no 4232ac_save_CC=$CC 4233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4234/* end confdefs.h. */ 4235$ac_c_conftest_c99_program 4236_ACEOF 4237for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4238do 4239 CC="$ac_save_CC $ac_arg" 4240 if ac_fn_c_try_compile "$LINENO" 4241then : 4242 ac_cv_prog_cc_c99=$ac_arg 4243fi 4244rm -f core conftest.err conftest.$ac_objext conftest.beam 4245 test "x$ac_cv_prog_cc_c99" != "xno" && break 4246done 4247rm -f conftest.$ac_ext 4248CC=$ac_save_CC 4249fi 4250 4251if test "x$ac_cv_prog_cc_c99" = xno 4252then : 4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4254printf "%s\n" "unsupported" >&6; } 4255else $as_nop 4256 if test "x$ac_cv_prog_cc_c99" = x 4257then : 4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4259printf "%s\n" "none needed" >&6; } 4260else $as_nop 4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4262printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4263 CC="$CC $ac_cv_prog_cc_c99" 4264fi 4265 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4266 ac_prog_cc_stdc=c99 4267fi 4268fi 4269if test x$ac_prog_cc_stdc = xno 4270then : 4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4272printf %s "checking for $CC option to enable C89 features... " >&6; } 4273if test ${ac_cv_prog_cc_c89+y} 4274then : 4275 printf %s "(cached) " >&6 4276else $as_nop 4277 ac_cv_prog_cc_c89=no 4278ac_save_CC=$CC 4279cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4280/* end confdefs.h. */ 4281$ac_c_conftest_c89_program 4282_ACEOF 4283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4284do 4285 CC="$ac_save_CC $ac_arg" 4286 if ac_fn_c_try_compile "$LINENO" 4287then : 4288 ac_cv_prog_cc_c89=$ac_arg 4289fi 4290rm -f core conftest.err conftest.$ac_objext conftest.beam 4291 test "x$ac_cv_prog_cc_c89" != "xno" && break 4292done 4293rm -f conftest.$ac_ext 4294CC=$ac_save_CC 4295fi 4296 4297if test "x$ac_cv_prog_cc_c89" = xno 4298then : 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4300printf "%s\n" "unsupported" >&6; } 4301else $as_nop 4302 if test "x$ac_cv_prog_cc_c89" = x 4303then : 4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4305printf "%s\n" "none needed" >&6; } 4306else $as_nop 4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4308printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4309 CC="$CC $ac_cv_prog_cc_c89" 4310fi 4311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4312 ac_prog_cc_stdc=c89 4313fi 4314fi 4315 4316ac_ext=c 4317ac_cpp='$CPP $CPPFLAGS' 4318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4320ac_compiler_gnu=$ac_cv_c_compiler_gnu 4321 4322 4323 ac_ext=c 4324ac_cpp='$CPP $CPPFLAGS' 4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4327ac_compiler_gnu=$ac_cv_c_compiler_gnu 4328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4329printf %s "checking whether $CC understands -c and -o together... " >&6; } 4330if test ${am_cv_prog_cc_c_o+y} 4331then : 4332 printf %s "(cached) " >&6 4333else $as_nop 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4335/* end confdefs.h. */ 4336 4337int 4338main (void) 4339{ 4340 4341 ; 4342 return 0; 4343} 4344_ACEOF 4345 # Make sure it works both with $CC and with simple cc. 4346 # Following AC_PROG_CC_C_O, we do the test twice because some 4347 # compilers refuse to overwrite an existing .o file with -o, 4348 # though they will create one. 4349 am_cv_prog_cc_c_o=yes 4350 for am_i in 1 2; do 4351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4353 ac_status=$? 4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4355 (exit $ac_status); } \ 4356 && test -f conftest2.$ac_objext; then 4357 : OK 4358 else 4359 am_cv_prog_cc_c_o=no 4360 break 4361 fi 4362 done 4363 rm -f core conftest* 4364 unset am_i 4365fi 4366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4367printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4368if test "$am_cv_prog_cc_c_o" != yes; then 4369 # Losing compiler, so override with the script. 4370 # FIXME: It is wrong to rewrite CC. 4371 # But if we don't then we get into trouble of one sort or another. 4372 # A longer-term fix would be to have automake use am__CC in this case, 4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4374 CC="$am_aux_dir/compile $CC" 4375fi 4376ac_ext=c 4377ac_cpp='$CPP $CPPFLAGS' 4378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4380ac_compiler_gnu=$ac_cv_c_compiler_gnu 4381 4382 4383depcc="$CC" am_compiler_list= 4384 4385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4386printf %s "checking dependency style of $depcc... " >&6; } 4387if test ${am_cv_CC_dependencies_compiler_type+y} 4388then : 4389 printf %s "(cached) " >&6 4390else $as_nop 4391 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4392 # We make a subdir and do the tests there. Otherwise we can end up 4393 # making bogus files that we don't know about and never remove. For 4394 # instance it was reported that on HP-UX the gcc test will end up 4395 # making a dummy file named 'D' -- because '-MD' means "put the output 4396 # in D". 4397 rm -rf conftest.dir 4398 mkdir conftest.dir 4399 # Copy depcomp to subdir because otherwise we won't find it if we're 4400 # using a relative directory. 4401 cp "$am_depcomp" conftest.dir 4402 cd conftest.dir 4403 # We will build objects and dependencies in a subdirectory because 4404 # it helps to detect inapplicable dependency modes. For instance 4405 # both Tru64's cc and ICC support -MD to output dependencies as a 4406 # side effect of compilation, but ICC will put the dependencies in 4407 # the current directory while Tru64 will put them in the object 4408 # directory. 4409 mkdir sub 4410 4411 am_cv_CC_dependencies_compiler_type=none 4412 if test "$am_compiler_list" = ""; then 4413 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4414 fi 4415 am__universal=false 4416 case " $depcc " in #( 4417 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4418 esac 4419 4420 for depmode in $am_compiler_list; do 4421 # Setup a source with many dependencies, because some compilers 4422 # like to wrap large dependency lists on column 80 (with \), and 4423 # we should not choose a depcomp mode which is confused by this. 4424 # 4425 # We need to recreate these files for each test, as the compiler may 4426 # overwrite some of them when testing with obscure command lines. 4427 # This happens at least with the AIX C compiler. 4428 : > sub/conftest.c 4429 for i in 1 2 3 4 5 6; do 4430 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4431 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4432 # Solaris 10 /bin/sh. 4433 echo '/* dummy */' > sub/conftst$i.h 4434 done 4435 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4436 4437 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4438 # mode. It turns out that the SunPro C++ compiler does not properly 4439 # handle '-M -o', and we need to detect this. Also, some Intel 4440 # versions had trouble with output in subdirs. 4441 am__obj=sub/conftest.${OBJEXT-o} 4442 am__minus_obj="-o $am__obj" 4443 case $depmode in 4444 gcc) 4445 # This depmode causes a compiler race in universal mode. 4446 test "$am__universal" = false || continue 4447 ;; 4448 nosideeffect) 4449 # After this tag, mechanisms are not by side-effect, so they'll 4450 # only be used when explicitly requested. 4451 if test "x$enable_dependency_tracking" = xyes; then 4452 continue 4453 else 4454 break 4455 fi 4456 ;; 4457 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4458 # This compiler won't grok '-c -o', but also, the minuso test has 4459 # not run yet. These depmodes are late enough in the game, and 4460 # so weak that their functioning should not be impacted. 4461 am__obj=conftest.${OBJEXT-o} 4462 am__minus_obj= 4463 ;; 4464 none) break ;; 4465 esac 4466 if depmode=$depmode \ 4467 source=sub/conftest.c object=$am__obj \ 4468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4469 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4470 >/dev/null 2>conftest.err && 4471 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4472 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4473 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4474 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4475 # icc doesn't choke on unknown options, it will just issue warnings 4476 # or remarks (even with -Werror). So we grep stderr for any message 4477 # that says an option was ignored or not supported. 4478 # When given -MP, icc 7.0 and 7.1 complain thusly: 4479 # icc: Command line warning: ignoring option '-M'; no argument required 4480 # The diagnosis changed in icc 8.0: 4481 # icc: Command line remark: option '-MP' not supported 4482 if (grep 'ignoring option' conftest.err || 4483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4484 am_cv_CC_dependencies_compiler_type=$depmode 4485 break 4486 fi 4487 fi 4488 done 4489 4490 cd .. 4491 rm -rf conftest.dir 4492else 4493 am_cv_CC_dependencies_compiler_type=none 4494fi 4495 4496fi 4497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4498printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4499CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4500 4501 if 4502 test "x$enable_dependency_tracking" != xno \ 4503 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4504 am__fastdepCC_TRUE= 4505 am__fastdepCC_FALSE='#' 4506else 4507 am__fastdepCC_TRUE='#' 4508 am__fastdepCC_FALSE= 4509fi 4510 4511 4512 4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4514printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4515if test ${ac_cv_c_undeclared_builtin_options+y} 4516then : 4517 printf %s "(cached) " >&6 4518else $as_nop 4519 ac_save_CFLAGS=$CFLAGS 4520 ac_cv_c_undeclared_builtin_options='cannot detect' 4521 for ac_arg in '' -fno-builtin; do 4522 CFLAGS="$ac_save_CFLAGS $ac_arg" 4523 # This test program should *not* compile successfully. 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4525/* end confdefs.h. */ 4526 4527int 4528main (void) 4529{ 4530(void) strchr; 4531 ; 4532 return 0; 4533} 4534_ACEOF 4535if ac_fn_c_try_compile "$LINENO" 4536then : 4537 4538else $as_nop 4539 # This test program should compile successfully. 4540 # No library function is consistently available on 4541 # freestanding implementations, so test against a dummy 4542 # declaration. Include always-available headers on the 4543 # off chance that they somehow elicit warnings. 4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4545/* end confdefs.h. */ 4546#include <float.h> 4547#include <limits.h> 4548#include <stdarg.h> 4549#include <stddef.h> 4550extern void ac_decl (int, char *); 4551 4552int 4553main (void) 4554{ 4555(void) ac_decl (0, (char *) 0); 4556 (void) ac_decl; 4557 4558 ; 4559 return 0; 4560} 4561_ACEOF 4562if ac_fn_c_try_compile "$LINENO" 4563then : 4564 if test x"$ac_arg" = x 4565then : 4566 ac_cv_c_undeclared_builtin_options='none needed' 4567else $as_nop 4568 ac_cv_c_undeclared_builtin_options=$ac_arg 4569fi 4570 break 4571fi 4572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4573fi 4574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4575 done 4576 CFLAGS=$ac_save_CFLAGS 4577 4578fi 4579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4580printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4581 case $ac_cv_c_undeclared_builtin_options in #( 4582 'cannot detect') : 4583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4584printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4585as_fn_error $? "cannot make $CC report undeclared builtins 4586See \`config.log' for more details" "$LINENO" 5; } ;; #( 4587 'none needed') : 4588 ac_c_undeclared_builtin_options='' ;; #( 4589 *) : 4590 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4591esac 4592 4593ac_header= ac_cache= 4594for ac_item in $ac_header_c_list 4595do 4596 if test $ac_cache; then 4597 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4598 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4599 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4600 fi 4601 ac_header= ac_cache= 4602 elif test $ac_header; then 4603 ac_cache=$ac_item 4604 else 4605 ac_header=$ac_item 4606 fi 4607done 4608 4609 4610 4611 4612 4613 4614 4615 4616if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4617then : 4618 4619printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4620 4621fi 4622 4623 4624 4625 4626ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4627if test "x$ac_cv_have_decl___clang__" = xyes 4628then : 4629 CLANGCC="yes" 4630else $as_nop 4631 CLANGCC="no" 4632fi 4633ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4634if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4635then : 4636 INTELCC="yes" 4637else $as_nop 4638 INTELCC="no" 4639fi 4640ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4641if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4642then : 4643 SUNCC="yes" 4644else $as_nop 4645 SUNCC="no" 4646fi 4647 4648 4649 4650 4651 4652 4653 4654 4655if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4656 if test -n "$ac_tool_prefix"; then 4657 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4658set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4660printf %s "checking for $ac_word... " >&6; } 4661if test ${ac_cv_path_PKG_CONFIG+y} 4662then : 4663 printf %s "(cached) " >&6 4664else $as_nop 4665 case $PKG_CONFIG in 4666 [\\/]* | ?:[\\/]*) 4667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4668 ;; 4669 *) 4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH 4672do 4673 IFS=$as_save_IFS 4674 case $as_dir in #((( 4675 '') as_dir=./ ;; 4676 */) ;; 4677 *) as_dir=$as_dir/ ;; 4678 esac 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4681 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4683 break 2 4684 fi 4685done 4686 done 4687IFS=$as_save_IFS 4688 4689 ;; 4690esac 4691fi 4692PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4693if test -n "$PKG_CONFIG"; then 4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4695printf "%s\n" "$PKG_CONFIG" >&6; } 4696else 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4698printf "%s\n" "no" >&6; } 4699fi 4700 4701 4702fi 4703if test -z "$ac_cv_path_PKG_CONFIG"; then 4704 ac_pt_PKG_CONFIG=$PKG_CONFIG 4705 # Extract the first word of "pkg-config", so it can be a program name with args. 4706set dummy pkg-config; ac_word=$2 4707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4708printf %s "checking for $ac_word... " >&6; } 4709if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4710then : 4711 printf %s "(cached) " >&6 4712else $as_nop 4713 case $ac_pt_PKG_CONFIG in 4714 [\\/]* | ?:[\\/]*) 4715 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4716 ;; 4717 *) 4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4719for as_dir in $PATH 4720do 4721 IFS=$as_save_IFS 4722 case $as_dir in #((( 4723 '') as_dir=./ ;; 4724 */) ;; 4725 *) as_dir=$as_dir/ ;; 4726 esac 4727 for ac_exec_ext in '' $ac_executable_extensions; do 4728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4729 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4731 break 2 4732 fi 4733done 4734 done 4735IFS=$as_save_IFS 4736 4737 ;; 4738esac 4739fi 4740ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4741if test -n "$ac_pt_PKG_CONFIG"; then 4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4743printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4744else 4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4746printf "%s\n" "no" >&6; } 4747fi 4748 4749 if test "x$ac_pt_PKG_CONFIG" = x; then 4750 PKG_CONFIG="" 4751 else 4752 case $cross_compiling:$ac_tool_warned in 4753yes:) 4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4755printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4756ac_tool_warned=yes ;; 4757esac 4758 PKG_CONFIG=$ac_pt_PKG_CONFIG 4759 fi 4760else 4761 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4762fi 4763 4764fi 4765if test -n "$PKG_CONFIG"; then 4766 _pkg_min_version=0.9.0 4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4768printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4769 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4771printf "%s\n" "yes" >&6; } 4772 else 4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4774printf "%s\n" "no" >&6; } 4775 PKG_CONFIG="" 4776 fi 4777fi 4778 4779 4780 # Make sure we can run config.sub. 4781$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4782 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4783 4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4785printf %s "checking build system type... " >&6; } 4786if test ${ac_cv_build+y} 4787then : 4788 printf %s "(cached) " >&6 4789else $as_nop 4790 ac_build_alias=$build_alias 4791test "x$ac_build_alias" = x && 4792 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4793test "x$ac_build_alias" = x && 4794 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4795ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4796 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4797 4798fi 4799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4800printf "%s\n" "$ac_cv_build" >&6; } 4801case $ac_cv_build in 4802*-*-*) ;; 4803*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4804esac 4805build=$ac_cv_build 4806ac_save_IFS=$IFS; IFS='-' 4807set x $ac_cv_build 4808shift 4809build_cpu=$1 4810build_vendor=$2 4811shift; shift 4812# Remember, the first character of IFS is used to create $*, 4813# except with old shells: 4814build_os=$* 4815IFS=$ac_save_IFS 4816case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4817 4818 4819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4820printf %s "checking host system type... " >&6; } 4821if test ${ac_cv_host+y} 4822then : 4823 printf %s "(cached) " >&6 4824else $as_nop 4825 if test "x$host_alias" = x; then 4826 ac_cv_host=$ac_cv_build 4827else 4828 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4829 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4830fi 4831 4832fi 4833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4834printf "%s\n" "$ac_cv_host" >&6; } 4835case $ac_cv_host in 4836*-*-*) ;; 4837*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4838esac 4839host=$ac_cv_host 4840ac_save_IFS=$IFS; IFS='-' 4841set x $ac_cv_host 4842shift 4843host_cpu=$1 4844host_vendor=$2 4845shift; shift 4846# Remember, the first character of IFS is used to create $*, 4847# except with old shells: 4848host_os=$* 4849IFS=$ac_save_IFS 4850case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4851 4852 4853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4854printf %s "checking for a sed that does not truncate output... " >&6; } 4855if test ${ac_cv_path_SED+y} 4856then : 4857 printf %s "(cached) " >&6 4858else $as_nop 4859 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4860 for ac_i in 1 2 3 4 5 6 7; do 4861 ac_script="$ac_script$as_nl$ac_script" 4862 done 4863 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4864 { ac_script=; unset ac_script;} 4865 if test -z "$SED"; then 4866 ac_path_SED_found=false 4867 # Loop through the user's path and test for each of PROGNAME-LIST 4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4869for as_dir in $PATH 4870do 4871 IFS=$as_save_IFS 4872 case $as_dir in #((( 4873 '') as_dir=./ ;; 4874 */) ;; 4875 *) as_dir=$as_dir/ ;; 4876 esac 4877 for ac_prog in sed gsed 4878 do 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4881 as_fn_executable_p "$ac_path_SED" || continue 4882# Check for GNU ac_path_SED and select it if it is found. 4883 # Check for GNU $ac_path_SED 4884case `"$ac_path_SED" --version 2>&1` in 4885*GNU*) 4886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4887*) 4888 ac_count=0 4889 printf %s 0123456789 >"conftest.in" 4890 while : 4891 do 4892 cat "conftest.in" "conftest.in" >"conftest.tmp" 4893 mv "conftest.tmp" "conftest.in" 4894 cp "conftest.in" "conftest.nl" 4895 printf "%s\n" '' >> "conftest.nl" 4896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4898 as_fn_arith $ac_count + 1 && ac_count=$as_val 4899 if test $ac_count -gt ${ac_path_SED_max-0}; then 4900 # Best one so far, save it but keep looking for a better one 4901 ac_cv_path_SED="$ac_path_SED" 4902 ac_path_SED_max=$ac_count 4903 fi 4904 # 10*(2^10) chars as input seems more than enough 4905 test $ac_count -gt 10 && break 4906 done 4907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4908esac 4909 4910 $ac_path_SED_found && break 3 4911 done 4912 done 4913 done 4914IFS=$as_save_IFS 4915 if test -z "$ac_cv_path_SED"; then 4916 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4917 fi 4918else 4919 ac_cv_path_SED=$SED 4920fi 4921 4922fi 4923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4924printf "%s\n" "$ac_cv_path_SED" >&6; } 4925 SED="$ac_cv_path_SED" 4926 rm -f conftest.sed 4927 4928 4929 4930 4931 4932 4933# Check whether --enable-selective-werror was given. 4934if test ${enable_selective_werror+y} 4935then : 4936 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4937else $as_nop 4938 SELECTIVE_WERROR=yes 4939fi 4940 4941 4942 4943 4944 4945# -v is too short to test reliably with XORG_TESTSET_CFLAG 4946if test "x$SUNCC" = "xyes"; then 4947 BASE_CFLAGS="-v" 4948else 4949 BASE_CFLAGS="" 4950fi 4951 4952# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966xorg_testset_save_CFLAGS="$CFLAGS" 4967 4968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4972if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4973then : 4974 printf %s "(cached) " >&6 4975else $as_nop 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4977/* end confdefs.h. */ 4978int i; 4979_ACEOF 4980if ac_fn_c_try_compile "$LINENO" 4981then : 4982 xorg_cv_cc_flag_unknown_warning_option=yes 4983else $as_nop 4984 xorg_cv_cc_flag_unknown_warning_option=no 4985fi 4986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4987fi 4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4989printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4991 CFLAGS="$xorg_testset_save_CFLAGS" 4992fi 4993 4994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4997 fi 4998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5000printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5001if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5002then : 5003 printf %s "(cached) " >&6 5004else $as_nop 5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5006/* end confdefs.h. */ 5007int i; 5008_ACEOF 5009if ac_fn_c_try_compile "$LINENO" 5010then : 5011 xorg_cv_cc_flag_unused_command_line_argument=yes 5012else $as_nop 5013 xorg_cv_cc_flag_unused_command_line_argument=no 5014fi 5015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5016fi 5017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5018printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5020 CFLAGS="$xorg_testset_save_CFLAGS" 5021fi 5022 5023found="no" 5024 5025 if test $found = "no" ; then 5026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5028 fi 5029 5030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5032 fi 5033 5034 CFLAGS="$CFLAGS -Wall" 5035 5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5037printf %s "checking if $CC supports -Wall... " >&6; } 5038 cacheid=xorg_cv_cc_flag__Wall 5039 if eval test \${$cacheid+y} 5040then : 5041 printf %s "(cached) " >&6 5042else $as_nop 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045int i; 5046int 5047main (void) 5048{ 5049 5050 ; 5051 return 0; 5052} 5053_ACEOF 5054if ac_fn_c_try_link "$LINENO" 5055then : 5056 eval $cacheid=yes 5057else $as_nop 5058 eval $cacheid=no 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5061 conftest$ac_exeext conftest.$ac_ext 5062fi 5063 5064 5065 CFLAGS="$xorg_testset_save_CFLAGS" 5066 5067 eval supported=\$$cacheid 5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5069printf "%s\n" "$supported" >&6; } 5070 if test "$supported" = "yes" ; then 5071 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5072 found="yes" 5073 fi 5074 fi 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090xorg_testset_save_CFLAGS="$CFLAGS" 5091 5092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5096if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5097then : 5098 printf %s "(cached) " >&6 5099else $as_nop 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102int i; 5103_ACEOF 5104if ac_fn_c_try_compile "$LINENO" 5105then : 5106 xorg_cv_cc_flag_unknown_warning_option=yes 5107else $as_nop 5108 xorg_cv_cc_flag_unknown_warning_option=no 5109fi 5110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5111fi 5112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5113printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5115 CFLAGS="$xorg_testset_save_CFLAGS" 5116fi 5117 5118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5121 fi 5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5124printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5125if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5126then : 5127 printf %s "(cached) " >&6 5128else $as_nop 5129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5130/* end confdefs.h. */ 5131int i; 5132_ACEOF 5133if ac_fn_c_try_compile "$LINENO" 5134then : 5135 xorg_cv_cc_flag_unused_command_line_argument=yes 5136else $as_nop 5137 xorg_cv_cc_flag_unused_command_line_argument=no 5138fi 5139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5140fi 5141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5144 CFLAGS="$xorg_testset_save_CFLAGS" 5145fi 5146 5147found="no" 5148 5149 if test $found = "no" ; then 5150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5152 fi 5153 5154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5156 fi 5157 5158 CFLAGS="$CFLAGS -Wpointer-arith" 5159 5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5161printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5162 cacheid=xorg_cv_cc_flag__Wpointer_arith 5163 if eval test \${$cacheid+y} 5164then : 5165 printf %s "(cached) " >&6 5166else $as_nop 5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5168/* end confdefs.h. */ 5169int i; 5170int 5171main (void) 5172{ 5173 5174 ; 5175 return 0; 5176} 5177_ACEOF 5178if ac_fn_c_try_link "$LINENO" 5179then : 5180 eval $cacheid=yes 5181else $as_nop 5182 eval $cacheid=no 5183fi 5184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5185 conftest$ac_exeext conftest.$ac_ext 5186fi 5187 5188 5189 CFLAGS="$xorg_testset_save_CFLAGS" 5190 5191 eval supported=\$$cacheid 5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5193printf "%s\n" "$supported" >&6; } 5194 if test "$supported" = "yes" ; then 5195 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5196 found="yes" 5197 fi 5198 fi 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214xorg_testset_save_CFLAGS="$CFLAGS" 5215 5216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5219printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5220if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5221then : 5222 printf %s "(cached) " >&6 5223else $as_nop 5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5225/* end confdefs.h. */ 5226int i; 5227_ACEOF 5228if ac_fn_c_try_compile "$LINENO" 5229then : 5230 xorg_cv_cc_flag_unknown_warning_option=yes 5231else $as_nop 5232 xorg_cv_cc_flag_unknown_warning_option=no 5233fi 5234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5235fi 5236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5237printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5239 CFLAGS="$xorg_testset_save_CFLAGS" 5240fi 5241 5242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5245 fi 5246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5248printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5249if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5250then : 5251 printf %s "(cached) " >&6 5252else $as_nop 5253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5254/* end confdefs.h. */ 5255int i; 5256_ACEOF 5257if ac_fn_c_try_compile "$LINENO" 5258then : 5259 xorg_cv_cc_flag_unused_command_line_argument=yes 5260else $as_nop 5261 xorg_cv_cc_flag_unused_command_line_argument=no 5262fi 5263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5264fi 5265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5266printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5268 CFLAGS="$xorg_testset_save_CFLAGS" 5269fi 5270 5271found="no" 5272 5273 if test $found = "no" ; then 5274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5276 fi 5277 5278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5280 fi 5281 5282 CFLAGS="$CFLAGS -Wmissing-declarations" 5283 5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5285printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5286 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5287 if eval test \${$cacheid+y} 5288then : 5289 printf %s "(cached) " >&6 5290else $as_nop 5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5292/* end confdefs.h. */ 5293int i; 5294int 5295main (void) 5296{ 5297 5298 ; 5299 return 0; 5300} 5301_ACEOF 5302if ac_fn_c_try_link "$LINENO" 5303then : 5304 eval $cacheid=yes 5305else $as_nop 5306 eval $cacheid=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5309 conftest$ac_exeext conftest.$ac_ext 5310fi 5311 5312 5313 CFLAGS="$xorg_testset_save_CFLAGS" 5314 5315 eval supported=\$$cacheid 5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5317printf "%s\n" "$supported" >&6; } 5318 if test "$supported" = "yes" ; then 5319 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5320 found="yes" 5321 fi 5322 fi 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338xorg_testset_save_CFLAGS="$CFLAGS" 5339 5340if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5343printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5344if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5345then : 5346 printf %s "(cached) " >&6 5347else $as_nop 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349/* end confdefs.h. */ 5350int i; 5351_ACEOF 5352if ac_fn_c_try_compile "$LINENO" 5353then : 5354 xorg_cv_cc_flag_unknown_warning_option=yes 5355else $as_nop 5356 xorg_cv_cc_flag_unknown_warning_option=no 5357fi 5358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5359fi 5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5361printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5363 CFLAGS="$xorg_testset_save_CFLAGS" 5364fi 5365 5366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5369 fi 5370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5372printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5373if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5374then : 5375 printf %s "(cached) " >&6 5376else $as_nop 5377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5378/* end confdefs.h. */ 5379int i; 5380_ACEOF 5381if ac_fn_c_try_compile "$LINENO" 5382then : 5383 xorg_cv_cc_flag_unused_command_line_argument=yes 5384else $as_nop 5385 xorg_cv_cc_flag_unused_command_line_argument=no 5386fi 5387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5388fi 5389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5390printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5392 CFLAGS="$xorg_testset_save_CFLAGS" 5393fi 5394 5395found="no" 5396 5397 if test $found = "no" ; then 5398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5400 fi 5401 5402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5404 fi 5405 5406 CFLAGS="$CFLAGS -Wformat=2" 5407 5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5409printf %s "checking if $CC supports -Wformat=2... " >&6; } 5410 cacheid=xorg_cv_cc_flag__Wformat_2 5411 if eval test \${$cacheid+y} 5412then : 5413 printf %s "(cached) " >&6 5414else $as_nop 5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5416/* end confdefs.h. */ 5417int i; 5418int 5419main (void) 5420{ 5421 5422 ; 5423 return 0; 5424} 5425_ACEOF 5426if ac_fn_c_try_link "$LINENO" 5427then : 5428 eval $cacheid=yes 5429else $as_nop 5430 eval $cacheid=no 5431fi 5432rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5433 conftest$ac_exeext conftest.$ac_ext 5434fi 5435 5436 5437 CFLAGS="$xorg_testset_save_CFLAGS" 5438 5439 eval supported=\$$cacheid 5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5441printf "%s\n" "$supported" >&6; } 5442 if test "$supported" = "yes" ; then 5443 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5444 found="yes" 5445 fi 5446 fi 5447 5448 if test $found = "no" ; then 5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 fi 5452 5453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5455 fi 5456 5457 CFLAGS="$CFLAGS -Wformat" 5458 5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5460printf %s "checking if $CC supports -Wformat... " >&6; } 5461 cacheid=xorg_cv_cc_flag__Wformat 5462 if eval test \${$cacheid+y} 5463then : 5464 printf %s "(cached) " >&6 5465else $as_nop 5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5467/* end confdefs.h. */ 5468int i; 5469int 5470main (void) 5471{ 5472 5473 ; 5474 return 0; 5475} 5476_ACEOF 5477if ac_fn_c_try_link "$LINENO" 5478then : 5479 eval $cacheid=yes 5480else $as_nop 5481 eval $cacheid=no 5482fi 5483rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5484 conftest$ac_exeext conftest.$ac_ext 5485fi 5486 5487 5488 CFLAGS="$xorg_testset_save_CFLAGS" 5489 5490 eval supported=\$$cacheid 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5492printf "%s\n" "$supported" >&6; } 5493 if test "$supported" = "yes" ; then 5494 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5495 found="yes" 5496 fi 5497 fi 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515xorg_testset_save_CFLAGS="$CFLAGS" 5516 5517if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5520printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5521if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5522then : 5523 printf %s "(cached) " >&6 5524else $as_nop 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526/* end confdefs.h. */ 5527int i; 5528_ACEOF 5529if ac_fn_c_try_compile "$LINENO" 5530then : 5531 xorg_cv_cc_flag_unknown_warning_option=yes 5532else $as_nop 5533 xorg_cv_cc_flag_unknown_warning_option=no 5534fi 5535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5536fi 5537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5538printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5540 CFLAGS="$xorg_testset_save_CFLAGS" 5541fi 5542 5543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5546 fi 5547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5549printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5550if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5551then : 5552 printf %s "(cached) " >&6 5553else $as_nop 5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5555/* end confdefs.h. */ 5556int i; 5557_ACEOF 5558if ac_fn_c_try_compile "$LINENO" 5559then : 5560 xorg_cv_cc_flag_unused_command_line_argument=yes 5561else $as_nop 5562 xorg_cv_cc_flag_unused_command_line_argument=no 5563fi 5564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5565fi 5566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5567printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5568 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5569 CFLAGS="$xorg_testset_save_CFLAGS" 5570fi 5571 5572found="no" 5573 5574 if test $found = "no" ; then 5575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5577 fi 5578 5579 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5581 fi 5582 5583 CFLAGS="$CFLAGS -Wstrict-prototypes" 5584 5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5586printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5587 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5588 if eval test \${$cacheid+y} 5589then : 5590 printf %s "(cached) " >&6 5591else $as_nop 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594int i; 5595int 5596main (void) 5597{ 5598 5599 ; 5600 return 0; 5601} 5602_ACEOF 5603if ac_fn_c_try_link "$LINENO" 5604then : 5605 eval $cacheid=yes 5606else $as_nop 5607 eval $cacheid=no 5608fi 5609rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5610 conftest$ac_exeext conftest.$ac_ext 5611fi 5612 5613 5614 CFLAGS="$xorg_testset_save_CFLAGS" 5615 5616 eval supported=\$$cacheid 5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5618printf "%s\n" "$supported" >&6; } 5619 if test "$supported" = "yes" ; then 5620 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5621 found="yes" 5622 fi 5623 fi 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639xorg_testset_save_CFLAGS="$CFLAGS" 5640 5641if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5644printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5645if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5646then : 5647 printf %s "(cached) " >&6 5648else $as_nop 5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650/* end confdefs.h. */ 5651int i; 5652_ACEOF 5653if ac_fn_c_try_compile "$LINENO" 5654then : 5655 xorg_cv_cc_flag_unknown_warning_option=yes 5656else $as_nop 5657 xorg_cv_cc_flag_unknown_warning_option=no 5658fi 5659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5660fi 5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5662printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5664 CFLAGS="$xorg_testset_save_CFLAGS" 5665fi 5666 5667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5670 fi 5671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5673printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5674if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5675then : 5676 printf %s "(cached) " >&6 5677else $as_nop 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679/* end confdefs.h. */ 5680int i; 5681_ACEOF 5682if ac_fn_c_try_compile "$LINENO" 5683then : 5684 xorg_cv_cc_flag_unused_command_line_argument=yes 5685else $as_nop 5686 xorg_cv_cc_flag_unused_command_line_argument=no 5687fi 5688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5689fi 5690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5693 CFLAGS="$xorg_testset_save_CFLAGS" 5694fi 5695 5696found="no" 5697 5698 if test $found = "no" ; then 5699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5701 fi 5702 5703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5705 fi 5706 5707 CFLAGS="$CFLAGS -Wmissing-prototypes" 5708 5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5710printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5711 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5712 if eval test \${$cacheid+y} 5713then : 5714 printf %s "(cached) " >&6 5715else $as_nop 5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5717/* end confdefs.h. */ 5718int i; 5719int 5720main (void) 5721{ 5722 5723 ; 5724 return 0; 5725} 5726_ACEOF 5727if ac_fn_c_try_link "$LINENO" 5728then : 5729 eval $cacheid=yes 5730else $as_nop 5731 eval $cacheid=no 5732fi 5733rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5734 conftest$ac_exeext conftest.$ac_ext 5735fi 5736 5737 5738 CFLAGS="$xorg_testset_save_CFLAGS" 5739 5740 eval supported=\$$cacheid 5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5742printf "%s\n" "$supported" >&6; } 5743 if test "$supported" = "yes" ; then 5744 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5745 found="yes" 5746 fi 5747 fi 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763xorg_testset_save_CFLAGS="$CFLAGS" 5764 5765if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5768printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5769if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5770then : 5771 printf %s "(cached) " >&6 5772else $as_nop 5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774/* end confdefs.h. */ 5775int i; 5776_ACEOF 5777if ac_fn_c_try_compile "$LINENO" 5778then : 5779 xorg_cv_cc_flag_unknown_warning_option=yes 5780else $as_nop 5781 xorg_cv_cc_flag_unknown_warning_option=no 5782fi 5783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5784fi 5785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5786printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5788 CFLAGS="$xorg_testset_save_CFLAGS" 5789fi 5790 5791if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5794 fi 5795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5797printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5798if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5799then : 5800 printf %s "(cached) " >&6 5801else $as_nop 5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803/* end confdefs.h. */ 5804int i; 5805_ACEOF 5806if ac_fn_c_try_compile "$LINENO" 5807then : 5808 xorg_cv_cc_flag_unused_command_line_argument=yes 5809else $as_nop 5810 xorg_cv_cc_flag_unused_command_line_argument=no 5811fi 5812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5813fi 5814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5815printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5817 CFLAGS="$xorg_testset_save_CFLAGS" 5818fi 5819 5820found="no" 5821 5822 if test $found = "no" ; then 5823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5825 fi 5826 5827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5829 fi 5830 5831 CFLAGS="$CFLAGS -Wnested-externs" 5832 5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5834printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5835 cacheid=xorg_cv_cc_flag__Wnested_externs 5836 if eval test \${$cacheid+y} 5837then : 5838 printf %s "(cached) " >&6 5839else $as_nop 5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5841/* end confdefs.h. */ 5842int i; 5843int 5844main (void) 5845{ 5846 5847 ; 5848 return 0; 5849} 5850_ACEOF 5851if ac_fn_c_try_link "$LINENO" 5852then : 5853 eval $cacheid=yes 5854else $as_nop 5855 eval $cacheid=no 5856fi 5857rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5858 conftest$ac_exeext conftest.$ac_ext 5859fi 5860 5861 5862 CFLAGS="$xorg_testset_save_CFLAGS" 5863 5864 eval supported=\$$cacheid 5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5866printf "%s\n" "$supported" >&6; } 5867 if test "$supported" = "yes" ; then 5868 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5869 found="yes" 5870 fi 5871 fi 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887xorg_testset_save_CFLAGS="$CFLAGS" 5888 5889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5892printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5893if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5894then : 5895 printf %s "(cached) " >&6 5896else $as_nop 5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5898/* end confdefs.h. */ 5899int i; 5900_ACEOF 5901if ac_fn_c_try_compile "$LINENO" 5902then : 5903 xorg_cv_cc_flag_unknown_warning_option=yes 5904else $as_nop 5905 xorg_cv_cc_flag_unknown_warning_option=no 5906fi 5907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5908fi 5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5912 CFLAGS="$xorg_testset_save_CFLAGS" 5913fi 5914 5915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5918 fi 5919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5922if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5923then : 5924 printf %s "(cached) " >&6 5925else $as_nop 5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5927/* end confdefs.h. */ 5928int i; 5929_ACEOF 5930if ac_fn_c_try_compile "$LINENO" 5931then : 5932 xorg_cv_cc_flag_unused_command_line_argument=yes 5933else $as_nop 5934 xorg_cv_cc_flag_unused_command_line_argument=no 5935fi 5936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5937fi 5938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5939printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5941 CFLAGS="$xorg_testset_save_CFLAGS" 5942fi 5943 5944found="no" 5945 5946 if test $found = "no" ; then 5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5949 fi 5950 5951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5953 fi 5954 5955 CFLAGS="$CFLAGS -Wbad-function-cast" 5956 5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5958printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5959 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5960 if eval test \${$cacheid+y} 5961then : 5962 printf %s "(cached) " >&6 5963else $as_nop 5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5965/* end confdefs.h. */ 5966int i; 5967int 5968main (void) 5969{ 5970 5971 ; 5972 return 0; 5973} 5974_ACEOF 5975if ac_fn_c_try_link "$LINENO" 5976then : 5977 eval $cacheid=yes 5978else $as_nop 5979 eval $cacheid=no 5980fi 5981rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5982 conftest$ac_exeext conftest.$ac_ext 5983fi 5984 5985 5986 CFLAGS="$xorg_testset_save_CFLAGS" 5987 5988 eval supported=\$$cacheid 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5990printf "%s\n" "$supported" >&6; } 5991 if test "$supported" = "yes" ; then 5992 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5993 found="yes" 5994 fi 5995 fi 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011xorg_testset_save_CFLAGS="$CFLAGS" 6012 6013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6017if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6018then : 6019 printf %s "(cached) " >&6 6020else $as_nop 6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6022/* end confdefs.h. */ 6023int i; 6024_ACEOF 6025if ac_fn_c_try_compile "$LINENO" 6026then : 6027 xorg_cv_cc_flag_unknown_warning_option=yes 6028else $as_nop 6029 xorg_cv_cc_flag_unknown_warning_option=no 6030fi 6031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6032fi 6033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6034printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6036 CFLAGS="$xorg_testset_save_CFLAGS" 6037fi 6038 6039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6042 fi 6043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6045printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6046if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6047then : 6048 printf %s "(cached) " >&6 6049else $as_nop 6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6051/* end confdefs.h. */ 6052int i; 6053_ACEOF 6054if ac_fn_c_try_compile "$LINENO" 6055then : 6056 xorg_cv_cc_flag_unused_command_line_argument=yes 6057else $as_nop 6058 xorg_cv_cc_flag_unused_command_line_argument=no 6059fi 6060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6061fi 6062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6065 CFLAGS="$xorg_testset_save_CFLAGS" 6066fi 6067 6068found="no" 6069 6070 if test $found = "no" ; then 6071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6073 fi 6074 6075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6077 fi 6078 6079 CFLAGS="$CFLAGS -Wold-style-definition" 6080 6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6082printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6083 cacheid=xorg_cv_cc_flag__Wold_style_definition 6084 if eval test \${$cacheid+y} 6085then : 6086 printf %s "(cached) " >&6 6087else $as_nop 6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6089/* end confdefs.h. */ 6090int i; 6091int 6092main (void) 6093{ 6094 6095 ; 6096 return 0; 6097} 6098_ACEOF 6099if ac_fn_c_try_link "$LINENO" 6100then : 6101 eval $cacheid=yes 6102else $as_nop 6103 eval $cacheid=no 6104fi 6105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6106 conftest$ac_exeext conftest.$ac_ext 6107fi 6108 6109 6110 CFLAGS="$xorg_testset_save_CFLAGS" 6111 6112 eval supported=\$$cacheid 6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6114printf "%s\n" "$supported" >&6; } 6115 if test "$supported" = "yes" ; then 6116 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6117 found="yes" 6118 fi 6119 fi 6120 6121 if test $found = "no" ; then 6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6124 fi 6125 6126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6128 fi 6129 6130 CFLAGS="$CFLAGS -fd" 6131 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6133printf %s "checking if $CC supports -fd... " >&6; } 6134 cacheid=xorg_cv_cc_flag__fd 6135 if eval test \${$cacheid+y} 6136then : 6137 printf %s "(cached) " >&6 6138else $as_nop 6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6140/* end confdefs.h. */ 6141int i; 6142int 6143main (void) 6144{ 6145 6146 ; 6147 return 0; 6148} 6149_ACEOF 6150if ac_fn_c_try_link "$LINENO" 6151then : 6152 eval $cacheid=yes 6153else $as_nop 6154 eval $cacheid=no 6155fi 6156rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6157 conftest$ac_exeext conftest.$ac_ext 6158fi 6159 6160 6161 CFLAGS="$xorg_testset_save_CFLAGS" 6162 6163 eval supported=\$$cacheid 6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6165printf "%s\n" "$supported" >&6; } 6166 if test "$supported" = "yes" ; then 6167 BASE_CFLAGS="$BASE_CFLAGS -fd" 6168 found="yes" 6169 fi 6170 fi 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186xorg_testset_save_CFLAGS="$CFLAGS" 6187 6188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6192if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6193then : 6194 printf %s "(cached) " >&6 6195else $as_nop 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197/* end confdefs.h. */ 6198int i; 6199_ACEOF 6200if ac_fn_c_try_compile "$LINENO" 6201then : 6202 xorg_cv_cc_flag_unknown_warning_option=yes 6203else $as_nop 6204 xorg_cv_cc_flag_unknown_warning_option=no 6205fi 6206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6207fi 6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6211 CFLAGS="$xorg_testset_save_CFLAGS" 6212fi 6213 6214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6217 fi 6218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6221if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6222then : 6223 printf %s "(cached) " >&6 6224else $as_nop 6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227int i; 6228_ACEOF 6229if ac_fn_c_try_compile "$LINENO" 6230then : 6231 xorg_cv_cc_flag_unused_command_line_argument=yes 6232else $as_nop 6233 xorg_cv_cc_flag_unused_command_line_argument=no 6234fi 6235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6236fi 6237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6240 CFLAGS="$xorg_testset_save_CFLAGS" 6241fi 6242 6243found="no" 6244 6245 if test $found = "no" ; then 6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6248 fi 6249 6250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6252 fi 6253 6254 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6255 6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6257printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6258 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6259 if eval test \${$cacheid+y} 6260then : 6261 printf %s "(cached) " >&6 6262else $as_nop 6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6264/* end confdefs.h. */ 6265int i; 6266int 6267main (void) 6268{ 6269 6270 ; 6271 return 0; 6272} 6273_ACEOF 6274if ac_fn_c_try_link "$LINENO" 6275then : 6276 eval $cacheid=yes 6277else $as_nop 6278 eval $cacheid=no 6279fi 6280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6281 conftest$ac_exeext conftest.$ac_ext 6282fi 6283 6284 6285 CFLAGS="$xorg_testset_save_CFLAGS" 6286 6287 eval supported=\$$cacheid 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6289printf "%s\n" "$supported" >&6; } 6290 if test "$supported" = "yes" ; then 6291 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6292 found="yes" 6293 fi 6294 fi 6295 6296 6297 6298 6299 6300# This chunk adds additional warnings that could catch undesired effects. 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314xorg_testset_save_CFLAGS="$CFLAGS" 6315 6316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6319printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6320if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6321then : 6322 printf %s "(cached) " >&6 6323else $as_nop 6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6325/* end confdefs.h. */ 6326int i; 6327_ACEOF 6328if ac_fn_c_try_compile "$LINENO" 6329then : 6330 xorg_cv_cc_flag_unknown_warning_option=yes 6331else $as_nop 6332 xorg_cv_cc_flag_unknown_warning_option=no 6333fi 6334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6335fi 6336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6337printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6339 CFLAGS="$xorg_testset_save_CFLAGS" 6340fi 6341 6342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6345 fi 6346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6348printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6349if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6350then : 6351 printf %s "(cached) " >&6 6352else $as_nop 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355int i; 6356_ACEOF 6357if ac_fn_c_try_compile "$LINENO" 6358then : 6359 xorg_cv_cc_flag_unused_command_line_argument=yes 6360else $as_nop 6361 xorg_cv_cc_flag_unused_command_line_argument=no 6362fi 6363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6364fi 6365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6366printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6368 CFLAGS="$xorg_testset_save_CFLAGS" 6369fi 6370 6371found="no" 6372 6373 if test $found = "no" ; then 6374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6376 fi 6377 6378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6380 fi 6381 6382 CFLAGS="$CFLAGS -Wunused" 6383 6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6385printf %s "checking if $CC supports -Wunused... " >&6; } 6386 cacheid=xorg_cv_cc_flag__Wunused 6387 if eval test \${$cacheid+y} 6388then : 6389 printf %s "(cached) " >&6 6390else $as_nop 6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6392/* end confdefs.h. */ 6393int i; 6394int 6395main (void) 6396{ 6397 6398 ; 6399 return 0; 6400} 6401_ACEOF 6402if ac_fn_c_try_link "$LINENO" 6403then : 6404 eval $cacheid=yes 6405else $as_nop 6406 eval $cacheid=no 6407fi 6408rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6409 conftest$ac_exeext conftest.$ac_ext 6410fi 6411 6412 6413 CFLAGS="$xorg_testset_save_CFLAGS" 6414 6415 eval supported=\$$cacheid 6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6417printf "%s\n" "$supported" >&6; } 6418 if test "$supported" = "yes" ; then 6419 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6420 found="yes" 6421 fi 6422 fi 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438xorg_testset_save_CFLAGS="$CFLAGS" 6439 6440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6443printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6444if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6445then : 6446 printf %s "(cached) " >&6 6447else $as_nop 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450int i; 6451_ACEOF 6452if ac_fn_c_try_compile "$LINENO" 6453then : 6454 xorg_cv_cc_flag_unknown_warning_option=yes 6455else $as_nop 6456 xorg_cv_cc_flag_unknown_warning_option=no 6457fi 6458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6459fi 6460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6463 CFLAGS="$xorg_testset_save_CFLAGS" 6464fi 6465 6466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6469 fi 6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6473if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6474then : 6475 printf %s "(cached) " >&6 6476else $as_nop 6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479int i; 6480_ACEOF 6481if ac_fn_c_try_compile "$LINENO" 6482then : 6483 xorg_cv_cc_flag_unused_command_line_argument=yes 6484else $as_nop 6485 xorg_cv_cc_flag_unused_command_line_argument=no 6486fi 6487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6488fi 6489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6490printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6492 CFLAGS="$xorg_testset_save_CFLAGS" 6493fi 6494 6495found="no" 6496 6497 if test $found = "no" ; then 6498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6500 fi 6501 6502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6504 fi 6505 6506 CFLAGS="$CFLAGS -Wuninitialized" 6507 6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6509printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6510 cacheid=xorg_cv_cc_flag__Wuninitialized 6511 if eval test \${$cacheid+y} 6512then : 6513 printf %s "(cached) " >&6 6514else $as_nop 6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516/* end confdefs.h. */ 6517int i; 6518int 6519main (void) 6520{ 6521 6522 ; 6523 return 0; 6524} 6525_ACEOF 6526if ac_fn_c_try_link "$LINENO" 6527then : 6528 eval $cacheid=yes 6529else $as_nop 6530 eval $cacheid=no 6531fi 6532rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6533 conftest$ac_exeext conftest.$ac_ext 6534fi 6535 6536 6537 CFLAGS="$xorg_testset_save_CFLAGS" 6538 6539 eval supported=\$$cacheid 6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6541printf "%s\n" "$supported" >&6; } 6542 if test "$supported" = "yes" ; then 6543 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6544 found="yes" 6545 fi 6546 fi 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562xorg_testset_save_CFLAGS="$CFLAGS" 6563 6564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6567printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6568if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6569then : 6570 printf %s "(cached) " >&6 6571else $as_nop 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574int i; 6575_ACEOF 6576if ac_fn_c_try_compile "$LINENO" 6577then : 6578 xorg_cv_cc_flag_unknown_warning_option=yes 6579else $as_nop 6580 xorg_cv_cc_flag_unknown_warning_option=no 6581fi 6582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6583fi 6584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6585printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6587 CFLAGS="$xorg_testset_save_CFLAGS" 6588fi 6589 6590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6593 fi 6594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6596printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6597if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6598then : 6599 printf %s "(cached) " >&6 6600else $as_nop 6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6602/* end confdefs.h. */ 6603int i; 6604_ACEOF 6605if ac_fn_c_try_compile "$LINENO" 6606then : 6607 xorg_cv_cc_flag_unused_command_line_argument=yes 6608else $as_nop 6609 xorg_cv_cc_flag_unused_command_line_argument=no 6610fi 6611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6612fi 6613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6614printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6616 CFLAGS="$xorg_testset_save_CFLAGS" 6617fi 6618 6619found="no" 6620 6621 if test $found = "no" ; then 6622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6624 fi 6625 6626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6628 fi 6629 6630 CFLAGS="$CFLAGS -Wshadow" 6631 6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6633printf %s "checking if $CC supports -Wshadow... " >&6; } 6634 cacheid=xorg_cv_cc_flag__Wshadow 6635 if eval test \${$cacheid+y} 6636then : 6637 printf %s "(cached) " >&6 6638else $as_nop 6639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6640/* end confdefs.h. */ 6641int i; 6642int 6643main (void) 6644{ 6645 6646 ; 6647 return 0; 6648} 6649_ACEOF 6650if ac_fn_c_try_link "$LINENO" 6651then : 6652 eval $cacheid=yes 6653else $as_nop 6654 eval $cacheid=no 6655fi 6656rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6657 conftest$ac_exeext conftest.$ac_ext 6658fi 6659 6660 6661 CFLAGS="$xorg_testset_save_CFLAGS" 6662 6663 eval supported=\$$cacheid 6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6665printf "%s\n" "$supported" >&6; } 6666 if test "$supported" = "yes" ; then 6667 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6668 found="yes" 6669 fi 6670 fi 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686xorg_testset_save_CFLAGS="$CFLAGS" 6687 6688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6691printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6692if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6693then : 6694 printf %s "(cached) " >&6 6695else $as_nop 6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6697/* end confdefs.h. */ 6698int i; 6699_ACEOF 6700if ac_fn_c_try_compile "$LINENO" 6701then : 6702 xorg_cv_cc_flag_unknown_warning_option=yes 6703else $as_nop 6704 xorg_cv_cc_flag_unknown_warning_option=no 6705fi 6706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6707fi 6708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6709printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6711 CFLAGS="$xorg_testset_save_CFLAGS" 6712fi 6713 6714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6717 fi 6718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6720printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6721if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6722then : 6723 printf %s "(cached) " >&6 6724else $as_nop 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726/* end confdefs.h. */ 6727int i; 6728_ACEOF 6729if ac_fn_c_try_compile "$LINENO" 6730then : 6731 xorg_cv_cc_flag_unused_command_line_argument=yes 6732else $as_nop 6733 xorg_cv_cc_flag_unused_command_line_argument=no 6734fi 6735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6736fi 6737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6740 CFLAGS="$xorg_testset_save_CFLAGS" 6741fi 6742 6743found="no" 6744 6745 if test $found = "no" ; then 6746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6748 fi 6749 6750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6752 fi 6753 6754 CFLAGS="$CFLAGS -Wmissing-noreturn" 6755 6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6757printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6758 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6759 if eval test \${$cacheid+y} 6760then : 6761 printf %s "(cached) " >&6 6762else $as_nop 6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765int i; 6766int 6767main (void) 6768{ 6769 6770 ; 6771 return 0; 6772} 6773_ACEOF 6774if ac_fn_c_try_link "$LINENO" 6775then : 6776 eval $cacheid=yes 6777else $as_nop 6778 eval $cacheid=no 6779fi 6780rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6781 conftest$ac_exeext conftest.$ac_ext 6782fi 6783 6784 6785 CFLAGS="$xorg_testset_save_CFLAGS" 6786 6787 eval supported=\$$cacheid 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6789printf "%s\n" "$supported" >&6; } 6790 if test "$supported" = "yes" ; then 6791 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6792 found="yes" 6793 fi 6794 fi 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810xorg_testset_save_CFLAGS="$CFLAGS" 6811 6812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6815printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6816if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6817then : 6818 printf %s "(cached) " >&6 6819else $as_nop 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821/* end confdefs.h. */ 6822int i; 6823_ACEOF 6824if ac_fn_c_try_compile "$LINENO" 6825then : 6826 xorg_cv_cc_flag_unknown_warning_option=yes 6827else $as_nop 6828 xorg_cv_cc_flag_unknown_warning_option=no 6829fi 6830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6831fi 6832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6833printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6834 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6835 CFLAGS="$xorg_testset_save_CFLAGS" 6836fi 6837 6838if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6841 fi 6842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6844printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6845if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6846then : 6847 printf %s "(cached) " >&6 6848else $as_nop 6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6850/* end confdefs.h. */ 6851int i; 6852_ACEOF 6853if ac_fn_c_try_compile "$LINENO" 6854then : 6855 xorg_cv_cc_flag_unused_command_line_argument=yes 6856else $as_nop 6857 xorg_cv_cc_flag_unused_command_line_argument=no 6858fi 6859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6860fi 6861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6862printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6864 CFLAGS="$xorg_testset_save_CFLAGS" 6865fi 6866 6867found="no" 6868 6869 if test $found = "no" ; then 6870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6872 fi 6873 6874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6876 fi 6877 6878 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6879 6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6881printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6882 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6883 if eval test \${$cacheid+y} 6884then : 6885 printf %s "(cached) " >&6 6886else $as_nop 6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6888/* end confdefs.h. */ 6889int i; 6890int 6891main (void) 6892{ 6893 6894 ; 6895 return 0; 6896} 6897_ACEOF 6898if ac_fn_c_try_link "$LINENO" 6899then : 6900 eval $cacheid=yes 6901else $as_nop 6902 eval $cacheid=no 6903fi 6904rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6905 conftest$ac_exeext conftest.$ac_ext 6906fi 6907 6908 6909 CFLAGS="$xorg_testset_save_CFLAGS" 6910 6911 eval supported=\$$cacheid 6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6913printf "%s\n" "$supported" >&6; } 6914 if test "$supported" = "yes" ; then 6915 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6916 found="yes" 6917 fi 6918 fi 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934xorg_testset_save_CFLAGS="$CFLAGS" 6935 6936if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6939printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6940if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6941then : 6942 printf %s "(cached) " >&6 6943else $as_nop 6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6945/* end confdefs.h. */ 6946int i; 6947_ACEOF 6948if ac_fn_c_try_compile "$LINENO" 6949then : 6950 xorg_cv_cc_flag_unknown_warning_option=yes 6951else $as_nop 6952 xorg_cv_cc_flag_unknown_warning_option=no 6953fi 6954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6955fi 6956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6957printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6959 CFLAGS="$xorg_testset_save_CFLAGS" 6960fi 6961 6962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6964 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6965 fi 6966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6968printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6969if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6970then : 6971 printf %s "(cached) " >&6 6972else $as_nop 6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6974/* end confdefs.h. */ 6975int i; 6976_ACEOF 6977if ac_fn_c_try_compile "$LINENO" 6978then : 6979 xorg_cv_cc_flag_unused_command_line_argument=yes 6980else $as_nop 6981 xorg_cv_cc_flag_unused_command_line_argument=no 6982fi 6983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6984fi 6985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6986printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6988 CFLAGS="$xorg_testset_save_CFLAGS" 6989fi 6990 6991found="no" 6992 6993 if test $found = "no" ; then 6994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6996 fi 6997 6998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7000 fi 7001 7002 CFLAGS="$CFLAGS -Wredundant-decls" 7003 7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7005printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7006 cacheid=xorg_cv_cc_flag__Wredundant_decls 7007 if eval test \${$cacheid+y} 7008then : 7009 printf %s "(cached) " >&6 7010else $as_nop 7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7012/* end confdefs.h. */ 7013int i; 7014int 7015main (void) 7016{ 7017 7018 ; 7019 return 0; 7020} 7021_ACEOF 7022if ac_fn_c_try_link "$LINENO" 7023then : 7024 eval $cacheid=yes 7025else $as_nop 7026 eval $cacheid=no 7027fi 7028rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7029 conftest$ac_exeext conftest.$ac_ext 7030fi 7031 7032 7033 CFLAGS="$xorg_testset_save_CFLAGS" 7034 7035 eval supported=\$$cacheid 7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7037printf "%s\n" "$supported" >&6; } 7038 if test "$supported" = "yes" ; then 7039 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7040 found="yes" 7041 fi 7042 fi 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058xorg_testset_save_CFLAGS="$CFLAGS" 7059 7060if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7063printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7064if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7065then : 7066 printf %s "(cached) " >&6 7067else $as_nop 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070int i; 7071_ACEOF 7072if ac_fn_c_try_compile "$LINENO" 7073then : 7074 xorg_cv_cc_flag_unknown_warning_option=yes 7075else $as_nop 7076 xorg_cv_cc_flag_unknown_warning_option=no 7077fi 7078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7079fi 7080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7081printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7083 CFLAGS="$xorg_testset_save_CFLAGS" 7084fi 7085 7086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7089 fi 7090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7092printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7093if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7094then : 7095 printf %s "(cached) " >&6 7096else $as_nop 7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7098/* end confdefs.h. */ 7099int i; 7100_ACEOF 7101if ac_fn_c_try_compile "$LINENO" 7102then : 7103 xorg_cv_cc_flag_unused_command_line_argument=yes 7104else $as_nop 7105 xorg_cv_cc_flag_unused_command_line_argument=no 7106fi 7107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7108fi 7109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7110printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7112 CFLAGS="$xorg_testset_save_CFLAGS" 7113fi 7114 7115found="no" 7116 7117 if test $found = "no" ; then 7118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7120 fi 7121 7122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7124 fi 7125 7126 CFLAGS="$CFLAGS -Wlogical-op" 7127 7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7129printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7130 cacheid=xorg_cv_cc_flag__Wlogical_op 7131 if eval test \${$cacheid+y} 7132then : 7133 printf %s "(cached) " >&6 7134else $as_nop 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137int i; 7138int 7139main (void) 7140{ 7141 7142 ; 7143 return 0; 7144} 7145_ACEOF 7146if ac_fn_c_try_link "$LINENO" 7147then : 7148 eval $cacheid=yes 7149else $as_nop 7150 eval $cacheid=no 7151fi 7152rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7153 conftest$ac_exeext conftest.$ac_ext 7154fi 7155 7156 7157 CFLAGS="$xorg_testset_save_CFLAGS" 7158 7159 eval supported=\$$cacheid 7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7161printf "%s\n" "$supported" >&6; } 7162 if test "$supported" = "yes" ; then 7163 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7164 found="yes" 7165 fi 7166 fi 7167 7168 7169 7170# These are currently disabled because they are noisy. They will be enabled 7171# in the future once the codebase is sufficiently modernized to silence 7172# them. For now, I don't want them to drown out the other warnings. 7173# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7174# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7175# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7176 7177# Turn some warnings into errors, so we don't accidentally get successful builds 7178# when there are problems that should be fixed. 7179 7180if test "x$SELECTIVE_WERROR" = "xyes" ; then 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194xorg_testset_save_CFLAGS="$CFLAGS" 7195 7196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7200if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7201then : 7202 printf %s "(cached) " >&6 7203else $as_nop 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206int i; 7207_ACEOF 7208if ac_fn_c_try_compile "$LINENO" 7209then : 7210 xorg_cv_cc_flag_unknown_warning_option=yes 7211else $as_nop 7212 xorg_cv_cc_flag_unknown_warning_option=no 7213fi 7214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7215fi 7216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7219 CFLAGS="$xorg_testset_save_CFLAGS" 7220fi 7221 7222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7225 fi 7226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7229if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7230then : 7231 printf %s "(cached) " >&6 7232else $as_nop 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234/* end confdefs.h. */ 7235int i; 7236_ACEOF 7237if ac_fn_c_try_compile "$LINENO" 7238then : 7239 xorg_cv_cc_flag_unused_command_line_argument=yes 7240else $as_nop 7241 xorg_cv_cc_flag_unused_command_line_argument=no 7242fi 7243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7244fi 7245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7248 CFLAGS="$xorg_testset_save_CFLAGS" 7249fi 7250 7251found="no" 7252 7253 if test $found = "no" ; then 7254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7256 fi 7257 7258 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7260 fi 7261 7262 CFLAGS="$CFLAGS -Werror=implicit" 7263 7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7265printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7266 cacheid=xorg_cv_cc_flag__Werror_implicit 7267 if eval test \${$cacheid+y} 7268then : 7269 printf %s "(cached) " >&6 7270else $as_nop 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273int i; 7274int 7275main (void) 7276{ 7277 7278 ; 7279 return 0; 7280} 7281_ACEOF 7282if ac_fn_c_try_link "$LINENO" 7283then : 7284 eval $cacheid=yes 7285else $as_nop 7286 eval $cacheid=no 7287fi 7288rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7289 conftest$ac_exeext conftest.$ac_ext 7290fi 7291 7292 7293 CFLAGS="$xorg_testset_save_CFLAGS" 7294 7295 eval supported=\$$cacheid 7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7297printf "%s\n" "$supported" >&6; } 7298 if test "$supported" = "yes" ; then 7299 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7300 found="yes" 7301 fi 7302 fi 7303 7304 if test $found = "no" ; then 7305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7307 fi 7308 7309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7311 fi 7312 7313 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7314 7315 { 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 7316printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7317 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7318 if eval test \${$cacheid+y} 7319then : 7320 printf %s "(cached) " >&6 7321else $as_nop 7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7323/* end confdefs.h. */ 7324int i; 7325int 7326main (void) 7327{ 7328 7329 ; 7330 return 0; 7331} 7332_ACEOF 7333if ac_fn_c_try_link "$LINENO" 7334then : 7335 eval $cacheid=yes 7336else $as_nop 7337 eval $cacheid=no 7338fi 7339rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7340 conftest$ac_exeext conftest.$ac_ext 7341fi 7342 7343 7344 CFLAGS="$xorg_testset_save_CFLAGS" 7345 7346 eval supported=\$$cacheid 7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7348printf "%s\n" "$supported" >&6; } 7349 if test "$supported" = "yes" ; then 7350 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7351 found="yes" 7352 fi 7353 fi 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369xorg_testset_save_CFLAGS="$CFLAGS" 7370 7371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7374printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7375if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7376then : 7377 printf %s "(cached) " >&6 7378else $as_nop 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380/* end confdefs.h. */ 7381int i; 7382_ACEOF 7383if ac_fn_c_try_compile "$LINENO" 7384then : 7385 xorg_cv_cc_flag_unknown_warning_option=yes 7386else $as_nop 7387 xorg_cv_cc_flag_unknown_warning_option=no 7388fi 7389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7390fi 7391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7394 CFLAGS="$xorg_testset_save_CFLAGS" 7395fi 7396 7397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7400 fi 7401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7404if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7405then : 7406 printf %s "(cached) " >&6 7407else $as_nop 7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7409/* end confdefs.h. */ 7410int i; 7411_ACEOF 7412if ac_fn_c_try_compile "$LINENO" 7413then : 7414 xorg_cv_cc_flag_unused_command_line_argument=yes 7415else $as_nop 7416 xorg_cv_cc_flag_unused_command_line_argument=no 7417fi 7418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7419fi 7420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7423 CFLAGS="$xorg_testset_save_CFLAGS" 7424fi 7425 7426found="no" 7427 7428 if test $found = "no" ; then 7429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7431 fi 7432 7433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7435 fi 7436 7437 CFLAGS="$CFLAGS -Werror=nonnull" 7438 7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7440printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7441 cacheid=xorg_cv_cc_flag__Werror_nonnull 7442 if eval test \${$cacheid+y} 7443then : 7444 printf %s "(cached) " >&6 7445else $as_nop 7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448int i; 7449int 7450main (void) 7451{ 7452 7453 ; 7454 return 0; 7455} 7456_ACEOF 7457if ac_fn_c_try_link "$LINENO" 7458then : 7459 eval $cacheid=yes 7460else $as_nop 7461 eval $cacheid=no 7462fi 7463rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7464 conftest$ac_exeext conftest.$ac_ext 7465fi 7466 7467 7468 CFLAGS="$xorg_testset_save_CFLAGS" 7469 7470 eval supported=\$$cacheid 7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7472printf "%s\n" "$supported" >&6; } 7473 if test "$supported" = "yes" ; then 7474 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7475 found="yes" 7476 fi 7477 fi 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493xorg_testset_save_CFLAGS="$CFLAGS" 7494 7495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7500then : 7501 printf %s "(cached) " >&6 7502else $as_nop 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504/* end confdefs.h. */ 7505int i; 7506_ACEOF 7507if ac_fn_c_try_compile "$LINENO" 7508then : 7509 xorg_cv_cc_flag_unknown_warning_option=yes 7510else $as_nop 7511 xorg_cv_cc_flag_unknown_warning_option=no 7512fi 7513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7514fi 7515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519fi 7520 7521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7524 fi 7525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7529then : 7530 printf %s "(cached) " >&6 7531else $as_nop 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534int i; 7535_ACEOF 7536if ac_fn_c_try_compile "$LINENO" 7537then : 7538 xorg_cv_cc_flag_unused_command_line_argument=yes 7539else $as_nop 7540 xorg_cv_cc_flag_unused_command_line_argument=no 7541fi 7542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7543fi 7544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7547 CFLAGS="$xorg_testset_save_CFLAGS" 7548fi 7549 7550found="no" 7551 7552 if test $found = "no" ; then 7553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7555 fi 7556 7557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7559 fi 7560 7561 CFLAGS="$CFLAGS -Werror=init-self" 7562 7563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7564printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7565 cacheid=xorg_cv_cc_flag__Werror_init_self 7566 if eval test \${$cacheid+y} 7567then : 7568 printf %s "(cached) " >&6 7569else $as_nop 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572int i; 7573int 7574main (void) 7575{ 7576 7577 ; 7578 return 0; 7579} 7580_ACEOF 7581if ac_fn_c_try_link "$LINENO" 7582then : 7583 eval $cacheid=yes 7584else $as_nop 7585 eval $cacheid=no 7586fi 7587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7588 conftest$ac_exeext conftest.$ac_ext 7589fi 7590 7591 7592 CFLAGS="$xorg_testset_save_CFLAGS" 7593 7594 eval supported=\$$cacheid 7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7596printf "%s\n" "$supported" >&6; } 7597 if test "$supported" = "yes" ; then 7598 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7599 found="yes" 7600 fi 7601 fi 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617xorg_testset_save_CFLAGS="$CFLAGS" 7618 7619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7623if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7624then : 7625 printf %s "(cached) " >&6 7626else $as_nop 7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628/* end confdefs.h. */ 7629int i; 7630_ACEOF 7631if ac_fn_c_try_compile "$LINENO" 7632then : 7633 xorg_cv_cc_flag_unknown_warning_option=yes 7634else $as_nop 7635 xorg_cv_cc_flag_unknown_warning_option=no 7636fi 7637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7638fi 7639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7640printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7642 CFLAGS="$xorg_testset_save_CFLAGS" 7643fi 7644 7645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7648 fi 7649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7651printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7652if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7653then : 7654 printf %s "(cached) " >&6 7655else $as_nop 7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658int i; 7659_ACEOF 7660if ac_fn_c_try_compile "$LINENO" 7661then : 7662 xorg_cv_cc_flag_unused_command_line_argument=yes 7663else $as_nop 7664 xorg_cv_cc_flag_unused_command_line_argument=no 7665fi 7666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7667fi 7668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7671 CFLAGS="$xorg_testset_save_CFLAGS" 7672fi 7673 7674found="no" 7675 7676 if test $found = "no" ; then 7677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7679 fi 7680 7681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7683 fi 7684 7685 CFLAGS="$CFLAGS -Werror=main" 7686 7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7688printf %s "checking if $CC supports -Werror=main... " >&6; } 7689 cacheid=xorg_cv_cc_flag__Werror_main 7690 if eval test \${$cacheid+y} 7691then : 7692 printf %s "(cached) " >&6 7693else $as_nop 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695/* end confdefs.h. */ 7696int i; 7697int 7698main (void) 7699{ 7700 7701 ; 7702 return 0; 7703} 7704_ACEOF 7705if ac_fn_c_try_link "$LINENO" 7706then : 7707 eval $cacheid=yes 7708else $as_nop 7709 eval $cacheid=no 7710fi 7711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7712 conftest$ac_exeext conftest.$ac_ext 7713fi 7714 7715 7716 CFLAGS="$xorg_testset_save_CFLAGS" 7717 7718 eval supported=\$$cacheid 7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7720printf "%s\n" "$supported" >&6; } 7721 if test "$supported" = "yes" ; then 7722 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7723 found="yes" 7724 fi 7725 fi 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741xorg_testset_save_CFLAGS="$CFLAGS" 7742 7743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7746printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7747if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7748then : 7749 printf %s "(cached) " >&6 7750else $as_nop 7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7752/* end confdefs.h. */ 7753int i; 7754_ACEOF 7755if ac_fn_c_try_compile "$LINENO" 7756then : 7757 xorg_cv_cc_flag_unknown_warning_option=yes 7758else $as_nop 7759 xorg_cv_cc_flag_unknown_warning_option=no 7760fi 7761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7762fi 7763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7764printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7766 CFLAGS="$xorg_testset_save_CFLAGS" 7767fi 7768 7769if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7772 fi 7773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7775printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7776if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7777then : 7778 printf %s "(cached) " >&6 7779else $as_nop 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782int i; 7783_ACEOF 7784if ac_fn_c_try_compile "$LINENO" 7785then : 7786 xorg_cv_cc_flag_unused_command_line_argument=yes 7787else $as_nop 7788 xorg_cv_cc_flag_unused_command_line_argument=no 7789fi 7790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7791fi 7792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7793printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7795 CFLAGS="$xorg_testset_save_CFLAGS" 7796fi 7797 7798found="no" 7799 7800 if test $found = "no" ; then 7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7803 fi 7804 7805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7807 fi 7808 7809 CFLAGS="$CFLAGS -Werror=missing-braces" 7810 7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7812printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7813 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7814 if eval test \${$cacheid+y} 7815then : 7816 printf %s "(cached) " >&6 7817else $as_nop 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820int i; 7821int 7822main (void) 7823{ 7824 7825 ; 7826 return 0; 7827} 7828_ACEOF 7829if ac_fn_c_try_link "$LINENO" 7830then : 7831 eval $cacheid=yes 7832else $as_nop 7833 eval $cacheid=no 7834fi 7835rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7836 conftest$ac_exeext conftest.$ac_ext 7837fi 7838 7839 7840 CFLAGS="$xorg_testset_save_CFLAGS" 7841 7842 eval supported=\$$cacheid 7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7844printf "%s\n" "$supported" >&6; } 7845 if test "$supported" = "yes" ; then 7846 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7847 found="yes" 7848 fi 7849 fi 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865xorg_testset_save_CFLAGS="$CFLAGS" 7866 7867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7870printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7871if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7872then : 7873 printf %s "(cached) " >&6 7874else $as_nop 7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7876/* end confdefs.h. */ 7877int i; 7878_ACEOF 7879if ac_fn_c_try_compile "$LINENO" 7880then : 7881 xorg_cv_cc_flag_unknown_warning_option=yes 7882else $as_nop 7883 xorg_cv_cc_flag_unknown_warning_option=no 7884fi 7885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7886fi 7887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7888printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7889 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7890 CFLAGS="$xorg_testset_save_CFLAGS" 7891fi 7892 7893if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7896 fi 7897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7899printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7900if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7901then : 7902 printf %s "(cached) " >&6 7903else $as_nop 7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7905/* end confdefs.h. */ 7906int i; 7907_ACEOF 7908if ac_fn_c_try_compile "$LINENO" 7909then : 7910 xorg_cv_cc_flag_unused_command_line_argument=yes 7911else $as_nop 7912 xorg_cv_cc_flag_unused_command_line_argument=no 7913fi 7914rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7915fi 7916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7917printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7919 CFLAGS="$xorg_testset_save_CFLAGS" 7920fi 7921 7922found="no" 7923 7924 if test $found = "no" ; then 7925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7927 fi 7928 7929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7931 fi 7932 7933 CFLAGS="$CFLAGS -Werror=sequence-point" 7934 7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7936printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7937 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7938 if eval test \${$cacheid+y} 7939then : 7940 printf %s "(cached) " >&6 7941else $as_nop 7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7943/* end confdefs.h. */ 7944int i; 7945int 7946main (void) 7947{ 7948 7949 ; 7950 return 0; 7951} 7952_ACEOF 7953if ac_fn_c_try_link "$LINENO" 7954then : 7955 eval $cacheid=yes 7956else $as_nop 7957 eval $cacheid=no 7958fi 7959rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7960 conftest$ac_exeext conftest.$ac_ext 7961fi 7962 7963 7964 CFLAGS="$xorg_testset_save_CFLAGS" 7965 7966 eval supported=\$$cacheid 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7968printf "%s\n" "$supported" >&6; } 7969 if test "$supported" = "yes" ; then 7970 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7971 found="yes" 7972 fi 7973 fi 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989xorg_testset_save_CFLAGS="$CFLAGS" 7990 7991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7994printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7995if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7996then : 7997 printf %s "(cached) " >&6 7998else $as_nop 7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8000/* end confdefs.h. */ 8001int i; 8002_ACEOF 8003if ac_fn_c_try_compile "$LINENO" 8004then : 8005 xorg_cv_cc_flag_unknown_warning_option=yes 8006else $as_nop 8007 xorg_cv_cc_flag_unknown_warning_option=no 8008fi 8009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8010fi 8011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8012printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8013 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015fi 8016 8017if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8019 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8020 fi 8021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8023printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8024if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8025then : 8026 printf %s "(cached) " >&6 8027else $as_nop 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8029/* end confdefs.h. */ 8030int i; 8031_ACEOF 8032if ac_fn_c_try_compile "$LINENO" 8033then : 8034 xorg_cv_cc_flag_unused_command_line_argument=yes 8035else $as_nop 8036 xorg_cv_cc_flag_unused_command_line_argument=no 8037fi 8038rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8039fi 8040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8041printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8042 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8043 CFLAGS="$xorg_testset_save_CFLAGS" 8044fi 8045 8046found="no" 8047 8048 if test $found = "no" ; then 8049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8051 fi 8052 8053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8055 fi 8056 8057 CFLAGS="$CFLAGS -Werror=return-type" 8058 8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8060printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8061 cacheid=xorg_cv_cc_flag__Werror_return_type 8062 if eval test \${$cacheid+y} 8063then : 8064 printf %s "(cached) " >&6 8065else $as_nop 8066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8067/* end confdefs.h. */ 8068int i; 8069int 8070main (void) 8071{ 8072 8073 ; 8074 return 0; 8075} 8076_ACEOF 8077if ac_fn_c_try_link "$LINENO" 8078then : 8079 eval $cacheid=yes 8080else $as_nop 8081 eval $cacheid=no 8082fi 8083rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8084 conftest$ac_exeext conftest.$ac_ext 8085fi 8086 8087 8088 CFLAGS="$xorg_testset_save_CFLAGS" 8089 8090 eval supported=\$$cacheid 8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8092printf "%s\n" "$supported" >&6; } 8093 if test "$supported" = "yes" ; then 8094 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8095 found="yes" 8096 fi 8097 fi 8098 8099 if test $found = "no" ; then 8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8102 fi 8103 8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8106 fi 8107 8108 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8109 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8111printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8112 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8113 if eval test \${$cacheid+y} 8114then : 8115 printf %s "(cached) " >&6 8116else $as_nop 8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8118/* end confdefs.h. */ 8119int i; 8120int 8121main (void) 8122{ 8123 8124 ; 8125 return 0; 8126} 8127_ACEOF 8128if ac_fn_c_try_link "$LINENO" 8129then : 8130 eval $cacheid=yes 8131else $as_nop 8132 eval $cacheid=no 8133fi 8134rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8135 conftest$ac_exeext conftest.$ac_ext 8136fi 8137 8138 8139 CFLAGS="$xorg_testset_save_CFLAGS" 8140 8141 eval supported=\$$cacheid 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8143printf "%s\n" "$supported" >&6; } 8144 if test "$supported" = "yes" ; then 8145 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8146 found="yes" 8147 fi 8148 fi 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164xorg_testset_save_CFLAGS="$CFLAGS" 8165 8166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8170if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8171then : 8172 printf %s "(cached) " >&6 8173else $as_nop 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176int i; 8177_ACEOF 8178if ac_fn_c_try_compile "$LINENO" 8179then : 8180 xorg_cv_cc_flag_unknown_warning_option=yes 8181else $as_nop 8182 xorg_cv_cc_flag_unknown_warning_option=no 8183fi 8184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8185fi 8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8189 CFLAGS="$xorg_testset_save_CFLAGS" 8190fi 8191 8192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8195 fi 8196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8199if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8200then : 8201 printf %s "(cached) " >&6 8202else $as_nop 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205int i; 8206_ACEOF 8207if ac_fn_c_try_compile "$LINENO" 8208then : 8209 xorg_cv_cc_flag_unused_command_line_argument=yes 8210else $as_nop 8211 xorg_cv_cc_flag_unused_command_line_argument=no 8212fi 8213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8214fi 8215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8218 CFLAGS="$xorg_testset_save_CFLAGS" 8219fi 8220 8221found="no" 8222 8223 if test $found = "no" ; then 8224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8226 fi 8227 8228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8230 fi 8231 8232 CFLAGS="$CFLAGS -Werror=trigraphs" 8233 8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8235printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8236 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8237 if eval test \${$cacheid+y} 8238then : 8239 printf %s "(cached) " >&6 8240else $as_nop 8241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8242/* end confdefs.h. */ 8243int i; 8244int 8245main (void) 8246{ 8247 8248 ; 8249 return 0; 8250} 8251_ACEOF 8252if ac_fn_c_try_link "$LINENO" 8253then : 8254 eval $cacheid=yes 8255else $as_nop 8256 eval $cacheid=no 8257fi 8258rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8259 conftest$ac_exeext conftest.$ac_ext 8260fi 8261 8262 8263 CFLAGS="$xorg_testset_save_CFLAGS" 8264 8265 eval supported=\$$cacheid 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8267printf "%s\n" "$supported" >&6; } 8268 if test "$supported" = "yes" ; then 8269 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8270 found="yes" 8271 fi 8272 fi 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288xorg_testset_save_CFLAGS="$CFLAGS" 8289 8290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8294if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8295then : 8296 printf %s "(cached) " >&6 8297else $as_nop 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300int i; 8301_ACEOF 8302if ac_fn_c_try_compile "$LINENO" 8303then : 8304 xorg_cv_cc_flag_unknown_warning_option=yes 8305else $as_nop 8306 xorg_cv_cc_flag_unknown_warning_option=no 8307fi 8308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8309fi 8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314fi 8315 8316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8319 fi 8320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8323if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8324then : 8325 printf %s "(cached) " >&6 8326else $as_nop 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329int i; 8330_ACEOF 8331if ac_fn_c_try_compile "$LINENO" 8332then : 8333 xorg_cv_cc_flag_unused_command_line_argument=yes 8334else $as_nop 8335 xorg_cv_cc_flag_unused_command_line_argument=no 8336fi 8337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8338fi 8339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8342 CFLAGS="$xorg_testset_save_CFLAGS" 8343fi 8344 8345found="no" 8346 8347 if test $found = "no" ; then 8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8350 fi 8351 8352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8354 fi 8355 8356 CFLAGS="$CFLAGS -Werror=array-bounds" 8357 8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8359printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8360 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8361 if eval test \${$cacheid+y} 8362then : 8363 printf %s "(cached) " >&6 8364else $as_nop 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367int i; 8368int 8369main (void) 8370{ 8371 8372 ; 8373 return 0; 8374} 8375_ACEOF 8376if ac_fn_c_try_link "$LINENO" 8377then : 8378 eval $cacheid=yes 8379else $as_nop 8380 eval $cacheid=no 8381fi 8382rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8383 conftest$ac_exeext conftest.$ac_ext 8384fi 8385 8386 8387 CFLAGS="$xorg_testset_save_CFLAGS" 8388 8389 eval supported=\$$cacheid 8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8391printf "%s\n" "$supported" >&6; } 8392 if test "$supported" = "yes" ; then 8393 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8394 found="yes" 8395 fi 8396 fi 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412xorg_testset_save_CFLAGS="$CFLAGS" 8413 8414if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8417printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8418if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8419then : 8420 printf %s "(cached) " >&6 8421else $as_nop 8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8423/* end confdefs.h. */ 8424int i; 8425_ACEOF 8426if ac_fn_c_try_compile "$LINENO" 8427then : 8428 xorg_cv_cc_flag_unknown_warning_option=yes 8429else $as_nop 8430 xorg_cv_cc_flag_unknown_warning_option=no 8431fi 8432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8433fi 8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8435printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8436 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8437 CFLAGS="$xorg_testset_save_CFLAGS" 8438fi 8439 8440if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8441 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8443 fi 8444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8446printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8447if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8448then : 8449 printf %s "(cached) " >&6 8450else $as_nop 8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8452/* end confdefs.h. */ 8453int i; 8454_ACEOF 8455if ac_fn_c_try_compile "$LINENO" 8456then : 8457 xorg_cv_cc_flag_unused_command_line_argument=yes 8458else $as_nop 8459 xorg_cv_cc_flag_unused_command_line_argument=no 8460fi 8461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8462fi 8463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8464printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8466 CFLAGS="$xorg_testset_save_CFLAGS" 8467fi 8468 8469found="no" 8470 8471 if test $found = "no" ; then 8472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8474 fi 8475 8476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8478 fi 8479 8480 CFLAGS="$CFLAGS -Werror=write-strings" 8481 8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8483printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8484 cacheid=xorg_cv_cc_flag__Werror_write_strings 8485 if eval test \${$cacheid+y} 8486then : 8487 printf %s "(cached) " >&6 8488else $as_nop 8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8490/* end confdefs.h. */ 8491int i; 8492int 8493main (void) 8494{ 8495 8496 ; 8497 return 0; 8498} 8499_ACEOF 8500if ac_fn_c_try_link "$LINENO" 8501then : 8502 eval $cacheid=yes 8503else $as_nop 8504 eval $cacheid=no 8505fi 8506rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8507 conftest$ac_exeext conftest.$ac_ext 8508fi 8509 8510 8511 CFLAGS="$xorg_testset_save_CFLAGS" 8512 8513 eval supported=\$$cacheid 8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8515printf "%s\n" "$supported" >&6; } 8516 if test "$supported" = "yes" ; then 8517 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8518 found="yes" 8519 fi 8520 fi 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536xorg_testset_save_CFLAGS="$CFLAGS" 8537 8538if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8541printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8542if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8543then : 8544 printf %s "(cached) " >&6 8545else $as_nop 8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8547/* end confdefs.h. */ 8548int i; 8549_ACEOF 8550if ac_fn_c_try_compile "$LINENO" 8551then : 8552 xorg_cv_cc_flag_unknown_warning_option=yes 8553else $as_nop 8554 xorg_cv_cc_flag_unknown_warning_option=no 8555fi 8556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8557fi 8558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8559printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8561 CFLAGS="$xorg_testset_save_CFLAGS" 8562fi 8563 8564if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8567 fi 8568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8570printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8571if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8572then : 8573 printf %s "(cached) " >&6 8574else $as_nop 8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8576/* end confdefs.h. */ 8577int i; 8578_ACEOF 8579if ac_fn_c_try_compile "$LINENO" 8580then : 8581 xorg_cv_cc_flag_unused_command_line_argument=yes 8582else $as_nop 8583 xorg_cv_cc_flag_unused_command_line_argument=no 8584fi 8585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8586fi 8587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8588printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8590 CFLAGS="$xorg_testset_save_CFLAGS" 8591fi 8592 8593found="no" 8594 8595 if test $found = "no" ; then 8596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8598 fi 8599 8600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8602 fi 8603 8604 CFLAGS="$CFLAGS -Werror=address" 8605 8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8607printf %s "checking if $CC supports -Werror=address... " >&6; } 8608 cacheid=xorg_cv_cc_flag__Werror_address 8609 if eval test \${$cacheid+y} 8610then : 8611 printf %s "(cached) " >&6 8612else $as_nop 8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615int i; 8616int 8617main (void) 8618{ 8619 8620 ; 8621 return 0; 8622} 8623_ACEOF 8624if ac_fn_c_try_link "$LINENO" 8625then : 8626 eval $cacheid=yes 8627else $as_nop 8628 eval $cacheid=no 8629fi 8630rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8631 conftest$ac_exeext conftest.$ac_ext 8632fi 8633 8634 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636 8637 eval supported=\$$cacheid 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8639printf "%s\n" "$supported" >&6; } 8640 if test "$supported" = "yes" ; then 8641 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8642 found="yes" 8643 fi 8644 fi 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660xorg_testset_save_CFLAGS="$CFLAGS" 8661 8662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8666if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8667then : 8668 printf %s "(cached) " >&6 8669else $as_nop 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673_ACEOF 8674if ac_fn_c_try_compile "$LINENO" 8675then : 8676 xorg_cv_cc_flag_unknown_warning_option=yes 8677else $as_nop 8678 xorg_cv_cc_flag_unknown_warning_option=no 8679fi 8680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8681fi 8682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8683printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8685 CFLAGS="$xorg_testset_save_CFLAGS" 8686fi 8687 8688if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8691 fi 8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8694printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8695if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8696then : 8697 printf %s "(cached) " >&6 8698else $as_nop 8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8700/* end confdefs.h. */ 8701int i; 8702_ACEOF 8703if ac_fn_c_try_compile "$LINENO" 8704then : 8705 xorg_cv_cc_flag_unused_command_line_argument=yes 8706else $as_nop 8707 xorg_cv_cc_flag_unused_command_line_argument=no 8708fi 8709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8710fi 8711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8712printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8714 CFLAGS="$xorg_testset_save_CFLAGS" 8715fi 8716 8717found="no" 8718 8719 if test $found = "no" ; then 8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8722 fi 8723 8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8726 fi 8727 8728 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8729 8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8731printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8732 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8733 if eval test \${$cacheid+y} 8734then : 8735 printf %s "(cached) " >&6 8736else $as_nop 8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8738/* end confdefs.h. */ 8739int i; 8740int 8741main (void) 8742{ 8743 8744 ; 8745 return 0; 8746} 8747_ACEOF 8748if ac_fn_c_try_link "$LINENO" 8749then : 8750 eval $cacheid=yes 8751else $as_nop 8752 eval $cacheid=no 8753fi 8754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8755 conftest$ac_exeext conftest.$ac_ext 8756fi 8757 8758 8759 CFLAGS="$xorg_testset_save_CFLAGS" 8760 8761 eval supported=\$$cacheid 8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8763printf "%s\n" "$supported" >&6; } 8764 if test "$supported" = "yes" ; then 8765 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8766 found="yes" 8767 fi 8768 fi 8769 8770 if test $found = "no" ; then 8771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8773 fi 8774 8775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8777 fi 8778 8779 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8780 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8782printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8783 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8784 if eval test \${$cacheid+y} 8785then : 8786 printf %s "(cached) " >&6 8787else $as_nop 8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8789/* end confdefs.h. */ 8790int i; 8791int 8792main (void) 8793{ 8794 8795 ; 8796 return 0; 8797} 8798_ACEOF 8799if ac_fn_c_try_link "$LINENO" 8800then : 8801 eval $cacheid=yes 8802else $as_nop 8803 eval $cacheid=no 8804fi 8805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8806 conftest$ac_exeext conftest.$ac_ext 8807fi 8808 8809 8810 CFLAGS="$xorg_testset_save_CFLAGS" 8811 8812 eval supported=\$$cacheid 8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8814printf "%s\n" "$supported" >&6; } 8815 if test "$supported" = "yes" ; then 8816 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8817 found="yes" 8818 fi 8819 fi 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835xorg_testset_save_CFLAGS="$CFLAGS" 8836 8837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8841if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8842then : 8843 printf %s "(cached) " >&6 8844else $as_nop 8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846/* end confdefs.h. */ 8847int i; 8848_ACEOF 8849if ac_fn_c_try_compile "$LINENO" 8850then : 8851 xorg_cv_cc_flag_unknown_warning_option=yes 8852else $as_nop 8853 xorg_cv_cc_flag_unknown_warning_option=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8856fi 8857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861fi 8862 8863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8866 fi 8867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8871then : 8872 printf %s "(cached) " >&6 8873else $as_nop 8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8875/* end confdefs.h. */ 8876int i; 8877_ACEOF 8878if ac_fn_c_try_compile "$LINENO" 8879then : 8880 xorg_cv_cc_flag_unused_command_line_argument=yes 8881else $as_nop 8882 xorg_cv_cc_flag_unused_command_line_argument=no 8883fi 8884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8885fi 8886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8889 CFLAGS="$xorg_testset_save_CFLAGS" 8890fi 8891 8892found="no" 8893 8894 if test $found = "no" ; then 8895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8897 fi 8898 8899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8901 fi 8902 8903 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8904 8905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8906printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8907 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8908 if eval test \${$cacheid+y} 8909then : 8910 printf %s "(cached) " >&6 8911else $as_nop 8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913/* end confdefs.h. */ 8914int i; 8915int 8916main (void) 8917{ 8918 8919 ; 8920 return 0; 8921} 8922_ACEOF 8923if ac_fn_c_try_link "$LINENO" 8924then : 8925 eval $cacheid=yes 8926else $as_nop 8927 eval $cacheid=no 8928fi 8929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8930 conftest$ac_exeext conftest.$ac_ext 8931fi 8932 8933 8934 CFLAGS="$xorg_testset_save_CFLAGS" 8935 8936 eval supported=\$$cacheid 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8938printf "%s\n" "$supported" >&6; } 8939 if test "$supported" = "yes" ; then 8940 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8941 found="yes" 8942 fi 8943 fi 8944 8945 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8946else 8947{ 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 8948printf "%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;} 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962xorg_testset_save_CFLAGS="$CFLAGS" 8963 8964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8968if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8969then : 8970 printf %s "(cached) " >&6 8971else $as_nop 8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8973/* end confdefs.h. */ 8974int i; 8975_ACEOF 8976if ac_fn_c_try_compile "$LINENO" 8977then : 8978 xorg_cv_cc_flag_unknown_warning_option=yes 8979else $as_nop 8980 xorg_cv_cc_flag_unknown_warning_option=no 8981fi 8982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8983fi 8984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8987 CFLAGS="$xorg_testset_save_CFLAGS" 8988fi 8989 8990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8993 fi 8994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8997if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8998then : 8999 printf %s "(cached) " >&6 9000else $as_nop 9001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9002/* end confdefs.h. */ 9003int i; 9004_ACEOF 9005if ac_fn_c_try_compile "$LINENO" 9006then : 9007 xorg_cv_cc_flag_unused_command_line_argument=yes 9008else $as_nop 9009 xorg_cv_cc_flag_unused_command_line_argument=no 9010fi 9011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9012fi 9013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9016 CFLAGS="$xorg_testset_save_CFLAGS" 9017fi 9018 9019found="no" 9020 9021 if test $found = "no" ; then 9022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9024 fi 9025 9026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9028 fi 9029 9030 CFLAGS="$CFLAGS -Wimplicit" 9031 9032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9033printf %s "checking if $CC supports -Wimplicit... " >&6; } 9034 cacheid=xorg_cv_cc_flag__Wimplicit 9035 if eval test \${$cacheid+y} 9036then : 9037 printf %s "(cached) " >&6 9038else $as_nop 9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9040/* end confdefs.h. */ 9041int i; 9042int 9043main (void) 9044{ 9045 9046 ; 9047 return 0; 9048} 9049_ACEOF 9050if ac_fn_c_try_link "$LINENO" 9051then : 9052 eval $cacheid=yes 9053else $as_nop 9054 eval $cacheid=no 9055fi 9056rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9057 conftest$ac_exeext conftest.$ac_ext 9058fi 9059 9060 9061 CFLAGS="$xorg_testset_save_CFLAGS" 9062 9063 eval supported=\$$cacheid 9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9065printf "%s\n" "$supported" >&6; } 9066 if test "$supported" = "yes" ; then 9067 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9068 found="yes" 9069 fi 9070 fi 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086xorg_testset_save_CFLAGS="$CFLAGS" 9087 9088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9092if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9093then : 9094 printf %s "(cached) " >&6 9095else $as_nop 9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9097/* end confdefs.h. */ 9098int i; 9099_ACEOF 9100if ac_fn_c_try_compile "$LINENO" 9101then : 9102 xorg_cv_cc_flag_unknown_warning_option=yes 9103else $as_nop 9104 xorg_cv_cc_flag_unknown_warning_option=no 9105fi 9106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9107fi 9108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9111 CFLAGS="$xorg_testset_save_CFLAGS" 9112fi 9113 9114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9117 fi 9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9121if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9122then : 9123 printf %s "(cached) " >&6 9124else $as_nop 9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9126/* end confdefs.h. */ 9127int i; 9128_ACEOF 9129if ac_fn_c_try_compile "$LINENO" 9130then : 9131 xorg_cv_cc_flag_unused_command_line_argument=yes 9132else $as_nop 9133 xorg_cv_cc_flag_unused_command_line_argument=no 9134fi 9135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9136fi 9137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9140 CFLAGS="$xorg_testset_save_CFLAGS" 9141fi 9142 9143found="no" 9144 9145 if test $found = "no" ; then 9146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9148 fi 9149 9150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9152 fi 9153 9154 CFLAGS="$CFLAGS -Wnonnull" 9155 9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9157printf %s "checking if $CC supports -Wnonnull... " >&6; } 9158 cacheid=xorg_cv_cc_flag__Wnonnull 9159 if eval test \${$cacheid+y} 9160then : 9161 printf %s "(cached) " >&6 9162else $as_nop 9163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9164/* end confdefs.h. */ 9165int i; 9166int 9167main (void) 9168{ 9169 9170 ; 9171 return 0; 9172} 9173_ACEOF 9174if ac_fn_c_try_link "$LINENO" 9175then : 9176 eval $cacheid=yes 9177else $as_nop 9178 eval $cacheid=no 9179fi 9180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9181 conftest$ac_exeext conftest.$ac_ext 9182fi 9183 9184 9185 CFLAGS="$xorg_testset_save_CFLAGS" 9186 9187 eval supported=\$$cacheid 9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9189printf "%s\n" "$supported" >&6; } 9190 if test "$supported" = "yes" ; then 9191 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9192 found="yes" 9193 fi 9194 fi 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210xorg_testset_save_CFLAGS="$CFLAGS" 9211 9212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9216if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9217then : 9218 printf %s "(cached) " >&6 9219else $as_nop 9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9221/* end confdefs.h. */ 9222int i; 9223_ACEOF 9224if ac_fn_c_try_compile "$LINENO" 9225then : 9226 xorg_cv_cc_flag_unknown_warning_option=yes 9227else $as_nop 9228 xorg_cv_cc_flag_unknown_warning_option=no 9229fi 9230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9231fi 9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9234 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236fi 9237 9238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9241 fi 9242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9245if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9246then : 9247 printf %s "(cached) " >&6 9248else $as_nop 9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250/* end confdefs.h. */ 9251int i; 9252_ACEOF 9253if ac_fn_c_try_compile "$LINENO" 9254then : 9255 xorg_cv_cc_flag_unused_command_line_argument=yes 9256else $as_nop 9257 xorg_cv_cc_flag_unused_command_line_argument=no 9258fi 9259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9260fi 9261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9264 CFLAGS="$xorg_testset_save_CFLAGS" 9265fi 9266 9267found="no" 9268 9269 if test $found = "no" ; then 9270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9272 fi 9273 9274 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9276 fi 9277 9278 CFLAGS="$CFLAGS -Winit-self" 9279 9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9281printf %s "checking if $CC supports -Winit-self... " >&6; } 9282 cacheid=xorg_cv_cc_flag__Winit_self 9283 if eval test \${$cacheid+y} 9284then : 9285 printf %s "(cached) " >&6 9286else $as_nop 9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288/* end confdefs.h. */ 9289int i; 9290int 9291main (void) 9292{ 9293 9294 ; 9295 return 0; 9296} 9297_ACEOF 9298if ac_fn_c_try_link "$LINENO" 9299then : 9300 eval $cacheid=yes 9301else $as_nop 9302 eval $cacheid=no 9303fi 9304rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9305 conftest$ac_exeext conftest.$ac_ext 9306fi 9307 9308 9309 CFLAGS="$xorg_testset_save_CFLAGS" 9310 9311 eval supported=\$$cacheid 9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9313printf "%s\n" "$supported" >&6; } 9314 if test "$supported" = "yes" ; then 9315 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9316 found="yes" 9317 fi 9318 fi 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334xorg_testset_save_CFLAGS="$CFLAGS" 9335 9336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9340if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9341then : 9342 printf %s "(cached) " >&6 9343else $as_nop 9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9345/* end confdefs.h. */ 9346int i; 9347_ACEOF 9348if ac_fn_c_try_compile "$LINENO" 9349then : 9350 xorg_cv_cc_flag_unknown_warning_option=yes 9351else $as_nop 9352 xorg_cv_cc_flag_unknown_warning_option=no 9353fi 9354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9355fi 9356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9358 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9359 CFLAGS="$xorg_testset_save_CFLAGS" 9360fi 9361 9362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9365 fi 9366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9369if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9370then : 9371 printf %s "(cached) " >&6 9372else $as_nop 9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9374/* end confdefs.h. */ 9375int i; 9376_ACEOF 9377if ac_fn_c_try_compile "$LINENO" 9378then : 9379 xorg_cv_cc_flag_unused_command_line_argument=yes 9380else $as_nop 9381 xorg_cv_cc_flag_unused_command_line_argument=no 9382fi 9383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9384fi 9385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9386printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9388 CFLAGS="$xorg_testset_save_CFLAGS" 9389fi 9390 9391found="no" 9392 9393 if test $found = "no" ; then 9394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9396 fi 9397 9398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9400 fi 9401 9402 CFLAGS="$CFLAGS -Wmain" 9403 9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9405printf %s "checking if $CC supports -Wmain... " >&6; } 9406 cacheid=xorg_cv_cc_flag__Wmain 9407 if eval test \${$cacheid+y} 9408then : 9409 printf %s "(cached) " >&6 9410else $as_nop 9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9412/* end confdefs.h. */ 9413int i; 9414int 9415main (void) 9416{ 9417 9418 ; 9419 return 0; 9420} 9421_ACEOF 9422if ac_fn_c_try_link "$LINENO" 9423then : 9424 eval $cacheid=yes 9425else $as_nop 9426 eval $cacheid=no 9427fi 9428rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9429 conftest$ac_exeext conftest.$ac_ext 9430fi 9431 9432 9433 CFLAGS="$xorg_testset_save_CFLAGS" 9434 9435 eval supported=\$$cacheid 9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9437printf "%s\n" "$supported" >&6; } 9438 if test "$supported" = "yes" ; then 9439 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9440 found="yes" 9441 fi 9442 fi 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458xorg_testset_save_CFLAGS="$CFLAGS" 9459 9460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9464if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9465then : 9466 printf %s "(cached) " >&6 9467else $as_nop 9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469/* end confdefs.h. */ 9470int i; 9471_ACEOF 9472if ac_fn_c_try_compile "$LINENO" 9473then : 9474 xorg_cv_cc_flag_unknown_warning_option=yes 9475else $as_nop 9476 xorg_cv_cc_flag_unknown_warning_option=no 9477fi 9478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9479fi 9480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9483 CFLAGS="$xorg_testset_save_CFLAGS" 9484fi 9485 9486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9489 fi 9490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9493if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9494then : 9495 printf %s "(cached) " >&6 9496else $as_nop 9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9498/* end confdefs.h. */ 9499int i; 9500_ACEOF 9501if ac_fn_c_try_compile "$LINENO" 9502then : 9503 xorg_cv_cc_flag_unused_command_line_argument=yes 9504else $as_nop 9505 xorg_cv_cc_flag_unused_command_line_argument=no 9506fi 9507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9508fi 9509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9512 CFLAGS="$xorg_testset_save_CFLAGS" 9513fi 9514 9515found="no" 9516 9517 if test $found = "no" ; then 9518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9520 fi 9521 9522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9524 fi 9525 9526 CFLAGS="$CFLAGS -Wmissing-braces" 9527 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9529printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9530 cacheid=xorg_cv_cc_flag__Wmissing_braces 9531 if eval test \${$cacheid+y} 9532then : 9533 printf %s "(cached) " >&6 9534else $as_nop 9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9536/* end confdefs.h. */ 9537int i; 9538int 9539main (void) 9540{ 9541 9542 ; 9543 return 0; 9544} 9545_ACEOF 9546if ac_fn_c_try_link "$LINENO" 9547then : 9548 eval $cacheid=yes 9549else $as_nop 9550 eval $cacheid=no 9551fi 9552rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9553 conftest$ac_exeext conftest.$ac_ext 9554fi 9555 9556 9557 CFLAGS="$xorg_testset_save_CFLAGS" 9558 9559 eval supported=\$$cacheid 9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9561printf "%s\n" "$supported" >&6; } 9562 if test "$supported" = "yes" ; then 9563 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9564 found="yes" 9565 fi 9566 fi 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582xorg_testset_save_CFLAGS="$CFLAGS" 9583 9584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9587printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9588if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9589then : 9590 printf %s "(cached) " >&6 9591else $as_nop 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594int i; 9595_ACEOF 9596if ac_fn_c_try_compile "$LINENO" 9597then : 9598 xorg_cv_cc_flag_unknown_warning_option=yes 9599else $as_nop 9600 xorg_cv_cc_flag_unknown_warning_option=no 9601fi 9602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9603fi 9604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9605printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9607 CFLAGS="$xorg_testset_save_CFLAGS" 9608fi 9609 9610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9613 fi 9614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9616printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9617if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9618then : 9619 printf %s "(cached) " >&6 9620else $as_nop 9621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9622/* end confdefs.h. */ 9623int i; 9624_ACEOF 9625if ac_fn_c_try_compile "$LINENO" 9626then : 9627 xorg_cv_cc_flag_unused_command_line_argument=yes 9628else $as_nop 9629 xorg_cv_cc_flag_unused_command_line_argument=no 9630fi 9631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9632fi 9633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9634printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9636 CFLAGS="$xorg_testset_save_CFLAGS" 9637fi 9638 9639found="no" 9640 9641 if test $found = "no" ; then 9642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9644 fi 9645 9646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9648 fi 9649 9650 CFLAGS="$CFLAGS -Wsequence-point" 9651 9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9653printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9654 cacheid=xorg_cv_cc_flag__Wsequence_point 9655 if eval test \${$cacheid+y} 9656then : 9657 printf %s "(cached) " >&6 9658else $as_nop 9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9660/* end confdefs.h. */ 9661int i; 9662int 9663main (void) 9664{ 9665 9666 ; 9667 return 0; 9668} 9669_ACEOF 9670if ac_fn_c_try_link "$LINENO" 9671then : 9672 eval $cacheid=yes 9673else $as_nop 9674 eval $cacheid=no 9675fi 9676rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9677 conftest$ac_exeext conftest.$ac_ext 9678fi 9679 9680 9681 CFLAGS="$xorg_testset_save_CFLAGS" 9682 9683 eval supported=\$$cacheid 9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9685printf "%s\n" "$supported" >&6; } 9686 if test "$supported" = "yes" ; then 9687 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9688 found="yes" 9689 fi 9690 fi 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706xorg_testset_save_CFLAGS="$CFLAGS" 9707 9708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9711printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9712if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9713then : 9714 printf %s "(cached) " >&6 9715else $as_nop 9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9717/* end confdefs.h. */ 9718int i; 9719_ACEOF 9720if ac_fn_c_try_compile "$LINENO" 9721then : 9722 xorg_cv_cc_flag_unknown_warning_option=yes 9723else $as_nop 9724 xorg_cv_cc_flag_unknown_warning_option=no 9725fi 9726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9727fi 9728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9729printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732fi 9733 9734if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9737 fi 9738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9740printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9741if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9742then : 9743 printf %s "(cached) " >&6 9744else $as_nop 9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746/* end confdefs.h. */ 9747int i; 9748_ACEOF 9749if ac_fn_c_try_compile "$LINENO" 9750then : 9751 xorg_cv_cc_flag_unused_command_line_argument=yes 9752else $as_nop 9753 xorg_cv_cc_flag_unused_command_line_argument=no 9754fi 9755rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9756fi 9757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9758printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9760 CFLAGS="$xorg_testset_save_CFLAGS" 9761fi 9762 9763found="no" 9764 9765 if test $found = "no" ; then 9766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9768 fi 9769 9770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9772 fi 9773 9774 CFLAGS="$CFLAGS -Wreturn-type" 9775 9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9777printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9778 cacheid=xorg_cv_cc_flag__Wreturn_type 9779 if eval test \${$cacheid+y} 9780then : 9781 printf %s "(cached) " >&6 9782else $as_nop 9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9784/* end confdefs.h. */ 9785int i; 9786int 9787main (void) 9788{ 9789 9790 ; 9791 return 0; 9792} 9793_ACEOF 9794if ac_fn_c_try_link "$LINENO" 9795then : 9796 eval $cacheid=yes 9797else $as_nop 9798 eval $cacheid=no 9799fi 9800rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9801 conftest$ac_exeext conftest.$ac_ext 9802fi 9803 9804 9805 CFLAGS="$xorg_testset_save_CFLAGS" 9806 9807 eval supported=\$$cacheid 9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9809printf "%s\n" "$supported" >&6; } 9810 if test "$supported" = "yes" ; then 9811 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9812 found="yes" 9813 fi 9814 fi 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830xorg_testset_save_CFLAGS="$CFLAGS" 9831 9832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9836if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9837then : 9838 printf %s "(cached) " >&6 9839else $as_nop 9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9841/* end confdefs.h. */ 9842int i; 9843_ACEOF 9844if ac_fn_c_try_compile "$LINENO" 9845then : 9846 xorg_cv_cc_flag_unknown_warning_option=yes 9847else $as_nop 9848 xorg_cv_cc_flag_unknown_warning_option=no 9849fi 9850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9851fi 9852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9853printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9854 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9855 CFLAGS="$xorg_testset_save_CFLAGS" 9856fi 9857 9858if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9859 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9860 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9861 fi 9862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9864printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9865if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9866then : 9867 printf %s "(cached) " >&6 9868else $as_nop 9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9870/* end confdefs.h. */ 9871int i; 9872_ACEOF 9873if ac_fn_c_try_compile "$LINENO" 9874then : 9875 xorg_cv_cc_flag_unused_command_line_argument=yes 9876else $as_nop 9877 xorg_cv_cc_flag_unused_command_line_argument=no 9878fi 9879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9880fi 9881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9884 CFLAGS="$xorg_testset_save_CFLAGS" 9885fi 9886 9887found="no" 9888 9889 if test $found = "no" ; then 9890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9892 fi 9893 9894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9896 fi 9897 9898 CFLAGS="$CFLAGS -Wtrigraphs" 9899 9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9901printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9902 cacheid=xorg_cv_cc_flag__Wtrigraphs 9903 if eval test \${$cacheid+y} 9904then : 9905 printf %s "(cached) " >&6 9906else $as_nop 9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9908/* end confdefs.h. */ 9909int i; 9910int 9911main (void) 9912{ 9913 9914 ; 9915 return 0; 9916} 9917_ACEOF 9918if ac_fn_c_try_link "$LINENO" 9919then : 9920 eval $cacheid=yes 9921else $as_nop 9922 eval $cacheid=no 9923fi 9924rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9925 conftest$ac_exeext conftest.$ac_ext 9926fi 9927 9928 9929 CFLAGS="$xorg_testset_save_CFLAGS" 9930 9931 eval supported=\$$cacheid 9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9933printf "%s\n" "$supported" >&6; } 9934 if test "$supported" = "yes" ; then 9935 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9936 found="yes" 9937 fi 9938 fi 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954xorg_testset_save_CFLAGS="$CFLAGS" 9955 9956if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9959printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9960if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9961then : 9962 printf %s "(cached) " >&6 9963else $as_nop 9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965/* end confdefs.h. */ 9966int i; 9967_ACEOF 9968if ac_fn_c_try_compile "$LINENO" 9969then : 9970 xorg_cv_cc_flag_unknown_warning_option=yes 9971else $as_nop 9972 xorg_cv_cc_flag_unknown_warning_option=no 9973fi 9974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9975fi 9976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9977printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980fi 9981 9982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9985 fi 9986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9988printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9989if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9990then : 9991 printf %s "(cached) " >&6 9992else $as_nop 9993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994/* end confdefs.h. */ 9995int i; 9996_ACEOF 9997if ac_fn_c_try_compile "$LINENO" 9998then : 9999 xorg_cv_cc_flag_unused_command_line_argument=yes 10000else $as_nop 10001 xorg_cv_cc_flag_unused_command_line_argument=no 10002fi 10003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10004fi 10005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10006printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10008 CFLAGS="$xorg_testset_save_CFLAGS" 10009fi 10010 10011found="no" 10012 10013 if test $found = "no" ; then 10014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10016 fi 10017 10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10020 fi 10021 10022 CFLAGS="$CFLAGS -Warray-bounds" 10023 10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10025printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10026 cacheid=xorg_cv_cc_flag__Warray_bounds 10027 if eval test \${$cacheid+y} 10028then : 10029 printf %s "(cached) " >&6 10030else $as_nop 10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10032/* end confdefs.h. */ 10033int i; 10034int 10035main (void) 10036{ 10037 10038 ; 10039 return 0; 10040} 10041_ACEOF 10042if ac_fn_c_try_link "$LINENO" 10043then : 10044 eval $cacheid=yes 10045else $as_nop 10046 eval $cacheid=no 10047fi 10048rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10049 conftest$ac_exeext conftest.$ac_ext 10050fi 10051 10052 10053 CFLAGS="$xorg_testset_save_CFLAGS" 10054 10055 eval supported=\$$cacheid 10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10057printf "%s\n" "$supported" >&6; } 10058 if test "$supported" = "yes" ; then 10059 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10060 found="yes" 10061 fi 10062 fi 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078xorg_testset_save_CFLAGS="$CFLAGS" 10079 10080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10084if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10085then : 10086 printf %s "(cached) " >&6 10087else $as_nop 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089/* end confdefs.h. */ 10090int i; 10091_ACEOF 10092if ac_fn_c_try_compile "$LINENO" 10093then : 10094 xorg_cv_cc_flag_unknown_warning_option=yes 10095else $as_nop 10096 xorg_cv_cc_flag_unknown_warning_option=no 10097fi 10098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10099fi 10100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10101printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10103 CFLAGS="$xorg_testset_save_CFLAGS" 10104fi 10105 10106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10109 fi 10110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10112printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10113if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10114then : 10115 printf %s "(cached) " >&6 10116else $as_nop 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10118/* end confdefs.h. */ 10119int i; 10120_ACEOF 10121if ac_fn_c_try_compile "$LINENO" 10122then : 10123 xorg_cv_cc_flag_unused_command_line_argument=yes 10124else $as_nop 10125 xorg_cv_cc_flag_unused_command_line_argument=no 10126fi 10127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10128fi 10129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10132 CFLAGS="$xorg_testset_save_CFLAGS" 10133fi 10134 10135found="no" 10136 10137 if test $found = "no" ; then 10138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10140 fi 10141 10142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10144 fi 10145 10146 CFLAGS="$CFLAGS -Wwrite-strings" 10147 10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10149printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10150 cacheid=xorg_cv_cc_flag__Wwrite_strings 10151 if eval test \${$cacheid+y} 10152then : 10153 printf %s "(cached) " >&6 10154else $as_nop 10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156/* end confdefs.h. */ 10157int i; 10158int 10159main (void) 10160{ 10161 10162 ; 10163 return 0; 10164} 10165_ACEOF 10166if ac_fn_c_try_link "$LINENO" 10167then : 10168 eval $cacheid=yes 10169else $as_nop 10170 eval $cacheid=no 10171fi 10172rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10173 conftest$ac_exeext conftest.$ac_ext 10174fi 10175 10176 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178 10179 eval supported=\$$cacheid 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10181printf "%s\n" "$supported" >&6; } 10182 if test "$supported" = "yes" ; then 10183 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10184 found="yes" 10185 fi 10186 fi 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202xorg_testset_save_CFLAGS="$CFLAGS" 10203 10204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10208if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10209then : 10210 printf %s "(cached) " >&6 10211else $as_nop 10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10213/* end confdefs.h. */ 10214int i; 10215_ACEOF 10216if ac_fn_c_try_compile "$LINENO" 10217then : 10218 xorg_cv_cc_flag_unknown_warning_option=yes 10219else $as_nop 10220 xorg_cv_cc_flag_unknown_warning_option=no 10221fi 10222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10223fi 10224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10227 CFLAGS="$xorg_testset_save_CFLAGS" 10228fi 10229 10230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10233 fi 10234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10237if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10238then : 10239 printf %s "(cached) " >&6 10240else $as_nop 10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10242/* end confdefs.h. */ 10243int i; 10244_ACEOF 10245if ac_fn_c_try_compile "$LINENO" 10246then : 10247 xorg_cv_cc_flag_unused_command_line_argument=yes 10248else $as_nop 10249 xorg_cv_cc_flag_unused_command_line_argument=no 10250fi 10251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10252fi 10253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10256 CFLAGS="$xorg_testset_save_CFLAGS" 10257fi 10258 10259found="no" 10260 10261 if test $found = "no" ; then 10262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10264 fi 10265 10266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10268 fi 10269 10270 CFLAGS="$CFLAGS -Waddress" 10271 10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10273printf %s "checking if $CC supports -Waddress... " >&6; } 10274 cacheid=xorg_cv_cc_flag__Waddress 10275 if eval test \${$cacheid+y} 10276then : 10277 printf %s "(cached) " >&6 10278else $as_nop 10279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10280/* end confdefs.h. */ 10281int i; 10282int 10283main (void) 10284{ 10285 10286 ; 10287 return 0; 10288} 10289_ACEOF 10290if ac_fn_c_try_link "$LINENO" 10291then : 10292 eval $cacheid=yes 10293else $as_nop 10294 eval $cacheid=no 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10297 conftest$ac_exeext conftest.$ac_ext 10298fi 10299 10300 10301 CFLAGS="$xorg_testset_save_CFLAGS" 10302 10303 eval supported=\$$cacheid 10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10305printf "%s\n" "$supported" >&6; } 10306 if test "$supported" = "yes" ; then 10307 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10308 found="yes" 10309 fi 10310 fi 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326xorg_testset_save_CFLAGS="$CFLAGS" 10327 10328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10332if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10333then : 10334 printf %s "(cached) " >&6 10335else $as_nop 10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10337/* end confdefs.h. */ 10338int i; 10339_ACEOF 10340if ac_fn_c_try_compile "$LINENO" 10341then : 10342 xorg_cv_cc_flag_unknown_warning_option=yes 10343else $as_nop 10344 xorg_cv_cc_flag_unknown_warning_option=no 10345fi 10346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10347fi 10348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10349printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10351 CFLAGS="$xorg_testset_save_CFLAGS" 10352fi 10353 10354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10357 fi 10358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10360printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10361if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10362then : 10363 printf %s "(cached) " >&6 10364else $as_nop 10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10366/* end confdefs.h. */ 10367int i; 10368_ACEOF 10369if ac_fn_c_try_compile "$LINENO" 10370then : 10371 xorg_cv_cc_flag_unused_command_line_argument=yes 10372else $as_nop 10373 xorg_cv_cc_flag_unused_command_line_argument=no 10374fi 10375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10376fi 10377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10379 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10380 CFLAGS="$xorg_testset_save_CFLAGS" 10381fi 10382 10383found="no" 10384 10385 if test $found = "no" ; then 10386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10388 fi 10389 10390 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10392 fi 10393 10394 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10395 10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10397printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10398 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10399 if eval test \${$cacheid+y} 10400then : 10401 printf %s "(cached) " >&6 10402else $as_nop 10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10404/* end confdefs.h. */ 10405int i; 10406int 10407main (void) 10408{ 10409 10410 ; 10411 return 0; 10412} 10413_ACEOF 10414if ac_fn_c_try_link "$LINENO" 10415then : 10416 eval $cacheid=yes 10417else $as_nop 10418 eval $cacheid=no 10419fi 10420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10421 conftest$ac_exeext conftest.$ac_ext 10422fi 10423 10424 10425 CFLAGS="$xorg_testset_save_CFLAGS" 10426 10427 eval supported=\$$cacheid 10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10429printf "%s\n" "$supported" >&6; } 10430 if test "$supported" = "yes" ; then 10431 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10432 found="yes" 10433 fi 10434 fi 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450xorg_testset_save_CFLAGS="$CFLAGS" 10451 10452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10456if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10457then : 10458 printf %s "(cached) " >&6 10459else $as_nop 10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10461/* end confdefs.h. */ 10462int i; 10463_ACEOF 10464if ac_fn_c_try_compile "$LINENO" 10465then : 10466 xorg_cv_cc_flag_unknown_warning_option=yes 10467else $as_nop 10468 xorg_cv_cc_flag_unknown_warning_option=no 10469fi 10470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10471fi 10472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10475 CFLAGS="$xorg_testset_save_CFLAGS" 10476fi 10477 10478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10481 fi 10482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10485if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10486then : 10487 printf %s "(cached) " >&6 10488else $as_nop 10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10490/* end confdefs.h. */ 10491int i; 10492_ACEOF 10493if ac_fn_c_try_compile "$LINENO" 10494then : 10495 xorg_cv_cc_flag_unused_command_line_argument=yes 10496else $as_nop 10497 xorg_cv_cc_flag_unused_command_line_argument=no 10498fi 10499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10500fi 10501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10502printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10504 CFLAGS="$xorg_testset_save_CFLAGS" 10505fi 10506 10507found="no" 10508 10509 if test $found = "no" ; then 10510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10512 fi 10513 10514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10516 fi 10517 10518 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10519 10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10521printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10522 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10523 if eval test \${$cacheid+y} 10524then : 10525 printf %s "(cached) " >&6 10526else $as_nop 10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10528/* end confdefs.h. */ 10529int i; 10530int 10531main (void) 10532{ 10533 10534 ; 10535 return 0; 10536} 10537_ACEOF 10538if ac_fn_c_try_link "$LINENO" 10539then : 10540 eval $cacheid=yes 10541else $as_nop 10542 eval $cacheid=no 10543fi 10544rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10545 conftest$ac_exeext conftest.$ac_ext 10546fi 10547 10548 10549 CFLAGS="$xorg_testset_save_CFLAGS" 10550 10551 eval supported=\$$cacheid 10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10553printf "%s\n" "$supported" >&6; } 10554 if test "$supported" = "yes" ; then 10555 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10556 found="yes" 10557 fi 10558 fi 10559 10560 10561fi 10562 10563 10564 10565 10566 10567 10568 10569 CWARNFLAGS="$BASE_CFLAGS" 10570 if test "x$GCC" = xyes ; then 10571 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10572 fi 10573 10574 10575 10576 10577 10578 10579 10580 10581# Check whether --enable-strict-compilation was given. 10582if test ${enable_strict_compilation+y} 10583then : 10584 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10585else $as_nop 10586 STRICT_COMPILE=no 10587fi 10588 10589 10590 10591 10592 10593 10594STRICT_CFLAGS="" 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608xorg_testset_save_CFLAGS="$CFLAGS" 10609 10610if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10613printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10614if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10615then : 10616 printf %s "(cached) " >&6 10617else $as_nop 10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10619/* end confdefs.h. */ 10620int i; 10621_ACEOF 10622if ac_fn_c_try_compile "$LINENO" 10623then : 10624 xorg_cv_cc_flag_unknown_warning_option=yes 10625else $as_nop 10626 xorg_cv_cc_flag_unknown_warning_option=no 10627fi 10628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10629fi 10630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10631printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10633 CFLAGS="$xorg_testset_save_CFLAGS" 10634fi 10635 10636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10639 fi 10640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10642printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10643if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10644then : 10645 printf %s "(cached) " >&6 10646else $as_nop 10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10648/* end confdefs.h. */ 10649int i; 10650_ACEOF 10651if ac_fn_c_try_compile "$LINENO" 10652then : 10653 xorg_cv_cc_flag_unused_command_line_argument=yes 10654else $as_nop 10655 xorg_cv_cc_flag_unused_command_line_argument=no 10656fi 10657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10658fi 10659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10662 CFLAGS="$xorg_testset_save_CFLAGS" 10663fi 10664 10665found="no" 10666 10667 if test $found = "no" ; then 10668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10670 fi 10671 10672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10674 fi 10675 10676 CFLAGS="$CFLAGS -pedantic" 10677 10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10679printf %s "checking if $CC supports -pedantic... " >&6; } 10680 cacheid=xorg_cv_cc_flag__pedantic 10681 if eval test \${$cacheid+y} 10682then : 10683 printf %s "(cached) " >&6 10684else $as_nop 10685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10686/* end confdefs.h. */ 10687int i; 10688int 10689main (void) 10690{ 10691 10692 ; 10693 return 0; 10694} 10695_ACEOF 10696if ac_fn_c_try_link "$LINENO" 10697then : 10698 eval $cacheid=yes 10699else $as_nop 10700 eval $cacheid=no 10701fi 10702rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10703 conftest$ac_exeext conftest.$ac_ext 10704fi 10705 10706 10707 CFLAGS="$xorg_testset_save_CFLAGS" 10708 10709 eval supported=\$$cacheid 10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10711printf "%s\n" "$supported" >&6; } 10712 if test "$supported" = "yes" ; then 10713 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10714 found="yes" 10715 fi 10716 fi 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732xorg_testset_save_CFLAGS="$CFLAGS" 10733 10734if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10737printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10738if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10739then : 10740 printf %s "(cached) " >&6 10741else $as_nop 10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10743/* end confdefs.h. */ 10744int i; 10745_ACEOF 10746if ac_fn_c_try_compile "$LINENO" 10747then : 10748 xorg_cv_cc_flag_unknown_warning_option=yes 10749else $as_nop 10750 xorg_cv_cc_flag_unknown_warning_option=no 10751fi 10752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10753fi 10754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10755printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10757 CFLAGS="$xorg_testset_save_CFLAGS" 10758fi 10759 10760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10763 fi 10764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10766printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10767if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10768then : 10769 printf %s "(cached) " >&6 10770else $as_nop 10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10772/* end confdefs.h. */ 10773int i; 10774_ACEOF 10775if ac_fn_c_try_compile "$LINENO" 10776then : 10777 xorg_cv_cc_flag_unused_command_line_argument=yes 10778else $as_nop 10779 xorg_cv_cc_flag_unused_command_line_argument=no 10780fi 10781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10782fi 10783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10784printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10785 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10786 CFLAGS="$xorg_testset_save_CFLAGS" 10787fi 10788 10789found="no" 10790 10791 if test $found = "no" ; then 10792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10794 fi 10795 10796 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10798 fi 10799 10800 CFLAGS="$CFLAGS -Werror" 10801 10802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10803printf %s "checking if $CC supports -Werror... " >&6; } 10804 cacheid=xorg_cv_cc_flag__Werror 10805 if eval test \${$cacheid+y} 10806then : 10807 printf %s "(cached) " >&6 10808else $as_nop 10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10810/* end confdefs.h. */ 10811int i; 10812int 10813main (void) 10814{ 10815 10816 ; 10817 return 0; 10818} 10819_ACEOF 10820if ac_fn_c_try_link "$LINENO" 10821then : 10822 eval $cacheid=yes 10823else $as_nop 10824 eval $cacheid=no 10825fi 10826rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10827 conftest$ac_exeext conftest.$ac_ext 10828fi 10829 10830 10831 CFLAGS="$xorg_testset_save_CFLAGS" 10832 10833 eval supported=\$$cacheid 10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10835printf "%s\n" "$supported" >&6; } 10836 if test "$supported" = "yes" ; then 10837 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10838 found="yes" 10839 fi 10840 fi 10841 10842 if test $found = "no" ; then 10843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10845 fi 10846 10847 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10849 fi 10850 10851 CFLAGS="$CFLAGS -errwarn" 10852 10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10854printf %s "checking if $CC supports -errwarn... " >&6; } 10855 cacheid=xorg_cv_cc_flag__errwarn 10856 if eval test \${$cacheid+y} 10857then : 10858 printf %s "(cached) " >&6 10859else $as_nop 10860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861/* end confdefs.h. */ 10862int i; 10863int 10864main (void) 10865{ 10866 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871if ac_fn_c_try_link "$LINENO" 10872then : 10873 eval $cacheid=yes 10874else $as_nop 10875 eval $cacheid=no 10876fi 10877rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10878 conftest$ac_exeext conftest.$ac_ext 10879fi 10880 10881 10882 CFLAGS="$xorg_testset_save_CFLAGS" 10883 10884 eval supported=\$$cacheid 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10886printf "%s\n" "$supported" >&6; } 10887 if test "$supported" = "yes" ; then 10888 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10889 found="yes" 10890 fi 10891 fi 10892 10893 10894 10895# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10896# activate it with -Werror, so we add it here explicitly. 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910xorg_testset_save_CFLAGS="$CFLAGS" 10911 10912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10915printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10916if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10917then : 10918 printf %s "(cached) " >&6 10919else $as_nop 10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10921/* end confdefs.h. */ 10922int i; 10923_ACEOF 10924if ac_fn_c_try_compile "$LINENO" 10925then : 10926 xorg_cv_cc_flag_unknown_warning_option=yes 10927else $as_nop 10928 xorg_cv_cc_flag_unknown_warning_option=no 10929fi 10930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10931fi 10932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10933printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10935 CFLAGS="$xorg_testset_save_CFLAGS" 10936fi 10937 10938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10941 fi 10942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10944printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10945if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10946then : 10947 printf %s "(cached) " >&6 10948else $as_nop 10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10950/* end confdefs.h. */ 10951int i; 10952_ACEOF 10953if ac_fn_c_try_compile "$LINENO" 10954then : 10955 xorg_cv_cc_flag_unused_command_line_argument=yes 10956else $as_nop 10957 xorg_cv_cc_flag_unused_command_line_argument=no 10958fi 10959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10960fi 10961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10964 CFLAGS="$xorg_testset_save_CFLAGS" 10965fi 10966 10967found="no" 10968 10969 if test $found = "no" ; then 10970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10972 fi 10973 10974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10976 fi 10977 10978 CFLAGS="$CFLAGS -Werror=attributes" 10979 10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10981printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10982 cacheid=xorg_cv_cc_flag__Werror_attributes 10983 if eval test \${$cacheid+y} 10984then : 10985 printf %s "(cached) " >&6 10986else $as_nop 10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10988/* end confdefs.h. */ 10989int i; 10990int 10991main (void) 10992{ 10993 10994 ; 10995 return 0; 10996} 10997_ACEOF 10998if ac_fn_c_try_link "$LINENO" 10999then : 11000 eval $cacheid=yes 11001else $as_nop 11002 eval $cacheid=no 11003fi 11004rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11005 conftest$ac_exeext conftest.$ac_ext 11006fi 11007 11008 11009 CFLAGS="$xorg_testset_save_CFLAGS" 11010 11011 eval supported=\$$cacheid 11012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11013printf "%s\n" "$supported" >&6; } 11014 if test "$supported" = "yes" ; then 11015 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11016 found="yes" 11017 fi 11018 fi 11019 11020 11021 11022if test "x$STRICT_COMPILE" = "xyes"; then 11023 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11024 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11025fi 11026 11027 11028 11029 11030 11031 11032 11033 11034cat >>confdefs.h <<_ACEOF 11035#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11036_ACEOF 11037 11038 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11039 if test "x$PVM" = "x"; then 11040 PVM="0" 11041 fi 11042 11043printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11044 11045 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11046 if test "x$PVP" = "x"; then 11047 PVP="0" 11048 fi 11049 11050printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11051 11052 11053 11054CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11055mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11056|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11057touch \$(top_srcdir)/ChangeLog; \ 11058echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11059 11060 11061 11062 11063macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11064INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11065mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11066|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11067touch \$(top_srcdir)/INSTALL; \ 11068echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11069 11070 11071 11072 11073 11074 11075case $host_os in 11076 solaris*) 11077 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11078 # check for a man page file found in later versions that use 11079 # traditional section numbers instead 11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11081printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11082if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11083then : 11084 printf %s "(cached) " >&6 11085else $as_nop 11086 test "$cross_compiling" = yes && 11087 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11088if test -r "/usr/share/man/man7/attributes.7"; then 11089 ac_cv_file__usr_share_man_man7_attributes_7=yes 11090else 11091 ac_cv_file__usr_share_man_man7_attributes_7=no 11092fi 11093fi 11094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11095printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11096if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11097then : 11098 SYSV_MAN_SECTIONS=false 11099else $as_nop 11100 SYSV_MAN_SECTIONS=true 11101fi 11102 11103 ;; 11104 *) SYSV_MAN_SECTIONS=false ;; 11105esac 11106 11107if test x$APP_MAN_SUFFIX = x ; then 11108 APP_MAN_SUFFIX=1 11109fi 11110if test x$APP_MAN_DIR = x ; then 11111 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11112fi 11113 11114if test x$LIB_MAN_SUFFIX = x ; then 11115 LIB_MAN_SUFFIX=3 11116fi 11117if test x$LIB_MAN_DIR = x ; then 11118 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11119fi 11120 11121if test x$FILE_MAN_SUFFIX = x ; then 11122 case $SYSV_MAN_SECTIONS in 11123 true) FILE_MAN_SUFFIX=4 ;; 11124 *) FILE_MAN_SUFFIX=5 ;; 11125 esac 11126fi 11127if test x$FILE_MAN_DIR = x ; then 11128 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11129fi 11130 11131if test x$MISC_MAN_SUFFIX = x ; then 11132 case $SYSV_MAN_SECTIONS in 11133 true) MISC_MAN_SUFFIX=5 ;; 11134 *) MISC_MAN_SUFFIX=7 ;; 11135 esac 11136fi 11137if test x$MISC_MAN_DIR = x ; then 11138 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11139fi 11140 11141if test x$DRIVER_MAN_SUFFIX = x ; then 11142 case $SYSV_MAN_SECTIONS in 11143 true) DRIVER_MAN_SUFFIX=7 ;; 11144 *) DRIVER_MAN_SUFFIX=4 ;; 11145 esac 11146fi 11147if test x$DRIVER_MAN_DIR = x ; then 11148 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11149fi 11150 11151if test x$ADMIN_MAN_SUFFIX = x ; then 11152 case $SYSV_MAN_SECTIONS in 11153 true) ADMIN_MAN_SUFFIX=1m ;; 11154 *) ADMIN_MAN_SUFFIX=8 ;; 11155 esac 11156fi 11157if test x$ADMIN_MAN_DIR = x ; then 11158 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11159fi 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175XORG_MAN_PAGE="X Version 11" 11176 11177MAN_SUBSTS="\ 11178 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11179 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11180 -e 's|__xservername__|Xorg|g' \ 11181 -e 's|__xconfigfile__|xorg.conf|g' \ 11182 -e 's|__projectroot__|\$(prefix)|g' \ 11183 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11184 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11185 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11186 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11187 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11188 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11189 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11190 11191 11192 11193# Check whether --enable-silent-rules was given. 11194if test ${enable_silent_rules+y} 11195then : 11196 enableval=$enable_silent_rules; 11197fi 11198 11199case $enable_silent_rules in # ((( 11200 yes) AM_DEFAULT_VERBOSITY=0;; 11201 no) AM_DEFAULT_VERBOSITY=1;; 11202 *) AM_DEFAULT_VERBOSITY=0;; 11203esac 11204am_make=${MAKE-make} 11205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11206printf %s "checking whether $am_make supports nested variables... " >&6; } 11207if test ${am_cv_make_support_nested_variables+y} 11208then : 11209 printf %s "(cached) " >&6 11210else $as_nop 11211 if printf "%s\n" 'TRUE=$(BAR$(V)) 11212BAR0=false 11213BAR1=true 11214V=1 11215am__doit: 11216 @$(TRUE) 11217.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11218 am_cv_make_support_nested_variables=yes 11219else 11220 am_cv_make_support_nested_variables=no 11221fi 11222fi 11223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11224printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11225if test $am_cv_make_support_nested_variables = yes; then 11226 AM_V='$(V)' 11227 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11228else 11229 AM_V=$AM_DEFAULT_VERBOSITY 11230 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11231fi 11232AM_BACKSLASH='\' 11233 11234 11235 11236 11237# Initialize libtool 11238# Check whether --enable-static was given. 11239if test ${enable_static+y} 11240then : 11241 enableval=$enable_static; p=${PACKAGE-default} 11242 case $enableval in 11243 yes) enable_static=yes ;; 11244 no) enable_static=no ;; 11245 *) 11246 enable_static=no 11247 # Look at the argument we got. We use all the common list separators. 11248 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11249 for pkg in $enableval; do 11250 IFS=$lt_save_ifs 11251 if test "X$pkg" = "X$p"; then 11252 enable_static=yes 11253 fi 11254 done 11255 IFS=$lt_save_ifs 11256 ;; 11257 esac 11258else $as_nop 11259 enable_static=no 11260fi 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270case `pwd` in 11271 *\ * | *\ *) 11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11273printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11274esac 11275 11276 11277 11278macro_version='2.4.7' 11279macro_revision='2.4.7' 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294ltmain=$ac_aux_dir/ltmain.sh 11295 11296# Backslashify metacharacters that are still active within 11297# double-quoted strings. 11298sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11299 11300# Same as above, but do not quote variable references. 11301double_quote_subst='s/\(["`\\]\)/\\\1/g' 11302 11303# Sed substitution to delay expansion of an escaped shell variable in a 11304# double_quote_subst'ed string. 11305delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11306 11307# Sed substitution to delay expansion of an escaped single quote. 11308delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11309 11310# Sed substitution to avoid accidental globbing in evaled expressions 11311no_glob_subst='s/\*/\\\*/g' 11312 11313ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11314ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11315ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11316 11317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11318printf %s "checking how to print strings... " >&6; } 11319# Test print first, because it will be a builtin if present. 11320if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11321 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11322 ECHO='print -r --' 11323elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11324 ECHO='printf %s\n' 11325else 11326 # Use this function as a fallback that always works. 11327 func_fallback_echo () 11328 { 11329 eval 'cat <<_LTECHO_EOF 11330$1 11331_LTECHO_EOF' 11332 } 11333 ECHO='func_fallback_echo' 11334fi 11335 11336# func_echo_all arg... 11337# Invoke $ECHO with all args, space-separated. 11338func_echo_all () 11339{ 11340 $ECHO "" 11341} 11342 11343case $ECHO in 11344 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11345printf "%s\n" "printf" >&6; } ;; 11346 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11347printf "%s\n" "print -r" >&6; } ;; 11348 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11349printf "%s\n" "cat" >&6; } ;; 11350esac 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11366printf %s "checking for a sed that does not truncate output... " >&6; } 11367if test ${ac_cv_path_SED+y} 11368then : 11369 printf %s "(cached) " >&6 11370else $as_nop 11371 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11372 for ac_i in 1 2 3 4 5 6 7; do 11373 ac_script="$ac_script$as_nl$ac_script" 11374 done 11375 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11376 { ac_script=; unset ac_script;} 11377 if test -z "$SED"; then 11378 ac_path_SED_found=false 11379 # Loop through the user's path and test for each of PROGNAME-LIST 11380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11381for as_dir in $PATH 11382do 11383 IFS=$as_save_IFS 11384 case $as_dir in #((( 11385 '') as_dir=./ ;; 11386 */) ;; 11387 *) as_dir=$as_dir/ ;; 11388 esac 11389 for ac_prog in sed gsed 11390 do 11391 for ac_exec_ext in '' $ac_executable_extensions; do 11392 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11393 as_fn_executable_p "$ac_path_SED" || continue 11394# Check for GNU ac_path_SED and select it if it is found. 11395 # Check for GNU $ac_path_SED 11396case `"$ac_path_SED" --version 2>&1` in 11397*GNU*) 11398 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11399*) 11400 ac_count=0 11401 printf %s 0123456789 >"conftest.in" 11402 while : 11403 do 11404 cat "conftest.in" "conftest.in" >"conftest.tmp" 11405 mv "conftest.tmp" "conftest.in" 11406 cp "conftest.in" "conftest.nl" 11407 printf "%s\n" '' >> "conftest.nl" 11408 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11410 as_fn_arith $ac_count + 1 && ac_count=$as_val 11411 if test $ac_count -gt ${ac_path_SED_max-0}; then 11412 # Best one so far, save it but keep looking for a better one 11413 ac_cv_path_SED="$ac_path_SED" 11414 ac_path_SED_max=$ac_count 11415 fi 11416 # 10*(2^10) chars as input seems more than enough 11417 test $ac_count -gt 10 && break 11418 done 11419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11420esac 11421 11422 $ac_path_SED_found && break 3 11423 done 11424 done 11425 done 11426IFS=$as_save_IFS 11427 if test -z "$ac_cv_path_SED"; then 11428 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11429 fi 11430else 11431 ac_cv_path_SED=$SED 11432fi 11433 11434fi 11435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11436printf "%s\n" "$ac_cv_path_SED" >&6; } 11437 SED="$ac_cv_path_SED" 11438 rm -f conftest.sed 11439 11440test -z "$SED" && SED=sed 11441Xsed="$SED -e 1s/^X//" 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11454printf %s "checking for grep that handles long lines and -e... " >&6; } 11455if test ${ac_cv_path_GREP+y} 11456then : 11457 printf %s "(cached) " >&6 11458else $as_nop 11459 if test -z "$GREP"; then 11460 ac_path_GREP_found=false 11461 # Loop through the user's path and test for each of PROGNAME-LIST 11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11463for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11464do 11465 IFS=$as_save_IFS 11466 case $as_dir in #((( 11467 '') as_dir=./ ;; 11468 */) ;; 11469 *) as_dir=$as_dir/ ;; 11470 esac 11471 for ac_prog in grep ggrep 11472 do 11473 for ac_exec_ext in '' $ac_executable_extensions; do 11474 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11475 as_fn_executable_p "$ac_path_GREP" || continue 11476# Check for GNU ac_path_GREP and select it if it is found. 11477 # Check for GNU $ac_path_GREP 11478case `"$ac_path_GREP" --version 2>&1` in 11479*GNU*) 11480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11481*) 11482 ac_count=0 11483 printf %s 0123456789 >"conftest.in" 11484 while : 11485 do 11486 cat "conftest.in" "conftest.in" >"conftest.tmp" 11487 mv "conftest.tmp" "conftest.in" 11488 cp "conftest.in" "conftest.nl" 11489 printf "%s\n" 'GREP' >> "conftest.nl" 11490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11492 as_fn_arith $ac_count + 1 && ac_count=$as_val 11493 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11494 # Best one so far, save it but keep looking for a better one 11495 ac_cv_path_GREP="$ac_path_GREP" 11496 ac_path_GREP_max=$ac_count 11497 fi 11498 # 10*(2^10) chars as input seems more than enough 11499 test $ac_count -gt 10 && break 11500 done 11501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11502esac 11503 11504 $ac_path_GREP_found && break 3 11505 done 11506 done 11507 done 11508IFS=$as_save_IFS 11509 if test -z "$ac_cv_path_GREP"; then 11510 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11511 fi 11512else 11513 ac_cv_path_GREP=$GREP 11514fi 11515 11516fi 11517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11518printf "%s\n" "$ac_cv_path_GREP" >&6; } 11519 GREP="$ac_cv_path_GREP" 11520 11521 11522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11523printf %s "checking for egrep... " >&6; } 11524if test ${ac_cv_path_EGREP+y} 11525then : 11526 printf %s "(cached) " >&6 11527else $as_nop 11528 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11529 then ac_cv_path_EGREP="$GREP -E" 11530 else 11531 if test -z "$EGREP"; then 11532 ac_path_EGREP_found=false 11533 # Loop through the user's path and test for each of PROGNAME-LIST 11534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11535for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11536do 11537 IFS=$as_save_IFS 11538 case $as_dir in #((( 11539 '') as_dir=./ ;; 11540 */) ;; 11541 *) as_dir=$as_dir/ ;; 11542 esac 11543 for ac_prog in egrep 11544 do 11545 for ac_exec_ext in '' $ac_executable_extensions; do 11546 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11547 as_fn_executable_p "$ac_path_EGREP" || continue 11548# Check for GNU ac_path_EGREP and select it if it is found. 11549 # Check for GNU $ac_path_EGREP 11550case `"$ac_path_EGREP" --version 2>&1` in 11551*GNU*) 11552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11553*) 11554 ac_count=0 11555 printf %s 0123456789 >"conftest.in" 11556 while : 11557 do 11558 cat "conftest.in" "conftest.in" >"conftest.tmp" 11559 mv "conftest.tmp" "conftest.in" 11560 cp "conftest.in" "conftest.nl" 11561 printf "%s\n" 'EGREP' >> "conftest.nl" 11562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11564 as_fn_arith $ac_count + 1 && ac_count=$as_val 11565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11566 # Best one so far, save it but keep looking for a better one 11567 ac_cv_path_EGREP="$ac_path_EGREP" 11568 ac_path_EGREP_max=$ac_count 11569 fi 11570 # 10*(2^10) chars as input seems more than enough 11571 test $ac_count -gt 10 && break 11572 done 11573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11574esac 11575 11576 $ac_path_EGREP_found && break 3 11577 done 11578 done 11579 done 11580IFS=$as_save_IFS 11581 if test -z "$ac_cv_path_EGREP"; then 11582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11583 fi 11584else 11585 ac_cv_path_EGREP=$EGREP 11586fi 11587 11588 fi 11589fi 11590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11591printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11592 EGREP="$ac_cv_path_EGREP" 11593 11594 11595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11596printf %s "checking for fgrep... " >&6; } 11597if test ${ac_cv_path_FGREP+y} 11598then : 11599 printf %s "(cached) " >&6 11600else $as_nop 11601 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11602 then ac_cv_path_FGREP="$GREP -F" 11603 else 11604 if test -z "$FGREP"; then 11605 ac_path_FGREP_found=false 11606 # Loop through the user's path and test for each of PROGNAME-LIST 11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11608for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11609do 11610 IFS=$as_save_IFS 11611 case $as_dir in #((( 11612 '') as_dir=./ ;; 11613 */) ;; 11614 *) as_dir=$as_dir/ ;; 11615 esac 11616 for ac_prog in fgrep 11617 do 11618 for ac_exec_ext in '' $ac_executable_extensions; do 11619 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11620 as_fn_executable_p "$ac_path_FGREP" || continue 11621# Check for GNU ac_path_FGREP and select it if it is found. 11622 # Check for GNU $ac_path_FGREP 11623case `"$ac_path_FGREP" --version 2>&1` in 11624*GNU*) 11625 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11626*) 11627 ac_count=0 11628 printf %s 0123456789 >"conftest.in" 11629 while : 11630 do 11631 cat "conftest.in" "conftest.in" >"conftest.tmp" 11632 mv "conftest.tmp" "conftest.in" 11633 cp "conftest.in" "conftest.nl" 11634 printf "%s\n" 'FGREP' >> "conftest.nl" 11635 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11637 as_fn_arith $ac_count + 1 && ac_count=$as_val 11638 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11639 # Best one so far, save it but keep looking for a better one 11640 ac_cv_path_FGREP="$ac_path_FGREP" 11641 ac_path_FGREP_max=$ac_count 11642 fi 11643 # 10*(2^10) chars as input seems more than enough 11644 test $ac_count -gt 10 && break 11645 done 11646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11647esac 11648 11649 $ac_path_FGREP_found && break 3 11650 done 11651 done 11652 done 11653IFS=$as_save_IFS 11654 if test -z "$ac_cv_path_FGREP"; then 11655 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11656 fi 11657else 11658 ac_cv_path_FGREP=$FGREP 11659fi 11660 11661 fi 11662fi 11663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11664printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11665 FGREP="$ac_cv_path_FGREP" 11666 11667 11668test -z "$GREP" && GREP=grep 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688# Check whether --with-gnu-ld was given. 11689if test ${with_gnu_ld+y} 11690then : 11691 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11692else $as_nop 11693 with_gnu_ld=no 11694fi 11695 11696ac_prog=ld 11697if test yes = "$GCC"; then 11698 # Check if gcc -print-prog-name=ld gives a path. 11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11700printf %s "checking for ld used by $CC... " >&6; } 11701 case $host in 11702 *-*-mingw*) 11703 # gcc leaves a trailing carriage return, which upsets mingw 11704 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11705 *) 11706 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11707 esac 11708 case $ac_prog in 11709 # Accept absolute paths. 11710 [\\/]* | ?:[\\/]*) 11711 re_direlt='/[^/][^/]*/\.\./' 11712 # Canonicalize the pathname of ld 11713 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11714 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11715 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11716 done 11717 test -z "$LD" && LD=$ac_prog 11718 ;; 11719 "") 11720 # If it fails, then pretend we aren't using GCC. 11721 ac_prog=ld 11722 ;; 11723 *) 11724 # If it is relative, then search for the first ld in PATH. 11725 with_gnu_ld=unknown 11726 ;; 11727 esac 11728elif test yes = "$with_gnu_ld"; then 11729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11730printf %s "checking for GNU ld... " >&6; } 11731else 11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11733printf %s "checking for non-GNU ld... " >&6; } 11734fi 11735if test ${lt_cv_path_LD+y} 11736then : 11737 printf %s "(cached) " >&6 11738else $as_nop 11739 if test -z "$LD"; then 11740 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11741 for ac_dir in $PATH; do 11742 IFS=$lt_save_ifs 11743 test -z "$ac_dir" && ac_dir=. 11744 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11745 lt_cv_path_LD=$ac_dir/$ac_prog 11746 # Check to see if the program is GNU ld. I'd rather use --version, 11747 # but apparently some variants of GNU ld only accept -v. 11748 # Break only if it was the GNU/non-GNU ld that we prefer. 11749 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11750 *GNU* | *'with BFD'*) 11751 test no != "$with_gnu_ld" && break 11752 ;; 11753 *) 11754 test yes != "$with_gnu_ld" && break 11755 ;; 11756 esac 11757 fi 11758 done 11759 IFS=$lt_save_ifs 11760else 11761 lt_cv_path_LD=$LD # Let the user override the test with a path. 11762fi 11763fi 11764 11765LD=$lt_cv_path_LD 11766if test -n "$LD"; then 11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11768printf "%s\n" "$LD" >&6; } 11769else 11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11771printf "%s\n" "no" >&6; } 11772fi 11773test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11775printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11776if test ${lt_cv_prog_gnu_ld+y} 11777then : 11778 printf %s "(cached) " >&6 11779else $as_nop 11780 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11781case `$LD -v 2>&1 </dev/null` in 11782*GNU* | *'with BFD'*) 11783 lt_cv_prog_gnu_ld=yes 11784 ;; 11785*) 11786 lt_cv_prog_gnu_ld=no 11787 ;; 11788esac 11789fi 11790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11791printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11792with_gnu_ld=$lt_cv_prog_gnu_ld 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11803printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11804if test ${lt_cv_path_NM+y} 11805then : 11806 printf %s "(cached) " >&6 11807else $as_nop 11808 if test -n "$NM"; then 11809 # Let the user override the test. 11810 lt_cv_path_NM=$NM 11811else 11812 lt_nm_to_check=${ac_tool_prefix}nm 11813 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11814 lt_nm_to_check="$lt_nm_to_check nm" 11815 fi 11816 for lt_tmp_nm in $lt_nm_to_check; do 11817 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11818 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11819 IFS=$lt_save_ifs 11820 test -z "$ac_dir" && ac_dir=. 11821 tmp_nm=$ac_dir/$lt_tmp_nm 11822 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11823 # Check to see if the nm accepts a BSD-compat flag. 11824 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11825 # nm: unknown option "B" ignored 11826 # Tru64's nm complains that /dev/null is an invalid object file 11827 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11828 case $build_os in 11829 mingw*) lt_bad_file=conftest.nm/nofile ;; 11830 *) lt_bad_file=/dev/null ;; 11831 esac 11832 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11833 *$lt_bad_file* | *'Invalid file or object type'*) 11834 lt_cv_path_NM="$tmp_nm -B" 11835 break 2 11836 ;; 11837 *) 11838 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11839 */dev/null*) 11840 lt_cv_path_NM="$tmp_nm -p" 11841 break 2 11842 ;; 11843 *) 11844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11845 continue # so that we can try to find one that supports BSD flags 11846 ;; 11847 esac 11848 ;; 11849 esac 11850 fi 11851 done 11852 IFS=$lt_save_ifs 11853 done 11854 : ${lt_cv_path_NM=no} 11855fi 11856fi 11857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11858printf "%s\n" "$lt_cv_path_NM" >&6; } 11859if test no != "$lt_cv_path_NM"; then 11860 NM=$lt_cv_path_NM 11861else 11862 # Didn't find any BSD compatible name lister, look for dumpbin. 11863 if test -n "$DUMPBIN"; then : 11864 # Let the user override the test. 11865 else 11866 if test -n "$ac_tool_prefix"; then 11867 for ac_prog in dumpbin "link -dump" 11868 do 11869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11870set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11872printf %s "checking for $ac_word... " >&6; } 11873if test ${ac_cv_prog_DUMPBIN+y} 11874then : 11875 printf %s "(cached) " >&6 11876else $as_nop 11877 if test -n "$DUMPBIN"; then 11878 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11879else 11880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11881for as_dir in $PATH 11882do 11883 IFS=$as_save_IFS 11884 case $as_dir in #((( 11885 '') as_dir=./ ;; 11886 */) ;; 11887 *) as_dir=$as_dir/ ;; 11888 esac 11889 for ac_exec_ext in '' $ac_executable_extensions; do 11890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11891 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11893 break 2 11894 fi 11895done 11896 done 11897IFS=$as_save_IFS 11898 11899fi 11900fi 11901DUMPBIN=$ac_cv_prog_DUMPBIN 11902if test -n "$DUMPBIN"; then 11903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11904printf "%s\n" "$DUMPBIN" >&6; } 11905else 11906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11907printf "%s\n" "no" >&6; } 11908fi 11909 11910 11911 test -n "$DUMPBIN" && break 11912 done 11913fi 11914if test -z "$DUMPBIN"; then 11915 ac_ct_DUMPBIN=$DUMPBIN 11916 for ac_prog in dumpbin "link -dump" 11917do 11918 # Extract the first word of "$ac_prog", so it can be a program name with args. 11919set dummy $ac_prog; ac_word=$2 11920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11921printf %s "checking for $ac_word... " >&6; } 11922if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11923then : 11924 printf %s "(cached) " >&6 11925else $as_nop 11926 if test -n "$ac_ct_DUMPBIN"; then 11927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11928else 11929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11930for as_dir in $PATH 11931do 11932 IFS=$as_save_IFS 11933 case $as_dir in #((( 11934 '') as_dir=./ ;; 11935 */) ;; 11936 *) as_dir=$as_dir/ ;; 11937 esac 11938 for ac_exec_ext in '' $ac_executable_extensions; do 11939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11940 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11942 break 2 11943 fi 11944done 11945 done 11946IFS=$as_save_IFS 11947 11948fi 11949fi 11950ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11951if test -n "$ac_ct_DUMPBIN"; then 11952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11953printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11954else 11955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11956printf "%s\n" "no" >&6; } 11957fi 11958 11959 11960 test -n "$ac_ct_DUMPBIN" && break 11961done 11962 11963 if test "x$ac_ct_DUMPBIN" = x; then 11964 DUMPBIN=":" 11965 else 11966 case $cross_compiling:$ac_tool_warned in 11967yes:) 11968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11969printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11970ac_tool_warned=yes ;; 11971esac 11972 DUMPBIN=$ac_ct_DUMPBIN 11973 fi 11974fi 11975 11976 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 11977 *COFF*) 11978 DUMPBIN="$DUMPBIN -symbols -headers" 11979 ;; 11980 *) 11981 DUMPBIN=: 11982 ;; 11983 esac 11984 fi 11985 11986 if test : != "$DUMPBIN"; then 11987 NM=$DUMPBIN 11988 fi 11989fi 11990test -z "$NM" && NM=nm 11991 11992 11993 11994 11995 11996 11997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11998printf %s "checking the name lister ($NM) interface... " >&6; } 11999if test ${lt_cv_nm_interface+y} 12000then : 12001 printf %s "(cached) " >&6 12002else $as_nop 12003 lt_cv_nm_interface="BSD nm" 12004 echo "int some_variable = 0;" > conftest.$ac_ext 12005 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12006 (eval "$ac_compile" 2>conftest.err) 12007 cat conftest.err >&5 12008 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12009 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12010 cat conftest.err >&5 12011 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12012 cat conftest.out >&5 12013 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12014 lt_cv_nm_interface="MS dumpbin" 12015 fi 12016 rm -f conftest* 12017fi 12018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12019printf "%s\n" "$lt_cv_nm_interface" >&6; } 12020 12021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12022printf %s "checking whether ln -s works... " >&6; } 12023LN_S=$as_ln_s 12024if test "$LN_S" = "ln -s"; then 12025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12026printf "%s\n" "yes" >&6; } 12027else 12028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12029printf "%s\n" "no, using $LN_S" >&6; } 12030fi 12031 12032# find the maximum length of command line arguments 12033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12034printf %s "checking the maximum length of command line arguments... " >&6; } 12035if test ${lt_cv_sys_max_cmd_len+y} 12036then : 12037 printf %s "(cached) " >&6 12038else $as_nop 12039 i=0 12040 teststring=ABCD 12041 12042 case $build_os in 12043 msdosdjgpp*) 12044 # On DJGPP, this test can blow up pretty badly due to problems in libc 12045 # (any single argument exceeding 2000 bytes causes a buffer overrun 12046 # during glob expansion). Even if it were fixed, the result of this 12047 # check would be larger than it should be. 12048 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12049 ;; 12050 12051 gnu*) 12052 # Under GNU Hurd, this test is not required because there is 12053 # no limit to the length of command line arguments. 12054 # Libtool will interpret -1 as no limit whatsoever 12055 lt_cv_sys_max_cmd_len=-1; 12056 ;; 12057 12058 cygwin* | mingw* | cegcc*) 12059 # On Win9x/ME, this test blows up -- it succeeds, but takes 12060 # about 5 minutes as the teststring grows exponentially. 12061 # Worse, since 9x/ME are not pre-emptively multitasking, 12062 # you end up with a "frozen" computer, even though with patience 12063 # the test eventually succeeds (with a max line length of 256k). 12064 # Instead, let's just punt: use the minimum linelength reported by 12065 # all of the supported platforms: 8192 (on NT/2K/XP). 12066 lt_cv_sys_max_cmd_len=8192; 12067 ;; 12068 12069 mint*) 12070 # On MiNT this can take a long time and run out of memory. 12071 lt_cv_sys_max_cmd_len=8192; 12072 ;; 12073 12074 amigaos*) 12075 # On AmigaOS with pdksh, this test takes hours, literally. 12076 # So we just punt and use a minimum line length of 8192. 12077 lt_cv_sys_max_cmd_len=8192; 12078 ;; 12079 12080 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12081 # This has been around since 386BSD, at least. Likely further. 12082 if test -x /sbin/sysctl; then 12083 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12084 elif test -x /usr/sbin/sysctl; then 12085 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12086 else 12087 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12088 fi 12089 # And add a safety zone 12090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12091 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12092 ;; 12093 12094 interix*) 12095 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12096 lt_cv_sys_max_cmd_len=196608 12097 ;; 12098 12099 os2*) 12100 # The test takes a long time on OS/2. 12101 lt_cv_sys_max_cmd_len=8192 12102 ;; 12103 12104 osf*) 12105 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12106 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12107 # nice to cause kernel panics so lets avoid the loop below. 12108 # First set a reasonable default. 12109 lt_cv_sys_max_cmd_len=16384 12110 # 12111 if test -x /sbin/sysconfig; then 12112 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12113 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12114 esac 12115 fi 12116 ;; 12117 sco3.2v5*) 12118 lt_cv_sys_max_cmd_len=102400 12119 ;; 12120 sysv5* | sco5v6* | sysv4.2uw2*) 12121 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12122 if test -n "$kargmax"; then 12123 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12124 else 12125 lt_cv_sys_max_cmd_len=32768 12126 fi 12127 ;; 12128 *) 12129 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12130 if test -n "$lt_cv_sys_max_cmd_len" && \ 12131 test undefined != "$lt_cv_sys_max_cmd_len"; then 12132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12134 else 12135 # Make teststring a little bigger before we do anything with it. 12136 # a 1K string should be a reasonable start. 12137 for i in 1 2 3 4 5 6 7 8; do 12138 teststring=$teststring$teststring 12139 done 12140 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12141 # If test is not a shell built-in, we'll probably end up computing a 12142 # maximum length that is only half of the actual maximum length, but 12143 # we can't tell. 12144 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12145 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12146 test 17 != "$i" # 1/2 MB should be enough 12147 do 12148 i=`expr $i + 1` 12149 teststring=$teststring$teststring 12150 done 12151 # Only check the string length outside the loop. 12152 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12153 teststring= 12154 # Add a significant safety factor because C++ compilers can tack on 12155 # massive amounts of additional arguments before passing them to the 12156 # linker. It appears as though 1/2 is a usable value. 12157 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12158 fi 12159 ;; 12160 esac 12161 12162fi 12163 12164if test -n "$lt_cv_sys_max_cmd_len"; then 12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12166printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12167else 12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12169printf "%s\n" "none" >&6; } 12170fi 12171max_cmd_len=$lt_cv_sys_max_cmd_len 12172 12173 12174 12175 12176 12177 12178: ${CP="cp -f"} 12179: ${MV="mv -f"} 12180: ${RM="rm -f"} 12181 12182if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12183 lt_unset=unset 12184else 12185 lt_unset=false 12186fi 12187 12188 12189 12190 12191 12192# test EBCDIC or ASCII 12193case `echo X|tr X '\101'` in 12194 A) # ASCII based system 12195 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12196 lt_SP2NL='tr \040 \012' 12197 lt_NL2SP='tr \015\012 \040\040' 12198 ;; 12199 *) # EBCDIC based system 12200 lt_SP2NL='tr \100 \n' 12201 lt_NL2SP='tr \r\n \100\100' 12202 ;; 12203esac 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12214printf %s "checking how to convert $build file names to $host format... " >&6; } 12215if test ${lt_cv_to_host_file_cmd+y} 12216then : 12217 printf %s "(cached) " >&6 12218else $as_nop 12219 case $host in 12220 *-*-mingw* ) 12221 case $build in 12222 *-*-mingw* ) # actually msys 12223 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12224 ;; 12225 *-*-cygwin* ) 12226 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12227 ;; 12228 * ) # otherwise, assume *nix 12229 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12230 ;; 12231 esac 12232 ;; 12233 *-*-cygwin* ) 12234 case $build in 12235 *-*-mingw* ) # actually msys 12236 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12237 ;; 12238 *-*-cygwin* ) 12239 lt_cv_to_host_file_cmd=func_convert_file_noop 12240 ;; 12241 * ) # otherwise, assume *nix 12242 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12243 ;; 12244 esac 12245 ;; 12246 * ) # unhandled hosts (and "normal" native builds) 12247 lt_cv_to_host_file_cmd=func_convert_file_noop 12248 ;; 12249esac 12250 12251fi 12252 12253to_host_file_cmd=$lt_cv_to_host_file_cmd 12254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12255printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12256 12257 12258 12259 12260 12261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12262printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12263if test ${lt_cv_to_tool_file_cmd+y} 12264then : 12265 printf %s "(cached) " >&6 12266else $as_nop 12267 #assume ordinary cross tools, or native build. 12268lt_cv_to_tool_file_cmd=func_convert_file_noop 12269case $host in 12270 *-*-mingw* ) 12271 case $build in 12272 *-*-mingw* ) # actually msys 12273 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12274 ;; 12275 esac 12276 ;; 12277esac 12278 12279fi 12280 12281to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12283printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12284 12285 12286 12287 12288 12289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12290printf %s "checking for $LD option to reload object files... " >&6; } 12291if test ${lt_cv_ld_reload_flag+y} 12292then : 12293 printf %s "(cached) " >&6 12294else $as_nop 12295 lt_cv_ld_reload_flag='-r' 12296fi 12297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12298printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12299reload_flag=$lt_cv_ld_reload_flag 12300case $reload_flag in 12301"" | " "*) ;; 12302*) reload_flag=" $reload_flag" ;; 12303esac 12304reload_cmds='$LD$reload_flag -o $output$reload_objs' 12305case $host_os in 12306 cygwin* | mingw* | pw32* | cegcc*) 12307 if test yes != "$GCC"; then 12308 reload_cmds=false 12309 fi 12310 ;; 12311 darwin*) 12312 if test yes = "$GCC"; then 12313 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12314 else 12315 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12316 fi 12317 ;; 12318esac 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328if test -n "$ac_tool_prefix"; then 12329 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12330set dummy ${ac_tool_prefix}file; ac_word=$2 12331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12332printf %s "checking for $ac_word... " >&6; } 12333if test ${ac_cv_prog_FILECMD+y} 12334then : 12335 printf %s "(cached) " >&6 12336else $as_nop 12337 if test -n "$FILECMD"; then 12338 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12339else 12340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12341for as_dir in $PATH 12342do 12343 IFS=$as_save_IFS 12344 case $as_dir in #((( 12345 '') as_dir=./ ;; 12346 */) ;; 12347 *) as_dir=$as_dir/ ;; 12348 esac 12349 for ac_exec_ext in '' $ac_executable_extensions; do 12350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12351 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12353 break 2 12354 fi 12355done 12356 done 12357IFS=$as_save_IFS 12358 12359fi 12360fi 12361FILECMD=$ac_cv_prog_FILECMD 12362if test -n "$FILECMD"; then 12363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12364printf "%s\n" "$FILECMD" >&6; } 12365else 12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12367printf "%s\n" "no" >&6; } 12368fi 12369 12370 12371fi 12372if test -z "$ac_cv_prog_FILECMD"; then 12373 ac_ct_FILECMD=$FILECMD 12374 # Extract the first word of "file", so it can be a program name with args. 12375set dummy file; ac_word=$2 12376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12377printf %s "checking for $ac_word... " >&6; } 12378if test ${ac_cv_prog_ac_ct_FILECMD+y} 12379then : 12380 printf %s "(cached) " >&6 12381else $as_nop 12382 if test -n "$ac_ct_FILECMD"; then 12383 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12384else 12385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12386for as_dir in $PATH 12387do 12388 IFS=$as_save_IFS 12389 case $as_dir in #((( 12390 '') as_dir=./ ;; 12391 */) ;; 12392 *) as_dir=$as_dir/ ;; 12393 esac 12394 for ac_exec_ext in '' $ac_executable_extensions; do 12395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12396 ac_cv_prog_ac_ct_FILECMD="file" 12397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12398 break 2 12399 fi 12400done 12401 done 12402IFS=$as_save_IFS 12403 12404fi 12405fi 12406ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12407if test -n "$ac_ct_FILECMD"; then 12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12409printf "%s\n" "$ac_ct_FILECMD" >&6; } 12410else 12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12412printf "%s\n" "no" >&6; } 12413fi 12414 12415 if test "x$ac_ct_FILECMD" = x; then 12416 FILECMD=":" 12417 else 12418 case $cross_compiling:$ac_tool_warned in 12419yes:) 12420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12421printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12422ac_tool_warned=yes ;; 12423esac 12424 FILECMD=$ac_ct_FILECMD 12425 fi 12426else 12427 FILECMD="$ac_cv_prog_FILECMD" 12428fi 12429 12430 12431 12432 12433 12434 12435 12436if test -n "$ac_tool_prefix"; then 12437 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12438set dummy ${ac_tool_prefix}objdump; ac_word=$2 12439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12440printf %s "checking for $ac_word... " >&6; } 12441if test ${ac_cv_prog_OBJDUMP+y} 12442then : 12443 printf %s "(cached) " >&6 12444else $as_nop 12445 if test -n "$OBJDUMP"; then 12446 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12447else 12448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12449for as_dir in $PATH 12450do 12451 IFS=$as_save_IFS 12452 case $as_dir in #((( 12453 '') as_dir=./ ;; 12454 */) ;; 12455 *) as_dir=$as_dir/ ;; 12456 esac 12457 for ac_exec_ext in '' $ac_executable_extensions; do 12458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12459 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12461 break 2 12462 fi 12463done 12464 done 12465IFS=$as_save_IFS 12466 12467fi 12468fi 12469OBJDUMP=$ac_cv_prog_OBJDUMP 12470if test -n "$OBJDUMP"; then 12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12472printf "%s\n" "$OBJDUMP" >&6; } 12473else 12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12475printf "%s\n" "no" >&6; } 12476fi 12477 12478 12479fi 12480if test -z "$ac_cv_prog_OBJDUMP"; then 12481 ac_ct_OBJDUMP=$OBJDUMP 12482 # Extract the first word of "objdump", so it can be a program name with args. 12483set dummy objdump; ac_word=$2 12484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12485printf %s "checking for $ac_word... " >&6; } 12486if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12487then : 12488 printf %s "(cached) " >&6 12489else $as_nop 12490 if test -n "$ac_ct_OBJDUMP"; then 12491 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12492else 12493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12494for as_dir in $PATH 12495do 12496 IFS=$as_save_IFS 12497 case $as_dir in #((( 12498 '') as_dir=./ ;; 12499 */) ;; 12500 *) as_dir=$as_dir/ ;; 12501 esac 12502 for ac_exec_ext in '' $ac_executable_extensions; do 12503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12504 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12506 break 2 12507 fi 12508done 12509 done 12510IFS=$as_save_IFS 12511 12512fi 12513fi 12514ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12515if test -n "$ac_ct_OBJDUMP"; then 12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12517printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12518else 12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12520printf "%s\n" "no" >&6; } 12521fi 12522 12523 if test "x$ac_ct_OBJDUMP" = x; then 12524 OBJDUMP="false" 12525 else 12526 case $cross_compiling:$ac_tool_warned in 12527yes:) 12528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12529printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12530ac_tool_warned=yes ;; 12531esac 12532 OBJDUMP=$ac_ct_OBJDUMP 12533 fi 12534else 12535 OBJDUMP="$ac_cv_prog_OBJDUMP" 12536fi 12537 12538test -z "$OBJDUMP" && OBJDUMP=objdump 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12549printf %s "checking how to recognize dependent libraries... " >&6; } 12550if test ${lt_cv_deplibs_check_method+y} 12551then : 12552 printf %s "(cached) " >&6 12553else $as_nop 12554 lt_cv_file_magic_cmd='$MAGIC_CMD' 12555lt_cv_file_magic_test_file= 12556lt_cv_deplibs_check_method='unknown' 12557# Need to set the preceding variable on all platforms that support 12558# interlibrary dependencies. 12559# 'none' -- dependencies not supported. 12560# 'unknown' -- same as none, but documents that we really don't know. 12561# 'pass_all' -- all dependencies passed with no checks. 12562# 'test_compile' -- check by making test program. 12563# 'file_magic [[regex]]' -- check by looking for files in library path 12564# that responds to the $file_magic_cmd with a given extended regex. 12565# If you have 'file' or equivalent on your system and you're not sure 12566# whether 'pass_all' will *always* work, you probably want this one. 12567 12568case $host_os in 12569aix[4-9]*) 12570 lt_cv_deplibs_check_method=pass_all 12571 ;; 12572 12573beos*) 12574 lt_cv_deplibs_check_method=pass_all 12575 ;; 12576 12577bsdi[45]*) 12578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12579 lt_cv_file_magic_cmd='$FILECMD -L' 12580 lt_cv_file_magic_test_file=/shlib/libc.so 12581 ;; 12582 12583cygwin*) 12584 # func_win32_libid is a shell function defined in ltmain.sh 12585 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12586 lt_cv_file_magic_cmd='func_win32_libid' 12587 ;; 12588 12589mingw* | pw32*) 12590 # Base MSYS/MinGW do not provide the 'file' command needed by 12591 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12592 # unless we find 'file', for example because we are cross-compiling. 12593 if ( file / ) >/dev/null 2>&1; then 12594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12595 lt_cv_file_magic_cmd='func_win32_libid' 12596 else 12597 # Keep this pattern in sync with the one in func_win32_libid. 12598 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12599 lt_cv_file_magic_cmd='$OBJDUMP -f' 12600 fi 12601 ;; 12602 12603cegcc*) 12604 # use the weaker test based on 'objdump'. See mingw*. 12605 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12606 lt_cv_file_magic_cmd='$OBJDUMP -f' 12607 ;; 12608 12609darwin* | rhapsody*) 12610 lt_cv_deplibs_check_method=pass_all 12611 ;; 12612 12613freebsd* | dragonfly* | midnightbsd*) 12614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12615 case $host_cpu in 12616 i*86 ) 12617 # Not sure whether the presence of OpenBSD here was a mistake. 12618 # Let's accept both of them until this is cleared up. 12619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12620 lt_cv_file_magic_cmd=$FILECMD 12621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12622 ;; 12623 esac 12624 else 12625 lt_cv_deplibs_check_method=pass_all 12626 fi 12627 ;; 12628 12629haiku*) 12630 lt_cv_deplibs_check_method=pass_all 12631 ;; 12632 12633hpux10.20* | hpux11*) 12634 lt_cv_file_magic_cmd=$FILECMD 12635 case $host_cpu in 12636 ia64*) 12637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12638 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12639 ;; 12640 hppa*64*) 12641 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]' 12642 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12643 ;; 12644 *) 12645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12646 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12647 ;; 12648 esac 12649 ;; 12650 12651interix[3-9]*) 12652 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12654 ;; 12655 12656irix5* | irix6* | nonstopux*) 12657 case $LD in 12658 *-32|*"-32 ") libmagic=32-bit;; 12659 *-n32|*"-n32 ") libmagic=N32;; 12660 *-64|*"-64 ") libmagic=64-bit;; 12661 *) libmagic=never-match;; 12662 esac 12663 lt_cv_deplibs_check_method=pass_all 12664 ;; 12665 12666# This must be glibc/ELF. 12667linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12668 lt_cv_deplibs_check_method=pass_all 12669 ;; 12670 12671netbsd*) 12672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12674 else 12675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12676 fi 12677 ;; 12678 12679newos6*) 12680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12681 lt_cv_file_magic_cmd=$FILECMD 12682 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12683 ;; 12684 12685*nto* | *qnx*) 12686 lt_cv_deplibs_check_method=pass_all 12687 ;; 12688 12689openbsd* | bitrig*) 12690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12692 else 12693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12694 fi 12695 ;; 12696 12697osf3* | osf4* | osf5*) 12698 lt_cv_deplibs_check_method=pass_all 12699 ;; 12700 12701rdos*) 12702 lt_cv_deplibs_check_method=pass_all 12703 ;; 12704 12705solaris*) 12706 lt_cv_deplibs_check_method=pass_all 12707 ;; 12708 12709sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12710 lt_cv_deplibs_check_method=pass_all 12711 ;; 12712 12713sysv4 | sysv4.3*) 12714 case $host_vendor in 12715 motorola) 12716 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]' 12717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12718 ;; 12719 ncr) 12720 lt_cv_deplibs_check_method=pass_all 12721 ;; 12722 sequent) 12723 lt_cv_file_magic_cmd='/bin/file' 12724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12725 ;; 12726 sni) 12727 lt_cv_file_magic_cmd='/bin/file' 12728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12729 lt_cv_file_magic_test_file=/lib/libc.so 12730 ;; 12731 siemens) 12732 lt_cv_deplibs_check_method=pass_all 12733 ;; 12734 pc) 12735 lt_cv_deplibs_check_method=pass_all 12736 ;; 12737 esac 12738 ;; 12739 12740tpf*) 12741 lt_cv_deplibs_check_method=pass_all 12742 ;; 12743os2*) 12744 lt_cv_deplibs_check_method=pass_all 12745 ;; 12746esac 12747 12748fi 12749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12750printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12751 12752file_magic_glob= 12753want_nocaseglob=no 12754if test "$build" = "$host"; then 12755 case $host_os in 12756 mingw* | pw32*) 12757 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12758 want_nocaseglob=yes 12759 else 12760 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12761 fi 12762 ;; 12763 esac 12764fi 12765 12766file_magic_cmd=$lt_cv_file_magic_cmd 12767deplibs_check_method=$lt_cv_deplibs_check_method 12768test -z "$deplibs_check_method" && deplibs_check_method=unknown 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791if test -n "$ac_tool_prefix"; then 12792 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12793set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12795printf %s "checking for $ac_word... " >&6; } 12796if test ${ac_cv_prog_DLLTOOL+y} 12797then : 12798 printf %s "(cached) " >&6 12799else $as_nop 12800 if test -n "$DLLTOOL"; then 12801 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12802else 12803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12804for as_dir in $PATH 12805do 12806 IFS=$as_save_IFS 12807 case $as_dir in #((( 12808 '') as_dir=./ ;; 12809 */) ;; 12810 *) as_dir=$as_dir/ ;; 12811 esac 12812 for ac_exec_ext in '' $ac_executable_extensions; do 12813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12814 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12816 break 2 12817 fi 12818done 12819 done 12820IFS=$as_save_IFS 12821 12822fi 12823fi 12824DLLTOOL=$ac_cv_prog_DLLTOOL 12825if test -n "$DLLTOOL"; then 12826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12827printf "%s\n" "$DLLTOOL" >&6; } 12828else 12829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12830printf "%s\n" "no" >&6; } 12831fi 12832 12833 12834fi 12835if test -z "$ac_cv_prog_DLLTOOL"; then 12836 ac_ct_DLLTOOL=$DLLTOOL 12837 # Extract the first word of "dlltool", so it can be a program name with args. 12838set dummy dlltool; ac_word=$2 12839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12840printf %s "checking for $ac_word... " >&6; } 12841if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12842then : 12843 printf %s "(cached) " >&6 12844else $as_nop 12845 if test -n "$ac_ct_DLLTOOL"; then 12846 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12847else 12848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12849for as_dir in $PATH 12850do 12851 IFS=$as_save_IFS 12852 case $as_dir in #((( 12853 '') as_dir=./ ;; 12854 */) ;; 12855 *) as_dir=$as_dir/ ;; 12856 esac 12857 for ac_exec_ext in '' $ac_executable_extensions; do 12858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12859 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12861 break 2 12862 fi 12863done 12864 done 12865IFS=$as_save_IFS 12866 12867fi 12868fi 12869ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12870if test -n "$ac_ct_DLLTOOL"; then 12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12872printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12873else 12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12875printf "%s\n" "no" >&6; } 12876fi 12877 12878 if test "x$ac_ct_DLLTOOL" = x; then 12879 DLLTOOL="false" 12880 else 12881 case $cross_compiling:$ac_tool_warned in 12882yes:) 12883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12884printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12885ac_tool_warned=yes ;; 12886esac 12887 DLLTOOL=$ac_ct_DLLTOOL 12888 fi 12889else 12890 DLLTOOL="$ac_cv_prog_DLLTOOL" 12891fi 12892 12893test -z "$DLLTOOL" && DLLTOOL=dlltool 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12905printf %s "checking how to associate runtime and link libraries... " >&6; } 12906if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12907then : 12908 printf %s "(cached) " >&6 12909else $as_nop 12910 lt_cv_sharedlib_from_linklib_cmd='unknown' 12911 12912case $host_os in 12913cygwin* | mingw* | pw32* | cegcc*) 12914 # two different shell functions defined in ltmain.sh; 12915 # decide which one to use based on capabilities of $DLLTOOL 12916 case `$DLLTOOL --help 2>&1` in 12917 *--identify-strict*) 12918 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12919 ;; 12920 *) 12921 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12922 ;; 12923 esac 12924 ;; 12925*) 12926 # fallback: assume linklib IS sharedlib 12927 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12928 ;; 12929esac 12930 12931fi 12932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12933printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12934sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12935test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12936 12937 12938 12939 12940 12941 12942 12943if test -n "$ac_tool_prefix"; then 12944 for ac_prog in ar 12945 do 12946 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12947set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12949printf %s "checking for $ac_word... " >&6; } 12950if test ${ac_cv_prog_AR+y} 12951then : 12952 printf %s "(cached) " >&6 12953else $as_nop 12954 if test -n "$AR"; then 12955 ac_cv_prog_AR="$AR" # Let the user override the test. 12956else 12957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12958for as_dir in $PATH 12959do 12960 IFS=$as_save_IFS 12961 case $as_dir in #((( 12962 '') as_dir=./ ;; 12963 */) ;; 12964 *) as_dir=$as_dir/ ;; 12965 esac 12966 for ac_exec_ext in '' $ac_executable_extensions; do 12967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12968 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12970 break 2 12971 fi 12972done 12973 done 12974IFS=$as_save_IFS 12975 12976fi 12977fi 12978AR=$ac_cv_prog_AR 12979if test -n "$AR"; then 12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12981printf "%s\n" "$AR" >&6; } 12982else 12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12984printf "%s\n" "no" >&6; } 12985fi 12986 12987 12988 test -n "$AR" && break 12989 done 12990fi 12991if test -z "$AR"; then 12992 ac_ct_AR=$AR 12993 for ac_prog in ar 12994do 12995 # Extract the first word of "$ac_prog", so it can be a program name with args. 12996set dummy $ac_prog; ac_word=$2 12997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12998printf %s "checking for $ac_word... " >&6; } 12999if test ${ac_cv_prog_ac_ct_AR+y} 13000then : 13001 printf %s "(cached) " >&6 13002else $as_nop 13003 if test -n "$ac_ct_AR"; then 13004 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13005else 13006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13007for as_dir in $PATH 13008do 13009 IFS=$as_save_IFS 13010 case $as_dir in #((( 13011 '') as_dir=./ ;; 13012 */) ;; 13013 *) as_dir=$as_dir/ ;; 13014 esac 13015 for ac_exec_ext in '' $ac_executable_extensions; do 13016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13017 ac_cv_prog_ac_ct_AR="$ac_prog" 13018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13019 break 2 13020 fi 13021done 13022 done 13023IFS=$as_save_IFS 13024 13025fi 13026fi 13027ac_ct_AR=$ac_cv_prog_ac_ct_AR 13028if test -n "$ac_ct_AR"; then 13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13030printf "%s\n" "$ac_ct_AR" >&6; } 13031else 13032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13033printf "%s\n" "no" >&6; } 13034fi 13035 13036 13037 test -n "$ac_ct_AR" && break 13038done 13039 13040 if test "x$ac_ct_AR" = x; then 13041 AR="false" 13042 else 13043 case $cross_compiling:$ac_tool_warned in 13044yes:) 13045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13046printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13047ac_tool_warned=yes ;; 13048esac 13049 AR=$ac_ct_AR 13050 fi 13051fi 13052 13053: ${AR=ar} 13054 13055 13056 13057 13058 13059 13060# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13061# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13062# higher priority because thats what people were doing historically (setting 13063# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13064# variable obsoleted/removed. 13065 13066test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13067lt_ar_flags=$AR_FLAGS 13068 13069 13070 13071 13072 13073 13074# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13075# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13076 13077 13078 13079 13080 13081 13082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13083printf %s "checking for archiver @FILE support... " >&6; } 13084if test ${lt_cv_ar_at_file+y} 13085then : 13086 printf %s "(cached) " >&6 13087else $as_nop 13088 lt_cv_ar_at_file=no 13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13090/* end confdefs.h. */ 13091 13092int 13093main (void) 13094{ 13095 13096 ; 13097 return 0; 13098} 13099_ACEOF 13100if ac_fn_c_try_compile "$LINENO" 13101then : 13102 echo conftest.$ac_objext > conftest.lst 13103 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13105 (eval $lt_ar_try) 2>&5 13106 ac_status=$? 13107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13108 test $ac_status = 0; } 13109 if test 0 -eq "$ac_status"; then 13110 # Ensure the archiver fails upon bogus file names. 13111 rm -f conftest.$ac_objext libconftest.a 13112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13113 (eval $lt_ar_try) 2>&5 13114 ac_status=$? 13115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13116 test $ac_status = 0; } 13117 if test 0 -ne "$ac_status"; then 13118 lt_cv_ar_at_file=@ 13119 fi 13120 fi 13121 rm -f conftest.* libconftest.a 13122 13123fi 13124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13125 13126fi 13127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13128printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13129 13130if test no = "$lt_cv_ar_at_file"; then 13131 archiver_list_spec= 13132else 13133 archiver_list_spec=$lt_cv_ar_at_file 13134fi 13135 13136 13137 13138 13139 13140 13141 13142if test -n "$ac_tool_prefix"; then 13143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13144set dummy ${ac_tool_prefix}strip; ac_word=$2 13145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13146printf %s "checking for $ac_word... " >&6; } 13147if test ${ac_cv_prog_STRIP+y} 13148then : 13149 printf %s "(cached) " >&6 13150else $as_nop 13151 if test -n "$STRIP"; then 13152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13153else 13154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13155for as_dir in $PATH 13156do 13157 IFS=$as_save_IFS 13158 case $as_dir in #((( 13159 '') as_dir=./ ;; 13160 */) ;; 13161 *) as_dir=$as_dir/ ;; 13162 esac 13163 for ac_exec_ext in '' $ac_executable_extensions; do 13164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13165 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13167 break 2 13168 fi 13169done 13170 done 13171IFS=$as_save_IFS 13172 13173fi 13174fi 13175STRIP=$ac_cv_prog_STRIP 13176if test -n "$STRIP"; then 13177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13178printf "%s\n" "$STRIP" >&6; } 13179else 13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13181printf "%s\n" "no" >&6; } 13182fi 13183 13184 13185fi 13186if test -z "$ac_cv_prog_STRIP"; then 13187 ac_ct_STRIP=$STRIP 13188 # Extract the first word of "strip", so it can be a program name with args. 13189set dummy strip; ac_word=$2 13190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13191printf %s "checking for $ac_word... " >&6; } 13192if test ${ac_cv_prog_ac_ct_STRIP+y} 13193then : 13194 printf %s "(cached) " >&6 13195else $as_nop 13196 if test -n "$ac_ct_STRIP"; then 13197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13198else 13199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13200for as_dir in $PATH 13201do 13202 IFS=$as_save_IFS 13203 case $as_dir in #((( 13204 '') as_dir=./ ;; 13205 */) ;; 13206 *) as_dir=$as_dir/ ;; 13207 esac 13208 for ac_exec_ext in '' $ac_executable_extensions; do 13209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13210 ac_cv_prog_ac_ct_STRIP="strip" 13211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13212 break 2 13213 fi 13214done 13215 done 13216IFS=$as_save_IFS 13217 13218fi 13219fi 13220ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13221if test -n "$ac_ct_STRIP"; then 13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13223printf "%s\n" "$ac_ct_STRIP" >&6; } 13224else 13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13226printf "%s\n" "no" >&6; } 13227fi 13228 13229 if test "x$ac_ct_STRIP" = x; then 13230 STRIP=":" 13231 else 13232 case $cross_compiling:$ac_tool_warned in 13233yes:) 13234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13236ac_tool_warned=yes ;; 13237esac 13238 STRIP=$ac_ct_STRIP 13239 fi 13240else 13241 STRIP="$ac_cv_prog_STRIP" 13242fi 13243 13244test -z "$STRIP" && STRIP=: 13245 13246 13247 13248 13249 13250 13251if test -n "$ac_tool_prefix"; then 13252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13253set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13255printf %s "checking for $ac_word... " >&6; } 13256if test ${ac_cv_prog_RANLIB+y} 13257then : 13258 printf %s "(cached) " >&6 13259else $as_nop 13260 if test -n "$RANLIB"; then 13261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13262else 13263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13264for as_dir in $PATH 13265do 13266 IFS=$as_save_IFS 13267 case $as_dir in #((( 13268 '') as_dir=./ ;; 13269 */) ;; 13270 *) as_dir=$as_dir/ ;; 13271 esac 13272 for ac_exec_ext in '' $ac_executable_extensions; do 13273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13276 break 2 13277 fi 13278done 13279 done 13280IFS=$as_save_IFS 13281 13282fi 13283fi 13284RANLIB=$ac_cv_prog_RANLIB 13285if test -n "$RANLIB"; then 13286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13287printf "%s\n" "$RANLIB" >&6; } 13288else 13289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13290printf "%s\n" "no" >&6; } 13291fi 13292 13293 13294fi 13295if test -z "$ac_cv_prog_RANLIB"; then 13296 ac_ct_RANLIB=$RANLIB 13297 # Extract the first word of "ranlib", so it can be a program name with args. 13298set dummy ranlib; ac_word=$2 13299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13300printf %s "checking for $ac_word... " >&6; } 13301if test ${ac_cv_prog_ac_ct_RANLIB+y} 13302then : 13303 printf %s "(cached) " >&6 13304else $as_nop 13305 if test -n "$ac_ct_RANLIB"; then 13306 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13307else 13308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13309for as_dir in $PATH 13310do 13311 IFS=$as_save_IFS 13312 case $as_dir in #((( 13313 '') as_dir=./ ;; 13314 */) ;; 13315 *) as_dir=$as_dir/ ;; 13316 esac 13317 for ac_exec_ext in '' $ac_executable_extensions; do 13318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13319 ac_cv_prog_ac_ct_RANLIB="ranlib" 13320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13321 break 2 13322 fi 13323done 13324 done 13325IFS=$as_save_IFS 13326 13327fi 13328fi 13329ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13330if test -n "$ac_ct_RANLIB"; then 13331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13332printf "%s\n" "$ac_ct_RANLIB" >&6; } 13333else 13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13335printf "%s\n" "no" >&6; } 13336fi 13337 13338 if test "x$ac_ct_RANLIB" = x; then 13339 RANLIB=":" 13340 else 13341 case $cross_compiling:$ac_tool_warned in 13342yes:) 13343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13344printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13345ac_tool_warned=yes ;; 13346esac 13347 RANLIB=$ac_ct_RANLIB 13348 fi 13349else 13350 RANLIB="$ac_cv_prog_RANLIB" 13351fi 13352 13353test -z "$RANLIB" && RANLIB=: 13354 13355 13356 13357 13358 13359 13360# Determine commands to create old-style static archives. 13361old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13362old_postinstall_cmds='chmod 644 $oldlib' 13363old_postuninstall_cmds= 13364 13365if test -n "$RANLIB"; then 13366 case $host_os in 13367 bitrig* | openbsd*) 13368 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13369 ;; 13370 *) 13371 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13372 ;; 13373 esac 13374 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13375fi 13376 13377case $host_os in 13378 darwin*) 13379 lock_old_archive_extraction=yes ;; 13380 *) 13381 lock_old_archive_extraction=no ;; 13382esac 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422# If no C compiler was specified, use CC. 13423LTCC=${LTCC-"$CC"} 13424 13425# If no C compiler flags were specified, use CFLAGS. 13426LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13427 13428# Allow CC to be a program name with arguments. 13429compiler=$CC 13430 13431 13432# Check for command to grab the raw symbol name followed by C symbol from nm. 13433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13434printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13435if test ${lt_cv_sys_global_symbol_pipe+y} 13436then : 13437 printf %s "(cached) " >&6 13438else $as_nop 13439 13440# These are sane defaults that work on at least a few old systems. 13441# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13442 13443# Character class describing NM global symbol codes. 13444symcode='[BCDEGRST]' 13445 13446# Regexp to match symbols that can be accessed directly from C. 13447sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13448 13449# Define system-specific variables. 13450case $host_os in 13451aix*) 13452 symcode='[BCDT]' 13453 ;; 13454cygwin* | mingw* | pw32* | cegcc*) 13455 symcode='[ABCDGISTW]' 13456 ;; 13457hpux*) 13458 if test ia64 = "$host_cpu"; then 13459 symcode='[ABCDEGRST]' 13460 fi 13461 ;; 13462irix* | nonstopux*) 13463 symcode='[BCDEGRST]' 13464 ;; 13465osf*) 13466 symcode='[BCDEGQRST]' 13467 ;; 13468solaris*) 13469 symcode='[BDRT]' 13470 ;; 13471sco3.2v5*) 13472 symcode='[DT]' 13473 ;; 13474sysv4.2uw2*) 13475 symcode='[DT]' 13476 ;; 13477sysv5* | sco5v6* | unixware* | OpenUNIX*) 13478 symcode='[ABDT]' 13479 ;; 13480sysv4) 13481 symcode='[DFNSTU]' 13482 ;; 13483esac 13484 13485# If we're using GNU nm, then use its standard symbol codes. 13486case `$NM -V 2>&1` in 13487*GNU* | *'with BFD'*) 13488 symcode='[ABCDGIRSTW]' ;; 13489esac 13490 13491if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13492 # Gets list of data symbols to import. 13493 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13494 # Adjust the below global symbol transforms to fixup imported variables. 13495 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13496 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13497 lt_c_name_lib_hook="\ 13498 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13499 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13500else 13501 # Disable hooks by default. 13502 lt_cv_sys_global_symbol_to_import= 13503 lt_cdecl_hook= 13504 lt_c_name_hook= 13505 lt_c_name_lib_hook= 13506fi 13507 13508# Transform an extracted symbol line into a proper C declaration. 13509# Some systems (esp. on ia64) link data and code symbols differently, 13510# so use this general approach. 13511lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13512$lt_cdecl_hook\ 13513" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13514" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13515 13516# Transform an extracted symbol line into symbol name and symbol address 13517lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13518$lt_c_name_hook\ 13519" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13520" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13521 13522# Transform an extracted symbol line into symbol name with lib prefix and 13523# symbol address. 13524lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13525$lt_c_name_lib_hook\ 13526" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13527" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13528" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13529 13530# Handle CRLF in mingw tool chain 13531opt_cr= 13532case $build_os in 13533mingw*) 13534 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13535 ;; 13536esac 13537 13538# Try without a prefix underscore, then with it. 13539for ac_symprfx in "" "_"; do 13540 13541 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13542 symxfrm="\\1 $ac_symprfx\\2 \\2" 13543 13544 # Write the raw and C identifiers. 13545 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13546 # Fake it for dumpbin and say T for any non-static function, 13547 # D for any global variable and I for any imported variable. 13548 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13549 # which start with @ or ?. 13550 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13551" {last_section=section; section=\$ 3};"\ 13552" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13553" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13554" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13555" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13556" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13557" \$ 0!~/External *\|/{next};"\ 13558" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13559" {if(hide[section]) next};"\ 13560" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13561" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13562" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13563" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13564" ' prfx=^$ac_symprfx" 13565 else 13566 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13567 fi 13568 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13569 13570 # Check to see that the pipe works correctly. 13571 pipe_works=no 13572 13573 rm -f conftest* 13574 cat > conftest.$ac_ext <<_LT_EOF 13575#ifdef __cplusplus 13576extern "C" { 13577#endif 13578char nm_test_var; 13579void nm_test_func(void); 13580void nm_test_func(void){} 13581#ifdef __cplusplus 13582} 13583#endif 13584int main(){nm_test_var='a';nm_test_func();return(0);} 13585_LT_EOF 13586 13587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13588 (eval $ac_compile) 2>&5 13589 ac_status=$? 13590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13591 test $ac_status = 0; }; then 13592 # Now try to grab the symbols. 13593 nlist=conftest.nm 13594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13595 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13596 ac_status=$? 13597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13598 test $ac_status = 0; } && test -s "$nlist"; then 13599 # Try sorting and uniquifying the output. 13600 if sort "$nlist" | uniq > "$nlist"T; then 13601 mv -f "$nlist"T "$nlist" 13602 else 13603 rm -f "$nlist"T 13604 fi 13605 13606 # Make sure that we snagged all the symbols we need. 13607 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13608 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13609 cat <<_LT_EOF > conftest.$ac_ext 13610/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13611#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13612/* DATA imports from DLLs on WIN32 can't be const, because runtime 13613 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13614# define LT_DLSYM_CONST 13615#elif defined __osf__ 13616/* This system does not cope well with relocations in const data. */ 13617# define LT_DLSYM_CONST 13618#else 13619# define LT_DLSYM_CONST const 13620#endif 13621 13622#ifdef __cplusplus 13623extern "C" { 13624#endif 13625 13626_LT_EOF 13627 # Now generate the symbol file. 13628 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13629 13630 cat <<_LT_EOF >> conftest.$ac_ext 13631 13632/* The mapping between symbol names and symbols. */ 13633LT_DLSYM_CONST struct { 13634 const char *name; 13635 void *address; 13636} 13637lt__PROGRAM__LTX_preloaded_symbols[] = 13638{ 13639 { "@PROGRAM@", (void *) 0 }, 13640_LT_EOF 13641 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13642 cat <<\_LT_EOF >> conftest.$ac_ext 13643 {0, (void *) 0} 13644}; 13645 13646/* This works around a problem in FreeBSD linker */ 13647#ifdef FREEBSD_WORKAROUND 13648static const void *lt_preloaded_setup() { 13649 return lt__PROGRAM__LTX_preloaded_symbols; 13650} 13651#endif 13652 13653#ifdef __cplusplus 13654} 13655#endif 13656_LT_EOF 13657 # Now try linking the two files. 13658 mv conftest.$ac_objext conftstm.$ac_objext 13659 lt_globsym_save_LIBS=$LIBS 13660 lt_globsym_save_CFLAGS=$CFLAGS 13661 LIBS=conftstm.$ac_objext 13662 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13664 (eval $ac_link) 2>&5 13665 ac_status=$? 13666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13667 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13668 pipe_works=yes 13669 fi 13670 LIBS=$lt_globsym_save_LIBS 13671 CFLAGS=$lt_globsym_save_CFLAGS 13672 else 13673 echo "cannot find nm_test_func in $nlist" >&5 13674 fi 13675 else 13676 echo "cannot find nm_test_var in $nlist" >&5 13677 fi 13678 else 13679 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13680 fi 13681 else 13682 echo "$progname: failed program was:" >&5 13683 cat conftest.$ac_ext >&5 13684 fi 13685 rm -rf conftest* conftst* 13686 13687 # Do not use the global_symbol_pipe unless it works. 13688 if test yes = "$pipe_works"; then 13689 break 13690 else 13691 lt_cv_sys_global_symbol_pipe= 13692 fi 13693done 13694 13695fi 13696 13697if test -z "$lt_cv_sys_global_symbol_pipe"; then 13698 lt_cv_sys_global_symbol_to_cdecl= 13699fi 13700if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13702printf "%s\n" "failed" >&6; } 13703else 13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13705printf "%s\n" "ok" >&6; } 13706fi 13707 13708# Response file support. 13709if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13710 nm_file_list_spec='@' 13711elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13712 nm_file_list_spec='@' 13713fi 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13752printf %s "checking for sysroot... " >&6; } 13753 13754# Check whether --with-sysroot was given. 13755if test ${with_sysroot+y} 13756then : 13757 withval=$with_sysroot; 13758else $as_nop 13759 with_sysroot=no 13760fi 13761 13762 13763lt_sysroot= 13764case $with_sysroot in #( 13765 yes) 13766 if test yes = "$GCC"; then 13767 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13768 fi 13769 ;; #( 13770 /*) 13771 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13772 ;; #( 13773 no|'') 13774 ;; #( 13775 *) 13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13777printf "%s\n" "$with_sysroot" >&6; } 13778 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13779 ;; 13780esac 13781 13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13783printf "%s\n" "${lt_sysroot:-no}" >&6; } 13784 13785 13786 13787 13788 13789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13790printf %s "checking for a working dd... " >&6; } 13791if test ${ac_cv_path_lt_DD+y} 13792then : 13793 printf %s "(cached) " >&6 13794else $as_nop 13795 printf 0123456789abcdef0123456789abcdef >conftest.i 13796cat conftest.i conftest.i >conftest2.i 13797: ${lt_DD:=$DD} 13798if test -z "$lt_DD"; then 13799 ac_path_lt_DD_found=false 13800 # Loop through the user's path and test for each of PROGNAME-LIST 13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13802for as_dir in $PATH 13803do 13804 IFS=$as_save_IFS 13805 case $as_dir in #((( 13806 '') as_dir=./ ;; 13807 */) ;; 13808 *) as_dir=$as_dir/ ;; 13809 esac 13810 for ac_prog in dd 13811 do 13812 for ac_exec_ext in '' $ac_executable_extensions; do 13813 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13814 as_fn_executable_p "$ac_path_lt_DD" || continue 13815if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13816 cmp -s conftest.i conftest.out \ 13817 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13818fi 13819 $ac_path_lt_DD_found && break 3 13820 done 13821 done 13822 done 13823IFS=$as_save_IFS 13824 if test -z "$ac_cv_path_lt_DD"; then 13825 : 13826 fi 13827else 13828 ac_cv_path_lt_DD=$lt_DD 13829fi 13830 13831rm -f conftest.i conftest2.i conftest.out 13832fi 13833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13834printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13835 13836 13837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13838printf %s "checking how to truncate binary pipes... " >&6; } 13839if test ${lt_cv_truncate_bin+y} 13840then : 13841 printf %s "(cached) " >&6 13842else $as_nop 13843 printf 0123456789abcdef0123456789abcdef >conftest.i 13844cat conftest.i conftest.i >conftest2.i 13845lt_cv_truncate_bin= 13846if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13847 cmp -s conftest.i conftest.out \ 13848 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13849fi 13850rm -f conftest.i conftest2.i conftest.out 13851test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13852fi 13853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13854printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13855 13856 13857 13858 13859 13860 13861 13862# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13863func_cc_basename () 13864{ 13865 for cc_temp in $*""; do 13866 case $cc_temp in 13867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13869 \-*) ;; 13870 *) break;; 13871 esac 13872 done 13873 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13874} 13875 13876# Check whether --enable-libtool-lock was given. 13877if test ${enable_libtool_lock+y} 13878then : 13879 enableval=$enable_libtool_lock; 13880fi 13881 13882test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13883 13884# Some flags need to be propagated to the compiler or linker for good 13885# libtool support. 13886case $host in 13887ia64-*-hpux*) 13888 # Find out what ABI is being produced by ac_compile, and set mode 13889 # options accordingly. 13890 echo 'int i;' > conftest.$ac_ext 13891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13892 (eval $ac_compile) 2>&5 13893 ac_status=$? 13894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13895 test $ac_status = 0; }; then 13896 case `$FILECMD conftest.$ac_objext` in 13897 *ELF-32*) 13898 HPUX_IA64_MODE=32 13899 ;; 13900 *ELF-64*) 13901 HPUX_IA64_MODE=64 13902 ;; 13903 esac 13904 fi 13905 rm -rf conftest* 13906 ;; 13907*-*-irix6*) 13908 # Find out what ABI is being produced by ac_compile, and set linker 13909 # options accordingly. 13910 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13912 (eval $ac_compile) 2>&5 13913 ac_status=$? 13914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13915 test $ac_status = 0; }; then 13916 if test yes = "$lt_cv_prog_gnu_ld"; then 13917 case `$FILECMD conftest.$ac_objext` in 13918 *32-bit*) 13919 LD="${LD-ld} -melf32bsmip" 13920 ;; 13921 *N32*) 13922 LD="${LD-ld} -melf32bmipn32" 13923 ;; 13924 *64-bit*) 13925 LD="${LD-ld} -melf64bmip" 13926 ;; 13927 esac 13928 else 13929 case `$FILECMD conftest.$ac_objext` in 13930 *32-bit*) 13931 LD="${LD-ld} -32" 13932 ;; 13933 *N32*) 13934 LD="${LD-ld} -n32" 13935 ;; 13936 *64-bit*) 13937 LD="${LD-ld} -64" 13938 ;; 13939 esac 13940 fi 13941 fi 13942 rm -rf conftest* 13943 ;; 13944 13945mips64*-*linux*) 13946 # Find out what ABI is being produced by ac_compile, and set linker 13947 # options accordingly. 13948 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13950 (eval $ac_compile) 2>&5 13951 ac_status=$? 13952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13953 test $ac_status = 0; }; then 13954 emul=elf 13955 case `$FILECMD conftest.$ac_objext` in 13956 *32-bit*) 13957 emul="${emul}32" 13958 ;; 13959 *64-bit*) 13960 emul="${emul}64" 13961 ;; 13962 esac 13963 case `$FILECMD conftest.$ac_objext` in 13964 *MSB*) 13965 emul="${emul}btsmip" 13966 ;; 13967 *LSB*) 13968 emul="${emul}ltsmip" 13969 ;; 13970 esac 13971 case `$FILECMD conftest.$ac_objext` in 13972 *N32*) 13973 emul="${emul}n32" 13974 ;; 13975 esac 13976 LD="${LD-ld} -m $emul" 13977 fi 13978 rm -rf conftest* 13979 ;; 13980 13981x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13982s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13983 # Find out what ABI is being produced by ac_compile, and set linker 13984 # options accordingly. Note that the listed cases only cover the 13985 # situations where additional linker options are needed (such as when 13986 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13987 # vice versa); the common cases where no linker options are needed do 13988 # not appear in the list. 13989 echo 'int i;' > conftest.$ac_ext 13990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13991 (eval $ac_compile) 2>&5 13992 ac_status=$? 13993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13994 test $ac_status = 0; }; then 13995 case `$FILECMD conftest.o` in 13996 *32-bit*) 13997 case $host in 13998 x86_64-*kfreebsd*-gnu) 13999 LD="${LD-ld} -m elf_i386_fbsd" 14000 ;; 14001 x86_64-*linux*) 14002 case `$FILECMD conftest.o` in 14003 *x86-64*) 14004 LD="${LD-ld} -m elf32_x86_64" 14005 ;; 14006 *) 14007 LD="${LD-ld} -m elf_i386" 14008 ;; 14009 esac 14010 ;; 14011 powerpc64le-*linux*) 14012 LD="${LD-ld} -m elf32lppclinux" 14013 ;; 14014 powerpc64-*linux*) 14015 LD="${LD-ld} -m elf32ppclinux" 14016 ;; 14017 s390x-*linux*) 14018 LD="${LD-ld} -m elf_s390" 14019 ;; 14020 sparc64-*linux*) 14021 LD="${LD-ld} -m elf32_sparc" 14022 ;; 14023 esac 14024 ;; 14025 *64-bit*) 14026 case $host in 14027 x86_64-*kfreebsd*-gnu) 14028 LD="${LD-ld} -m elf_x86_64_fbsd" 14029 ;; 14030 x86_64-*linux*) 14031 LD="${LD-ld} -m elf_x86_64" 14032 ;; 14033 powerpcle-*linux*) 14034 LD="${LD-ld} -m elf64lppc" 14035 ;; 14036 powerpc-*linux*) 14037 LD="${LD-ld} -m elf64ppc" 14038 ;; 14039 s390*-*linux*|s390*-*tpf*) 14040 LD="${LD-ld} -m elf64_s390" 14041 ;; 14042 sparc*-*linux*) 14043 LD="${LD-ld} -m elf64_sparc" 14044 ;; 14045 esac 14046 ;; 14047 esac 14048 fi 14049 rm -rf conftest* 14050 ;; 14051 14052*-*-sco3.2v5*) 14053 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14054 SAVE_CFLAGS=$CFLAGS 14055 CFLAGS="$CFLAGS -belf" 14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14057printf %s "checking whether the C compiler needs -belf... " >&6; } 14058if test ${lt_cv_cc_needs_belf+y} 14059then : 14060 printf %s "(cached) " >&6 14061else $as_nop 14062 ac_ext=c 14063ac_cpp='$CPP $CPPFLAGS' 14064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14066ac_compiler_gnu=$ac_cv_c_compiler_gnu 14067 14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14069/* end confdefs.h. */ 14070 14071int 14072main (void) 14073{ 14074 14075 ; 14076 return 0; 14077} 14078_ACEOF 14079if ac_fn_c_try_link "$LINENO" 14080then : 14081 lt_cv_cc_needs_belf=yes 14082else $as_nop 14083 lt_cv_cc_needs_belf=no 14084fi 14085rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14086 conftest$ac_exeext conftest.$ac_ext 14087 ac_ext=c 14088ac_cpp='$CPP $CPPFLAGS' 14089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14091ac_compiler_gnu=$ac_cv_c_compiler_gnu 14092 14093fi 14094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14095printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14096 if test yes != "$lt_cv_cc_needs_belf"; then 14097 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14098 CFLAGS=$SAVE_CFLAGS 14099 fi 14100 ;; 14101*-*solaris*) 14102 # Find out what ABI is being produced by ac_compile, and set linker 14103 # options accordingly. 14104 echo 'int i;' > conftest.$ac_ext 14105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14106 (eval $ac_compile) 2>&5 14107 ac_status=$? 14108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14109 test $ac_status = 0; }; then 14110 case `$FILECMD conftest.o` in 14111 *64-bit*) 14112 case $lt_cv_prog_gnu_ld in 14113 yes*) 14114 case $host in 14115 i?86-*-solaris*|x86_64-*-solaris*) 14116 LD="${LD-ld} -m elf_x86_64" 14117 ;; 14118 sparc*-*-solaris*) 14119 LD="${LD-ld} -m elf64_sparc" 14120 ;; 14121 esac 14122 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14123 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14124 LD=${LD-ld}_sol2 14125 fi 14126 ;; 14127 *) 14128 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14129 LD="${LD-ld} -64" 14130 fi 14131 ;; 14132 esac 14133 ;; 14134 esac 14135 fi 14136 rm -rf conftest* 14137 ;; 14138esac 14139 14140need_locks=$enable_libtool_lock 14141 14142if test -n "$ac_tool_prefix"; then 14143 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14144set dummy ${ac_tool_prefix}mt; ac_word=$2 14145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14146printf %s "checking for $ac_word... " >&6; } 14147if test ${ac_cv_prog_MANIFEST_TOOL+y} 14148then : 14149 printf %s "(cached) " >&6 14150else $as_nop 14151 if test -n "$MANIFEST_TOOL"; then 14152 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14153else 14154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14155for as_dir in $PATH 14156do 14157 IFS=$as_save_IFS 14158 case $as_dir in #((( 14159 '') as_dir=./ ;; 14160 */) ;; 14161 *) as_dir=$as_dir/ ;; 14162 esac 14163 for ac_exec_ext in '' $ac_executable_extensions; do 14164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14165 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14167 break 2 14168 fi 14169done 14170 done 14171IFS=$as_save_IFS 14172 14173fi 14174fi 14175MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14176if test -n "$MANIFEST_TOOL"; then 14177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14178printf "%s\n" "$MANIFEST_TOOL" >&6; } 14179else 14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14181printf "%s\n" "no" >&6; } 14182fi 14183 14184 14185fi 14186if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14187 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14188 # Extract the first word of "mt", so it can be a program name with args. 14189set dummy mt; ac_word=$2 14190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14191printf %s "checking for $ac_word... " >&6; } 14192if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14193then : 14194 printf %s "(cached) " >&6 14195else $as_nop 14196 if test -n "$ac_ct_MANIFEST_TOOL"; then 14197 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14198else 14199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14200for as_dir in $PATH 14201do 14202 IFS=$as_save_IFS 14203 case $as_dir in #((( 14204 '') as_dir=./ ;; 14205 */) ;; 14206 *) as_dir=$as_dir/ ;; 14207 esac 14208 for ac_exec_ext in '' $ac_executable_extensions; do 14209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14210 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14212 break 2 14213 fi 14214done 14215 done 14216IFS=$as_save_IFS 14217 14218fi 14219fi 14220ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14221if test -n "$ac_ct_MANIFEST_TOOL"; then 14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14223printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14224else 14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14226printf "%s\n" "no" >&6; } 14227fi 14228 14229 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14230 MANIFEST_TOOL=":" 14231 else 14232 case $cross_compiling:$ac_tool_warned in 14233yes:) 14234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14236ac_tool_warned=yes ;; 14237esac 14238 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14239 fi 14240else 14241 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14242fi 14243 14244test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14246printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14247if test ${lt_cv_path_mainfest_tool+y} 14248then : 14249 printf %s "(cached) " >&6 14250else $as_nop 14251 lt_cv_path_mainfest_tool=no 14252 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14253 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14254 cat conftest.err >&5 14255 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14256 lt_cv_path_mainfest_tool=yes 14257 fi 14258 rm -f conftest* 14259fi 14260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14261printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14262if test yes != "$lt_cv_path_mainfest_tool"; then 14263 MANIFEST_TOOL=: 14264fi 14265 14266 14267 14268 14269 14270 14271 case $host_os in 14272 rhapsody* | darwin*) 14273 if test -n "$ac_tool_prefix"; then 14274 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14275set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14277printf %s "checking for $ac_word... " >&6; } 14278if test ${ac_cv_prog_DSYMUTIL+y} 14279then : 14280 printf %s "(cached) " >&6 14281else $as_nop 14282 if test -n "$DSYMUTIL"; then 14283 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14284else 14285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14286for as_dir in $PATH 14287do 14288 IFS=$as_save_IFS 14289 case $as_dir in #((( 14290 '') as_dir=./ ;; 14291 */) ;; 14292 *) as_dir=$as_dir/ ;; 14293 esac 14294 for ac_exec_ext in '' $ac_executable_extensions; do 14295 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14296 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14298 break 2 14299 fi 14300done 14301 done 14302IFS=$as_save_IFS 14303 14304fi 14305fi 14306DSYMUTIL=$ac_cv_prog_DSYMUTIL 14307if test -n "$DSYMUTIL"; then 14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14309printf "%s\n" "$DSYMUTIL" >&6; } 14310else 14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14312printf "%s\n" "no" >&6; } 14313fi 14314 14315 14316fi 14317if test -z "$ac_cv_prog_DSYMUTIL"; then 14318 ac_ct_DSYMUTIL=$DSYMUTIL 14319 # Extract the first word of "dsymutil", so it can be a program name with args. 14320set dummy dsymutil; ac_word=$2 14321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14322printf %s "checking for $ac_word... " >&6; } 14323if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14324then : 14325 printf %s "(cached) " >&6 14326else $as_nop 14327 if test -n "$ac_ct_DSYMUTIL"; then 14328 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14329else 14330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14331for as_dir in $PATH 14332do 14333 IFS=$as_save_IFS 14334 case $as_dir in #((( 14335 '') as_dir=./ ;; 14336 */) ;; 14337 *) as_dir=$as_dir/ ;; 14338 esac 14339 for ac_exec_ext in '' $ac_executable_extensions; do 14340 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14341 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14343 break 2 14344 fi 14345done 14346 done 14347IFS=$as_save_IFS 14348 14349fi 14350fi 14351ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14352if test -n "$ac_ct_DSYMUTIL"; then 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14354printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14355else 14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14357printf "%s\n" "no" >&6; } 14358fi 14359 14360 if test "x$ac_ct_DSYMUTIL" = x; then 14361 DSYMUTIL=":" 14362 else 14363 case $cross_compiling:$ac_tool_warned in 14364yes:) 14365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14366printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14367ac_tool_warned=yes ;; 14368esac 14369 DSYMUTIL=$ac_ct_DSYMUTIL 14370 fi 14371else 14372 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14373fi 14374 14375 if test -n "$ac_tool_prefix"; then 14376 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14377set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14379printf %s "checking for $ac_word... " >&6; } 14380if test ${ac_cv_prog_NMEDIT+y} 14381then : 14382 printf %s "(cached) " >&6 14383else $as_nop 14384 if test -n "$NMEDIT"; then 14385 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14386else 14387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14388for as_dir in $PATH 14389do 14390 IFS=$as_save_IFS 14391 case $as_dir in #((( 14392 '') as_dir=./ ;; 14393 */) ;; 14394 *) as_dir=$as_dir/ ;; 14395 esac 14396 for ac_exec_ext in '' $ac_executable_extensions; do 14397 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14398 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14400 break 2 14401 fi 14402done 14403 done 14404IFS=$as_save_IFS 14405 14406fi 14407fi 14408NMEDIT=$ac_cv_prog_NMEDIT 14409if test -n "$NMEDIT"; then 14410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14411printf "%s\n" "$NMEDIT" >&6; } 14412else 14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14414printf "%s\n" "no" >&6; } 14415fi 14416 14417 14418fi 14419if test -z "$ac_cv_prog_NMEDIT"; then 14420 ac_ct_NMEDIT=$NMEDIT 14421 # Extract the first word of "nmedit", so it can be a program name with args. 14422set dummy nmedit; ac_word=$2 14423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14424printf %s "checking for $ac_word... " >&6; } 14425if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14426then : 14427 printf %s "(cached) " >&6 14428else $as_nop 14429 if test -n "$ac_ct_NMEDIT"; then 14430 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14431else 14432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14433for as_dir in $PATH 14434do 14435 IFS=$as_save_IFS 14436 case $as_dir in #((( 14437 '') as_dir=./ ;; 14438 */) ;; 14439 *) as_dir=$as_dir/ ;; 14440 esac 14441 for ac_exec_ext in '' $ac_executable_extensions; do 14442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14443 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14445 break 2 14446 fi 14447done 14448 done 14449IFS=$as_save_IFS 14450 14451fi 14452fi 14453ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14454if test -n "$ac_ct_NMEDIT"; then 14455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14456printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14457else 14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14459printf "%s\n" "no" >&6; } 14460fi 14461 14462 if test "x$ac_ct_NMEDIT" = x; then 14463 NMEDIT=":" 14464 else 14465 case $cross_compiling:$ac_tool_warned in 14466yes:) 14467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14468printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14469ac_tool_warned=yes ;; 14470esac 14471 NMEDIT=$ac_ct_NMEDIT 14472 fi 14473else 14474 NMEDIT="$ac_cv_prog_NMEDIT" 14475fi 14476 14477 if test -n "$ac_tool_prefix"; then 14478 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14479set dummy ${ac_tool_prefix}lipo; ac_word=$2 14480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14481printf %s "checking for $ac_word... " >&6; } 14482if test ${ac_cv_prog_LIPO+y} 14483then : 14484 printf %s "(cached) " >&6 14485else $as_nop 14486 if test -n "$LIPO"; then 14487 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14488else 14489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14490for as_dir in $PATH 14491do 14492 IFS=$as_save_IFS 14493 case $as_dir in #((( 14494 '') as_dir=./ ;; 14495 */) ;; 14496 *) as_dir=$as_dir/ ;; 14497 esac 14498 for ac_exec_ext in '' $ac_executable_extensions; do 14499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14500 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14502 break 2 14503 fi 14504done 14505 done 14506IFS=$as_save_IFS 14507 14508fi 14509fi 14510LIPO=$ac_cv_prog_LIPO 14511if test -n "$LIPO"; then 14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14513printf "%s\n" "$LIPO" >&6; } 14514else 14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14516printf "%s\n" "no" >&6; } 14517fi 14518 14519 14520fi 14521if test -z "$ac_cv_prog_LIPO"; then 14522 ac_ct_LIPO=$LIPO 14523 # Extract the first word of "lipo", so it can be a program name with args. 14524set dummy lipo; ac_word=$2 14525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14526printf %s "checking for $ac_word... " >&6; } 14527if test ${ac_cv_prog_ac_ct_LIPO+y} 14528then : 14529 printf %s "(cached) " >&6 14530else $as_nop 14531 if test -n "$ac_ct_LIPO"; then 14532 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14533else 14534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14535for as_dir in $PATH 14536do 14537 IFS=$as_save_IFS 14538 case $as_dir in #((( 14539 '') as_dir=./ ;; 14540 */) ;; 14541 *) as_dir=$as_dir/ ;; 14542 esac 14543 for ac_exec_ext in '' $ac_executable_extensions; do 14544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14545 ac_cv_prog_ac_ct_LIPO="lipo" 14546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14547 break 2 14548 fi 14549done 14550 done 14551IFS=$as_save_IFS 14552 14553fi 14554fi 14555ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14556if test -n "$ac_ct_LIPO"; then 14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14558printf "%s\n" "$ac_ct_LIPO" >&6; } 14559else 14560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14561printf "%s\n" "no" >&6; } 14562fi 14563 14564 if test "x$ac_ct_LIPO" = x; then 14565 LIPO=":" 14566 else 14567 case $cross_compiling:$ac_tool_warned in 14568yes:) 14569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14570printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14571ac_tool_warned=yes ;; 14572esac 14573 LIPO=$ac_ct_LIPO 14574 fi 14575else 14576 LIPO="$ac_cv_prog_LIPO" 14577fi 14578 14579 if test -n "$ac_tool_prefix"; then 14580 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14581set dummy ${ac_tool_prefix}otool; ac_word=$2 14582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14583printf %s "checking for $ac_word... " >&6; } 14584if test ${ac_cv_prog_OTOOL+y} 14585then : 14586 printf %s "(cached) " >&6 14587else $as_nop 14588 if test -n "$OTOOL"; then 14589 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14590else 14591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14592for as_dir in $PATH 14593do 14594 IFS=$as_save_IFS 14595 case $as_dir in #((( 14596 '') as_dir=./ ;; 14597 */) ;; 14598 *) as_dir=$as_dir/ ;; 14599 esac 14600 for ac_exec_ext in '' $ac_executable_extensions; do 14601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14602 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14604 break 2 14605 fi 14606done 14607 done 14608IFS=$as_save_IFS 14609 14610fi 14611fi 14612OTOOL=$ac_cv_prog_OTOOL 14613if test -n "$OTOOL"; then 14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14615printf "%s\n" "$OTOOL" >&6; } 14616else 14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14618printf "%s\n" "no" >&6; } 14619fi 14620 14621 14622fi 14623if test -z "$ac_cv_prog_OTOOL"; then 14624 ac_ct_OTOOL=$OTOOL 14625 # Extract the first word of "otool", so it can be a program name with args. 14626set dummy otool; ac_word=$2 14627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14628printf %s "checking for $ac_word... " >&6; } 14629if test ${ac_cv_prog_ac_ct_OTOOL+y} 14630then : 14631 printf %s "(cached) " >&6 14632else $as_nop 14633 if test -n "$ac_ct_OTOOL"; then 14634 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14635else 14636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14637for as_dir in $PATH 14638do 14639 IFS=$as_save_IFS 14640 case $as_dir in #((( 14641 '') as_dir=./ ;; 14642 */) ;; 14643 *) as_dir=$as_dir/ ;; 14644 esac 14645 for ac_exec_ext in '' $ac_executable_extensions; do 14646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14647 ac_cv_prog_ac_ct_OTOOL="otool" 14648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14649 break 2 14650 fi 14651done 14652 done 14653IFS=$as_save_IFS 14654 14655fi 14656fi 14657ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14658if test -n "$ac_ct_OTOOL"; then 14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14660printf "%s\n" "$ac_ct_OTOOL" >&6; } 14661else 14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14663printf "%s\n" "no" >&6; } 14664fi 14665 14666 if test "x$ac_ct_OTOOL" = x; then 14667 OTOOL=":" 14668 else 14669 case $cross_compiling:$ac_tool_warned in 14670yes:) 14671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14672printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14673ac_tool_warned=yes ;; 14674esac 14675 OTOOL=$ac_ct_OTOOL 14676 fi 14677else 14678 OTOOL="$ac_cv_prog_OTOOL" 14679fi 14680 14681 if test -n "$ac_tool_prefix"; then 14682 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14683set dummy ${ac_tool_prefix}otool64; ac_word=$2 14684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14685printf %s "checking for $ac_word... " >&6; } 14686if test ${ac_cv_prog_OTOOL64+y} 14687then : 14688 printf %s "(cached) " >&6 14689else $as_nop 14690 if test -n "$OTOOL64"; then 14691 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14692else 14693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14694for as_dir in $PATH 14695do 14696 IFS=$as_save_IFS 14697 case $as_dir in #((( 14698 '') as_dir=./ ;; 14699 */) ;; 14700 *) as_dir=$as_dir/ ;; 14701 esac 14702 for ac_exec_ext in '' $ac_executable_extensions; do 14703 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14704 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14706 break 2 14707 fi 14708done 14709 done 14710IFS=$as_save_IFS 14711 14712fi 14713fi 14714OTOOL64=$ac_cv_prog_OTOOL64 14715if test -n "$OTOOL64"; then 14716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14717printf "%s\n" "$OTOOL64" >&6; } 14718else 14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14720printf "%s\n" "no" >&6; } 14721fi 14722 14723 14724fi 14725if test -z "$ac_cv_prog_OTOOL64"; then 14726 ac_ct_OTOOL64=$OTOOL64 14727 # Extract the first word of "otool64", so it can be a program name with args. 14728set dummy otool64; ac_word=$2 14729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14730printf %s "checking for $ac_word... " >&6; } 14731if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14732then : 14733 printf %s "(cached) " >&6 14734else $as_nop 14735 if test -n "$ac_ct_OTOOL64"; then 14736 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14737else 14738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14739for as_dir in $PATH 14740do 14741 IFS=$as_save_IFS 14742 case $as_dir in #((( 14743 '') as_dir=./ ;; 14744 */) ;; 14745 *) as_dir=$as_dir/ ;; 14746 esac 14747 for ac_exec_ext in '' $ac_executable_extensions; do 14748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14749 ac_cv_prog_ac_ct_OTOOL64="otool64" 14750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14751 break 2 14752 fi 14753done 14754 done 14755IFS=$as_save_IFS 14756 14757fi 14758fi 14759ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14760if test -n "$ac_ct_OTOOL64"; then 14761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14762printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14763else 14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14765printf "%s\n" "no" >&6; } 14766fi 14767 14768 if test "x$ac_ct_OTOOL64" = x; then 14769 OTOOL64=":" 14770 else 14771 case $cross_compiling:$ac_tool_warned in 14772yes:) 14773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14774printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14775ac_tool_warned=yes ;; 14776esac 14777 OTOOL64=$ac_ct_OTOOL64 14778 fi 14779else 14780 OTOOL64="$ac_cv_prog_OTOOL64" 14781fi 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14810printf %s "checking for -single_module linker flag... " >&6; } 14811if test ${lt_cv_apple_cc_single_mod+y} 14812then : 14813 printf %s "(cached) " >&6 14814else $as_nop 14815 lt_cv_apple_cc_single_mod=no 14816 if test -z "$LT_MULTI_MODULE"; then 14817 # By default we will add the -single_module flag. You can override 14818 # by either setting the environment variable LT_MULTI_MODULE 14819 # non-empty at configure time, or by adding -multi_module to the 14820 # link flags. 14821 rm -rf libconftest.dylib* 14822 echo "int foo(void){return 1;}" > conftest.c 14823 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14824-dynamiclib -Wl,-single_module conftest.c" >&5 14825 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14826 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14827 _lt_result=$? 14828 # If there is a non-empty error log, and "single_module" 14829 # appears in it, assume the flag caused a linker warning 14830 if test -s conftest.err && $GREP single_module conftest.err; then 14831 cat conftest.err >&5 14832 # Otherwise, if the output was created with a 0 exit code from 14833 # the compiler, it worked. 14834 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14835 lt_cv_apple_cc_single_mod=yes 14836 else 14837 cat conftest.err >&5 14838 fi 14839 rm -rf libconftest.dylib* 14840 rm -f conftest.* 14841 fi 14842fi 14843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14844printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14845 14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14847printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14848if test ${lt_cv_ld_exported_symbols_list+y} 14849then : 14850 printf %s "(cached) " >&6 14851else $as_nop 14852 lt_cv_ld_exported_symbols_list=no 14853 save_LDFLAGS=$LDFLAGS 14854 echo "_main" > conftest.sym 14855 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14857/* end confdefs.h. */ 14858 14859int 14860main (void) 14861{ 14862 14863 ; 14864 return 0; 14865} 14866_ACEOF 14867if ac_fn_c_try_link "$LINENO" 14868then : 14869 lt_cv_ld_exported_symbols_list=yes 14870else $as_nop 14871 lt_cv_ld_exported_symbols_list=no 14872fi 14873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14874 conftest$ac_exeext conftest.$ac_ext 14875 LDFLAGS=$save_LDFLAGS 14876 14877fi 14878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14879printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14880 14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14882printf %s "checking for -force_load linker flag... " >&6; } 14883if test ${lt_cv_ld_force_load+y} 14884then : 14885 printf %s "(cached) " >&6 14886else $as_nop 14887 lt_cv_ld_force_load=no 14888 cat > conftest.c << _LT_EOF 14889int forced_loaded() { return 2;} 14890_LT_EOF 14891 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14892 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14893 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14894 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14895 echo "$RANLIB libconftest.a" >&5 14896 $RANLIB libconftest.a 2>&5 14897 cat > conftest.c << _LT_EOF 14898int main() { return 0;} 14899_LT_EOF 14900 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14901 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14902 _lt_result=$? 14903 if test -s conftest.err && $GREP force_load conftest.err; then 14904 cat conftest.err >&5 14905 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14906 lt_cv_ld_force_load=yes 14907 else 14908 cat conftest.err >&5 14909 fi 14910 rm -f conftest.err libconftest.a conftest conftest.c 14911 rm -rf conftest.dSYM 14912 14913fi 14914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14915printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14916 case $host_os in 14917 rhapsody* | darwin1.[012]) 14918 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14919 darwin1.*) 14920 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14921 darwin*) 14922 case $MACOSX_DEPLOYMENT_TARGET,$host in 14923 10.[012],*|,*powerpc*-darwin[5-8]*) 14924 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14925 *) 14926 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14927 esac 14928 ;; 14929 esac 14930 if test yes = "$lt_cv_apple_cc_single_mod"; then 14931 _lt_dar_single_mod='$single_module' 14932 fi 14933 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14934 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14935 else 14936 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14937 fi 14938 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14939 _lt_dsymutil='~$DSYMUTIL $lib || :' 14940 else 14941 _lt_dsymutil= 14942 fi 14943 ;; 14944 esac 14945 14946# func_munge_path_list VARIABLE PATH 14947# ----------------------------------- 14948# VARIABLE is name of variable containing _space_ separated list of 14949# directories to be munged by the contents of PATH, which is string 14950# having a format: 14951# "DIR[:DIR]:" 14952# string "DIR[ DIR]" will be prepended to VARIABLE 14953# ":DIR[:DIR]" 14954# string "DIR[ DIR]" will be appended to VARIABLE 14955# "DIRP[:DIRP]::[DIRA:]DIRA" 14956# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14957# "DIRA[ DIRA]" will be appended to VARIABLE 14958# "DIR[:DIR]" 14959# VARIABLE will be replaced by "DIR[ DIR]" 14960func_munge_path_list () 14961{ 14962 case x$2 in 14963 x) 14964 ;; 14965 *:) 14966 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14967 ;; 14968 x:*) 14969 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14970 ;; 14971 *::*) 14972 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14973 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14974 ;; 14975 *) 14976 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14977 ;; 14978 esac 14979} 14980 14981ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14982" 14983if test "x$ac_cv_header_dlfcn_h" = xyes 14984then : 14985 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 14986 14987fi 14988 14989 14990 14991 14992 14993# Set options 14994 14995 14996 14997 enable_dlopen=no 14998 14999 15000 enable_win32_dll=no 15001 15002 15003 # Check whether --enable-shared was given. 15004if test ${enable_shared+y} 15005then : 15006 enableval=$enable_shared; p=${PACKAGE-default} 15007 case $enableval in 15008 yes) enable_shared=yes ;; 15009 no) enable_shared=no ;; 15010 *) 15011 enable_shared=no 15012 # Look at the argument we got. We use all the common list separators. 15013 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15014 for pkg in $enableval; do 15015 IFS=$lt_save_ifs 15016 if test "X$pkg" = "X$p"; then 15017 enable_shared=yes 15018 fi 15019 done 15020 IFS=$lt_save_ifs 15021 ;; 15022 esac 15023else $as_nop 15024 enable_shared=yes 15025fi 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037# Check whether --with-pic was given. 15038if test ${with_pic+y} 15039then : 15040 withval=$with_pic; lt_p=${PACKAGE-default} 15041 case $withval in 15042 yes|no) pic_mode=$withval ;; 15043 *) 15044 pic_mode=default 15045 # Look at the argument we got. We use all the common list separators. 15046 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15047 for lt_pkg in $withval; do 15048 IFS=$lt_save_ifs 15049 if test "X$lt_pkg" = "X$lt_p"; then 15050 pic_mode=yes 15051 fi 15052 done 15053 IFS=$lt_save_ifs 15054 ;; 15055 esac 15056else $as_nop 15057 pic_mode=default 15058fi 15059 15060 15061 15062 15063 15064 15065 15066 15067 # Check whether --enable-fast-install was given. 15068if test ${enable_fast_install+y} 15069then : 15070 enableval=$enable_fast_install; p=${PACKAGE-default} 15071 case $enableval in 15072 yes) enable_fast_install=yes ;; 15073 no) enable_fast_install=no ;; 15074 *) 15075 enable_fast_install=no 15076 # Look at the argument we got. We use all the common list separators. 15077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15078 for pkg in $enableval; do 15079 IFS=$lt_save_ifs 15080 if test "X$pkg" = "X$p"; then 15081 enable_fast_install=yes 15082 fi 15083 done 15084 IFS=$lt_save_ifs 15085 ;; 15086 esac 15087else $as_nop 15088 enable_fast_install=yes 15089fi 15090 15091 15092 15093 15094 15095 15096 15097 15098 shared_archive_member_spec= 15099case $host,$enable_shared in 15100power*-*-aix[5-9]*,yes) 15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15102printf %s "checking which variant of shared library versioning to provide... " >&6; } 15103 15104# Check whether --with-aix-soname was given. 15105if test ${with_aix_soname+y} 15106then : 15107 withval=$with_aix_soname; case $withval in 15108 aix|svr4|both) 15109 ;; 15110 *) 15111 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15112 ;; 15113 esac 15114 lt_cv_with_aix_soname=$with_aix_soname 15115else $as_nop 15116 if test ${lt_cv_with_aix_soname+y} 15117then : 15118 printf %s "(cached) " >&6 15119else $as_nop 15120 lt_cv_with_aix_soname=aix 15121fi 15122 15123 with_aix_soname=$lt_cv_with_aix_soname 15124fi 15125 15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15127printf "%s\n" "$with_aix_soname" >&6; } 15128 if test aix != "$with_aix_soname"; then 15129 # For the AIX way of multilib, we name the shared archive member 15130 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15131 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15132 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15133 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15134 if test 64 = "${OBJECT_MODE-32}"; then 15135 shared_archive_member_spec=shr_64 15136 else 15137 shared_archive_member_spec=shr 15138 fi 15139 fi 15140 ;; 15141*) 15142 with_aix_soname=aix 15143 ;; 15144esac 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155# This can be used to rebuild libtool when needed 15156LIBTOOL_DEPS=$ltmain 15157 15158# Always use our own libtool. 15159LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190test -z "$LN_S" && LN_S="ln -s" 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205if test -n "${ZSH_VERSION+set}"; then 15206 setopt NO_GLOB_SUBST 15207fi 15208 15209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15210printf %s "checking for objdir... " >&6; } 15211if test ${lt_cv_objdir+y} 15212then : 15213 printf %s "(cached) " >&6 15214else $as_nop 15215 rm -f .libs 2>/dev/null 15216mkdir .libs 2>/dev/null 15217if test -d .libs; then 15218 lt_cv_objdir=.libs 15219else 15220 # MS-DOS does not allow filenames that begin with a dot. 15221 lt_cv_objdir=_libs 15222fi 15223rmdir .libs 2>/dev/null 15224fi 15225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15226printf "%s\n" "$lt_cv_objdir" >&6; } 15227objdir=$lt_cv_objdir 15228 15229 15230 15231 15232 15233printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15234 15235 15236 15237 15238case $host_os in 15239aix3*) 15240 # AIX sometimes has problems with the GCC collect2 program. For some 15241 # reason, if we set the COLLECT_NAMES environment variable, the problems 15242 # vanish in a puff of smoke. 15243 if test set != "${COLLECT_NAMES+set}"; then 15244 COLLECT_NAMES= 15245 export COLLECT_NAMES 15246 fi 15247 ;; 15248esac 15249 15250# Global variables: 15251ofile=libtool 15252can_build_shared=yes 15253 15254# All known linkers require a '.a' archive for static linking (except MSVC and 15255# ICC, which need '.lib'). 15256libext=a 15257 15258with_gnu_ld=$lt_cv_prog_gnu_ld 15259 15260old_CC=$CC 15261old_CFLAGS=$CFLAGS 15262 15263# Set sane defaults for various variables 15264test -z "$CC" && CC=cc 15265test -z "$LTCC" && LTCC=$CC 15266test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15267test -z "$LD" && LD=ld 15268test -z "$ac_objext" && ac_objext=o 15269 15270func_cc_basename $compiler 15271cc_basename=$func_cc_basename_result 15272 15273 15274# Only perform the check for file, if the check method requires it 15275test -z "$MAGIC_CMD" && MAGIC_CMD=file 15276case $deplibs_check_method in 15277file_magic*) 15278 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15280printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15281if test ${lt_cv_path_MAGIC_CMD+y} 15282then : 15283 printf %s "(cached) " >&6 15284else $as_nop 15285 case $MAGIC_CMD in 15286[\\/*] | ?:[\\/]*) 15287 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15288 ;; 15289*) 15290 lt_save_MAGIC_CMD=$MAGIC_CMD 15291 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15293 for ac_dir in $ac_dummy; do 15294 IFS=$lt_save_ifs 15295 test -z "$ac_dir" && ac_dir=. 15296 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15297 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15298 if test -n "$file_magic_test_file"; then 15299 case $deplibs_check_method in 15300 "file_magic "*) 15301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15302 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15304 $EGREP "$file_magic_regex" > /dev/null; then 15305 : 15306 else 15307 cat <<_LT_EOF 1>&2 15308 15309*** Warning: the command libtool uses to detect shared libraries, 15310*** $file_magic_cmd, produces output that libtool cannot recognize. 15311*** The result is that libtool may fail to recognize shared libraries 15312*** as such. This will affect the creation of libtool libraries that 15313*** depend on shared libraries, but programs linked with such libtool 15314*** libraries will work regardless of this problem. Nevertheless, you 15315*** may want to report the problem to your system manager and/or to 15316*** bug-libtool@gnu.org 15317 15318_LT_EOF 15319 fi ;; 15320 esac 15321 fi 15322 break 15323 fi 15324 done 15325 IFS=$lt_save_ifs 15326 MAGIC_CMD=$lt_save_MAGIC_CMD 15327 ;; 15328esac 15329fi 15330 15331MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15332if test -n "$MAGIC_CMD"; then 15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15334printf "%s\n" "$MAGIC_CMD" >&6; } 15335else 15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15337printf "%s\n" "no" >&6; } 15338fi 15339 15340 15341 15342 15343 15344if test -z "$lt_cv_path_MAGIC_CMD"; then 15345 if test -n "$ac_tool_prefix"; then 15346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15347printf %s "checking for file... " >&6; } 15348if test ${lt_cv_path_MAGIC_CMD+y} 15349then : 15350 printf %s "(cached) " >&6 15351else $as_nop 15352 case $MAGIC_CMD in 15353[\\/*] | ?:[\\/]*) 15354 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15355 ;; 15356*) 15357 lt_save_MAGIC_CMD=$MAGIC_CMD 15358 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15359 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15360 for ac_dir in $ac_dummy; do 15361 IFS=$lt_save_ifs 15362 test -z "$ac_dir" && ac_dir=. 15363 if test -f "$ac_dir/file"; then 15364 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15365 if test -n "$file_magic_test_file"; then 15366 case $deplibs_check_method in 15367 "file_magic "*) 15368 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15369 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15370 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15371 $EGREP "$file_magic_regex" > /dev/null; then 15372 : 15373 else 15374 cat <<_LT_EOF 1>&2 15375 15376*** Warning: the command libtool uses to detect shared libraries, 15377*** $file_magic_cmd, produces output that libtool cannot recognize. 15378*** The result is that libtool may fail to recognize shared libraries 15379*** as such. This will affect the creation of libtool libraries that 15380*** depend on shared libraries, but programs linked with such libtool 15381*** libraries will work regardless of this problem. Nevertheless, you 15382*** may want to report the problem to your system manager and/or to 15383*** bug-libtool@gnu.org 15384 15385_LT_EOF 15386 fi ;; 15387 esac 15388 fi 15389 break 15390 fi 15391 done 15392 IFS=$lt_save_ifs 15393 MAGIC_CMD=$lt_save_MAGIC_CMD 15394 ;; 15395esac 15396fi 15397 15398MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15399if test -n "$MAGIC_CMD"; then 15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15401printf "%s\n" "$MAGIC_CMD" >&6; } 15402else 15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15404printf "%s\n" "no" >&6; } 15405fi 15406 15407 15408 else 15409 MAGIC_CMD=: 15410 fi 15411fi 15412 15413 fi 15414 ;; 15415esac 15416 15417# Use C for the default configuration in the libtool script 15418 15419lt_save_CC=$CC 15420ac_ext=c 15421ac_cpp='$CPP $CPPFLAGS' 15422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15424ac_compiler_gnu=$ac_cv_c_compiler_gnu 15425 15426 15427# Source file extension for C test sources. 15428ac_ext=c 15429 15430# Object file extension for compiled C test sources. 15431objext=o 15432objext=$objext 15433 15434# Code to be used in simple compile tests 15435lt_simple_compile_test_code="int some_variable = 0;" 15436 15437# Code to be used in simple link tests 15438lt_simple_link_test_code='int main(){return(0);}' 15439 15440 15441 15442 15443 15444 15445 15446# If no C compiler was specified, use CC. 15447LTCC=${LTCC-"$CC"} 15448 15449# If no C compiler flags were specified, use CFLAGS. 15450LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15451 15452# Allow CC to be a program name with arguments. 15453compiler=$CC 15454 15455# Save the default compiler, since it gets overwritten when the other 15456# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15457compiler_DEFAULT=$CC 15458 15459# save warnings/boilerplate of simple test code 15460ac_outfile=conftest.$ac_objext 15461echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15462eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15463_lt_compiler_boilerplate=`cat conftest.err` 15464$RM conftest* 15465 15466ac_outfile=conftest.$ac_objext 15467echo "$lt_simple_link_test_code" >conftest.$ac_ext 15468eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15469_lt_linker_boilerplate=`cat conftest.err` 15470$RM -r conftest* 15471 15472 15473if test -n "$compiler"; then 15474 15475lt_prog_compiler_no_builtin_flag= 15476 15477if test yes = "$GCC"; then 15478 case $cc_basename in 15479 nvcc*) 15480 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15481 *) 15482 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15483 esac 15484 15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15486printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15487if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15488then : 15489 printf %s "(cached) " >&6 15490else $as_nop 15491 lt_cv_prog_compiler_rtti_exceptions=no 15492 ac_outfile=conftest.$ac_objext 15493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15494 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15495 # Insert the option either (1) after the last *FLAGS variable, or 15496 # (2) before a word containing "conftest.", or (3) at the end. 15497 # Note that $ac_compile itself does not contain backslashes and begins 15498 # with a dollar sign (not a hyphen), so the echo should work correctly. 15499 # The option is referenced via a variable to avoid confusing sed. 15500 lt_compile=`echo "$ac_compile" | $SED \ 15501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15503 -e 's:$: $lt_compiler_flag:'` 15504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15505 (eval "$lt_compile" 2>conftest.err) 15506 ac_status=$? 15507 cat conftest.err >&5 15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15509 if (exit $ac_status) && test -s "$ac_outfile"; then 15510 # The compiler can only warn and ignore the option if not recognized 15511 # So say no if there are warnings other than the usual output. 15512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15515 lt_cv_prog_compiler_rtti_exceptions=yes 15516 fi 15517 fi 15518 $RM conftest* 15519 15520fi 15521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15522printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15523 15524if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15526else 15527 : 15528fi 15529 15530fi 15531 15532 15533 15534 15535 15536 15537 lt_prog_compiler_wl= 15538lt_prog_compiler_pic= 15539lt_prog_compiler_static= 15540 15541 15542 if test yes = "$GCC"; then 15543 lt_prog_compiler_wl='-Wl,' 15544 lt_prog_compiler_static='-static' 15545 15546 case $host_os in 15547 aix*) 15548 # All AIX code is PIC. 15549 if test ia64 = "$host_cpu"; then 15550 # AIX 5 now supports IA64 processor 15551 lt_prog_compiler_static='-Bstatic' 15552 fi 15553 lt_prog_compiler_pic='-fPIC' 15554 ;; 15555 15556 amigaos*) 15557 case $host_cpu in 15558 powerpc) 15559 # see comment about AmigaOS4 .so support 15560 lt_prog_compiler_pic='-fPIC' 15561 ;; 15562 m68k) 15563 # FIXME: we need at least 68020 code to build shared libraries, but 15564 # adding the '-m68020' flag to GCC prevents building anything better, 15565 # like '-m68040'. 15566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15567 ;; 15568 esac 15569 ;; 15570 15571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15572 # PIC is the default for these OSes. 15573 ;; 15574 15575 mingw* | cygwin* | pw32* | os2* | cegcc*) 15576 # This hack is so that the source file can tell whether it is being 15577 # built for inclusion in a dll (and should export symbols for example). 15578 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15579 # (--disable-auto-import) libraries 15580 lt_prog_compiler_pic='-DDLL_EXPORT' 15581 case $host_os in 15582 os2*) 15583 lt_prog_compiler_static='$wl-static' 15584 ;; 15585 esac 15586 ;; 15587 15588 darwin* | rhapsody*) 15589 # PIC is the default on this platform 15590 # Common symbols not allowed in MH_DYLIB files 15591 lt_prog_compiler_pic='-fno-common' 15592 ;; 15593 15594 haiku*) 15595 # PIC is the default for Haiku. 15596 # The "-static" flag exists, but is broken. 15597 lt_prog_compiler_static= 15598 ;; 15599 15600 hpux*) 15601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15603 # sets the default TLS model and affects inlining. 15604 case $host_cpu in 15605 hppa*64*) 15606 # +Z the default 15607 ;; 15608 *) 15609 lt_prog_compiler_pic='-fPIC' 15610 ;; 15611 esac 15612 ;; 15613 15614 interix[3-9]*) 15615 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15616 # Instead, we relocate shared libraries at runtime. 15617 ;; 15618 15619 msdosdjgpp*) 15620 # Just because we use GCC doesn't mean we suddenly get shared libraries 15621 # on systems that don't support them. 15622 lt_prog_compiler_can_build_shared=no 15623 enable_shared=no 15624 ;; 15625 15626 *nto* | *qnx*) 15627 # QNX uses GNU C++, but need to define -shared option too, otherwise 15628 # it will coredump. 15629 lt_prog_compiler_pic='-fPIC -shared' 15630 ;; 15631 15632 sysv4*MP*) 15633 if test -d /usr/nec; then 15634 lt_prog_compiler_pic=-Kconform_pic 15635 fi 15636 ;; 15637 15638 *) 15639 lt_prog_compiler_pic='-fPIC' 15640 ;; 15641 esac 15642 15643 case $cc_basename in 15644 nvcc*) # Cuda Compiler Driver 2.2 15645 lt_prog_compiler_wl='-Xlinker ' 15646 if test -n "$lt_prog_compiler_pic"; then 15647 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15648 fi 15649 ;; 15650 esac 15651 else 15652 # PORTME Check for flag to pass linker flags through the system compiler. 15653 case $host_os in 15654 aix*) 15655 lt_prog_compiler_wl='-Wl,' 15656 if test ia64 = "$host_cpu"; then 15657 # AIX 5 now supports IA64 processor 15658 lt_prog_compiler_static='-Bstatic' 15659 else 15660 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15661 fi 15662 ;; 15663 15664 darwin* | rhapsody*) 15665 # PIC is the default on this platform 15666 # Common symbols not allowed in MH_DYLIB files 15667 lt_prog_compiler_pic='-fno-common' 15668 case $cc_basename in 15669 nagfor*) 15670 # NAG Fortran compiler 15671 lt_prog_compiler_wl='-Wl,-Wl,,' 15672 lt_prog_compiler_pic='-PIC' 15673 lt_prog_compiler_static='-Bstatic' 15674 ;; 15675 esac 15676 ;; 15677 15678 mingw* | cygwin* | pw32* | os2* | cegcc*) 15679 # This hack is so that the source file can tell whether it is being 15680 # built for inclusion in a dll (and should export symbols for example). 15681 lt_prog_compiler_pic='-DDLL_EXPORT' 15682 case $host_os in 15683 os2*) 15684 lt_prog_compiler_static='$wl-static' 15685 ;; 15686 esac 15687 ;; 15688 15689 hpux9* | hpux10* | hpux11*) 15690 lt_prog_compiler_wl='-Wl,' 15691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15692 # not for PA HP-UX. 15693 case $host_cpu in 15694 hppa*64*|ia64*) 15695 # +Z the default 15696 ;; 15697 *) 15698 lt_prog_compiler_pic='+Z' 15699 ;; 15700 esac 15701 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15702 lt_prog_compiler_static='$wl-a ${wl}archive' 15703 ;; 15704 15705 irix5* | irix6* | nonstopux*) 15706 lt_prog_compiler_wl='-Wl,' 15707 # PIC (with -KPIC) is the default. 15708 lt_prog_compiler_static='-non_shared' 15709 ;; 15710 15711 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15712 case $cc_basename in 15713 # old Intel for x86_64, which still supported -KPIC. 15714 ecc*) 15715 lt_prog_compiler_wl='-Wl,' 15716 lt_prog_compiler_pic='-KPIC' 15717 lt_prog_compiler_static='-static' 15718 ;; 15719 # icc used to be incompatible with GCC. 15720 # ICC 10 doesn't accept -KPIC any more. 15721 icc* | ifort*) 15722 lt_prog_compiler_wl='-Wl,' 15723 lt_prog_compiler_pic='-fPIC' 15724 lt_prog_compiler_static='-static' 15725 ;; 15726 # Lahey Fortran 8.1. 15727 lf95*) 15728 lt_prog_compiler_wl='-Wl,' 15729 lt_prog_compiler_pic='--shared' 15730 lt_prog_compiler_static='--static' 15731 ;; 15732 nagfor*) 15733 # NAG Fortran compiler 15734 lt_prog_compiler_wl='-Wl,-Wl,,' 15735 lt_prog_compiler_pic='-PIC' 15736 lt_prog_compiler_static='-Bstatic' 15737 ;; 15738 tcc*) 15739 # Fabrice Bellard et al's Tiny C Compiler 15740 lt_prog_compiler_wl='-Wl,' 15741 lt_prog_compiler_pic='-fPIC' 15742 lt_prog_compiler_static='-static' 15743 ;; 15744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15745 # Portland Group compilers (*not* the Pentium gcc compiler, 15746 # which looks to be a dead project) 15747 lt_prog_compiler_wl='-Wl,' 15748 lt_prog_compiler_pic='-fpic' 15749 lt_prog_compiler_static='-Bstatic' 15750 ;; 15751 ccc*) 15752 lt_prog_compiler_wl='-Wl,' 15753 # All Alpha code is PIC. 15754 lt_prog_compiler_static='-non_shared' 15755 ;; 15756 xl* | bgxl* | bgf* | mpixl*) 15757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15758 lt_prog_compiler_wl='-Wl,' 15759 lt_prog_compiler_pic='-qpic' 15760 lt_prog_compiler_static='-qstaticlink' 15761 ;; 15762 *) 15763 case `$CC -V 2>&1 | $SED 5q` in 15764 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15765 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15766 lt_prog_compiler_pic='-KPIC' 15767 lt_prog_compiler_static='-Bstatic' 15768 lt_prog_compiler_wl='' 15769 ;; 15770 *Sun\ F* | *Sun*Fortran*) 15771 lt_prog_compiler_pic='-KPIC' 15772 lt_prog_compiler_static='-Bstatic' 15773 lt_prog_compiler_wl='-Qoption ld ' 15774 ;; 15775 *Sun\ C*) 15776 # Sun C 5.9 15777 lt_prog_compiler_pic='-KPIC' 15778 lt_prog_compiler_static='-Bstatic' 15779 lt_prog_compiler_wl='-Wl,' 15780 ;; 15781 *Intel*\ [CF]*Compiler*) 15782 lt_prog_compiler_wl='-Wl,' 15783 lt_prog_compiler_pic='-fPIC' 15784 lt_prog_compiler_static='-static' 15785 ;; 15786 *Portland\ Group*) 15787 lt_prog_compiler_wl='-Wl,' 15788 lt_prog_compiler_pic='-fpic' 15789 lt_prog_compiler_static='-Bstatic' 15790 ;; 15791 esac 15792 ;; 15793 esac 15794 ;; 15795 15796 newsos6) 15797 lt_prog_compiler_pic='-KPIC' 15798 lt_prog_compiler_static='-Bstatic' 15799 ;; 15800 15801 *nto* | *qnx*) 15802 # QNX uses GNU C++, but need to define -shared option too, otherwise 15803 # it will coredump. 15804 lt_prog_compiler_pic='-fPIC -shared' 15805 ;; 15806 15807 osf3* | osf4* | osf5*) 15808 lt_prog_compiler_wl='-Wl,' 15809 # All OSF/1 code is PIC. 15810 lt_prog_compiler_static='-non_shared' 15811 ;; 15812 15813 rdos*) 15814 lt_prog_compiler_static='-non_shared' 15815 ;; 15816 15817 solaris*) 15818 lt_prog_compiler_pic='-KPIC' 15819 lt_prog_compiler_static='-Bstatic' 15820 case $cc_basename in 15821 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15822 lt_prog_compiler_wl='-Qoption ld ';; 15823 *) 15824 lt_prog_compiler_wl='-Wl,';; 15825 esac 15826 ;; 15827 15828 sunos4*) 15829 lt_prog_compiler_wl='-Qoption ld ' 15830 lt_prog_compiler_pic='-PIC' 15831 lt_prog_compiler_static='-Bstatic' 15832 ;; 15833 15834 sysv4 | sysv4.2uw2* | sysv4.3*) 15835 lt_prog_compiler_wl='-Wl,' 15836 lt_prog_compiler_pic='-KPIC' 15837 lt_prog_compiler_static='-Bstatic' 15838 ;; 15839 15840 sysv4*MP*) 15841 if test -d /usr/nec; then 15842 lt_prog_compiler_pic='-Kconform_pic' 15843 lt_prog_compiler_static='-Bstatic' 15844 fi 15845 ;; 15846 15847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15848 lt_prog_compiler_wl='-Wl,' 15849 lt_prog_compiler_pic='-KPIC' 15850 lt_prog_compiler_static='-Bstatic' 15851 ;; 15852 15853 unicos*) 15854 lt_prog_compiler_wl='-Wl,' 15855 lt_prog_compiler_can_build_shared=no 15856 ;; 15857 15858 uts4*) 15859 lt_prog_compiler_pic='-pic' 15860 lt_prog_compiler_static='-Bstatic' 15861 ;; 15862 15863 *) 15864 lt_prog_compiler_can_build_shared=no 15865 ;; 15866 esac 15867 fi 15868 15869case $host_os in 15870 # For platforms that do not support PIC, -DPIC is meaningless: 15871 *djgpp*) 15872 lt_prog_compiler_pic= 15873 ;; 15874 *) 15875 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15876 ;; 15877esac 15878 15879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15880printf %s "checking for $compiler option to produce PIC... " >&6; } 15881if test ${lt_cv_prog_compiler_pic+y} 15882then : 15883 printf %s "(cached) " >&6 15884else $as_nop 15885 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15886fi 15887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15888printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15889lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15890 15891# 15892# Check to make sure the PIC flag actually works. 15893# 15894if test -n "$lt_prog_compiler_pic"; then 15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15896printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15897if test ${lt_cv_prog_compiler_pic_works+y} 15898then : 15899 printf %s "(cached) " >&6 15900else $as_nop 15901 lt_cv_prog_compiler_pic_works=no 15902 ac_outfile=conftest.$ac_objext 15903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15905 # Insert the option either (1) after the last *FLAGS variable, or 15906 # (2) before a word containing "conftest.", or (3) at the end. 15907 # Note that $ac_compile itself does not contain backslashes and begins 15908 # with a dollar sign (not a hyphen), so the echo should work correctly. 15909 # The option is referenced via a variable to avoid confusing sed. 15910 lt_compile=`echo "$ac_compile" | $SED \ 15911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15913 -e 's:$: $lt_compiler_flag:'` 15914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15915 (eval "$lt_compile" 2>conftest.err) 15916 ac_status=$? 15917 cat conftest.err >&5 15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15919 if (exit $ac_status) && test -s "$ac_outfile"; then 15920 # The compiler can only warn and ignore the option if not recognized 15921 # So say no if there are warnings other than the usual output. 15922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15925 lt_cv_prog_compiler_pic_works=yes 15926 fi 15927 fi 15928 $RM conftest* 15929 15930fi 15931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15932printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15933 15934if test yes = "$lt_cv_prog_compiler_pic_works"; then 15935 case $lt_prog_compiler_pic in 15936 "" | " "*) ;; 15937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15938 esac 15939else 15940 lt_prog_compiler_pic= 15941 lt_prog_compiler_can_build_shared=no 15942fi 15943 15944fi 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956# 15957# Check to make sure the static flag actually works. 15958# 15959wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15961printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15962if test ${lt_cv_prog_compiler_static_works+y} 15963then : 15964 printf %s "(cached) " >&6 15965else $as_nop 15966 lt_cv_prog_compiler_static_works=no 15967 save_LDFLAGS=$LDFLAGS 15968 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15969 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15971 # The linker can only warn and ignore the option if not recognized 15972 # So say no if there are warnings 15973 if test -s conftest.err; then 15974 # Append any errors to the config.log. 15975 cat conftest.err 1>&5 15976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15978 if diff conftest.exp conftest.er2 >/dev/null; then 15979 lt_cv_prog_compiler_static_works=yes 15980 fi 15981 else 15982 lt_cv_prog_compiler_static_works=yes 15983 fi 15984 fi 15985 $RM -r conftest* 15986 LDFLAGS=$save_LDFLAGS 15987 15988fi 15989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15990printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 15991 15992if test yes = "$lt_cv_prog_compiler_static_works"; then 15993 : 15994else 15995 lt_prog_compiler_static= 15996fi 15997 15998 15999 16000 16001 16002 16003 16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16005printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16006if test ${lt_cv_prog_compiler_c_o+y} 16007then : 16008 printf %s "(cached) " >&6 16009else $as_nop 16010 lt_cv_prog_compiler_c_o=no 16011 $RM -r conftest 2>/dev/null 16012 mkdir conftest 16013 cd conftest 16014 mkdir out 16015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16016 16017 lt_compiler_flag="-o out/conftest2.$ac_objext" 16018 # Insert the option either (1) after the last *FLAGS variable, or 16019 # (2) before a word containing "conftest.", or (3) at the end. 16020 # Note that $ac_compile itself does not contain backslashes and begins 16021 # with a dollar sign (not a hyphen), so the echo should work correctly. 16022 lt_compile=`echo "$ac_compile" | $SED \ 16023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16025 -e 's:$: $lt_compiler_flag:'` 16026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16027 (eval "$lt_compile" 2>out/conftest.err) 16028 ac_status=$? 16029 cat out/conftest.err >&5 16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16031 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16032 then 16033 # The compiler can only warn and ignore the option if not recognized 16034 # So say no if there are warnings 16035 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16036 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16037 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16038 lt_cv_prog_compiler_c_o=yes 16039 fi 16040 fi 16041 chmod u+w . 2>&5 16042 $RM conftest* 16043 # SGI C++ compiler will create directory out/ii_files/ for 16044 # template instantiation 16045 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16046 $RM out/* && rmdir out 16047 cd .. 16048 $RM -r conftest 16049 $RM conftest* 16050 16051fi 16052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16053printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16054 16055 16056 16057 16058 16059 16060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16061printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16062if test ${lt_cv_prog_compiler_c_o+y} 16063then : 16064 printf %s "(cached) " >&6 16065else $as_nop 16066 lt_cv_prog_compiler_c_o=no 16067 $RM -r conftest 2>/dev/null 16068 mkdir conftest 16069 cd conftest 16070 mkdir out 16071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16072 16073 lt_compiler_flag="-o out/conftest2.$ac_objext" 16074 # Insert the option either (1) after the last *FLAGS variable, or 16075 # (2) before a word containing "conftest.", or (3) at the end. 16076 # Note that $ac_compile itself does not contain backslashes and begins 16077 # with a dollar sign (not a hyphen), so the echo should work correctly. 16078 lt_compile=`echo "$ac_compile" | $SED \ 16079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16081 -e 's:$: $lt_compiler_flag:'` 16082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16083 (eval "$lt_compile" 2>out/conftest.err) 16084 ac_status=$? 16085 cat out/conftest.err >&5 16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16087 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16088 then 16089 # The compiler can only warn and ignore the option if not recognized 16090 # So say no if there are warnings 16091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16094 lt_cv_prog_compiler_c_o=yes 16095 fi 16096 fi 16097 chmod u+w . 2>&5 16098 $RM conftest* 16099 # SGI C++ compiler will create directory out/ii_files/ for 16100 # template instantiation 16101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16102 $RM out/* && rmdir out 16103 cd .. 16104 $RM -r conftest 16105 $RM conftest* 16106 16107fi 16108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16109printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16110 16111 16112 16113 16114hard_links=nottested 16115if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16116 # do not overwrite the value of need_locks provided by the user 16117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16118printf %s "checking if we can lock with hard links... " >&6; } 16119 hard_links=yes 16120 $RM conftest* 16121 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16122 touch conftest.a 16123 ln conftest.a conftest.b 2>&5 || hard_links=no 16124 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16126printf "%s\n" "$hard_links" >&6; } 16127 if test no = "$hard_links"; then 16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16129printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16130 need_locks=warn 16131 fi 16132else 16133 need_locks=no 16134fi 16135 16136 16137 16138 16139 16140 16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16142printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16143 16144 runpath_var= 16145 allow_undefined_flag= 16146 always_export_symbols=no 16147 archive_cmds= 16148 archive_expsym_cmds= 16149 compiler_needs_object=no 16150 enable_shared_with_static_runtimes=no 16151 export_dynamic_flag_spec= 16152 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16153 hardcode_automatic=no 16154 hardcode_direct=no 16155 hardcode_direct_absolute=no 16156 hardcode_libdir_flag_spec= 16157 hardcode_libdir_separator= 16158 hardcode_minus_L=no 16159 hardcode_shlibpath_var=unsupported 16160 inherit_rpath=no 16161 link_all_deplibs=unknown 16162 module_cmds= 16163 module_expsym_cmds= 16164 old_archive_from_new_cmds= 16165 old_archive_from_expsyms_cmds= 16166 thread_safe_flag_spec= 16167 whole_archive_flag_spec= 16168 # include_expsyms should be a list of space-separated symbols to be *always* 16169 # included in the symbol list 16170 include_expsyms= 16171 # exclude_expsyms can be an extended regexp of symbols to exclude 16172 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16173 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16174 # as well as any symbol that contains 'd'. 16175 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16176 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16177 # platforms (ab)use it in PIC code, but their linkers get confused if 16178 # the symbol is explicitly referenced. Since portable code cannot 16179 # rely on this symbol name, it's probably fine to never include it in 16180 # preloaded symbol tables. 16181 # Exclude shared library initialization/finalization symbols. 16182 extract_expsyms_cmds= 16183 16184 case $host_os in 16185 cygwin* | mingw* | pw32* | cegcc*) 16186 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16187 # When not using gcc, we currently assume that we are using 16188 # Microsoft Visual C++ or Intel C++ Compiler. 16189 if test yes != "$GCC"; then 16190 with_gnu_ld=no 16191 fi 16192 ;; 16193 interix*) 16194 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16195 with_gnu_ld=yes 16196 ;; 16197 openbsd* | bitrig*) 16198 with_gnu_ld=no 16199 ;; 16200 esac 16201 16202 ld_shlibs=yes 16203 16204 # On some targets, GNU ld is compatible enough with the native linker 16205 # that we're better off using the native interface for both. 16206 lt_use_gnu_ld_interface=no 16207 if test yes = "$with_gnu_ld"; then 16208 case $host_os in 16209 aix*) 16210 # The AIX port of GNU ld has always aspired to compatibility 16211 # with the native linker. However, as the warning in the GNU ld 16212 # block says, versions before 2.19.5* couldn't really create working 16213 # shared libraries, regardless of the interface used. 16214 case `$LD -v 2>&1` in 16215 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16216 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16217 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16218 *) 16219 lt_use_gnu_ld_interface=yes 16220 ;; 16221 esac 16222 ;; 16223 *) 16224 lt_use_gnu_ld_interface=yes 16225 ;; 16226 esac 16227 fi 16228 16229 if test yes = "$lt_use_gnu_ld_interface"; then 16230 # If archive_cmds runs LD, not CC, wlarc should be empty 16231 wlarc='$wl' 16232 16233 # Set some defaults for GNU ld with shared library support. These 16234 # are reset later if shared libraries are not supported. Putting them 16235 # here allows them to be overridden if necessary. 16236 runpath_var=LD_RUN_PATH 16237 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16238 export_dynamic_flag_spec='$wl--export-dynamic' 16239 # ancient GNU ld didn't support --whole-archive et. al. 16240 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16241 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16242 else 16243 whole_archive_flag_spec= 16244 fi 16245 supports_anon_versioning=no 16246 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16247 *GNU\ gold*) supports_anon_versioning=yes ;; 16248 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16249 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16250 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16251 *\ 2.11.*) ;; # other 2.11 versions 16252 *) supports_anon_versioning=yes ;; 16253 esac 16254 16255 # See if GNU ld supports shared libraries. 16256 case $host_os in 16257 aix[3-9]*) 16258 # On AIX/PPC, the GNU linker is very broken 16259 if test ia64 != "$host_cpu"; then 16260 ld_shlibs=no 16261 cat <<_LT_EOF 1>&2 16262 16263*** Warning: the GNU linker, at least up to release 2.19, is reported 16264*** to be unable to reliably create shared libraries on AIX. 16265*** Therefore, libtool is disabling shared libraries support. If you 16266*** really care for shared libraries, you may want to install binutils 16267*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16268*** You will then need to restart the configuration process. 16269 16270_LT_EOF 16271 fi 16272 ;; 16273 16274 amigaos*) 16275 case $host_cpu in 16276 powerpc) 16277 # see comment about AmigaOS4 .so support 16278 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16279 archive_expsym_cmds='' 16280 ;; 16281 m68k) 16282 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)' 16283 hardcode_libdir_flag_spec='-L$libdir' 16284 hardcode_minus_L=yes 16285 ;; 16286 esac 16287 ;; 16288 16289 beos*) 16290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16291 allow_undefined_flag=unsupported 16292 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16293 # support --undefined. This deserves some investigation. FIXME 16294 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16295 else 16296 ld_shlibs=no 16297 fi 16298 ;; 16299 16300 cygwin* | mingw* | pw32* | cegcc*) 16301 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16302 # as there is no search path for DLLs. 16303 hardcode_libdir_flag_spec='-L$libdir' 16304 export_dynamic_flag_spec='$wl--export-all-symbols' 16305 allow_undefined_flag=unsupported 16306 always_export_symbols=no 16307 enable_shared_with_static_runtimes=yes 16308 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' 16309 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16310 16311 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16313 # If the export-symbols file already is a .def file, use it as 16314 # is; otherwise, prepend EXPORTS... 16315 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16316 cp $export_symbols $output_objdir/$soname.def; 16317 else 16318 echo EXPORTS > $output_objdir/$soname.def; 16319 cat $export_symbols >> $output_objdir/$soname.def; 16320 fi~ 16321 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16322 else 16323 ld_shlibs=no 16324 fi 16325 ;; 16326 16327 haiku*) 16328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16329 link_all_deplibs=yes 16330 ;; 16331 16332 os2*) 16333 hardcode_libdir_flag_spec='-L$libdir' 16334 hardcode_minus_L=yes 16335 allow_undefined_flag=unsupported 16336 shrext_cmds=.dll 16337 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16338 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16339 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16340 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16341 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16342 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16343 emximp -o $lib $output_objdir/$libname.def' 16344 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16345 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16346 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16347 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16348 prefix_cmds="$SED"~ 16349 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16350 prefix_cmds="$prefix_cmds -e 1d"; 16351 fi~ 16352 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16353 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16354 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16355 emximp -o $lib $output_objdir/$libname.def' 16356 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16357 enable_shared_with_static_runtimes=yes 16358 file_list_spec='@' 16359 ;; 16360 16361 interix[3-9]*) 16362 hardcode_direct=no 16363 hardcode_shlibpath_var=no 16364 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16365 export_dynamic_flag_spec='$wl-E' 16366 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16367 # Instead, shared libraries are loaded at an image base (0x10000000 by 16368 # default) and relocated if they conflict, which is a slow very memory 16369 # consuming and fragmenting process. To avoid this, we pick a random, 16370 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16371 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16373 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' 16374 ;; 16375 16376 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16377 tmp_diet=no 16378 if test linux-dietlibc = "$host_os"; then 16379 case $cc_basename in 16380 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16381 esac 16382 fi 16383 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16384 && test no = "$tmp_diet" 16385 then 16386 tmp_addflag=' $pic_flag' 16387 tmp_sharedflag='-shared' 16388 case $cc_basename,$host_cpu in 16389 pgcc*) # Portland Group C compiler 16390 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' 16391 tmp_addflag=' $pic_flag' 16392 ;; 16393 pgf77* | pgf90* | pgf95* | pgfortran*) 16394 # Portland Group f77 and f90 compilers 16395 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' 16396 tmp_addflag=' $pic_flag -Mnomain' ;; 16397 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16398 tmp_addflag=' -i_dynamic' ;; 16399 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16400 tmp_addflag=' -i_dynamic -nofor_main' ;; 16401 ifc* | ifort*) # Intel Fortran compiler 16402 tmp_addflag=' -nofor_main' ;; 16403 lf95*) # Lahey Fortran 8.1 16404 whole_archive_flag_spec= 16405 tmp_sharedflag='--shared' ;; 16406 nagfor*) # NAGFOR 5.3 16407 tmp_sharedflag='-Wl,-shared' ;; 16408 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16409 tmp_sharedflag='-qmkshrobj' 16410 tmp_addflag= ;; 16411 nvcc*) # Cuda Compiler Driver 2.2 16412 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' 16413 compiler_needs_object=yes 16414 ;; 16415 esac 16416 case `$CC -V 2>&1 | $SED 5q` in 16417 *Sun\ C*) # Sun C 5.9 16418 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' 16419 compiler_needs_object=yes 16420 tmp_sharedflag='-G' ;; 16421 *Sun\ F*) # Sun Fortran 8.3 16422 tmp_sharedflag='-G' ;; 16423 esac 16424 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16425 16426 if test yes = "$supports_anon_versioning"; then 16427 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16428 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16429 echo "local: *; };" >> $output_objdir/$libname.ver~ 16430 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16431 fi 16432 16433 case $cc_basename in 16434 tcc*) 16435 export_dynamic_flag_spec='-rdynamic' 16436 ;; 16437 xlf* | bgf* | bgxlf* | mpixlf*) 16438 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16439 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16441 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16442 if test yes = "$supports_anon_versioning"; then 16443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16444 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16445 echo "local: *; };" >> $output_objdir/$libname.ver~ 16446 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16447 fi 16448 ;; 16449 esac 16450 else 16451 ld_shlibs=no 16452 fi 16453 ;; 16454 16455 netbsd*) 16456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16458 wlarc= 16459 else 16460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16461 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16462 fi 16463 ;; 16464 16465 solaris*) 16466 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16467 ld_shlibs=no 16468 cat <<_LT_EOF 1>&2 16469 16470*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16471*** create shared libraries on Solaris systems. Therefore, libtool 16472*** is disabling shared libraries support. We urge you to upgrade GNU 16473*** binutils to release 2.9.1 or newer. Another option is to modify 16474*** your PATH or compiler configuration so that the native linker is 16475*** used, and then restart. 16476 16477_LT_EOF 16478 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16480 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16481 else 16482 ld_shlibs=no 16483 fi 16484 ;; 16485 16486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16487 case `$LD -v 2>&1` in 16488 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16489 ld_shlibs=no 16490 cat <<_LT_EOF 1>&2 16491 16492*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16493*** reliably create shared libraries on SCO systems. Therefore, libtool 16494*** is disabling shared libraries support. We urge you to upgrade GNU 16495*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16496*** your PATH or compiler configuration so that the native linker is 16497*** used, and then restart. 16498 16499_LT_EOF 16500 ;; 16501 *) 16502 # For security reasons, it is highly recommended that you always 16503 # use absolute paths for naming shared libraries, and exclude the 16504 # DT_RUNPATH tag from executables and libraries. But doing so 16505 # requires that you compile everything twice, which is a pain. 16506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16507 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16509 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16510 else 16511 ld_shlibs=no 16512 fi 16513 ;; 16514 esac 16515 ;; 16516 16517 sunos4*) 16518 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16519 wlarc= 16520 hardcode_direct=yes 16521 hardcode_shlibpath_var=no 16522 ;; 16523 16524 *) 16525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16527 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16528 else 16529 ld_shlibs=no 16530 fi 16531 ;; 16532 esac 16533 16534 if test no = "$ld_shlibs"; then 16535 runpath_var= 16536 hardcode_libdir_flag_spec= 16537 export_dynamic_flag_spec= 16538 whole_archive_flag_spec= 16539 fi 16540 else 16541 # PORTME fill in a description of your system's linker (not GNU ld) 16542 case $host_os in 16543 aix3*) 16544 allow_undefined_flag=unsupported 16545 always_export_symbols=yes 16546 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' 16547 # Note: this linker hardcodes the directories in LIBPATH if there 16548 # are no directories specified by -L. 16549 hardcode_minus_L=yes 16550 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16551 # Neither direct hardcoding nor static linking is supported with a 16552 # broken collect2. 16553 hardcode_direct=unsupported 16554 fi 16555 ;; 16556 16557 aix[4-9]*) 16558 if test ia64 = "$host_cpu"; then 16559 # On IA64, the linker does run time linking by default, so we don't 16560 # have to do anything special. 16561 aix_use_runtimelinking=no 16562 exp_sym_flag='-Bexport' 16563 no_entry_flag= 16564 else 16565 # If we're using GNU nm, then we don't want the "-C" option. 16566 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16567 # Without the "-l" option, or with the "-B" option, AIX nm treats 16568 # weak defined symbols like other global defined symbols, whereas 16569 # GNU nm marks them as "W". 16570 # While the 'weak' keyword is ignored in the Export File, we need 16571 # it in the Import File for the 'aix-soname' feature, so we have 16572 # to replace the "-B" option with "-P" for AIX nm. 16573 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16574 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' 16575 else 16576 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' 16577 fi 16578 aix_use_runtimelinking=no 16579 16580 # Test if we are trying to use run time linking or normal 16581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16582 # have runtime linking enabled, and use it for executables. 16583 # For shared libraries, we enable/disable runtime linking 16584 # depending on the kind of the shared library created - 16585 # when "with_aix_soname,aix_use_runtimelinking" is: 16586 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16587 # "aix,yes" lib.so shared, rtl:yes, for executables 16588 # lib.a static archive 16589 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16590 # lib.a(lib.so.V) shared, rtl:no, for executables 16591 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16592 # lib.a(lib.so.V) shared, rtl:no 16593 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16594 # lib.a static archive 16595 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16596 for ld_flag in $LDFLAGS; do 16597 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16598 aix_use_runtimelinking=yes 16599 break 16600 fi 16601 done 16602 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16603 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16604 # so we don't have lib.a shared libs to link our executables. 16605 # We have to force runtime linking in this case. 16606 aix_use_runtimelinking=yes 16607 LDFLAGS="$LDFLAGS -Wl,-brtl" 16608 fi 16609 ;; 16610 esac 16611 16612 exp_sym_flag='-bexport' 16613 no_entry_flag='-bnoentry' 16614 fi 16615 16616 # When large executables or shared objects are built, AIX ld can 16617 # have problems creating the table of contents. If linking a library 16618 # or program results in "error TOC overflow" add -mminimal-toc to 16619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16621 16622 archive_cmds='' 16623 hardcode_direct=yes 16624 hardcode_direct_absolute=yes 16625 hardcode_libdir_separator=':' 16626 link_all_deplibs=yes 16627 file_list_spec='$wl-f,' 16628 case $with_aix_soname,$aix_use_runtimelinking in 16629 aix,*) ;; # traditional, no import file 16630 svr4,* | *,yes) # use import file 16631 # The Import File defines what to hardcode. 16632 hardcode_direct=no 16633 hardcode_direct_absolute=no 16634 ;; 16635 esac 16636 16637 if test yes = "$GCC"; then 16638 case $host_os in aix4.[012]|aix4.[012].*) 16639 # We only want to do this on AIX 4.2 and lower, the check 16640 # below for broken collect2 doesn't work under 4.3+ 16641 collect2name=`$CC -print-prog-name=collect2` 16642 if test -f "$collect2name" && 16643 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16644 then 16645 # We have reworked collect2 16646 : 16647 else 16648 # We have old collect2 16649 hardcode_direct=unsupported 16650 # It fails to find uninstalled libraries when the uninstalled 16651 # path is not listed in the libpath. Setting hardcode_minus_L 16652 # to unsupported forces relinking 16653 hardcode_minus_L=yes 16654 hardcode_libdir_flag_spec='-L$libdir' 16655 hardcode_libdir_separator= 16656 fi 16657 ;; 16658 esac 16659 shared_flag='-shared' 16660 if test yes = "$aix_use_runtimelinking"; then 16661 shared_flag="$shared_flag "'$wl-G' 16662 fi 16663 # Need to ensure runtime linking is disabled for the traditional 16664 # shared library, or the linker may eventually find shared libraries 16665 # /with/ Import File - we do not want to mix them. 16666 shared_flag_aix='-shared' 16667 shared_flag_svr4='-shared $wl-G' 16668 else 16669 # not using gcc 16670 if test ia64 = "$host_cpu"; then 16671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16672 # chokes on -Wl,-G. The following line is correct: 16673 shared_flag='-G' 16674 else 16675 if test yes = "$aix_use_runtimelinking"; then 16676 shared_flag='$wl-G' 16677 else 16678 shared_flag='$wl-bM:SRE' 16679 fi 16680 shared_flag_aix='$wl-bM:SRE' 16681 shared_flag_svr4='$wl-G' 16682 fi 16683 fi 16684 16685 export_dynamic_flag_spec='$wl-bexpall' 16686 # It seems that -bexpall does not export symbols beginning with 16687 # underscore (_), so it is better to generate a list of symbols to export. 16688 always_export_symbols=yes 16689 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16690 # Warning - without using the other runtime loading flags (-brtl), 16691 # -berok will link without error, but may produce a broken library. 16692 allow_undefined_flag='-berok' 16693 # Determine the default libpath from the value encoded in an 16694 # empty executable. 16695 if test set = "${lt_cv_aix_libpath+set}"; then 16696 aix_libpath=$lt_cv_aix_libpath 16697else 16698 if test ${lt_cv_aix_libpath_+y} 16699then : 16700 printf %s "(cached) " >&6 16701else $as_nop 16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16703/* end confdefs.h. */ 16704 16705int 16706main (void) 16707{ 16708 16709 ; 16710 return 0; 16711} 16712_ACEOF 16713if ac_fn_c_try_link "$LINENO" 16714then : 16715 16716 lt_aix_libpath_sed=' 16717 /Import File Strings/,/^$/ { 16718 /^0/ { 16719 s/^0 *\([^ ]*\) *$/\1/ 16720 p 16721 } 16722 }' 16723 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16724 # Check for a 64-bit object if we didn't find anything. 16725 if test -z "$lt_cv_aix_libpath_"; then 16726 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16727 fi 16728fi 16729rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16730 conftest$ac_exeext conftest.$ac_ext 16731 if test -z "$lt_cv_aix_libpath_"; then 16732 lt_cv_aix_libpath_=/usr/lib:/lib 16733 fi 16734 16735fi 16736 16737 aix_libpath=$lt_cv_aix_libpath_ 16738fi 16739 16740 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16741 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 16742 else 16743 if test ia64 = "$host_cpu"; then 16744 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16745 allow_undefined_flag="-z nodefs" 16746 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" 16747 else 16748 # Determine the default libpath from the value encoded in an 16749 # empty executable. 16750 if test set = "${lt_cv_aix_libpath+set}"; then 16751 aix_libpath=$lt_cv_aix_libpath 16752else 16753 if test ${lt_cv_aix_libpath_+y} 16754then : 16755 printf %s "(cached) " >&6 16756else $as_nop 16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16758/* end confdefs.h. */ 16759 16760int 16761main (void) 16762{ 16763 16764 ; 16765 return 0; 16766} 16767_ACEOF 16768if ac_fn_c_try_link "$LINENO" 16769then : 16770 16771 lt_aix_libpath_sed=' 16772 /Import File Strings/,/^$/ { 16773 /^0/ { 16774 s/^0 *\([^ ]*\) *$/\1/ 16775 p 16776 } 16777 }' 16778 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16779 # Check for a 64-bit object if we didn't find anything. 16780 if test -z "$lt_cv_aix_libpath_"; then 16781 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16782 fi 16783fi 16784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16785 conftest$ac_exeext conftest.$ac_ext 16786 if test -z "$lt_cv_aix_libpath_"; then 16787 lt_cv_aix_libpath_=/usr/lib:/lib 16788 fi 16789 16790fi 16791 16792 aix_libpath=$lt_cv_aix_libpath_ 16793fi 16794 16795 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16796 # Warning - without using the other run time loading flags, 16797 # -berok will link without error, but may produce a broken library. 16798 no_undefined_flag=' $wl-bernotok' 16799 allow_undefined_flag=' $wl-berok' 16800 if test yes = "$with_gnu_ld"; then 16801 # We only use this code for GNU lds that support --whole-archive. 16802 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16803 else 16804 # Exported symbols can be pulled into shared objects from archives 16805 whole_archive_flag_spec='$convenience' 16806 fi 16807 archive_cmds_need_lc=yes 16808 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16809 # -brtl affects multiple linker settings, -berok does not and is overridden later 16810 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16811 if test svr4 != "$with_aix_soname"; then 16812 # This is similar to how AIX traditionally builds its shared libraries. 16813 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' 16814 fi 16815 if test aix != "$with_aix_soname"; then 16816 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' 16817 else 16818 # used by -dlpreopen to get the symbols 16819 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16820 fi 16821 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16822 fi 16823 fi 16824 ;; 16825 16826 amigaos*) 16827 case $host_cpu in 16828 powerpc) 16829 # see comment about AmigaOS4 .so support 16830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16831 archive_expsym_cmds='' 16832 ;; 16833 m68k) 16834 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)' 16835 hardcode_libdir_flag_spec='-L$libdir' 16836 hardcode_minus_L=yes 16837 ;; 16838 esac 16839 ;; 16840 16841 bsdi[45]*) 16842 export_dynamic_flag_spec=-rdynamic 16843 ;; 16844 16845 cygwin* | mingw* | pw32* | cegcc*) 16846 # When not using gcc, we currently assume that we are using 16847 # Microsoft Visual C++ or Intel C++ Compiler. 16848 # hardcode_libdir_flag_spec is actually meaningless, as there is 16849 # no search path for DLLs. 16850 case $cc_basename in 16851 cl* | icl*) 16852 # Native MSVC or ICC 16853 hardcode_libdir_flag_spec=' ' 16854 allow_undefined_flag=unsupported 16855 always_export_symbols=yes 16856 file_list_spec='@' 16857 # Tell ltmain to make .lib files, not .a files. 16858 libext=lib 16859 # Tell ltmain to make .dll files, not .so files. 16860 shrext_cmds=.dll 16861 # FIXME: Setting linknames here is a bad hack. 16862 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16863 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16864 cp "$export_symbols" "$output_objdir/$soname.def"; 16865 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16866 else 16867 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16868 fi~ 16869 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16870 linknames=' 16871 # The linker will not automatically build a static lib if we build a DLL. 16872 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16873 enable_shared_with_static_runtimes=yes 16874 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16876 # Don't use ranlib 16877 old_postinstall_cmds='chmod 644 $oldlib' 16878 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16879 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16880 case $lt_outputfile in 16881 *.exe|*.EXE) ;; 16882 *) 16883 lt_outputfile=$lt_outputfile.exe 16884 lt_tool_outputfile=$lt_tool_outputfile.exe 16885 ;; 16886 esac~ 16887 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16888 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16889 $RM "$lt_outputfile.manifest"; 16890 fi' 16891 ;; 16892 *) 16893 # Assume MSVC and ICC wrapper 16894 hardcode_libdir_flag_spec=' ' 16895 allow_undefined_flag=unsupported 16896 # Tell ltmain to make .lib files, not .a files. 16897 libext=lib 16898 # Tell ltmain to make .dll files, not .so files. 16899 shrext_cmds=.dll 16900 # FIXME: Setting linknames here is a bad hack. 16901 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16902 # The linker will automatically build a .lib file if we build a DLL. 16903 old_archive_from_new_cmds='true' 16904 # FIXME: Should let the user specify the lib program. 16905 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16906 enable_shared_with_static_runtimes=yes 16907 ;; 16908 esac 16909 ;; 16910 16911 darwin* | rhapsody*) 16912 16913 16914 archive_cmds_need_lc=no 16915 hardcode_direct=no 16916 hardcode_automatic=yes 16917 hardcode_shlibpath_var=unsupported 16918 if test yes = "$lt_cv_ld_force_load"; then 16919 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\"`' 16920 16921 else 16922 whole_archive_flag_spec='' 16923 fi 16924 link_all_deplibs=yes 16925 allow_undefined_flag=$_lt_dar_allow_undefined 16926 case $cc_basename in 16927 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16928 *) _lt_dar_can_shared=$GCC ;; 16929 esac 16930 if test yes = "$_lt_dar_can_shared"; then 16931 output_verbose_link_cmd=func_echo_all 16932 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16933 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16934 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" 16935 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" 16936 16937 else 16938 ld_shlibs=no 16939 fi 16940 16941 ;; 16942 16943 dgux*) 16944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16945 hardcode_libdir_flag_spec='-L$libdir' 16946 hardcode_shlibpath_var=no 16947 ;; 16948 16949 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16950 # support. Future versions do this automatically, but an explicit c++rt0.o 16951 # does not break anything, and helps significantly (at the cost of a little 16952 # extra space). 16953 freebsd2.2*) 16954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16955 hardcode_libdir_flag_spec='-R$libdir' 16956 hardcode_direct=yes 16957 hardcode_shlibpath_var=no 16958 ;; 16959 16960 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16961 freebsd2.*) 16962 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16963 hardcode_direct=yes 16964 hardcode_minus_L=yes 16965 hardcode_shlibpath_var=no 16966 ;; 16967 16968 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16969 freebsd* | dragonfly* | midnightbsd*) 16970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16971 hardcode_libdir_flag_spec='-R$libdir' 16972 hardcode_direct=yes 16973 hardcode_shlibpath_var=no 16974 ;; 16975 16976 hpux9*) 16977 if test yes = "$GCC"; then 16978 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' 16979 else 16980 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' 16981 fi 16982 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16983 hardcode_libdir_separator=: 16984 hardcode_direct=yes 16985 16986 # hardcode_minus_L: Not really in the search PATH, 16987 # but as the default location of the library. 16988 hardcode_minus_L=yes 16989 export_dynamic_flag_spec='$wl-E' 16990 ;; 16991 16992 hpux10*) 16993 if test yes,no = "$GCC,$with_gnu_ld"; then 16994 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16995 else 16996 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16997 fi 16998 if test no = "$with_gnu_ld"; then 16999 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17000 hardcode_libdir_separator=: 17001 hardcode_direct=yes 17002 hardcode_direct_absolute=yes 17003 export_dynamic_flag_spec='$wl-E' 17004 # hardcode_minus_L: Not really in the search PATH, 17005 # but as the default location of the library. 17006 hardcode_minus_L=yes 17007 fi 17008 ;; 17009 17010 hpux11*) 17011 if test yes,no = "$GCC,$with_gnu_ld"; then 17012 case $host_cpu in 17013 hppa*64*) 17014 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17015 ;; 17016 ia64*) 17017 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17018 ;; 17019 *) 17020 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17021 ;; 17022 esac 17023 else 17024 case $host_cpu in 17025 hppa*64*) 17026 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17027 ;; 17028 ia64*) 17029 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17030 ;; 17031 *) 17032 17033 # Older versions of the 11.00 compiler do not understand -b yet 17034 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17036printf %s "checking if $CC understands -b... " >&6; } 17037if test ${lt_cv_prog_compiler__b+y} 17038then : 17039 printf %s "(cached) " >&6 17040else $as_nop 17041 lt_cv_prog_compiler__b=no 17042 save_LDFLAGS=$LDFLAGS 17043 LDFLAGS="$LDFLAGS -b" 17044 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17045 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17046 # The linker can only warn and ignore the option if not recognized 17047 # So say no if there are warnings 17048 if test -s conftest.err; then 17049 # Append any errors to the config.log. 17050 cat conftest.err 1>&5 17051 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17053 if diff conftest.exp conftest.er2 >/dev/null; then 17054 lt_cv_prog_compiler__b=yes 17055 fi 17056 else 17057 lt_cv_prog_compiler__b=yes 17058 fi 17059 fi 17060 $RM -r conftest* 17061 LDFLAGS=$save_LDFLAGS 17062 17063fi 17064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17065printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17066 17067if test yes = "$lt_cv_prog_compiler__b"; then 17068 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17069else 17070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17071fi 17072 17073 ;; 17074 esac 17075 fi 17076 if test no = "$with_gnu_ld"; then 17077 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17078 hardcode_libdir_separator=: 17079 17080 case $host_cpu in 17081 hppa*64*|ia64*) 17082 hardcode_direct=no 17083 hardcode_shlibpath_var=no 17084 ;; 17085 *) 17086 hardcode_direct=yes 17087 hardcode_direct_absolute=yes 17088 export_dynamic_flag_spec='$wl-E' 17089 17090 # hardcode_minus_L: Not really in the search PATH, 17091 # but as the default location of the library. 17092 hardcode_minus_L=yes 17093 ;; 17094 esac 17095 fi 17096 ;; 17097 17098 irix5* | irix6* | nonstopux*) 17099 if test yes = "$GCC"; then 17100 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' 17101 # Try to use the -exported_symbol ld option, if it does not 17102 # work, assume that -exports_file does not work either and 17103 # implicitly export all symbols. 17104 # This should be the same for all languages, so no per-tag cache variable. 17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17106printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17107if test ${lt_cv_irix_exported_symbol+y} 17108then : 17109 printf %s "(cached) " >&6 17110else $as_nop 17111 save_LDFLAGS=$LDFLAGS 17112 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17114/* end confdefs.h. */ 17115int foo (void) { return 0; } 17116_ACEOF 17117if ac_fn_c_try_link "$LINENO" 17118then : 17119 lt_cv_irix_exported_symbol=yes 17120else $as_nop 17121 lt_cv_irix_exported_symbol=no 17122fi 17123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17124 conftest$ac_exeext conftest.$ac_ext 17125 LDFLAGS=$save_LDFLAGS 17126fi 17127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17128printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17129 if test yes = "$lt_cv_irix_exported_symbol"; then 17130 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' 17131 fi 17132 else 17133 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' 17134 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' 17135 fi 17136 archive_cmds_need_lc='no' 17137 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17138 hardcode_libdir_separator=: 17139 inherit_rpath=yes 17140 link_all_deplibs=yes 17141 ;; 17142 17143 linux*) 17144 case $cc_basename in 17145 tcc*) 17146 # Fabrice Bellard et al's Tiny C Compiler 17147 ld_shlibs=yes 17148 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17149 ;; 17150 esac 17151 ;; 17152 17153 netbsd*) 17154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17155 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17156 else 17157 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17158 fi 17159 hardcode_libdir_flag_spec='-R$libdir' 17160 hardcode_direct=yes 17161 hardcode_shlibpath_var=no 17162 ;; 17163 17164 newsos6) 17165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17166 hardcode_direct=yes 17167 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17168 hardcode_libdir_separator=: 17169 hardcode_shlibpath_var=no 17170 ;; 17171 17172 *nto* | *qnx*) 17173 ;; 17174 17175 openbsd* | bitrig*) 17176 if test -f /usr/libexec/ld.so; then 17177 hardcode_direct=yes 17178 hardcode_shlibpath_var=no 17179 hardcode_direct_absolute=yes 17180 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17181 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17182 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17183 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17184 export_dynamic_flag_spec='$wl-E' 17185 else 17186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17187 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17188 fi 17189 else 17190 ld_shlibs=no 17191 fi 17192 ;; 17193 17194 os2*) 17195 hardcode_libdir_flag_spec='-L$libdir' 17196 hardcode_minus_L=yes 17197 allow_undefined_flag=unsupported 17198 shrext_cmds=.dll 17199 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17200 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17201 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17202 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17203 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17204 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17205 emximp -o $lib $output_objdir/$libname.def' 17206 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17207 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17208 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17209 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17210 prefix_cmds="$SED"~ 17211 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17212 prefix_cmds="$prefix_cmds -e 1d"; 17213 fi~ 17214 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17215 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17216 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17217 emximp -o $lib $output_objdir/$libname.def' 17218 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17219 enable_shared_with_static_runtimes=yes 17220 file_list_spec='@' 17221 ;; 17222 17223 osf3*) 17224 if test yes = "$GCC"; then 17225 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17226 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' 17227 else 17228 allow_undefined_flag=' -expect_unresolved \*' 17229 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' 17230 fi 17231 archive_cmds_need_lc='no' 17232 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17233 hardcode_libdir_separator=: 17234 ;; 17235 17236 osf4* | osf5*) # as osf3* with the addition of -msym flag 17237 if test yes = "$GCC"; then 17238 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17239 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' 17240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17241 else 17242 allow_undefined_flag=' -expect_unresolved \*' 17243 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' 17244 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~ 17245 $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' 17246 17247 # Both c and cxx compiler support -rpath directly 17248 hardcode_libdir_flag_spec='-rpath $libdir' 17249 fi 17250 archive_cmds_need_lc='no' 17251 hardcode_libdir_separator=: 17252 ;; 17253 17254 solaris*) 17255 no_undefined_flag=' -z defs' 17256 if test yes = "$GCC"; then 17257 wlarc='$wl' 17258 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17259 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17260 $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' 17261 else 17262 case `$CC -V 2>&1` in 17263 *"Compilers 5.0"*) 17264 wlarc='' 17265 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17267 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17268 ;; 17269 *) 17270 wlarc='$wl' 17271 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17273 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17274 ;; 17275 esac 17276 fi 17277 hardcode_libdir_flag_spec='-R$libdir' 17278 hardcode_shlibpath_var=no 17279 case $host_os in 17280 solaris2.[0-5] | solaris2.[0-5].*) ;; 17281 *) 17282 # The compiler driver will combine and reorder linker options, 17283 # but understands '-z linker_flag'. GCC discards it without '$wl', 17284 # but is careful enough not to reorder. 17285 # Supported since Solaris 2.6 (maybe 2.5.1?) 17286 if test yes = "$GCC"; then 17287 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17288 else 17289 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17290 fi 17291 ;; 17292 esac 17293 link_all_deplibs=yes 17294 ;; 17295 17296 sunos4*) 17297 if test sequent = "$host_vendor"; then 17298 # Use $CC to link under sequent, because it throws in some extra .o 17299 # files that make .init and .fini sections work. 17300 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17301 else 17302 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17303 fi 17304 hardcode_libdir_flag_spec='-L$libdir' 17305 hardcode_direct=yes 17306 hardcode_minus_L=yes 17307 hardcode_shlibpath_var=no 17308 ;; 17309 17310 sysv4) 17311 case $host_vendor in 17312 sni) 17313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17314 hardcode_direct=yes # is this really true??? 17315 ;; 17316 siemens) 17317 ## LD is ld it makes a PLAMLIB 17318 ## CC just makes a GrossModule. 17319 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17320 reload_cmds='$CC -r -o $output$reload_objs' 17321 hardcode_direct=no 17322 ;; 17323 motorola) 17324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17325 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17326 ;; 17327 esac 17328 runpath_var='LD_RUN_PATH' 17329 hardcode_shlibpath_var=no 17330 ;; 17331 17332 sysv4.3*) 17333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17334 hardcode_shlibpath_var=no 17335 export_dynamic_flag_spec='-Bexport' 17336 ;; 17337 17338 sysv4*MP*) 17339 if test -d /usr/nec; then 17340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17341 hardcode_shlibpath_var=no 17342 runpath_var=LD_RUN_PATH 17343 hardcode_runpath_var=yes 17344 ld_shlibs=yes 17345 fi 17346 ;; 17347 17348 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17349 no_undefined_flag='$wl-z,text' 17350 archive_cmds_need_lc=no 17351 hardcode_shlibpath_var=no 17352 runpath_var='LD_RUN_PATH' 17353 17354 if test yes = "$GCC"; then 17355 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17356 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17357 else 17358 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17359 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17360 fi 17361 ;; 17362 17363 sysv5* | sco3.2v5* | sco5v6*) 17364 # Note: We CANNOT use -z defs as we might desire, because we do not 17365 # link with -lc, and that would cause any symbols used from libc to 17366 # always be unresolved, which means just about no library would 17367 # ever link correctly. If we're not using GNU ld we use -z text 17368 # though, which does catch some bad symbols but isn't as heavy-handed 17369 # as -z defs. 17370 no_undefined_flag='$wl-z,text' 17371 allow_undefined_flag='$wl-z,nodefs' 17372 archive_cmds_need_lc=no 17373 hardcode_shlibpath_var=no 17374 hardcode_libdir_flag_spec='$wl-R,$libdir' 17375 hardcode_libdir_separator=':' 17376 link_all_deplibs=yes 17377 export_dynamic_flag_spec='$wl-Bexport' 17378 runpath_var='LD_RUN_PATH' 17379 17380 if test yes = "$GCC"; then 17381 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17382 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17383 else 17384 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17385 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17386 fi 17387 ;; 17388 17389 uts4*) 17390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17391 hardcode_libdir_flag_spec='-L$libdir' 17392 hardcode_shlibpath_var=no 17393 ;; 17394 17395 *) 17396 ld_shlibs=no 17397 ;; 17398 esac 17399 17400 if test sni = "$host_vendor"; then 17401 case $host in 17402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17403 export_dynamic_flag_spec='$wl-Blargedynsym' 17404 ;; 17405 esac 17406 fi 17407 fi 17408 17409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17410printf "%s\n" "$ld_shlibs" >&6; } 17411test no = "$ld_shlibs" && can_build_shared=no 17412 17413with_gnu_ld=$with_gnu_ld 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429# 17430# Do we need to explicitly link libc? 17431# 17432case "x$archive_cmds_need_lc" in 17433x|xyes) 17434 # Assume -lc should be added 17435 archive_cmds_need_lc=yes 17436 17437 if test yes,yes = "$GCC,$enable_shared"; then 17438 case $archive_cmds in 17439 *'~'*) 17440 # FIXME: we may have to deal with multi-command sequences. 17441 ;; 17442 '$CC '*) 17443 # Test whether the compiler implicitly links with -lc since on some 17444 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17445 # to ld, don't add -lc before -lgcc. 17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17447printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17448if test ${lt_cv_archive_cmds_need_lc+y} 17449then : 17450 printf %s "(cached) " >&6 17451else $as_nop 17452 $RM conftest* 17453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17454 17455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17456 (eval $ac_compile) 2>&5 17457 ac_status=$? 17458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17459 test $ac_status = 0; } 2>conftest.err; then 17460 soname=conftest 17461 lib=conftest 17462 libobjs=conftest.$ac_objext 17463 deplibs= 17464 wl=$lt_prog_compiler_wl 17465 pic_flag=$lt_prog_compiler_pic 17466 compiler_flags=-v 17467 linker_flags=-v 17468 verstring= 17469 output_objdir=. 17470 libname=conftest 17471 lt_save_allow_undefined_flag=$allow_undefined_flag 17472 allow_undefined_flag= 17473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17474 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17475 ac_status=$? 17476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17477 test $ac_status = 0; } 17478 then 17479 lt_cv_archive_cmds_need_lc=no 17480 else 17481 lt_cv_archive_cmds_need_lc=yes 17482 fi 17483 allow_undefined_flag=$lt_save_allow_undefined_flag 17484 else 17485 cat conftest.err 1>&5 17486 fi 17487 $RM conftest* 17488 17489fi 17490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17491printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17492 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17493 ;; 17494 esac 17495 fi 17496 ;; 17497esac 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17651printf %s "checking dynamic linker characteristics... " >&6; } 17652 17653if test yes = "$GCC"; then 17654 case $host_os in 17655 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17656 *) lt_awk_arg='/^libraries:/' ;; 17657 esac 17658 case $host_os in 17659 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17660 *) lt_sed_strip_eq='s|=/|/|g' ;; 17661 esac 17662 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17663 case $lt_search_path_spec in 17664 *\;*) 17665 # if the path contains ";" then we assume it to be the separator 17666 # otherwise default to the standard path separator (i.e. ":") - it is 17667 # assumed that no part of a normal pathname contains ";" but that should 17668 # okay in the real world where ";" in dirpaths is itself problematic. 17669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17670 ;; 17671 *) 17672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17673 ;; 17674 esac 17675 # Ok, now we have the path, separated by spaces, we can step through it 17676 # and add multilib dir if necessary... 17677 lt_tmp_lt_search_path_spec= 17678 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17679 # ...but if some path component already ends with the multilib dir we assume 17680 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17681 case "$lt_multi_os_dir; $lt_search_path_spec " in 17682 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17683 lt_multi_os_dir= 17684 ;; 17685 esac 17686 for lt_sys_path in $lt_search_path_spec; do 17687 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17688 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17689 elif test -n "$lt_multi_os_dir"; then 17690 test -d "$lt_sys_path" && \ 17691 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17692 fi 17693 done 17694 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17695BEGIN {RS = " "; FS = "/|\n";} { 17696 lt_foo = ""; 17697 lt_count = 0; 17698 for (lt_i = NF; lt_i > 0; lt_i--) { 17699 if ($lt_i != "" && $lt_i != ".") { 17700 if ($lt_i == "..") { 17701 lt_count++; 17702 } else { 17703 if (lt_count == 0) { 17704 lt_foo = "/" $lt_i lt_foo; 17705 } else { 17706 lt_count--; 17707 } 17708 } 17709 } 17710 } 17711 if (lt_foo != "") { lt_freq[lt_foo]++; } 17712 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17713}'` 17714 # AWK program above erroneously prepends '/' to C:/dos/paths 17715 # for these hosts. 17716 case $host_os in 17717 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17718 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17719 esac 17720 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17721else 17722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17723fi 17724library_names_spec= 17725libname_spec='lib$name' 17726soname_spec= 17727shrext_cmds=.so 17728postinstall_cmds= 17729postuninstall_cmds= 17730finish_cmds= 17731finish_eval= 17732shlibpath_var= 17733shlibpath_overrides_runpath=unknown 17734version_type=none 17735dynamic_linker="$host_os ld.so" 17736sys_lib_dlsearch_path_spec="/lib /usr/lib" 17737need_lib_prefix=unknown 17738hardcode_into_libs=no 17739 17740# when you set need_version to no, make sure it does not cause -set_version 17741# flags to be left without arguments 17742need_version=unknown 17743 17744 17745 17746case $host_os in 17747aix3*) 17748 version_type=linux # correct to gnu/linux during the next big refactor 17749 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17750 shlibpath_var=LIBPATH 17751 17752 # AIX 3 has no versioning support, so we append a major version to the name. 17753 soname_spec='$libname$release$shared_ext$major' 17754 ;; 17755 17756aix[4-9]*) 17757 version_type=linux # correct to gnu/linux during the next big refactor 17758 need_lib_prefix=no 17759 need_version=no 17760 hardcode_into_libs=yes 17761 if test ia64 = "$host_cpu"; then 17762 # AIX 5 supports IA64 17763 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17764 shlibpath_var=LD_LIBRARY_PATH 17765 else 17766 # With GCC up to 2.95.x, collect2 would create an import file 17767 # for dependence libraries. The import file would start with 17768 # the line '#! .'. This would cause the generated library to 17769 # depend on '.', always an invalid library. This was fixed in 17770 # development snapshots of GCC prior to 3.0. 17771 case $host_os in 17772 aix4 | aix4.[01] | aix4.[01].*) 17773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17774 echo ' yes ' 17775 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17776 : 17777 else 17778 can_build_shared=no 17779 fi 17780 ;; 17781 esac 17782 # Using Import Files as archive members, it is possible to support 17783 # filename-based versioning of shared library archives on AIX. While 17784 # this would work for both with and without runtime linking, it will 17785 # prevent static linking of such archives. So we do filename-based 17786 # shared library versioning with .so extension only, which is used 17787 # when both runtime linking and shared linking is enabled. 17788 # Unfortunately, runtime linking may impact performance, so we do 17789 # not want this to be the default eventually. Also, we use the 17790 # versioned .so libs for executables only if there is the -brtl 17791 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17792 # To allow for filename-based versioning support, we need to create 17793 # libNAME.so.V as an archive file, containing: 17794 # *) an Import File, referring to the versioned filename of the 17795 # archive as well as the shared archive member, telling the 17796 # bitwidth (32 or 64) of that shared object, and providing the 17797 # list of exported symbols of that shared object, eventually 17798 # decorated with the 'weak' keyword 17799 # *) the shared object with the F_LOADONLY flag set, to really avoid 17800 # it being seen by the linker. 17801 # At run time we better use the real file rather than another symlink, 17802 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17803 17804 case $with_aix_soname,$aix_use_runtimelinking in 17805 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17806 # soname into executable. Probably we can add versioning support to 17807 # collect2, so additional links can be useful in future. 17808 aix,yes) # traditional libtool 17809 dynamic_linker='AIX unversionable lib.so' 17810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17811 # instead of lib<name>.a to let people know that these are not 17812 # typical AIX shared libraries. 17813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17814 ;; 17815 aix,no) # traditional AIX only 17816 dynamic_linker='AIX lib.a(lib.so.V)' 17817 # We preserve .a as extension for shared libraries through AIX4.2 17818 # and later when we are not doing run time linking. 17819 library_names_spec='$libname$release.a $libname.a' 17820 soname_spec='$libname$release$shared_ext$major' 17821 ;; 17822 svr4,*) # full svr4 only 17823 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17824 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17825 # We do not specify a path in Import Files, so LIBPATH fires. 17826 shlibpath_overrides_runpath=yes 17827 ;; 17828 *,yes) # both, prefer svr4 17829 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17830 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17831 # unpreferred sharedlib libNAME.a needs extra handling 17832 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"' 17833 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"' 17834 # We do not specify a path in Import Files, so LIBPATH fires. 17835 shlibpath_overrides_runpath=yes 17836 ;; 17837 *,no) # both, prefer aix 17838 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17839 library_names_spec='$libname$release.a $libname.a' 17840 soname_spec='$libname$release$shared_ext$major' 17841 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17842 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)' 17843 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"' 17844 ;; 17845 esac 17846 shlibpath_var=LIBPATH 17847 fi 17848 ;; 17849 17850amigaos*) 17851 case $host_cpu in 17852 powerpc) 17853 # Since July 2007 AmigaOS4 officially supports .so libraries. 17854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17856 ;; 17857 m68k) 17858 library_names_spec='$libname.ixlibrary $libname.a' 17859 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17860 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' 17861 ;; 17862 esac 17863 ;; 17864 17865beos*) 17866 library_names_spec='$libname$shared_ext' 17867 dynamic_linker="$host_os ld.so" 17868 shlibpath_var=LIBRARY_PATH 17869 ;; 17870 17871bsdi[45]*) 17872 version_type=linux # correct to gnu/linux during the next big refactor 17873 need_version=no 17874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17875 soname_spec='$libname$release$shared_ext$major' 17876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17877 shlibpath_var=LD_LIBRARY_PATH 17878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17880 # the default ld.so.conf also contains /usr/contrib/lib and 17881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17882 # libtool to hard-code these into programs 17883 ;; 17884 17885cygwin* | mingw* | pw32* | cegcc*) 17886 version_type=windows 17887 shrext_cmds=.dll 17888 need_version=no 17889 need_lib_prefix=no 17890 17891 case $GCC,$cc_basename in 17892 yes,*) 17893 # gcc 17894 library_names_spec='$libname.dll.a' 17895 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17896 postinstall_cmds='base_file=`basename \$file`~ 17897 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17898 dldir=$destdir/`dirname \$dlpath`~ 17899 test -d \$dldir || mkdir -p \$dldir~ 17900 $install_prog $dir/$dlname \$dldir/$dlname~ 17901 chmod a+x \$dldir/$dlname~ 17902 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17903 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17904 fi' 17905 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17906 dlpath=$dir/\$dldll~ 17907 $RM \$dlpath' 17908 shlibpath_overrides_runpath=yes 17909 17910 case $host_os in 17911 cygwin*) 17912 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17913 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17914 17915 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17916 ;; 17917 mingw* | cegcc*) 17918 # MinGW DLLs use traditional 'lib' prefix 17919 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17920 ;; 17921 pw32*) 17922 # pw32 DLLs use 'pw' prefix rather than 'lib' 17923 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17924 ;; 17925 esac 17926 dynamic_linker='Win32 ld.exe' 17927 ;; 17928 17929 *,cl* | *,icl*) 17930 # Native MSVC or ICC 17931 libname_spec='$name' 17932 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17933 library_names_spec='$libname.dll.lib' 17934 17935 case $build_os in 17936 mingw*) 17937 sys_lib_search_path_spec= 17938 lt_save_ifs=$IFS 17939 IFS=';' 17940 for lt_path in $LIB 17941 do 17942 IFS=$lt_save_ifs 17943 # Let DOS variable expansion print the short 8.3 style file name. 17944 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17945 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17946 done 17947 IFS=$lt_save_ifs 17948 # Convert to MSYS style. 17949 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17950 ;; 17951 cygwin*) 17952 # Convert to unix form, then to dos form, then back to unix form 17953 # but this time dos style (no spaces!) so that the unix form looks 17954 # like /cygdrive/c/PROGRA~1:/cygdr... 17955 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17956 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17957 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17958 ;; 17959 *) 17960 sys_lib_search_path_spec=$LIB 17961 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17962 # It is most probably a Windows format PATH. 17963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17964 else 17965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17966 fi 17967 # FIXME: find the short name or the path components, as spaces are 17968 # common. (e.g. "Program Files" -> "PROGRA~1") 17969 ;; 17970 esac 17971 17972 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17973 postinstall_cmds='base_file=`basename \$file`~ 17974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17975 dldir=$destdir/`dirname \$dlpath`~ 17976 test -d \$dldir || mkdir -p \$dldir~ 17977 $install_prog $dir/$dlname \$dldir/$dlname' 17978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17979 dlpath=$dir/\$dldll~ 17980 $RM \$dlpath' 17981 shlibpath_overrides_runpath=yes 17982 dynamic_linker='Win32 link.exe' 17983 ;; 17984 17985 *) 17986 # Assume MSVC and ICC wrapper 17987 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17988 dynamic_linker='Win32 ld.exe' 17989 ;; 17990 esac 17991 # FIXME: first we should search . and the directory the executable is in 17992 shlibpath_var=PATH 17993 ;; 17994 17995darwin* | rhapsody*) 17996 dynamic_linker="$host_os dyld" 17997 version_type=darwin 17998 need_lib_prefix=no 17999 need_version=no 18000 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18001 soname_spec='$libname$release$major$shared_ext' 18002 shlibpath_overrides_runpath=yes 18003 shlibpath_var=DYLD_LIBRARY_PATH 18004 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18005 18006 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18008 ;; 18009 18010dgux*) 18011 version_type=linux # correct to gnu/linux during the next big refactor 18012 need_lib_prefix=no 18013 need_version=no 18014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18015 soname_spec='$libname$release$shared_ext$major' 18016 shlibpath_var=LD_LIBRARY_PATH 18017 ;; 18018 18019freebsd* | dragonfly* | midnightbsd*) 18020 # DragonFly does not have aout. When/if they implement a new 18021 # versioning mechanism, adjust this. 18022 if test -x /usr/bin/objformat; then 18023 objformat=`/usr/bin/objformat` 18024 else 18025 case $host_os in 18026 freebsd[23].*) objformat=aout ;; 18027 *) objformat=elf ;; 18028 esac 18029 fi 18030 version_type=freebsd-$objformat 18031 case $version_type in 18032 freebsd-elf*) 18033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18034 soname_spec='$libname$release$shared_ext$major' 18035 need_version=no 18036 need_lib_prefix=no 18037 ;; 18038 freebsd-*) 18039 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18040 need_version=yes 18041 ;; 18042 esac 18043 shlibpath_var=LD_LIBRARY_PATH 18044 case $host_os in 18045 freebsd2.*) 18046 shlibpath_overrides_runpath=yes 18047 ;; 18048 freebsd3.[01]* | freebsdelf3.[01]*) 18049 shlibpath_overrides_runpath=yes 18050 hardcode_into_libs=yes 18051 ;; 18052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18054 shlibpath_overrides_runpath=no 18055 hardcode_into_libs=yes 18056 ;; 18057 *) # from 4.6 on, and DragonFly 18058 shlibpath_overrides_runpath=yes 18059 hardcode_into_libs=yes 18060 ;; 18061 esac 18062 ;; 18063 18064haiku*) 18065 version_type=linux # correct to gnu/linux during the next big refactor 18066 need_lib_prefix=no 18067 need_version=no 18068 dynamic_linker="$host_os runtime_loader" 18069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18070 soname_spec='$libname$release$shared_ext$major' 18071 shlibpath_var=LIBRARY_PATH 18072 shlibpath_overrides_runpath=no 18073 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18074 hardcode_into_libs=yes 18075 ;; 18076 18077hpux9* | hpux10* | hpux11*) 18078 # Give a soname corresponding to the major version so that dld.sl refuses to 18079 # link against other versions. 18080 version_type=sunos 18081 need_lib_prefix=no 18082 need_version=no 18083 case $host_cpu in 18084 ia64*) 18085 shrext_cmds='.so' 18086 hardcode_into_libs=yes 18087 dynamic_linker="$host_os dld.so" 18088 shlibpath_var=LD_LIBRARY_PATH 18089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18091 soname_spec='$libname$release$shared_ext$major' 18092 if test 32 = "$HPUX_IA64_MODE"; then 18093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18094 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18095 else 18096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18097 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18098 fi 18099 ;; 18100 hppa*64*) 18101 shrext_cmds='.sl' 18102 hardcode_into_libs=yes 18103 dynamic_linker="$host_os dld.sl" 18104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18107 soname_spec='$libname$release$shared_ext$major' 18108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18110 ;; 18111 *) 18112 shrext_cmds='.sl' 18113 dynamic_linker="$host_os dld.sl" 18114 shlibpath_var=SHLIB_PATH 18115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18117 soname_spec='$libname$release$shared_ext$major' 18118 ;; 18119 esac 18120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18121 postinstall_cmds='chmod 555 $lib' 18122 # or fails outright, so override atomically: 18123 install_override_mode=555 18124 ;; 18125 18126interix[3-9]*) 18127 version_type=linux # correct to gnu/linux during the next big refactor 18128 need_lib_prefix=no 18129 need_version=no 18130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18131 soname_spec='$libname$release$shared_ext$major' 18132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18133 shlibpath_var=LD_LIBRARY_PATH 18134 shlibpath_overrides_runpath=no 18135 hardcode_into_libs=yes 18136 ;; 18137 18138irix5* | irix6* | nonstopux*) 18139 case $host_os in 18140 nonstopux*) version_type=nonstopux ;; 18141 *) 18142 if test yes = "$lt_cv_prog_gnu_ld"; then 18143 version_type=linux # correct to gnu/linux during the next big refactor 18144 else 18145 version_type=irix 18146 fi ;; 18147 esac 18148 need_lib_prefix=no 18149 need_version=no 18150 soname_spec='$libname$release$shared_ext$major' 18151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18152 case $host_os in 18153 irix5* | nonstopux*) 18154 libsuff= shlibsuff= 18155 ;; 18156 *) 18157 case $LD in # libtool.m4 will add one of these switches to LD 18158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18159 libsuff= shlibsuff= libmagic=32-bit;; 18160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18161 libsuff=32 shlibsuff=N32 libmagic=N32;; 18162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18163 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18164 *) libsuff= shlibsuff= libmagic=never-match;; 18165 esac 18166 ;; 18167 esac 18168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18169 shlibpath_overrides_runpath=no 18170 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18171 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18172 hardcode_into_libs=yes 18173 ;; 18174 18175# No shared lib support for Linux oldld, aout, or coff. 18176linux*oldld* | linux*aout* | linux*coff*) 18177 dynamic_linker=no 18178 ;; 18179 18180linux*android*) 18181 version_type=none # Android doesn't support versioned libraries. 18182 need_lib_prefix=no 18183 need_version=no 18184 library_names_spec='$libname$release$shared_ext' 18185 soname_spec='$libname$release$shared_ext' 18186 finish_cmds= 18187 shlibpath_var=LD_LIBRARY_PATH 18188 shlibpath_overrides_runpath=yes 18189 18190 # This implies no fast_install, which is unacceptable. 18191 # Some rework will be needed to allow for fast_install 18192 # before this can be enabled. 18193 hardcode_into_libs=yes 18194 18195 dynamic_linker='Android linker' 18196 # Don't embed -rpath directories since the linker doesn't support them. 18197 hardcode_libdir_flag_spec='-L$libdir' 18198 ;; 18199 18200# This must be glibc/ELF. 18201linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18202 version_type=linux # correct to gnu/linux during the next big refactor 18203 need_lib_prefix=no 18204 need_version=no 18205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18206 soname_spec='$libname$release$shared_ext$major' 18207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18208 shlibpath_var=LD_LIBRARY_PATH 18209 shlibpath_overrides_runpath=no 18210 18211 # Some binutils ld are patched to set DT_RUNPATH 18212 if test ${lt_cv_shlibpath_overrides_runpath+y} 18213then : 18214 printf %s "(cached) " >&6 18215else $as_nop 18216 lt_cv_shlibpath_overrides_runpath=no 18217 save_LDFLAGS=$LDFLAGS 18218 save_libdir=$libdir 18219 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18220 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18222/* end confdefs.h. */ 18223 18224int 18225main (void) 18226{ 18227 18228 ; 18229 return 0; 18230} 18231_ACEOF 18232if ac_fn_c_try_link "$LINENO" 18233then : 18234 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18235then : 18236 lt_cv_shlibpath_overrides_runpath=yes 18237fi 18238fi 18239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18240 conftest$ac_exeext conftest.$ac_ext 18241 LDFLAGS=$save_LDFLAGS 18242 libdir=$save_libdir 18243 18244fi 18245 18246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18247 18248 # This implies no fast_install, which is unacceptable. 18249 # Some rework will be needed to allow for fast_install 18250 # before this can be enabled. 18251 hardcode_into_libs=yes 18252 18253 # Ideally, we could use ldconfig to report *all* directores which are 18254 # searched for libraries, however this is still not possible. Aside from not 18255 # being certain /sbin/ldconfig is available, command 18256 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18257 # even though it is searched at run-time. Try to do the best guess by 18258 # appending ld.so.conf contents (and includes) to the search path. 18259 if test -f /etc/ld.so.conf; then 18260 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' ' '` 18261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18262 fi 18263 18264 # We used to test for /lib/ld.so.1 and disable shared libraries on 18265 # powerpc, because MkLinux only supported shared libraries with the 18266 # GNU dynamic linker. Since this was broken with cross compilers, 18267 # most powerpc-linux boxes support dynamic linking these days and 18268 # people can always --disable-shared, the test was removed, and we 18269 # assume the GNU/Linux dynamic linker is in use. 18270 dynamic_linker='GNU/Linux ld.so' 18271 ;; 18272 18273netbsd*) 18274 version_type=sunos 18275 need_lib_prefix=no 18276 need_version=no 18277 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18278 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18280 dynamic_linker='NetBSD (a.out) ld.so' 18281 else 18282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18283 soname_spec='$libname$release$shared_ext$major' 18284 dynamic_linker='NetBSD ld.elf_so' 18285 fi 18286 shlibpath_var=LD_LIBRARY_PATH 18287 shlibpath_overrides_runpath=yes 18288 hardcode_into_libs=yes 18289 ;; 18290 18291newsos6) 18292 version_type=linux # correct to gnu/linux during the next big refactor 18293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18294 shlibpath_var=LD_LIBRARY_PATH 18295 shlibpath_overrides_runpath=yes 18296 ;; 18297 18298*nto* | *qnx*) 18299 version_type=qnx 18300 need_lib_prefix=no 18301 need_version=no 18302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18303 soname_spec='$libname$release$shared_ext$major' 18304 shlibpath_var=LD_LIBRARY_PATH 18305 shlibpath_overrides_runpath=no 18306 hardcode_into_libs=yes 18307 dynamic_linker='ldqnx.so' 18308 ;; 18309 18310openbsd* | bitrig*) 18311 version_type=sunos 18312 sys_lib_dlsearch_path_spec=/usr/lib 18313 need_lib_prefix=no 18314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18315 need_version=no 18316 else 18317 need_version=yes 18318 fi 18319 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18321 shlibpath_var=LD_LIBRARY_PATH 18322 shlibpath_overrides_runpath=yes 18323 ;; 18324 18325os2*) 18326 libname_spec='$name' 18327 version_type=windows 18328 shrext_cmds=.dll 18329 need_version=no 18330 need_lib_prefix=no 18331 # OS/2 can only load a DLL with a base name of 8 characters or less. 18332 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18333 v=$($ECHO $release$versuffix | tr -d .-); 18334 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18335 $ECHO $n$v`$shared_ext' 18336 library_names_spec='${libname}_dll.$libext' 18337 dynamic_linker='OS/2 ld.exe' 18338 shlibpath_var=BEGINLIBPATH 18339 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18341 postinstall_cmds='base_file=`basename \$file`~ 18342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18343 dldir=$destdir/`dirname \$dlpath`~ 18344 test -d \$dldir || mkdir -p \$dldir~ 18345 $install_prog $dir/$dlname \$dldir/$dlname~ 18346 chmod a+x \$dldir/$dlname~ 18347 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18348 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18349 fi' 18350 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18351 dlpath=$dir/\$dldll~ 18352 $RM \$dlpath' 18353 ;; 18354 18355osf3* | osf4* | osf5*) 18356 version_type=osf 18357 need_lib_prefix=no 18358 need_version=no 18359 soname_spec='$libname$release$shared_ext$major' 18360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18361 shlibpath_var=LD_LIBRARY_PATH 18362 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18364 ;; 18365 18366rdos*) 18367 dynamic_linker=no 18368 ;; 18369 18370solaris*) 18371 version_type=linux # correct to gnu/linux during the next big refactor 18372 need_lib_prefix=no 18373 need_version=no 18374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18375 soname_spec='$libname$release$shared_ext$major' 18376 shlibpath_var=LD_LIBRARY_PATH 18377 shlibpath_overrides_runpath=yes 18378 hardcode_into_libs=yes 18379 # ldd complains unless libraries are executable 18380 postinstall_cmds='chmod +x $lib' 18381 ;; 18382 18383sunos4*) 18384 version_type=sunos 18385 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18387 shlibpath_var=LD_LIBRARY_PATH 18388 shlibpath_overrides_runpath=yes 18389 if test yes = "$with_gnu_ld"; then 18390 need_lib_prefix=no 18391 fi 18392 need_version=yes 18393 ;; 18394 18395sysv4 | sysv4.3*) 18396 version_type=linux # correct to gnu/linux during the next big refactor 18397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18398 soname_spec='$libname$release$shared_ext$major' 18399 shlibpath_var=LD_LIBRARY_PATH 18400 case $host_vendor in 18401 sni) 18402 shlibpath_overrides_runpath=no 18403 need_lib_prefix=no 18404 runpath_var=LD_RUN_PATH 18405 ;; 18406 siemens) 18407 need_lib_prefix=no 18408 ;; 18409 motorola) 18410 need_lib_prefix=no 18411 need_version=no 18412 shlibpath_overrides_runpath=no 18413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18414 ;; 18415 esac 18416 ;; 18417 18418sysv4*MP*) 18419 if test -d /usr/nec; then 18420 version_type=linux # correct to gnu/linux during the next big refactor 18421 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18422 soname_spec='$libname$shared_ext.$major' 18423 shlibpath_var=LD_LIBRARY_PATH 18424 fi 18425 ;; 18426 18427sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18428 version_type=sco 18429 need_lib_prefix=no 18430 need_version=no 18431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18432 soname_spec='$libname$release$shared_ext$major' 18433 shlibpath_var=LD_LIBRARY_PATH 18434 shlibpath_overrides_runpath=yes 18435 hardcode_into_libs=yes 18436 if test yes = "$with_gnu_ld"; then 18437 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18438 else 18439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18440 case $host_os in 18441 sco3.2v5*) 18442 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18443 ;; 18444 esac 18445 fi 18446 sys_lib_dlsearch_path_spec='/usr/lib' 18447 ;; 18448 18449tpf*) 18450 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18451 version_type=linux # correct to gnu/linux during the next big refactor 18452 need_lib_prefix=no 18453 need_version=no 18454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18455 shlibpath_var=LD_LIBRARY_PATH 18456 shlibpath_overrides_runpath=no 18457 hardcode_into_libs=yes 18458 ;; 18459 18460uts4*) 18461 version_type=linux # correct to gnu/linux during the next big refactor 18462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18463 soname_spec='$libname$release$shared_ext$major' 18464 shlibpath_var=LD_LIBRARY_PATH 18465 ;; 18466 18467*) 18468 dynamic_linker=no 18469 ;; 18470esac 18471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18472printf "%s\n" "$dynamic_linker" >&6; } 18473test no = "$dynamic_linker" && can_build_shared=no 18474 18475variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18476if test yes = "$GCC"; then 18477 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18478fi 18479 18480if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18481 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18482fi 18483 18484if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18485 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18486fi 18487 18488# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18489configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18490 18491# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18492func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18493 18494# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18495configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18594printf %s "checking how to hardcode library paths into programs... " >&6; } 18595hardcode_action= 18596if test -n "$hardcode_libdir_flag_spec" || 18597 test -n "$runpath_var" || 18598 test yes = "$hardcode_automatic"; then 18599 18600 # We can hardcode non-existent directories. 18601 if test no != "$hardcode_direct" && 18602 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18603 # have to relink, otherwise we might link with an installed library 18604 # when we should be linking with a yet-to-be-installed one 18605 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18606 test no != "$hardcode_minus_L"; then 18607 # Linking always hardcodes the temporary library directory. 18608 hardcode_action=relink 18609 else 18610 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18611 hardcode_action=immediate 18612 fi 18613else 18614 # We cannot hardcode anything, or else we can only hardcode existing 18615 # directories. 18616 hardcode_action=unsupported 18617fi 18618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18619printf "%s\n" "$hardcode_action" >&6; } 18620 18621if test relink = "$hardcode_action" || 18622 test yes = "$inherit_rpath"; then 18623 # Fast installation is not supported 18624 enable_fast_install=no 18625elif test yes = "$shlibpath_overrides_runpath" || 18626 test no = "$enable_shared"; then 18627 # Fast installation is not necessary 18628 enable_fast_install=needless 18629fi 18630 18631 18632 18633 18634 18635 18636 if test yes != "$enable_dlopen"; then 18637 enable_dlopen=unknown 18638 enable_dlopen_self=unknown 18639 enable_dlopen_self_static=unknown 18640else 18641 lt_cv_dlopen=no 18642 lt_cv_dlopen_libs= 18643 18644 case $host_os in 18645 beos*) 18646 lt_cv_dlopen=load_add_on 18647 lt_cv_dlopen_libs= 18648 lt_cv_dlopen_self=yes 18649 ;; 18650 18651 mingw* | pw32* | cegcc*) 18652 lt_cv_dlopen=LoadLibrary 18653 lt_cv_dlopen_libs= 18654 ;; 18655 18656 cygwin*) 18657 lt_cv_dlopen=dlopen 18658 lt_cv_dlopen_libs= 18659 ;; 18660 18661 darwin*) 18662 # if libdl is installed we need to link against it 18663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18664printf %s "checking for dlopen in -ldl... " >&6; } 18665if test ${ac_cv_lib_dl_dlopen+y} 18666then : 18667 printf %s "(cached) " >&6 18668else $as_nop 18669 ac_check_lib_save_LIBS=$LIBS 18670LIBS="-ldl $LIBS" 18671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18672/* end confdefs.h. */ 18673 18674/* Override any GCC internal prototype to avoid an error. 18675 Use char because int might match the return type of a GCC 18676 builtin and then its argument prototype would still apply. */ 18677char dlopen (); 18678int 18679main (void) 18680{ 18681return dlopen (); 18682 ; 18683 return 0; 18684} 18685_ACEOF 18686if ac_fn_c_try_link "$LINENO" 18687then : 18688 ac_cv_lib_dl_dlopen=yes 18689else $as_nop 18690 ac_cv_lib_dl_dlopen=no 18691fi 18692rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18693 conftest$ac_exeext conftest.$ac_ext 18694LIBS=$ac_check_lib_save_LIBS 18695fi 18696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18697printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18698if test "x$ac_cv_lib_dl_dlopen" = xyes 18699then : 18700 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18701else $as_nop 18702 18703 lt_cv_dlopen=dyld 18704 lt_cv_dlopen_libs= 18705 lt_cv_dlopen_self=yes 18706 18707fi 18708 18709 ;; 18710 18711 tpf*) 18712 # Don't try to run any link tests for TPF. We know it's impossible 18713 # because TPF is a cross-compiler, and we know how we open DSOs. 18714 lt_cv_dlopen=dlopen 18715 lt_cv_dlopen_libs= 18716 lt_cv_dlopen_self=no 18717 ;; 18718 18719 *) 18720 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18721if test "x$ac_cv_func_shl_load" = xyes 18722then : 18723 lt_cv_dlopen=shl_load 18724else $as_nop 18725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18726printf %s "checking for shl_load in -ldld... " >&6; } 18727if test ${ac_cv_lib_dld_shl_load+y} 18728then : 18729 printf %s "(cached) " >&6 18730else $as_nop 18731 ac_check_lib_save_LIBS=$LIBS 18732LIBS="-ldld $LIBS" 18733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18734/* end confdefs.h. */ 18735 18736/* Override any GCC internal prototype to avoid an error. 18737 Use char because int might match the return type of a GCC 18738 builtin and then its argument prototype would still apply. */ 18739char shl_load (); 18740int 18741main (void) 18742{ 18743return shl_load (); 18744 ; 18745 return 0; 18746} 18747_ACEOF 18748if ac_fn_c_try_link "$LINENO" 18749then : 18750 ac_cv_lib_dld_shl_load=yes 18751else $as_nop 18752 ac_cv_lib_dld_shl_load=no 18753fi 18754rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18755 conftest$ac_exeext conftest.$ac_ext 18756LIBS=$ac_check_lib_save_LIBS 18757fi 18758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18759printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18760if test "x$ac_cv_lib_dld_shl_load" = xyes 18761then : 18762 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18763else $as_nop 18764 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18765if test "x$ac_cv_func_dlopen" = xyes 18766then : 18767 lt_cv_dlopen=dlopen 18768else $as_nop 18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18770printf %s "checking for dlopen in -ldl... " >&6; } 18771if test ${ac_cv_lib_dl_dlopen+y} 18772then : 18773 printf %s "(cached) " >&6 18774else $as_nop 18775 ac_check_lib_save_LIBS=$LIBS 18776LIBS="-ldl $LIBS" 18777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18778/* end confdefs.h. */ 18779 18780/* Override any GCC internal prototype to avoid an error. 18781 Use char because int might match the return type of a GCC 18782 builtin and then its argument prototype would still apply. */ 18783char dlopen (); 18784int 18785main (void) 18786{ 18787return dlopen (); 18788 ; 18789 return 0; 18790} 18791_ACEOF 18792if ac_fn_c_try_link "$LINENO" 18793then : 18794 ac_cv_lib_dl_dlopen=yes 18795else $as_nop 18796 ac_cv_lib_dl_dlopen=no 18797fi 18798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18799 conftest$ac_exeext conftest.$ac_ext 18800LIBS=$ac_check_lib_save_LIBS 18801fi 18802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18803printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18804if test "x$ac_cv_lib_dl_dlopen" = xyes 18805then : 18806 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18807else $as_nop 18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18809printf %s "checking for dlopen in -lsvld... " >&6; } 18810if test ${ac_cv_lib_svld_dlopen+y} 18811then : 18812 printf %s "(cached) " >&6 18813else $as_nop 18814 ac_check_lib_save_LIBS=$LIBS 18815LIBS="-lsvld $LIBS" 18816cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18817/* end confdefs.h. */ 18818 18819/* Override any GCC internal prototype to avoid an error. 18820 Use char because int might match the return type of a GCC 18821 builtin and then its argument prototype would still apply. */ 18822char dlopen (); 18823int 18824main (void) 18825{ 18826return dlopen (); 18827 ; 18828 return 0; 18829} 18830_ACEOF 18831if ac_fn_c_try_link "$LINENO" 18832then : 18833 ac_cv_lib_svld_dlopen=yes 18834else $as_nop 18835 ac_cv_lib_svld_dlopen=no 18836fi 18837rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18838 conftest$ac_exeext conftest.$ac_ext 18839LIBS=$ac_check_lib_save_LIBS 18840fi 18841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18842printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18843if test "x$ac_cv_lib_svld_dlopen" = xyes 18844then : 18845 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18846else $as_nop 18847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18848printf %s "checking for dld_link in -ldld... " >&6; } 18849if test ${ac_cv_lib_dld_dld_link+y} 18850then : 18851 printf %s "(cached) " >&6 18852else $as_nop 18853 ac_check_lib_save_LIBS=$LIBS 18854LIBS="-ldld $LIBS" 18855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18856/* end confdefs.h. */ 18857 18858/* Override any GCC internal prototype to avoid an error. 18859 Use char because int might match the return type of a GCC 18860 builtin and then its argument prototype would still apply. */ 18861char dld_link (); 18862int 18863main (void) 18864{ 18865return dld_link (); 18866 ; 18867 return 0; 18868} 18869_ACEOF 18870if ac_fn_c_try_link "$LINENO" 18871then : 18872 ac_cv_lib_dld_dld_link=yes 18873else $as_nop 18874 ac_cv_lib_dld_dld_link=no 18875fi 18876rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18877 conftest$ac_exeext conftest.$ac_ext 18878LIBS=$ac_check_lib_save_LIBS 18879fi 18880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18881printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18882if test "x$ac_cv_lib_dld_dld_link" = xyes 18883then : 18884 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18885fi 18886 18887 18888fi 18889 18890 18891fi 18892 18893 18894fi 18895 18896 18897fi 18898 18899 18900fi 18901 18902 ;; 18903 esac 18904 18905 if test no = "$lt_cv_dlopen"; then 18906 enable_dlopen=no 18907 else 18908 enable_dlopen=yes 18909 fi 18910 18911 case $lt_cv_dlopen in 18912 dlopen) 18913 save_CPPFLAGS=$CPPFLAGS 18914 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18915 18916 save_LDFLAGS=$LDFLAGS 18917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18918 18919 save_LIBS=$LIBS 18920 LIBS="$lt_cv_dlopen_libs $LIBS" 18921 18922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18923printf %s "checking whether a program can dlopen itself... " >&6; } 18924if test ${lt_cv_dlopen_self+y} 18925then : 18926 printf %s "(cached) " >&6 18927else $as_nop 18928 if test yes = "$cross_compiling"; then : 18929 lt_cv_dlopen_self=cross 18930else 18931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18932 lt_status=$lt_dlunknown 18933 cat > conftest.$ac_ext <<_LT_EOF 18934#line $LINENO "configure" 18935#include "confdefs.h" 18936 18937#if HAVE_DLFCN_H 18938#include <dlfcn.h> 18939#endif 18940 18941#include <stdio.h> 18942 18943#ifdef RTLD_GLOBAL 18944# define LT_DLGLOBAL RTLD_GLOBAL 18945#else 18946# ifdef DL_GLOBAL 18947# define LT_DLGLOBAL DL_GLOBAL 18948# else 18949# define LT_DLGLOBAL 0 18950# endif 18951#endif 18952 18953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18954 find out it does not work in some platform. */ 18955#ifndef LT_DLLAZY_OR_NOW 18956# ifdef RTLD_LAZY 18957# define LT_DLLAZY_OR_NOW RTLD_LAZY 18958# else 18959# ifdef DL_LAZY 18960# define LT_DLLAZY_OR_NOW DL_LAZY 18961# else 18962# ifdef RTLD_NOW 18963# define LT_DLLAZY_OR_NOW RTLD_NOW 18964# else 18965# ifdef DL_NOW 18966# define LT_DLLAZY_OR_NOW DL_NOW 18967# else 18968# define LT_DLLAZY_OR_NOW 0 18969# endif 18970# endif 18971# endif 18972# endif 18973#endif 18974 18975/* When -fvisibility=hidden is used, assume the code has been annotated 18976 correspondingly for the symbols needed. */ 18977#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18978int fnord () __attribute__((visibility("default"))); 18979#endif 18980 18981int fnord () { return 42; } 18982int main () 18983{ 18984 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18985 int status = $lt_dlunknown; 18986 18987 if (self) 18988 { 18989 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18990 else 18991 { 18992 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18993 else puts (dlerror ()); 18994 } 18995 /* dlclose (self); */ 18996 } 18997 else 18998 puts (dlerror ()); 18999 19000 return status; 19001} 19002_LT_EOF 19003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19004 (eval $ac_link) 2>&5 19005 ac_status=$? 19006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19007 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19008 (./conftest; exit; ) >&5 2>/dev/null 19009 lt_status=$? 19010 case x$lt_status in 19011 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19012 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19013 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19014 esac 19015 else : 19016 # compilation failed 19017 lt_cv_dlopen_self=no 19018 fi 19019fi 19020rm -fr conftest* 19021 19022 19023fi 19024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19025printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19026 19027 if test yes = "$lt_cv_dlopen_self"; then 19028 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19030printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19031if test ${lt_cv_dlopen_self_static+y} 19032then : 19033 printf %s "(cached) " >&6 19034else $as_nop 19035 if test yes = "$cross_compiling"; then : 19036 lt_cv_dlopen_self_static=cross 19037else 19038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19039 lt_status=$lt_dlunknown 19040 cat > conftest.$ac_ext <<_LT_EOF 19041#line $LINENO "configure" 19042#include "confdefs.h" 19043 19044#if HAVE_DLFCN_H 19045#include <dlfcn.h> 19046#endif 19047 19048#include <stdio.h> 19049 19050#ifdef RTLD_GLOBAL 19051# define LT_DLGLOBAL RTLD_GLOBAL 19052#else 19053# ifdef DL_GLOBAL 19054# define LT_DLGLOBAL DL_GLOBAL 19055# else 19056# define LT_DLGLOBAL 0 19057# endif 19058#endif 19059 19060/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19061 find out it does not work in some platform. */ 19062#ifndef LT_DLLAZY_OR_NOW 19063# ifdef RTLD_LAZY 19064# define LT_DLLAZY_OR_NOW RTLD_LAZY 19065# else 19066# ifdef DL_LAZY 19067# define LT_DLLAZY_OR_NOW DL_LAZY 19068# else 19069# ifdef RTLD_NOW 19070# define LT_DLLAZY_OR_NOW RTLD_NOW 19071# else 19072# ifdef DL_NOW 19073# define LT_DLLAZY_OR_NOW DL_NOW 19074# else 19075# define LT_DLLAZY_OR_NOW 0 19076# endif 19077# endif 19078# endif 19079# endif 19080#endif 19081 19082/* When -fvisibility=hidden is used, assume the code has been annotated 19083 correspondingly for the symbols needed. */ 19084#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19085int fnord () __attribute__((visibility("default"))); 19086#endif 19087 19088int fnord () { return 42; } 19089int main () 19090{ 19091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19092 int status = $lt_dlunknown; 19093 19094 if (self) 19095 { 19096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19097 else 19098 { 19099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19100 else puts (dlerror ()); 19101 } 19102 /* dlclose (self); */ 19103 } 19104 else 19105 puts (dlerror ()); 19106 19107 return status; 19108} 19109_LT_EOF 19110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19111 (eval $ac_link) 2>&5 19112 ac_status=$? 19113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19114 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19115 (./conftest; exit; ) >&5 2>/dev/null 19116 lt_status=$? 19117 case x$lt_status in 19118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19120 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19121 esac 19122 else : 19123 # compilation failed 19124 lt_cv_dlopen_self_static=no 19125 fi 19126fi 19127rm -fr conftest* 19128 19129 19130fi 19131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19132printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19133 fi 19134 19135 CPPFLAGS=$save_CPPFLAGS 19136 LDFLAGS=$save_LDFLAGS 19137 LIBS=$save_LIBS 19138 ;; 19139 esac 19140 19141 case $lt_cv_dlopen_self in 19142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19143 *) enable_dlopen_self=unknown ;; 19144 esac 19145 19146 case $lt_cv_dlopen_self_static in 19147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19148 *) enable_dlopen_self_static=unknown ;; 19149 esac 19150fi 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168striplib= 19169old_striplib= 19170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19171printf %s "checking whether stripping libraries is possible... " >&6; } 19172if test -z "$STRIP"; then 19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19174printf "%s\n" "no" >&6; } 19175else 19176 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19177 old_striplib="$STRIP --strip-debug" 19178 striplib="$STRIP --strip-unneeded" 19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19180printf "%s\n" "yes" >&6; } 19181 else 19182 case $host_os in 19183 darwin*) 19184 # FIXME - insert some real tests, host_os isn't really good enough 19185 striplib="$STRIP -x" 19186 old_striplib="$STRIP -S" 19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19188printf "%s\n" "yes" >&6; } 19189 ;; 19190 freebsd*) 19191 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19192 old_striplib="$STRIP --strip-debug" 19193 striplib="$STRIP --strip-unneeded" 19194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19195printf "%s\n" "yes" >&6; } 19196 else 19197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19198printf "%s\n" "no" >&6; } 19199 fi 19200 ;; 19201 *) 19202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19203printf "%s\n" "no" >&6; } 19204 ;; 19205 esac 19206 fi 19207fi 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 # Report what library types will actually be built 19221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19222printf %s "checking if libtool supports shared libraries... " >&6; } 19223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19224printf "%s\n" "$can_build_shared" >&6; } 19225 19226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19227printf %s "checking whether to build shared libraries... " >&6; } 19228 test no = "$can_build_shared" && enable_shared=no 19229 19230 # On AIX, shared libraries and static libraries use the same namespace, and 19231 # are all built from PIC. 19232 case $host_os in 19233 aix3*) 19234 test yes = "$enable_shared" && enable_static=no 19235 if test -n "$RANLIB"; then 19236 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19237 postinstall_cmds='$RANLIB $lib' 19238 fi 19239 ;; 19240 19241 aix[4-9]*) 19242 if test ia64 != "$host_cpu"; then 19243 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19244 yes,aix,yes) ;; # shared object as lib.so file only 19245 yes,svr4,*) ;; # shared object as lib.so archive member only 19246 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19247 esac 19248 fi 19249 ;; 19250 esac 19251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19252printf "%s\n" "$enable_shared" >&6; } 19253 19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19255printf %s "checking whether to build static libraries... " >&6; } 19256 # Make sure either enable_shared or enable_static is yes. 19257 test yes = "$enable_shared" || enable_static=yes 19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19259printf "%s\n" "$enable_static" >&6; } 19260 19261 19262 19263 19264fi 19265ac_ext=c 19266ac_cpp='$CPP $CPPFLAGS' 19267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19269ac_compiler_gnu=$ac_cv_c_compiler_gnu 19270 19271CC=$lt_save_CC 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 ac_config_commands="$ac_config_commands libtool" 19288 19289 19290 19291 19292# Only expand once: 19293 19294 19295 19296 19297 19298# Define a configure option for an alternate module directory 19299 19300# Check whether --with-xorg-module-dir was given. 19301if test ${with_xorg_module_dir+y} 19302then : 19303 withval=$with_xorg_module_dir; moduledir="$withval" 19304else $as_nop 19305 moduledir="$libdir/xorg/modules" 19306fi 19307 19308 19309# Obtain compiler/linker options for the driver dependencies 19310 19311pkg_failed=no 19312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19313printf %s "checking for XORG... " >&6; } 19314 19315if test -n "$XORG_CFLAGS"; then 19316 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19317 elif test -n "$PKG_CONFIG"; then 19318 if test -n "$PKG_CONFIG" && \ 19319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19320 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19321 ac_status=$? 19322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19323 test $ac_status = 0; }; then 19324 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19325 test "x$?" != "x0" && pkg_failed=yes 19326else 19327 pkg_failed=yes 19328fi 19329 else 19330 pkg_failed=untried 19331fi 19332if test -n "$XORG_LIBS"; then 19333 pkg_cv_XORG_LIBS="$XORG_LIBS" 19334 elif test -n "$PKG_CONFIG"; then 19335 if test -n "$PKG_CONFIG" && \ 19336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19337 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19338 ac_status=$? 19339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19340 test $ac_status = 0; }; then 19341 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19342 test "x$?" != "x0" && pkg_failed=yes 19343else 19344 pkg_failed=yes 19345fi 19346 else 19347 pkg_failed=untried 19348fi 19349 19350 19351 19352if test $pkg_failed = yes; then 19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19354printf "%s\n" "no" >&6; } 19355 19356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19357 _pkg_short_errors_supported=yes 19358else 19359 _pkg_short_errors_supported=no 19360fi 19361 if test $_pkg_short_errors_supported = yes; then 19362 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19363 else 19364 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19365 fi 19366 # Put the nasty error message in config.log where it belongs 19367 echo "$XORG_PKG_ERRORS" >&5 19368 19369 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19370 19371$XORG_PKG_ERRORS 19372 19373Consider adjusting the PKG_CONFIG_PATH environment variable if you 19374installed software in a non-standard prefix. 19375 19376Alternatively, you may set the environment variables XORG_CFLAGS 19377and XORG_LIBS to avoid the need to call pkg-config. 19378See the pkg-config man page for more details." "$LINENO" 5 19379elif test $pkg_failed = untried; then 19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19381printf "%s\n" "no" >&6; } 19382 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19383printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19384as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19385is in your PATH or set the PKG_CONFIG environment variable to the full 19386path to pkg-config. 19387 19388Alternatively, you may set the environment variables XORG_CFLAGS 19389and XORG_LIBS to avoid the need to call pkg-config. 19390See the pkg-config man page for more details. 19391 19392To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19393See \`config.log' for more details" "$LINENO" 5; } 19394else 19395 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19396 XORG_LIBS=$pkg_cv_XORG_LIBS 19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19398printf "%s\n" "yes" >&6; } 19399 19400fi 19401 19402save_CFLAGS="$CFLAGS" 19403CFLAGS="$XORG_CFLAGS" 19404ac_fn_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\" 19405" "$ac_c_undeclared_builtin_options" "CFLAGS" 19406if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes 19407then : 19408 19409printf "%s\n" "#define HAVE_ISA 1" >>confdefs.h 19410 19411fi 19412CFLAGS="$save_CFLAGS" 19413 19414# Checks for libraries. 19415SAVE_CPPFLAGS="$CPPFLAGS" 19416CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 19417ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19418" "$ac_c_undeclared_builtin_options" "CFLAGS" 19419if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19420then : 19421 XSERVER_LIBPCIACCESS=yes 19422else $as_nop 19423 XSERVER_LIBPCIACCESS=no 19424fi 19425CPPFLAGS="$SAVE_CPPFLAGS" 19426 19427# Check whether --enable-xaa was given. 19428if test ${enable_xaa+y} 19429then : 19430 enableval=$enable_xaa; XAA="$enableval" 19431else $as_nop 19432 XAA=auto 19433fi 19434 19435if test "x$XAA" != xno; then 19436 save_CFLAGS=$CFLAGS 19437 save_CPPFLAGS=$CPPFLAGS 19438 CFLAGS=$XORG_CFLAGS 19439 CPPFLAGS="$XORG_CFLAGS" 19440 for ac_header in xaa.h 19441do : 19442 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 19443if test "x$ac_cv_header_xaa_h" = xyes 19444then : 19445 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 19446 XAA=yes 19447else $as_nop 19448 XAA=no 19449fi 19450 19451done 19452 CFLAGS=$save_CFLAGS 19453 CPPFLAGS=$save_CPPFLAGS 19454fi 19455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 19456printf %s "checking whether to include XAA support... " >&6; } 19457 if test "x$XAA" = xyes; then 19458 XAA_TRUE= 19459 XAA_FALSE='#' 19460else 19461 XAA_TRUE='#' 19462 XAA_FALSE= 19463fi 19464 19465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 19466printf "%s\n" "$XAA" >&6; } 19467 19468if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19469 19470pkg_failed=no 19471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19472printf %s "checking for PCIACCESS... " >&6; } 19473 19474if test -n "$PCIACCESS_CFLAGS"; then 19475 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19476 elif test -n "$PKG_CONFIG"; then 19477 if test -n "$PKG_CONFIG" && \ 19478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 19479 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 19480 ac_status=$? 19481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19482 test $ac_status = 0; }; then 19483 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 19484 test "x$?" != "x0" && pkg_failed=yes 19485else 19486 pkg_failed=yes 19487fi 19488 else 19489 pkg_failed=untried 19490fi 19491if test -n "$PCIACCESS_LIBS"; then 19492 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 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 \"pciaccess >= 0.8.0\""; } >&5 19496 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 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_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 19501 test "x$?" != "x0" && pkg_failed=yes 19502else 19503 pkg_failed=yes 19504fi 19505 else 19506 pkg_failed=untried 19507fi 19508 19509 19510 19511if test $pkg_failed = yes; then 19512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19513printf "%s\n" "no" >&6; } 19514 19515if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19516 _pkg_short_errors_supported=yes 19517else 19518 _pkg_short_errors_supported=no 19519fi 19520 if test $_pkg_short_errors_supported = yes; then 19521 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19522 else 19523 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 19524 fi 19525 # Put the nasty error message in config.log where it belongs 19526 echo "$PCIACCESS_PKG_ERRORS" >&5 19527 19528 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 19529 19530$PCIACCESS_PKG_ERRORS 19531 19532Consider adjusting the PKG_CONFIG_PATH environment variable if you 19533installed software in a non-standard prefix. 19534 19535Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19536and PCIACCESS_LIBS to avoid the need to call pkg-config. 19537See the pkg-config man page for more details." "$LINENO" 5 19538elif test $pkg_failed = untried; then 19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19540printf "%s\n" "no" >&6; } 19541 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19542printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19543as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19544is in your PATH or set the PKG_CONFIG environment variable to the full 19545path to pkg-config. 19546 19547Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19548and PCIACCESS_LIBS to avoid the need to call pkg-config. 19549See the pkg-config man page for more details. 19550 19551To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19552See \`config.log' for more details" "$LINENO" 5; } 19553else 19554 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19555 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19557printf "%s\n" "yes" >&6; } 19558 19559fi 19560 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 19561fi 19562 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19563 XSERVER_LIBPCIACCESS_TRUE= 19564 XSERVER_LIBPCIACCESS_FALSE='#' 19565else 19566 XSERVER_LIBPCIACCESS_TRUE='#' 19567 XSERVER_LIBPCIACCESS_FALSE= 19568fi 19569 19570 19571 19572 19573DRIVER_NAME=neomagic 19574 19575 19576ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19577 19578cat >confcache <<\_ACEOF 19579# This file is a shell script that caches the results of configure 19580# tests run on this system so they can be shared between configure 19581# scripts and configure runs, see configure's option --config-cache. 19582# It is not useful on other systems. If it contains results you don't 19583# want to keep, you may remove or edit it. 19584# 19585# config.status only pays attention to the cache file if you give it 19586# the --recheck option to rerun configure. 19587# 19588# `ac_cv_env_foo' variables (set or unset) will be overridden when 19589# loading this file, other *unset* `ac_cv_foo' will be assigned the 19590# following values. 19591 19592_ACEOF 19593 19594# The following way of writing the cache mishandles newlines in values, 19595# but we know of no workaround that is simple, portable, and efficient. 19596# So, we kill variables containing newlines. 19597# Ultrix sh set writes to stderr and can't be redirected directly, 19598# and sets the high bit in the cache file unless we assign to the vars. 19599( 19600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19601 eval ac_val=\$$ac_var 19602 case $ac_val in #( 19603 *${as_nl}*) 19604 case $ac_var in #( 19605 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19606printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19607 esac 19608 case $ac_var in #( 19609 _ | IFS | as_nl) ;; #( 19610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19611 *) { eval $ac_var=; unset $ac_var;} ;; 19612 esac ;; 19613 esac 19614 done 19615 19616 (set) 2>&1 | 19617 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19618 *${as_nl}ac_space=\ *) 19619 # `set' does not quote correctly, so add quotes: double-quote 19620 # substitution turns \\\\ into \\, and sed turns \\ into \. 19621 sed -n \ 19622 "s/'/'\\\\''/g; 19623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19624 ;; #( 19625 *) 19626 # `set' quotes correctly as required by POSIX, so do not add quotes. 19627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19628 ;; 19629 esac | 19630 sort 19631) | 19632 sed ' 19633 /^ac_cv_env_/b end 19634 t clear 19635 :clear 19636 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19637 t end 19638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19639 :end' >>confcache 19640if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19641 if test -w "$cache_file"; then 19642 if test "x$cache_file" != "x/dev/null"; then 19643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19644printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19645 if test ! -f "$cache_file" || test -h "$cache_file"; then 19646 cat confcache >"$cache_file" 19647 else 19648 case $cache_file in #( 19649 */* | ?:*) 19650 mv -f confcache "$cache_file"$$ && 19651 mv -f "$cache_file"$$ "$cache_file" ;; #( 19652 *) 19653 mv -f confcache "$cache_file" ;; 19654 esac 19655 fi 19656 fi 19657 else 19658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19659printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19660 fi 19661fi 19662rm -f confcache 19663 19664test "x$prefix" = xNONE && prefix=$ac_default_prefix 19665# Let make expand exec_prefix. 19666test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19667 19668DEFS=-DHAVE_CONFIG_H 19669 19670ac_libobjs= 19671ac_ltlibobjs= 19672U= 19673for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19674 # 1. Remove the extension, and $U if already installed. 19675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19676 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19678 # will be set to the directory where LIBOBJS objects are built. 19679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19681done 19682LIBOBJS=$ac_libobjs 19683 19684LTLIBOBJS=$ac_ltlibobjs 19685 19686 19687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19688printf %s "checking that generated files are newer than configure... " >&6; } 19689 if test -n "$am_sleep_pid"; then 19690 # Hide warnings about reused PIDs. 19691 wait $am_sleep_pid 2>/dev/null 19692 fi 19693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19694printf "%s\n" "done" >&6; } 19695 if test -n "$EXEEXT"; then 19696 am__EXEEXT_TRUE= 19697 am__EXEEXT_FALSE='#' 19698else 19699 am__EXEEXT_TRUE='#' 19700 am__EXEEXT_FALSE= 19701fi 19702 19703if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19704 as_fn_error $? "conditional \"AMDEP\" was never defined. 19705Usually this means the macro was only invoked conditionally." "$LINENO" 5 19706fi 19707if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19708 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19709Usually this means the macro was only invoked conditionally." "$LINENO" 5 19710fi 19711if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 19712 as_fn_error $? "conditional \"XAA\" was never defined. 19713Usually this means the macro was only invoked conditionally." "$LINENO" 5 19714fi 19715if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 19716 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 19717Usually this means the macro was only invoked conditionally." "$LINENO" 5 19718fi 19719 19720: "${CONFIG_STATUS=./config.status}" 19721ac_write_fail=0 19722ac_clean_files_save=$ac_clean_files 19723ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19725printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19726as_write_fail=0 19727cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19728#! $SHELL 19729# Generated by $as_me. 19730# Run this file to recreate the current configuration. 19731# Compiler output produced by configure, useful for debugging 19732# configure, is in config.log if it exists. 19733 19734debug=false 19735ac_cs_recheck=false 19736ac_cs_silent=false 19737 19738SHELL=\${CONFIG_SHELL-$SHELL} 19739export SHELL 19740_ASEOF 19741cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19742## -------------------- ## 19743## M4sh Initialization. ## 19744## -------------------- ## 19745 19746# Be more Bourne compatible 19747DUALCASE=1; export DUALCASE # for MKS sh 19748as_nop=: 19749if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19750then : 19751 emulate sh 19752 NULLCMD=: 19753 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19754 # is contrary to our usage. Disable this feature. 19755 alias -g '${1+"$@"}'='"$@"' 19756 setopt NO_GLOB_SUBST 19757else $as_nop 19758 case `(set -o) 2>/dev/null` in #( 19759 *posix*) : 19760 set -o posix ;; #( 19761 *) : 19762 ;; 19763esac 19764fi 19765 19766 19767 19768# Reset variables that may have inherited troublesome values from 19769# the environment. 19770 19771# IFS needs to be set, to space, tab, and newline, in precisely that order. 19772# (If _AS_PATH_WALK were called with IFS unset, it would have the 19773# side effect of setting IFS to empty, thus disabling word splitting.) 19774# Quoting is to prevent editors from complaining about space-tab. 19775as_nl=' 19776' 19777export as_nl 19778IFS=" "" $as_nl" 19779 19780PS1='$ ' 19781PS2='> ' 19782PS4='+ ' 19783 19784# Ensure predictable behavior from utilities with locale-dependent output. 19785LC_ALL=C 19786export LC_ALL 19787LANGUAGE=C 19788export LANGUAGE 19789 19790# We cannot yet rely on "unset" to work, but we need these variables 19791# to be unset--not just set to an empty or harmless value--now, to 19792# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19793# also avoids known problems related to "unset" and subshell syntax 19794# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19795for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19796do eval test \${$as_var+y} \ 19797 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19798done 19799 19800# Ensure that fds 0, 1, and 2 are open. 19801if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19802if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19803if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19804 19805# The user is always right. 19806if ${PATH_SEPARATOR+false} :; then 19807 PATH_SEPARATOR=: 19808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19809 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19810 PATH_SEPARATOR=';' 19811 } 19812fi 19813 19814 19815# Find who we are. Look in the path if we contain no directory separator. 19816as_myself= 19817case $0 in #(( 19818 *[\\/]* ) as_myself=$0 ;; 19819 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19820for as_dir in $PATH 19821do 19822 IFS=$as_save_IFS 19823 case $as_dir in #((( 19824 '') as_dir=./ ;; 19825 */) ;; 19826 *) as_dir=$as_dir/ ;; 19827 esac 19828 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19829 done 19830IFS=$as_save_IFS 19831 19832 ;; 19833esac 19834# We did not find ourselves, most probably we were run as `sh COMMAND' 19835# in which case we are not to be found in the path. 19836if test "x$as_myself" = x; then 19837 as_myself=$0 19838fi 19839if test ! -f "$as_myself"; then 19840 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19841 exit 1 19842fi 19843 19844 19845 19846# as_fn_error STATUS ERROR [LINENO LOG_FD] 19847# ---------------------------------------- 19848# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19849# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19850# script with STATUS, using 1 if that was 0. 19851as_fn_error () 19852{ 19853 as_status=$1; test $as_status -eq 0 && as_status=1 19854 if test "$4"; then 19855 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19857 fi 19858 printf "%s\n" "$as_me: error: $2" >&2 19859 as_fn_exit $as_status 19860} # as_fn_error 19861 19862 19863 19864# as_fn_set_status STATUS 19865# ----------------------- 19866# Set $? to STATUS, without forking. 19867as_fn_set_status () 19868{ 19869 return $1 19870} # as_fn_set_status 19871 19872# as_fn_exit STATUS 19873# ----------------- 19874# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19875as_fn_exit () 19876{ 19877 set +e 19878 as_fn_set_status $1 19879 exit $1 19880} # as_fn_exit 19881 19882# as_fn_unset VAR 19883# --------------- 19884# Portably unset VAR. 19885as_fn_unset () 19886{ 19887 { eval $1=; unset $1;} 19888} 19889as_unset=as_fn_unset 19890 19891# as_fn_append VAR VALUE 19892# ---------------------- 19893# Append the text in VALUE to the end of the definition contained in VAR. Take 19894# advantage of any shell optimizations that allow amortized linear growth over 19895# repeated appends, instead of the typical quadratic growth present in naive 19896# implementations. 19897if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19898then : 19899 eval 'as_fn_append () 19900 { 19901 eval $1+=\$2 19902 }' 19903else $as_nop 19904 as_fn_append () 19905 { 19906 eval $1=\$$1\$2 19907 } 19908fi # as_fn_append 19909 19910# as_fn_arith ARG... 19911# ------------------ 19912# Perform arithmetic evaluation on the ARGs, and store the result in the 19913# global $as_val. Take advantage of shells that can avoid forks. The arguments 19914# must be portable across $(()) and expr. 19915if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19916then : 19917 eval 'as_fn_arith () 19918 { 19919 as_val=$(( $* )) 19920 }' 19921else $as_nop 19922 as_fn_arith () 19923 { 19924 as_val=`expr "$@" || test $? -eq 1` 19925 } 19926fi # as_fn_arith 19927 19928 19929if expr a : '\(a\)' >/dev/null 2>&1 && 19930 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19931 as_expr=expr 19932else 19933 as_expr=false 19934fi 19935 19936if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19937 as_basename=basename 19938else 19939 as_basename=false 19940fi 19941 19942if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19943 as_dirname=dirname 19944else 19945 as_dirname=false 19946fi 19947 19948as_me=`$as_basename -- "$0" || 19949$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19950 X"$0" : 'X\(//\)$' \| \ 19951 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19952printf "%s\n" X/"$0" | 19953 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19954 s//\1/ 19955 q 19956 } 19957 /^X\/\(\/\/\)$/{ 19958 s//\1/ 19959 q 19960 } 19961 /^X\/\(\/\).*/{ 19962 s//\1/ 19963 q 19964 } 19965 s/.*/./; q'` 19966 19967# Avoid depending upon Character Ranges. 19968as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19969as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19970as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19971as_cr_digits='0123456789' 19972as_cr_alnum=$as_cr_Letters$as_cr_digits 19973 19974 19975# Determine whether it's possible to make 'echo' print without a newline. 19976# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19977# for compatibility with existing Makefiles. 19978ECHO_C= ECHO_N= ECHO_T= 19979case `echo -n x` in #((((( 19980-n*) 19981 case `echo 'xy\c'` in 19982 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19983 xy) ECHO_C='\c';; 19984 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19985 ECHO_T=' ';; 19986 esac;; 19987*) 19988 ECHO_N='-n';; 19989esac 19990 19991# For backward compatibility with old third-party macros, we provide 19992# the shell variables $as_echo and $as_echo_n. New code should use 19993# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19994as_echo='printf %s\n' 19995as_echo_n='printf %s' 19996 19997rm -f conf$$ conf$$.exe conf$$.file 19998if test -d conf$$.dir; then 19999 rm -f conf$$.dir/conf$$.file 20000else 20001 rm -f conf$$.dir 20002 mkdir conf$$.dir 2>/dev/null 20003fi 20004if (echo >conf$$.file) 2>/dev/null; then 20005 if ln -s conf$$.file conf$$ 2>/dev/null; then 20006 as_ln_s='ln -s' 20007 # ... but there are two gotchas: 20008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20010 # In both cases, we have to default to `cp -pR'. 20011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20012 as_ln_s='cp -pR' 20013 elif ln conf$$.file conf$$ 2>/dev/null; then 20014 as_ln_s=ln 20015 else 20016 as_ln_s='cp -pR' 20017 fi 20018else 20019 as_ln_s='cp -pR' 20020fi 20021rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20022rmdir conf$$.dir 2>/dev/null 20023 20024 20025# as_fn_mkdir_p 20026# ------------- 20027# Create "$as_dir" as a directory, including parents if necessary. 20028as_fn_mkdir_p () 20029{ 20030 20031 case $as_dir in #( 20032 -*) as_dir=./$as_dir;; 20033 esac 20034 test -d "$as_dir" || eval $as_mkdir_p || { 20035 as_dirs= 20036 while :; do 20037 case $as_dir in #( 20038 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20039 *) as_qdir=$as_dir;; 20040 esac 20041 as_dirs="'$as_qdir' $as_dirs" 20042 as_dir=`$as_dirname -- "$as_dir" || 20043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20044 X"$as_dir" : 'X\(//\)[^/]' \| \ 20045 X"$as_dir" : 'X\(//\)$' \| \ 20046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20047printf "%s\n" X"$as_dir" | 20048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20049 s//\1/ 20050 q 20051 } 20052 /^X\(\/\/\)[^/].*/{ 20053 s//\1/ 20054 q 20055 } 20056 /^X\(\/\/\)$/{ 20057 s//\1/ 20058 q 20059 } 20060 /^X\(\/\).*/{ 20061 s//\1/ 20062 q 20063 } 20064 s/.*/./; q'` 20065 test -d "$as_dir" && break 20066 done 20067 test -z "$as_dirs" || eval "mkdir $as_dirs" 20068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20069 20070 20071} # as_fn_mkdir_p 20072if mkdir -p . 2>/dev/null; then 20073 as_mkdir_p='mkdir -p "$as_dir"' 20074else 20075 test -d ./-p && rmdir ./-p 20076 as_mkdir_p=false 20077fi 20078 20079 20080# as_fn_executable_p FILE 20081# ----------------------- 20082# Test if FILE is an executable regular file. 20083as_fn_executable_p () 20084{ 20085 test -f "$1" && test -x "$1" 20086} # as_fn_executable_p 20087as_test_x='test -x' 20088as_executable_p=as_fn_executable_p 20089 20090# Sed expression to map a string onto a valid CPP name. 20091as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20092 20093# Sed expression to map a string onto a valid variable name. 20094as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20095 20096 20097exec 6>&1 20098## ----------------------------------- ## 20099## Main body of $CONFIG_STATUS script. ## 20100## ----------------------------------- ## 20101_ASEOF 20102test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20103 20104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20105# Save the log message, to keep $0 and so on meaningful, and to 20106# report actual input values of CONFIG_FILES etc. instead of their 20107# values after options handling. 20108ac_log=" 20109This file was extended by xf86-video-neomagic $as_me 1.3.1, which was 20110generated by GNU Autoconf 2.71. Invocation command line was 20111 20112 CONFIG_FILES = $CONFIG_FILES 20113 CONFIG_HEADERS = $CONFIG_HEADERS 20114 CONFIG_LINKS = $CONFIG_LINKS 20115 CONFIG_COMMANDS = $CONFIG_COMMANDS 20116 $ $0 $@ 20117 20118on `(hostname || uname -n) 2>/dev/null | sed 1q` 20119" 20120 20121_ACEOF 20122 20123case $ac_config_files in *" 20124"*) set x $ac_config_files; shift; ac_config_files=$*;; 20125esac 20126 20127case $ac_config_headers in *" 20128"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20129esac 20130 20131 20132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20133# Files that config.status was made for. 20134config_files="$ac_config_files" 20135config_headers="$ac_config_headers" 20136config_commands="$ac_config_commands" 20137 20138_ACEOF 20139 20140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20141ac_cs_usage="\ 20142\`$as_me' instantiates files and other configuration actions 20143from templates according to the current configuration. Unless the files 20144and actions are specified as TAGs, all are instantiated by default. 20145 20146Usage: $0 [OPTION]... [TAG]... 20147 20148 -h, --help print this help, then exit 20149 -V, --version print version number and configuration settings, then exit 20150 --config print configuration, then exit 20151 -q, --quiet, --silent 20152 do not print progress messages 20153 -d, --debug don't remove temporary files 20154 --recheck update $as_me by reconfiguring in the same conditions 20155 --file=FILE[:TEMPLATE] 20156 instantiate the configuration file FILE 20157 --header=FILE[:TEMPLATE] 20158 instantiate the configuration header FILE 20159 20160Configuration files: 20161$config_files 20162 20163Configuration headers: 20164$config_headers 20165 20166Configuration commands: 20167$config_commands 20168 20169Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-neomagic/-/issues>." 20170 20171_ACEOF 20172ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20173ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20175ac_cs_config='$ac_cs_config_escaped' 20176ac_cs_version="\\ 20177xf86-video-neomagic config.status 1.3.1 20178configured by $0, generated by GNU Autoconf 2.71, 20179 with options \\"\$ac_cs_config\\" 20180 20181Copyright (C) 2021 Free Software Foundation, Inc. 20182This config.status script is free software; the Free Software Foundation 20183gives unlimited permission to copy, distribute and modify it." 20184 20185ac_pwd='$ac_pwd' 20186srcdir='$srcdir' 20187INSTALL='$INSTALL' 20188MKDIR_P='$MKDIR_P' 20189AWK='$AWK' 20190test -n "\$AWK" || AWK=awk 20191_ACEOF 20192 20193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20194# The default lists apply if the user does not specify any file. 20195ac_need_defaults=: 20196while test $# != 0 20197do 20198 case $1 in 20199 --*=?*) 20200 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20201 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20202 ac_shift=: 20203 ;; 20204 --*=) 20205 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20206 ac_optarg= 20207 ac_shift=: 20208 ;; 20209 *) 20210 ac_option=$1 20211 ac_optarg=$2 20212 ac_shift=shift 20213 ;; 20214 esac 20215 20216 case $ac_option in 20217 # Handling of the options. 20218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20219 ac_cs_recheck=: ;; 20220 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20221 printf "%s\n" "$ac_cs_version"; exit ;; 20222 --config | --confi | --conf | --con | --co | --c ) 20223 printf "%s\n" "$ac_cs_config"; exit ;; 20224 --debug | --debu | --deb | --de | --d | -d ) 20225 debug=: ;; 20226 --file | --fil | --fi | --f ) 20227 $ac_shift 20228 case $ac_optarg in 20229 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20230 '') as_fn_error $? "missing file argument" ;; 20231 esac 20232 as_fn_append CONFIG_FILES " '$ac_optarg'" 20233 ac_need_defaults=false;; 20234 --header | --heade | --head | --hea ) 20235 $ac_shift 20236 case $ac_optarg in 20237 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20238 esac 20239 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20240 ac_need_defaults=false;; 20241 --he | --h) 20242 # Conflict between --help and --header 20243 as_fn_error $? "ambiguous option: \`$1' 20244Try \`$0 --help' for more information.";; 20245 --help | --hel | -h ) 20246 printf "%s\n" "$ac_cs_usage"; exit ;; 20247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20248 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20249 ac_cs_silent=: ;; 20250 20251 # This is an error. 20252 -*) as_fn_error $? "unrecognized option: \`$1' 20253Try \`$0 --help' for more information." ;; 20254 20255 *) as_fn_append ac_config_targets " $1" 20256 ac_need_defaults=false ;; 20257 20258 esac 20259 shift 20260done 20261 20262ac_configure_extra_args= 20263 20264if $ac_cs_silent; then 20265 exec 6>/dev/null 20266 ac_configure_extra_args="$ac_configure_extra_args --silent" 20267fi 20268 20269_ACEOF 20270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20271if \$ac_cs_recheck; then 20272 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20273 shift 20274 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20275 CONFIG_SHELL='$SHELL' 20276 export CONFIG_SHELL 20277 exec "\$@" 20278fi 20279 20280_ACEOF 20281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20282exec 5>>config.log 20283{ 20284 echo 20285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20286## Running $as_me. ## 20287_ASBOX 20288 printf "%s\n" "$ac_log" 20289} >&5 20290 20291_ACEOF 20292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20293# 20294# INIT-COMMANDS 20295# 20296AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20297 20298 20299# The HP-UX ksh and POSIX shell print the target directory to stdout 20300# if CDPATH is set. 20301(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20302 20303sed_quote_subst='$sed_quote_subst' 20304double_quote_subst='$double_quote_subst' 20305delay_variable_subst='$delay_variable_subst' 20306enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20307macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20308macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20309enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20310pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20311enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20312shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20313SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20314ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20315PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20316host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20317host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20318host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20319build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20320build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20321build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20322SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20323Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20324GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20325EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20326FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20327LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20328NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20329LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20330max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20331ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20332exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20333lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20334lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20335lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20336lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20337lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20338reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20339reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20340FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20341OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20342deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20343file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20344file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20345want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20346DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20347sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20348AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20349lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20350AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20351archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20352STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20353RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20354old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20355old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20356old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20357lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20358CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20359CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20360compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20361GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20362lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20363lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20364lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20365lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20366lt_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"`' 20367lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20368nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20369lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20370lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20371objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20372MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20373lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20374lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20375lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20376lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20377lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20378need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20379MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20380DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20381NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20382LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20383OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20384OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20385libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20386shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20387extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20388archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20389enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20390export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20391whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20392compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20393old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20394old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20395archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20396archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20397module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20398module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20399with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20400allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20401no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20402hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20403hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20404hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20405hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20406hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20407hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20408hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20409inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20410link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20411always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20412export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20413exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20414include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20415prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20416postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20417file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20418variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20419need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20420need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20421version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20422runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20423shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20424shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20425libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20426library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20427soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20428install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20429postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20430postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20431finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20432finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20433hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20434sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20435configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20436configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20437hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20438enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20439enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20440enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20441old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20442striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20443 20444LTCC='$LTCC' 20445LTCFLAGS='$LTCFLAGS' 20446compiler='$compiler_DEFAULT' 20447 20448# A function that is used when there is no print builtin or printf. 20449func_fallback_echo () 20450{ 20451 eval 'cat <<_LTECHO_EOF 20452\$1 20453_LTECHO_EOF' 20454} 20455 20456# Quote evaled strings. 20457for var in SHELL \ 20458ECHO \ 20459PATH_SEPARATOR \ 20460SED \ 20461GREP \ 20462EGREP \ 20463FGREP \ 20464LD \ 20465NM \ 20466LN_S \ 20467lt_SP2NL \ 20468lt_NL2SP \ 20469reload_flag \ 20470FILECMD \ 20471OBJDUMP \ 20472deplibs_check_method \ 20473file_magic_cmd \ 20474file_magic_glob \ 20475want_nocaseglob \ 20476DLLTOOL \ 20477sharedlib_from_linklib_cmd \ 20478AR \ 20479archiver_list_spec \ 20480STRIP \ 20481RANLIB \ 20482CC \ 20483CFLAGS \ 20484compiler \ 20485lt_cv_sys_global_symbol_pipe \ 20486lt_cv_sys_global_symbol_to_cdecl \ 20487lt_cv_sys_global_symbol_to_import \ 20488lt_cv_sys_global_symbol_to_c_name_address \ 20489lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20490lt_cv_nm_interface \ 20491nm_file_list_spec \ 20492lt_cv_truncate_bin \ 20493lt_prog_compiler_no_builtin_flag \ 20494lt_prog_compiler_pic \ 20495lt_prog_compiler_wl \ 20496lt_prog_compiler_static \ 20497lt_cv_prog_compiler_c_o \ 20498need_locks \ 20499MANIFEST_TOOL \ 20500DSYMUTIL \ 20501NMEDIT \ 20502LIPO \ 20503OTOOL \ 20504OTOOL64 \ 20505shrext_cmds \ 20506export_dynamic_flag_spec \ 20507whole_archive_flag_spec \ 20508compiler_needs_object \ 20509with_gnu_ld \ 20510allow_undefined_flag \ 20511no_undefined_flag \ 20512hardcode_libdir_flag_spec \ 20513hardcode_libdir_separator \ 20514exclude_expsyms \ 20515include_expsyms \ 20516file_list_spec \ 20517variables_saved_for_relink \ 20518libname_spec \ 20519library_names_spec \ 20520soname_spec \ 20521install_override_mode \ 20522finish_eval \ 20523old_striplib \ 20524striplib; do 20525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20526 *[\\\\\\\`\\"\\\$]*) 20527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20528 ;; 20529 *) 20530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20531 ;; 20532 esac 20533done 20534 20535# Double-quote double-evaled strings. 20536for var in reload_cmds \ 20537old_postinstall_cmds \ 20538old_postuninstall_cmds \ 20539old_archive_cmds \ 20540extract_expsyms_cmds \ 20541old_archive_from_new_cmds \ 20542old_archive_from_expsyms_cmds \ 20543archive_cmds \ 20544archive_expsym_cmds \ 20545module_cmds \ 20546module_expsym_cmds \ 20547export_symbols_cmds \ 20548prelink_cmds \ 20549postlink_cmds \ 20550postinstall_cmds \ 20551postuninstall_cmds \ 20552finish_cmds \ 20553sys_lib_search_path_spec \ 20554configure_time_dlsearch_path \ 20555configure_time_lt_sys_library_path; do 20556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20557 *[\\\\\\\`\\"\\\$]*) 20558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20559 ;; 20560 *) 20561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20562 ;; 20563 esac 20564done 20565 20566ac_aux_dir='$ac_aux_dir' 20567 20568# See if we are running on zsh, and set the options that allow our 20569# commands through without removal of \ escapes INIT. 20570if test -n "\${ZSH_VERSION+set}"; then 20571 setopt NO_GLOB_SUBST 20572fi 20573 20574 20575 PACKAGE='$PACKAGE' 20576 VERSION='$VERSION' 20577 RM='$RM' 20578 ofile='$ofile' 20579 20580 20581 20582 20583_ACEOF 20584 20585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20586 20587# Handling of arguments. 20588for ac_config_target in $ac_config_targets 20589do 20590 case $ac_config_target in 20591 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20592 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20593 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20594 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20595 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20596 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20597 20598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20599 esac 20600done 20601 20602 20603# If the user did not use the arguments to specify the items to instantiate, 20604# then the envvar interface is used. Set only those that are not. 20605# We use the long form for the default assignment because of an extremely 20606# bizarre bug on SunOS 4.1.3. 20607if $ac_need_defaults; then 20608 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20609 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20610 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20611fi 20612 20613# Have a temporary directory for convenience. Make it in the build tree 20614# simply because there is no reason against having it here, and in addition, 20615# creating and moving files from /tmp can sometimes cause problems. 20616# Hook for its removal unless debugging. 20617# Note that there is a small window in which the directory will not be cleaned: 20618# after its creation but before its name has been assigned to `$tmp'. 20619$debug || 20620{ 20621 tmp= ac_tmp= 20622 trap 'exit_status=$? 20623 : "${ac_tmp:=$tmp}" 20624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20625' 0 20626 trap 'as_fn_exit 1' 1 2 13 15 20627} 20628# Create a (secure) tmp directory for tmp files. 20629 20630{ 20631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20632 test -d "$tmp" 20633} || 20634{ 20635 tmp=./conf$$-$RANDOM 20636 (umask 077 && mkdir "$tmp") 20637} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20638ac_tmp=$tmp 20639 20640# Set up the scripts for CONFIG_FILES section. 20641# No need to generate them if there are no CONFIG_FILES. 20642# This happens for instance with `./config.status config.h'. 20643if test -n "$CONFIG_FILES"; then 20644 20645 20646ac_cr=`echo X | tr X '\015'` 20647# On cygwin, bash can eat \r inside `` if the user requested igncr. 20648# But we know of no other shell where ac_cr would be empty at this 20649# point, so we can use a bashism as a fallback. 20650if test "x$ac_cr" = x; then 20651 eval ac_cr=\$\'\\r\' 20652fi 20653ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20654if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20655 ac_cs_awk_cr='\\r' 20656else 20657 ac_cs_awk_cr=$ac_cr 20658fi 20659 20660echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20661_ACEOF 20662 20663 20664{ 20665 echo "cat >conf$$subs.awk <<_ACEOF" && 20666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20667 echo "_ACEOF" 20668} >conf$$subs.sh || 20669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20670ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20671ac_delim='%!_!# ' 20672for ac_last_try in false false false false false :; do 20673 . ./conf$$subs.sh || 20674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20675 20676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20677 if test $ac_delim_n = $ac_delim_num; then 20678 break 20679 elif $ac_last_try; then 20680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20681 else 20682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20683 fi 20684done 20685rm -f conf$$subs.sh 20686 20687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20688cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20689_ACEOF 20690sed -n ' 20691h 20692s/^/S["/; s/!.*/"]=/ 20693p 20694g 20695s/^[^!]*!// 20696:repl 20697t repl 20698s/'"$ac_delim"'$// 20699t delim 20700:nl 20701h 20702s/\(.\{148\}\)..*/\1/ 20703t more1 20704s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20705p 20706n 20707b repl 20708:more1 20709s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20710p 20711g 20712s/.\{148\}// 20713t nl 20714:delim 20715h 20716s/\(.\{148\}\)..*/\1/ 20717t more2 20718s/["\\]/\\&/g; s/^/"/; s/$/"/ 20719p 20720b 20721:more2 20722s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20723p 20724g 20725s/.\{148\}// 20726t delim 20727' <conf$$subs.awk | sed ' 20728/^[^""]/{ 20729 N 20730 s/\n// 20731} 20732' >>$CONFIG_STATUS || ac_write_fail=1 20733rm -f conf$$subs.awk 20734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20735_ACAWK 20736cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20737 for (key in S) S_is_set[key] = 1 20738 FS = "" 20739 20740} 20741{ 20742 line = $ 0 20743 nfields = split(line, field, "@") 20744 substed = 0 20745 len = length(field[1]) 20746 for (i = 2; i < nfields; i++) { 20747 key = field[i] 20748 keylen = length(key) 20749 if (S_is_set[key]) { 20750 value = S[key] 20751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20752 len += length(value) + length(field[++i]) 20753 substed = 1 20754 } else 20755 len += 1 + keylen 20756 } 20757 20758 print line 20759} 20760 20761_ACAWK 20762_ACEOF 20763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20764if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20766else 20767 cat 20768fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20769 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20770_ACEOF 20771 20772# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20773# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20774# trailing colons and then remove the whole line if VPATH becomes empty 20775# (actually we leave an empty line to preserve line numbers). 20776if test "x$srcdir" = x.; then 20777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20778h 20779s/// 20780s/^/:/ 20781s/[ ]*$/:/ 20782s/:\$(srcdir):/:/g 20783s/:\${srcdir}:/:/g 20784s/:@srcdir@:/:/g 20785s/^:*// 20786s/:*$// 20787x 20788s/\(=[ ]*\).*/\1/ 20789G 20790s/\n// 20791s/^[^=]*=[ ]*$// 20792}' 20793fi 20794 20795cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20796fi # test -n "$CONFIG_FILES" 20797 20798# Set up the scripts for CONFIG_HEADERS section. 20799# No need to generate them if there are no CONFIG_HEADERS. 20800# This happens for instance with `./config.status Makefile'. 20801if test -n "$CONFIG_HEADERS"; then 20802cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20803BEGIN { 20804_ACEOF 20805 20806# Transform confdefs.h into an awk script `defines.awk', embedded as 20807# here-document in config.status, that substitutes the proper values into 20808# config.h.in to produce config.h. 20809 20810# Create a delimiter string that does not exist in confdefs.h, to ease 20811# handling of long lines. 20812ac_delim='%!_!# ' 20813for ac_last_try in false false :; do 20814 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20815 if test -z "$ac_tt"; then 20816 break 20817 elif $ac_last_try; then 20818 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20819 else 20820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20821 fi 20822done 20823 20824# For the awk script, D is an array of macro values keyed by name, 20825# likewise P contains macro parameters if any. Preserve backslash 20826# newline sequences. 20827 20828ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20829sed -n ' 20830s/.\{148\}/&'"$ac_delim"'/g 20831t rset 20832:rset 20833s/^[ ]*#[ ]*define[ ][ ]*/ / 20834t def 20835d 20836:def 20837s/\\$// 20838t bsnl 20839s/["\\]/\\&/g 20840s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20841D["\1"]=" \3"/p 20842s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20843d 20844:bsnl 20845s/["\\]/\\&/g 20846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20847D["\1"]=" \3\\\\\\n"\\/p 20848t cont 20849s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20850t cont 20851d 20852:cont 20853n 20854s/.\{148\}/&'"$ac_delim"'/g 20855t clear 20856:clear 20857s/\\$// 20858t bsnlc 20859s/["\\]/\\&/g; s/^/"/; s/$/"/p 20860d 20861:bsnlc 20862s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20863b cont 20864' <confdefs.h | sed ' 20865s/'"$ac_delim"'/"\\\ 20866"/g' >>$CONFIG_STATUS || ac_write_fail=1 20867 20868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20869 for (key in D) D_is_set[key] = 1 20870 FS = "" 20871} 20872/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20873 line = \$ 0 20874 split(line, arg, " ") 20875 if (arg[1] == "#") { 20876 defundef = arg[2] 20877 mac1 = arg[3] 20878 } else { 20879 defundef = substr(arg[1], 2) 20880 mac1 = arg[2] 20881 } 20882 split(mac1, mac2, "(") #) 20883 macro = mac2[1] 20884 prefix = substr(line, 1, index(line, defundef) - 1) 20885 if (D_is_set[macro]) { 20886 # Preserve the white space surrounding the "#". 20887 print prefix "define", macro P[macro] D[macro] 20888 next 20889 } else { 20890 # Replace #undef with comments. This is necessary, for example, 20891 # in the case of _POSIX_SOURCE, which is predefined and required 20892 # on some systems where configure will not decide to define it. 20893 if (defundef == "undef") { 20894 print "/*", prefix defundef, macro, "*/" 20895 next 20896 } 20897 } 20898} 20899{ print } 20900_ACAWK 20901_ACEOF 20902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20903 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20904fi # test -n "$CONFIG_HEADERS" 20905 20906 20907eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20908shift 20909for ac_tag 20910do 20911 case $ac_tag in 20912 :[FHLC]) ac_mode=$ac_tag; continue;; 20913 esac 20914 case $ac_mode$ac_tag in 20915 :[FHL]*:*);; 20916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20917 :[FH]-) ac_tag=-:-;; 20918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20919 esac 20920 ac_save_IFS=$IFS 20921 IFS=: 20922 set x $ac_tag 20923 IFS=$ac_save_IFS 20924 shift 20925 ac_file=$1 20926 shift 20927 20928 case $ac_mode in 20929 :L) ac_source=$1;; 20930 :[FH]) 20931 ac_file_inputs= 20932 for ac_f 20933 do 20934 case $ac_f in 20935 -) ac_f="$ac_tmp/stdin";; 20936 *) # Look for the file first in the build tree, then in the source tree 20937 # (if the path is not absolute). The absolute path cannot be DOS-style, 20938 # because $ac_f cannot contain `:'. 20939 test -f "$ac_f" || 20940 case $ac_f in 20941 [\\/$]*) false;; 20942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20943 esac || 20944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20945 esac 20946 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20947 as_fn_append ac_file_inputs " '$ac_f'" 20948 done 20949 20950 # Let's still pretend it is `configure' which instantiates (i.e., don't 20951 # use $as_me), people would be surprised to read: 20952 # /* config.h. Generated by config.status. */ 20953 configure_input='Generated from '` 20954 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20955 `' by configure.' 20956 if test x"$ac_file" != x-; then 20957 configure_input="$ac_file. $configure_input" 20958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20959printf "%s\n" "$as_me: creating $ac_file" >&6;} 20960 fi 20961 # Neutralize special characters interpreted by sed in replacement strings. 20962 case $configure_input in #( 20963 *\&* | *\|* | *\\* ) 20964 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20965 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20966 *) ac_sed_conf_input=$configure_input;; 20967 esac 20968 20969 case $ac_tag in 20970 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20972 esac 20973 ;; 20974 esac 20975 20976 ac_dir=`$as_dirname -- "$ac_file" || 20977$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20978 X"$ac_file" : 'X\(//\)[^/]' \| \ 20979 X"$ac_file" : 'X\(//\)$' \| \ 20980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20981printf "%s\n" X"$ac_file" | 20982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20983 s//\1/ 20984 q 20985 } 20986 /^X\(\/\/\)[^/].*/{ 20987 s//\1/ 20988 q 20989 } 20990 /^X\(\/\/\)$/{ 20991 s//\1/ 20992 q 20993 } 20994 /^X\(\/\).*/{ 20995 s//\1/ 20996 q 20997 } 20998 s/.*/./; q'` 20999 as_dir="$ac_dir"; as_fn_mkdir_p 21000 ac_builddir=. 21001 21002case "$ac_dir" in 21003.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21004*) 21005 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21006 # A ".." for each directory in $ac_dir_suffix. 21007 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21008 case $ac_top_builddir_sub in 21009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21011 esac ;; 21012esac 21013ac_abs_top_builddir=$ac_pwd 21014ac_abs_builddir=$ac_pwd$ac_dir_suffix 21015# for backward compatibility: 21016ac_top_builddir=$ac_top_build_prefix 21017 21018case $srcdir in 21019 .) # We are building in place. 21020 ac_srcdir=. 21021 ac_top_srcdir=$ac_top_builddir_sub 21022 ac_abs_top_srcdir=$ac_pwd ;; 21023 [\\/]* | ?:[\\/]* ) # Absolute name. 21024 ac_srcdir=$srcdir$ac_dir_suffix; 21025 ac_top_srcdir=$srcdir 21026 ac_abs_top_srcdir=$srcdir ;; 21027 *) # Relative name. 21028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21029 ac_top_srcdir=$ac_top_build_prefix$srcdir 21030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21031esac 21032ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21033 21034 21035 case $ac_mode in 21036 :F) 21037 # 21038 # CONFIG_FILE 21039 # 21040 21041 case $INSTALL in 21042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21044 esac 21045 ac_MKDIR_P=$MKDIR_P 21046 case $MKDIR_P in 21047 [\\/$]* | ?:[\\/]* ) ;; 21048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21049 esac 21050_ACEOF 21051 21052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21053# If the template does not know about datarootdir, expand it. 21054# FIXME: This hack should be removed a few years after 2.60. 21055ac_datarootdir_hack=; ac_datarootdir_seen= 21056ac_sed_dataroot=' 21057/datarootdir/ { 21058 p 21059 q 21060} 21061/@datadir@/p 21062/@docdir@/p 21063/@infodir@/p 21064/@localedir@/p 21065/@mandir@/p' 21066case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21067*datarootdir*) ac_datarootdir_seen=yes;; 21068*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21070printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21071_ACEOF 21072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21073 ac_datarootdir_hack=' 21074 s&@datadir@&$datadir&g 21075 s&@docdir@&$docdir&g 21076 s&@infodir@&$infodir&g 21077 s&@localedir@&$localedir&g 21078 s&@mandir@&$mandir&g 21079 s&\\\${datarootdir}&$datarootdir&g' ;; 21080esac 21081_ACEOF 21082 21083# Neutralize VPATH when `$srcdir' = `.'. 21084# Shell code in configure.ac might set extrasub. 21085# FIXME: do we really want to maintain this feature? 21086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21087ac_sed_extra="$ac_vpsub 21088$extrasub 21089_ACEOF 21090cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21091:t 21092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21093s|@configure_input@|$ac_sed_conf_input|;t t 21094s&@top_builddir@&$ac_top_builddir_sub&;t t 21095s&@top_build_prefix@&$ac_top_build_prefix&;t t 21096s&@srcdir@&$ac_srcdir&;t t 21097s&@abs_srcdir@&$ac_abs_srcdir&;t t 21098s&@top_srcdir@&$ac_top_srcdir&;t t 21099s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21100s&@builddir@&$ac_builddir&;t t 21101s&@abs_builddir@&$ac_abs_builddir&;t t 21102s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21103s&@INSTALL@&$ac_INSTALL&;t t 21104s&@MKDIR_P@&$ac_MKDIR_P&;t t 21105$ac_datarootdir_hack 21106" 21107eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21108 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21109 21110test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21111 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21113 "$ac_tmp/out"`; test -z "$ac_out"; } && 21114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21115which seems to be undefined. Please make sure it is defined" >&5 21116printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21117which seems to be undefined. Please make sure it is defined" >&2;} 21118 21119 rm -f "$ac_tmp/stdin" 21120 case $ac_file in 21121 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21122 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21123 esac \ 21124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21125 ;; 21126 :H) 21127 # 21128 # CONFIG_HEADER 21129 # 21130 if test x"$ac_file" != x-; then 21131 { 21132 printf "%s\n" "/* $configure_input */" >&1 \ 21133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21134 } >"$ac_tmp/config.h" \ 21135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21136 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21138printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21139 else 21140 rm -f "$ac_file" 21141 mv "$ac_tmp/config.h" "$ac_file" \ 21142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21143 fi 21144 else 21145 printf "%s\n" "/* $configure_input */" >&1 \ 21146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21147 || as_fn_error $? "could not create -" "$LINENO" 5 21148 fi 21149# Compute "$ac_file"'s index in $config_headers. 21150_am_arg="$ac_file" 21151_am_stamp_count=1 21152for _am_header in $config_headers :; do 21153 case $_am_header in 21154 $_am_arg | $_am_arg:* ) 21155 break ;; 21156 * ) 21157 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21158 esac 21159done 21160echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21161$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21162 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21163 X"$_am_arg" : 'X\(//\)$' \| \ 21164 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21165printf "%s\n" X"$_am_arg" | 21166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21167 s//\1/ 21168 q 21169 } 21170 /^X\(\/\/\)[^/].*/{ 21171 s//\1/ 21172 q 21173 } 21174 /^X\(\/\/\)$/{ 21175 s//\1/ 21176 q 21177 } 21178 /^X\(\/\).*/{ 21179 s//\1/ 21180 q 21181 } 21182 s/.*/./; q'`/stamp-h$_am_stamp_count 21183 ;; 21184 21185 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21186printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21187 ;; 21188 esac 21189 21190 21191 case $ac_file$ac_mode in 21192 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21193 # Older Autoconf quotes --file arguments for eval, but not when files 21194 # are listed without --file. Let's play safe and only enable the eval 21195 # if we detect the quoting. 21196 # TODO: see whether this extra hack can be removed once we start 21197 # requiring Autoconf 2.70 or later. 21198 case $CONFIG_FILES in #( 21199 *\'*) : 21200 eval set x "$CONFIG_FILES" ;; #( 21201 *) : 21202 set x $CONFIG_FILES ;; #( 21203 *) : 21204 ;; 21205esac 21206 shift 21207 # Used to flag and report bootstrapping failures. 21208 am_rc=0 21209 for am_mf 21210 do 21211 # Strip MF so we end up with the name of the file. 21212 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21213 # Check whether this is an Automake generated Makefile which includes 21214 # dependency-tracking related rules and includes. 21215 # Grep'ing the whole file directly is not great: AIX grep has a line 21216 # limit of 2048, but all sed's we know have understand at least 4000. 21217 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21218 || continue 21219 am_dirpart=`$as_dirname -- "$am_mf" || 21220$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21221 X"$am_mf" : 'X\(//\)[^/]' \| \ 21222 X"$am_mf" : 'X\(//\)$' \| \ 21223 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21224printf "%s\n" X"$am_mf" | 21225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21226 s//\1/ 21227 q 21228 } 21229 /^X\(\/\/\)[^/].*/{ 21230 s//\1/ 21231 q 21232 } 21233 /^X\(\/\/\)$/{ 21234 s//\1/ 21235 q 21236 } 21237 /^X\(\/\).*/{ 21238 s//\1/ 21239 q 21240 } 21241 s/.*/./; q'` 21242 am_filepart=`$as_basename -- "$am_mf" || 21243$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21244 X"$am_mf" : 'X\(//\)$' \| \ 21245 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21246printf "%s\n" X/"$am_mf" | 21247 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21248 s//\1/ 21249 q 21250 } 21251 /^X\/\(\/\/\)$/{ 21252 s//\1/ 21253 q 21254 } 21255 /^X\/\(\/\).*/{ 21256 s//\1/ 21257 q 21258 } 21259 s/.*/./; q'` 21260 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21261 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21262 | $MAKE -f - am--depfiles" >&5 21263 (cd "$am_dirpart" \ 21264 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21265 | $MAKE -f - am--depfiles) >&5 2>&5 21266 ac_status=$? 21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21268 (exit $ac_status); } || am_rc=$? 21269 done 21270 if test $am_rc -ne 0; then 21271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21272printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21273as_fn_error $? "Something went wrong bootstrapping makefile fragments 21274 for automatic dependency tracking. If GNU make was not used, consider 21275 re-running the configure script with MAKE=\"gmake\" (or whatever is 21276 necessary). You can also try re-running configure with the 21277 '--disable-dependency-tracking' option to at least be able to build 21278 the package (albeit without support for automatic dependency tracking). 21279See \`config.log' for more details" "$LINENO" 5; } 21280 fi 21281 { am_dirpart=; unset am_dirpart;} 21282 { am_filepart=; unset am_filepart;} 21283 { am_mf=; unset am_mf;} 21284 { am_rc=; unset am_rc;} 21285 rm -f conftest-deps.mk 21286} 21287 ;; 21288 "libtool":C) 21289 21290 # See if we are running on zsh, and set the options that allow our 21291 # commands through without removal of \ escapes. 21292 if test -n "${ZSH_VERSION+set}"; then 21293 setopt NO_GLOB_SUBST 21294 fi 21295 21296 cfgfile=${ofile}T 21297 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21298 $RM "$cfgfile" 21299 21300 cat <<_LT_EOF >> "$cfgfile" 21301#! $SHELL 21302# Generated automatically by $as_me ($PACKAGE) $VERSION 21303# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21304# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21305 21306# Provide generalized library-building support services. 21307# Written by Gordon Matzigkeit, 1996 21308 21309# Copyright (C) 2014 Free Software Foundation, Inc. 21310# This is free software; see the source for copying conditions. There is NO 21311# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21312 21313# GNU Libtool is free software; you can redistribute it and/or modify 21314# it under the terms of the GNU General Public License as published by 21315# the Free Software Foundation; either version 2 of of the License, or 21316# (at your option) any later version. 21317# 21318# As a special exception to the GNU General Public License, if you 21319# distribute this file as part of a program or library that is built 21320# using GNU Libtool, you may include this file under the same 21321# distribution terms that you use for the rest of that program. 21322# 21323# GNU Libtool is distributed in the hope that it will be useful, but 21324# WITHOUT ANY WARRANTY; without even the implied warranty of 21325# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21326# GNU General Public License for more details. 21327# 21328# You should have received a copy of the GNU General Public License 21329# along with this program. If not, see <http://www.gnu.org/licenses/>. 21330 21331 21332# The names of the tagged configurations supported by this script. 21333available_tags='' 21334 21335# Configured defaults for sys_lib_dlsearch_path munging. 21336: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21337 21338# ### BEGIN LIBTOOL CONFIG 21339 21340# Whether or not to build static libraries. 21341build_old_libs=$enable_static 21342 21343# Which release of libtool.m4 was used? 21344macro_version=$macro_version 21345macro_revision=$macro_revision 21346 21347# Whether or not to build shared libraries. 21348build_libtool_libs=$enable_shared 21349 21350# What type of objects to build. 21351pic_mode=$pic_mode 21352 21353# Whether or not to optimize for fast installation. 21354fast_install=$enable_fast_install 21355 21356# Shared archive member basename,for filename based shared library versioning on AIX. 21357shared_archive_member_spec=$shared_archive_member_spec 21358 21359# Shell to use when invoking shell scripts. 21360SHELL=$lt_SHELL 21361 21362# An echo program that protects backslashes. 21363ECHO=$lt_ECHO 21364 21365# The PATH separator for the build system. 21366PATH_SEPARATOR=$lt_PATH_SEPARATOR 21367 21368# The host system. 21369host_alias=$host_alias 21370host=$host 21371host_os=$host_os 21372 21373# The build system. 21374build_alias=$build_alias 21375build=$build 21376build_os=$build_os 21377 21378# A sed program that does not truncate output. 21379SED=$lt_SED 21380 21381# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21382Xsed="\$SED -e 1s/^X//" 21383 21384# A grep program that handles long lines. 21385GREP=$lt_GREP 21386 21387# An ERE matcher. 21388EGREP=$lt_EGREP 21389 21390# A literal string matcher. 21391FGREP=$lt_FGREP 21392 21393# A BSD- or MS-compatible name lister. 21394NM=$lt_NM 21395 21396# Whether we need soft or hard links. 21397LN_S=$lt_LN_S 21398 21399# What is the maximum length of a command? 21400max_cmd_len=$max_cmd_len 21401 21402# Object file suffix (normally "o"). 21403objext=$ac_objext 21404 21405# Executable file suffix (normally ""). 21406exeext=$exeext 21407 21408# whether the shell understands "unset". 21409lt_unset=$lt_unset 21410 21411# turn spaces into newlines. 21412SP2NL=$lt_lt_SP2NL 21413 21414# turn newlines into spaces. 21415NL2SP=$lt_lt_NL2SP 21416 21417# convert \$build file names to \$host format. 21418to_host_file_cmd=$lt_cv_to_host_file_cmd 21419 21420# convert \$build files to toolchain format. 21421to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21422 21423# A file(cmd) program that detects file types. 21424FILECMD=$lt_FILECMD 21425 21426# An object symbol dumper. 21427OBJDUMP=$lt_OBJDUMP 21428 21429# Method to check whether dependent libraries are shared objects. 21430deplibs_check_method=$lt_deplibs_check_method 21431 21432# Command to use when deplibs_check_method = "file_magic". 21433file_magic_cmd=$lt_file_magic_cmd 21434 21435# How to find potential files when deplibs_check_method = "file_magic". 21436file_magic_glob=$lt_file_magic_glob 21437 21438# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21439want_nocaseglob=$lt_want_nocaseglob 21440 21441# DLL creation program. 21442DLLTOOL=$lt_DLLTOOL 21443 21444# Command to associate shared and link libraries. 21445sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21446 21447# The archiver. 21448AR=$lt_AR 21449 21450# Flags to create an archive (by configure). 21451lt_ar_flags=$lt_ar_flags 21452 21453# Flags to create an archive. 21454AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21455 21456# How to feed a file listing to the archiver. 21457archiver_list_spec=$lt_archiver_list_spec 21458 21459# A symbol stripping program. 21460STRIP=$lt_STRIP 21461 21462# Commands used to install an old-style archive. 21463RANLIB=$lt_RANLIB 21464old_postinstall_cmds=$lt_old_postinstall_cmds 21465old_postuninstall_cmds=$lt_old_postuninstall_cmds 21466 21467# Whether to use a lock for old archive extraction. 21468lock_old_archive_extraction=$lock_old_archive_extraction 21469 21470# A C compiler. 21471LTCC=$lt_CC 21472 21473# LTCC compiler flags. 21474LTCFLAGS=$lt_CFLAGS 21475 21476# Take the output of nm and produce a listing of raw symbols and C names. 21477global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21478 21479# Transform the output of nm in a proper C declaration. 21480global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21481 21482# Transform the output of nm into a list of symbols to manually relocate. 21483global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21484 21485# Transform the output of nm in a C name address pair. 21486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21487 21488# Transform the output of nm in a C name address pair when lib prefix is needed. 21489global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21490 21491# The name lister interface. 21492nm_interface=$lt_lt_cv_nm_interface 21493 21494# Specify filename containing input files for \$NM. 21495nm_file_list_spec=$lt_nm_file_list_spec 21496 21497# The root where to search for dependent libraries,and where our libraries should be installed. 21498lt_sysroot=$lt_sysroot 21499 21500# Command to truncate a binary pipe. 21501lt_truncate_bin=$lt_lt_cv_truncate_bin 21502 21503# The name of the directory that contains temporary libtool files. 21504objdir=$objdir 21505 21506# Used to examine libraries when file_magic_cmd begins with "file". 21507MAGIC_CMD=$MAGIC_CMD 21508 21509# Must we lock files when doing compilation? 21510need_locks=$lt_need_locks 21511 21512# Manifest tool. 21513MANIFEST_TOOL=$lt_MANIFEST_TOOL 21514 21515# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21516DSYMUTIL=$lt_DSYMUTIL 21517 21518# Tool to change global to local symbols on Mac OS X. 21519NMEDIT=$lt_NMEDIT 21520 21521# Tool to manipulate fat objects and archives on Mac OS X. 21522LIPO=$lt_LIPO 21523 21524# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21525OTOOL=$lt_OTOOL 21526 21527# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21528OTOOL64=$lt_OTOOL64 21529 21530# Old archive suffix (normally "a"). 21531libext=$libext 21532 21533# Shared library suffix (normally ".so"). 21534shrext_cmds=$lt_shrext_cmds 21535 21536# The commands to extract the exported symbol list from a shared archive. 21537extract_expsyms_cmds=$lt_extract_expsyms_cmds 21538 21539# Variables whose values should be saved in libtool wrapper scripts and 21540# restored at link time. 21541variables_saved_for_relink=$lt_variables_saved_for_relink 21542 21543# Do we need the "lib" prefix for modules? 21544need_lib_prefix=$need_lib_prefix 21545 21546# Do we need a version for libraries? 21547need_version=$need_version 21548 21549# Library versioning type. 21550version_type=$version_type 21551 21552# Shared library runtime path variable. 21553runpath_var=$runpath_var 21554 21555# Shared library path variable. 21556shlibpath_var=$shlibpath_var 21557 21558# Is shlibpath searched before the hard-coded library search path? 21559shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21560 21561# Format of library name prefix. 21562libname_spec=$lt_libname_spec 21563 21564# List of archive names. First name is the real one, the rest are links. 21565# The last name is the one that the linker finds with -lNAME 21566library_names_spec=$lt_library_names_spec 21567 21568# The coded name of the library, if different from the real name. 21569soname_spec=$lt_soname_spec 21570 21571# Permission mode override for installation of shared libraries. 21572install_override_mode=$lt_install_override_mode 21573 21574# Command to use after installation of a shared archive. 21575postinstall_cmds=$lt_postinstall_cmds 21576 21577# Command to use after uninstallation of a shared archive. 21578postuninstall_cmds=$lt_postuninstall_cmds 21579 21580# Commands used to finish a libtool library installation in a directory. 21581finish_cmds=$lt_finish_cmds 21582 21583# As "finish_cmds", except a single script fragment to be evaled but 21584# not shown. 21585finish_eval=$lt_finish_eval 21586 21587# Whether we should hardcode library paths into libraries. 21588hardcode_into_libs=$hardcode_into_libs 21589 21590# Compile-time system search path for libraries. 21591sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21592 21593# Detected run-time system search path for libraries. 21594sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21595 21596# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21597configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21598 21599# Whether dlopen is supported. 21600dlopen_support=$enable_dlopen 21601 21602# Whether dlopen of programs is supported. 21603dlopen_self=$enable_dlopen_self 21604 21605# Whether dlopen of statically linked programs is supported. 21606dlopen_self_static=$enable_dlopen_self_static 21607 21608# Commands to strip libraries. 21609old_striplib=$lt_old_striplib 21610striplib=$lt_striplib 21611 21612 21613# The linker used to build libraries. 21614LD=$lt_LD 21615 21616# How to create reloadable object files. 21617reload_flag=$lt_reload_flag 21618reload_cmds=$lt_reload_cmds 21619 21620# Commands used to build an old-style archive. 21621old_archive_cmds=$lt_old_archive_cmds 21622 21623# A language specific compiler. 21624CC=$lt_compiler 21625 21626# Is the compiler the GNU compiler? 21627with_gcc=$GCC 21628 21629# Compiler flag to turn off builtin functions. 21630no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21631 21632# Additional compiler flags for building library objects. 21633pic_flag=$lt_lt_prog_compiler_pic 21634 21635# How to pass a linker flag through the compiler. 21636wl=$lt_lt_prog_compiler_wl 21637 21638# Compiler flag to prevent dynamic linking. 21639link_static_flag=$lt_lt_prog_compiler_static 21640 21641# Does compiler simultaneously support -c and -o options? 21642compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21643 21644# Whether or not to add -lc for building shared libraries. 21645build_libtool_need_lc=$archive_cmds_need_lc 21646 21647# Whether or not to disallow shared libs when runtime libs are static. 21648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21649 21650# Compiler flag to allow reflexive dlopens. 21651export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21652 21653# Compiler flag to generate shared objects directly from archives. 21654whole_archive_flag_spec=$lt_whole_archive_flag_spec 21655 21656# Whether the compiler copes with passing no objects directly. 21657compiler_needs_object=$lt_compiler_needs_object 21658 21659# Create an old-style archive from a shared archive. 21660old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21661 21662# Create a temporary old-style archive to link instead of a shared archive. 21663old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21664 21665# Commands used to build a shared archive. 21666archive_cmds=$lt_archive_cmds 21667archive_expsym_cmds=$lt_archive_expsym_cmds 21668 21669# Commands used to build a loadable module if different from building 21670# a shared archive. 21671module_cmds=$lt_module_cmds 21672module_expsym_cmds=$lt_module_expsym_cmds 21673 21674# Whether we are building with GNU ld or not. 21675with_gnu_ld=$lt_with_gnu_ld 21676 21677# Flag that allows shared libraries with undefined symbols to be built. 21678allow_undefined_flag=$lt_allow_undefined_flag 21679 21680# Flag that enforces no undefined symbols. 21681no_undefined_flag=$lt_no_undefined_flag 21682 21683# Flag to hardcode \$libdir into a binary during linking. 21684# This must work even if \$libdir does not exist 21685hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21686 21687# Whether we need a single "-rpath" flag with a separated argument. 21688hardcode_libdir_separator=$lt_hardcode_libdir_separator 21689 21690# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21691# DIR into the resulting binary. 21692hardcode_direct=$hardcode_direct 21693 21694# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21695# DIR into the resulting binary and the resulting library dependency is 21696# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21697# library is relocated. 21698hardcode_direct_absolute=$hardcode_direct_absolute 21699 21700# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21701# into the resulting binary. 21702hardcode_minus_L=$hardcode_minus_L 21703 21704# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21705# into the resulting binary. 21706hardcode_shlibpath_var=$hardcode_shlibpath_var 21707 21708# Set to "yes" if building a shared library automatically hardcodes DIR 21709# into the library and all subsequent libraries and executables linked 21710# against it. 21711hardcode_automatic=$hardcode_automatic 21712 21713# Set to yes if linker adds runtime paths of dependent libraries 21714# to runtime path list. 21715inherit_rpath=$inherit_rpath 21716 21717# Whether libtool must link a program against all its dependency libraries. 21718link_all_deplibs=$link_all_deplibs 21719 21720# Set to "yes" if exported symbols are required. 21721always_export_symbols=$always_export_symbols 21722 21723# The commands to list exported symbols. 21724export_symbols_cmds=$lt_export_symbols_cmds 21725 21726# Symbols that should not be listed in the preloaded symbols. 21727exclude_expsyms=$lt_exclude_expsyms 21728 21729# Symbols that must always be exported. 21730include_expsyms=$lt_include_expsyms 21731 21732# Commands necessary for linking programs (against libraries) with templates. 21733prelink_cmds=$lt_prelink_cmds 21734 21735# Commands necessary for finishing linking programs. 21736postlink_cmds=$lt_postlink_cmds 21737 21738# Specify filename containing input files. 21739file_list_spec=$lt_file_list_spec 21740 21741# How to hardcode a shared library path into an executable. 21742hardcode_action=$hardcode_action 21743 21744# ### END LIBTOOL CONFIG 21745 21746_LT_EOF 21747 21748 cat <<'_LT_EOF' >> "$cfgfile" 21749 21750# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21751 21752# func_munge_path_list VARIABLE PATH 21753# ----------------------------------- 21754# VARIABLE is name of variable containing _space_ separated list of 21755# directories to be munged by the contents of PATH, which is string 21756# having a format: 21757# "DIR[:DIR]:" 21758# string "DIR[ DIR]" will be prepended to VARIABLE 21759# ":DIR[:DIR]" 21760# string "DIR[ DIR]" will be appended to VARIABLE 21761# "DIRP[:DIRP]::[DIRA:]DIRA" 21762# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21763# "DIRA[ DIRA]" will be appended to VARIABLE 21764# "DIR[:DIR]" 21765# VARIABLE will be replaced by "DIR[ DIR]" 21766func_munge_path_list () 21767{ 21768 case x$2 in 21769 x) 21770 ;; 21771 *:) 21772 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21773 ;; 21774 x:*) 21775 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21776 ;; 21777 *::*) 21778 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21779 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21780 ;; 21781 *) 21782 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21783 ;; 21784 esac 21785} 21786 21787 21788# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21789func_cc_basename () 21790{ 21791 for cc_temp in $*""; do 21792 case $cc_temp in 21793 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21794 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21795 \-*) ;; 21796 *) break;; 21797 esac 21798 done 21799 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21800} 21801 21802 21803# ### END FUNCTIONS SHARED WITH CONFIGURE 21804 21805_LT_EOF 21806 21807 case $host_os in 21808 aix3*) 21809 cat <<\_LT_EOF >> "$cfgfile" 21810# AIX sometimes has problems with the GCC collect2 program. For some 21811# reason, if we set the COLLECT_NAMES environment variable, the problems 21812# vanish in a puff of smoke. 21813if test set != "${COLLECT_NAMES+set}"; then 21814 COLLECT_NAMES= 21815 export COLLECT_NAMES 21816fi 21817_LT_EOF 21818 ;; 21819 esac 21820 21821 21822 21823ltmain=$ac_aux_dir/ltmain.sh 21824 21825 21826 # We use sed instead of cat because bash on DJGPP gets confused if 21827 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21828 # text mode, it properly converts lines to CR/LF. This bash problem 21829 # is reportedly fixed, but why not run on old versions too? 21830 $SED '$q' "$ltmain" >> "$cfgfile" \ 21831 || (rm -f "$cfgfile"; exit 1) 21832 21833 mv -f "$cfgfile" "$ofile" || 21834 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21835 chmod +x "$ofile" 21836 21837 ;; 21838 21839 esac 21840done # for ac_tag 21841 21842 21843as_fn_exit 0 21844_ACEOF 21845ac_clean_files=$ac_clean_files_save 21846 21847test $ac_write_fail = 0 || 21848 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21849 21850 21851# configure is writing to config.log, and then calls config.status. 21852# config.status does its own redirection, appending to config.log. 21853# Unfortunately, on DOS this fails, as config.log is still kept open 21854# by configure, so config.status won't be able to write to it; its 21855# output is simply discarded. So we exec the FD to /dev/null, 21856# effectively closing config.log, so it can be properly (re)opened and 21857# appended to by config.status. When coming back to configure, we 21858# need to make the FD available again. 21859if test "$no_create" != yes; then 21860 ac_cs_success=: 21861 ac_config_status_args= 21862 test "$silent" = yes && 21863 ac_config_status_args="$ac_config_status_args --quiet" 21864 exec 5>/dev/null 21865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21866 exec 5>>config.log 21867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21868 # would make configure fail if this is the last instruction. 21869 $ac_cs_success || as_fn_exit 1 21870fi 21871if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21873printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21874fi 21875 21876 21877