1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xf86-video-suncg14 1.1.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/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-suncg14/-/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-suncg14' 624PACKAGE_TARNAME='xf86-video-suncg14' 625PACKAGE_VERSION='1.1.3' 626PACKAGE_STRING='xf86-video-suncg14 1.1.3' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/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 669XORG_LIBS 670XORG_CFLAGS 671LT_SYS_LIBRARY_PATH 672OTOOL64 673OTOOL 674LIPO 675NMEDIT 676DSYMUTIL 677MANIFEST_TOOL 678RANLIB 679ac_ct_AR 680AR 681DLLTOOL 682OBJDUMP 683FILECMD 684LN_S 685NM 686ac_ct_DUMPBIN 687DUMPBIN 688LD 689FGREP 690EGREP 691GREP 692LIBTOOL 693MAN_SUBSTS 694XORG_MAN_PAGE 695ADMIN_MAN_DIR 696DRIVER_MAN_DIR 697MISC_MAN_DIR 698FILE_MAN_DIR 699LIB_MAN_DIR 700APP_MAN_DIR 701ADMIN_MAN_SUFFIX 702DRIVER_MAN_SUFFIX 703MISC_MAN_SUFFIX 704FILE_MAN_SUFFIX 705LIB_MAN_SUFFIX 706APP_MAN_SUFFIX 707SED 708host_os 709host_vendor 710host_cpu 711host 712build_os 713build_vendor 714build_cpu 715build 716INSTALL_CMD 717PKG_CONFIG_LIBDIR 718PKG_CONFIG_PATH 719PKG_CONFIG 720CHANGELOG_CMD 721STRICT_CFLAGS 722CWARNFLAGS 723BASE_CFLAGS 724am__fastdepCC_FALSE 725am__fastdepCC_TRUE 726CCDEPMODE 727am__nodep 728AMDEPBACKSLASH 729AMDEP_FALSE 730AMDEP_TRUE 731am__include 732DEPDIR 733OBJEXT 734EXEEXT 735ac_ct_CC 736CPPFLAGS 737LDFLAGS 738CFLAGS 739CC 740MAINT 741MAINTAINER_MODE_FALSE 742MAINTAINER_MODE_TRUE 743AM_BACKSLASH 744AM_DEFAULT_VERBOSITY 745AM_DEFAULT_V 746AM_V 747CSCOPE 748ETAGS 749CTAGS 750am__untar 751am__tar 752AMTAR 753am__leading_dot 754SET_MAKE 755AWK 756mkdir_p 757MKDIR_P 758INSTALL_STRIP_PROGRAM 759STRIP 760install_sh 761MAKEINFO 762AUTOHEADER 763AUTOMAKE 764AUTOCONF 765ACLOCAL 766VERSION 767PACKAGE 768CYGPATH_W 769am__isrc 770INSTALL_DATA 771INSTALL_SCRIPT 772INSTALL_PROGRAM 773target_alias 774host_alias 775build_alias 776LIBS 777ECHO_T 778ECHO_N 779ECHO_C 780DEFS 781mandir 782localedir 783libdir 784psdir 785pdfdir 786dvidir 787htmldir 788infodir 789docdir 790oldincludedir 791includedir 792runstatedir 793localstatedir 794sharedstatedir 795sysconfdir 796datadir 797datarootdir 798libexecdir 799sbindir 800bindir 801program_transform_name 802prefix 803exec_prefix 804PACKAGE_URL 805PACKAGE_BUGREPORT 806PACKAGE_STRING 807PACKAGE_VERSION 808PACKAGE_TARNAME 809PACKAGE_NAME 810PATH_SEPARATOR 811SHELL 812am__quote' 813ac_subst_files='' 814ac_user_opts=' 815enable_option_checking 816enable_silent_rules 817enable_maintainer_mode 818enable_dependency_tracking 819enable_selective_werror 820enable_strict_compilation 821enable_static 822enable_shared 823with_pic 824enable_fast_install 825with_aix_soname 826with_gnu_ld 827with_sysroot 828enable_libtool_lock 829with_xorg_module_dir 830' 831 ac_precious_vars='build_alias 832host_alias 833target_alias 834CC 835CFLAGS 836LDFLAGS 837LIBS 838CPPFLAGS 839PKG_CONFIG 840PKG_CONFIG_PATH 841PKG_CONFIG_LIBDIR 842LT_SYS_LIBRARY_PATH 843XORG_CFLAGS 844XORG_LIBS' 845 846 847# Initialize some variables set by options. 848ac_init_help= 849ac_init_version=false 850ac_unrecognized_opts= 851ac_unrecognized_sep= 852# The variables have the same names as the options, with 853# dashes changed to underlines. 854cache_file=/dev/null 855exec_prefix=NONE 856no_create= 857no_recursion= 858prefix=NONE 859program_prefix=NONE 860program_suffix=NONE 861program_transform_name=s,x,x, 862silent= 863site= 864srcdir= 865verbose= 866x_includes=NONE 867x_libraries=NONE 868 869# Installation directory options. 870# These are left unexpanded so users can "make install exec_prefix=/foo" 871# and all the variables that are supposed to be based on exec_prefix 872# by default will actually change. 873# Use braces instead of parens because sh, perl, etc. also accept them. 874# (The list follows the same order as the GNU Coding Standards.) 875bindir='${exec_prefix}/bin' 876sbindir='${exec_prefix}/sbin' 877libexecdir='${exec_prefix}/libexec' 878datarootdir='${prefix}/share' 879datadir='${datarootdir}' 880sysconfdir='${prefix}/etc' 881sharedstatedir='${prefix}/com' 882localstatedir='${prefix}/var' 883runstatedir='${localstatedir}/run' 884includedir='${prefix}/include' 885oldincludedir='/usr/include' 886docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 887infodir='${datarootdir}/info' 888htmldir='${docdir}' 889dvidir='${docdir}' 890pdfdir='${docdir}' 891psdir='${docdir}' 892libdir='${exec_prefix}/lib' 893localedir='${datarootdir}/locale' 894mandir='${datarootdir}/man' 895 896ac_prev= 897ac_dashdash= 898for ac_option 899do 900 # If the previous option needs an argument, assign it. 901 if test -n "$ac_prev"; then 902 eval $ac_prev=\$ac_option 903 ac_prev= 904 continue 905 fi 906 907 case $ac_option in 908 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 909 *=) ac_optarg= ;; 910 *) ac_optarg=yes ;; 911 esac 912 913 case $ac_dashdash$ac_option in 914 --) 915 ac_dashdash=yes ;; 916 917 -bindir | --bindir | --bindi | --bind | --bin | --bi) 918 ac_prev=bindir ;; 919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 920 bindir=$ac_optarg ;; 921 922 -build | --build | --buil | --bui | --bu) 923 ac_prev=build_alias ;; 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 925 build_alias=$ac_optarg ;; 926 927 -cache-file | --cache-file | --cache-fil | --cache-fi \ 928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 929 ac_prev=cache_file ;; 930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 932 cache_file=$ac_optarg ;; 933 934 --config-cache | -C) 935 cache_file=config.cache ;; 936 937 -datadir | --datadir | --datadi | --datad) 938 ac_prev=datadir ;; 939 -datadir=* | --datadir=* | --datadi=* | --datad=*) 940 datadir=$ac_optarg ;; 941 942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 943 | --dataroo | --dataro | --datar) 944 ac_prev=datarootdir ;; 945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 947 datarootdir=$ac_optarg ;; 948 949 -disable-* | --disable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: \`$ac_useropt'" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958"enable_$ac_useropt" 959"*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=no ;; 964 965 -docdir | --docdir | --docdi | --doc | --do) 966 ac_prev=docdir ;; 967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 968 docdir=$ac_optarg ;; 969 970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 971 ac_prev=dvidir ;; 972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 973 dvidir=$ac_optarg ;; 974 975 -enable-* | --enable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error $? "invalid feature name: \`$ac_useropt'" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984"enable_$ac_useropt" 985"*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=\$ac_optarg ;; 990 991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 993 | --exec | --exe | --ex) 994 ac_prev=exec_prefix ;; 995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 997 | --exec=* | --exe=* | --ex=*) 998 exec_prefix=$ac_optarg ;; 999 1000 -gas | --gas | --ga | --g) 1001 # Obsolete; use --with-gas. 1002 with_gas=yes ;; 1003 1004 -help | --help | --hel | --he | -h) 1005 ac_init_help=long ;; 1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1007 ac_init_help=recursive ;; 1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1009 ac_init_help=short ;; 1010 1011 -host | --host | --hos | --ho) 1012 ac_prev=host_alias ;; 1013 -host=* | --host=* | --hos=* | --ho=*) 1014 host_alias=$ac_optarg ;; 1015 1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1017 ac_prev=htmldir ;; 1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1019 | --ht=*) 1020 htmldir=$ac_optarg ;; 1021 1022 -includedir | --includedir | --includedi | --included | --include \ 1023 | --includ | --inclu | --incl | --inc) 1024 ac_prev=includedir ;; 1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1026 | --includ=* | --inclu=* | --incl=* | --inc=*) 1027 includedir=$ac_optarg ;; 1028 1029 -infodir | --infodir | --infodi | --infod | --info | --inf) 1030 ac_prev=infodir ;; 1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1032 infodir=$ac_optarg ;; 1033 1034 -libdir | --libdir | --libdi | --libd) 1035 ac_prev=libdir ;; 1036 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1037 libdir=$ac_optarg ;; 1038 1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1040 | --libexe | --libex | --libe) 1041 ac_prev=libexecdir ;; 1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1043 | --libexe=* | --libex=* | --libe=*) 1044 libexecdir=$ac_optarg ;; 1045 1046 -localedir | --localedir | --localedi | --localed | --locale) 1047 ac_prev=localedir ;; 1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1049 localedir=$ac_optarg ;; 1050 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1052 | --localstate | --localstat | --localsta | --localst | --locals) 1053 ac_prev=localstatedir ;; 1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1056 localstatedir=$ac_optarg ;; 1057 1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1059 ac_prev=mandir ;; 1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1061 mandir=$ac_optarg ;; 1062 1063 -nfp | --nfp | --nf) 1064 # Obsolete; use --without-fp. 1065 with_fp=no ;; 1066 1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1068 | --no-cr | --no-c | -n) 1069 no_create=yes ;; 1070 1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1073 no_recursion=yes ;; 1074 1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1077 | --oldin | --oldi | --old | --ol | --o) 1078 ac_prev=oldincludedir ;; 1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1082 oldincludedir=$ac_optarg ;; 1083 1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1085 ac_prev=prefix ;; 1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1087 prefix=$ac_optarg ;; 1088 1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1090 | --program-pre | --program-pr | --program-p) 1091 ac_prev=program_prefix ;; 1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1094 program_prefix=$ac_optarg ;; 1095 1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1097 | --program-suf | --program-su | --program-s) 1098 ac_prev=program_suffix ;; 1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1101 program_suffix=$ac_optarg ;; 1102 1103 -program-transform-name | --program-transform-name \ 1104 | --program-transform-nam | --program-transform-na \ 1105 | --program-transform-n | --program-transform- \ 1106 | --program-transform | --program-transfor \ 1107 | --program-transfo | --program-transf \ 1108 | --program-trans | --program-tran \ 1109 | --progr-tra | --program-tr | --program-t) 1110 ac_prev=program_transform_name ;; 1111 -program-transform-name=* | --program-transform-name=* \ 1112 | --program-transform-nam=* | --program-transform-na=* \ 1113 | --program-transform-n=* | --program-transform-=* \ 1114 | --program-transform=* | --program-transfor=* \ 1115 | --program-transfo=* | --program-transf=* \ 1116 | --program-trans=* | --program-tran=* \ 1117 | --progr-tra=* | --program-tr=* | --program-t=*) 1118 program_transform_name=$ac_optarg ;; 1119 1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1121 ac_prev=pdfdir ;; 1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1123 pdfdir=$ac_optarg ;; 1124 1125 -psdir | --psdir | --psdi | --psd | --ps) 1126 ac_prev=psdir ;; 1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1128 psdir=$ac_optarg ;; 1129 1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1131 | -silent | --silent | --silen | --sile | --sil) 1132 silent=yes ;; 1133 1134 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1135 | --runstate | --runstat | --runsta | --runst | --runs \ 1136 | --run | --ru | --r) 1137 ac_prev=runstatedir ;; 1138 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1139 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1140 | --run=* | --ru=* | --r=*) 1141 runstatedir=$ac_optarg ;; 1142 1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1144 ac_prev=sbindir ;; 1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1146 | --sbi=* | --sb=*) 1147 sbindir=$ac_optarg ;; 1148 1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1151 | --sharedst | --shareds | --shared | --share | --shar \ 1152 | --sha | --sh) 1153 ac_prev=sharedstatedir ;; 1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1157 | --sha=* | --sh=*) 1158 sharedstatedir=$ac_optarg ;; 1159 1160 -site | --site | --sit) 1161 ac_prev=site ;; 1162 -site=* | --site=* | --sit=*) 1163 site=$ac_optarg ;; 1164 1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1166 ac_prev=srcdir ;; 1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1168 srcdir=$ac_optarg ;; 1169 1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1171 | --syscon | --sysco | --sysc | --sys | --sy) 1172 ac_prev=sysconfdir ;; 1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1175 sysconfdir=$ac_optarg ;; 1176 1177 -target | --target | --targe | --targ | --tar | --ta | --t) 1178 ac_prev=target_alias ;; 1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1180 target_alias=$ac_optarg ;; 1181 1182 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1183 verbose=yes ;; 1184 1185 -version | --version | --versio | --versi | --vers | -V) 1186 ac_init_version=: ;; 1187 1188 -with-* | --with-*) 1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1190 # Reject names that are not valid shell variable names. 1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1192 as_fn_error $? "invalid package name: \`$ac_useropt'" 1193 ac_useropt_orig=$ac_useropt 1194 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1195 case $ac_user_opts in 1196 *" 1197"with_$ac_useropt" 1198"*) ;; 1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1200 ac_unrecognized_sep=', ';; 1201 esac 1202 eval with_$ac_useropt=\$ac_optarg ;; 1203 1204 -without-* | --without-*) 1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1206 # Reject names that are not valid shell variable names. 1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1208 as_fn_error $? "invalid package name: \`$ac_useropt'" 1209 ac_useropt_orig=$ac_useropt 1210 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1211 case $ac_user_opts in 1212 *" 1213"with_$ac_useropt" 1214"*) ;; 1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1216 ac_unrecognized_sep=', ';; 1217 esac 1218 eval with_$ac_useropt=no ;; 1219 1220 --x) 1221 # Obsolete; use --with-x. 1222 with_x=yes ;; 1223 1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1225 | --x-incl | --x-inc | --x-in | --x-i) 1226 ac_prev=x_includes ;; 1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1229 x_includes=$ac_optarg ;; 1230 1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1233 ac_prev=x_libraries ;; 1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1236 x_libraries=$ac_optarg ;; 1237 1238 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1239Try \`$0 --help' for more information" 1240 ;; 1241 1242 *=*) 1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1244 # Reject names that are not valid shell variable names. 1245 case $ac_envvar in #( 1246 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1247 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1248 esac 1249 eval $ac_envvar=\$ac_optarg 1250 export $ac_envvar ;; 1251 1252 *) 1253 # FIXME: should be removed in autoconf 3.0. 1254 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1256 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1257 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1258 ;; 1259 1260 esac 1261done 1262 1263if test -n "$ac_prev"; then 1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1265 as_fn_error $? "missing argument to $ac_option" 1266fi 1267 1268if test -n "$ac_unrecognized_opts"; then 1269 case $enable_option_checking in 1270 no) ;; 1271 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1272 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1273 esac 1274fi 1275 1276# Check all directory arguments for consistency. 1277for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1278 datadir sysconfdir sharedstatedir localstatedir includedir \ 1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1280 libdir localedir mandir runstatedir 1281do 1282 eval ac_val=\$$ac_var 1283 # Remove trailing slashes. 1284 case $ac_val in 1285 */ ) 1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1287 eval $ac_var=\$ac_val;; 1288 esac 1289 # Be sure to have absolute directory names. 1290 case $ac_val in 1291 [\\/$]* | ?:[\\/]* ) continue;; 1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1293 esac 1294 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1295done 1296 1297# There might be people who depend on the old broken behavior: `$host' 1298# used to hold the argument of --host etc. 1299# FIXME: To remove some day. 1300build=$build_alias 1301host=$host_alias 1302target=$target_alias 1303 1304# FIXME: To remove some day. 1305if test "x$host_alias" != x; then 1306 if test "x$build_alias" = x; then 1307 cross_compiling=maybe 1308 elif test "x$build_alias" != "x$host_alias"; then 1309 cross_compiling=yes 1310 fi 1311fi 1312 1313ac_tool_prefix= 1314test -n "$host_alias" && ac_tool_prefix=$host_alias- 1315 1316test "$silent" = yes && exec 6>/dev/null 1317 1318 1319ac_pwd=`pwd` && test -n "$ac_pwd" && 1320ac_ls_di=`ls -di .` && 1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1322 as_fn_error $? "working directory cannot be determined" 1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1324 as_fn_error $? "pwd does not report name of working directory" 1325 1326 1327# Find the source files, if location was not specified. 1328if test -z "$srcdir"; then 1329 ac_srcdir_defaulted=yes 1330 # Try the directory containing this script, then the parent directory. 1331 ac_confdir=`$as_dirname -- "$as_myself" || 1332$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1333 X"$as_myself" : 'X\(//\)[^/]' \| \ 1334 X"$as_myself" : 'X\(//\)$' \| \ 1335 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1336printf "%s\n" X"$as_myself" | 1337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\/\)[^/].*/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)$/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\).*/{ 1350 s//\1/ 1351 q 1352 } 1353 s/.*/./; q'` 1354 srcdir=$ac_confdir 1355 if test ! -r "$srcdir/$ac_unique_file"; then 1356 srcdir=.. 1357 fi 1358else 1359 ac_srcdir_defaulted=no 1360fi 1361if test ! -r "$srcdir/$ac_unique_file"; then 1362 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1363 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1364fi 1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1366ac_abs_confdir=`( 1367 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1368 pwd)` 1369# When building in place, set srcdir=. 1370if test "$ac_abs_confdir" = "$ac_pwd"; then 1371 srcdir=. 1372fi 1373# Remove unnecessary trailing slashes from srcdir. 1374# Double slashes in file names in object file debugging info 1375# mess up M-x gdb in Emacs. 1376case $srcdir in 1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1378esac 1379for ac_var in $ac_precious_vars; do 1380 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_env_${ac_var}_value=\$${ac_var} 1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1384done 1385 1386# 1387# Report the --help message. 1388# 1389if test "$ac_init_help" = "long"; then 1390 # Omit some internal or obsolete options to make the list less imposing. 1391 # This message is too long to be a string in the A/UX 3.1 sh. 1392 cat <<_ACEOF 1393\`configure' configures xf86-video-suncg14 1.1.3 to adapt to many kinds of systems. 1394 1395Usage: $0 [OPTION]... [VAR=VALUE]... 1396 1397To assign environment variables (e.g., CC, CFLAGS...), specify them as 1398VAR=VALUE. See below for descriptions of some of the useful variables. 1399 1400Defaults for the options are specified in brackets. 1401 1402Configuration: 1403 -h, --help display this help and exit 1404 --help=short display options specific to this package 1405 --help=recursive display the short help of all the included packages 1406 -V, --version display version information and exit 1407 -q, --quiet, --silent do not print \`checking ...' messages 1408 --cache-file=FILE cache test results in FILE [disabled] 1409 -C, --config-cache alias for \`--cache-file=config.cache' 1410 -n, --no-create do not create output files 1411 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1412 1413Installation directories: 1414 --prefix=PREFIX install architecture-independent files in PREFIX 1415 [$ac_default_prefix] 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1417 [PREFIX] 1418 1419By default, \`make install' will install all the files in 1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1421an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1422for instance \`--prefix=\$HOME'. 1423 1424For better control, use the options below. 1425 1426Fine tuning of the installation directories: 1427 --bindir=DIR user executables [EPREFIX/bin] 1428 --sbindir=DIR system admin executables [EPREFIX/sbin] 1429 --libexecdir=DIR program executables [EPREFIX/libexec] 1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1433 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1434 --libdir=DIR object code libraries [EPREFIX/lib] 1435 --includedir=DIR C header files [PREFIX/include] 1436 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1437 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1438 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1439 --infodir=DIR info documentation [DATAROOTDIR/info] 1440 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1441 --mandir=DIR man documentation [DATAROOTDIR/man] 1442 --docdir=DIR documentation root 1443 [DATAROOTDIR/doc/xf86-video-suncg14] 1444 --htmldir=DIR html documentation [DOCDIR] 1445 --dvidir=DIR dvi documentation [DOCDIR] 1446 --pdfdir=DIR pdf documentation [DOCDIR] 1447 --psdir=DIR ps documentation [DOCDIR] 1448_ACEOF 1449 1450 cat <<\_ACEOF 1451 1452Program names: 1453 --program-prefix=PREFIX prepend PREFIX to installed program names 1454 --program-suffix=SUFFIX append SUFFIX to installed program names 1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1456 1457System types: 1458 --build=BUILD configure for building on BUILD [guessed] 1459 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1460_ACEOF 1461fi 1462 1463if test -n "$ac_init_help"; then 1464 case $ac_init_help in 1465 short | recursive ) echo "Configuration of xf86-video-suncg14 1.1.3:";; 1466 esac 1467 cat <<\_ACEOF 1468 1469Optional Features: 1470 --disable-option-checking ignore unrecognized --enable/--with options 1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1473 --enable-silent-rules less verbose build output (undo: "make V=1") 1474 --disable-silent-rules verbose build output (undo: "make V=0") 1475 --enable-maintainer-mode 1476 enable make rules and dependencies not useful (and 1477 sometimes confusing) to the casual installer 1478 --enable-dependency-tracking 1479 do not reject slow dependency extractors 1480 --disable-dependency-tracking 1481 speeds up one-time build 1482 --disable-selective-werror 1483 Turn off selective compiler errors. (default: 1484 enabled) 1485 --enable-strict-compilation 1486 Enable all warnings from compiler and make them 1487 errors (default: disabled) 1488 --enable-static[=PKGS] build static libraries [default=no] 1489 --enable-shared[=PKGS] build shared libraries [default=yes] 1490 --enable-fast-install[=PKGS] 1491 optimize for fast installation [default=yes] 1492 --disable-libtool-lock avoid locking (might break parallel builds) 1493 1494Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1498 both] 1499 --with-aix-soname=aix|svr4|both 1500 shared library versioning (aka "SONAME") variant to 1501 provide on AIX, [default=aix]. 1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1504 compiler's sysroot if not specified). 1505 --with-xorg-module-dir=DIR 1506 Default xorg module directory 1507 [[default=$libdir/xorg/modules]] 1508 1509Some influential environment variables: 1510 CC C compiler command 1511 CFLAGS C compiler flags 1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1513 nonstandard directory <lib dir> 1514 LIBS libraries to pass to the linker, e.g. -l<library> 1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1516 you have headers in a nonstandard directory <include dir> 1517 PKG_CONFIG path to pkg-config utility 1518 PKG_CONFIG_PATH 1519 directories to add to pkg-config's search path 1520 PKG_CONFIG_LIBDIR 1521 path overriding pkg-config's built-in search path 1522 LT_SYS_LIBRARY_PATH 1523 User-defined run-time library search path. 1524 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1525 XORG_LIBS linker flags for XORG, overriding pkg-config 1526 1527Use these variables to override the choices made by `configure' or to help 1528it to find libraries and programs with nonstandard names/locations. 1529 1530Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/issues>. 1531_ACEOF 1532ac_status=$? 1533fi 1534 1535if test "$ac_init_help" = "recursive"; then 1536 # If there are subdirs, report their specific --help. 1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1538 test -d "$ac_dir" || 1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1540 continue 1541 ac_builddir=. 1542 1543case "$ac_dir" in 1544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545*) 1546 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1547 # A ".." for each directory in $ac_dir_suffix. 1548 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1549 case $ac_top_builddir_sub in 1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1552 esac ;; 1553esac 1554ac_abs_top_builddir=$ac_pwd 1555ac_abs_builddir=$ac_pwd$ac_dir_suffix 1556# for backward compatibility: 1557ac_top_builddir=$ac_top_build_prefix 1558 1559case $srcdir in 1560 .) # We are building in place. 1561 ac_srcdir=. 1562 ac_top_srcdir=$ac_top_builddir_sub 1563 ac_abs_top_srcdir=$ac_pwd ;; 1564 [\\/]* | ?:[\\/]* ) # Absolute name. 1565 ac_srcdir=$srcdir$ac_dir_suffix; 1566 ac_top_srcdir=$srcdir 1567 ac_abs_top_srcdir=$srcdir ;; 1568 *) # Relative name. 1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1570 ac_top_srcdir=$ac_top_build_prefix$srcdir 1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1572esac 1573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1574 1575 cd "$ac_dir" || { ac_status=$?; continue; } 1576 # Check for configure.gnu first; this name is used for a wrapper for 1577 # Metaconfig's "Configure" on case-insensitive file systems. 1578 if test -f "$ac_srcdir/configure.gnu"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1581 elif test -f "$ac_srcdir/configure"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure" --help=recursive 1584 else 1585 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1586 fi || ac_status=$? 1587 cd "$ac_pwd" || { ac_status=$?; break; } 1588 done 1589fi 1590 1591test -n "$ac_init_help" && exit $ac_status 1592if $ac_init_version; then 1593 cat <<\_ACEOF 1594xf86-video-suncg14 configure 1.1.3 1595generated by GNU Autoconf 2.71 1596 1597Copyright (C) 2021 Free Software Foundation, Inc. 1598This configure script is free software; the Free Software Foundation 1599gives unlimited permission to copy, distribute and modify it. 1600_ACEOF 1601 exit 1602fi 1603 1604## ------------------------ ## 1605## Autoconf initialization. ## 1606## ------------------------ ## 1607 1608# ac_fn_c_try_compile LINENO 1609# -------------------------- 1610# Try to compile conftest.$ac_ext, and return whether this succeeded. 1611ac_fn_c_try_compile () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 rm -f conftest.$ac_objext conftest.beam 1615 if { { ac_try="$ac_compile" 1616case "(($ac_try" in 1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1618 *) ac_try_echo=$ac_try;; 1619esac 1620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1621printf "%s\n" "$ac_try_echo"; } >&5 1622 (eval "$ac_compile") 2>conftest.err 1623 ac_status=$? 1624 if test -s conftest.err; then 1625 grep -v '^ *+' conftest.err >conftest.er1 1626 cat conftest.er1 >&5 1627 mv -f conftest.er1 conftest.err 1628 fi 1629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } && { 1631 test -z "$ac_c_werror_flag" || 1632 test ! -s conftest.err 1633 } && test -s conftest.$ac_objext 1634then : 1635 ac_retval=0 1636else $as_nop 1637 printf "%s\n" "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645} # ac_fn_c_try_compile 1646 1647# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1648# ------------------------------------------------------------------ 1649# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1650# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1651ac_fn_check_decl () 1652{ 1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1654 as_decl_name=`echo $2|sed 's/ *(.*//'` 1655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1656printf %s "checking whether $as_decl_name is declared... " >&6; } 1657if eval test \${$3+y} 1658then : 1659 printf %s "(cached) " >&6 1660else $as_nop 1661 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1662 eval ac_save_FLAGS=\$$6 1663 as_fn_append $6 " $5" 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1665/* end confdefs.h. */ 1666$4 1667int 1668main (void) 1669{ 1670#ifndef $as_decl_name 1671#ifdef __cplusplus 1672 (void) $as_decl_use; 1673#else 1674 (void) $as_decl_name; 1675#endif 1676#endif 1677 1678 ; 1679 return 0; 1680} 1681_ACEOF 1682if ac_fn_c_try_compile "$LINENO" 1683then : 1684 eval "$3=yes" 1685else $as_nop 1686 eval "$3=no" 1687fi 1688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1689 eval $6=\$ac_save_FLAGS 1690 1691fi 1692eval ac_res=\$$3 1693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1694printf "%s\n" "$ac_res" >&6; } 1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1696 1697} # ac_fn_check_decl 1698 1699# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1700# ------------------------------------------------------- 1701# Tests whether HEADER exists and can be compiled using the include files in 1702# INCLUDES, setting the cache variable VAR accordingly. 1703ac_fn_c_check_header_compile () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1707printf %s "checking for $2... " >&6; } 1708if eval test \${$3+y} 1709then : 1710 printf %s "(cached) " >&6 1711else $as_nop 1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1713/* end confdefs.h. */ 1714$4 1715#include <$2> 1716_ACEOF 1717if ac_fn_c_try_compile "$LINENO" 1718then : 1719 eval "$3=yes" 1720else $as_nop 1721 eval "$3=no" 1722fi 1723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1724fi 1725eval ac_res=\$$3 1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1727printf "%s\n" "$ac_res" >&6; } 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 1730} # ac_fn_c_check_header_compile 1731 1732# ac_fn_c_try_link LINENO 1733# ----------------------- 1734# Try to link conftest.$ac_ext, and return whether this succeeded. 1735ac_fn_c_try_link () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1739 if { { ac_try="$ac_link" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745printf "%s\n" "$ac_try_echo"; } >&5 1746 (eval "$ac_link") 2>conftest.err 1747 ac_status=$? 1748 if test -s conftest.err; then 1749 grep -v '^ *+' conftest.err >conftest.er1 1750 cat conftest.er1 >&5 1751 mv -f conftest.er1 conftest.err 1752 fi 1753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; } && { 1755 test -z "$ac_c_werror_flag" || 1756 test ! -s conftest.err 1757 } && test -s conftest$ac_exeext && { 1758 test "$cross_compiling" = yes || 1759 test -x conftest$ac_exeext 1760 } 1761then : 1762 ac_retval=0 1763else $as_nop 1764 printf "%s\n" "$as_me: failed program was:" >&5 1765sed 's/^/| /' conftest.$ac_ext >&5 1766 1767 ac_retval=1 1768fi 1769 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1770 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1771 # interfere with the next link command; also delete a directory that is 1772 # left behind by Apple's compiler. We do this before executing the actions. 1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 as_fn_set_status $ac_retval 1776 1777} # ac_fn_c_try_link 1778 1779# ac_fn_c_check_func LINENO FUNC VAR 1780# ---------------------------------- 1781# Tests whether FUNC exists, setting the cache variable VAR accordingly 1782ac_fn_c_check_func () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786printf %s "checking for $2... " >&6; } 1787if eval test \${$3+y} 1788then : 1789 printf %s "(cached) " >&6 1790else $as_nop 1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792/* end confdefs.h. */ 1793/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1794 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1795#define $2 innocuous_$2 1796 1797/* System header to define __stub macros and hopefully few prototypes, 1798 which can conflict with char $2 (); below. */ 1799 1800#include <limits.h> 1801#undef $2 1802 1803/* Override any GCC internal prototype to avoid an error. 1804 Use char because int might match the return type of a GCC 1805 builtin and then its argument prototype would still apply. */ 1806#ifdef __cplusplus 1807extern "C" 1808#endif 1809char $2 (); 1810/* The GNU C library defines this for functions which it implements 1811 to always fail with ENOSYS. Some functions are actually named 1812 something starting with __ and the normal name is an alias. */ 1813#if defined __stub_$2 || defined __stub___$2 1814choke me 1815#endif 1816 1817int 1818main (void) 1819{ 1820return $2 (); 1821 ; 1822 return 0; 1823} 1824_ACEOF 1825if ac_fn_c_try_link "$LINENO" 1826then : 1827 eval "$3=yes" 1828else $as_nop 1829 eval "$3=no" 1830fi 1831rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1832 conftest$ac_exeext conftest.$ac_ext 1833fi 1834eval ac_res=\$$3 1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1836printf "%s\n" "$ac_res" >&6; } 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 1839} # ac_fn_c_check_func 1840ac_configure_args_raw= 1841for ac_arg 1842do 1843 case $ac_arg in 1844 *\'*) 1845 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1846 esac 1847 as_fn_append ac_configure_args_raw " '$ac_arg'" 1848done 1849 1850case $ac_configure_args_raw in 1851 *$as_nl*) 1852 ac_safe_unquote= ;; 1853 *) 1854 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1855 ac_unsafe_a="$ac_unsafe_z#~" 1856 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1857 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1858esac 1859 1860cat >config.log <<_ACEOF 1861This file contains any messages produced by compilers while 1862running configure, to aid debugging if configure makes a mistake. 1863 1864It was created by xf86-video-suncg14 $as_me 1.1.3, which was 1865generated by GNU Autoconf 2.71. Invocation command line was 1866 1867 $ $0$ac_configure_args_raw 1868 1869_ACEOF 1870exec 5>>config.log 1871{ 1872cat <<_ASUNAME 1873## --------- ## 1874## Platform. ## 1875## --------- ## 1876 1877hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1878uname -m = `(uname -m) 2>/dev/null || echo unknown` 1879uname -r = `(uname -r) 2>/dev/null || echo unknown` 1880uname -s = `(uname -s) 2>/dev/null || echo unknown` 1881uname -v = `(uname -v) 2>/dev/null || echo unknown` 1882 1883/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1884/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1885 1886/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1887/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1888/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1889/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1890/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1891/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1892/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1893 1894_ASUNAME 1895 1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1897for as_dir in $PATH 1898do 1899 IFS=$as_save_IFS 1900 case $as_dir in #((( 1901 '') as_dir=./ ;; 1902 */) ;; 1903 *) as_dir=$as_dir/ ;; 1904 esac 1905 printf "%s\n" "PATH: $as_dir" 1906 done 1907IFS=$as_save_IFS 1908 1909} >&5 1910 1911cat >&5 <<_ACEOF 1912 1913 1914## ----------- ## 1915## Core tests. ## 1916## ----------- ## 1917 1918_ACEOF 1919 1920 1921# Keep a trace of the command line. 1922# Strip out --no-create and --no-recursion so they do not pile up. 1923# Strip out --silent because we don't want to record it for future runs. 1924# Also quote any args containing shell meta-characters. 1925# Make two passes to allow for proper duplicate-argument suppression. 1926ac_configure_args= 1927ac_configure_args0= 1928ac_configure_args1= 1929ac_must_keep_next=false 1930for ac_pass in 1 2 1931do 1932 for ac_arg 1933 do 1934 case $ac_arg in 1935 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1937 | -silent | --silent | --silen | --sile | --sil) 1938 continue ;; 1939 *\'*) 1940 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1941 esac 1942 case $ac_pass in 1943 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1944 2) 1945 as_fn_append ac_configure_args1 " '$ac_arg'" 1946 if test $ac_must_keep_next = true; then 1947 ac_must_keep_next=false # Got value, back to normal. 1948 else 1949 case $ac_arg in 1950 *=* | --config-cache | -C | -disable-* | --disable-* \ 1951 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1952 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1953 | -with-* | --with-* | -without-* | --without-* | --x) 1954 case "$ac_configure_args0 " in 1955 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1956 esac 1957 ;; 1958 -* ) ac_must_keep_next=true ;; 1959 esac 1960 fi 1961 as_fn_append ac_configure_args " '$ac_arg'" 1962 ;; 1963 esac 1964 done 1965done 1966{ ac_configure_args0=; unset ac_configure_args0;} 1967{ ac_configure_args1=; unset ac_configure_args1;} 1968 1969# When interrupted or exit'd, cleanup temporary files, and complete 1970# config.log. We remove comments because anyway the quotes in there 1971# would cause problems or look ugly. 1972# WARNING: Use '\'' to represent an apostrophe within the trap. 1973# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1974trap 'exit_status=$? 1975 # Sanitize IFS. 1976 IFS=" "" $as_nl" 1977 # Save into config.log some information that might help in debugging. 1978 { 1979 echo 1980 1981 printf "%s\n" "## ---------------- ## 1982## Cache variables. ## 1983## ---------------- ##" 1984 echo 1985 # The following way of writing the cache mishandles newlines in values, 1986( 1987 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1988 eval ac_val=\$$ac_var 1989 case $ac_val in #( 1990 *${as_nl}*) 1991 case $ac_var in #( 1992 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1993printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1994 esac 1995 case $ac_var in #( 1996 _ | IFS | as_nl) ;; #( 1997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1998 *) { eval $ac_var=; unset $ac_var;} ;; 1999 esac ;; 2000 esac 2001 done 2002 (set) 2>&1 | 2003 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2004 *${as_nl}ac_space=\ *) 2005 sed -n \ 2006 "s/'\''/'\''\\\\'\'''\''/g; 2007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2008 ;; #( 2009 *) 2010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2011 ;; 2012 esac | 2013 sort 2014) 2015 echo 2016 2017 printf "%s\n" "## ----------------- ## 2018## Output variables. ## 2019## ----------------- ##" 2020 echo 2021 for ac_var in $ac_subst_vars 2022 do 2023 eval ac_val=\$$ac_var 2024 case $ac_val in 2025 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2026 esac 2027 printf "%s\n" "$ac_var='\''$ac_val'\''" 2028 done | sort 2029 echo 2030 2031 if test -n "$ac_subst_files"; then 2032 printf "%s\n" "## ------------------- ## 2033## File substitutions. ## 2034## ------------------- ##" 2035 echo 2036 for ac_var in $ac_subst_files 2037 do 2038 eval ac_val=\$$ac_var 2039 case $ac_val in 2040 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2041 esac 2042 printf "%s\n" "$ac_var='\''$ac_val'\''" 2043 done | sort 2044 echo 2045 fi 2046 2047 if test -s confdefs.h; then 2048 printf "%s\n" "## ----------- ## 2049## confdefs.h. ## 2050## ----------- ##" 2051 echo 2052 cat confdefs.h 2053 echo 2054 fi 2055 test "$ac_signal" != 0 && 2056 printf "%s\n" "$as_me: caught signal $ac_signal" 2057 printf "%s\n" "$as_me: exit $exit_status" 2058 } >&5 2059 rm -f core *.core core.conftest.* && 2060 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2061 exit $exit_status 2062' 0 2063for ac_signal in 1 2 13 15; do 2064 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2065done 2066ac_signal=0 2067 2068# confdefs.h avoids OS command line length limits that DEFS can exceed. 2069rm -f -r conftest* confdefs.h 2070 2071printf "%s\n" "/* confdefs.h */" > confdefs.h 2072 2073# Predefined preprocessor variables. 2074 2075printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2076 2077printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2078 2079printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2080 2081printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2082 2083printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2084 2085printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2086 2087 2088# Let the site file select an alternate cache file if it wants to. 2089# Prefer an explicitly selected file to automatically selected ones. 2090if test -n "$CONFIG_SITE"; then 2091 ac_site_files="$CONFIG_SITE" 2092elif test "x$prefix" != xNONE; then 2093 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2094else 2095 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2096fi 2097 2098for ac_site_file in $ac_site_files 2099do 2100 case $ac_site_file in #( 2101 */*) : 2102 ;; #( 2103 *) : 2104 ac_site_file=./$ac_site_file ;; 2105esac 2106 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2108printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2109 sed 's/^/| /' "$ac_site_file" >&5 2110 . "$ac_site_file" \ 2111 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2112printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2113as_fn_error $? "failed to load site script $ac_site_file 2114See \`config.log' for more details" "$LINENO" 5; } 2115 fi 2116done 2117 2118if test -r "$cache_file"; then 2119 # Some versions of bash will fail to source /dev/null (special files 2120 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2121 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2123printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2124 case $cache_file in 2125 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2126 *) . "./$cache_file";; 2127 esac 2128 fi 2129else 2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2131printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2132 >$cache_file 2133fi 2134 2135# Test code for whether the C compiler supports C89 (global declarations) 2136ac_c_conftest_c89_globals=' 2137/* Does the compiler advertise C89 conformance? 2138 Do not test the value of __STDC__, because some compilers set it to 0 2139 while being otherwise adequately conformant. */ 2140#if !defined __STDC__ 2141# error "Compiler does not advertise C89 conformance" 2142#endif 2143 2144#include <stddef.h> 2145#include <stdarg.h> 2146struct stat; 2147/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2148struct buf { int x; }; 2149struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2150static char *e (p, i) 2151 char **p; 2152 int i; 2153{ 2154 return p[i]; 2155} 2156static char *f (char * (*g) (char **, int), char **p, ...) 2157{ 2158 char *s; 2159 va_list v; 2160 va_start (v,p); 2161 s = g (p, va_arg (v,int)); 2162 va_end (v); 2163 return s; 2164} 2165 2166/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2167 function prototypes and stuff, but not \xHH hex character constants. 2168 These do not provoke an error unfortunately, instead are silently treated 2169 as an "x". The following induces an error, until -std is added to get 2170 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2171 array size at least. It is necessary to write \x00 == 0 to get something 2172 that is true only with -std. */ 2173int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2174 2175/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2176 inside strings and character constants. */ 2177#define FOO(x) '\''x'\'' 2178int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2179 2180int test (int i, double x); 2181struct s1 {int (*f) (int a);}; 2182struct s2 {int (*f) (double a);}; 2183int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2184 int, int);' 2185 2186# Test code for whether the C compiler supports C89 (body of main). 2187ac_c_conftest_c89_main=' 2188ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2189' 2190 2191# Test code for whether the C compiler supports C99 (global declarations) 2192ac_c_conftest_c99_globals=' 2193// Does the compiler advertise C99 conformance? 2194#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2195# error "Compiler does not advertise C99 conformance" 2196#endif 2197 2198#include <stdbool.h> 2199extern int puts (const char *); 2200extern int printf (const char *, ...); 2201extern int dprintf (int, const char *, ...); 2202extern void *malloc (size_t); 2203 2204// Check varargs macros. These examples are taken from C99 6.10.3.5. 2205// dprintf is used instead of fprintf to avoid needing to declare 2206// FILE and stderr. 2207#define debug(...) dprintf (2, __VA_ARGS__) 2208#define showlist(...) puts (#__VA_ARGS__) 2209#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2210static void 2211test_varargs_macros (void) 2212{ 2213 int x = 1234; 2214 int y = 5678; 2215 debug ("Flag"); 2216 debug ("X = %d\n", x); 2217 showlist (The first, second, and third items.); 2218 report (x>y, "x is %d but y is %d", x, y); 2219} 2220 2221// Check long long types. 2222#define BIG64 18446744073709551615ull 2223#define BIG32 4294967295ul 2224#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2225#if !BIG_OK 2226 #error "your preprocessor is broken" 2227#endif 2228#if BIG_OK 2229#else 2230 #error "your preprocessor is broken" 2231#endif 2232static long long int bignum = -9223372036854775807LL; 2233static unsigned long long int ubignum = BIG64; 2234 2235struct incomplete_array 2236{ 2237 int datasize; 2238 double data[]; 2239}; 2240 2241struct named_init { 2242 int number; 2243 const wchar_t *name; 2244 double average; 2245}; 2246 2247typedef const char *ccp; 2248 2249static inline int 2250test_restrict (ccp restrict text) 2251{ 2252 // See if C++-style comments work. 2253 // Iterate through items via the restricted pointer. 2254 // Also check for declarations in for loops. 2255 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2256 continue; 2257 return 0; 2258} 2259 2260// Check varargs and va_copy. 2261static bool 2262test_varargs (const char *format, ...) 2263{ 2264 va_list args; 2265 va_start (args, format); 2266 va_list args_copy; 2267 va_copy (args_copy, args); 2268 2269 const char *str = ""; 2270 int number = 0; 2271 float fnumber = 0; 2272 2273 while (*format) 2274 { 2275 switch (*format++) 2276 { 2277 case '\''s'\'': // string 2278 str = va_arg (args_copy, const char *); 2279 break; 2280 case '\''d'\'': // int 2281 number = va_arg (args_copy, int); 2282 break; 2283 case '\''f'\'': // float 2284 fnumber = va_arg (args_copy, double); 2285 break; 2286 default: 2287 break; 2288 } 2289 } 2290 va_end (args_copy); 2291 va_end (args); 2292 2293 return *str && number && fnumber; 2294} 2295' 2296 2297# Test code for whether the C compiler supports C99 (body of main). 2298ac_c_conftest_c99_main=' 2299 // Check bool. 2300 _Bool success = false; 2301 success |= (argc != 0); 2302 2303 // Check restrict. 2304 if (test_restrict ("String literal") == 0) 2305 success = true; 2306 char *restrict newvar = "Another string"; 2307 2308 // Check varargs. 2309 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2310 test_varargs_macros (); 2311 2312 // Check flexible array members. 2313 struct incomplete_array *ia = 2314 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2315 ia->datasize = 10; 2316 for (int i = 0; i < ia->datasize; ++i) 2317 ia->data[i] = i * 1.234; 2318 2319 // Check named initializers. 2320 struct named_init ni = { 2321 .number = 34, 2322 .name = L"Test wide string", 2323 .average = 543.34343, 2324 }; 2325 2326 ni.number = 58; 2327 2328 int dynamic_array[ni.number]; 2329 dynamic_array[0] = argv[0][0]; 2330 dynamic_array[ni.number - 1] = 543; 2331 2332 // work around unused variable warnings 2333 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2334 || dynamic_array[ni.number - 1] != 543); 2335' 2336 2337# Test code for whether the C compiler supports C11 (global declarations) 2338ac_c_conftest_c11_globals=' 2339// Does the compiler advertise C11 conformance? 2340#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2341# error "Compiler does not advertise C11 conformance" 2342#endif 2343 2344// Check _Alignas. 2345char _Alignas (double) aligned_as_double; 2346char _Alignas (0) no_special_alignment; 2347extern char aligned_as_int; 2348char _Alignas (0) _Alignas (int) aligned_as_int; 2349 2350// Check _Alignof. 2351enum 2352{ 2353 int_alignment = _Alignof (int), 2354 int_array_alignment = _Alignof (int[100]), 2355 char_alignment = _Alignof (char) 2356}; 2357_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2358 2359// Check _Noreturn. 2360int _Noreturn does_not_return (void) { for (;;) continue; } 2361 2362// Check _Static_assert. 2363struct test_static_assert 2364{ 2365 int x; 2366 _Static_assert (sizeof (int) <= sizeof (long int), 2367 "_Static_assert does not work in struct"); 2368 long int y; 2369}; 2370 2371// Check UTF-8 literals. 2372#define u8 syntax error! 2373char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2374 2375// Check duplicate typedefs. 2376typedef long *long_ptr; 2377typedef long int *long_ptr; 2378typedef long_ptr long_ptr; 2379 2380// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2381struct anonymous 2382{ 2383 union { 2384 struct { int i; int j; }; 2385 struct { int k; long int l; } w; 2386 }; 2387 int m; 2388} v1; 2389' 2390 2391# Test code for whether the C compiler supports C11 (body of main). 2392ac_c_conftest_c11_main=' 2393 _Static_assert ((offsetof (struct anonymous, i) 2394 == offsetof (struct anonymous, w.k)), 2395 "Anonymous union alignment botch"); 2396 v1.i = 2; 2397 v1.w.k = 5; 2398 ok |= v1.i != 5; 2399' 2400 2401# Test code for whether the C compiler supports C11 (complete). 2402ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2403${ac_c_conftest_c99_globals} 2404${ac_c_conftest_c11_globals} 2405 2406int 2407main (int argc, char **argv) 2408{ 2409 int ok = 0; 2410 ${ac_c_conftest_c89_main} 2411 ${ac_c_conftest_c99_main} 2412 ${ac_c_conftest_c11_main} 2413 return ok; 2414} 2415" 2416 2417# Test code for whether the C compiler supports C99 (complete). 2418ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2419${ac_c_conftest_c99_globals} 2420 2421int 2422main (int argc, char **argv) 2423{ 2424 int ok = 0; 2425 ${ac_c_conftest_c89_main} 2426 ${ac_c_conftest_c99_main} 2427 return ok; 2428} 2429" 2430 2431# Test code for whether the C compiler supports C89 (complete). 2432ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2433 2434int 2435main (int argc, char **argv) 2436{ 2437 int ok = 0; 2438 ${ac_c_conftest_c89_main} 2439 return ok; 2440} 2441" 2442 2443as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2444as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2445as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2446as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2447as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2448as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2449as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2450as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2451as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2452 2453# Auxiliary files required by this configure script. 2454ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2455 2456# Locations in which to look for auxiliary files. 2457ac_aux_dir_candidates="${srcdir}/." 2458 2459# Search for a directory containing all of the required auxiliary files, 2460# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2461# If we don't find one directory that contains all the files we need, 2462# we report the set of missing files from the *first* directory in 2463# $ac_aux_dir_candidates and give up. 2464ac_missing_aux_files="" 2465ac_first_candidate=: 2466printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468as_found=false 2469for as_dir in $ac_aux_dir_candidates 2470do 2471 IFS=$as_save_IFS 2472 case $as_dir in #((( 2473 '') as_dir=./ ;; 2474 */) ;; 2475 *) as_dir=$as_dir/ ;; 2476 esac 2477 as_found=: 2478 2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2480 ac_aux_dir_found=yes 2481 ac_install_sh= 2482 for ac_aux in $ac_aux_files 2483 do 2484 # As a special case, if "install-sh" is required, that requirement 2485 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2486 # and $ac_install_sh is set appropriately for whichever one is found. 2487 if test x"$ac_aux" = x"install-sh" 2488 then 2489 if test -f "${as_dir}install-sh"; then 2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2491 ac_install_sh="${as_dir}install-sh -c" 2492 elif test -f "${as_dir}install.sh"; then 2493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2494 ac_install_sh="${as_dir}install.sh -c" 2495 elif test -f "${as_dir}shtool"; then 2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2497 ac_install_sh="${as_dir}shtool install -c" 2498 else 2499 ac_aux_dir_found=no 2500 if $ac_first_candidate; then 2501 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2502 else 2503 break 2504 fi 2505 fi 2506 else 2507 if test -f "${as_dir}${ac_aux}"; then 2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2509 else 2510 ac_aux_dir_found=no 2511 if $ac_first_candidate; then 2512 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2513 else 2514 break 2515 fi 2516 fi 2517 fi 2518 done 2519 if test "$ac_aux_dir_found" = yes; then 2520 ac_aux_dir="$as_dir" 2521 break 2522 fi 2523 ac_first_candidate=false 2524 2525 as_found=false 2526done 2527IFS=$as_save_IFS 2528if $as_found 2529then : 2530 2531else $as_nop 2532 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2533fi 2534 2535 2536# These three variables are undocumented and unsupported, 2537# and are intended to be withdrawn in a future Autoconf release. 2538# They can cause serious problems if a builder's source tree is in a directory 2539# whose full name contains unusual characters. 2540if test -f "${ac_aux_dir}config.guess"; then 2541 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2542fi 2543if test -f "${ac_aux_dir}config.sub"; then 2544 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2545fi 2546if test -f "$ac_aux_dir/configure"; then 2547 ac_configure="$SHELL ${ac_aux_dir}configure" 2548fi 2549 2550# Check that the precious variables saved in the cache have kept the same 2551# value. 2552ac_cache_corrupted=false 2553for ac_var in $ac_precious_vars; do 2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2555 eval ac_new_set=\$ac_env_${ac_var}_set 2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2557 eval ac_new_val=\$ac_env_${ac_var}_value 2558 case $ac_old_set,$ac_new_set in 2559 set,) 2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2561printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2562 ac_cache_corrupted=: ;; 2563 ,set) 2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2565printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2566 ac_cache_corrupted=: ;; 2567 ,);; 2568 *) 2569 if test "x$ac_old_val" != "x$ac_new_val"; then 2570 # differences in whitespace do not lead to failure. 2571 ac_old_val_w=`echo x $ac_old_val` 2572 ac_new_val_w=`echo x $ac_new_val` 2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2575printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2576 ac_cache_corrupted=: 2577 else 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2579printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2580 eval $ac_var=\$ac_old_val 2581 fi 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2583printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2585printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2586 fi;; 2587 esac 2588 # Pass precious variables to config.status. 2589 if test "$ac_new_set" = set; then 2590 case $ac_new_val in 2591 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2592 *) ac_arg=$ac_var=$ac_new_val ;; 2593 esac 2594 case " $ac_configure_args " in 2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2597 esac 2598 fi 2599done 2600if $ac_cache_corrupted; then 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2602printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2604printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2605 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2606 and start over" "$LINENO" 5 2607fi 2608## -------------------- ## 2609## Main body of script. ## 2610## -------------------- ## 2611 2612ac_ext=c 2613ac_cpp='$CPP $CPPFLAGS' 2614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2616ac_compiler_gnu=$ac_cv_c_compiler_gnu 2617 2618 2619 2620ac_config_headers="$ac_config_headers config.h" 2621 2622 2623 2624# Initialize Automake 2625am__api_version='1.16' 2626 2627 2628 2629 # Find a good install program. We prefer a C program (faster), 2630# so one script is as good as another. But avoid the broken or 2631# incompatible versions: 2632# SysV /etc/install, /usr/sbin/install 2633# SunOS /usr/etc/install 2634# IRIX /sbin/install 2635# AIX /bin/install 2636# AmigaOS /C/install, which installs bootblocks on floppy discs 2637# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2638# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2639# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2640# OS/2's system install, which has a completely different semantic 2641# ./install, which can be erroneously created by make from ./install.sh. 2642# Reject install programs that cannot install multiple files. 2643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2644printf %s "checking for a BSD-compatible install... " >&6; } 2645if test -z "$INSTALL"; then 2646if test ${ac_cv_path_install+y} 2647then : 2648 printf %s "(cached) " >&6 2649else $as_nop 2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651for as_dir in $PATH 2652do 2653 IFS=$as_save_IFS 2654 case $as_dir in #((( 2655 '') as_dir=./ ;; 2656 */) ;; 2657 *) as_dir=$as_dir/ ;; 2658 esac 2659 # Account for fact that we put trailing slashes in our PATH walk. 2660case $as_dir in #(( 2661 ./ | /[cC]/* | \ 2662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2663 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2664 /usr/ucb/* ) ;; 2665 *) 2666 # OSF1 and SCO ODT 3.0 have their own names for install. 2667 # Don't use installbsd from OSF since it installs stuff as root 2668 # by default. 2669 for ac_prog in ginstall scoinst install; do 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2672 if test $ac_prog = install && 2673 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2674 # AIX install. It has an incompatible calling convention. 2675 : 2676 elif test $ac_prog = install && 2677 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2678 # program-specific install script used by HP pwplus--don't use. 2679 : 2680 else 2681 rm -rf conftest.one conftest.two conftest.dir 2682 echo one > conftest.one 2683 echo two > conftest.two 2684 mkdir conftest.dir 2685 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2686 test -s conftest.one && test -s conftest.two && 2687 test -s conftest.dir/conftest.one && 2688 test -s conftest.dir/conftest.two 2689 then 2690 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2691 break 3 2692 fi 2693 fi 2694 fi 2695 done 2696 done 2697 ;; 2698esac 2699 2700 done 2701IFS=$as_save_IFS 2702 2703rm -rf conftest.one conftest.two conftest.dir 2704 2705fi 2706 if test ${ac_cv_path_install+y}; then 2707 INSTALL=$ac_cv_path_install 2708 else 2709 # As a last resort, use the slow shell script. Don't cache a 2710 # value for INSTALL within a source directory, because that will 2711 # break other packages using the cache if that directory is 2712 # removed, or if the value is a relative name. 2713 INSTALL=$ac_install_sh 2714 fi 2715fi 2716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2717printf "%s\n" "$INSTALL" >&6; } 2718 2719# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2720# It thinks the first close brace ends the variable substitution. 2721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2722 2723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2724 2725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2726 2727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2728printf %s "checking whether build environment is sane... " >&6; } 2729# Reject unsafe characters in $srcdir or the absolute working directory 2730# name. Accept space and tab only in the latter. 2731am_lf=' 2732' 2733case `pwd` in 2734 *[\\\"\#\$\&\'\`$am_lf]*) 2735 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2736esac 2737case $srcdir in 2738 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2739 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2740esac 2741 2742# Do 'set' in a subshell so we don't clobber the current shell's 2743# arguments. Must try -L first in case configure is actually a 2744# symlink; some systems play weird games with the mod time of symlinks 2745# (eg FreeBSD returns the mod time of the symlink's containing 2746# directory). 2747if ( 2748 am_has_slept=no 2749 for am_try in 1 2; do 2750 echo "timestamp, slept: $am_has_slept" > conftest.file 2751 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2752 if test "$*" = "X"; then 2753 # -L didn't work. 2754 set X `ls -t "$srcdir/configure" conftest.file` 2755 fi 2756 if test "$*" != "X $srcdir/configure conftest.file" \ 2757 && test "$*" != "X conftest.file $srcdir/configure"; then 2758 2759 # If neither matched, then we have a broken ls. This can happen 2760 # if, for instance, CONFIG_SHELL is bash and it inherits a 2761 # broken ls alias from the environment. This has actually 2762 # happened. Such a system could not be considered "sane". 2763 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2764 alias in your environment" "$LINENO" 5 2765 fi 2766 if test "$2" = conftest.file || test $am_try -eq 2; then 2767 break 2768 fi 2769 # Just in case. 2770 sleep 1 2771 am_has_slept=yes 2772 done 2773 test "$2" = conftest.file 2774 ) 2775then 2776 # Ok. 2777 : 2778else 2779 as_fn_error $? "newly created file is older than distributed files! 2780Check your system clock" "$LINENO" 5 2781fi 2782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2783printf "%s\n" "yes" >&6; } 2784# If we didn't sleep, we still need to ensure time stamps of config.status and 2785# generated files are strictly newer. 2786am_sleep_pid= 2787if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2788 ( sleep 1 ) & 2789 am_sleep_pid=$! 2790fi 2791 2792rm -f conftest.file 2793 2794test "$program_prefix" != NONE && 2795 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2796# Use a double $ so make ignores it. 2797test "$program_suffix" != NONE && 2798 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2799# Double any \ or $. 2800# By default was `s,x,x', remove it if useless. 2801ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2802program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2803 2804 2805# Expand $ac_aux_dir to an absolute path. 2806am_aux_dir=`cd "$ac_aux_dir" && pwd` 2807 2808 2809 if test x"${MISSING+set}" != xset; then 2810 MISSING="\${SHELL} '$am_aux_dir/missing'" 2811fi 2812# Use eval to expand $SHELL 2813if eval "$MISSING --is-lightweight"; then 2814 am_missing_run="$MISSING " 2815else 2816 am_missing_run= 2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2818printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2819fi 2820 2821if test x"${install_sh+set}" != xset; then 2822 case $am_aux_dir in 2823 *\ * | *\ *) 2824 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2825 *) 2826 install_sh="\${SHELL} $am_aux_dir/install-sh" 2827 esac 2828fi 2829 2830# Installed binaries are usually stripped using 'strip' when the user 2831# run "make install-strip". However 'strip' might not be the right 2832# tool to use in cross-compilation environments, therefore Automake 2833# will honor the 'STRIP' environment variable to overrule this program. 2834if test "$cross_compiling" != no; then 2835 if test -n "$ac_tool_prefix"; then 2836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2837set dummy ${ac_tool_prefix}strip; ac_word=$2 2838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2839printf %s "checking for $ac_word... " >&6; } 2840if test ${ac_cv_prog_STRIP+y} 2841then : 2842 printf %s "(cached) " >&6 2843else $as_nop 2844 if test -n "$STRIP"; then 2845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2846else 2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848for as_dir in $PATH 2849do 2850 IFS=$as_save_IFS 2851 case $as_dir in #((( 2852 '') as_dir=./ ;; 2853 */) ;; 2854 *) as_dir=$as_dir/ ;; 2855 esac 2856 for ac_exec_ext in '' $ac_executable_extensions; do 2857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2858 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2860 break 2 2861 fi 2862done 2863 done 2864IFS=$as_save_IFS 2865 2866fi 2867fi 2868STRIP=$ac_cv_prog_STRIP 2869if test -n "$STRIP"; then 2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2871printf "%s\n" "$STRIP" >&6; } 2872else 2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874printf "%s\n" "no" >&6; } 2875fi 2876 2877 2878fi 2879if test -z "$ac_cv_prog_STRIP"; then 2880 ac_ct_STRIP=$STRIP 2881 # Extract the first word of "strip", so it can be a program name with args. 2882set dummy strip; ac_word=$2 2883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884printf %s "checking for $ac_word... " >&6; } 2885if test ${ac_cv_prog_ac_ct_STRIP+y} 2886then : 2887 printf %s "(cached) " >&6 2888else $as_nop 2889 if test -n "$ac_ct_STRIP"; then 2890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 case $as_dir in #((( 2897 '') as_dir=./ ;; 2898 */) ;; 2899 *) as_dir=$as_dir/ ;; 2900 esac 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_ac_ct_STRIP="strip" 2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907done 2908 done 2909IFS=$as_save_IFS 2910 2911fi 2912fi 2913ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2914if test -n "$ac_ct_STRIP"; then 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2916printf "%s\n" "$ac_ct_STRIP" >&6; } 2917else 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919printf "%s\n" "no" >&6; } 2920fi 2921 2922 if test "x$ac_ct_STRIP" = x; then 2923 STRIP=":" 2924 else 2925 case $cross_compiling:$ac_tool_warned in 2926yes:) 2927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2928printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2929ac_tool_warned=yes ;; 2930esac 2931 STRIP=$ac_ct_STRIP 2932 fi 2933else 2934 STRIP="$ac_cv_prog_STRIP" 2935fi 2936 2937fi 2938INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2939 2940 2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2942printf %s "checking for a race-free mkdir -p... " >&6; } 2943if test -z "$MKDIR_P"; then 2944 if test ${ac_cv_path_mkdir+y} 2945then : 2946 printf %s "(cached) " >&6 2947else $as_nop 2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2950do 2951 IFS=$as_save_IFS 2952 case $as_dir in #((( 2953 '') as_dir=./ ;; 2954 */) ;; 2955 *) as_dir=$as_dir/ ;; 2956 esac 2957 for ac_prog in mkdir gmkdir; do 2958 for ac_exec_ext in '' $ac_executable_extensions; do 2959 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2960 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2961 'mkdir ('*'coreutils) '* | \ 2962 'BusyBox '* | \ 2963 'mkdir (fileutils) '4.1*) 2964 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2965 break 3;; 2966 esac 2967 done 2968 done 2969 done 2970IFS=$as_save_IFS 2971 2972fi 2973 2974 test -d ./--version && rmdir ./--version 2975 if test ${ac_cv_path_mkdir+y}; then 2976 MKDIR_P="$ac_cv_path_mkdir -p" 2977 else 2978 # As a last resort, use the slow shell script. Don't cache a 2979 # value for MKDIR_P within a source directory, because that will 2980 # break other packages using the cache if that directory is 2981 # removed, or if the value is a relative name. 2982 MKDIR_P="$ac_install_sh -d" 2983 fi 2984fi 2985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2986printf "%s\n" "$MKDIR_P" >&6; } 2987 2988for ac_prog in gawk mawk nawk awk 2989do 2990 # Extract the first word of "$ac_prog", so it can be a program name with args. 2991set dummy $ac_prog; ac_word=$2 2992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2993printf %s "checking for $ac_word... " >&6; } 2994if test ${ac_cv_prog_AWK+y} 2995then : 2996 printf %s "(cached) " >&6 2997else $as_nop 2998 if test -n "$AWK"; then 2999 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3000else 3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002for as_dir in $PATH 3003do 3004 IFS=$as_save_IFS 3005 case $as_dir in #((( 3006 '') as_dir=./ ;; 3007 */) ;; 3008 *) as_dir=$as_dir/ ;; 3009 esac 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3012 ac_cv_prog_AWK="$ac_prog" 3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3014 break 2 3015 fi 3016done 3017 done 3018IFS=$as_save_IFS 3019 3020fi 3021fi 3022AWK=$ac_cv_prog_AWK 3023if test -n "$AWK"; then 3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3025printf "%s\n" "$AWK" >&6; } 3026else 3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028printf "%s\n" "no" >&6; } 3029fi 3030 3031 3032 test -n "$AWK" && break 3033done 3034 3035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3036printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3037set x ${MAKE-make} 3038ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3039if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3040then : 3041 printf %s "(cached) " >&6 3042else $as_nop 3043 cat >conftest.make <<\_ACEOF 3044SHELL = /bin/sh 3045all: 3046 @echo '@@@%%%=$(MAKE)=@@@%%%' 3047_ACEOF 3048# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3049case `${MAKE-make} -f conftest.make 2>/dev/null` in 3050 *@@@%%%=?*=@@@%%%*) 3051 eval ac_cv_prog_make_${ac_make}_set=yes;; 3052 *) 3053 eval ac_cv_prog_make_${ac_make}_set=no;; 3054esac 3055rm -f conftest.make 3056fi 3057if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3059printf "%s\n" "yes" >&6; } 3060 SET_MAKE= 3061else 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3063printf "%s\n" "no" >&6; } 3064 SET_MAKE="MAKE=${MAKE-make}" 3065fi 3066 3067rm -rf .tst 2>/dev/null 3068mkdir .tst 2>/dev/null 3069if test -d .tst; then 3070 am__leading_dot=. 3071else 3072 am__leading_dot=_ 3073fi 3074rmdir .tst 2>/dev/null 3075 3076# Check whether --enable-silent-rules was given. 3077if test ${enable_silent_rules+y} 3078then : 3079 enableval=$enable_silent_rules; 3080fi 3081 3082case $enable_silent_rules in # ((( 3083 yes) AM_DEFAULT_VERBOSITY=0;; 3084 no) AM_DEFAULT_VERBOSITY=1;; 3085 *) AM_DEFAULT_VERBOSITY=1;; 3086esac 3087am_make=${MAKE-make} 3088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3089printf %s "checking whether $am_make supports nested variables... " >&6; } 3090if test ${am_cv_make_support_nested_variables+y} 3091then : 3092 printf %s "(cached) " >&6 3093else $as_nop 3094 if printf "%s\n" 'TRUE=$(BAR$(V)) 3095BAR0=false 3096BAR1=true 3097V=1 3098am__doit: 3099 @$(TRUE) 3100.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3101 am_cv_make_support_nested_variables=yes 3102else 3103 am_cv_make_support_nested_variables=no 3104fi 3105fi 3106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3107printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3108if test $am_cv_make_support_nested_variables = yes; then 3109 AM_V='$(V)' 3110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3111else 3112 AM_V=$AM_DEFAULT_VERBOSITY 3113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3114fi 3115AM_BACKSLASH='\' 3116 3117if test "`cd $srcdir && pwd`" != "`pwd`"; then 3118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3119 # is not polluted with repeated "-I." 3120 am__isrc=' -I$(srcdir)' 3121 # test to see if srcdir already configured 3122 if test -f $srcdir/config.status; then 3123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3124 fi 3125fi 3126 3127# test whether we have cygpath 3128if test -z "$CYGPATH_W"; then 3129 if (cygpath --version) >/dev/null 2>/dev/null; then 3130 CYGPATH_W='cygpath -w' 3131 else 3132 CYGPATH_W=echo 3133 fi 3134fi 3135 3136 3137# Define the identity of the package. 3138 PACKAGE='xf86-video-suncg14' 3139 VERSION='1.1.3' 3140 3141 3142printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3143 3144 3145printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3146 3147# Some tools Automake needs. 3148 3149ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3150 3151 3152AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3153 3154 3155AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3156 3157 3158AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3159 3160 3161MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3162 3163# For better backward compatibility. To be removed once Automake 1.9.x 3164# dies out for good. For more background, see: 3165# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3166# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3167mkdir_p='$(MKDIR_P)' 3168 3169# We need awk for the "check" target (and possibly the TAP driver). The 3170# system "awk" is bad on some platforms. 3171# Always define AMTAR for backward compatibility. Yes, it's still used 3172# in the wild :-( We should find a proper way to deprecate it ... 3173AMTAR='$${TAR-tar}' 3174 3175 3176# We'll loop over all known methods to create a tar archive until one works. 3177_am_tools='gnutar pax cpio none' 3178 3179am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3180 3181 3182 3183 3184 3185# Variables for tags utilities; see am/tags.am 3186if test -z "$CTAGS"; then 3187 CTAGS=ctags 3188fi 3189 3190if test -z "$ETAGS"; then 3191 ETAGS=etags 3192fi 3193 3194if test -z "$CSCOPE"; then 3195 CSCOPE=cscope 3196fi 3197 3198 3199 3200# POSIX will say in a future version that running "rm -f" with no argument 3201# is OK; and we want to be able to make that assumption in our Makefile 3202# recipes. So use an aggressive probe to check that the usage we want is 3203# actually supported "in the wild" to an acceptable degree. 3204# See automake bug#10828. 3205# To make any issue more visible, cause the running configure to be aborted 3206# by default if the 'rm' program in use doesn't match our expectations; the 3207# user can still override this though. 3208if rm -f && rm -fr && rm -rf; then : OK; else 3209 cat >&2 <<'END' 3210Oops! 3211 3212Your 'rm' program seems unable to run without file operands specified 3213on the command line, even when the '-f' option is present. This is contrary 3214to the behaviour of most rm programs out there, and not conforming with 3215the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3216 3217Please tell bug-automake@gnu.org about your system, including the value 3218of your $PATH and any error possibly output before this message. This 3219can help us improve future automake versions. 3220 3221END 3222 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3223 echo 'Configuration will proceed anyway, since you have set the' >&2 3224 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3225 echo >&2 3226 else 3227 cat >&2 <<'END' 3228Aborting the configuration process, to ensure you take notice of the issue. 3229 3230You can download and install GNU coreutils to get an 'rm' implementation 3231that behaves properly: <https://www.gnu.org/software/coreutils/>. 3232 3233If you want to complete the configuration process using your problematic 3234'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3235to "yes", and re-run configure. 3236 3237END 3238 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3239 fi 3240fi 3241 3242 3243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3244printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3245 # Check whether --enable-maintainer-mode was given. 3246if test ${enable_maintainer_mode+y} 3247then : 3248 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3249else $as_nop 3250 USE_MAINTAINER_MODE=no 3251fi 3252 3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3254printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3255 if test $USE_MAINTAINER_MODE = yes; then 3256 MAINTAINER_MODE_TRUE= 3257 MAINTAINER_MODE_FALSE='#' 3258else 3259 MAINTAINER_MODE_TRUE='#' 3260 MAINTAINER_MODE_FALSE= 3261fi 3262 3263 MAINT=$MAINTAINER_MODE_TRUE 3264 3265 3266 3267# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288DEPDIR="${am__leading_dot}deps" 3289 3290ac_config_commands="$ac_config_commands depfiles" 3291 3292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3293printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3294cat > confinc.mk << 'END' 3295am__doit: 3296 @echo this is the am__doit target >confinc.out 3297.PHONY: am__doit 3298END 3299am__include="#" 3300am__quote= 3301# BSD make does it like this. 3302echo '.include "confinc.mk" # ignored' > confmf.BSD 3303# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3304echo 'include confinc.mk # ignored' > confmf.GNU 3305_am_result=no 3306for s in GNU BSD; do 3307 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3308 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3309 ac_status=$? 3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3311 (exit $ac_status); } 3312 case $?:`cat confinc.out 2>/dev/null` in #( 3313 '0:this is the am__doit target') : 3314 case $s in #( 3315 BSD) : 3316 am__include='.include' am__quote='"' ;; #( 3317 *) : 3318 am__include='include' am__quote='' ;; 3319esac ;; #( 3320 *) : 3321 ;; 3322esac 3323 if test "$am__include" != "#"; then 3324 _am_result="yes ($s style)" 3325 break 3326 fi 3327done 3328rm -f confinc.* confmf.* 3329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3330printf "%s\n" "${_am_result}" >&6; } 3331 3332# Check whether --enable-dependency-tracking was given. 3333if test ${enable_dependency_tracking+y} 3334then : 3335 enableval=$enable_dependency_tracking; 3336fi 3337 3338if test "x$enable_dependency_tracking" != xno; then 3339 am_depcomp="$ac_aux_dir/depcomp" 3340 AMDEPBACKSLASH='\' 3341 am__nodep='_no' 3342fi 3343 if test "x$enable_dependency_tracking" != xno; then 3344 AMDEP_TRUE= 3345 AMDEP_FALSE='#' 3346else 3347 AMDEP_TRUE='#' 3348 AMDEP_FALSE= 3349fi 3350 3351 3352ac_ext=c 3353ac_cpp='$CPP $CPPFLAGS' 3354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3356ac_compiler_gnu=$ac_cv_c_compiler_gnu 3357if test -n "$ac_tool_prefix"; then 3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3359set dummy ${ac_tool_prefix}gcc; ac_word=$2 3360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361printf %s "checking for $ac_word... " >&6; } 3362if test ${ac_cv_prog_CC+y} 3363then : 3364 printf %s "(cached) " >&6 3365else $as_nop 3366 if test -n "$CC"; then 3367 ac_cv_prog_CC="$CC" # Let the user override the test. 3368else 3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370for as_dir in $PATH 3371do 3372 IFS=$as_save_IFS 3373 case $as_dir in #((( 3374 '') as_dir=./ ;; 3375 */) ;; 3376 *) as_dir=$as_dir/ ;; 3377 esac 3378 for ac_exec_ext in '' $ac_executable_extensions; do 3379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3380 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3382 break 2 3383 fi 3384done 3385 done 3386IFS=$as_save_IFS 3387 3388fi 3389fi 3390CC=$ac_cv_prog_CC 3391if test -n "$CC"; then 3392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3393printf "%s\n" "$CC" >&6; } 3394else 3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3396printf "%s\n" "no" >&6; } 3397fi 3398 3399 3400fi 3401if test -z "$ac_cv_prog_CC"; then 3402 ac_ct_CC=$CC 3403 # Extract the first word of "gcc", so it can be a program name with args. 3404set dummy gcc; ac_word=$2 3405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3406printf %s "checking for $ac_word... " >&6; } 3407if test ${ac_cv_prog_ac_ct_CC+y} 3408then : 3409 printf %s "(cached) " >&6 3410else $as_nop 3411 if test -n "$ac_ct_CC"; then 3412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3413else 3414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3415for as_dir in $PATH 3416do 3417 IFS=$as_save_IFS 3418 case $as_dir in #((( 3419 '') as_dir=./ ;; 3420 */) ;; 3421 *) as_dir=$as_dir/ ;; 3422 esac 3423 for ac_exec_ext in '' $ac_executable_extensions; do 3424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3425 ac_cv_prog_ac_ct_CC="gcc" 3426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3427 break 2 3428 fi 3429done 3430 done 3431IFS=$as_save_IFS 3432 3433fi 3434fi 3435ac_ct_CC=$ac_cv_prog_ac_ct_CC 3436if test -n "$ac_ct_CC"; then 3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3438printf "%s\n" "$ac_ct_CC" >&6; } 3439else 3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3441printf "%s\n" "no" >&6; } 3442fi 3443 3444 if test "x$ac_ct_CC" = x; then 3445 CC="" 3446 else 3447 case $cross_compiling:$ac_tool_warned in 3448yes:) 3449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3450printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3451ac_tool_warned=yes ;; 3452esac 3453 CC=$ac_ct_CC 3454 fi 3455else 3456 CC="$ac_cv_prog_CC" 3457fi 3458 3459if test -z "$CC"; then 3460 if test -n "$ac_tool_prefix"; then 3461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3462set dummy ${ac_tool_prefix}cc; ac_word=$2 3463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3464printf %s "checking for $ac_word... " >&6; } 3465if test ${ac_cv_prog_CC+y} 3466then : 3467 printf %s "(cached) " >&6 3468else $as_nop 3469 if test -n "$CC"; then 3470 ac_cv_prog_CC="$CC" # Let the user override the test. 3471else 3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473for as_dir in $PATH 3474do 3475 IFS=$as_save_IFS 3476 case $as_dir in #((( 3477 '') as_dir=./ ;; 3478 */) ;; 3479 *) as_dir=$as_dir/ ;; 3480 esac 3481 for ac_exec_ext in '' $ac_executable_extensions; do 3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3483 ac_cv_prog_CC="${ac_tool_prefix}cc" 3484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3485 break 2 3486 fi 3487done 3488 done 3489IFS=$as_save_IFS 3490 3491fi 3492fi 3493CC=$ac_cv_prog_CC 3494if test -n "$CC"; then 3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3496printf "%s\n" "$CC" >&6; } 3497else 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3499printf "%s\n" "no" >&6; } 3500fi 3501 3502 3503 fi 3504fi 3505if test -z "$CC"; then 3506 # Extract the first word of "cc", so it can be a program name with args. 3507set dummy cc; ac_word=$2 3508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3509printf %s "checking for $ac_word... " >&6; } 3510if test ${ac_cv_prog_CC+y} 3511then : 3512 printf %s "(cached) " >&6 3513else $as_nop 3514 if test -n "$CC"; then 3515 ac_cv_prog_CC="$CC" # Let the user override the test. 3516else 3517 ac_prog_rejected=no 3518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3519for as_dir in $PATH 3520do 3521 IFS=$as_save_IFS 3522 case $as_dir in #((( 3523 '') as_dir=./ ;; 3524 */) ;; 3525 *) as_dir=$as_dir/ ;; 3526 esac 3527 for ac_exec_ext in '' $ac_executable_extensions; do 3528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3529 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3530 ac_prog_rejected=yes 3531 continue 3532 fi 3533 ac_cv_prog_CC="cc" 3534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3535 break 2 3536 fi 3537done 3538 done 3539IFS=$as_save_IFS 3540 3541if test $ac_prog_rejected = yes; then 3542 # We found a bogon in the path, so make sure we never use it. 3543 set dummy $ac_cv_prog_CC 3544 shift 3545 if test $# != 0; then 3546 # We chose a different compiler from the bogus one. 3547 # However, it has the same basename, so the bogon will be chosen 3548 # first if we set CC to just the basename; use the full file name. 3549 shift 3550 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3551 fi 3552fi 3553fi 3554fi 3555CC=$ac_cv_prog_CC 3556if test -n "$CC"; then 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3558printf "%s\n" "$CC" >&6; } 3559else 3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3561printf "%s\n" "no" >&6; } 3562fi 3563 3564 3565fi 3566if test -z "$CC"; then 3567 if test -n "$ac_tool_prefix"; then 3568 for ac_prog in cl.exe 3569 do 3570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3571set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3573printf %s "checking for $ac_word... " >&6; } 3574if test ${ac_cv_prog_CC+y} 3575then : 3576 printf %s "(cached) " >&6 3577else $as_nop 3578 if test -n "$CC"; then 3579 ac_cv_prog_CC="$CC" # Let the user override the test. 3580else 3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582for as_dir in $PATH 3583do 3584 IFS=$as_save_IFS 3585 case $as_dir in #((( 3586 '') as_dir=./ ;; 3587 */) ;; 3588 *) as_dir=$as_dir/ ;; 3589 esac 3590 for ac_exec_ext in '' $ac_executable_extensions; do 3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3592 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3594 break 2 3595 fi 3596done 3597 done 3598IFS=$as_save_IFS 3599 3600fi 3601fi 3602CC=$ac_cv_prog_CC 3603if test -n "$CC"; then 3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3605printf "%s\n" "$CC" >&6; } 3606else 3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3608printf "%s\n" "no" >&6; } 3609fi 3610 3611 3612 test -n "$CC" && break 3613 done 3614fi 3615if test -z "$CC"; then 3616 ac_ct_CC=$CC 3617 for ac_prog in cl.exe 3618do 3619 # Extract the first word of "$ac_prog", so it can be a program name with args. 3620set dummy $ac_prog; ac_word=$2 3621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3622printf %s "checking for $ac_word... " >&6; } 3623if test ${ac_cv_prog_ac_ct_CC+y} 3624then : 3625 printf %s "(cached) " >&6 3626else $as_nop 3627 if test -n "$ac_ct_CC"; then 3628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3629else 3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3631for as_dir in $PATH 3632do 3633 IFS=$as_save_IFS 3634 case $as_dir in #((( 3635 '') as_dir=./ ;; 3636 */) ;; 3637 *) as_dir=$as_dir/ ;; 3638 esac 3639 for ac_exec_ext in '' $ac_executable_extensions; do 3640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3641 ac_cv_prog_ac_ct_CC="$ac_prog" 3642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3643 break 2 3644 fi 3645done 3646 done 3647IFS=$as_save_IFS 3648 3649fi 3650fi 3651ac_ct_CC=$ac_cv_prog_ac_ct_CC 3652if test -n "$ac_ct_CC"; then 3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3654printf "%s\n" "$ac_ct_CC" >&6; } 3655else 3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3657printf "%s\n" "no" >&6; } 3658fi 3659 3660 3661 test -n "$ac_ct_CC" && break 3662done 3663 3664 if test "x$ac_ct_CC" = x; then 3665 CC="" 3666 else 3667 case $cross_compiling:$ac_tool_warned in 3668yes:) 3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3670printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3671ac_tool_warned=yes ;; 3672esac 3673 CC=$ac_ct_CC 3674 fi 3675fi 3676 3677fi 3678if test -z "$CC"; then 3679 if test -n "$ac_tool_prefix"; then 3680 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3681set dummy ${ac_tool_prefix}clang; ac_word=$2 3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3683printf %s "checking for $ac_word... " >&6; } 3684if test ${ac_cv_prog_CC+y} 3685then : 3686 printf %s "(cached) " >&6 3687else $as_nop 3688 if test -n "$CC"; then 3689 ac_cv_prog_CC="$CC" # Let the user override the test. 3690else 3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3692for as_dir in $PATH 3693do 3694 IFS=$as_save_IFS 3695 case $as_dir in #((( 3696 '') as_dir=./ ;; 3697 */) ;; 3698 *) as_dir=$as_dir/ ;; 3699 esac 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3702 ac_cv_prog_CC="${ac_tool_prefix}clang" 3703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3704 break 2 3705 fi 3706done 3707 done 3708IFS=$as_save_IFS 3709 3710fi 3711fi 3712CC=$ac_cv_prog_CC 3713if test -n "$CC"; then 3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3715printf "%s\n" "$CC" >&6; } 3716else 3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3718printf "%s\n" "no" >&6; } 3719fi 3720 3721 3722fi 3723if test -z "$ac_cv_prog_CC"; then 3724 ac_ct_CC=$CC 3725 # Extract the first word of "clang", so it can be a program name with args. 3726set dummy clang; ac_word=$2 3727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3728printf %s "checking for $ac_word... " >&6; } 3729if test ${ac_cv_prog_ac_ct_CC+y} 3730then : 3731 printf %s "(cached) " >&6 3732else $as_nop 3733 if test -n "$ac_ct_CC"; then 3734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3735else 3736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3737for as_dir in $PATH 3738do 3739 IFS=$as_save_IFS 3740 case $as_dir in #((( 3741 '') as_dir=./ ;; 3742 */) ;; 3743 *) as_dir=$as_dir/ ;; 3744 esac 3745 for ac_exec_ext in '' $ac_executable_extensions; do 3746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3747 ac_cv_prog_ac_ct_CC="clang" 3748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3749 break 2 3750 fi 3751done 3752 done 3753IFS=$as_save_IFS 3754 3755fi 3756fi 3757ac_ct_CC=$ac_cv_prog_ac_ct_CC 3758if test -n "$ac_ct_CC"; then 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3760printf "%s\n" "$ac_ct_CC" >&6; } 3761else 3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3763printf "%s\n" "no" >&6; } 3764fi 3765 3766 if test "x$ac_ct_CC" = x; then 3767 CC="" 3768 else 3769 case $cross_compiling:$ac_tool_warned in 3770yes:) 3771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3772printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3773ac_tool_warned=yes ;; 3774esac 3775 CC=$ac_ct_CC 3776 fi 3777else 3778 CC="$ac_cv_prog_CC" 3779fi 3780 3781fi 3782 3783 3784test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3785printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3786as_fn_error $? "no acceptable C compiler found in \$PATH 3787See \`config.log' for more details" "$LINENO" 5; } 3788 3789# Provide some information about the compiler. 3790printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3791set X $ac_compile 3792ac_compiler=$2 3793for ac_option in --version -v -V -qversion -version; do 3794 { { ac_try="$ac_compiler $ac_option >&5" 3795case "(($ac_try" in 3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3797 *) ac_try_echo=$ac_try;; 3798esac 3799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3800printf "%s\n" "$ac_try_echo"; } >&5 3801 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3802 ac_status=$? 3803 if test -s conftest.err; then 3804 sed '10a\ 3805... rest of stderr output deleted ... 3806 10q' conftest.err >conftest.er1 3807 cat conftest.er1 >&5 3808 fi 3809 rm -f conftest.er1 conftest.err 3810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3811 test $ac_status = 0; } 3812done 3813 3814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3815/* end confdefs.h. */ 3816 3817int 3818main (void) 3819{ 3820 3821 ; 3822 return 0; 3823} 3824_ACEOF 3825ac_clean_files_save=$ac_clean_files 3826ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3827# Try to create an executable without -o first, disregard a.out. 3828# It will help us diagnose broken compilers, and finding out an intuition 3829# of exeext. 3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3831printf %s "checking whether the C compiler works... " >&6; } 3832ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3833 3834# The possible output files: 3835ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3836 3837ac_rmfiles= 3838for ac_file in $ac_files 3839do 3840 case $ac_file in 3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3842 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3843 esac 3844done 3845rm -f $ac_rmfiles 3846 3847if { { ac_try="$ac_link_default" 3848case "(($ac_try" in 3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3850 *) ac_try_echo=$ac_try;; 3851esac 3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3853printf "%s\n" "$ac_try_echo"; } >&5 3854 (eval "$ac_link_default") 2>&5 3855 ac_status=$? 3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3857 test $ac_status = 0; } 3858then : 3859 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3860# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3861# in a Makefile. We should not override ac_cv_exeext if it was cached, 3862# so that the user can short-circuit this test for compilers unknown to 3863# Autoconf. 3864for ac_file in $ac_files '' 3865do 3866 test -f "$ac_file" || continue 3867 case $ac_file in 3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3869 ;; 3870 [ab].out ) 3871 # We found the default executable, but exeext='' is most 3872 # certainly right. 3873 break;; 3874 *.* ) 3875 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3876 then :; else 3877 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3878 fi 3879 # We set ac_cv_exeext here because the later test for it is not 3880 # safe: cross compilers may not add the suffix if given an `-o' 3881 # argument, so we may need to know it at that point already. 3882 # Even if this section looks crufty: it has the advantage of 3883 # actually working. 3884 break;; 3885 * ) 3886 break;; 3887 esac 3888done 3889test "$ac_cv_exeext" = no && ac_cv_exeext= 3890 3891else $as_nop 3892 ac_file='' 3893fi 3894if test -z "$ac_file" 3895then : 3896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3897printf "%s\n" "no" >&6; } 3898printf "%s\n" "$as_me: failed program was:" >&5 3899sed 's/^/| /' conftest.$ac_ext >&5 3900 3901{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3902printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3903as_fn_error 77 "C compiler cannot create executables 3904See \`config.log' for more details" "$LINENO" 5; } 3905else $as_nop 3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3907printf "%s\n" "yes" >&6; } 3908fi 3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3910printf %s "checking for C compiler default output file name... " >&6; } 3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3912printf "%s\n" "$ac_file" >&6; } 3913ac_exeext=$ac_cv_exeext 3914 3915rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3916ac_clean_files=$ac_clean_files_save 3917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3918printf %s "checking for suffix of executables... " >&6; } 3919if { { ac_try="$ac_link" 3920case "(($ac_try" in 3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3922 *) ac_try_echo=$ac_try;; 3923esac 3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3925printf "%s\n" "$ac_try_echo"; } >&5 3926 (eval "$ac_link") 2>&5 3927 ac_status=$? 3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3929 test $ac_status = 0; } 3930then : 3931 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3932# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3933# work properly (i.e., refer to `conftest.exe'), while it won't with 3934# `rm'. 3935for ac_file in conftest.exe conftest conftest.*; do 3936 test -f "$ac_file" || continue 3937 case $ac_file in 3938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3939 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3940 break;; 3941 * ) break;; 3942 esac 3943done 3944else $as_nop 3945 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3946printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3947as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3948See \`config.log' for more details" "$LINENO" 5; } 3949fi 3950rm -f conftest conftest$ac_cv_exeext 3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3952printf "%s\n" "$ac_cv_exeext" >&6; } 3953 3954rm -f conftest.$ac_ext 3955EXEEXT=$ac_cv_exeext 3956ac_exeext=$EXEEXT 3957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3958/* end confdefs.h. */ 3959#include <stdio.h> 3960int 3961main (void) 3962{ 3963FILE *f = fopen ("conftest.out", "w"); 3964 return ferror (f) || fclose (f) != 0; 3965 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970ac_clean_files="$ac_clean_files conftest.out" 3971# Check that the compiler produces executables we can run. If not, either 3972# the compiler is broken, or we cross compile. 3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3974printf %s "checking whether we are cross compiling... " >&6; } 3975if test "$cross_compiling" != yes; then 3976 { { ac_try="$ac_link" 3977case "(($ac_try" in 3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3979 *) ac_try_echo=$ac_try;; 3980esac 3981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3982printf "%s\n" "$ac_try_echo"; } >&5 3983 (eval "$ac_link") 2>&5 3984 ac_status=$? 3985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3986 test $ac_status = 0; } 3987 if { ac_try='./conftest$ac_cv_exeext' 3988 { { case "(($ac_try" in 3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3990 *) ac_try_echo=$ac_try;; 3991esac 3992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3993printf "%s\n" "$ac_try_echo"; } >&5 3994 (eval "$ac_try") 2>&5 3995 ac_status=$? 3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3997 test $ac_status = 0; }; }; then 3998 cross_compiling=no 3999 else 4000 if test "$cross_compiling" = maybe; then 4001 cross_compiling=yes 4002 else 4003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4004printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4005as_fn_error 77 "cannot run C compiled programs. 4006If you meant to cross compile, use \`--host'. 4007See \`config.log' for more details" "$LINENO" 5; } 4008 fi 4009 fi 4010fi 4011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4012printf "%s\n" "$cross_compiling" >&6; } 4013 4014rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4015ac_clean_files=$ac_clean_files_save 4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4017printf %s "checking for suffix of object files... " >&6; } 4018if test ${ac_cv_objext+y} 4019then : 4020 printf %s "(cached) " >&6 4021else $as_nop 4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4023/* end confdefs.h. */ 4024 4025int 4026main (void) 4027{ 4028 4029 ; 4030 return 0; 4031} 4032_ACEOF 4033rm -f conftest.o conftest.obj 4034if { { ac_try="$ac_compile" 4035case "(($ac_try" in 4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4037 *) ac_try_echo=$ac_try;; 4038esac 4039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4040printf "%s\n" "$ac_try_echo"; } >&5 4041 (eval "$ac_compile") 2>&5 4042 ac_status=$? 4043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4044 test $ac_status = 0; } 4045then : 4046 for ac_file in conftest.o conftest.obj conftest.*; do 4047 test -f "$ac_file" || continue; 4048 case $ac_file in 4049 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4050 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4051 break;; 4052 esac 4053done 4054else $as_nop 4055 printf "%s\n" "$as_me: failed program was:" >&5 4056sed 's/^/| /' conftest.$ac_ext >&5 4057 4058{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4059printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4060as_fn_error $? "cannot compute suffix of object files: cannot compile 4061See \`config.log' for more details" "$LINENO" 5; } 4062fi 4063rm -f conftest.$ac_cv_objext conftest.$ac_ext 4064fi 4065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4066printf "%s\n" "$ac_cv_objext" >&6; } 4067OBJEXT=$ac_cv_objext 4068ac_objext=$OBJEXT 4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4070printf %s "checking whether the compiler supports GNU C... " >&6; } 4071if test ${ac_cv_c_compiler_gnu+y} 4072then : 4073 printf %s "(cached) " >&6 4074else $as_nop 4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4076/* end confdefs.h. */ 4077 4078int 4079main (void) 4080{ 4081#ifndef __GNUC__ 4082 choke me 4083#endif 4084 4085 ; 4086 return 0; 4087} 4088_ACEOF 4089if ac_fn_c_try_compile "$LINENO" 4090then : 4091 ac_compiler_gnu=yes 4092else $as_nop 4093 ac_compiler_gnu=no 4094fi 4095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4096ac_cv_c_compiler_gnu=$ac_compiler_gnu 4097 4098fi 4099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4100printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4101ac_compiler_gnu=$ac_cv_c_compiler_gnu 4102 4103if test $ac_compiler_gnu = yes; then 4104 GCC=yes 4105else 4106 GCC= 4107fi 4108ac_test_CFLAGS=${CFLAGS+y} 4109ac_save_CFLAGS=$CFLAGS 4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4111printf %s "checking whether $CC accepts -g... " >&6; } 4112if test ${ac_cv_prog_cc_g+y} 4113then : 4114 printf %s "(cached) " >&6 4115else $as_nop 4116 ac_save_c_werror_flag=$ac_c_werror_flag 4117 ac_c_werror_flag=yes 4118 ac_cv_prog_cc_g=no 4119 CFLAGS="-g" 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 ac_cv_prog_cc_g=yes 4134else $as_nop 4135 CFLAGS="" 4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4137/* end confdefs.h. */ 4138 4139int 4140main (void) 4141{ 4142 4143 ; 4144 return 0; 4145} 4146_ACEOF 4147if ac_fn_c_try_compile "$LINENO" 4148then : 4149 4150else $as_nop 4151 ac_c_werror_flag=$ac_save_c_werror_flag 4152 CFLAGS="-g" 4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4154/* end confdefs.h. */ 4155 4156int 4157main (void) 4158{ 4159 4160 ; 4161 return 0; 4162} 4163_ACEOF 4164if ac_fn_c_try_compile "$LINENO" 4165then : 4166 ac_cv_prog_cc_g=yes 4167fi 4168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4169fi 4170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4171fi 4172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4173 ac_c_werror_flag=$ac_save_c_werror_flag 4174fi 4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4176printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4177if test $ac_test_CFLAGS; then 4178 CFLAGS=$ac_save_CFLAGS 4179elif test $ac_cv_prog_cc_g = yes; then 4180 if test "$GCC" = yes; then 4181 CFLAGS="-g -O2" 4182 else 4183 CFLAGS="-g" 4184 fi 4185else 4186 if test "$GCC" = yes; then 4187 CFLAGS="-O2" 4188 else 4189 CFLAGS= 4190 fi 4191fi 4192ac_prog_cc_stdc=no 4193if test x$ac_prog_cc_stdc = xno 4194then : 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4196printf %s "checking for $CC option to enable C11 features... " >&6; } 4197if test ${ac_cv_prog_cc_c11+y} 4198then : 4199 printf %s "(cached) " >&6 4200else $as_nop 4201 ac_cv_prog_cc_c11=no 4202ac_save_CC=$CC 4203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204/* end confdefs.h. */ 4205$ac_c_conftest_c11_program 4206_ACEOF 4207for ac_arg in '' -std=gnu11 4208do 4209 CC="$ac_save_CC $ac_arg" 4210 if ac_fn_c_try_compile "$LINENO" 4211then : 4212 ac_cv_prog_cc_c11=$ac_arg 4213fi 4214rm -f core conftest.err conftest.$ac_objext conftest.beam 4215 test "x$ac_cv_prog_cc_c11" != "xno" && break 4216done 4217rm -f conftest.$ac_ext 4218CC=$ac_save_CC 4219fi 4220 4221if test "x$ac_cv_prog_cc_c11" = xno 4222then : 4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4224printf "%s\n" "unsupported" >&6; } 4225else $as_nop 4226 if test "x$ac_cv_prog_cc_c11" = x 4227then : 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4229printf "%s\n" "none needed" >&6; } 4230else $as_nop 4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4232printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4233 CC="$CC $ac_cv_prog_cc_c11" 4234fi 4235 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4236 ac_prog_cc_stdc=c11 4237fi 4238fi 4239if test x$ac_prog_cc_stdc = xno 4240then : 4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4242printf %s "checking for $CC option to enable C99 features... " >&6; } 4243if test ${ac_cv_prog_cc_c99+y} 4244then : 4245 printf %s "(cached) " >&6 4246else $as_nop 4247 ac_cv_prog_cc_c99=no 4248ac_save_CC=$CC 4249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4250/* end confdefs.h. */ 4251$ac_c_conftest_c99_program 4252_ACEOF 4253for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4254do 4255 CC="$ac_save_CC $ac_arg" 4256 if ac_fn_c_try_compile "$LINENO" 4257then : 4258 ac_cv_prog_cc_c99=$ac_arg 4259fi 4260rm -f core conftest.err conftest.$ac_objext conftest.beam 4261 test "x$ac_cv_prog_cc_c99" != "xno" && break 4262done 4263rm -f conftest.$ac_ext 4264CC=$ac_save_CC 4265fi 4266 4267if test "x$ac_cv_prog_cc_c99" = xno 4268then : 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4270printf "%s\n" "unsupported" >&6; } 4271else $as_nop 4272 if test "x$ac_cv_prog_cc_c99" = x 4273then : 4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4275printf "%s\n" "none needed" >&6; } 4276else $as_nop 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4278printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4279 CC="$CC $ac_cv_prog_cc_c99" 4280fi 4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4282 ac_prog_cc_stdc=c99 4283fi 4284fi 4285if test x$ac_prog_cc_stdc = xno 4286then : 4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4288printf %s "checking for $CC option to enable C89 features... " >&6; } 4289if test ${ac_cv_prog_cc_c89+y} 4290then : 4291 printf %s "(cached) " >&6 4292else $as_nop 4293 ac_cv_prog_cc_c89=no 4294ac_save_CC=$CC 4295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296/* end confdefs.h. */ 4297$ac_c_conftest_c89_program 4298_ACEOF 4299for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4300do 4301 CC="$ac_save_CC $ac_arg" 4302 if ac_fn_c_try_compile "$LINENO" 4303then : 4304 ac_cv_prog_cc_c89=$ac_arg 4305fi 4306rm -f core conftest.err conftest.$ac_objext conftest.beam 4307 test "x$ac_cv_prog_cc_c89" != "xno" && break 4308done 4309rm -f conftest.$ac_ext 4310CC=$ac_save_CC 4311fi 4312 4313if test "x$ac_cv_prog_cc_c89" = xno 4314then : 4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4316printf "%s\n" "unsupported" >&6; } 4317else $as_nop 4318 if test "x$ac_cv_prog_cc_c89" = x 4319then : 4320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4321printf "%s\n" "none needed" >&6; } 4322else $as_nop 4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4324printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4325 CC="$CC $ac_cv_prog_cc_c89" 4326fi 4327 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4328 ac_prog_cc_stdc=c89 4329fi 4330fi 4331 4332ac_ext=c 4333ac_cpp='$CPP $CPPFLAGS' 4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4336ac_compiler_gnu=$ac_cv_c_compiler_gnu 4337 4338 4339 ac_ext=c 4340ac_cpp='$CPP $CPPFLAGS' 4341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4343ac_compiler_gnu=$ac_cv_c_compiler_gnu 4344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4345printf %s "checking whether $CC understands -c and -o together... " >&6; } 4346if test ${am_cv_prog_cc_c_o+y} 4347then : 4348 printf %s "(cached) " >&6 4349else $as_nop 4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4351/* end confdefs.h. */ 4352 4353int 4354main (void) 4355{ 4356 4357 ; 4358 return 0; 4359} 4360_ACEOF 4361 # Make sure it works both with $CC and with simple cc. 4362 # Following AC_PROG_CC_C_O, we do the test twice because some 4363 # compilers refuse to overwrite an existing .o file with -o, 4364 # though they will create one. 4365 am_cv_prog_cc_c_o=yes 4366 for am_i in 1 2; do 4367 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4368 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4369 ac_status=$? 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4371 (exit $ac_status); } \ 4372 && test -f conftest2.$ac_objext; then 4373 : OK 4374 else 4375 am_cv_prog_cc_c_o=no 4376 break 4377 fi 4378 done 4379 rm -f core conftest* 4380 unset am_i 4381fi 4382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4383printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4384if test "$am_cv_prog_cc_c_o" != yes; then 4385 # Losing compiler, so override with the script. 4386 # FIXME: It is wrong to rewrite CC. 4387 # But if we don't then we get into trouble of one sort or another. 4388 # A longer-term fix would be to have automake use am__CC in this case, 4389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4390 CC="$am_aux_dir/compile $CC" 4391fi 4392ac_ext=c 4393ac_cpp='$CPP $CPPFLAGS' 4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4396ac_compiler_gnu=$ac_cv_c_compiler_gnu 4397 4398 4399depcc="$CC" am_compiler_list= 4400 4401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4402printf %s "checking dependency style of $depcc... " >&6; } 4403if test ${am_cv_CC_dependencies_compiler_type+y} 4404then : 4405 printf %s "(cached) " >&6 4406else $as_nop 4407 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4408 # We make a subdir and do the tests there. Otherwise we can end up 4409 # making bogus files that we don't know about and never remove. For 4410 # instance it was reported that on HP-UX the gcc test will end up 4411 # making a dummy file named 'D' -- because '-MD' means "put the output 4412 # in D". 4413 rm -rf conftest.dir 4414 mkdir conftest.dir 4415 # Copy depcomp to subdir because otherwise we won't find it if we're 4416 # using a relative directory. 4417 cp "$am_depcomp" conftest.dir 4418 cd conftest.dir 4419 # We will build objects and dependencies in a subdirectory because 4420 # it helps to detect inapplicable dependency modes. For instance 4421 # both Tru64's cc and ICC support -MD to output dependencies as a 4422 # side effect of compilation, but ICC will put the dependencies in 4423 # the current directory while Tru64 will put them in the object 4424 # directory. 4425 mkdir sub 4426 4427 am_cv_CC_dependencies_compiler_type=none 4428 if test "$am_compiler_list" = ""; then 4429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4430 fi 4431 am__universal=false 4432 case " $depcc " in #( 4433 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4434 esac 4435 4436 for depmode in $am_compiler_list; do 4437 # Setup a source with many dependencies, because some compilers 4438 # like to wrap large dependency lists on column 80 (with \), and 4439 # we should not choose a depcomp mode which is confused by this. 4440 # 4441 # We need to recreate these files for each test, as the compiler may 4442 # overwrite some of them when testing with obscure command lines. 4443 # This happens at least with the AIX C compiler. 4444 : > sub/conftest.c 4445 for i in 1 2 3 4 5 6; do 4446 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4447 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4448 # Solaris 10 /bin/sh. 4449 echo '/* dummy */' > sub/conftst$i.h 4450 done 4451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4452 4453 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4454 # mode. It turns out that the SunPro C++ compiler does not properly 4455 # handle '-M -o', and we need to detect this. Also, some Intel 4456 # versions had trouble with output in subdirs. 4457 am__obj=sub/conftest.${OBJEXT-o} 4458 am__minus_obj="-o $am__obj" 4459 case $depmode in 4460 gcc) 4461 # This depmode causes a compiler race in universal mode. 4462 test "$am__universal" = false || continue 4463 ;; 4464 nosideeffect) 4465 # After this tag, mechanisms are not by side-effect, so they'll 4466 # only be used when explicitly requested. 4467 if test "x$enable_dependency_tracking" = xyes; then 4468 continue 4469 else 4470 break 4471 fi 4472 ;; 4473 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4474 # This compiler won't grok '-c -o', but also, the minuso test has 4475 # not run yet. These depmodes are late enough in the game, and 4476 # so weak that their functioning should not be impacted. 4477 am__obj=conftest.${OBJEXT-o} 4478 am__minus_obj= 4479 ;; 4480 none) break ;; 4481 esac 4482 if depmode=$depmode \ 4483 source=sub/conftest.c object=$am__obj \ 4484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4485 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4486 >/dev/null 2>conftest.err && 4487 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4489 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4491 # icc doesn't choke on unknown options, it will just issue warnings 4492 # or remarks (even with -Werror). So we grep stderr for any message 4493 # that says an option was ignored or not supported. 4494 # When given -MP, icc 7.0 and 7.1 complain thusly: 4495 # icc: Command line warning: ignoring option '-M'; no argument required 4496 # The diagnosis changed in icc 8.0: 4497 # icc: Command line remark: option '-MP' not supported 4498 if (grep 'ignoring option' conftest.err || 4499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4500 am_cv_CC_dependencies_compiler_type=$depmode 4501 break 4502 fi 4503 fi 4504 done 4505 4506 cd .. 4507 rm -rf conftest.dir 4508else 4509 am_cv_CC_dependencies_compiler_type=none 4510fi 4511 4512fi 4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4514printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4515CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4516 4517 if 4518 test "x$enable_dependency_tracking" != xno \ 4519 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4520 am__fastdepCC_TRUE= 4521 am__fastdepCC_FALSE='#' 4522else 4523 am__fastdepCC_TRUE='#' 4524 am__fastdepCC_FALSE= 4525fi 4526 4527 4528 4529 4530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4531printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4532if test ${ac_cv_c_undeclared_builtin_options+y} 4533then : 4534 printf %s "(cached) " >&6 4535else $as_nop 4536 ac_save_CFLAGS=$CFLAGS 4537 ac_cv_c_undeclared_builtin_options='cannot detect' 4538 for ac_arg in '' -fno-builtin; do 4539 CFLAGS="$ac_save_CFLAGS $ac_arg" 4540 # This test program should *not* compile successfully. 4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4542/* end confdefs.h. */ 4543 4544int 4545main (void) 4546{ 4547(void) strchr; 4548 ; 4549 return 0; 4550} 4551_ACEOF 4552if ac_fn_c_try_compile "$LINENO" 4553then : 4554 4555else $as_nop 4556 # This test program should compile successfully. 4557 # No library function is consistently available on 4558 # freestanding implementations, so test against a dummy 4559 # declaration. Include always-available headers on the 4560 # off chance that they somehow elicit warnings. 4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4562/* end confdefs.h. */ 4563#include <float.h> 4564#include <limits.h> 4565#include <stdarg.h> 4566#include <stddef.h> 4567extern void ac_decl (int, char *); 4568 4569int 4570main (void) 4571{ 4572(void) ac_decl (0, (char *) 0); 4573 (void) ac_decl; 4574 4575 ; 4576 return 0; 4577} 4578_ACEOF 4579if ac_fn_c_try_compile "$LINENO" 4580then : 4581 if test x"$ac_arg" = x 4582then : 4583 ac_cv_c_undeclared_builtin_options='none needed' 4584else $as_nop 4585 ac_cv_c_undeclared_builtin_options=$ac_arg 4586fi 4587 break 4588fi 4589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4590fi 4591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4592 done 4593 CFLAGS=$ac_save_CFLAGS 4594 4595fi 4596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4597printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4598 case $ac_cv_c_undeclared_builtin_options in #( 4599 'cannot detect') : 4600 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4601printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4602as_fn_error $? "cannot make $CC report undeclared builtins 4603See \`config.log' for more details" "$LINENO" 5; } ;; #( 4604 'none needed') : 4605 ac_c_undeclared_builtin_options='' ;; #( 4606 *) : 4607 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4608esac 4609 4610ac_header= ac_cache= 4611for ac_item in $ac_header_c_list 4612do 4613 if test $ac_cache; then 4614 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4615 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4616 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4617 fi 4618 ac_header= ac_cache= 4619 elif test $ac_header; then 4620 ac_cache=$ac_item 4621 else 4622 ac_header=$ac_item 4623 fi 4624done 4625 4626 4627 4628 4629 4630 4631 4632 4633if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4634then : 4635 4636printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4637 4638fi 4639 4640 4641 4642 4643ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4644if test "x$ac_cv_have_decl___clang__" = xyes 4645then : 4646 CLANGCC="yes" 4647else $as_nop 4648 CLANGCC="no" 4649fi 4650ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4651if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4652then : 4653 INTELCC="yes" 4654else $as_nop 4655 INTELCC="no" 4656fi 4657ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4658if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4659then : 4660 SUNCC="yes" 4661else $as_nop 4662 SUNCC="no" 4663fi 4664 4665 4666 4667 4668 4669 4670 4671 4672if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4673 if test -n "$ac_tool_prefix"; then 4674 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4675set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4677printf %s "checking for $ac_word... " >&6; } 4678if test ${ac_cv_path_PKG_CONFIG+y} 4679then : 4680 printf %s "(cached) " >&6 4681else $as_nop 4682 case $PKG_CONFIG in 4683 [\\/]* | ?:[\\/]*) 4684 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4685 ;; 4686 *) 4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4688for as_dir in $PATH 4689do 4690 IFS=$as_save_IFS 4691 case $as_dir in #((( 4692 '') as_dir=./ ;; 4693 */) ;; 4694 *) as_dir=$as_dir/ ;; 4695 esac 4696 for ac_exec_ext in '' $ac_executable_extensions; do 4697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4698 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4700 break 2 4701 fi 4702done 4703 done 4704IFS=$as_save_IFS 4705 4706 ;; 4707esac 4708fi 4709PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4710if test -n "$PKG_CONFIG"; then 4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4712printf "%s\n" "$PKG_CONFIG" >&6; } 4713else 4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4715printf "%s\n" "no" >&6; } 4716fi 4717 4718 4719fi 4720if test -z "$ac_cv_path_PKG_CONFIG"; then 4721 ac_pt_PKG_CONFIG=$PKG_CONFIG 4722 # Extract the first word of "pkg-config", so it can be a program name with args. 4723set dummy pkg-config; ac_word=$2 4724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4725printf %s "checking for $ac_word... " >&6; } 4726if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4727then : 4728 printf %s "(cached) " >&6 4729else $as_nop 4730 case $ac_pt_PKG_CONFIG in 4731 [\\/]* | ?:[\\/]*) 4732 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4733 ;; 4734 *) 4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 case $as_dir in #((( 4740 '') as_dir=./ ;; 4741 */) ;; 4742 *) as_dir=$as_dir/ ;; 4743 esac 4744 for ac_exec_ext in '' $ac_executable_extensions; do 4745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4746 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4748 break 2 4749 fi 4750done 4751 done 4752IFS=$as_save_IFS 4753 4754 ;; 4755esac 4756fi 4757ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4758if test -n "$ac_pt_PKG_CONFIG"; then 4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4760printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4761else 4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4763printf "%s\n" "no" >&6; } 4764fi 4765 4766 if test "x$ac_pt_PKG_CONFIG" = x; then 4767 PKG_CONFIG="" 4768 else 4769 case $cross_compiling:$ac_tool_warned in 4770yes:) 4771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4772printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4773ac_tool_warned=yes ;; 4774esac 4775 PKG_CONFIG=$ac_pt_PKG_CONFIG 4776 fi 4777else 4778 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4779fi 4780 4781fi 4782if test -n "$PKG_CONFIG"; then 4783 _pkg_min_version=0.9.0 4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4785printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4786 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4788printf "%s\n" "yes" >&6; } 4789 else 4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4791printf "%s\n" "no" >&6; } 4792 PKG_CONFIG="" 4793 fi 4794fi 4795 4796 4797 # Make sure we can run config.sub. 4798$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4799 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4800 4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4802printf %s "checking build system type... " >&6; } 4803if test ${ac_cv_build+y} 4804then : 4805 printf %s "(cached) " >&6 4806else $as_nop 4807 ac_build_alias=$build_alias 4808test "x$ac_build_alias" = x && 4809 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4810test "x$ac_build_alias" = x && 4811 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4812ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4813 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4814 4815fi 4816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4817printf "%s\n" "$ac_cv_build" >&6; } 4818case $ac_cv_build in 4819*-*-*) ;; 4820*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4821esac 4822build=$ac_cv_build 4823ac_save_IFS=$IFS; IFS='-' 4824set x $ac_cv_build 4825shift 4826build_cpu=$1 4827build_vendor=$2 4828shift; shift 4829# Remember, the first character of IFS is used to create $*, 4830# except with old shells: 4831build_os=$* 4832IFS=$ac_save_IFS 4833case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4834 4835 4836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4837printf %s "checking host system type... " >&6; } 4838if test ${ac_cv_host+y} 4839then : 4840 printf %s "(cached) " >&6 4841else $as_nop 4842 if test "x$host_alias" = x; then 4843 ac_cv_host=$ac_cv_build 4844else 4845 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4846 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4847fi 4848 4849fi 4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4851printf "%s\n" "$ac_cv_host" >&6; } 4852case $ac_cv_host in 4853*-*-*) ;; 4854*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4855esac 4856host=$ac_cv_host 4857ac_save_IFS=$IFS; IFS='-' 4858set x $ac_cv_host 4859shift 4860host_cpu=$1 4861host_vendor=$2 4862shift; shift 4863# Remember, the first character of IFS is used to create $*, 4864# except with old shells: 4865host_os=$* 4866IFS=$ac_save_IFS 4867case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4868 4869 4870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4871printf %s "checking for a sed that does not truncate output... " >&6; } 4872if test ${ac_cv_path_SED+y} 4873then : 4874 printf %s "(cached) " >&6 4875else $as_nop 4876 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4877 for ac_i in 1 2 3 4 5 6 7; do 4878 ac_script="$ac_script$as_nl$ac_script" 4879 done 4880 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4881 { ac_script=; unset ac_script;} 4882 if test -z "$SED"; then 4883 ac_path_SED_found=false 4884 # Loop through the user's path and test for each of PROGNAME-LIST 4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4886for as_dir in $PATH 4887do 4888 IFS=$as_save_IFS 4889 case $as_dir in #((( 4890 '') as_dir=./ ;; 4891 */) ;; 4892 *) as_dir=$as_dir/ ;; 4893 esac 4894 for ac_prog in sed gsed 4895 do 4896 for ac_exec_ext in '' $ac_executable_extensions; do 4897 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4898 as_fn_executable_p "$ac_path_SED" || continue 4899# Check for GNU ac_path_SED and select it if it is found. 4900 # Check for GNU $ac_path_SED 4901case `"$ac_path_SED" --version 2>&1` in 4902*GNU*) 4903 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4904*) 4905 ac_count=0 4906 printf %s 0123456789 >"conftest.in" 4907 while : 4908 do 4909 cat "conftest.in" "conftest.in" >"conftest.tmp" 4910 mv "conftest.tmp" "conftest.in" 4911 cp "conftest.in" "conftest.nl" 4912 printf "%s\n" '' >> "conftest.nl" 4913 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4915 as_fn_arith $ac_count + 1 && ac_count=$as_val 4916 if test $ac_count -gt ${ac_path_SED_max-0}; then 4917 # Best one so far, save it but keep looking for a better one 4918 ac_cv_path_SED="$ac_path_SED" 4919 ac_path_SED_max=$ac_count 4920 fi 4921 # 10*(2^10) chars as input seems more than enough 4922 test $ac_count -gt 10 && break 4923 done 4924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4925esac 4926 4927 $ac_path_SED_found && break 3 4928 done 4929 done 4930 done 4931IFS=$as_save_IFS 4932 if test -z "$ac_cv_path_SED"; then 4933 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4934 fi 4935else 4936 ac_cv_path_SED=$SED 4937fi 4938 4939fi 4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4941printf "%s\n" "$ac_cv_path_SED" >&6; } 4942 SED="$ac_cv_path_SED" 4943 rm -f conftest.sed 4944 4945 4946 4947 4948 4949 4950# Check whether --enable-selective-werror was given. 4951if test ${enable_selective_werror+y} 4952then : 4953 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4954else $as_nop 4955 SELECTIVE_WERROR=yes 4956fi 4957 4958 4959 4960 4961 4962# -v is too short to test reliably with XORG_TESTSET_CFLAG 4963if test "x$SUNCC" = "xyes"; then 4964 BASE_CFLAGS="-v" 4965else 4966 BASE_CFLAGS="" 4967fi 4968 4969# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983xorg_testset_save_CFLAGS="$CFLAGS" 4984 4985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4988printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4989if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4990then : 4991 printf %s "(cached) " >&6 4992else $as_nop 4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4994/* end confdefs.h. */ 4995int i; 4996_ACEOF 4997if ac_fn_c_try_compile "$LINENO" 4998then : 4999 xorg_cv_cc_flag_unknown_warning_option=yes 5000else $as_nop 5001 xorg_cv_cc_flag_unknown_warning_option=no 5002fi 5003rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5004fi 5005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5006printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5008 CFLAGS="$xorg_testset_save_CFLAGS" 5009fi 5010 5011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5014 fi 5015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5017printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5018if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5019then : 5020 printf %s "(cached) " >&6 5021else $as_nop 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024int i; 5025_ACEOF 5026if ac_fn_c_try_compile "$LINENO" 5027then : 5028 xorg_cv_cc_flag_unused_command_line_argument=yes 5029else $as_nop 5030 xorg_cv_cc_flag_unused_command_line_argument=no 5031fi 5032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5033fi 5034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5035printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5037 CFLAGS="$xorg_testset_save_CFLAGS" 5038fi 5039 5040found="no" 5041 5042 if test $found = "no" ; then 5043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5045 fi 5046 5047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5049 fi 5050 5051 CFLAGS="$CFLAGS -Wall" 5052 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5054printf %s "checking if $CC supports -Wall... " >&6; } 5055 cacheid=xorg_cv_cc_flag__Wall 5056 if eval test \${$cacheid+y} 5057then : 5058 printf %s "(cached) " >&6 5059else $as_nop 5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061/* end confdefs.h. */ 5062int i; 5063int 5064main (void) 5065{ 5066 5067 ; 5068 return 0; 5069} 5070_ACEOF 5071if ac_fn_c_try_link "$LINENO" 5072then : 5073 eval $cacheid=yes 5074else $as_nop 5075 eval $cacheid=no 5076fi 5077rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5078 conftest$ac_exeext conftest.$ac_ext 5079fi 5080 5081 5082 CFLAGS="$xorg_testset_save_CFLAGS" 5083 5084 eval supported=\$$cacheid 5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5086printf "%s\n" "$supported" >&6; } 5087 if test "$supported" = "yes" ; then 5088 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5089 found="yes" 5090 fi 5091 fi 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107xorg_testset_save_CFLAGS="$CFLAGS" 5108 5109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5112printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5113if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5114then : 5115 printf %s "(cached) " >&6 5116else $as_nop 5117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5118/* end confdefs.h. */ 5119int i; 5120_ACEOF 5121if ac_fn_c_try_compile "$LINENO" 5122then : 5123 xorg_cv_cc_flag_unknown_warning_option=yes 5124else $as_nop 5125 xorg_cv_cc_flag_unknown_warning_option=no 5126fi 5127rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5128fi 5129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5130printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5132 CFLAGS="$xorg_testset_save_CFLAGS" 5133fi 5134 5135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5138 fi 5139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5141printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5142if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5143then : 5144 printf %s "(cached) " >&6 5145else $as_nop 5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5147/* end confdefs.h. */ 5148int i; 5149_ACEOF 5150if ac_fn_c_try_compile "$LINENO" 5151then : 5152 xorg_cv_cc_flag_unused_command_line_argument=yes 5153else $as_nop 5154 xorg_cv_cc_flag_unused_command_line_argument=no 5155fi 5156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5157fi 5158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5161 CFLAGS="$xorg_testset_save_CFLAGS" 5162fi 5163 5164found="no" 5165 5166 if test $found = "no" ; then 5167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5169 fi 5170 5171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5173 fi 5174 5175 CFLAGS="$CFLAGS -Wpointer-arith" 5176 5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5178printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5179 cacheid=xorg_cv_cc_flag__Wpointer_arith 5180 if eval test \${$cacheid+y} 5181then : 5182 printf %s "(cached) " >&6 5183else $as_nop 5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5185/* end confdefs.h. */ 5186int i; 5187int 5188main (void) 5189{ 5190 5191 ; 5192 return 0; 5193} 5194_ACEOF 5195if ac_fn_c_try_link "$LINENO" 5196then : 5197 eval $cacheid=yes 5198else $as_nop 5199 eval $cacheid=no 5200fi 5201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5202 conftest$ac_exeext conftest.$ac_ext 5203fi 5204 5205 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207 5208 eval supported=\$$cacheid 5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5210printf "%s\n" "$supported" >&6; } 5211 if test "$supported" = "yes" ; then 5212 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5213 found="yes" 5214 fi 5215 fi 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231xorg_testset_save_CFLAGS="$CFLAGS" 5232 5233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5237if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5238then : 5239 printf %s "(cached) " >&6 5240else $as_nop 5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242/* end confdefs.h. */ 5243int i; 5244_ACEOF 5245if ac_fn_c_try_compile "$LINENO" 5246then : 5247 xorg_cv_cc_flag_unknown_warning_option=yes 5248else $as_nop 5249 xorg_cv_cc_flag_unknown_warning_option=no 5250fi 5251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5252fi 5253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5256 CFLAGS="$xorg_testset_save_CFLAGS" 5257fi 5258 5259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262 fi 5263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5266if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5267then : 5268 printf %s "(cached) " >&6 5269else $as_nop 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271/* end confdefs.h. */ 5272int i; 5273_ACEOF 5274if ac_fn_c_try_compile "$LINENO" 5275then : 5276 xorg_cv_cc_flag_unused_command_line_argument=yes 5277else $as_nop 5278 xorg_cv_cc_flag_unused_command_line_argument=no 5279fi 5280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5281fi 5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5285 CFLAGS="$xorg_testset_save_CFLAGS" 5286fi 5287 5288found="no" 5289 5290 if test $found = "no" ; then 5291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5293 fi 5294 5295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5297 fi 5298 5299 CFLAGS="$CFLAGS -Wmissing-declarations" 5300 5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5302printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5303 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5304 if eval test \${$cacheid+y} 5305then : 5306 printf %s "(cached) " >&6 5307else $as_nop 5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5309/* end confdefs.h. */ 5310int i; 5311int 5312main (void) 5313{ 5314 5315 ; 5316 return 0; 5317} 5318_ACEOF 5319if ac_fn_c_try_link "$LINENO" 5320then : 5321 eval $cacheid=yes 5322else $as_nop 5323 eval $cacheid=no 5324fi 5325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5326 conftest$ac_exeext conftest.$ac_ext 5327fi 5328 5329 5330 CFLAGS="$xorg_testset_save_CFLAGS" 5331 5332 eval supported=\$$cacheid 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5334printf "%s\n" "$supported" >&6; } 5335 if test "$supported" = "yes" ; then 5336 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5337 found="yes" 5338 fi 5339 fi 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355xorg_testset_save_CFLAGS="$CFLAGS" 5356 5357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5361if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5362then : 5363 printf %s "(cached) " >&6 5364else $as_nop 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5366/* end confdefs.h. */ 5367int i; 5368_ACEOF 5369if ac_fn_c_try_compile "$LINENO" 5370then : 5371 xorg_cv_cc_flag_unknown_warning_option=yes 5372else $as_nop 5373 xorg_cv_cc_flag_unknown_warning_option=no 5374fi 5375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5376fi 5377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5380 CFLAGS="$xorg_testset_save_CFLAGS" 5381fi 5382 5383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5386 fi 5387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5390if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5391then : 5392 printf %s "(cached) " >&6 5393else $as_nop 5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5395/* end confdefs.h. */ 5396int i; 5397_ACEOF 5398if ac_fn_c_try_compile "$LINENO" 5399then : 5400 xorg_cv_cc_flag_unused_command_line_argument=yes 5401else $as_nop 5402 xorg_cv_cc_flag_unused_command_line_argument=no 5403fi 5404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5405fi 5406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5409 CFLAGS="$xorg_testset_save_CFLAGS" 5410fi 5411 5412found="no" 5413 5414 if test $found = "no" ; then 5415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5417 fi 5418 5419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5421 fi 5422 5423 CFLAGS="$CFLAGS -Wformat=2" 5424 5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5426printf %s "checking if $CC supports -Wformat=2... " >&6; } 5427 cacheid=xorg_cv_cc_flag__Wformat_2 5428 if eval test \${$cacheid+y} 5429then : 5430 printf %s "(cached) " >&6 5431else $as_nop 5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5433/* end confdefs.h. */ 5434int i; 5435int 5436main (void) 5437{ 5438 5439 ; 5440 return 0; 5441} 5442_ACEOF 5443if ac_fn_c_try_link "$LINENO" 5444then : 5445 eval $cacheid=yes 5446else $as_nop 5447 eval $cacheid=no 5448fi 5449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5450 conftest$ac_exeext conftest.$ac_ext 5451fi 5452 5453 5454 CFLAGS="$xorg_testset_save_CFLAGS" 5455 5456 eval supported=\$$cacheid 5457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5458printf "%s\n" "$supported" >&6; } 5459 if test "$supported" = "yes" ; then 5460 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5461 found="yes" 5462 fi 5463 fi 5464 5465 if test $found = "no" ; then 5466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5468 fi 5469 5470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5472 fi 5473 5474 CFLAGS="$CFLAGS -Wformat" 5475 5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5477printf %s "checking if $CC supports -Wformat... " >&6; } 5478 cacheid=xorg_cv_cc_flag__Wformat 5479 if eval test \${$cacheid+y} 5480then : 5481 printf %s "(cached) " >&6 5482else $as_nop 5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484/* end confdefs.h. */ 5485int i; 5486int 5487main (void) 5488{ 5489 5490 ; 5491 return 0; 5492} 5493_ACEOF 5494if ac_fn_c_try_link "$LINENO" 5495then : 5496 eval $cacheid=yes 5497else $as_nop 5498 eval $cacheid=no 5499fi 5500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5501 conftest$ac_exeext conftest.$ac_ext 5502fi 5503 5504 5505 CFLAGS="$xorg_testset_save_CFLAGS" 5506 5507 eval supported=\$$cacheid 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5509printf "%s\n" "$supported" >&6; } 5510 if test "$supported" = "yes" ; then 5511 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5512 found="yes" 5513 fi 5514 fi 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532xorg_testset_save_CFLAGS="$CFLAGS" 5533 5534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5537printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5538if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5539then : 5540 printf %s "(cached) " >&6 5541else $as_nop 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5543/* end confdefs.h. */ 5544int i; 5545_ACEOF 5546if ac_fn_c_try_compile "$LINENO" 5547then : 5548 xorg_cv_cc_flag_unknown_warning_option=yes 5549else $as_nop 5550 xorg_cv_cc_flag_unknown_warning_option=no 5551fi 5552rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5553fi 5554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5555printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5557 CFLAGS="$xorg_testset_save_CFLAGS" 5558fi 5559 5560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 fi 5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5566printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5567if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5568then : 5569 printf %s "(cached) " >&6 5570else $as_nop 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572/* end confdefs.h. */ 5573int i; 5574_ACEOF 5575if ac_fn_c_try_compile "$LINENO" 5576then : 5577 xorg_cv_cc_flag_unused_command_line_argument=yes 5578else $as_nop 5579 xorg_cv_cc_flag_unused_command_line_argument=no 5580fi 5581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5582fi 5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5586 CFLAGS="$xorg_testset_save_CFLAGS" 5587fi 5588 5589found="no" 5590 5591 if test $found = "no" ; then 5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5594 fi 5595 5596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5598 fi 5599 5600 CFLAGS="$CFLAGS -Wstrict-prototypes" 5601 5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5603printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5604 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5605 if eval test \${$cacheid+y} 5606then : 5607 printf %s "(cached) " >&6 5608else $as_nop 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5610/* end confdefs.h. */ 5611int i; 5612int 5613main (void) 5614{ 5615 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620if ac_fn_c_try_link "$LINENO" 5621then : 5622 eval $cacheid=yes 5623else $as_nop 5624 eval $cacheid=no 5625fi 5626rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5627 conftest$ac_exeext conftest.$ac_ext 5628fi 5629 5630 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632 5633 eval supported=\$$cacheid 5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5635printf "%s\n" "$supported" >&6; } 5636 if test "$supported" = "yes" ; then 5637 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5638 found="yes" 5639 fi 5640 fi 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656xorg_testset_save_CFLAGS="$CFLAGS" 5657 5658if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5661printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5662if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5663then : 5664 printf %s "(cached) " >&6 5665else $as_nop 5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667/* end confdefs.h. */ 5668int i; 5669_ACEOF 5670if ac_fn_c_try_compile "$LINENO" 5671then : 5672 xorg_cv_cc_flag_unknown_warning_option=yes 5673else $as_nop 5674 xorg_cv_cc_flag_unknown_warning_option=no 5675fi 5676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5677fi 5678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5680 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5681 CFLAGS="$xorg_testset_save_CFLAGS" 5682fi 5683 5684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 fi 5688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5691if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5692then : 5693 printf %s "(cached) " >&6 5694else $as_nop 5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5696/* end confdefs.h. */ 5697int i; 5698_ACEOF 5699if ac_fn_c_try_compile "$LINENO" 5700then : 5701 xorg_cv_cc_flag_unused_command_line_argument=yes 5702else $as_nop 5703 xorg_cv_cc_flag_unused_command_line_argument=no 5704fi 5705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5706fi 5707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5708printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5710 CFLAGS="$xorg_testset_save_CFLAGS" 5711fi 5712 5713found="no" 5714 5715 if test $found = "no" ; then 5716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5718 fi 5719 5720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5722 fi 5723 5724 CFLAGS="$CFLAGS -Wmissing-prototypes" 5725 5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5727printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5728 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5729 if eval test \${$cacheid+y} 5730then : 5731 printf %s "(cached) " >&6 5732else $as_nop 5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5734/* end confdefs.h. */ 5735int i; 5736int 5737main (void) 5738{ 5739 5740 ; 5741 return 0; 5742} 5743_ACEOF 5744if ac_fn_c_try_link "$LINENO" 5745then : 5746 eval $cacheid=yes 5747else $as_nop 5748 eval $cacheid=no 5749fi 5750rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5751 conftest$ac_exeext conftest.$ac_ext 5752fi 5753 5754 5755 CFLAGS="$xorg_testset_save_CFLAGS" 5756 5757 eval supported=\$$cacheid 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5759printf "%s\n" "$supported" >&6; } 5760 if test "$supported" = "yes" ; then 5761 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5762 found="yes" 5763 fi 5764 fi 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780xorg_testset_save_CFLAGS="$CFLAGS" 5781 5782if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5785printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5786if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5787then : 5788 printf %s "(cached) " >&6 5789else $as_nop 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791/* end confdefs.h. */ 5792int i; 5793_ACEOF 5794if ac_fn_c_try_compile "$LINENO" 5795then : 5796 xorg_cv_cc_flag_unknown_warning_option=yes 5797else $as_nop 5798 xorg_cv_cc_flag_unknown_warning_option=no 5799fi 5800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5801fi 5802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5803printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5805 CFLAGS="$xorg_testset_save_CFLAGS" 5806fi 5807 5808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5811 fi 5812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5814printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5815if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5816then : 5817 printf %s "(cached) " >&6 5818else $as_nop 5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5820/* end confdefs.h. */ 5821int i; 5822_ACEOF 5823if ac_fn_c_try_compile "$LINENO" 5824then : 5825 xorg_cv_cc_flag_unused_command_line_argument=yes 5826else $as_nop 5827 xorg_cv_cc_flag_unused_command_line_argument=no 5828fi 5829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5830fi 5831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5832printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5834 CFLAGS="$xorg_testset_save_CFLAGS" 5835fi 5836 5837found="no" 5838 5839 if test $found = "no" ; then 5840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5842 fi 5843 5844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5846 fi 5847 5848 CFLAGS="$CFLAGS -Wnested-externs" 5849 5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5851printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5852 cacheid=xorg_cv_cc_flag__Wnested_externs 5853 if eval test \${$cacheid+y} 5854then : 5855 printf %s "(cached) " >&6 5856else $as_nop 5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5858/* end confdefs.h. */ 5859int i; 5860int 5861main (void) 5862{ 5863 5864 ; 5865 return 0; 5866} 5867_ACEOF 5868if ac_fn_c_try_link "$LINENO" 5869then : 5870 eval $cacheid=yes 5871else $as_nop 5872 eval $cacheid=no 5873fi 5874rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5875 conftest$ac_exeext conftest.$ac_ext 5876fi 5877 5878 5879 CFLAGS="$xorg_testset_save_CFLAGS" 5880 5881 eval supported=\$$cacheid 5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5883printf "%s\n" "$supported" >&6; } 5884 if test "$supported" = "yes" ; then 5885 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5886 found="yes" 5887 fi 5888 fi 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904xorg_testset_save_CFLAGS="$CFLAGS" 5905 5906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5909printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5910if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5911then : 5912 printf %s "(cached) " >&6 5913else $as_nop 5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5915/* end confdefs.h. */ 5916int i; 5917_ACEOF 5918if ac_fn_c_try_compile "$LINENO" 5919then : 5920 xorg_cv_cc_flag_unknown_warning_option=yes 5921else $as_nop 5922 xorg_cv_cc_flag_unknown_warning_option=no 5923fi 5924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5925fi 5926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5927printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930fi 5931 5932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5935 fi 5936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5938printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5939if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5940then : 5941 printf %s "(cached) " >&6 5942else $as_nop 5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5944/* end confdefs.h. */ 5945int i; 5946_ACEOF 5947if ac_fn_c_try_compile "$LINENO" 5948then : 5949 xorg_cv_cc_flag_unused_command_line_argument=yes 5950else $as_nop 5951 xorg_cv_cc_flag_unused_command_line_argument=no 5952fi 5953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5954fi 5955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5956printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5958 CFLAGS="$xorg_testset_save_CFLAGS" 5959fi 5960 5961found="no" 5962 5963 if test $found = "no" ; then 5964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5966 fi 5967 5968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5970 fi 5971 5972 CFLAGS="$CFLAGS -Wbad-function-cast" 5973 5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5975printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5976 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5977 if eval test \${$cacheid+y} 5978then : 5979 printf %s "(cached) " >&6 5980else $as_nop 5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5982/* end confdefs.h. */ 5983int i; 5984int 5985main (void) 5986{ 5987 5988 ; 5989 return 0; 5990} 5991_ACEOF 5992if ac_fn_c_try_link "$LINENO" 5993then : 5994 eval $cacheid=yes 5995else $as_nop 5996 eval $cacheid=no 5997fi 5998rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5999 conftest$ac_exeext conftest.$ac_ext 6000fi 6001 6002 6003 CFLAGS="$xorg_testset_save_CFLAGS" 6004 6005 eval supported=\$$cacheid 6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6007printf "%s\n" "$supported" >&6; } 6008 if test "$supported" = "yes" ; then 6009 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6010 found="yes" 6011 fi 6012 fi 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028xorg_testset_save_CFLAGS="$CFLAGS" 6029 6030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6033printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6034if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6035then : 6036 printf %s "(cached) " >&6 6037else $as_nop 6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6039/* end confdefs.h. */ 6040int i; 6041_ACEOF 6042if ac_fn_c_try_compile "$LINENO" 6043then : 6044 xorg_cv_cc_flag_unknown_warning_option=yes 6045else $as_nop 6046 xorg_cv_cc_flag_unknown_warning_option=no 6047fi 6048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6049fi 6050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6051printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6053 CFLAGS="$xorg_testset_save_CFLAGS" 6054fi 6055 6056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6059 fi 6060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6062printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6063if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6064then : 6065 printf %s "(cached) " >&6 6066else $as_nop 6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6068/* end confdefs.h. */ 6069int i; 6070_ACEOF 6071if ac_fn_c_try_compile "$LINENO" 6072then : 6073 xorg_cv_cc_flag_unused_command_line_argument=yes 6074else $as_nop 6075 xorg_cv_cc_flag_unused_command_line_argument=no 6076fi 6077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6078fi 6079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6080printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6082 CFLAGS="$xorg_testset_save_CFLAGS" 6083fi 6084 6085found="no" 6086 6087 if test $found = "no" ; then 6088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6090 fi 6091 6092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6094 fi 6095 6096 CFLAGS="$CFLAGS -Wold-style-definition" 6097 6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6099printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6100 cacheid=xorg_cv_cc_flag__Wold_style_definition 6101 if eval test \${$cacheid+y} 6102then : 6103 printf %s "(cached) " >&6 6104else $as_nop 6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106/* end confdefs.h. */ 6107int i; 6108int 6109main (void) 6110{ 6111 6112 ; 6113 return 0; 6114} 6115_ACEOF 6116if ac_fn_c_try_link "$LINENO" 6117then : 6118 eval $cacheid=yes 6119else $as_nop 6120 eval $cacheid=no 6121fi 6122rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6123 conftest$ac_exeext conftest.$ac_ext 6124fi 6125 6126 6127 CFLAGS="$xorg_testset_save_CFLAGS" 6128 6129 eval supported=\$$cacheid 6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6131printf "%s\n" "$supported" >&6; } 6132 if test "$supported" = "yes" ; then 6133 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6134 found="yes" 6135 fi 6136 fi 6137 6138 if test $found = "no" ; then 6139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6141 fi 6142 6143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6145 fi 6146 6147 CFLAGS="$CFLAGS -fd" 6148 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6150printf %s "checking if $CC supports -fd... " >&6; } 6151 cacheid=xorg_cv_cc_flag__fd 6152 if eval test \${$cacheid+y} 6153then : 6154 printf %s "(cached) " >&6 6155else $as_nop 6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6157/* end confdefs.h. */ 6158int i; 6159int 6160main (void) 6161{ 6162 6163 ; 6164 return 0; 6165} 6166_ACEOF 6167if ac_fn_c_try_link "$LINENO" 6168then : 6169 eval $cacheid=yes 6170else $as_nop 6171 eval $cacheid=no 6172fi 6173rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6174 conftest$ac_exeext conftest.$ac_ext 6175fi 6176 6177 6178 CFLAGS="$xorg_testset_save_CFLAGS" 6179 6180 eval supported=\$$cacheid 6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6182printf "%s\n" "$supported" >&6; } 6183 if test "$supported" = "yes" ; then 6184 BASE_CFLAGS="$BASE_CFLAGS -fd" 6185 found="yes" 6186 fi 6187 fi 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203xorg_testset_save_CFLAGS="$CFLAGS" 6204 6205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6208printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6209if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6210then : 6211 printf %s "(cached) " >&6 6212else $as_nop 6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6214/* end confdefs.h. */ 6215int i; 6216_ACEOF 6217if ac_fn_c_try_compile "$LINENO" 6218then : 6219 xorg_cv_cc_flag_unknown_warning_option=yes 6220else $as_nop 6221 xorg_cv_cc_flag_unknown_warning_option=no 6222fi 6223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6224fi 6225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6226printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6228 CFLAGS="$xorg_testset_save_CFLAGS" 6229fi 6230 6231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6234 fi 6235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6237printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6238if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6239then : 6240 printf %s "(cached) " >&6 6241else $as_nop 6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243/* end confdefs.h. */ 6244int i; 6245_ACEOF 6246if ac_fn_c_try_compile "$LINENO" 6247then : 6248 xorg_cv_cc_flag_unused_command_line_argument=yes 6249else $as_nop 6250 xorg_cv_cc_flag_unused_command_line_argument=no 6251fi 6252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6253fi 6254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6257 CFLAGS="$xorg_testset_save_CFLAGS" 6258fi 6259 6260found="no" 6261 6262 if test $found = "no" ; then 6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6265 fi 6266 6267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6269 fi 6270 6271 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6272 6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6274printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6275 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6276 if eval test \${$cacheid+y} 6277then : 6278 printf %s "(cached) " >&6 6279else $as_nop 6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6281/* end confdefs.h. */ 6282int i; 6283int 6284main (void) 6285{ 6286 6287 ; 6288 return 0; 6289} 6290_ACEOF 6291if ac_fn_c_try_link "$LINENO" 6292then : 6293 eval $cacheid=yes 6294else $as_nop 6295 eval $cacheid=no 6296fi 6297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6298 conftest$ac_exeext conftest.$ac_ext 6299fi 6300 6301 6302 CFLAGS="$xorg_testset_save_CFLAGS" 6303 6304 eval supported=\$$cacheid 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6306printf "%s\n" "$supported" >&6; } 6307 if test "$supported" = "yes" ; then 6308 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6309 found="yes" 6310 fi 6311 fi 6312 6313 6314 6315 6316 6317# This chunk adds additional warnings that could catch undesired effects. 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331xorg_testset_save_CFLAGS="$CFLAGS" 6332 6333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6337if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6338then : 6339 printf %s "(cached) " >&6 6340else $as_nop 6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342/* end confdefs.h. */ 6343int i; 6344_ACEOF 6345if ac_fn_c_try_compile "$LINENO" 6346then : 6347 xorg_cv_cc_flag_unknown_warning_option=yes 6348else $as_nop 6349 xorg_cv_cc_flag_unknown_warning_option=no 6350fi 6351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6352fi 6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6356 CFLAGS="$xorg_testset_save_CFLAGS" 6357fi 6358 6359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6362 fi 6363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6366if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6367then : 6368 printf %s "(cached) " >&6 6369else $as_nop 6370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6371/* end confdefs.h. */ 6372int i; 6373_ACEOF 6374if ac_fn_c_try_compile "$LINENO" 6375then : 6376 xorg_cv_cc_flag_unused_command_line_argument=yes 6377else $as_nop 6378 xorg_cv_cc_flag_unused_command_line_argument=no 6379fi 6380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6381fi 6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6385 CFLAGS="$xorg_testset_save_CFLAGS" 6386fi 6387 6388found="no" 6389 6390 if test $found = "no" ; then 6391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6393 fi 6394 6395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6397 fi 6398 6399 CFLAGS="$CFLAGS -Wunused" 6400 6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6402printf %s "checking if $CC supports -Wunused... " >&6; } 6403 cacheid=xorg_cv_cc_flag__Wunused 6404 if eval test \${$cacheid+y} 6405then : 6406 printf %s "(cached) " >&6 6407else $as_nop 6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6409/* end confdefs.h. */ 6410int i; 6411int 6412main (void) 6413{ 6414 6415 ; 6416 return 0; 6417} 6418_ACEOF 6419if ac_fn_c_try_link "$LINENO" 6420then : 6421 eval $cacheid=yes 6422else $as_nop 6423 eval $cacheid=no 6424fi 6425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6426 conftest$ac_exeext conftest.$ac_ext 6427fi 6428 6429 6430 CFLAGS="$xorg_testset_save_CFLAGS" 6431 6432 eval supported=\$$cacheid 6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6434printf "%s\n" "$supported" >&6; } 6435 if test "$supported" = "yes" ; then 6436 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6437 found="yes" 6438 fi 6439 fi 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455xorg_testset_save_CFLAGS="$CFLAGS" 6456 6457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6461if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6462then : 6463 printf %s "(cached) " >&6 6464else $as_nop 6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6466/* end confdefs.h. */ 6467int i; 6468_ACEOF 6469if ac_fn_c_try_compile "$LINENO" 6470then : 6471 xorg_cv_cc_flag_unknown_warning_option=yes 6472else $as_nop 6473 xorg_cv_cc_flag_unknown_warning_option=no 6474fi 6475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6476fi 6477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6480 CFLAGS="$xorg_testset_save_CFLAGS" 6481fi 6482 6483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6486 fi 6487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6490if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6491then : 6492 printf %s "(cached) " >&6 6493else $as_nop 6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6495/* end confdefs.h. */ 6496int i; 6497_ACEOF 6498if ac_fn_c_try_compile "$LINENO" 6499then : 6500 xorg_cv_cc_flag_unused_command_line_argument=yes 6501else $as_nop 6502 xorg_cv_cc_flag_unused_command_line_argument=no 6503fi 6504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6505fi 6506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6509 CFLAGS="$xorg_testset_save_CFLAGS" 6510fi 6511 6512found="no" 6513 6514 if test $found = "no" ; then 6515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6517 fi 6518 6519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6521 fi 6522 6523 CFLAGS="$CFLAGS -Wuninitialized" 6524 6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6526printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6527 cacheid=xorg_cv_cc_flag__Wuninitialized 6528 if eval test \${$cacheid+y} 6529then : 6530 printf %s "(cached) " >&6 6531else $as_nop 6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6533/* end confdefs.h. */ 6534int i; 6535int 6536main (void) 6537{ 6538 6539 ; 6540 return 0; 6541} 6542_ACEOF 6543if ac_fn_c_try_link "$LINENO" 6544then : 6545 eval $cacheid=yes 6546else $as_nop 6547 eval $cacheid=no 6548fi 6549rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6550 conftest$ac_exeext conftest.$ac_ext 6551fi 6552 6553 6554 CFLAGS="$xorg_testset_save_CFLAGS" 6555 6556 eval supported=\$$cacheid 6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6558printf "%s\n" "$supported" >&6; } 6559 if test "$supported" = "yes" ; then 6560 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6561 found="yes" 6562 fi 6563 fi 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579xorg_testset_save_CFLAGS="$CFLAGS" 6580 6581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6585if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6586then : 6587 printf %s "(cached) " >&6 6588else $as_nop 6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6590/* end confdefs.h. */ 6591int i; 6592_ACEOF 6593if ac_fn_c_try_compile "$LINENO" 6594then : 6595 xorg_cv_cc_flag_unknown_warning_option=yes 6596else $as_nop 6597 xorg_cv_cc_flag_unknown_warning_option=no 6598fi 6599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6600fi 6601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6604 CFLAGS="$xorg_testset_save_CFLAGS" 6605fi 6606 6607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6610 fi 6611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6614if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6615then : 6616 printf %s "(cached) " >&6 6617else $as_nop 6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6619/* end confdefs.h. */ 6620int i; 6621_ACEOF 6622if ac_fn_c_try_compile "$LINENO" 6623then : 6624 xorg_cv_cc_flag_unused_command_line_argument=yes 6625else $as_nop 6626 xorg_cv_cc_flag_unused_command_line_argument=no 6627fi 6628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6629fi 6630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6633 CFLAGS="$xorg_testset_save_CFLAGS" 6634fi 6635 6636found="no" 6637 6638 if test $found = "no" ; then 6639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6641 fi 6642 6643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6645 fi 6646 6647 CFLAGS="$CFLAGS -Wshadow" 6648 6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6650printf %s "checking if $CC supports -Wshadow... " >&6; } 6651 cacheid=xorg_cv_cc_flag__Wshadow 6652 if eval test \${$cacheid+y} 6653then : 6654 printf %s "(cached) " >&6 6655else $as_nop 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658int i; 6659int 6660main (void) 6661{ 6662 6663 ; 6664 return 0; 6665} 6666_ACEOF 6667if ac_fn_c_try_link "$LINENO" 6668then : 6669 eval $cacheid=yes 6670else $as_nop 6671 eval $cacheid=no 6672fi 6673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6674 conftest$ac_exeext conftest.$ac_ext 6675fi 6676 6677 6678 CFLAGS="$xorg_testset_save_CFLAGS" 6679 6680 eval supported=\$$cacheid 6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6682printf "%s\n" "$supported" >&6; } 6683 if test "$supported" = "yes" ; then 6684 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6685 found="yes" 6686 fi 6687 fi 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703xorg_testset_save_CFLAGS="$CFLAGS" 6704 6705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6709if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6710then : 6711 printf %s "(cached) " >&6 6712else $as_nop 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715int i; 6716_ACEOF 6717if ac_fn_c_try_compile "$LINENO" 6718then : 6719 xorg_cv_cc_flag_unknown_warning_option=yes 6720else $as_nop 6721 xorg_cv_cc_flag_unknown_warning_option=no 6722fi 6723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6724fi 6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6728 CFLAGS="$xorg_testset_save_CFLAGS" 6729fi 6730 6731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6734 fi 6735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6738if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6739then : 6740 printf %s "(cached) " >&6 6741else $as_nop 6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6743/* end confdefs.h. */ 6744int i; 6745_ACEOF 6746if ac_fn_c_try_compile "$LINENO" 6747then : 6748 xorg_cv_cc_flag_unused_command_line_argument=yes 6749else $as_nop 6750 xorg_cv_cc_flag_unused_command_line_argument=no 6751fi 6752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6753fi 6754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6757 CFLAGS="$xorg_testset_save_CFLAGS" 6758fi 6759 6760found="no" 6761 6762 if test $found = "no" ; then 6763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6765 fi 6766 6767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6769 fi 6770 6771 CFLAGS="$CFLAGS -Wmissing-noreturn" 6772 6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6774printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6775 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6776 if eval test \${$cacheid+y} 6777then : 6778 printf %s "(cached) " >&6 6779else $as_nop 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6781/* end confdefs.h. */ 6782int i; 6783int 6784main (void) 6785{ 6786 6787 ; 6788 return 0; 6789} 6790_ACEOF 6791if ac_fn_c_try_link "$LINENO" 6792then : 6793 eval $cacheid=yes 6794else $as_nop 6795 eval $cacheid=no 6796fi 6797rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6798 conftest$ac_exeext conftest.$ac_ext 6799fi 6800 6801 6802 CFLAGS="$xorg_testset_save_CFLAGS" 6803 6804 eval supported=\$$cacheid 6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6806printf "%s\n" "$supported" >&6; } 6807 if test "$supported" = "yes" ; then 6808 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6809 found="yes" 6810 fi 6811 fi 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827xorg_testset_save_CFLAGS="$CFLAGS" 6828 6829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6833if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6834then : 6835 printf %s "(cached) " >&6 6836else $as_nop 6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6838/* end confdefs.h. */ 6839int i; 6840_ACEOF 6841if ac_fn_c_try_compile "$LINENO" 6842then : 6843 xorg_cv_cc_flag_unknown_warning_option=yes 6844else $as_nop 6845 xorg_cv_cc_flag_unknown_warning_option=no 6846fi 6847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6848fi 6849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6852 CFLAGS="$xorg_testset_save_CFLAGS" 6853fi 6854 6855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858 fi 6859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6862if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6863then : 6864 printf %s "(cached) " >&6 6865else $as_nop 6866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6867/* end confdefs.h. */ 6868int i; 6869_ACEOF 6870if ac_fn_c_try_compile "$LINENO" 6871then : 6872 xorg_cv_cc_flag_unused_command_line_argument=yes 6873else $as_nop 6874 xorg_cv_cc_flag_unused_command_line_argument=no 6875fi 6876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6877fi 6878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6881 CFLAGS="$xorg_testset_save_CFLAGS" 6882fi 6883 6884found="no" 6885 6886 if test $found = "no" ; then 6887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6889 fi 6890 6891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6893 fi 6894 6895 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6896 6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6898printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6899 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6900 if eval test \${$cacheid+y} 6901then : 6902 printf %s "(cached) " >&6 6903else $as_nop 6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6905/* end confdefs.h. */ 6906int i; 6907int 6908main (void) 6909{ 6910 6911 ; 6912 return 0; 6913} 6914_ACEOF 6915if ac_fn_c_try_link "$LINENO" 6916then : 6917 eval $cacheid=yes 6918else $as_nop 6919 eval $cacheid=no 6920fi 6921rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6922 conftest$ac_exeext conftest.$ac_ext 6923fi 6924 6925 6926 CFLAGS="$xorg_testset_save_CFLAGS" 6927 6928 eval supported=\$$cacheid 6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6930printf "%s\n" "$supported" >&6; } 6931 if test "$supported" = "yes" ; then 6932 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6933 found="yes" 6934 fi 6935 fi 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951xorg_testset_save_CFLAGS="$CFLAGS" 6952 6953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6957if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6958then : 6959 printf %s "(cached) " >&6 6960else $as_nop 6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963int i; 6964_ACEOF 6965if ac_fn_c_try_compile "$LINENO" 6966then : 6967 xorg_cv_cc_flag_unknown_warning_option=yes 6968else $as_nop 6969 xorg_cv_cc_flag_unknown_warning_option=no 6970fi 6971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6972fi 6973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977fi 6978 6979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 fi 6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6986if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6987then : 6988 printf %s "(cached) " >&6 6989else $as_nop 6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6991/* end confdefs.h. */ 6992int i; 6993_ACEOF 6994if ac_fn_c_try_compile "$LINENO" 6995then : 6996 xorg_cv_cc_flag_unused_command_line_argument=yes 6997else $as_nop 6998 xorg_cv_cc_flag_unused_command_line_argument=no 6999fi 7000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7001fi 7002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7005 CFLAGS="$xorg_testset_save_CFLAGS" 7006fi 7007 7008found="no" 7009 7010 if test $found = "no" ; then 7011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7013 fi 7014 7015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7017 fi 7018 7019 CFLAGS="$CFLAGS -Wredundant-decls" 7020 7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7022printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7023 cacheid=xorg_cv_cc_flag__Wredundant_decls 7024 if eval test \${$cacheid+y} 7025then : 7026 printf %s "(cached) " >&6 7027else $as_nop 7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7029/* end confdefs.h. */ 7030int i; 7031int 7032main (void) 7033{ 7034 7035 ; 7036 return 0; 7037} 7038_ACEOF 7039if ac_fn_c_try_link "$LINENO" 7040then : 7041 eval $cacheid=yes 7042else $as_nop 7043 eval $cacheid=no 7044fi 7045rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7046 conftest$ac_exeext conftest.$ac_ext 7047fi 7048 7049 7050 CFLAGS="$xorg_testset_save_CFLAGS" 7051 7052 eval supported=\$$cacheid 7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7054printf "%s\n" "$supported" >&6; } 7055 if test "$supported" = "yes" ; then 7056 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7057 found="yes" 7058 fi 7059 fi 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075xorg_testset_save_CFLAGS="$CFLAGS" 7076 7077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7081if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7082then : 7083 printf %s "(cached) " >&6 7084else $as_nop 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087int i; 7088_ACEOF 7089if ac_fn_c_try_compile "$LINENO" 7090then : 7091 xorg_cv_cc_flag_unknown_warning_option=yes 7092else $as_nop 7093 xorg_cv_cc_flag_unknown_warning_option=no 7094fi 7095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7096fi 7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7100 CFLAGS="$xorg_testset_save_CFLAGS" 7101fi 7102 7103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7106 fi 7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7110if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7111then : 7112 printf %s "(cached) " >&6 7113else $as_nop 7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115/* end confdefs.h. */ 7116int i; 7117_ACEOF 7118if ac_fn_c_try_compile "$LINENO" 7119then : 7120 xorg_cv_cc_flag_unused_command_line_argument=yes 7121else $as_nop 7122 xorg_cv_cc_flag_unused_command_line_argument=no 7123fi 7124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7125fi 7126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7129 CFLAGS="$xorg_testset_save_CFLAGS" 7130fi 7131 7132found="no" 7133 7134 if test $found = "no" ; then 7135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7137 fi 7138 7139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7141 fi 7142 7143 CFLAGS="$CFLAGS -Wlogical-op" 7144 7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7146printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7147 cacheid=xorg_cv_cc_flag__Wlogical_op 7148 if eval test \${$cacheid+y} 7149then : 7150 printf %s "(cached) " >&6 7151else $as_nop 7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153/* end confdefs.h. */ 7154int i; 7155int 7156main (void) 7157{ 7158 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163if ac_fn_c_try_link "$LINENO" 7164then : 7165 eval $cacheid=yes 7166else $as_nop 7167 eval $cacheid=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7170 conftest$ac_exeext conftest.$ac_ext 7171fi 7172 7173 7174 CFLAGS="$xorg_testset_save_CFLAGS" 7175 7176 eval supported=\$$cacheid 7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7178printf "%s\n" "$supported" >&6; } 7179 if test "$supported" = "yes" ; then 7180 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7181 found="yes" 7182 fi 7183 fi 7184 7185 7186 7187# These are currently disabled because they are noisy. They will be enabled 7188# in the future once the codebase is sufficiently modernized to silence 7189# them. For now, I don't want them to drown out the other warnings. 7190# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7191# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7192# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7193 7194# Turn some warnings into errors, so we don't accidently get successful builds 7195# when there are problems that should be fixed. 7196 7197if test "x$SELECTIVE_WERROR" = "xyes" ; then 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211xorg_testset_save_CFLAGS="$CFLAGS" 7212 7213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7217if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7218then : 7219 printf %s "(cached) " >&6 7220else $as_nop 7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222/* end confdefs.h. */ 7223int i; 7224_ACEOF 7225if ac_fn_c_try_compile "$LINENO" 7226then : 7227 xorg_cv_cc_flag_unknown_warning_option=yes 7228else $as_nop 7229 xorg_cv_cc_flag_unknown_warning_option=no 7230fi 7231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7232fi 7233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237fi 7238 7239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 fi 7243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7246if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7247then : 7248 printf %s "(cached) " >&6 7249else $as_nop 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7251/* end confdefs.h. */ 7252int i; 7253_ACEOF 7254if ac_fn_c_try_compile "$LINENO" 7255then : 7256 xorg_cv_cc_flag_unused_command_line_argument=yes 7257else $as_nop 7258 xorg_cv_cc_flag_unused_command_line_argument=no 7259fi 7260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7261fi 7262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7265 CFLAGS="$xorg_testset_save_CFLAGS" 7266fi 7267 7268found="no" 7269 7270 if test $found = "no" ; then 7271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7273 fi 7274 7275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7277 fi 7278 7279 CFLAGS="$CFLAGS -Werror=implicit" 7280 7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7282printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7283 cacheid=xorg_cv_cc_flag__Werror_implicit 7284 if eval test \${$cacheid+y} 7285then : 7286 printf %s "(cached) " >&6 7287else $as_nop 7288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7289/* end confdefs.h. */ 7290int i; 7291int 7292main (void) 7293{ 7294 7295 ; 7296 return 0; 7297} 7298_ACEOF 7299if ac_fn_c_try_link "$LINENO" 7300then : 7301 eval $cacheid=yes 7302else $as_nop 7303 eval $cacheid=no 7304fi 7305rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7306 conftest$ac_exeext conftest.$ac_ext 7307fi 7308 7309 7310 CFLAGS="$xorg_testset_save_CFLAGS" 7311 7312 eval supported=\$$cacheid 7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7314printf "%s\n" "$supported" >&6; } 7315 if test "$supported" = "yes" ; then 7316 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7317 found="yes" 7318 fi 7319 fi 7320 7321 if test $found = "no" ; then 7322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7324 fi 7325 7326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7328 fi 7329 7330 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7331 7332 { 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 7333printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7334 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7335 if eval test \${$cacheid+y} 7336then : 7337 printf %s "(cached) " >&6 7338else $as_nop 7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7340/* end confdefs.h. */ 7341int i; 7342int 7343main (void) 7344{ 7345 7346 ; 7347 return 0; 7348} 7349_ACEOF 7350if ac_fn_c_try_link "$LINENO" 7351then : 7352 eval $cacheid=yes 7353else $as_nop 7354 eval $cacheid=no 7355fi 7356rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7357 conftest$ac_exeext conftest.$ac_ext 7358fi 7359 7360 7361 CFLAGS="$xorg_testset_save_CFLAGS" 7362 7363 eval supported=\$$cacheid 7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7365printf "%s\n" "$supported" >&6; } 7366 if test "$supported" = "yes" ; then 7367 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7368 found="yes" 7369 fi 7370 fi 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386xorg_testset_save_CFLAGS="$CFLAGS" 7387 7388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7391printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7392if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7393then : 7394 printf %s "(cached) " >&6 7395else $as_nop 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398int i; 7399_ACEOF 7400if ac_fn_c_try_compile "$LINENO" 7401then : 7402 xorg_cv_cc_flag_unknown_warning_option=yes 7403else $as_nop 7404 xorg_cv_cc_flag_unknown_warning_option=no 7405fi 7406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7407fi 7408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7409printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7411 CFLAGS="$xorg_testset_save_CFLAGS" 7412fi 7413 7414if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417 fi 7418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7420printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7421if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7422then : 7423 printf %s "(cached) " >&6 7424else $as_nop 7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7426/* end confdefs.h. */ 7427int i; 7428_ACEOF 7429if ac_fn_c_try_compile "$LINENO" 7430then : 7431 xorg_cv_cc_flag_unused_command_line_argument=yes 7432else $as_nop 7433 xorg_cv_cc_flag_unused_command_line_argument=no 7434fi 7435rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7436fi 7437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7438printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7440 CFLAGS="$xorg_testset_save_CFLAGS" 7441fi 7442 7443found="no" 7444 7445 if test $found = "no" ; then 7446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7448 fi 7449 7450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7452 fi 7453 7454 CFLAGS="$CFLAGS -Werror=nonnull" 7455 7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7457printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7458 cacheid=xorg_cv_cc_flag__Werror_nonnull 7459 if eval test \${$cacheid+y} 7460then : 7461 printf %s "(cached) " >&6 7462else $as_nop 7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7464/* end confdefs.h. */ 7465int i; 7466int 7467main (void) 7468{ 7469 7470 ; 7471 return 0; 7472} 7473_ACEOF 7474if ac_fn_c_try_link "$LINENO" 7475then : 7476 eval $cacheid=yes 7477else $as_nop 7478 eval $cacheid=no 7479fi 7480rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7481 conftest$ac_exeext conftest.$ac_ext 7482fi 7483 7484 7485 CFLAGS="$xorg_testset_save_CFLAGS" 7486 7487 eval supported=\$$cacheid 7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7489printf "%s\n" "$supported" >&6; } 7490 if test "$supported" = "yes" ; then 7491 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7492 found="yes" 7493 fi 7494 fi 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510xorg_testset_save_CFLAGS="$CFLAGS" 7511 7512if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7515printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7516if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7517then : 7518 printf %s "(cached) " >&6 7519else $as_nop 7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7521/* end confdefs.h. */ 7522int i; 7523_ACEOF 7524if ac_fn_c_try_compile "$LINENO" 7525then : 7526 xorg_cv_cc_flag_unknown_warning_option=yes 7527else $as_nop 7528 xorg_cv_cc_flag_unknown_warning_option=no 7529fi 7530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7531fi 7532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7533printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7535 CFLAGS="$xorg_testset_save_CFLAGS" 7536fi 7537 7538if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7544printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7545if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7546then : 7547 printf %s "(cached) " >&6 7548else $as_nop 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551int i; 7552_ACEOF 7553if ac_fn_c_try_compile "$LINENO" 7554then : 7555 xorg_cv_cc_flag_unused_command_line_argument=yes 7556else $as_nop 7557 xorg_cv_cc_flag_unused_command_line_argument=no 7558fi 7559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7560fi 7561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7562printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7564 CFLAGS="$xorg_testset_save_CFLAGS" 7565fi 7566 7567found="no" 7568 7569 if test $found = "no" ; then 7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7572 fi 7573 7574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7576 fi 7577 7578 CFLAGS="$CFLAGS -Werror=init-self" 7579 7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7581printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7582 cacheid=xorg_cv_cc_flag__Werror_init_self 7583 if eval test \${$cacheid+y} 7584then : 7585 printf %s "(cached) " >&6 7586else $as_nop 7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7588/* end confdefs.h. */ 7589int i; 7590int 7591main (void) 7592{ 7593 7594 ; 7595 return 0; 7596} 7597_ACEOF 7598if ac_fn_c_try_link "$LINENO" 7599then : 7600 eval $cacheid=yes 7601else $as_nop 7602 eval $cacheid=no 7603fi 7604rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7605 conftest$ac_exeext conftest.$ac_ext 7606fi 7607 7608 7609 CFLAGS="$xorg_testset_save_CFLAGS" 7610 7611 eval supported=\$$cacheid 7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7613printf "%s\n" "$supported" >&6; } 7614 if test "$supported" = "yes" ; then 7615 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7616 found="yes" 7617 fi 7618 fi 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634xorg_testset_save_CFLAGS="$CFLAGS" 7635 7636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7639printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7640if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7641then : 7642 printf %s "(cached) " >&6 7643else $as_nop 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646int i; 7647_ACEOF 7648if ac_fn_c_try_compile "$LINENO" 7649then : 7650 xorg_cv_cc_flag_unknown_warning_option=yes 7651else $as_nop 7652 xorg_cv_cc_flag_unknown_warning_option=no 7653fi 7654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7655fi 7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7657printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7659 CFLAGS="$xorg_testset_save_CFLAGS" 7660fi 7661 7662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7668printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7669if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7670then : 7671 printf %s "(cached) " >&6 7672else $as_nop 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675int i; 7676_ACEOF 7677if ac_fn_c_try_compile "$LINENO" 7678then : 7679 xorg_cv_cc_flag_unused_command_line_argument=yes 7680else $as_nop 7681 xorg_cv_cc_flag_unused_command_line_argument=no 7682fi 7683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7684fi 7685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7686printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7688 CFLAGS="$xorg_testset_save_CFLAGS" 7689fi 7690 7691found="no" 7692 7693 if test $found = "no" ; then 7694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7696 fi 7697 7698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7700 fi 7701 7702 CFLAGS="$CFLAGS -Werror=main" 7703 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7705printf %s "checking if $CC supports -Werror=main... " >&6; } 7706 cacheid=xorg_cv_cc_flag__Werror_main 7707 if eval test \${$cacheid+y} 7708then : 7709 printf %s "(cached) " >&6 7710else $as_nop 7711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7712/* end confdefs.h. */ 7713int i; 7714int 7715main (void) 7716{ 7717 7718 ; 7719 return 0; 7720} 7721_ACEOF 7722if ac_fn_c_try_link "$LINENO" 7723then : 7724 eval $cacheid=yes 7725else $as_nop 7726 eval $cacheid=no 7727fi 7728rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7729 conftest$ac_exeext conftest.$ac_ext 7730fi 7731 7732 7733 CFLAGS="$xorg_testset_save_CFLAGS" 7734 7735 eval supported=\$$cacheid 7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7737printf "%s\n" "$supported" >&6; } 7738 if test "$supported" = "yes" ; then 7739 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7740 found="yes" 7741 fi 7742 fi 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758xorg_testset_save_CFLAGS="$CFLAGS" 7759 7760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7763printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7764if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7765then : 7766 printf %s "(cached) " >&6 7767else $as_nop 7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7769/* end confdefs.h. */ 7770int i; 7771_ACEOF 7772if ac_fn_c_try_compile "$LINENO" 7773then : 7774 xorg_cv_cc_flag_unknown_warning_option=yes 7775else $as_nop 7776 xorg_cv_cc_flag_unknown_warning_option=no 7777fi 7778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7779fi 7780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7781printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7783 CFLAGS="$xorg_testset_save_CFLAGS" 7784fi 7785 7786if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7789 fi 7790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7792printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7793if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7794then : 7795 printf %s "(cached) " >&6 7796else $as_nop 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798/* end confdefs.h. */ 7799int i; 7800_ACEOF 7801if ac_fn_c_try_compile "$LINENO" 7802then : 7803 xorg_cv_cc_flag_unused_command_line_argument=yes 7804else $as_nop 7805 xorg_cv_cc_flag_unused_command_line_argument=no 7806fi 7807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7808fi 7809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7812 CFLAGS="$xorg_testset_save_CFLAGS" 7813fi 7814 7815found="no" 7816 7817 if test $found = "no" ; then 7818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7820 fi 7821 7822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7824 fi 7825 7826 CFLAGS="$CFLAGS -Werror=missing-braces" 7827 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7829printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7830 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7831 if eval test \${$cacheid+y} 7832then : 7833 printf %s "(cached) " >&6 7834else $as_nop 7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7836/* end confdefs.h. */ 7837int i; 7838int 7839main (void) 7840{ 7841 7842 ; 7843 return 0; 7844} 7845_ACEOF 7846if ac_fn_c_try_link "$LINENO" 7847then : 7848 eval $cacheid=yes 7849else $as_nop 7850 eval $cacheid=no 7851fi 7852rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7853 conftest$ac_exeext conftest.$ac_ext 7854fi 7855 7856 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858 7859 eval supported=\$$cacheid 7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7861printf "%s\n" "$supported" >&6; } 7862 if test "$supported" = "yes" ; then 7863 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7864 found="yes" 7865 fi 7866 fi 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882xorg_testset_save_CFLAGS="$CFLAGS" 7883 7884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7887printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7888if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7889then : 7890 printf %s "(cached) " >&6 7891else $as_nop 7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893/* end confdefs.h. */ 7894int i; 7895_ACEOF 7896if ac_fn_c_try_compile "$LINENO" 7897then : 7898 xorg_cv_cc_flag_unknown_warning_option=yes 7899else $as_nop 7900 xorg_cv_cc_flag_unknown_warning_option=no 7901fi 7902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7903fi 7904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7905printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7907 CFLAGS="$xorg_testset_save_CFLAGS" 7908fi 7909 7910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7913 fi 7914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7916printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7917if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7918then : 7919 printf %s "(cached) " >&6 7920else $as_nop 7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7922/* end confdefs.h. */ 7923int i; 7924_ACEOF 7925if ac_fn_c_try_compile "$LINENO" 7926then : 7927 xorg_cv_cc_flag_unused_command_line_argument=yes 7928else $as_nop 7929 xorg_cv_cc_flag_unused_command_line_argument=no 7930fi 7931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7932fi 7933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7934printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7937fi 7938 7939found="no" 7940 7941 if test $found = "no" ; then 7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7944 fi 7945 7946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7948 fi 7949 7950 CFLAGS="$CFLAGS -Werror=sequence-point" 7951 7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7953printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7954 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7955 if eval test \${$cacheid+y} 7956then : 7957 printf %s "(cached) " >&6 7958else $as_nop 7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960/* end confdefs.h. */ 7961int i; 7962int 7963main (void) 7964{ 7965 7966 ; 7967 return 0; 7968} 7969_ACEOF 7970if ac_fn_c_try_link "$LINENO" 7971then : 7972 eval $cacheid=yes 7973else $as_nop 7974 eval $cacheid=no 7975fi 7976rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7977 conftest$ac_exeext conftest.$ac_ext 7978fi 7979 7980 7981 CFLAGS="$xorg_testset_save_CFLAGS" 7982 7983 eval supported=\$$cacheid 7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7985printf "%s\n" "$supported" >&6; } 7986 if test "$supported" = "yes" ; then 7987 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7988 found="yes" 7989 fi 7990 fi 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006xorg_testset_save_CFLAGS="$CFLAGS" 8007 8008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8011printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8012if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8013then : 8014 printf %s "(cached) " >&6 8015else $as_nop 8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018int i; 8019_ACEOF 8020if ac_fn_c_try_compile "$LINENO" 8021then : 8022 xorg_cv_cc_flag_unknown_warning_option=yes 8023else $as_nop 8024 xorg_cv_cc_flag_unknown_warning_option=no 8025fi 8026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8027fi 8028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8031 CFLAGS="$xorg_testset_save_CFLAGS" 8032fi 8033 8034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8037 fi 8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8041if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8042then : 8043 printf %s "(cached) " >&6 8044else $as_nop 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8046/* end confdefs.h. */ 8047int i; 8048_ACEOF 8049if ac_fn_c_try_compile "$LINENO" 8050then : 8051 xorg_cv_cc_flag_unused_command_line_argument=yes 8052else $as_nop 8053 xorg_cv_cc_flag_unused_command_line_argument=no 8054fi 8055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8056fi 8057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8060 CFLAGS="$xorg_testset_save_CFLAGS" 8061fi 8062 8063found="no" 8064 8065 if test $found = "no" ; then 8066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8068 fi 8069 8070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8072 fi 8073 8074 CFLAGS="$CFLAGS -Werror=return-type" 8075 8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8077printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8078 cacheid=xorg_cv_cc_flag__Werror_return_type 8079 if eval test \${$cacheid+y} 8080then : 8081 printf %s "(cached) " >&6 8082else $as_nop 8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8084/* end confdefs.h. */ 8085int i; 8086int 8087main (void) 8088{ 8089 8090 ; 8091 return 0; 8092} 8093_ACEOF 8094if ac_fn_c_try_link "$LINENO" 8095then : 8096 eval $cacheid=yes 8097else $as_nop 8098 eval $cacheid=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8101 conftest$ac_exeext conftest.$ac_ext 8102fi 8103 8104 8105 CFLAGS="$xorg_testset_save_CFLAGS" 8106 8107 eval supported=\$$cacheid 8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8109printf "%s\n" "$supported" >&6; } 8110 if test "$supported" = "yes" ; then 8111 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8112 found="yes" 8113 fi 8114 fi 8115 8116 if test $found = "no" ; then 8117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 fi 8120 8121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8123 fi 8124 8125 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8126 8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8128printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8129 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8130 if eval test \${$cacheid+y} 8131then : 8132 printf %s "(cached) " >&6 8133else $as_nop 8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8135/* end confdefs.h. */ 8136int i; 8137int 8138main (void) 8139{ 8140 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145if ac_fn_c_try_link "$LINENO" 8146then : 8147 eval $cacheid=yes 8148else $as_nop 8149 eval $cacheid=no 8150fi 8151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8152 conftest$ac_exeext conftest.$ac_ext 8153fi 8154 8155 8156 CFLAGS="$xorg_testset_save_CFLAGS" 8157 8158 eval supported=\$$cacheid 8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8160printf "%s\n" "$supported" >&6; } 8161 if test "$supported" = "yes" ; then 8162 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8163 found="yes" 8164 fi 8165 fi 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181xorg_testset_save_CFLAGS="$CFLAGS" 8182 8183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8187if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8188then : 8189 printf %s "(cached) " >&6 8190else $as_nop 8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8192/* end confdefs.h. */ 8193int i; 8194_ACEOF 8195if ac_fn_c_try_compile "$LINENO" 8196then : 8197 xorg_cv_cc_flag_unknown_warning_option=yes 8198else $as_nop 8199 xorg_cv_cc_flag_unknown_warning_option=no 8200fi 8201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8202fi 8203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8206 CFLAGS="$xorg_testset_save_CFLAGS" 8207fi 8208 8209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8212 fi 8213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8216if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8217then : 8218 printf %s "(cached) " >&6 8219else $as_nop 8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8221/* end confdefs.h. */ 8222int i; 8223_ACEOF 8224if ac_fn_c_try_compile "$LINENO" 8225then : 8226 xorg_cv_cc_flag_unused_command_line_argument=yes 8227else $as_nop 8228 xorg_cv_cc_flag_unused_command_line_argument=no 8229fi 8230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8231fi 8232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8235 CFLAGS="$xorg_testset_save_CFLAGS" 8236fi 8237 8238found="no" 8239 8240 if test $found = "no" ; then 8241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8243 fi 8244 8245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8247 fi 8248 8249 CFLAGS="$CFLAGS -Werror=trigraphs" 8250 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8252printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8253 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8254 if eval test \${$cacheid+y} 8255then : 8256 printf %s "(cached) " >&6 8257else $as_nop 8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259/* end confdefs.h. */ 8260int i; 8261int 8262main (void) 8263{ 8264 8265 ; 8266 return 0; 8267} 8268_ACEOF 8269if ac_fn_c_try_link "$LINENO" 8270then : 8271 eval $cacheid=yes 8272else $as_nop 8273 eval $cacheid=no 8274fi 8275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8276 conftest$ac_exeext conftest.$ac_ext 8277fi 8278 8279 8280 CFLAGS="$xorg_testset_save_CFLAGS" 8281 8282 eval supported=\$$cacheid 8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8284printf "%s\n" "$supported" >&6; } 8285 if test "$supported" = "yes" ; then 8286 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8287 found="yes" 8288 fi 8289 fi 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305xorg_testset_save_CFLAGS="$CFLAGS" 8306 8307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8311if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8312then : 8313 printf %s "(cached) " >&6 8314else $as_nop 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8316/* end confdefs.h. */ 8317int i; 8318_ACEOF 8319if ac_fn_c_try_compile "$LINENO" 8320then : 8321 xorg_cv_cc_flag_unknown_warning_option=yes 8322else $as_nop 8323 xorg_cv_cc_flag_unknown_warning_option=no 8324fi 8325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8326fi 8327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8330 CFLAGS="$xorg_testset_save_CFLAGS" 8331fi 8332 8333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336 fi 8337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8340if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8341then : 8342 printf %s "(cached) " >&6 8343else $as_nop 8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8345/* end confdefs.h. */ 8346int i; 8347_ACEOF 8348if ac_fn_c_try_compile "$LINENO" 8349then : 8350 xorg_cv_cc_flag_unused_command_line_argument=yes 8351else $as_nop 8352 xorg_cv_cc_flag_unused_command_line_argument=no 8353fi 8354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8355fi 8356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8359 CFLAGS="$xorg_testset_save_CFLAGS" 8360fi 8361 8362found="no" 8363 8364 if test $found = "no" ; then 8365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8367 fi 8368 8369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8371 fi 8372 8373 CFLAGS="$CFLAGS -Werror=array-bounds" 8374 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8376printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8377 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8378 if eval test \${$cacheid+y} 8379then : 8380 printf %s "(cached) " >&6 8381else $as_nop 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384int i; 8385int 8386main (void) 8387{ 8388 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393if ac_fn_c_try_link "$LINENO" 8394then : 8395 eval $cacheid=yes 8396else $as_nop 8397 eval $cacheid=no 8398fi 8399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8400 conftest$ac_exeext conftest.$ac_ext 8401fi 8402 8403 8404 CFLAGS="$xorg_testset_save_CFLAGS" 8405 8406 eval supported=\$$cacheid 8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8408printf "%s\n" "$supported" >&6; } 8409 if test "$supported" = "yes" ; then 8410 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8411 found="yes" 8412 fi 8413 fi 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429xorg_testset_save_CFLAGS="$CFLAGS" 8430 8431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8435if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8436then : 8437 printf %s "(cached) " >&6 8438else $as_nop 8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8440/* end confdefs.h. */ 8441int i; 8442_ACEOF 8443if ac_fn_c_try_compile "$LINENO" 8444then : 8445 xorg_cv_cc_flag_unknown_warning_option=yes 8446else $as_nop 8447 xorg_cv_cc_flag_unknown_warning_option=no 8448fi 8449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8450fi 8451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8454 CFLAGS="$xorg_testset_save_CFLAGS" 8455fi 8456 8457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460 fi 8461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8464if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8465then : 8466 printf %s "(cached) " >&6 8467else $as_nop 8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8469/* end confdefs.h. */ 8470int i; 8471_ACEOF 8472if ac_fn_c_try_compile "$LINENO" 8473then : 8474 xorg_cv_cc_flag_unused_command_line_argument=yes 8475else $as_nop 8476 xorg_cv_cc_flag_unused_command_line_argument=no 8477fi 8478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8479fi 8480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8483 CFLAGS="$xorg_testset_save_CFLAGS" 8484fi 8485 8486found="no" 8487 8488 if test $found = "no" ; then 8489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8491 fi 8492 8493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8495 fi 8496 8497 CFLAGS="$CFLAGS -Werror=write-strings" 8498 8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8500printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8501 cacheid=xorg_cv_cc_flag__Werror_write_strings 8502 if eval test \${$cacheid+y} 8503then : 8504 printf %s "(cached) " >&6 8505else $as_nop 8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8507/* end confdefs.h. */ 8508int i; 8509int 8510main (void) 8511{ 8512 8513 ; 8514 return 0; 8515} 8516_ACEOF 8517if ac_fn_c_try_link "$LINENO" 8518then : 8519 eval $cacheid=yes 8520else $as_nop 8521 eval $cacheid=no 8522fi 8523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8524 conftest$ac_exeext conftest.$ac_ext 8525fi 8526 8527 8528 CFLAGS="$xorg_testset_save_CFLAGS" 8529 8530 eval supported=\$$cacheid 8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8532printf "%s\n" "$supported" >&6; } 8533 if test "$supported" = "yes" ; then 8534 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8535 found="yes" 8536 fi 8537 fi 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553xorg_testset_save_CFLAGS="$CFLAGS" 8554 8555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8559if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8560then : 8561 printf %s "(cached) " >&6 8562else $as_nop 8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8564/* end confdefs.h. */ 8565int i; 8566_ACEOF 8567if ac_fn_c_try_compile "$LINENO" 8568then : 8569 xorg_cv_cc_flag_unknown_warning_option=yes 8570else $as_nop 8571 xorg_cv_cc_flag_unknown_warning_option=no 8572fi 8573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8574fi 8575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8576printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8578 CFLAGS="$xorg_testset_save_CFLAGS" 8579fi 8580 8581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584 fi 8585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8587printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8588if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8589then : 8590 printf %s "(cached) " >&6 8591else $as_nop 8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8593/* end confdefs.h. */ 8594int i; 8595_ACEOF 8596if ac_fn_c_try_compile "$LINENO" 8597then : 8598 xorg_cv_cc_flag_unused_command_line_argument=yes 8599else $as_nop 8600 xorg_cv_cc_flag_unused_command_line_argument=no 8601fi 8602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8603fi 8604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8607 CFLAGS="$xorg_testset_save_CFLAGS" 8608fi 8609 8610found="no" 8611 8612 if test $found = "no" ; then 8613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8615 fi 8616 8617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8619 fi 8620 8621 CFLAGS="$CFLAGS -Werror=address" 8622 8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8624printf %s "checking if $CC supports -Werror=address... " >&6; } 8625 cacheid=xorg_cv_cc_flag__Werror_address 8626 if eval test \${$cacheid+y} 8627then : 8628 printf %s "(cached) " >&6 8629else $as_nop 8630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8631/* end confdefs.h. */ 8632int i; 8633int 8634main (void) 8635{ 8636 8637 ; 8638 return 0; 8639} 8640_ACEOF 8641if ac_fn_c_try_link "$LINENO" 8642then : 8643 eval $cacheid=yes 8644else $as_nop 8645 eval $cacheid=no 8646fi 8647rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8648 conftest$ac_exeext conftest.$ac_ext 8649fi 8650 8651 8652 CFLAGS="$xorg_testset_save_CFLAGS" 8653 8654 eval supported=\$$cacheid 8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8656printf "%s\n" "$supported" >&6; } 8657 if test "$supported" = "yes" ; then 8658 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8659 found="yes" 8660 fi 8661 fi 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677xorg_testset_save_CFLAGS="$CFLAGS" 8678 8679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8683if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8684then : 8685 printf %s "(cached) " >&6 8686else $as_nop 8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8688/* end confdefs.h. */ 8689int i; 8690_ACEOF 8691if ac_fn_c_try_compile "$LINENO" 8692then : 8693 xorg_cv_cc_flag_unknown_warning_option=yes 8694else $as_nop 8695 xorg_cv_cc_flag_unknown_warning_option=no 8696fi 8697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8698fi 8699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8702 CFLAGS="$xorg_testset_save_CFLAGS" 8703fi 8704 8705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8708 fi 8709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8712if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8713then : 8714 printf %s "(cached) " >&6 8715else $as_nop 8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8717/* end confdefs.h. */ 8718int i; 8719_ACEOF 8720if ac_fn_c_try_compile "$LINENO" 8721then : 8722 xorg_cv_cc_flag_unused_command_line_argument=yes 8723else $as_nop 8724 xorg_cv_cc_flag_unused_command_line_argument=no 8725fi 8726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8727fi 8728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8729printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8731 CFLAGS="$xorg_testset_save_CFLAGS" 8732fi 8733 8734found="no" 8735 8736 if test $found = "no" ; then 8737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8739 fi 8740 8741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8743 fi 8744 8745 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8746 8747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8748printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8749 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8750 if eval test \${$cacheid+y} 8751then : 8752 printf %s "(cached) " >&6 8753else $as_nop 8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8755/* end confdefs.h. */ 8756int i; 8757int 8758main (void) 8759{ 8760 8761 ; 8762 return 0; 8763} 8764_ACEOF 8765if ac_fn_c_try_link "$LINENO" 8766then : 8767 eval $cacheid=yes 8768else $as_nop 8769 eval $cacheid=no 8770fi 8771rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8772 conftest$ac_exeext conftest.$ac_ext 8773fi 8774 8775 8776 CFLAGS="$xorg_testset_save_CFLAGS" 8777 8778 eval supported=\$$cacheid 8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8780printf "%s\n" "$supported" >&6; } 8781 if test "$supported" = "yes" ; then 8782 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8783 found="yes" 8784 fi 8785 fi 8786 8787 if test $found = "no" ; then 8788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8790 fi 8791 8792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8794 fi 8795 8796 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8797 8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8799printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8800 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8801 if eval test \${$cacheid+y} 8802then : 8803 printf %s "(cached) " >&6 8804else $as_nop 8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8806/* end confdefs.h. */ 8807int i; 8808int 8809main (void) 8810{ 8811 8812 ; 8813 return 0; 8814} 8815_ACEOF 8816if ac_fn_c_try_link "$LINENO" 8817then : 8818 eval $cacheid=yes 8819else $as_nop 8820 eval $cacheid=no 8821fi 8822rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8823 conftest$ac_exeext conftest.$ac_ext 8824fi 8825 8826 8827 CFLAGS="$xorg_testset_save_CFLAGS" 8828 8829 eval supported=\$$cacheid 8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8831printf "%s\n" "$supported" >&6; } 8832 if test "$supported" = "yes" ; then 8833 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8834 found="yes" 8835 fi 8836 fi 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852xorg_testset_save_CFLAGS="$CFLAGS" 8853 8854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8857printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8858if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8859then : 8860 printf %s "(cached) " >&6 8861else $as_nop 8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8863/* end confdefs.h. */ 8864int i; 8865_ACEOF 8866if ac_fn_c_try_compile "$LINENO" 8867then : 8868 xorg_cv_cc_flag_unknown_warning_option=yes 8869else $as_nop 8870 xorg_cv_cc_flag_unknown_warning_option=no 8871fi 8872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8873fi 8874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8875printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8877 CFLAGS="$xorg_testset_save_CFLAGS" 8878fi 8879 8880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8883 fi 8884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8886printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8887if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8888then : 8889 printf %s "(cached) " >&6 8890else $as_nop 8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8892/* end confdefs.h. */ 8893int i; 8894_ACEOF 8895if ac_fn_c_try_compile "$LINENO" 8896then : 8897 xorg_cv_cc_flag_unused_command_line_argument=yes 8898else $as_nop 8899 xorg_cv_cc_flag_unused_command_line_argument=no 8900fi 8901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8902fi 8903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8904printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8906 CFLAGS="$xorg_testset_save_CFLAGS" 8907fi 8908 8909found="no" 8910 8911 if test $found = "no" ; then 8912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8914 fi 8915 8916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8918 fi 8919 8920 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8921 8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8923printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8924 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8925 if eval test \${$cacheid+y} 8926then : 8927 printf %s "(cached) " >&6 8928else $as_nop 8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8930/* end confdefs.h. */ 8931int i; 8932int 8933main (void) 8934{ 8935 8936 ; 8937 return 0; 8938} 8939_ACEOF 8940if ac_fn_c_try_link "$LINENO" 8941then : 8942 eval $cacheid=yes 8943else $as_nop 8944 eval $cacheid=no 8945fi 8946rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8947 conftest$ac_exeext conftest.$ac_ext 8948fi 8949 8950 8951 CFLAGS="$xorg_testset_save_CFLAGS" 8952 8953 eval supported=\$$cacheid 8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8955printf "%s\n" "$supported" >&6; } 8956 if test "$supported" = "yes" ; then 8957 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8958 found="yes" 8959 fi 8960 fi 8961 8962 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8963else 8964{ 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 8965printf "%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;} 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979xorg_testset_save_CFLAGS="$CFLAGS" 8980 8981if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8984printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8985if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8986then : 8987 printf %s "(cached) " >&6 8988else $as_nop 8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8990/* end confdefs.h. */ 8991int i; 8992_ACEOF 8993if ac_fn_c_try_compile "$LINENO" 8994then : 8995 xorg_cv_cc_flag_unknown_warning_option=yes 8996else $as_nop 8997 xorg_cv_cc_flag_unknown_warning_option=no 8998fi 8999rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9000fi 9001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9002printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9003 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9004 CFLAGS="$xorg_testset_save_CFLAGS" 9005fi 9006 9007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 fi 9011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9013printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9014if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9015then : 9016 printf %s "(cached) " >&6 9017else $as_nop 9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9019/* end confdefs.h. */ 9020int i; 9021_ACEOF 9022if ac_fn_c_try_compile "$LINENO" 9023then : 9024 xorg_cv_cc_flag_unused_command_line_argument=yes 9025else $as_nop 9026 xorg_cv_cc_flag_unused_command_line_argument=no 9027fi 9028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9029fi 9030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9031printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9033 CFLAGS="$xorg_testset_save_CFLAGS" 9034fi 9035 9036found="no" 9037 9038 if test $found = "no" ; then 9039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9041 fi 9042 9043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9045 fi 9046 9047 CFLAGS="$CFLAGS -Wimplicit" 9048 9049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9050printf %s "checking if $CC supports -Wimplicit... " >&6; } 9051 cacheid=xorg_cv_cc_flag__Wimplicit 9052 if eval test \${$cacheid+y} 9053then : 9054 printf %s "(cached) " >&6 9055else $as_nop 9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9057/* end confdefs.h. */ 9058int i; 9059int 9060main (void) 9061{ 9062 9063 ; 9064 return 0; 9065} 9066_ACEOF 9067if ac_fn_c_try_link "$LINENO" 9068then : 9069 eval $cacheid=yes 9070else $as_nop 9071 eval $cacheid=no 9072fi 9073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9074 conftest$ac_exeext conftest.$ac_ext 9075fi 9076 9077 9078 CFLAGS="$xorg_testset_save_CFLAGS" 9079 9080 eval supported=\$$cacheid 9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9082printf "%s\n" "$supported" >&6; } 9083 if test "$supported" = "yes" ; then 9084 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9085 found="yes" 9086 fi 9087 fi 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103xorg_testset_save_CFLAGS="$CFLAGS" 9104 9105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9109if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9110then : 9111 printf %s "(cached) " >&6 9112else $as_nop 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9114/* end confdefs.h. */ 9115int i; 9116_ACEOF 9117if ac_fn_c_try_compile "$LINENO" 9118then : 9119 xorg_cv_cc_flag_unknown_warning_option=yes 9120else $as_nop 9121 xorg_cv_cc_flag_unknown_warning_option=no 9122fi 9123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9124fi 9125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9126printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9128 CFLAGS="$xorg_testset_save_CFLAGS" 9129fi 9130 9131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9134 fi 9135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9137printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9138if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9139then : 9140 printf %s "(cached) " >&6 9141else $as_nop 9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9143/* end confdefs.h. */ 9144int i; 9145_ACEOF 9146if ac_fn_c_try_compile "$LINENO" 9147then : 9148 xorg_cv_cc_flag_unused_command_line_argument=yes 9149else $as_nop 9150 xorg_cv_cc_flag_unused_command_line_argument=no 9151fi 9152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9153fi 9154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9155printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9157 CFLAGS="$xorg_testset_save_CFLAGS" 9158fi 9159 9160found="no" 9161 9162 if test $found = "no" ; then 9163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9165 fi 9166 9167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9169 fi 9170 9171 CFLAGS="$CFLAGS -Wnonnull" 9172 9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9174printf %s "checking if $CC supports -Wnonnull... " >&6; } 9175 cacheid=xorg_cv_cc_flag__Wnonnull 9176 if eval test \${$cacheid+y} 9177then : 9178 printf %s "(cached) " >&6 9179else $as_nop 9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9181/* end confdefs.h. */ 9182int i; 9183int 9184main (void) 9185{ 9186 9187 ; 9188 return 0; 9189} 9190_ACEOF 9191if ac_fn_c_try_link "$LINENO" 9192then : 9193 eval $cacheid=yes 9194else $as_nop 9195 eval $cacheid=no 9196fi 9197rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9198 conftest$ac_exeext conftest.$ac_ext 9199fi 9200 9201 9202 CFLAGS="$xorg_testset_save_CFLAGS" 9203 9204 eval supported=\$$cacheid 9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9206printf "%s\n" "$supported" >&6; } 9207 if test "$supported" = "yes" ; then 9208 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9209 found="yes" 9210 fi 9211 fi 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227xorg_testset_save_CFLAGS="$CFLAGS" 9228 9229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9233if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9234then : 9235 printf %s "(cached) " >&6 9236else $as_nop 9237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9238/* end confdefs.h. */ 9239int i; 9240_ACEOF 9241if ac_fn_c_try_compile "$LINENO" 9242then : 9243 xorg_cv_cc_flag_unknown_warning_option=yes 9244else $as_nop 9245 xorg_cv_cc_flag_unknown_warning_option=no 9246fi 9247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9248fi 9249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9250printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9252 CFLAGS="$xorg_testset_save_CFLAGS" 9253fi 9254 9255if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9258 fi 9259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9261printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9262if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9263then : 9264 printf %s "(cached) " >&6 9265else $as_nop 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267/* end confdefs.h. */ 9268int i; 9269_ACEOF 9270if ac_fn_c_try_compile "$LINENO" 9271then : 9272 xorg_cv_cc_flag_unused_command_line_argument=yes 9273else $as_nop 9274 xorg_cv_cc_flag_unused_command_line_argument=no 9275fi 9276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9277fi 9278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9281 CFLAGS="$xorg_testset_save_CFLAGS" 9282fi 9283 9284found="no" 9285 9286 if test $found = "no" ; then 9287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9289 fi 9290 9291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9293 fi 9294 9295 CFLAGS="$CFLAGS -Winit-self" 9296 9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9298printf %s "checking if $CC supports -Winit-self... " >&6; } 9299 cacheid=xorg_cv_cc_flag__Winit_self 9300 if eval test \${$cacheid+y} 9301then : 9302 printf %s "(cached) " >&6 9303else $as_nop 9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9305/* end confdefs.h. */ 9306int i; 9307int 9308main (void) 9309{ 9310 9311 ; 9312 return 0; 9313} 9314_ACEOF 9315if ac_fn_c_try_link "$LINENO" 9316then : 9317 eval $cacheid=yes 9318else $as_nop 9319 eval $cacheid=no 9320fi 9321rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9322 conftest$ac_exeext conftest.$ac_ext 9323fi 9324 9325 9326 CFLAGS="$xorg_testset_save_CFLAGS" 9327 9328 eval supported=\$$cacheid 9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9330printf "%s\n" "$supported" >&6; } 9331 if test "$supported" = "yes" ; then 9332 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9333 found="yes" 9334 fi 9335 fi 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351xorg_testset_save_CFLAGS="$CFLAGS" 9352 9353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9356printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9357if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9358then : 9359 printf %s "(cached) " >&6 9360else $as_nop 9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9362/* end confdefs.h. */ 9363int i; 9364_ACEOF 9365if ac_fn_c_try_compile "$LINENO" 9366then : 9367 xorg_cv_cc_flag_unknown_warning_option=yes 9368else $as_nop 9369 xorg_cv_cc_flag_unknown_warning_option=no 9370fi 9371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9372fi 9373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9374printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9375 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9376 CFLAGS="$xorg_testset_save_CFLAGS" 9377fi 9378 9379if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9382 fi 9383 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9385printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9386if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9387then : 9388 printf %s "(cached) " >&6 9389else $as_nop 9390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9391/* end confdefs.h. */ 9392int i; 9393_ACEOF 9394if ac_fn_c_try_compile "$LINENO" 9395then : 9396 xorg_cv_cc_flag_unused_command_line_argument=yes 9397else $as_nop 9398 xorg_cv_cc_flag_unused_command_line_argument=no 9399fi 9400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9401fi 9402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9403printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9405 CFLAGS="$xorg_testset_save_CFLAGS" 9406fi 9407 9408found="no" 9409 9410 if test $found = "no" ; then 9411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9413 fi 9414 9415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9417 fi 9418 9419 CFLAGS="$CFLAGS -Wmain" 9420 9421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9422printf %s "checking if $CC supports -Wmain... " >&6; } 9423 cacheid=xorg_cv_cc_flag__Wmain 9424 if eval test \${$cacheid+y} 9425then : 9426 printf %s "(cached) " >&6 9427else $as_nop 9428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9429/* end confdefs.h. */ 9430int i; 9431int 9432main (void) 9433{ 9434 9435 ; 9436 return 0; 9437} 9438_ACEOF 9439if ac_fn_c_try_link "$LINENO" 9440then : 9441 eval $cacheid=yes 9442else $as_nop 9443 eval $cacheid=no 9444fi 9445rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9446 conftest$ac_exeext conftest.$ac_ext 9447fi 9448 9449 9450 CFLAGS="$xorg_testset_save_CFLAGS" 9451 9452 eval supported=\$$cacheid 9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9454printf "%s\n" "$supported" >&6; } 9455 if test "$supported" = "yes" ; then 9456 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9457 found="yes" 9458 fi 9459 fi 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475xorg_testset_save_CFLAGS="$CFLAGS" 9476 9477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9480printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9481if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9482then : 9483 printf %s "(cached) " >&6 9484else $as_nop 9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9486/* end confdefs.h. */ 9487int i; 9488_ACEOF 9489if ac_fn_c_try_compile "$LINENO" 9490then : 9491 xorg_cv_cc_flag_unknown_warning_option=yes 9492else $as_nop 9493 xorg_cv_cc_flag_unknown_warning_option=no 9494fi 9495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9496fi 9497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9498printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9500 CFLAGS="$xorg_testset_save_CFLAGS" 9501fi 9502 9503if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9506 fi 9507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9509printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9510if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9511then : 9512 printf %s "(cached) " >&6 9513else $as_nop 9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9515/* end confdefs.h. */ 9516int i; 9517_ACEOF 9518if ac_fn_c_try_compile "$LINENO" 9519then : 9520 xorg_cv_cc_flag_unused_command_line_argument=yes 9521else $as_nop 9522 xorg_cv_cc_flag_unused_command_line_argument=no 9523fi 9524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9525fi 9526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9527printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9529 CFLAGS="$xorg_testset_save_CFLAGS" 9530fi 9531 9532found="no" 9533 9534 if test $found = "no" ; then 9535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9537 fi 9538 9539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9541 fi 9542 9543 CFLAGS="$CFLAGS -Wmissing-braces" 9544 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9546printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9547 cacheid=xorg_cv_cc_flag__Wmissing_braces 9548 if eval test \${$cacheid+y} 9549then : 9550 printf %s "(cached) " >&6 9551else $as_nop 9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9553/* end confdefs.h. */ 9554int i; 9555int 9556main (void) 9557{ 9558 9559 ; 9560 return 0; 9561} 9562_ACEOF 9563if ac_fn_c_try_link "$LINENO" 9564then : 9565 eval $cacheid=yes 9566else $as_nop 9567 eval $cacheid=no 9568fi 9569rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9570 conftest$ac_exeext conftest.$ac_ext 9571fi 9572 9573 9574 CFLAGS="$xorg_testset_save_CFLAGS" 9575 9576 eval supported=\$$cacheid 9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9578printf "%s\n" "$supported" >&6; } 9579 if test "$supported" = "yes" ; then 9580 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9581 found="yes" 9582 fi 9583 fi 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599xorg_testset_save_CFLAGS="$CFLAGS" 9600 9601if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9604printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9605if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9606then : 9607 printf %s "(cached) " >&6 9608else $as_nop 9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9610/* end confdefs.h. */ 9611int i; 9612_ACEOF 9613if ac_fn_c_try_compile "$LINENO" 9614then : 9615 xorg_cv_cc_flag_unknown_warning_option=yes 9616else $as_nop 9617 xorg_cv_cc_flag_unknown_warning_option=no 9618fi 9619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9620fi 9621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9622printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9624 CFLAGS="$xorg_testset_save_CFLAGS" 9625fi 9626 9627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9630 fi 9631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9633printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9634if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9635then : 9636 printf %s "(cached) " >&6 9637else $as_nop 9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9639/* end confdefs.h. */ 9640int i; 9641_ACEOF 9642if ac_fn_c_try_compile "$LINENO" 9643then : 9644 xorg_cv_cc_flag_unused_command_line_argument=yes 9645else $as_nop 9646 xorg_cv_cc_flag_unused_command_line_argument=no 9647fi 9648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9649fi 9650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9651printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9652 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9653 CFLAGS="$xorg_testset_save_CFLAGS" 9654fi 9655 9656found="no" 9657 9658 if test $found = "no" ; then 9659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9661 fi 9662 9663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9665 fi 9666 9667 CFLAGS="$CFLAGS -Wsequence-point" 9668 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9670printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9671 cacheid=xorg_cv_cc_flag__Wsequence_point 9672 if eval test \${$cacheid+y} 9673then : 9674 printf %s "(cached) " >&6 9675else $as_nop 9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9677/* end confdefs.h. */ 9678int i; 9679int 9680main (void) 9681{ 9682 9683 ; 9684 return 0; 9685} 9686_ACEOF 9687if ac_fn_c_try_link "$LINENO" 9688then : 9689 eval $cacheid=yes 9690else $as_nop 9691 eval $cacheid=no 9692fi 9693rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9694 conftest$ac_exeext conftest.$ac_ext 9695fi 9696 9697 9698 CFLAGS="$xorg_testset_save_CFLAGS" 9699 9700 eval supported=\$$cacheid 9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9702printf "%s\n" "$supported" >&6; } 9703 if test "$supported" = "yes" ; then 9704 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9705 found="yes" 9706 fi 9707 fi 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723xorg_testset_save_CFLAGS="$CFLAGS" 9724 9725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9728printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9729if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9730then : 9731 printf %s "(cached) " >&6 9732else $as_nop 9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734/* end confdefs.h. */ 9735int i; 9736_ACEOF 9737if ac_fn_c_try_compile "$LINENO" 9738then : 9739 xorg_cv_cc_flag_unknown_warning_option=yes 9740else $as_nop 9741 xorg_cv_cc_flag_unknown_warning_option=no 9742fi 9743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9744fi 9745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9748 CFLAGS="$xorg_testset_save_CFLAGS" 9749fi 9750 9751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9754 fi 9755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9758if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9759then : 9760 printf %s "(cached) " >&6 9761else $as_nop 9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9763/* end confdefs.h. */ 9764int i; 9765_ACEOF 9766if ac_fn_c_try_compile "$LINENO" 9767then : 9768 xorg_cv_cc_flag_unused_command_line_argument=yes 9769else $as_nop 9770 xorg_cv_cc_flag_unused_command_line_argument=no 9771fi 9772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9773fi 9774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9775printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9777 CFLAGS="$xorg_testset_save_CFLAGS" 9778fi 9779 9780found="no" 9781 9782 if test $found = "no" ; then 9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9785 fi 9786 9787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9789 fi 9790 9791 CFLAGS="$CFLAGS -Wreturn-type" 9792 9793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9794printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9795 cacheid=xorg_cv_cc_flag__Wreturn_type 9796 if eval test \${$cacheid+y} 9797then : 9798 printf %s "(cached) " >&6 9799else $as_nop 9800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9801/* end confdefs.h. */ 9802int i; 9803int 9804main (void) 9805{ 9806 9807 ; 9808 return 0; 9809} 9810_ACEOF 9811if ac_fn_c_try_link "$LINENO" 9812then : 9813 eval $cacheid=yes 9814else $as_nop 9815 eval $cacheid=no 9816fi 9817rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9818 conftest$ac_exeext conftest.$ac_ext 9819fi 9820 9821 9822 CFLAGS="$xorg_testset_save_CFLAGS" 9823 9824 eval supported=\$$cacheid 9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9826printf "%s\n" "$supported" >&6; } 9827 if test "$supported" = "yes" ; then 9828 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9829 found="yes" 9830 fi 9831 fi 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847xorg_testset_save_CFLAGS="$CFLAGS" 9848 9849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9853if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9854then : 9855 printf %s "(cached) " >&6 9856else $as_nop 9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9858/* end confdefs.h. */ 9859int i; 9860_ACEOF 9861if ac_fn_c_try_compile "$LINENO" 9862then : 9863 xorg_cv_cc_flag_unknown_warning_option=yes 9864else $as_nop 9865 xorg_cv_cc_flag_unknown_warning_option=no 9866fi 9867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9868fi 9869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9872 CFLAGS="$xorg_testset_save_CFLAGS" 9873fi 9874 9875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 fi 9879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9882if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9883then : 9884 printf %s "(cached) " >&6 9885else $as_nop 9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9887/* end confdefs.h. */ 9888int i; 9889_ACEOF 9890if ac_fn_c_try_compile "$LINENO" 9891then : 9892 xorg_cv_cc_flag_unused_command_line_argument=yes 9893else $as_nop 9894 xorg_cv_cc_flag_unused_command_line_argument=no 9895fi 9896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9897fi 9898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9901 CFLAGS="$xorg_testset_save_CFLAGS" 9902fi 9903 9904found="no" 9905 9906 if test $found = "no" ; then 9907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9909 fi 9910 9911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9913 fi 9914 9915 CFLAGS="$CFLAGS -Wtrigraphs" 9916 9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9918printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9919 cacheid=xorg_cv_cc_flag__Wtrigraphs 9920 if eval test \${$cacheid+y} 9921then : 9922 printf %s "(cached) " >&6 9923else $as_nop 9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9925/* end confdefs.h. */ 9926int i; 9927int 9928main (void) 9929{ 9930 9931 ; 9932 return 0; 9933} 9934_ACEOF 9935if ac_fn_c_try_link "$LINENO" 9936then : 9937 eval $cacheid=yes 9938else $as_nop 9939 eval $cacheid=no 9940fi 9941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9942 conftest$ac_exeext conftest.$ac_ext 9943fi 9944 9945 9946 CFLAGS="$xorg_testset_save_CFLAGS" 9947 9948 eval supported=\$$cacheid 9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9950printf "%s\n" "$supported" >&6; } 9951 if test "$supported" = "yes" ; then 9952 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9953 found="yes" 9954 fi 9955 fi 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971xorg_testset_save_CFLAGS="$CFLAGS" 9972 9973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9976printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9977if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9978then : 9979 printf %s "(cached) " >&6 9980else $as_nop 9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9982/* end confdefs.h. */ 9983int i; 9984_ACEOF 9985if ac_fn_c_try_compile "$LINENO" 9986then : 9987 xorg_cv_cc_flag_unknown_warning_option=yes 9988else $as_nop 9989 xorg_cv_cc_flag_unknown_warning_option=no 9990fi 9991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9992fi 9993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9996 CFLAGS="$xorg_testset_save_CFLAGS" 9997fi 9998 9999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002 fi 10003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10006if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10007then : 10008 printf %s "(cached) " >&6 10009else $as_nop 10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011/* end confdefs.h. */ 10012int i; 10013_ACEOF 10014if ac_fn_c_try_compile "$LINENO" 10015then : 10016 xorg_cv_cc_flag_unused_command_line_argument=yes 10017else $as_nop 10018 xorg_cv_cc_flag_unused_command_line_argument=no 10019fi 10020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10021fi 10022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10023printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10025 CFLAGS="$xorg_testset_save_CFLAGS" 10026fi 10027 10028found="no" 10029 10030 if test $found = "no" ; then 10031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10033 fi 10034 10035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10037 fi 10038 10039 CFLAGS="$CFLAGS -Warray-bounds" 10040 10041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10042printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10043 cacheid=xorg_cv_cc_flag__Warray_bounds 10044 if eval test \${$cacheid+y} 10045then : 10046 printf %s "(cached) " >&6 10047else $as_nop 10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10049/* end confdefs.h. */ 10050int i; 10051int 10052main (void) 10053{ 10054 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059if ac_fn_c_try_link "$LINENO" 10060then : 10061 eval $cacheid=yes 10062else $as_nop 10063 eval $cacheid=no 10064fi 10065rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10066 conftest$ac_exeext conftest.$ac_ext 10067fi 10068 10069 10070 CFLAGS="$xorg_testset_save_CFLAGS" 10071 10072 eval supported=\$$cacheid 10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10074printf "%s\n" "$supported" >&6; } 10075 if test "$supported" = "yes" ; then 10076 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10077 found="yes" 10078 fi 10079 fi 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095xorg_testset_save_CFLAGS="$CFLAGS" 10096 10097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10100printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10101if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10102then : 10103 printf %s "(cached) " >&6 10104else $as_nop 10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10106/* end confdefs.h. */ 10107int i; 10108_ACEOF 10109if ac_fn_c_try_compile "$LINENO" 10110then : 10111 xorg_cv_cc_flag_unknown_warning_option=yes 10112else $as_nop 10113 xorg_cv_cc_flag_unknown_warning_option=no 10114fi 10115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10116fi 10117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10118printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10120 CFLAGS="$xorg_testset_save_CFLAGS" 10121fi 10122 10123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10126 fi 10127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10129printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10130if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10131then : 10132 printf %s "(cached) " >&6 10133else $as_nop 10134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10135/* end confdefs.h. */ 10136int i; 10137_ACEOF 10138if ac_fn_c_try_compile "$LINENO" 10139then : 10140 xorg_cv_cc_flag_unused_command_line_argument=yes 10141else $as_nop 10142 xorg_cv_cc_flag_unused_command_line_argument=no 10143fi 10144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10145fi 10146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10147printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10149 CFLAGS="$xorg_testset_save_CFLAGS" 10150fi 10151 10152found="no" 10153 10154 if test $found = "no" ; then 10155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10157 fi 10158 10159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10161 fi 10162 10163 CFLAGS="$CFLAGS -Wwrite-strings" 10164 10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10166printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10167 cacheid=xorg_cv_cc_flag__Wwrite_strings 10168 if eval test \${$cacheid+y} 10169then : 10170 printf %s "(cached) " >&6 10171else $as_nop 10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10173/* end confdefs.h. */ 10174int i; 10175int 10176main (void) 10177{ 10178 10179 ; 10180 return 0; 10181} 10182_ACEOF 10183if ac_fn_c_try_link "$LINENO" 10184then : 10185 eval $cacheid=yes 10186else $as_nop 10187 eval $cacheid=no 10188fi 10189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10190 conftest$ac_exeext conftest.$ac_ext 10191fi 10192 10193 10194 CFLAGS="$xorg_testset_save_CFLAGS" 10195 10196 eval supported=\$$cacheid 10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10198printf "%s\n" "$supported" >&6; } 10199 if test "$supported" = "yes" ; then 10200 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10201 found="yes" 10202 fi 10203 fi 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219xorg_testset_save_CFLAGS="$CFLAGS" 10220 10221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10225if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10226then : 10227 printf %s "(cached) " >&6 10228else $as_nop 10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10230/* end confdefs.h. */ 10231int i; 10232_ACEOF 10233if ac_fn_c_try_compile "$LINENO" 10234then : 10235 xorg_cv_cc_flag_unknown_warning_option=yes 10236else $as_nop 10237 xorg_cv_cc_flag_unknown_warning_option=no 10238fi 10239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10240fi 10241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10244 CFLAGS="$xorg_testset_save_CFLAGS" 10245fi 10246 10247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 fi 10251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10254if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10255then : 10256 printf %s "(cached) " >&6 10257else $as_nop 10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10259/* end confdefs.h. */ 10260int i; 10261_ACEOF 10262if ac_fn_c_try_compile "$LINENO" 10263then : 10264 xorg_cv_cc_flag_unused_command_line_argument=yes 10265else $as_nop 10266 xorg_cv_cc_flag_unused_command_line_argument=no 10267fi 10268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10269fi 10270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10271printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10273 CFLAGS="$xorg_testset_save_CFLAGS" 10274fi 10275 10276found="no" 10277 10278 if test $found = "no" ; then 10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10281 fi 10282 10283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10285 fi 10286 10287 CFLAGS="$CFLAGS -Waddress" 10288 10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10290printf %s "checking if $CC supports -Waddress... " >&6; } 10291 cacheid=xorg_cv_cc_flag__Waddress 10292 if eval test \${$cacheid+y} 10293then : 10294 printf %s "(cached) " >&6 10295else $as_nop 10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10297/* end confdefs.h. */ 10298int i; 10299int 10300main (void) 10301{ 10302 10303 ; 10304 return 0; 10305} 10306_ACEOF 10307if ac_fn_c_try_link "$LINENO" 10308then : 10309 eval $cacheid=yes 10310else $as_nop 10311 eval $cacheid=no 10312fi 10313rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10314 conftest$ac_exeext conftest.$ac_ext 10315fi 10316 10317 10318 CFLAGS="$xorg_testset_save_CFLAGS" 10319 10320 eval supported=\$$cacheid 10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10322printf "%s\n" "$supported" >&6; } 10323 if test "$supported" = "yes" ; then 10324 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10325 found="yes" 10326 fi 10327 fi 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343xorg_testset_save_CFLAGS="$CFLAGS" 10344 10345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10348printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10349if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10350then : 10351 printf %s "(cached) " >&6 10352else $as_nop 10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10354/* end confdefs.h. */ 10355int i; 10356_ACEOF 10357if ac_fn_c_try_compile "$LINENO" 10358then : 10359 xorg_cv_cc_flag_unknown_warning_option=yes 10360else $as_nop 10361 xorg_cv_cc_flag_unknown_warning_option=no 10362fi 10363rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10364fi 10365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10366printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10368 CFLAGS="$xorg_testset_save_CFLAGS" 10369fi 10370 10371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 fi 10375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10377printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10378if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10379then : 10380 printf %s "(cached) " >&6 10381else $as_nop 10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10383/* end confdefs.h. */ 10384int i; 10385_ACEOF 10386if ac_fn_c_try_compile "$LINENO" 10387then : 10388 xorg_cv_cc_flag_unused_command_line_argument=yes 10389else $as_nop 10390 xorg_cv_cc_flag_unused_command_line_argument=no 10391fi 10392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10393fi 10394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10395printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10397 CFLAGS="$xorg_testset_save_CFLAGS" 10398fi 10399 10400found="no" 10401 10402 if test $found = "no" ; then 10403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10405 fi 10406 10407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10409 fi 10410 10411 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10412 10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10414printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10415 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10416 if eval test \${$cacheid+y} 10417then : 10418 printf %s "(cached) " >&6 10419else $as_nop 10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10421/* end confdefs.h. */ 10422int i; 10423int 10424main (void) 10425{ 10426 10427 ; 10428 return 0; 10429} 10430_ACEOF 10431if ac_fn_c_try_link "$LINENO" 10432then : 10433 eval $cacheid=yes 10434else $as_nop 10435 eval $cacheid=no 10436fi 10437rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10438 conftest$ac_exeext conftest.$ac_ext 10439fi 10440 10441 10442 CFLAGS="$xorg_testset_save_CFLAGS" 10443 10444 eval supported=\$$cacheid 10445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10446printf "%s\n" "$supported" >&6; } 10447 if test "$supported" = "yes" ; then 10448 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10449 found="yes" 10450 fi 10451 fi 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467xorg_testset_save_CFLAGS="$CFLAGS" 10468 10469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10473if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10474then : 10475 printf %s "(cached) " >&6 10476else $as_nop 10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10478/* end confdefs.h. */ 10479int i; 10480_ACEOF 10481if ac_fn_c_try_compile "$LINENO" 10482then : 10483 xorg_cv_cc_flag_unknown_warning_option=yes 10484else $as_nop 10485 xorg_cv_cc_flag_unknown_warning_option=no 10486fi 10487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10488fi 10489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10490printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10491 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10492 CFLAGS="$xorg_testset_save_CFLAGS" 10493fi 10494 10495if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10498 fi 10499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10501printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10502if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10503then : 10504 printf %s "(cached) " >&6 10505else $as_nop 10506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10507/* end confdefs.h. */ 10508int i; 10509_ACEOF 10510if ac_fn_c_try_compile "$LINENO" 10511then : 10512 xorg_cv_cc_flag_unused_command_line_argument=yes 10513else $as_nop 10514 xorg_cv_cc_flag_unused_command_line_argument=no 10515fi 10516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10517fi 10518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10519printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10520 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10521 CFLAGS="$xorg_testset_save_CFLAGS" 10522fi 10523 10524found="no" 10525 10526 if test $found = "no" ; then 10527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10529 fi 10530 10531 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10533 fi 10534 10535 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10536 10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10538printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10539 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10540 if eval test \${$cacheid+y} 10541then : 10542 printf %s "(cached) " >&6 10543else $as_nop 10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10545/* end confdefs.h. */ 10546int i; 10547int 10548main (void) 10549{ 10550 10551 ; 10552 return 0; 10553} 10554_ACEOF 10555if ac_fn_c_try_link "$LINENO" 10556then : 10557 eval $cacheid=yes 10558else $as_nop 10559 eval $cacheid=no 10560fi 10561rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10562 conftest$ac_exeext conftest.$ac_ext 10563fi 10564 10565 10566 CFLAGS="$xorg_testset_save_CFLAGS" 10567 10568 eval supported=\$$cacheid 10569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10570printf "%s\n" "$supported" >&6; } 10571 if test "$supported" = "yes" ; then 10572 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10573 found="yes" 10574 fi 10575 fi 10576 10577 10578fi 10579 10580 10581 10582 10583 10584 10585 10586 CWARNFLAGS="$BASE_CFLAGS" 10587 if test "x$GCC" = xyes ; then 10588 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10589 fi 10590 10591 10592 10593 10594 10595 10596 10597 10598# Check whether --enable-strict-compilation was given. 10599if test ${enable_strict_compilation+y} 10600then : 10601 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10602else $as_nop 10603 STRICT_COMPILE=no 10604fi 10605 10606 10607 10608 10609 10610 10611STRICT_CFLAGS="" 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625xorg_testset_save_CFLAGS="$CFLAGS" 10626 10627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10632then : 10633 printf %s "(cached) " >&6 10634else $as_nop 10635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10636/* end confdefs.h. */ 10637int i; 10638_ACEOF 10639if ac_fn_c_try_compile "$LINENO" 10640then : 10641 xorg_cv_cc_flag_unknown_warning_option=yes 10642else $as_nop 10643 xorg_cv_cc_flag_unknown_warning_option=no 10644fi 10645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10646fi 10647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10650 CFLAGS="$xorg_testset_save_CFLAGS" 10651fi 10652 10653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656 fi 10657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10661then : 10662 printf %s "(cached) " >&6 10663else $as_nop 10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10665/* end confdefs.h. */ 10666int i; 10667_ACEOF 10668if ac_fn_c_try_compile "$LINENO" 10669then : 10670 xorg_cv_cc_flag_unused_command_line_argument=yes 10671else $as_nop 10672 xorg_cv_cc_flag_unused_command_line_argument=no 10673fi 10674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10675fi 10676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10679 CFLAGS="$xorg_testset_save_CFLAGS" 10680fi 10681 10682found="no" 10683 10684 if test $found = "no" ; then 10685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10687 fi 10688 10689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10691 fi 10692 10693 CFLAGS="$CFLAGS -pedantic" 10694 10695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10696printf %s "checking if $CC supports -pedantic... " >&6; } 10697 cacheid=xorg_cv_cc_flag__pedantic 10698 if eval test \${$cacheid+y} 10699then : 10700 printf %s "(cached) " >&6 10701else $as_nop 10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10703/* end confdefs.h. */ 10704int i; 10705int 10706main (void) 10707{ 10708 10709 ; 10710 return 0; 10711} 10712_ACEOF 10713if ac_fn_c_try_link "$LINENO" 10714then : 10715 eval $cacheid=yes 10716else $as_nop 10717 eval $cacheid=no 10718fi 10719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10720 conftest$ac_exeext conftest.$ac_ext 10721fi 10722 10723 10724 CFLAGS="$xorg_testset_save_CFLAGS" 10725 10726 eval supported=\$$cacheid 10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10728printf "%s\n" "$supported" >&6; } 10729 if test "$supported" = "yes" ; then 10730 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10731 found="yes" 10732 fi 10733 fi 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749xorg_testset_save_CFLAGS="$CFLAGS" 10750 10751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10756then : 10757 printf %s "(cached) " >&6 10758else $as_nop 10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10760/* end confdefs.h. */ 10761int i; 10762_ACEOF 10763if ac_fn_c_try_compile "$LINENO" 10764then : 10765 xorg_cv_cc_flag_unknown_warning_option=yes 10766else $as_nop 10767 xorg_cv_cc_flag_unknown_warning_option=no 10768fi 10769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10770fi 10771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10774 CFLAGS="$xorg_testset_save_CFLAGS" 10775fi 10776 10777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10780 fi 10781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10784if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10785then : 10786 printf %s "(cached) " >&6 10787else $as_nop 10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10789/* end confdefs.h. */ 10790int i; 10791_ACEOF 10792if ac_fn_c_try_compile "$LINENO" 10793then : 10794 xorg_cv_cc_flag_unused_command_line_argument=yes 10795else $as_nop 10796 xorg_cv_cc_flag_unused_command_line_argument=no 10797fi 10798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10799fi 10800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10803 CFLAGS="$xorg_testset_save_CFLAGS" 10804fi 10805 10806found="no" 10807 10808 if test $found = "no" ; then 10809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10811 fi 10812 10813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10815 fi 10816 10817 CFLAGS="$CFLAGS -Werror" 10818 10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10820printf %s "checking if $CC supports -Werror... " >&6; } 10821 cacheid=xorg_cv_cc_flag__Werror 10822 if eval test \${$cacheid+y} 10823then : 10824 printf %s "(cached) " >&6 10825else $as_nop 10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10827/* end confdefs.h. */ 10828int i; 10829int 10830main (void) 10831{ 10832 10833 ; 10834 return 0; 10835} 10836_ACEOF 10837if ac_fn_c_try_link "$LINENO" 10838then : 10839 eval $cacheid=yes 10840else $as_nop 10841 eval $cacheid=no 10842fi 10843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10844 conftest$ac_exeext conftest.$ac_ext 10845fi 10846 10847 10848 CFLAGS="$xorg_testset_save_CFLAGS" 10849 10850 eval supported=\$$cacheid 10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10852printf "%s\n" "$supported" >&6; } 10853 if test "$supported" = "yes" ; then 10854 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10855 found="yes" 10856 fi 10857 fi 10858 10859 if test $found = "no" ; then 10860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10862 fi 10863 10864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10866 fi 10867 10868 CFLAGS="$CFLAGS -errwarn" 10869 10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10871printf %s "checking if $CC supports -errwarn... " >&6; } 10872 cacheid=xorg_cv_cc_flag__errwarn 10873 if eval test \${$cacheid+y} 10874then : 10875 printf %s "(cached) " >&6 10876else $as_nop 10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10878/* end confdefs.h. */ 10879int i; 10880int 10881main (void) 10882{ 10883 10884 ; 10885 return 0; 10886} 10887_ACEOF 10888if ac_fn_c_try_link "$LINENO" 10889then : 10890 eval $cacheid=yes 10891else $as_nop 10892 eval $cacheid=no 10893fi 10894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10895 conftest$ac_exeext conftest.$ac_ext 10896fi 10897 10898 10899 CFLAGS="$xorg_testset_save_CFLAGS" 10900 10901 eval supported=\$$cacheid 10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10903printf "%s\n" "$supported" >&6; } 10904 if test "$supported" = "yes" ; then 10905 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10906 found="yes" 10907 fi 10908 fi 10909 10910 10911 10912# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10913# activate it with -Werror, so we add it here explicitly. 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927xorg_testset_save_CFLAGS="$CFLAGS" 10928 10929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10932printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10933if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10934then : 10935 printf %s "(cached) " >&6 10936else $as_nop 10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10938/* end confdefs.h. */ 10939int i; 10940_ACEOF 10941if ac_fn_c_try_compile "$LINENO" 10942then : 10943 xorg_cv_cc_flag_unknown_warning_option=yes 10944else $as_nop 10945 xorg_cv_cc_flag_unknown_warning_option=no 10946fi 10947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10948fi 10949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10950printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10951 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10952 CFLAGS="$xorg_testset_save_CFLAGS" 10953fi 10954 10955if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10958 fi 10959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10961printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10962if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10963then : 10964 printf %s "(cached) " >&6 10965else $as_nop 10966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10967/* end confdefs.h. */ 10968int i; 10969_ACEOF 10970if ac_fn_c_try_compile "$LINENO" 10971then : 10972 xorg_cv_cc_flag_unused_command_line_argument=yes 10973else $as_nop 10974 xorg_cv_cc_flag_unused_command_line_argument=no 10975fi 10976rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10977fi 10978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10979printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10981 CFLAGS="$xorg_testset_save_CFLAGS" 10982fi 10983 10984found="no" 10985 10986 if test $found = "no" ; then 10987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10989 fi 10990 10991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10993 fi 10994 10995 CFLAGS="$CFLAGS -Werror=attributes" 10996 10997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10998printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10999 cacheid=xorg_cv_cc_flag__Werror_attributes 11000 if eval test \${$cacheid+y} 11001then : 11002 printf %s "(cached) " >&6 11003else $as_nop 11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11005/* end confdefs.h. */ 11006int i; 11007int 11008main (void) 11009{ 11010 11011 ; 11012 return 0; 11013} 11014_ACEOF 11015if ac_fn_c_try_link "$LINENO" 11016then : 11017 eval $cacheid=yes 11018else $as_nop 11019 eval $cacheid=no 11020fi 11021rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11022 conftest$ac_exeext conftest.$ac_ext 11023fi 11024 11025 11026 CFLAGS="$xorg_testset_save_CFLAGS" 11027 11028 eval supported=\$$cacheid 11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11030printf "%s\n" "$supported" >&6; } 11031 if test "$supported" = "yes" ; then 11032 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11033 found="yes" 11034 fi 11035 fi 11036 11037 11038 11039if test "x$STRICT_COMPILE" = "xyes"; then 11040 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11041 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11042fi 11043 11044 11045 11046 11047 11048 11049cat >>confdefs.h <<_ACEOF 11050#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11051_ACEOF 11052 11053 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11054 if test "x$PVM" = "x"; then 11055 PVM="0" 11056 fi 11057 11058printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11059 11060 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11061 if test "x$PVP" = "x"; then 11062 PVP="0" 11063 fi 11064 11065printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11066 11067 11068 11069CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11070mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11071|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11072touch \$(top_srcdir)/ChangeLog; \ 11073echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11074 11075 11076 11077 11078macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11079INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11080mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11081|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11082touch \$(top_srcdir)/INSTALL; \ 11083echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11084 11085 11086 11087 11088 11089 11090case $host_os in 11091 solaris*) 11092 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11093 # check for a man page file found in later versions that use 11094 # traditional section numbers instead 11095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11096printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11097if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11098then : 11099 printf %s "(cached) " >&6 11100else $as_nop 11101 test "$cross_compiling" = yes && 11102 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11103if test -r "/usr/share/man/man7/attributes.7"; then 11104 ac_cv_file__usr_share_man_man7_attributes_7=yes 11105else 11106 ac_cv_file__usr_share_man_man7_attributes_7=no 11107fi 11108fi 11109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11110printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11111if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11112then : 11113 SYSV_MAN_SECTIONS=false 11114else $as_nop 11115 SYSV_MAN_SECTIONS=true 11116fi 11117 11118 ;; 11119 *) SYSV_MAN_SECTIONS=false ;; 11120esac 11121 11122if test x$APP_MAN_SUFFIX = x ; then 11123 APP_MAN_SUFFIX=1 11124fi 11125if test x$APP_MAN_DIR = x ; then 11126 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11127fi 11128 11129if test x$LIB_MAN_SUFFIX = x ; then 11130 LIB_MAN_SUFFIX=3 11131fi 11132if test x$LIB_MAN_DIR = x ; then 11133 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11134fi 11135 11136if test x$FILE_MAN_SUFFIX = x ; then 11137 case $SYSV_MAN_SECTIONS in 11138 true) FILE_MAN_SUFFIX=4 ;; 11139 *) FILE_MAN_SUFFIX=5 ;; 11140 esac 11141fi 11142if test x$FILE_MAN_DIR = x ; then 11143 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11144fi 11145 11146if test x$MISC_MAN_SUFFIX = x ; then 11147 case $SYSV_MAN_SECTIONS in 11148 true) MISC_MAN_SUFFIX=5 ;; 11149 *) MISC_MAN_SUFFIX=7 ;; 11150 esac 11151fi 11152if test x$MISC_MAN_DIR = x ; then 11153 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11154fi 11155 11156if test x$DRIVER_MAN_SUFFIX = x ; then 11157 case $SYSV_MAN_SECTIONS in 11158 true) DRIVER_MAN_SUFFIX=7 ;; 11159 *) DRIVER_MAN_SUFFIX=4 ;; 11160 esac 11161fi 11162if test x$DRIVER_MAN_DIR = x ; then 11163 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11164fi 11165 11166if test x$ADMIN_MAN_SUFFIX = x ; then 11167 case $SYSV_MAN_SECTIONS in 11168 true) ADMIN_MAN_SUFFIX=1m ;; 11169 *) ADMIN_MAN_SUFFIX=8 ;; 11170 esac 11171fi 11172if test x$ADMIN_MAN_DIR = x ; then 11173 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11174fi 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190XORG_MAN_PAGE="X Version 11" 11191 11192MAN_SUBSTS="\ 11193 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11194 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11195 -e 's|__xservername__|Xorg|g' \ 11196 -e 's|__xconfigfile__|xorg.conf|g' \ 11197 -e 's|__projectroot__|\$(prefix)|g' \ 11198 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11199 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11200 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11201 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11202 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11203 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11204 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11205 11206 11207 11208# Check whether --enable-silent-rules was given. 11209if test ${enable_silent_rules+y} 11210then : 11211 enableval=$enable_silent_rules; 11212fi 11213 11214case $enable_silent_rules in # ((( 11215 yes) AM_DEFAULT_VERBOSITY=0;; 11216 no) AM_DEFAULT_VERBOSITY=1;; 11217 *) AM_DEFAULT_VERBOSITY=0;; 11218esac 11219am_make=${MAKE-make} 11220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11221printf %s "checking whether $am_make supports nested variables... " >&6; } 11222if test ${am_cv_make_support_nested_variables+y} 11223then : 11224 printf %s "(cached) " >&6 11225else $as_nop 11226 if printf "%s\n" 'TRUE=$(BAR$(V)) 11227BAR0=false 11228BAR1=true 11229V=1 11230am__doit: 11231 @$(TRUE) 11232.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11233 am_cv_make_support_nested_variables=yes 11234else 11235 am_cv_make_support_nested_variables=no 11236fi 11237fi 11238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11239printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11240if test $am_cv_make_support_nested_variables = yes; then 11241 AM_V='$(V)' 11242 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11243else 11244 AM_V=$AM_DEFAULT_VERBOSITY 11245 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11246fi 11247AM_BACKSLASH='\' 11248 11249 11250 11251# Initialize libtool 11252# Check whether --enable-static was given. 11253if test ${enable_static+y} 11254then : 11255 enableval=$enable_static; p=${PACKAGE-default} 11256 case $enableval in 11257 yes) enable_static=yes ;; 11258 no) enable_static=no ;; 11259 *) 11260 enable_static=no 11261 # Look at the argument we got. We use all the common list separators. 11262 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11263 for pkg in $enableval; do 11264 IFS=$lt_save_ifs 11265 if test "X$pkg" = "X$p"; then 11266 enable_static=yes 11267 fi 11268 done 11269 IFS=$lt_save_ifs 11270 ;; 11271 esac 11272else $as_nop 11273 enable_static=no 11274fi 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284case `pwd` in 11285 *\ * | *\ *) 11286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11287printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11288esac 11289 11290 11291 11292macro_version='2.4.7' 11293macro_revision='2.4.7' 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308ltmain=$ac_aux_dir/ltmain.sh 11309 11310# Backslashify metacharacters that are still active within 11311# double-quoted strings. 11312sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11313 11314# Same as above, but do not quote variable references. 11315double_quote_subst='s/\(["`\\]\)/\\\1/g' 11316 11317# Sed substitution to delay expansion of an escaped shell variable in a 11318# double_quote_subst'ed string. 11319delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11320 11321# Sed substitution to delay expansion of an escaped single quote. 11322delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11323 11324# Sed substitution to avoid accidental globbing in evaled expressions 11325no_glob_subst='s/\*/\\\*/g' 11326 11327ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11328ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11329ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11330 11331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11332printf %s "checking how to print strings... " >&6; } 11333# Test print first, because it will be a builtin if present. 11334if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11335 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11336 ECHO='print -r --' 11337elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11338 ECHO='printf %s\n' 11339else 11340 # Use this function as a fallback that always works. 11341 func_fallback_echo () 11342 { 11343 eval 'cat <<_LTECHO_EOF 11344$1 11345_LTECHO_EOF' 11346 } 11347 ECHO='func_fallback_echo' 11348fi 11349 11350# func_echo_all arg... 11351# Invoke $ECHO with all args, space-separated. 11352func_echo_all () 11353{ 11354 $ECHO "" 11355} 11356 11357case $ECHO in 11358 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11359printf "%s\n" "printf" >&6; } ;; 11360 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11361printf "%s\n" "print -r" >&6; } ;; 11362 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11363printf "%s\n" "cat" >&6; } ;; 11364esac 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11380printf %s "checking for a sed that does not truncate output... " >&6; } 11381if test ${ac_cv_path_SED+y} 11382then : 11383 printf %s "(cached) " >&6 11384else $as_nop 11385 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11386 for ac_i in 1 2 3 4 5 6 7; do 11387 ac_script="$ac_script$as_nl$ac_script" 11388 done 11389 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11390 { ac_script=; unset ac_script;} 11391 if test -z "$SED"; then 11392 ac_path_SED_found=false 11393 # Loop through the user's path and test for each of PROGNAME-LIST 11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11395for as_dir in $PATH 11396do 11397 IFS=$as_save_IFS 11398 case $as_dir in #((( 11399 '') as_dir=./ ;; 11400 */) ;; 11401 *) as_dir=$as_dir/ ;; 11402 esac 11403 for ac_prog in sed gsed 11404 do 11405 for ac_exec_ext in '' $ac_executable_extensions; do 11406 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11407 as_fn_executable_p "$ac_path_SED" || continue 11408# Check for GNU ac_path_SED and select it if it is found. 11409 # Check for GNU $ac_path_SED 11410case `"$ac_path_SED" --version 2>&1` in 11411*GNU*) 11412 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11413*) 11414 ac_count=0 11415 printf %s 0123456789 >"conftest.in" 11416 while : 11417 do 11418 cat "conftest.in" "conftest.in" >"conftest.tmp" 11419 mv "conftest.tmp" "conftest.in" 11420 cp "conftest.in" "conftest.nl" 11421 printf "%s\n" '' >> "conftest.nl" 11422 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11424 as_fn_arith $ac_count + 1 && ac_count=$as_val 11425 if test $ac_count -gt ${ac_path_SED_max-0}; then 11426 # Best one so far, save it but keep looking for a better one 11427 ac_cv_path_SED="$ac_path_SED" 11428 ac_path_SED_max=$ac_count 11429 fi 11430 # 10*(2^10) chars as input seems more than enough 11431 test $ac_count -gt 10 && break 11432 done 11433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11434esac 11435 11436 $ac_path_SED_found && break 3 11437 done 11438 done 11439 done 11440IFS=$as_save_IFS 11441 if test -z "$ac_cv_path_SED"; then 11442 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11443 fi 11444else 11445 ac_cv_path_SED=$SED 11446fi 11447 11448fi 11449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11450printf "%s\n" "$ac_cv_path_SED" >&6; } 11451 SED="$ac_cv_path_SED" 11452 rm -f conftest.sed 11453 11454test -z "$SED" && SED=sed 11455Xsed="$SED -e 1s/^X//" 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11468printf %s "checking for grep that handles long lines and -e... " >&6; } 11469if test ${ac_cv_path_GREP+y} 11470then : 11471 printf %s "(cached) " >&6 11472else $as_nop 11473 if test -z "$GREP"; then 11474 ac_path_GREP_found=false 11475 # Loop through the user's path and test for each of PROGNAME-LIST 11476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11477for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11478do 11479 IFS=$as_save_IFS 11480 case $as_dir in #((( 11481 '') as_dir=./ ;; 11482 */) ;; 11483 *) as_dir=$as_dir/ ;; 11484 esac 11485 for ac_prog in grep ggrep 11486 do 11487 for ac_exec_ext in '' $ac_executable_extensions; do 11488 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11489 as_fn_executable_p "$ac_path_GREP" || continue 11490# Check for GNU ac_path_GREP and select it if it is found. 11491 # Check for GNU $ac_path_GREP 11492case `"$ac_path_GREP" --version 2>&1` in 11493*GNU*) 11494 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11495*) 11496 ac_count=0 11497 printf %s 0123456789 >"conftest.in" 11498 while : 11499 do 11500 cat "conftest.in" "conftest.in" >"conftest.tmp" 11501 mv "conftest.tmp" "conftest.in" 11502 cp "conftest.in" "conftest.nl" 11503 printf "%s\n" 'GREP' >> "conftest.nl" 11504 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11506 as_fn_arith $ac_count + 1 && ac_count=$as_val 11507 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11508 # Best one so far, save it but keep looking for a better one 11509 ac_cv_path_GREP="$ac_path_GREP" 11510 ac_path_GREP_max=$ac_count 11511 fi 11512 # 10*(2^10) chars as input seems more than enough 11513 test $ac_count -gt 10 && break 11514 done 11515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11516esac 11517 11518 $ac_path_GREP_found && break 3 11519 done 11520 done 11521 done 11522IFS=$as_save_IFS 11523 if test -z "$ac_cv_path_GREP"; then 11524 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11525 fi 11526else 11527 ac_cv_path_GREP=$GREP 11528fi 11529 11530fi 11531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11532printf "%s\n" "$ac_cv_path_GREP" >&6; } 11533 GREP="$ac_cv_path_GREP" 11534 11535 11536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11537printf %s "checking for egrep... " >&6; } 11538if test ${ac_cv_path_EGREP+y} 11539then : 11540 printf %s "(cached) " >&6 11541else $as_nop 11542 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11543 then ac_cv_path_EGREP="$GREP -E" 11544 else 11545 if test -z "$EGREP"; then 11546 ac_path_EGREP_found=false 11547 # Loop through the user's path and test for each of PROGNAME-LIST 11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11550do 11551 IFS=$as_save_IFS 11552 case $as_dir in #((( 11553 '') as_dir=./ ;; 11554 */) ;; 11555 *) as_dir=$as_dir/ ;; 11556 esac 11557 for ac_prog in egrep 11558 do 11559 for ac_exec_ext in '' $ac_executable_extensions; do 11560 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11561 as_fn_executable_p "$ac_path_EGREP" || continue 11562# Check for GNU ac_path_EGREP and select it if it is found. 11563 # Check for GNU $ac_path_EGREP 11564case `"$ac_path_EGREP" --version 2>&1` in 11565*GNU*) 11566 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11567*) 11568 ac_count=0 11569 printf %s 0123456789 >"conftest.in" 11570 while : 11571 do 11572 cat "conftest.in" "conftest.in" >"conftest.tmp" 11573 mv "conftest.tmp" "conftest.in" 11574 cp "conftest.in" "conftest.nl" 11575 printf "%s\n" 'EGREP' >> "conftest.nl" 11576 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11578 as_fn_arith $ac_count + 1 && ac_count=$as_val 11579 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11580 # Best one so far, save it but keep looking for a better one 11581 ac_cv_path_EGREP="$ac_path_EGREP" 11582 ac_path_EGREP_max=$ac_count 11583 fi 11584 # 10*(2^10) chars as input seems more than enough 11585 test $ac_count -gt 10 && break 11586 done 11587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11588esac 11589 11590 $ac_path_EGREP_found && break 3 11591 done 11592 done 11593 done 11594IFS=$as_save_IFS 11595 if test -z "$ac_cv_path_EGREP"; then 11596 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11597 fi 11598else 11599 ac_cv_path_EGREP=$EGREP 11600fi 11601 11602 fi 11603fi 11604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11605printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11606 EGREP="$ac_cv_path_EGREP" 11607 11608 11609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11610printf %s "checking for fgrep... " >&6; } 11611if test ${ac_cv_path_FGREP+y} 11612then : 11613 printf %s "(cached) " >&6 11614else $as_nop 11615 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11616 then ac_cv_path_FGREP="$GREP -F" 11617 else 11618 if test -z "$FGREP"; then 11619 ac_path_FGREP_found=false 11620 # Loop through the user's path and test for each of PROGNAME-LIST 11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11622for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11623do 11624 IFS=$as_save_IFS 11625 case $as_dir in #((( 11626 '') as_dir=./ ;; 11627 */) ;; 11628 *) as_dir=$as_dir/ ;; 11629 esac 11630 for ac_prog in fgrep 11631 do 11632 for ac_exec_ext in '' $ac_executable_extensions; do 11633 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11634 as_fn_executable_p "$ac_path_FGREP" || continue 11635# Check for GNU ac_path_FGREP and select it if it is found. 11636 # Check for GNU $ac_path_FGREP 11637case `"$ac_path_FGREP" --version 2>&1` in 11638*GNU*) 11639 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11640*) 11641 ac_count=0 11642 printf %s 0123456789 >"conftest.in" 11643 while : 11644 do 11645 cat "conftest.in" "conftest.in" >"conftest.tmp" 11646 mv "conftest.tmp" "conftest.in" 11647 cp "conftest.in" "conftest.nl" 11648 printf "%s\n" 'FGREP' >> "conftest.nl" 11649 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11651 as_fn_arith $ac_count + 1 && ac_count=$as_val 11652 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11653 # Best one so far, save it but keep looking for a better one 11654 ac_cv_path_FGREP="$ac_path_FGREP" 11655 ac_path_FGREP_max=$ac_count 11656 fi 11657 # 10*(2^10) chars as input seems more than enough 11658 test $ac_count -gt 10 && break 11659 done 11660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11661esac 11662 11663 $ac_path_FGREP_found && break 3 11664 done 11665 done 11666 done 11667IFS=$as_save_IFS 11668 if test -z "$ac_cv_path_FGREP"; then 11669 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11670 fi 11671else 11672 ac_cv_path_FGREP=$FGREP 11673fi 11674 11675 fi 11676fi 11677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11678printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11679 FGREP="$ac_cv_path_FGREP" 11680 11681 11682test -z "$GREP" && GREP=grep 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702# Check whether --with-gnu-ld was given. 11703if test ${with_gnu_ld+y} 11704then : 11705 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11706else $as_nop 11707 with_gnu_ld=no 11708fi 11709 11710ac_prog=ld 11711if test yes = "$GCC"; then 11712 # Check if gcc -print-prog-name=ld gives a path. 11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11714printf %s "checking for ld used by $CC... " >&6; } 11715 case $host in 11716 *-*-mingw*) 11717 # gcc leaves a trailing carriage return, which upsets mingw 11718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11719 *) 11720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11721 esac 11722 case $ac_prog in 11723 # Accept absolute paths. 11724 [\\/]* | ?:[\\/]*) 11725 re_direlt='/[^/][^/]*/\.\./' 11726 # Canonicalize the pathname of ld 11727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11730 done 11731 test -z "$LD" && LD=$ac_prog 11732 ;; 11733 "") 11734 # If it fails, then pretend we aren't using GCC. 11735 ac_prog=ld 11736 ;; 11737 *) 11738 # If it is relative, then search for the first ld in PATH. 11739 with_gnu_ld=unknown 11740 ;; 11741 esac 11742elif test yes = "$with_gnu_ld"; then 11743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11744printf %s "checking for GNU ld... " >&6; } 11745else 11746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11747printf %s "checking for non-GNU ld... " >&6; } 11748fi 11749if test ${lt_cv_path_LD+y} 11750then : 11751 printf %s "(cached) " >&6 11752else $as_nop 11753 if test -z "$LD"; then 11754 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11755 for ac_dir in $PATH; do 11756 IFS=$lt_save_ifs 11757 test -z "$ac_dir" && ac_dir=. 11758 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11759 lt_cv_path_LD=$ac_dir/$ac_prog 11760 # Check to see if the program is GNU ld. I'd rather use --version, 11761 # but apparently some variants of GNU ld only accept -v. 11762 # Break only if it was the GNU/non-GNU ld that we prefer. 11763 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11764 *GNU* | *'with BFD'*) 11765 test no != "$with_gnu_ld" && break 11766 ;; 11767 *) 11768 test yes != "$with_gnu_ld" && break 11769 ;; 11770 esac 11771 fi 11772 done 11773 IFS=$lt_save_ifs 11774else 11775 lt_cv_path_LD=$LD # Let the user override the test with a path. 11776fi 11777fi 11778 11779LD=$lt_cv_path_LD 11780if test -n "$LD"; then 11781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11782printf "%s\n" "$LD" >&6; } 11783else 11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11785printf "%s\n" "no" >&6; } 11786fi 11787test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11789printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11790if test ${lt_cv_prog_gnu_ld+y} 11791then : 11792 printf %s "(cached) " >&6 11793else $as_nop 11794 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11795case `$LD -v 2>&1 </dev/null` in 11796*GNU* | *'with BFD'*) 11797 lt_cv_prog_gnu_ld=yes 11798 ;; 11799*) 11800 lt_cv_prog_gnu_ld=no 11801 ;; 11802esac 11803fi 11804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11805printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11806with_gnu_ld=$lt_cv_prog_gnu_ld 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11817printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11818if test ${lt_cv_path_NM+y} 11819then : 11820 printf %s "(cached) " >&6 11821else $as_nop 11822 if test -n "$NM"; then 11823 # Let the user override the test. 11824 lt_cv_path_NM=$NM 11825else 11826 lt_nm_to_check=${ac_tool_prefix}nm 11827 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11828 lt_nm_to_check="$lt_nm_to_check nm" 11829 fi 11830 for lt_tmp_nm in $lt_nm_to_check; do 11831 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11832 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11833 IFS=$lt_save_ifs 11834 test -z "$ac_dir" && ac_dir=. 11835 tmp_nm=$ac_dir/$lt_tmp_nm 11836 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11837 # Check to see if the nm accepts a BSD-compat flag. 11838 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11839 # nm: unknown option "B" ignored 11840 # Tru64's nm complains that /dev/null is an invalid object file 11841 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11842 case $build_os in 11843 mingw*) lt_bad_file=conftest.nm/nofile ;; 11844 *) lt_bad_file=/dev/null ;; 11845 esac 11846 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11847 *$lt_bad_file* | *'Invalid file or object type'*) 11848 lt_cv_path_NM="$tmp_nm -B" 11849 break 2 11850 ;; 11851 *) 11852 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11853 */dev/null*) 11854 lt_cv_path_NM="$tmp_nm -p" 11855 break 2 11856 ;; 11857 *) 11858 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11859 continue # so that we can try to find one that supports BSD flags 11860 ;; 11861 esac 11862 ;; 11863 esac 11864 fi 11865 done 11866 IFS=$lt_save_ifs 11867 done 11868 : ${lt_cv_path_NM=no} 11869fi 11870fi 11871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11872printf "%s\n" "$lt_cv_path_NM" >&6; } 11873if test no != "$lt_cv_path_NM"; then 11874 NM=$lt_cv_path_NM 11875else 11876 # Didn't find any BSD compatible name lister, look for dumpbin. 11877 if test -n "$DUMPBIN"; then : 11878 # Let the user override the test. 11879 else 11880 if test -n "$ac_tool_prefix"; then 11881 for ac_prog in dumpbin "link -dump" 11882 do 11883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11884set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11886printf %s "checking for $ac_word... " >&6; } 11887if test ${ac_cv_prog_DUMPBIN+y} 11888then : 11889 printf %s "(cached) " >&6 11890else $as_nop 11891 if test -n "$DUMPBIN"; then 11892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11893else 11894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11895for as_dir in $PATH 11896do 11897 IFS=$as_save_IFS 11898 case $as_dir in #((( 11899 '') as_dir=./ ;; 11900 */) ;; 11901 *) as_dir=$as_dir/ ;; 11902 esac 11903 for ac_exec_ext in '' $ac_executable_extensions; do 11904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11905 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11907 break 2 11908 fi 11909done 11910 done 11911IFS=$as_save_IFS 11912 11913fi 11914fi 11915DUMPBIN=$ac_cv_prog_DUMPBIN 11916if test -n "$DUMPBIN"; then 11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11918printf "%s\n" "$DUMPBIN" >&6; } 11919else 11920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11921printf "%s\n" "no" >&6; } 11922fi 11923 11924 11925 test -n "$DUMPBIN" && break 11926 done 11927fi 11928if test -z "$DUMPBIN"; then 11929 ac_ct_DUMPBIN=$DUMPBIN 11930 for ac_prog in dumpbin "link -dump" 11931do 11932 # Extract the first word of "$ac_prog", so it can be a program name with args. 11933set dummy $ac_prog; ac_word=$2 11934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11935printf %s "checking for $ac_word... " >&6; } 11936if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11937then : 11938 printf %s "(cached) " >&6 11939else $as_nop 11940 if test -n "$ac_ct_DUMPBIN"; then 11941 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11942else 11943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11944for as_dir in $PATH 11945do 11946 IFS=$as_save_IFS 11947 case $as_dir in #((( 11948 '') as_dir=./ ;; 11949 */) ;; 11950 *) as_dir=$as_dir/ ;; 11951 esac 11952 for ac_exec_ext in '' $ac_executable_extensions; do 11953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11954 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11956 break 2 11957 fi 11958done 11959 done 11960IFS=$as_save_IFS 11961 11962fi 11963fi 11964ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11965if test -n "$ac_ct_DUMPBIN"; then 11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11967printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11968else 11969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11970printf "%s\n" "no" >&6; } 11971fi 11972 11973 11974 test -n "$ac_ct_DUMPBIN" && break 11975done 11976 11977 if test "x$ac_ct_DUMPBIN" = x; then 11978 DUMPBIN=":" 11979 else 11980 case $cross_compiling:$ac_tool_warned in 11981yes:) 11982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11983printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11984ac_tool_warned=yes ;; 11985esac 11986 DUMPBIN=$ac_ct_DUMPBIN 11987 fi 11988fi 11989 11990 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 11991 *COFF*) 11992 DUMPBIN="$DUMPBIN -symbols -headers" 11993 ;; 11994 *) 11995 DUMPBIN=: 11996 ;; 11997 esac 11998 fi 11999 12000 if test : != "$DUMPBIN"; then 12001 NM=$DUMPBIN 12002 fi 12003fi 12004test -z "$NM" && NM=nm 12005 12006 12007 12008 12009 12010 12011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12012printf %s "checking the name lister ($NM) interface... " >&6; } 12013if test ${lt_cv_nm_interface+y} 12014then : 12015 printf %s "(cached) " >&6 12016else $as_nop 12017 lt_cv_nm_interface="BSD nm" 12018 echo "int some_variable = 0;" > conftest.$ac_ext 12019 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12020 (eval "$ac_compile" 2>conftest.err) 12021 cat conftest.err >&5 12022 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12023 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12024 cat conftest.err >&5 12025 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12026 cat conftest.out >&5 12027 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12028 lt_cv_nm_interface="MS dumpbin" 12029 fi 12030 rm -f conftest* 12031fi 12032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12033printf "%s\n" "$lt_cv_nm_interface" >&6; } 12034 12035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12036printf %s "checking whether ln -s works... " >&6; } 12037LN_S=$as_ln_s 12038if test "$LN_S" = "ln -s"; then 12039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12040printf "%s\n" "yes" >&6; } 12041else 12042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12043printf "%s\n" "no, using $LN_S" >&6; } 12044fi 12045 12046# find the maximum length of command line arguments 12047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12048printf %s "checking the maximum length of command line arguments... " >&6; } 12049if test ${lt_cv_sys_max_cmd_len+y} 12050then : 12051 printf %s "(cached) " >&6 12052else $as_nop 12053 i=0 12054 teststring=ABCD 12055 12056 case $build_os in 12057 msdosdjgpp*) 12058 # On DJGPP, this test can blow up pretty badly due to problems in libc 12059 # (any single argument exceeding 2000 bytes causes a buffer overrun 12060 # during glob expansion). Even if it were fixed, the result of this 12061 # check would be larger than it should be. 12062 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12063 ;; 12064 12065 gnu*) 12066 # Under GNU Hurd, this test is not required because there is 12067 # no limit to the length of command line arguments. 12068 # Libtool will interpret -1 as no limit whatsoever 12069 lt_cv_sys_max_cmd_len=-1; 12070 ;; 12071 12072 cygwin* | mingw* | cegcc*) 12073 # On Win9x/ME, this test blows up -- it succeeds, but takes 12074 # about 5 minutes as the teststring grows exponentially. 12075 # Worse, since 9x/ME are not pre-emptively multitasking, 12076 # you end up with a "frozen" computer, even though with patience 12077 # the test eventually succeeds (with a max line length of 256k). 12078 # Instead, let's just punt: use the minimum linelength reported by 12079 # all of the supported platforms: 8192 (on NT/2K/XP). 12080 lt_cv_sys_max_cmd_len=8192; 12081 ;; 12082 12083 mint*) 12084 # On MiNT this can take a long time and run out of memory. 12085 lt_cv_sys_max_cmd_len=8192; 12086 ;; 12087 12088 amigaos*) 12089 # On AmigaOS with pdksh, this test takes hours, literally. 12090 # So we just punt and use a minimum line length of 8192. 12091 lt_cv_sys_max_cmd_len=8192; 12092 ;; 12093 12094 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12095 # This has been around since 386BSD, at least. Likely further. 12096 if test -x /sbin/sysctl; then 12097 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12098 elif test -x /usr/sbin/sysctl; then 12099 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12100 else 12101 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12102 fi 12103 # And add a safety zone 12104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12106 ;; 12107 12108 interix*) 12109 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12110 lt_cv_sys_max_cmd_len=196608 12111 ;; 12112 12113 os2*) 12114 # The test takes a long time on OS/2. 12115 lt_cv_sys_max_cmd_len=8192 12116 ;; 12117 12118 osf*) 12119 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12120 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12121 # nice to cause kernel panics so lets avoid the loop below. 12122 # First set a reasonable default. 12123 lt_cv_sys_max_cmd_len=16384 12124 # 12125 if test -x /sbin/sysconfig; then 12126 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12127 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12128 esac 12129 fi 12130 ;; 12131 sco3.2v5*) 12132 lt_cv_sys_max_cmd_len=102400 12133 ;; 12134 sysv5* | sco5v6* | sysv4.2uw2*) 12135 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12136 if test -n "$kargmax"; then 12137 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12138 else 12139 lt_cv_sys_max_cmd_len=32768 12140 fi 12141 ;; 12142 *) 12143 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12144 if test -n "$lt_cv_sys_max_cmd_len" && \ 12145 test undefined != "$lt_cv_sys_max_cmd_len"; then 12146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12147 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12148 else 12149 # Make teststring a little bigger before we do anything with it. 12150 # a 1K string should be a reasonable start. 12151 for i in 1 2 3 4 5 6 7 8; do 12152 teststring=$teststring$teststring 12153 done 12154 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12155 # If test is not a shell built-in, we'll probably end up computing a 12156 # maximum length that is only half of the actual maximum length, but 12157 # we can't tell. 12158 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12159 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12160 test 17 != "$i" # 1/2 MB should be enough 12161 do 12162 i=`expr $i + 1` 12163 teststring=$teststring$teststring 12164 done 12165 # Only check the string length outside the loop. 12166 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12167 teststring= 12168 # Add a significant safety factor because C++ compilers can tack on 12169 # massive amounts of additional arguments before passing them to the 12170 # linker. It appears as though 1/2 is a usable value. 12171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12172 fi 12173 ;; 12174 esac 12175 12176fi 12177 12178if test -n "$lt_cv_sys_max_cmd_len"; then 12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12180printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12181else 12182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12183printf "%s\n" "none" >&6; } 12184fi 12185max_cmd_len=$lt_cv_sys_max_cmd_len 12186 12187 12188 12189 12190 12191 12192: ${CP="cp -f"} 12193: ${MV="mv -f"} 12194: ${RM="rm -f"} 12195 12196if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12197 lt_unset=unset 12198else 12199 lt_unset=false 12200fi 12201 12202 12203 12204 12205 12206# test EBCDIC or ASCII 12207case `echo X|tr X '\101'` in 12208 A) # ASCII based system 12209 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12210 lt_SP2NL='tr \040 \012' 12211 lt_NL2SP='tr \015\012 \040\040' 12212 ;; 12213 *) # EBCDIC based system 12214 lt_SP2NL='tr \100 \n' 12215 lt_NL2SP='tr \r\n \100\100' 12216 ;; 12217esac 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12228printf %s "checking how to convert $build file names to $host format... " >&6; } 12229if test ${lt_cv_to_host_file_cmd+y} 12230then : 12231 printf %s "(cached) " >&6 12232else $as_nop 12233 case $host in 12234 *-*-mingw* ) 12235 case $build in 12236 *-*-mingw* ) # actually msys 12237 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12238 ;; 12239 *-*-cygwin* ) 12240 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12241 ;; 12242 * ) # otherwise, assume *nix 12243 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12244 ;; 12245 esac 12246 ;; 12247 *-*-cygwin* ) 12248 case $build in 12249 *-*-mingw* ) # actually msys 12250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12251 ;; 12252 *-*-cygwin* ) 12253 lt_cv_to_host_file_cmd=func_convert_file_noop 12254 ;; 12255 * ) # otherwise, assume *nix 12256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12257 ;; 12258 esac 12259 ;; 12260 * ) # unhandled hosts (and "normal" native builds) 12261 lt_cv_to_host_file_cmd=func_convert_file_noop 12262 ;; 12263esac 12264 12265fi 12266 12267to_host_file_cmd=$lt_cv_to_host_file_cmd 12268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12269printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12270 12271 12272 12273 12274 12275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12276printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12277if test ${lt_cv_to_tool_file_cmd+y} 12278then : 12279 printf %s "(cached) " >&6 12280else $as_nop 12281 #assume ordinary cross tools, or native build. 12282lt_cv_to_tool_file_cmd=func_convert_file_noop 12283case $host in 12284 *-*-mingw* ) 12285 case $build in 12286 *-*-mingw* ) # actually msys 12287 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12288 ;; 12289 esac 12290 ;; 12291esac 12292 12293fi 12294 12295to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12297printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12298 12299 12300 12301 12302 12303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12304printf %s "checking for $LD option to reload object files... " >&6; } 12305if test ${lt_cv_ld_reload_flag+y} 12306then : 12307 printf %s "(cached) " >&6 12308else $as_nop 12309 lt_cv_ld_reload_flag='-r' 12310fi 12311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12312printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12313reload_flag=$lt_cv_ld_reload_flag 12314case $reload_flag in 12315"" | " "*) ;; 12316*) reload_flag=" $reload_flag" ;; 12317esac 12318reload_cmds='$LD$reload_flag -o $output$reload_objs' 12319case $host_os in 12320 cygwin* | mingw* | pw32* | cegcc*) 12321 if test yes != "$GCC"; then 12322 reload_cmds=false 12323 fi 12324 ;; 12325 darwin*) 12326 if test yes = "$GCC"; then 12327 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12328 else 12329 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12330 fi 12331 ;; 12332esac 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342if test -n "$ac_tool_prefix"; then 12343 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12344set dummy ${ac_tool_prefix}file; ac_word=$2 12345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12346printf %s "checking for $ac_word... " >&6; } 12347if test ${ac_cv_prog_FILECMD+y} 12348then : 12349 printf %s "(cached) " >&6 12350else $as_nop 12351 if test -n "$FILECMD"; then 12352 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12353else 12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12355for as_dir in $PATH 12356do 12357 IFS=$as_save_IFS 12358 case $as_dir in #((( 12359 '') as_dir=./ ;; 12360 */) ;; 12361 *) as_dir=$as_dir/ ;; 12362 esac 12363 for ac_exec_ext in '' $ac_executable_extensions; do 12364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12365 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12367 break 2 12368 fi 12369done 12370 done 12371IFS=$as_save_IFS 12372 12373fi 12374fi 12375FILECMD=$ac_cv_prog_FILECMD 12376if test -n "$FILECMD"; then 12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12378printf "%s\n" "$FILECMD" >&6; } 12379else 12380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12381printf "%s\n" "no" >&6; } 12382fi 12383 12384 12385fi 12386if test -z "$ac_cv_prog_FILECMD"; then 12387 ac_ct_FILECMD=$FILECMD 12388 # Extract the first word of "file", so it can be a program name with args. 12389set dummy file; ac_word=$2 12390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12391printf %s "checking for $ac_word... " >&6; } 12392if test ${ac_cv_prog_ac_ct_FILECMD+y} 12393then : 12394 printf %s "(cached) " >&6 12395else $as_nop 12396 if test -n "$ac_ct_FILECMD"; then 12397 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12398else 12399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12400for as_dir in $PATH 12401do 12402 IFS=$as_save_IFS 12403 case $as_dir in #((( 12404 '') as_dir=./ ;; 12405 */) ;; 12406 *) as_dir=$as_dir/ ;; 12407 esac 12408 for ac_exec_ext in '' $ac_executable_extensions; do 12409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12410 ac_cv_prog_ac_ct_FILECMD="file" 12411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12412 break 2 12413 fi 12414done 12415 done 12416IFS=$as_save_IFS 12417 12418fi 12419fi 12420ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12421if test -n "$ac_ct_FILECMD"; then 12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12423printf "%s\n" "$ac_ct_FILECMD" >&6; } 12424else 12425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12426printf "%s\n" "no" >&6; } 12427fi 12428 12429 if test "x$ac_ct_FILECMD" = x; then 12430 FILECMD=":" 12431 else 12432 case $cross_compiling:$ac_tool_warned in 12433yes:) 12434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12435printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12436ac_tool_warned=yes ;; 12437esac 12438 FILECMD=$ac_ct_FILECMD 12439 fi 12440else 12441 FILECMD="$ac_cv_prog_FILECMD" 12442fi 12443 12444 12445 12446 12447 12448 12449 12450if test -n "$ac_tool_prefix"; then 12451 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12452set dummy ${ac_tool_prefix}objdump; ac_word=$2 12453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12454printf %s "checking for $ac_word... " >&6; } 12455if test ${ac_cv_prog_OBJDUMP+y} 12456then : 12457 printf %s "(cached) " >&6 12458else $as_nop 12459 if test -n "$OBJDUMP"; then 12460 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12461else 12462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12463for as_dir in $PATH 12464do 12465 IFS=$as_save_IFS 12466 case $as_dir in #((( 12467 '') as_dir=./ ;; 12468 */) ;; 12469 *) as_dir=$as_dir/ ;; 12470 esac 12471 for ac_exec_ext in '' $ac_executable_extensions; do 12472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12473 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12475 break 2 12476 fi 12477done 12478 done 12479IFS=$as_save_IFS 12480 12481fi 12482fi 12483OBJDUMP=$ac_cv_prog_OBJDUMP 12484if test -n "$OBJDUMP"; then 12485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12486printf "%s\n" "$OBJDUMP" >&6; } 12487else 12488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12489printf "%s\n" "no" >&6; } 12490fi 12491 12492 12493fi 12494if test -z "$ac_cv_prog_OBJDUMP"; then 12495 ac_ct_OBJDUMP=$OBJDUMP 12496 # Extract the first word of "objdump", so it can be a program name with args. 12497set dummy objdump; ac_word=$2 12498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12499printf %s "checking for $ac_word... " >&6; } 12500if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12501then : 12502 printf %s "(cached) " >&6 12503else $as_nop 12504 if test -n "$ac_ct_OBJDUMP"; then 12505 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12506else 12507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12508for as_dir in $PATH 12509do 12510 IFS=$as_save_IFS 12511 case $as_dir in #((( 12512 '') as_dir=./ ;; 12513 */) ;; 12514 *) as_dir=$as_dir/ ;; 12515 esac 12516 for ac_exec_ext in '' $ac_executable_extensions; do 12517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12518 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12520 break 2 12521 fi 12522done 12523 done 12524IFS=$as_save_IFS 12525 12526fi 12527fi 12528ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12529if test -n "$ac_ct_OBJDUMP"; then 12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12531printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12532else 12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534printf "%s\n" "no" >&6; } 12535fi 12536 12537 if test "x$ac_ct_OBJDUMP" = x; then 12538 OBJDUMP="false" 12539 else 12540 case $cross_compiling:$ac_tool_warned in 12541yes:) 12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12543printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12544ac_tool_warned=yes ;; 12545esac 12546 OBJDUMP=$ac_ct_OBJDUMP 12547 fi 12548else 12549 OBJDUMP="$ac_cv_prog_OBJDUMP" 12550fi 12551 12552test -z "$OBJDUMP" && OBJDUMP=objdump 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12563printf %s "checking how to recognize dependent libraries... " >&6; } 12564if test ${lt_cv_deplibs_check_method+y} 12565then : 12566 printf %s "(cached) " >&6 12567else $as_nop 12568 lt_cv_file_magic_cmd='$MAGIC_CMD' 12569lt_cv_file_magic_test_file= 12570lt_cv_deplibs_check_method='unknown' 12571# Need to set the preceding variable on all platforms that support 12572# interlibrary dependencies. 12573# 'none' -- dependencies not supported. 12574# 'unknown' -- same as none, but documents that we really don't know. 12575# 'pass_all' -- all dependencies passed with no checks. 12576# 'test_compile' -- check by making test program. 12577# 'file_magic [[regex]]' -- check by looking for files in library path 12578# that responds to the $file_magic_cmd with a given extended regex. 12579# If you have 'file' or equivalent on your system and you're not sure 12580# whether 'pass_all' will *always* work, you probably want this one. 12581 12582case $host_os in 12583aix[4-9]*) 12584 lt_cv_deplibs_check_method=pass_all 12585 ;; 12586 12587beos*) 12588 lt_cv_deplibs_check_method=pass_all 12589 ;; 12590 12591bsdi[45]*) 12592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12593 lt_cv_file_magic_cmd='$FILECMD -L' 12594 lt_cv_file_magic_test_file=/shlib/libc.so 12595 ;; 12596 12597cygwin*) 12598 # func_win32_libid is a shell function defined in ltmain.sh 12599 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12600 lt_cv_file_magic_cmd='func_win32_libid' 12601 ;; 12602 12603mingw* | pw32*) 12604 # Base MSYS/MinGW do not provide the 'file' command needed by 12605 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12606 # unless we find 'file', for example because we are cross-compiling. 12607 if ( file / ) >/dev/null 2>&1; then 12608 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12609 lt_cv_file_magic_cmd='func_win32_libid' 12610 else 12611 # Keep this pattern in sync with the one in func_win32_libid. 12612 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12613 lt_cv_file_magic_cmd='$OBJDUMP -f' 12614 fi 12615 ;; 12616 12617cegcc*) 12618 # use the weaker test based on 'objdump'. See mingw*. 12619 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12620 lt_cv_file_magic_cmd='$OBJDUMP -f' 12621 ;; 12622 12623darwin* | rhapsody*) 12624 lt_cv_deplibs_check_method=pass_all 12625 ;; 12626 12627freebsd* | dragonfly* | midnightbsd*) 12628 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12629 case $host_cpu in 12630 i*86 ) 12631 # Not sure whether the presence of OpenBSD here was a mistake. 12632 # Let's accept both of them until this is cleared up. 12633 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12634 lt_cv_file_magic_cmd=$FILECMD 12635 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12636 ;; 12637 esac 12638 else 12639 lt_cv_deplibs_check_method=pass_all 12640 fi 12641 ;; 12642 12643haiku*) 12644 lt_cv_deplibs_check_method=pass_all 12645 ;; 12646 12647hpux10.20* | hpux11*) 12648 lt_cv_file_magic_cmd=$FILECMD 12649 case $host_cpu in 12650 ia64*) 12651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12652 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12653 ;; 12654 hppa*64*) 12655 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]' 12656 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12657 ;; 12658 *) 12659 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12660 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12661 ;; 12662 esac 12663 ;; 12664 12665interix[3-9]*) 12666 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12668 ;; 12669 12670irix5* | irix6* | nonstopux*) 12671 case $LD in 12672 *-32|*"-32 ") libmagic=32-bit;; 12673 *-n32|*"-n32 ") libmagic=N32;; 12674 *-64|*"-64 ") libmagic=64-bit;; 12675 *) libmagic=never-match;; 12676 esac 12677 lt_cv_deplibs_check_method=pass_all 12678 ;; 12679 12680# This must be glibc/ELF. 12681linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12682 lt_cv_deplibs_check_method=pass_all 12683 ;; 12684 12685netbsd*) 12686 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12688 else 12689 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12690 fi 12691 ;; 12692 12693newos6*) 12694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12695 lt_cv_file_magic_cmd=$FILECMD 12696 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12697 ;; 12698 12699*nto* | *qnx*) 12700 lt_cv_deplibs_check_method=pass_all 12701 ;; 12702 12703openbsd* | bitrig*) 12704 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12705 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12706 else 12707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12708 fi 12709 ;; 12710 12711osf3* | osf4* | osf5*) 12712 lt_cv_deplibs_check_method=pass_all 12713 ;; 12714 12715rdos*) 12716 lt_cv_deplibs_check_method=pass_all 12717 ;; 12718 12719solaris*) 12720 lt_cv_deplibs_check_method=pass_all 12721 ;; 12722 12723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12724 lt_cv_deplibs_check_method=pass_all 12725 ;; 12726 12727sysv4 | sysv4.3*) 12728 case $host_vendor in 12729 motorola) 12730 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]' 12731 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12732 ;; 12733 ncr) 12734 lt_cv_deplibs_check_method=pass_all 12735 ;; 12736 sequent) 12737 lt_cv_file_magic_cmd='/bin/file' 12738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12739 ;; 12740 sni) 12741 lt_cv_file_magic_cmd='/bin/file' 12742 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12743 lt_cv_file_magic_test_file=/lib/libc.so 12744 ;; 12745 siemens) 12746 lt_cv_deplibs_check_method=pass_all 12747 ;; 12748 pc) 12749 lt_cv_deplibs_check_method=pass_all 12750 ;; 12751 esac 12752 ;; 12753 12754tpf*) 12755 lt_cv_deplibs_check_method=pass_all 12756 ;; 12757os2*) 12758 lt_cv_deplibs_check_method=pass_all 12759 ;; 12760esac 12761 12762fi 12763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12764printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12765 12766file_magic_glob= 12767want_nocaseglob=no 12768if test "$build" = "$host"; then 12769 case $host_os in 12770 mingw* | pw32*) 12771 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12772 want_nocaseglob=yes 12773 else 12774 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12775 fi 12776 ;; 12777 esac 12778fi 12779 12780file_magic_cmd=$lt_cv_file_magic_cmd 12781deplibs_check_method=$lt_cv_deplibs_check_method 12782test -z "$deplibs_check_method" && deplibs_check_method=unknown 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805if test -n "$ac_tool_prefix"; then 12806 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12807set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12809printf %s "checking for $ac_word... " >&6; } 12810if test ${ac_cv_prog_DLLTOOL+y} 12811then : 12812 printf %s "(cached) " >&6 12813else $as_nop 12814 if test -n "$DLLTOOL"; then 12815 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12816else 12817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12818for as_dir in $PATH 12819do 12820 IFS=$as_save_IFS 12821 case $as_dir in #((( 12822 '') as_dir=./ ;; 12823 */) ;; 12824 *) as_dir=$as_dir/ ;; 12825 esac 12826 for ac_exec_ext in '' $ac_executable_extensions; do 12827 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12828 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12830 break 2 12831 fi 12832done 12833 done 12834IFS=$as_save_IFS 12835 12836fi 12837fi 12838DLLTOOL=$ac_cv_prog_DLLTOOL 12839if test -n "$DLLTOOL"; then 12840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12841printf "%s\n" "$DLLTOOL" >&6; } 12842else 12843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12844printf "%s\n" "no" >&6; } 12845fi 12846 12847 12848fi 12849if test -z "$ac_cv_prog_DLLTOOL"; then 12850 ac_ct_DLLTOOL=$DLLTOOL 12851 # Extract the first word of "dlltool", so it can be a program name with args. 12852set dummy dlltool; ac_word=$2 12853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12854printf %s "checking for $ac_word... " >&6; } 12855if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12856then : 12857 printf %s "(cached) " >&6 12858else $as_nop 12859 if test -n "$ac_ct_DLLTOOL"; then 12860 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12861else 12862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12863for as_dir in $PATH 12864do 12865 IFS=$as_save_IFS 12866 case $as_dir in #((( 12867 '') as_dir=./ ;; 12868 */) ;; 12869 *) as_dir=$as_dir/ ;; 12870 esac 12871 for ac_exec_ext in '' $ac_executable_extensions; do 12872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12873 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12875 break 2 12876 fi 12877done 12878 done 12879IFS=$as_save_IFS 12880 12881fi 12882fi 12883ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12884if test -n "$ac_ct_DLLTOOL"; then 12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12886printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12887else 12888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12889printf "%s\n" "no" >&6; } 12890fi 12891 12892 if test "x$ac_ct_DLLTOOL" = x; then 12893 DLLTOOL="false" 12894 else 12895 case $cross_compiling:$ac_tool_warned in 12896yes:) 12897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12898printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12899ac_tool_warned=yes ;; 12900esac 12901 DLLTOOL=$ac_ct_DLLTOOL 12902 fi 12903else 12904 DLLTOOL="$ac_cv_prog_DLLTOOL" 12905fi 12906 12907test -z "$DLLTOOL" && DLLTOOL=dlltool 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12919printf %s "checking how to associate runtime and link libraries... " >&6; } 12920if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12921then : 12922 printf %s "(cached) " >&6 12923else $as_nop 12924 lt_cv_sharedlib_from_linklib_cmd='unknown' 12925 12926case $host_os in 12927cygwin* | mingw* | pw32* | cegcc*) 12928 # two different shell functions defined in ltmain.sh; 12929 # decide which one to use based on capabilities of $DLLTOOL 12930 case `$DLLTOOL --help 2>&1` in 12931 *--identify-strict*) 12932 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12933 ;; 12934 *) 12935 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12936 ;; 12937 esac 12938 ;; 12939*) 12940 # fallback: assume linklib IS sharedlib 12941 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12942 ;; 12943esac 12944 12945fi 12946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12947printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12948sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12949test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12950 12951 12952 12953 12954 12955 12956 12957if test -n "$ac_tool_prefix"; then 12958 for ac_prog in ar 12959 do 12960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12961set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12963printf %s "checking for $ac_word... " >&6; } 12964if test ${ac_cv_prog_AR+y} 12965then : 12966 printf %s "(cached) " >&6 12967else $as_nop 12968 if test -n "$AR"; then 12969 ac_cv_prog_AR="$AR" # Let the user override the test. 12970else 12971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12972for as_dir in $PATH 12973do 12974 IFS=$as_save_IFS 12975 case $as_dir in #((( 12976 '') as_dir=./ ;; 12977 */) ;; 12978 *) as_dir=$as_dir/ ;; 12979 esac 12980 for ac_exec_ext in '' $ac_executable_extensions; do 12981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12982 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12984 break 2 12985 fi 12986done 12987 done 12988IFS=$as_save_IFS 12989 12990fi 12991fi 12992AR=$ac_cv_prog_AR 12993if test -n "$AR"; then 12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12995printf "%s\n" "$AR" >&6; } 12996else 12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12998printf "%s\n" "no" >&6; } 12999fi 13000 13001 13002 test -n "$AR" && break 13003 done 13004fi 13005if test -z "$AR"; then 13006 ac_ct_AR=$AR 13007 for ac_prog in ar 13008do 13009 # Extract the first word of "$ac_prog", so it can be a program name with args. 13010set dummy $ac_prog; ac_word=$2 13011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13012printf %s "checking for $ac_word... " >&6; } 13013if test ${ac_cv_prog_ac_ct_AR+y} 13014then : 13015 printf %s "(cached) " >&6 13016else $as_nop 13017 if test -n "$ac_ct_AR"; then 13018 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13019else 13020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13021for as_dir in $PATH 13022do 13023 IFS=$as_save_IFS 13024 case $as_dir in #((( 13025 '') as_dir=./ ;; 13026 */) ;; 13027 *) as_dir=$as_dir/ ;; 13028 esac 13029 for ac_exec_ext in '' $ac_executable_extensions; do 13030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13031 ac_cv_prog_ac_ct_AR="$ac_prog" 13032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13033 break 2 13034 fi 13035done 13036 done 13037IFS=$as_save_IFS 13038 13039fi 13040fi 13041ac_ct_AR=$ac_cv_prog_ac_ct_AR 13042if test -n "$ac_ct_AR"; then 13043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13044printf "%s\n" "$ac_ct_AR" >&6; } 13045else 13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13047printf "%s\n" "no" >&6; } 13048fi 13049 13050 13051 test -n "$ac_ct_AR" && break 13052done 13053 13054 if test "x$ac_ct_AR" = x; then 13055 AR="false" 13056 else 13057 case $cross_compiling:$ac_tool_warned in 13058yes:) 13059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13060printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13061ac_tool_warned=yes ;; 13062esac 13063 AR=$ac_ct_AR 13064 fi 13065fi 13066 13067: ${AR=ar} 13068 13069 13070 13071 13072 13073 13074# Use ARFLAGS variable as AR's operation code to sync the variable naming with 13075# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13076# higher priority because thats what people were doing historically (setting 13077# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13078# variable obsoleted/removed. 13079 13080test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13081lt_ar_flags=$AR_FLAGS 13082 13083 13084 13085 13086 13087 13088# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13089# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13090 13091 13092 13093 13094 13095 13096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13097printf %s "checking for archiver @FILE support... " >&6; } 13098if test ${lt_cv_ar_at_file+y} 13099then : 13100 printf %s "(cached) " >&6 13101else $as_nop 13102 lt_cv_ar_at_file=no 13103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13104/* end confdefs.h. */ 13105 13106int 13107main (void) 13108{ 13109 13110 ; 13111 return 0; 13112} 13113_ACEOF 13114if ac_fn_c_try_compile "$LINENO" 13115then : 13116 echo conftest.$ac_objext > conftest.lst 13117 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13119 (eval $lt_ar_try) 2>&5 13120 ac_status=$? 13121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13122 test $ac_status = 0; } 13123 if test 0 -eq "$ac_status"; then 13124 # Ensure the archiver fails upon bogus file names. 13125 rm -f conftest.$ac_objext libconftest.a 13126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13127 (eval $lt_ar_try) 2>&5 13128 ac_status=$? 13129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13130 test $ac_status = 0; } 13131 if test 0 -ne "$ac_status"; then 13132 lt_cv_ar_at_file=@ 13133 fi 13134 fi 13135 rm -f conftest.* libconftest.a 13136 13137fi 13138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13139 13140fi 13141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13142printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13143 13144if test no = "$lt_cv_ar_at_file"; then 13145 archiver_list_spec= 13146else 13147 archiver_list_spec=$lt_cv_ar_at_file 13148fi 13149 13150 13151 13152 13153 13154 13155 13156if test -n "$ac_tool_prefix"; then 13157 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13158set dummy ${ac_tool_prefix}strip; ac_word=$2 13159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13160printf %s "checking for $ac_word... " >&6; } 13161if test ${ac_cv_prog_STRIP+y} 13162then : 13163 printf %s "(cached) " >&6 13164else $as_nop 13165 if test -n "$STRIP"; then 13166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13167else 13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13169for as_dir in $PATH 13170do 13171 IFS=$as_save_IFS 13172 case $as_dir in #((( 13173 '') as_dir=./ ;; 13174 */) ;; 13175 *) as_dir=$as_dir/ ;; 13176 esac 13177 for ac_exec_ext in '' $ac_executable_extensions; do 13178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13179 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13181 break 2 13182 fi 13183done 13184 done 13185IFS=$as_save_IFS 13186 13187fi 13188fi 13189STRIP=$ac_cv_prog_STRIP 13190if test -n "$STRIP"; then 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13192printf "%s\n" "$STRIP" >&6; } 13193else 13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13195printf "%s\n" "no" >&6; } 13196fi 13197 13198 13199fi 13200if test -z "$ac_cv_prog_STRIP"; then 13201 ac_ct_STRIP=$STRIP 13202 # Extract the first word of "strip", so it can be a program name with args. 13203set dummy strip; ac_word=$2 13204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13205printf %s "checking for $ac_word... " >&6; } 13206if test ${ac_cv_prog_ac_ct_STRIP+y} 13207then : 13208 printf %s "(cached) " >&6 13209else $as_nop 13210 if test -n "$ac_ct_STRIP"; then 13211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13212else 13213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13214for as_dir in $PATH 13215do 13216 IFS=$as_save_IFS 13217 case $as_dir in #((( 13218 '') as_dir=./ ;; 13219 */) ;; 13220 *) as_dir=$as_dir/ ;; 13221 esac 13222 for ac_exec_ext in '' $ac_executable_extensions; do 13223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13224 ac_cv_prog_ac_ct_STRIP="strip" 13225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13226 break 2 13227 fi 13228done 13229 done 13230IFS=$as_save_IFS 13231 13232fi 13233fi 13234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13235if test -n "$ac_ct_STRIP"; then 13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13237printf "%s\n" "$ac_ct_STRIP" >&6; } 13238else 13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13240printf "%s\n" "no" >&6; } 13241fi 13242 13243 if test "x$ac_ct_STRIP" = x; then 13244 STRIP=":" 13245 else 13246 case $cross_compiling:$ac_tool_warned in 13247yes:) 13248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13249printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13250ac_tool_warned=yes ;; 13251esac 13252 STRIP=$ac_ct_STRIP 13253 fi 13254else 13255 STRIP="$ac_cv_prog_STRIP" 13256fi 13257 13258test -z "$STRIP" && STRIP=: 13259 13260 13261 13262 13263 13264 13265if test -n "$ac_tool_prefix"; then 13266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13267set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13269printf %s "checking for $ac_word... " >&6; } 13270if test ${ac_cv_prog_RANLIB+y} 13271then : 13272 printf %s "(cached) " >&6 13273else $as_nop 13274 if test -n "$RANLIB"; then 13275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13276else 13277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13278for as_dir in $PATH 13279do 13280 IFS=$as_save_IFS 13281 case $as_dir in #((( 13282 '') as_dir=./ ;; 13283 */) ;; 13284 *) as_dir=$as_dir/ ;; 13285 esac 13286 for ac_exec_ext in '' $ac_executable_extensions; do 13287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13290 break 2 13291 fi 13292done 13293 done 13294IFS=$as_save_IFS 13295 13296fi 13297fi 13298RANLIB=$ac_cv_prog_RANLIB 13299if test -n "$RANLIB"; then 13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13301printf "%s\n" "$RANLIB" >&6; } 13302else 13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13304printf "%s\n" "no" >&6; } 13305fi 13306 13307 13308fi 13309if test -z "$ac_cv_prog_RANLIB"; then 13310 ac_ct_RANLIB=$RANLIB 13311 # Extract the first word of "ranlib", so it can be a program name with args. 13312set dummy ranlib; ac_word=$2 13313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13314printf %s "checking for $ac_word... " >&6; } 13315if test ${ac_cv_prog_ac_ct_RANLIB+y} 13316then : 13317 printf %s "(cached) " >&6 13318else $as_nop 13319 if test -n "$ac_ct_RANLIB"; then 13320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13321else 13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13323for as_dir in $PATH 13324do 13325 IFS=$as_save_IFS 13326 case $as_dir in #((( 13327 '') as_dir=./ ;; 13328 */) ;; 13329 *) as_dir=$as_dir/ ;; 13330 esac 13331 for ac_exec_ext in '' $ac_executable_extensions; do 13332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13333 ac_cv_prog_ac_ct_RANLIB="ranlib" 13334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13335 break 2 13336 fi 13337done 13338 done 13339IFS=$as_save_IFS 13340 13341fi 13342fi 13343ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13344if test -n "$ac_ct_RANLIB"; then 13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13346printf "%s\n" "$ac_ct_RANLIB" >&6; } 13347else 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13349printf "%s\n" "no" >&6; } 13350fi 13351 13352 if test "x$ac_ct_RANLIB" = x; then 13353 RANLIB=":" 13354 else 13355 case $cross_compiling:$ac_tool_warned in 13356yes:) 13357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13358printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13359ac_tool_warned=yes ;; 13360esac 13361 RANLIB=$ac_ct_RANLIB 13362 fi 13363else 13364 RANLIB="$ac_cv_prog_RANLIB" 13365fi 13366 13367test -z "$RANLIB" && RANLIB=: 13368 13369 13370 13371 13372 13373 13374# Determine commands to create old-style static archives. 13375old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13376old_postinstall_cmds='chmod 644 $oldlib' 13377old_postuninstall_cmds= 13378 13379if test -n "$RANLIB"; then 13380 case $host_os in 13381 bitrig* | openbsd*) 13382 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13383 ;; 13384 *) 13385 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13386 ;; 13387 esac 13388 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13389fi 13390 13391case $host_os in 13392 darwin*) 13393 lock_old_archive_extraction=yes ;; 13394 *) 13395 lock_old_archive_extraction=no ;; 13396esac 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 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436# If no C compiler was specified, use CC. 13437LTCC=${LTCC-"$CC"} 13438 13439# If no C compiler flags were specified, use CFLAGS. 13440LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13441 13442# Allow CC to be a program name with arguments. 13443compiler=$CC 13444 13445 13446# Check for command to grab the raw symbol name followed by C symbol from nm. 13447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13448printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13449if test ${lt_cv_sys_global_symbol_pipe+y} 13450then : 13451 printf %s "(cached) " >&6 13452else $as_nop 13453 13454# These are sane defaults that work on at least a few old systems. 13455# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13456 13457# Character class describing NM global symbol codes. 13458symcode='[BCDEGRST]' 13459 13460# Regexp to match symbols that can be accessed directly from C. 13461sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13462 13463# Define system-specific variables. 13464case $host_os in 13465aix*) 13466 symcode='[BCDT]' 13467 ;; 13468cygwin* | mingw* | pw32* | cegcc*) 13469 symcode='[ABCDGISTW]' 13470 ;; 13471hpux*) 13472 if test ia64 = "$host_cpu"; then 13473 symcode='[ABCDEGRST]' 13474 fi 13475 ;; 13476irix* | nonstopux*) 13477 symcode='[BCDEGRST]' 13478 ;; 13479osf*) 13480 symcode='[BCDEGQRST]' 13481 ;; 13482solaris*) 13483 symcode='[BDRT]' 13484 ;; 13485sco3.2v5*) 13486 symcode='[DT]' 13487 ;; 13488sysv4.2uw2*) 13489 symcode='[DT]' 13490 ;; 13491sysv5* | sco5v6* | unixware* | OpenUNIX*) 13492 symcode='[ABDT]' 13493 ;; 13494sysv4) 13495 symcode='[DFNSTU]' 13496 ;; 13497esac 13498 13499# If we're using GNU nm, then use its standard symbol codes. 13500case `$NM -V 2>&1` in 13501*GNU* | *'with BFD'*) 13502 symcode='[ABCDGIRSTW]' ;; 13503esac 13504 13505if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13506 # Gets list of data symbols to import. 13507 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13508 # Adjust the below global symbol transforms to fixup imported variables. 13509 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13510 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13511 lt_c_name_lib_hook="\ 13512 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13513 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13514else 13515 # Disable hooks by default. 13516 lt_cv_sys_global_symbol_to_import= 13517 lt_cdecl_hook= 13518 lt_c_name_hook= 13519 lt_c_name_lib_hook= 13520fi 13521 13522# Transform an extracted symbol line into a proper C declaration. 13523# Some systems (esp. on ia64) link data and code symbols differently, 13524# so use this general approach. 13525lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13526$lt_cdecl_hook\ 13527" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13528" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13529 13530# Transform an extracted symbol line into symbol name and symbol address 13531lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13532$lt_c_name_hook\ 13533" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13534" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13535 13536# Transform an extracted symbol line into symbol name with lib prefix and 13537# symbol address. 13538lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13539$lt_c_name_lib_hook\ 13540" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13541" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13542" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13543 13544# Handle CRLF in mingw tool chain 13545opt_cr= 13546case $build_os in 13547mingw*) 13548 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13549 ;; 13550esac 13551 13552# Try without a prefix underscore, then with it. 13553for ac_symprfx in "" "_"; do 13554 13555 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13556 symxfrm="\\1 $ac_symprfx\\2 \\2" 13557 13558 # Write the raw and C identifiers. 13559 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13560 # Fake it for dumpbin and say T for any non-static function, 13561 # D for any global variable and I for any imported variable. 13562 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13563 # which start with @ or ?. 13564 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13565" {last_section=section; section=\$ 3};"\ 13566" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13567" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13568" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13569" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13570" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13571" \$ 0!~/External *\|/{next};"\ 13572" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13573" {if(hide[section]) next};"\ 13574" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13575" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13576" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13577" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13578" ' prfx=^$ac_symprfx" 13579 else 13580 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13581 fi 13582 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13583 13584 # Check to see that the pipe works correctly. 13585 pipe_works=no 13586 13587 rm -f conftest* 13588 cat > conftest.$ac_ext <<_LT_EOF 13589#ifdef __cplusplus 13590extern "C" { 13591#endif 13592char nm_test_var; 13593void nm_test_func(void); 13594void nm_test_func(void){} 13595#ifdef __cplusplus 13596} 13597#endif 13598int main(){nm_test_var='a';nm_test_func();return(0);} 13599_LT_EOF 13600 13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13602 (eval $ac_compile) 2>&5 13603 ac_status=$? 13604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13605 test $ac_status = 0; }; then 13606 # Now try to grab the symbols. 13607 nlist=conftest.nm 13608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13609 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13610 ac_status=$? 13611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13612 test $ac_status = 0; } && test -s "$nlist"; then 13613 # Try sorting and uniquifying the output. 13614 if sort "$nlist" | uniq > "$nlist"T; then 13615 mv -f "$nlist"T "$nlist" 13616 else 13617 rm -f "$nlist"T 13618 fi 13619 13620 # Make sure that we snagged all the symbols we need. 13621 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13622 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13623 cat <<_LT_EOF > conftest.$ac_ext 13624/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13625#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13626/* DATA imports from DLLs on WIN32 can't be const, because runtime 13627 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13628# define LT_DLSYM_CONST 13629#elif defined __osf__ 13630/* This system does not cope well with relocations in const data. */ 13631# define LT_DLSYM_CONST 13632#else 13633# define LT_DLSYM_CONST const 13634#endif 13635 13636#ifdef __cplusplus 13637extern "C" { 13638#endif 13639 13640_LT_EOF 13641 # Now generate the symbol file. 13642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13643 13644 cat <<_LT_EOF >> conftest.$ac_ext 13645 13646/* The mapping between symbol names and symbols. */ 13647LT_DLSYM_CONST struct { 13648 const char *name; 13649 void *address; 13650} 13651lt__PROGRAM__LTX_preloaded_symbols[] = 13652{ 13653 { "@PROGRAM@", (void *) 0 }, 13654_LT_EOF 13655 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13656 cat <<\_LT_EOF >> conftest.$ac_ext 13657 {0, (void *) 0} 13658}; 13659 13660/* This works around a problem in FreeBSD linker */ 13661#ifdef FREEBSD_WORKAROUND 13662static const void *lt_preloaded_setup() { 13663 return lt__PROGRAM__LTX_preloaded_symbols; 13664} 13665#endif 13666 13667#ifdef __cplusplus 13668} 13669#endif 13670_LT_EOF 13671 # Now try linking the two files. 13672 mv conftest.$ac_objext conftstm.$ac_objext 13673 lt_globsym_save_LIBS=$LIBS 13674 lt_globsym_save_CFLAGS=$CFLAGS 13675 LIBS=conftstm.$ac_objext 13676 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13678 (eval $ac_link) 2>&5 13679 ac_status=$? 13680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13681 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13682 pipe_works=yes 13683 fi 13684 LIBS=$lt_globsym_save_LIBS 13685 CFLAGS=$lt_globsym_save_CFLAGS 13686 else 13687 echo "cannot find nm_test_func in $nlist" >&5 13688 fi 13689 else 13690 echo "cannot find nm_test_var in $nlist" >&5 13691 fi 13692 else 13693 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13694 fi 13695 else 13696 echo "$progname: failed program was:" >&5 13697 cat conftest.$ac_ext >&5 13698 fi 13699 rm -rf conftest* conftst* 13700 13701 # Do not use the global_symbol_pipe unless it works. 13702 if test yes = "$pipe_works"; then 13703 break 13704 else 13705 lt_cv_sys_global_symbol_pipe= 13706 fi 13707done 13708 13709fi 13710 13711if test -z "$lt_cv_sys_global_symbol_pipe"; then 13712 lt_cv_sys_global_symbol_to_cdecl= 13713fi 13714if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13716printf "%s\n" "failed" >&6; } 13717else 13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13719printf "%s\n" "ok" >&6; } 13720fi 13721 13722# Response file support. 13723if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13724 nm_file_list_spec='@' 13725elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13726 nm_file_list_spec='@' 13727fi 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13766printf %s "checking for sysroot... " >&6; } 13767 13768# Check whether --with-sysroot was given. 13769if test ${with_sysroot+y} 13770then : 13771 withval=$with_sysroot; 13772else $as_nop 13773 with_sysroot=no 13774fi 13775 13776 13777lt_sysroot= 13778case $with_sysroot in #( 13779 yes) 13780 if test yes = "$GCC"; then 13781 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13782 fi 13783 ;; #( 13784 /*) 13785 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13786 ;; #( 13787 no|'') 13788 ;; #( 13789 *) 13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13791printf "%s\n" "$with_sysroot" >&6; } 13792 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13793 ;; 13794esac 13795 13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13797printf "%s\n" "${lt_sysroot:-no}" >&6; } 13798 13799 13800 13801 13802 13803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13804printf %s "checking for a working dd... " >&6; } 13805if test ${ac_cv_path_lt_DD+y} 13806then : 13807 printf %s "(cached) " >&6 13808else $as_nop 13809 printf 0123456789abcdef0123456789abcdef >conftest.i 13810cat conftest.i conftest.i >conftest2.i 13811: ${lt_DD:=$DD} 13812if test -z "$lt_DD"; then 13813 ac_path_lt_DD_found=false 13814 # Loop through the user's path and test for each of PROGNAME-LIST 13815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13816for as_dir in $PATH 13817do 13818 IFS=$as_save_IFS 13819 case $as_dir in #((( 13820 '') as_dir=./ ;; 13821 */) ;; 13822 *) as_dir=$as_dir/ ;; 13823 esac 13824 for ac_prog in dd 13825 do 13826 for ac_exec_ext in '' $ac_executable_extensions; do 13827 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13828 as_fn_executable_p "$ac_path_lt_DD" || continue 13829if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13830 cmp -s conftest.i conftest.out \ 13831 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13832fi 13833 $ac_path_lt_DD_found && break 3 13834 done 13835 done 13836 done 13837IFS=$as_save_IFS 13838 if test -z "$ac_cv_path_lt_DD"; then 13839 : 13840 fi 13841else 13842 ac_cv_path_lt_DD=$lt_DD 13843fi 13844 13845rm -f conftest.i conftest2.i conftest.out 13846fi 13847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13848printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13849 13850 13851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13852printf %s "checking how to truncate binary pipes... " >&6; } 13853if test ${lt_cv_truncate_bin+y} 13854then : 13855 printf %s "(cached) " >&6 13856else $as_nop 13857 printf 0123456789abcdef0123456789abcdef >conftest.i 13858cat conftest.i conftest.i >conftest2.i 13859lt_cv_truncate_bin= 13860if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13861 cmp -s conftest.i conftest.out \ 13862 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13863fi 13864rm -f conftest.i conftest2.i conftest.out 13865test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13866fi 13867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13868printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13869 13870 13871 13872 13873 13874 13875 13876# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13877func_cc_basename () 13878{ 13879 for cc_temp in $*""; do 13880 case $cc_temp in 13881 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13882 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13883 \-*) ;; 13884 *) break;; 13885 esac 13886 done 13887 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13888} 13889 13890# Check whether --enable-libtool-lock was given. 13891if test ${enable_libtool_lock+y} 13892then : 13893 enableval=$enable_libtool_lock; 13894fi 13895 13896test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13897 13898# Some flags need to be propagated to the compiler or linker for good 13899# libtool support. 13900case $host in 13901ia64-*-hpux*) 13902 # Find out what ABI is being produced by ac_compile, and set mode 13903 # options accordingly. 13904 echo 'int i;' > conftest.$ac_ext 13905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13906 (eval $ac_compile) 2>&5 13907 ac_status=$? 13908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13909 test $ac_status = 0; }; then 13910 case `$FILECMD conftest.$ac_objext` in 13911 *ELF-32*) 13912 HPUX_IA64_MODE=32 13913 ;; 13914 *ELF-64*) 13915 HPUX_IA64_MODE=64 13916 ;; 13917 esac 13918 fi 13919 rm -rf conftest* 13920 ;; 13921*-*-irix6*) 13922 # Find out what ABI is being produced by ac_compile, and set linker 13923 # options accordingly. 13924 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13926 (eval $ac_compile) 2>&5 13927 ac_status=$? 13928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13929 test $ac_status = 0; }; then 13930 if test yes = "$lt_cv_prog_gnu_ld"; then 13931 case `$FILECMD conftest.$ac_objext` in 13932 *32-bit*) 13933 LD="${LD-ld} -melf32bsmip" 13934 ;; 13935 *N32*) 13936 LD="${LD-ld} -melf32bmipn32" 13937 ;; 13938 *64-bit*) 13939 LD="${LD-ld} -melf64bmip" 13940 ;; 13941 esac 13942 else 13943 case `$FILECMD conftest.$ac_objext` in 13944 *32-bit*) 13945 LD="${LD-ld} -32" 13946 ;; 13947 *N32*) 13948 LD="${LD-ld} -n32" 13949 ;; 13950 *64-bit*) 13951 LD="${LD-ld} -64" 13952 ;; 13953 esac 13954 fi 13955 fi 13956 rm -rf conftest* 13957 ;; 13958 13959mips64*-*linux*) 13960 # Find out what ABI is being produced by ac_compile, and set linker 13961 # options accordingly. 13962 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13964 (eval $ac_compile) 2>&5 13965 ac_status=$? 13966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13967 test $ac_status = 0; }; then 13968 emul=elf 13969 case `$FILECMD conftest.$ac_objext` in 13970 *32-bit*) 13971 emul="${emul}32" 13972 ;; 13973 *64-bit*) 13974 emul="${emul}64" 13975 ;; 13976 esac 13977 case `$FILECMD conftest.$ac_objext` in 13978 *MSB*) 13979 emul="${emul}btsmip" 13980 ;; 13981 *LSB*) 13982 emul="${emul}ltsmip" 13983 ;; 13984 esac 13985 case `$FILECMD conftest.$ac_objext` in 13986 *N32*) 13987 emul="${emul}n32" 13988 ;; 13989 esac 13990 LD="${LD-ld} -m $emul" 13991 fi 13992 rm -rf conftest* 13993 ;; 13994 13995x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13996s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13997 # Find out what ABI is being produced by ac_compile, and set linker 13998 # options accordingly. Note that the listed cases only cover the 13999 # situations where additional linker options are needed (such as when 14000 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14001 # vice versa); the common cases where no linker options are needed do 14002 # not appear in the list. 14003 echo 'int i;' > conftest.$ac_ext 14004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14005 (eval $ac_compile) 2>&5 14006 ac_status=$? 14007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14008 test $ac_status = 0; }; then 14009 case `$FILECMD conftest.o` in 14010 *32-bit*) 14011 case $host in 14012 x86_64-*kfreebsd*-gnu) 14013 LD="${LD-ld} -m elf_i386_fbsd" 14014 ;; 14015 x86_64-*linux*) 14016 case `$FILECMD conftest.o` in 14017 *x86-64*) 14018 LD="${LD-ld} -m elf32_x86_64" 14019 ;; 14020 *) 14021 LD="${LD-ld} -m elf_i386" 14022 ;; 14023 esac 14024 ;; 14025 powerpc64le-*linux*) 14026 LD="${LD-ld} -m elf32lppclinux" 14027 ;; 14028 powerpc64-*linux*) 14029 LD="${LD-ld} -m elf32ppclinux" 14030 ;; 14031 s390x-*linux*) 14032 LD="${LD-ld} -m elf_s390" 14033 ;; 14034 sparc64-*linux*) 14035 LD="${LD-ld} -m elf32_sparc" 14036 ;; 14037 esac 14038 ;; 14039 *64-bit*) 14040 case $host in 14041 x86_64-*kfreebsd*-gnu) 14042 LD="${LD-ld} -m elf_x86_64_fbsd" 14043 ;; 14044 x86_64-*linux*) 14045 LD="${LD-ld} -m elf_x86_64" 14046 ;; 14047 powerpcle-*linux*) 14048 LD="${LD-ld} -m elf64lppc" 14049 ;; 14050 powerpc-*linux*) 14051 LD="${LD-ld} -m elf64ppc" 14052 ;; 14053 s390*-*linux*|s390*-*tpf*) 14054 LD="${LD-ld} -m elf64_s390" 14055 ;; 14056 sparc*-*linux*) 14057 LD="${LD-ld} -m elf64_sparc" 14058 ;; 14059 esac 14060 ;; 14061 esac 14062 fi 14063 rm -rf conftest* 14064 ;; 14065 14066*-*-sco3.2v5*) 14067 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14068 SAVE_CFLAGS=$CFLAGS 14069 CFLAGS="$CFLAGS -belf" 14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14071printf %s "checking whether the C compiler needs -belf... " >&6; } 14072if test ${lt_cv_cc_needs_belf+y} 14073then : 14074 printf %s "(cached) " >&6 14075else $as_nop 14076 ac_ext=c 14077ac_cpp='$CPP $CPPFLAGS' 14078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14080ac_compiler_gnu=$ac_cv_c_compiler_gnu 14081 14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14083/* end confdefs.h. */ 14084 14085int 14086main (void) 14087{ 14088 14089 ; 14090 return 0; 14091} 14092_ACEOF 14093if ac_fn_c_try_link "$LINENO" 14094then : 14095 lt_cv_cc_needs_belf=yes 14096else $as_nop 14097 lt_cv_cc_needs_belf=no 14098fi 14099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14100 conftest$ac_exeext conftest.$ac_ext 14101 ac_ext=c 14102ac_cpp='$CPP $CPPFLAGS' 14103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14105ac_compiler_gnu=$ac_cv_c_compiler_gnu 14106 14107fi 14108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14109printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14110 if test yes != "$lt_cv_cc_needs_belf"; then 14111 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14112 CFLAGS=$SAVE_CFLAGS 14113 fi 14114 ;; 14115*-*solaris*) 14116 # Find out what ABI is being produced by ac_compile, and set linker 14117 # options accordingly. 14118 echo 'int i;' > conftest.$ac_ext 14119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14120 (eval $ac_compile) 2>&5 14121 ac_status=$? 14122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14123 test $ac_status = 0; }; then 14124 case `$FILECMD conftest.o` in 14125 *64-bit*) 14126 case $lt_cv_prog_gnu_ld in 14127 yes*) 14128 case $host in 14129 i?86-*-solaris*|x86_64-*-solaris*) 14130 LD="${LD-ld} -m elf_x86_64" 14131 ;; 14132 sparc*-*-solaris*) 14133 LD="${LD-ld} -m elf64_sparc" 14134 ;; 14135 esac 14136 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14137 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14138 LD=${LD-ld}_sol2 14139 fi 14140 ;; 14141 *) 14142 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14143 LD="${LD-ld} -64" 14144 fi 14145 ;; 14146 esac 14147 ;; 14148 esac 14149 fi 14150 rm -rf conftest* 14151 ;; 14152esac 14153 14154need_locks=$enable_libtool_lock 14155 14156if test -n "$ac_tool_prefix"; then 14157 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14158set dummy ${ac_tool_prefix}mt; ac_word=$2 14159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14160printf %s "checking for $ac_word... " >&6; } 14161if test ${ac_cv_prog_MANIFEST_TOOL+y} 14162then : 14163 printf %s "(cached) " >&6 14164else $as_nop 14165 if test -n "$MANIFEST_TOOL"; then 14166 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14167else 14168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14169for as_dir in $PATH 14170do 14171 IFS=$as_save_IFS 14172 case $as_dir in #((( 14173 '') as_dir=./ ;; 14174 */) ;; 14175 *) as_dir=$as_dir/ ;; 14176 esac 14177 for ac_exec_ext in '' $ac_executable_extensions; do 14178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14179 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14181 break 2 14182 fi 14183done 14184 done 14185IFS=$as_save_IFS 14186 14187fi 14188fi 14189MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14190if test -n "$MANIFEST_TOOL"; then 14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14192printf "%s\n" "$MANIFEST_TOOL" >&6; } 14193else 14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14195printf "%s\n" "no" >&6; } 14196fi 14197 14198 14199fi 14200if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14201 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14202 # Extract the first word of "mt", so it can be a program name with args. 14203set dummy mt; ac_word=$2 14204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14205printf %s "checking for $ac_word... " >&6; } 14206if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14207then : 14208 printf %s "(cached) " >&6 14209else $as_nop 14210 if test -n "$ac_ct_MANIFEST_TOOL"; then 14211 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14212else 14213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14214for as_dir in $PATH 14215do 14216 IFS=$as_save_IFS 14217 case $as_dir in #((( 14218 '') as_dir=./ ;; 14219 */) ;; 14220 *) as_dir=$as_dir/ ;; 14221 esac 14222 for ac_exec_ext in '' $ac_executable_extensions; do 14223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14224 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14226 break 2 14227 fi 14228done 14229 done 14230IFS=$as_save_IFS 14231 14232fi 14233fi 14234ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14235if test -n "$ac_ct_MANIFEST_TOOL"; then 14236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14237printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14238else 14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14240printf "%s\n" "no" >&6; } 14241fi 14242 14243 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14244 MANIFEST_TOOL=":" 14245 else 14246 case $cross_compiling:$ac_tool_warned in 14247yes:) 14248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14249printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14250ac_tool_warned=yes ;; 14251esac 14252 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14253 fi 14254else 14255 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14256fi 14257 14258test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14260printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14261if test ${lt_cv_path_mainfest_tool+y} 14262then : 14263 printf %s "(cached) " >&6 14264else $as_nop 14265 lt_cv_path_mainfest_tool=no 14266 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14267 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14268 cat conftest.err >&5 14269 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14270 lt_cv_path_mainfest_tool=yes 14271 fi 14272 rm -f conftest* 14273fi 14274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14275printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14276if test yes != "$lt_cv_path_mainfest_tool"; then 14277 MANIFEST_TOOL=: 14278fi 14279 14280 14281 14282 14283 14284 14285 case $host_os in 14286 rhapsody* | darwin*) 14287 if test -n "$ac_tool_prefix"; then 14288 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14289set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14291printf %s "checking for $ac_word... " >&6; } 14292if test ${ac_cv_prog_DSYMUTIL+y} 14293then : 14294 printf %s "(cached) " >&6 14295else $as_nop 14296 if test -n "$DSYMUTIL"; then 14297 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14298else 14299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14300for as_dir in $PATH 14301do 14302 IFS=$as_save_IFS 14303 case $as_dir in #((( 14304 '') as_dir=./ ;; 14305 */) ;; 14306 *) as_dir=$as_dir/ ;; 14307 esac 14308 for ac_exec_ext in '' $ac_executable_extensions; do 14309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14310 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14312 break 2 14313 fi 14314done 14315 done 14316IFS=$as_save_IFS 14317 14318fi 14319fi 14320DSYMUTIL=$ac_cv_prog_DSYMUTIL 14321if test -n "$DSYMUTIL"; then 14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14323printf "%s\n" "$DSYMUTIL" >&6; } 14324else 14325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14326printf "%s\n" "no" >&6; } 14327fi 14328 14329 14330fi 14331if test -z "$ac_cv_prog_DSYMUTIL"; then 14332 ac_ct_DSYMUTIL=$DSYMUTIL 14333 # Extract the first word of "dsymutil", so it can be a program name with args. 14334set dummy dsymutil; ac_word=$2 14335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14336printf %s "checking for $ac_word... " >&6; } 14337if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14338then : 14339 printf %s "(cached) " >&6 14340else $as_nop 14341 if test -n "$ac_ct_DSYMUTIL"; then 14342 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14343else 14344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14345for as_dir in $PATH 14346do 14347 IFS=$as_save_IFS 14348 case $as_dir in #((( 14349 '') as_dir=./ ;; 14350 */) ;; 14351 *) as_dir=$as_dir/ ;; 14352 esac 14353 for ac_exec_ext in '' $ac_executable_extensions; do 14354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14355 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14357 break 2 14358 fi 14359done 14360 done 14361IFS=$as_save_IFS 14362 14363fi 14364fi 14365ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14366if test -n "$ac_ct_DSYMUTIL"; then 14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14368printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14369else 14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14371printf "%s\n" "no" >&6; } 14372fi 14373 14374 if test "x$ac_ct_DSYMUTIL" = x; then 14375 DSYMUTIL=":" 14376 else 14377 case $cross_compiling:$ac_tool_warned in 14378yes:) 14379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14380printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14381ac_tool_warned=yes ;; 14382esac 14383 DSYMUTIL=$ac_ct_DSYMUTIL 14384 fi 14385else 14386 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14387fi 14388 14389 if test -n "$ac_tool_prefix"; then 14390 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14391set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14393printf %s "checking for $ac_word... " >&6; } 14394if test ${ac_cv_prog_NMEDIT+y} 14395then : 14396 printf %s "(cached) " >&6 14397else $as_nop 14398 if test -n "$NMEDIT"; then 14399 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14400else 14401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14402for as_dir in $PATH 14403do 14404 IFS=$as_save_IFS 14405 case $as_dir in #((( 14406 '') as_dir=./ ;; 14407 */) ;; 14408 *) as_dir=$as_dir/ ;; 14409 esac 14410 for ac_exec_ext in '' $ac_executable_extensions; do 14411 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14412 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14414 break 2 14415 fi 14416done 14417 done 14418IFS=$as_save_IFS 14419 14420fi 14421fi 14422NMEDIT=$ac_cv_prog_NMEDIT 14423if test -n "$NMEDIT"; then 14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14425printf "%s\n" "$NMEDIT" >&6; } 14426else 14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14428printf "%s\n" "no" >&6; } 14429fi 14430 14431 14432fi 14433if test -z "$ac_cv_prog_NMEDIT"; then 14434 ac_ct_NMEDIT=$NMEDIT 14435 # Extract the first word of "nmedit", so it can be a program name with args. 14436set dummy nmedit; ac_word=$2 14437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14438printf %s "checking for $ac_word... " >&6; } 14439if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14440then : 14441 printf %s "(cached) " >&6 14442else $as_nop 14443 if test -n "$ac_ct_NMEDIT"; then 14444 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14445else 14446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14447for as_dir in $PATH 14448do 14449 IFS=$as_save_IFS 14450 case $as_dir in #((( 14451 '') as_dir=./ ;; 14452 */) ;; 14453 *) as_dir=$as_dir/ ;; 14454 esac 14455 for ac_exec_ext in '' $ac_executable_extensions; do 14456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14457 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14459 break 2 14460 fi 14461done 14462 done 14463IFS=$as_save_IFS 14464 14465fi 14466fi 14467ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14468if test -n "$ac_ct_NMEDIT"; then 14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14470printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14471else 14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14473printf "%s\n" "no" >&6; } 14474fi 14475 14476 if test "x$ac_ct_NMEDIT" = x; then 14477 NMEDIT=":" 14478 else 14479 case $cross_compiling:$ac_tool_warned in 14480yes:) 14481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14482printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14483ac_tool_warned=yes ;; 14484esac 14485 NMEDIT=$ac_ct_NMEDIT 14486 fi 14487else 14488 NMEDIT="$ac_cv_prog_NMEDIT" 14489fi 14490 14491 if test -n "$ac_tool_prefix"; then 14492 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14493set dummy ${ac_tool_prefix}lipo; ac_word=$2 14494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14495printf %s "checking for $ac_word... " >&6; } 14496if test ${ac_cv_prog_LIPO+y} 14497then : 14498 printf %s "(cached) " >&6 14499else $as_nop 14500 if test -n "$LIPO"; then 14501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14502else 14503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14504for as_dir in $PATH 14505do 14506 IFS=$as_save_IFS 14507 case $as_dir in #((( 14508 '') as_dir=./ ;; 14509 */) ;; 14510 *) as_dir=$as_dir/ ;; 14511 esac 14512 for ac_exec_ext in '' $ac_executable_extensions; do 14513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14514 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14516 break 2 14517 fi 14518done 14519 done 14520IFS=$as_save_IFS 14521 14522fi 14523fi 14524LIPO=$ac_cv_prog_LIPO 14525if test -n "$LIPO"; then 14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14527printf "%s\n" "$LIPO" >&6; } 14528else 14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14530printf "%s\n" "no" >&6; } 14531fi 14532 14533 14534fi 14535if test -z "$ac_cv_prog_LIPO"; then 14536 ac_ct_LIPO=$LIPO 14537 # Extract the first word of "lipo", so it can be a program name with args. 14538set dummy lipo; ac_word=$2 14539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14540printf %s "checking for $ac_word... " >&6; } 14541if test ${ac_cv_prog_ac_ct_LIPO+y} 14542then : 14543 printf %s "(cached) " >&6 14544else $as_nop 14545 if test -n "$ac_ct_LIPO"; then 14546 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14547else 14548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14549for as_dir in $PATH 14550do 14551 IFS=$as_save_IFS 14552 case $as_dir in #((( 14553 '') as_dir=./ ;; 14554 */) ;; 14555 *) as_dir=$as_dir/ ;; 14556 esac 14557 for ac_exec_ext in '' $ac_executable_extensions; do 14558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14559 ac_cv_prog_ac_ct_LIPO="lipo" 14560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14561 break 2 14562 fi 14563done 14564 done 14565IFS=$as_save_IFS 14566 14567fi 14568fi 14569ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14570if test -n "$ac_ct_LIPO"; then 14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14572printf "%s\n" "$ac_ct_LIPO" >&6; } 14573else 14574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14575printf "%s\n" "no" >&6; } 14576fi 14577 14578 if test "x$ac_ct_LIPO" = x; then 14579 LIPO=":" 14580 else 14581 case $cross_compiling:$ac_tool_warned in 14582yes:) 14583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14584printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14585ac_tool_warned=yes ;; 14586esac 14587 LIPO=$ac_ct_LIPO 14588 fi 14589else 14590 LIPO="$ac_cv_prog_LIPO" 14591fi 14592 14593 if test -n "$ac_tool_prefix"; then 14594 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14595set dummy ${ac_tool_prefix}otool; ac_word=$2 14596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14597printf %s "checking for $ac_word... " >&6; } 14598if test ${ac_cv_prog_OTOOL+y} 14599then : 14600 printf %s "(cached) " >&6 14601else $as_nop 14602 if test -n "$OTOOL"; then 14603 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14604else 14605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14606for as_dir in $PATH 14607do 14608 IFS=$as_save_IFS 14609 case $as_dir in #((( 14610 '') as_dir=./ ;; 14611 */) ;; 14612 *) as_dir=$as_dir/ ;; 14613 esac 14614 for ac_exec_ext in '' $ac_executable_extensions; do 14615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14616 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14618 break 2 14619 fi 14620done 14621 done 14622IFS=$as_save_IFS 14623 14624fi 14625fi 14626OTOOL=$ac_cv_prog_OTOOL 14627if test -n "$OTOOL"; then 14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14629printf "%s\n" "$OTOOL" >&6; } 14630else 14631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14632printf "%s\n" "no" >&6; } 14633fi 14634 14635 14636fi 14637if test -z "$ac_cv_prog_OTOOL"; then 14638 ac_ct_OTOOL=$OTOOL 14639 # Extract the first word of "otool", so it can be a program name with args. 14640set dummy otool; ac_word=$2 14641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14642printf %s "checking for $ac_word... " >&6; } 14643if test ${ac_cv_prog_ac_ct_OTOOL+y} 14644then : 14645 printf %s "(cached) " >&6 14646else $as_nop 14647 if test -n "$ac_ct_OTOOL"; then 14648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14649else 14650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14651for as_dir in $PATH 14652do 14653 IFS=$as_save_IFS 14654 case $as_dir in #((( 14655 '') as_dir=./ ;; 14656 */) ;; 14657 *) as_dir=$as_dir/ ;; 14658 esac 14659 for ac_exec_ext in '' $ac_executable_extensions; do 14660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14661 ac_cv_prog_ac_ct_OTOOL="otool" 14662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14663 break 2 14664 fi 14665done 14666 done 14667IFS=$as_save_IFS 14668 14669fi 14670fi 14671ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14672if test -n "$ac_ct_OTOOL"; then 14673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14674printf "%s\n" "$ac_ct_OTOOL" >&6; } 14675else 14676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14677printf "%s\n" "no" >&6; } 14678fi 14679 14680 if test "x$ac_ct_OTOOL" = x; then 14681 OTOOL=":" 14682 else 14683 case $cross_compiling:$ac_tool_warned in 14684yes:) 14685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14686printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14687ac_tool_warned=yes ;; 14688esac 14689 OTOOL=$ac_ct_OTOOL 14690 fi 14691else 14692 OTOOL="$ac_cv_prog_OTOOL" 14693fi 14694 14695 if test -n "$ac_tool_prefix"; then 14696 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14697set dummy ${ac_tool_prefix}otool64; ac_word=$2 14698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14699printf %s "checking for $ac_word... " >&6; } 14700if test ${ac_cv_prog_OTOOL64+y} 14701then : 14702 printf %s "(cached) " >&6 14703else $as_nop 14704 if test -n "$OTOOL64"; then 14705 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14706else 14707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14708for as_dir in $PATH 14709do 14710 IFS=$as_save_IFS 14711 case $as_dir in #((( 14712 '') as_dir=./ ;; 14713 */) ;; 14714 *) as_dir=$as_dir/ ;; 14715 esac 14716 for ac_exec_ext in '' $ac_executable_extensions; do 14717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14718 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14720 break 2 14721 fi 14722done 14723 done 14724IFS=$as_save_IFS 14725 14726fi 14727fi 14728OTOOL64=$ac_cv_prog_OTOOL64 14729if test -n "$OTOOL64"; then 14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14731printf "%s\n" "$OTOOL64" >&6; } 14732else 14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14734printf "%s\n" "no" >&6; } 14735fi 14736 14737 14738fi 14739if test -z "$ac_cv_prog_OTOOL64"; then 14740 ac_ct_OTOOL64=$OTOOL64 14741 # Extract the first word of "otool64", so it can be a program name with args. 14742set dummy otool64; ac_word=$2 14743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14744printf %s "checking for $ac_word... " >&6; } 14745if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14746then : 14747 printf %s "(cached) " >&6 14748else $as_nop 14749 if test -n "$ac_ct_OTOOL64"; then 14750 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14751else 14752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14753for as_dir in $PATH 14754do 14755 IFS=$as_save_IFS 14756 case $as_dir in #((( 14757 '') as_dir=./ ;; 14758 */) ;; 14759 *) as_dir=$as_dir/ ;; 14760 esac 14761 for ac_exec_ext in '' $ac_executable_extensions; do 14762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14763 ac_cv_prog_ac_ct_OTOOL64="otool64" 14764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14765 break 2 14766 fi 14767done 14768 done 14769IFS=$as_save_IFS 14770 14771fi 14772fi 14773ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14774if test -n "$ac_ct_OTOOL64"; then 14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14776printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14777else 14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14779printf "%s\n" "no" >&6; } 14780fi 14781 14782 if test "x$ac_ct_OTOOL64" = x; then 14783 OTOOL64=":" 14784 else 14785 case $cross_compiling:$ac_tool_warned in 14786yes:) 14787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14788printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14789ac_tool_warned=yes ;; 14790esac 14791 OTOOL64=$ac_ct_OTOOL64 14792 fi 14793else 14794 OTOOL64="$ac_cv_prog_OTOOL64" 14795fi 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14824printf %s "checking for -single_module linker flag... " >&6; } 14825if test ${lt_cv_apple_cc_single_mod+y} 14826then : 14827 printf %s "(cached) " >&6 14828else $as_nop 14829 lt_cv_apple_cc_single_mod=no 14830 if test -z "$LT_MULTI_MODULE"; then 14831 # By default we will add the -single_module flag. You can override 14832 # by either setting the environment variable LT_MULTI_MODULE 14833 # non-empty at configure time, or by adding -multi_module to the 14834 # link flags. 14835 rm -rf libconftest.dylib* 14836 echo "int foo(void){return 1;}" > conftest.c 14837 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14838-dynamiclib -Wl,-single_module conftest.c" >&5 14839 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14840 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14841 _lt_result=$? 14842 # If there is a non-empty error log, and "single_module" 14843 # appears in it, assume the flag caused a linker warning 14844 if test -s conftest.err && $GREP single_module conftest.err; then 14845 cat conftest.err >&5 14846 # Otherwise, if the output was created with a 0 exit code from 14847 # the compiler, it worked. 14848 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14849 lt_cv_apple_cc_single_mod=yes 14850 else 14851 cat conftest.err >&5 14852 fi 14853 rm -rf libconftest.dylib* 14854 rm -f conftest.* 14855 fi 14856fi 14857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14858printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14859 14860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14861printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14862if test ${lt_cv_ld_exported_symbols_list+y} 14863then : 14864 printf %s "(cached) " >&6 14865else $as_nop 14866 lt_cv_ld_exported_symbols_list=no 14867 save_LDFLAGS=$LDFLAGS 14868 echo "_main" > conftest.sym 14869 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14871/* end confdefs.h. */ 14872 14873int 14874main (void) 14875{ 14876 14877 ; 14878 return 0; 14879} 14880_ACEOF 14881if ac_fn_c_try_link "$LINENO" 14882then : 14883 lt_cv_ld_exported_symbols_list=yes 14884else $as_nop 14885 lt_cv_ld_exported_symbols_list=no 14886fi 14887rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14888 conftest$ac_exeext conftest.$ac_ext 14889 LDFLAGS=$save_LDFLAGS 14890 14891fi 14892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14893printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14894 14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14896printf %s "checking for -force_load linker flag... " >&6; } 14897if test ${lt_cv_ld_force_load+y} 14898then : 14899 printf %s "(cached) " >&6 14900else $as_nop 14901 lt_cv_ld_force_load=no 14902 cat > conftest.c << _LT_EOF 14903int forced_loaded() { return 2;} 14904_LT_EOF 14905 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14906 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14907 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14908 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14909 echo "$RANLIB libconftest.a" >&5 14910 $RANLIB libconftest.a 2>&5 14911 cat > conftest.c << _LT_EOF 14912int main() { return 0;} 14913_LT_EOF 14914 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14915 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14916 _lt_result=$? 14917 if test -s conftest.err && $GREP force_load conftest.err; then 14918 cat conftest.err >&5 14919 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14920 lt_cv_ld_force_load=yes 14921 else 14922 cat conftest.err >&5 14923 fi 14924 rm -f conftest.err libconftest.a conftest conftest.c 14925 rm -rf conftest.dSYM 14926 14927fi 14928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14929printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14930 case $host_os in 14931 rhapsody* | darwin1.[012]) 14932 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14933 darwin1.*) 14934 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14935 darwin*) 14936 case $MACOSX_DEPLOYMENT_TARGET,$host in 14937 10.[012],*|,*powerpc*-darwin[5-8]*) 14938 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14939 *) 14940 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14941 esac 14942 ;; 14943 esac 14944 if test yes = "$lt_cv_apple_cc_single_mod"; then 14945 _lt_dar_single_mod='$single_module' 14946 fi 14947 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14948 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14949 else 14950 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14951 fi 14952 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14953 _lt_dsymutil='~$DSYMUTIL $lib || :' 14954 else 14955 _lt_dsymutil= 14956 fi 14957 ;; 14958 esac 14959 14960# func_munge_path_list VARIABLE PATH 14961# ----------------------------------- 14962# VARIABLE is name of variable containing _space_ separated list of 14963# directories to be munged by the contents of PATH, which is string 14964# having a format: 14965# "DIR[:DIR]:" 14966# string "DIR[ DIR]" will be prepended to VARIABLE 14967# ":DIR[:DIR]" 14968# string "DIR[ DIR]" will be appended to VARIABLE 14969# "DIRP[:DIRP]::[DIRA:]DIRA" 14970# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14971# "DIRA[ DIRA]" will be appended to VARIABLE 14972# "DIR[:DIR]" 14973# VARIABLE will be replaced by "DIR[ DIR]" 14974func_munge_path_list () 14975{ 14976 case x$2 in 14977 x) 14978 ;; 14979 *:) 14980 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14981 ;; 14982 x:*) 14983 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14984 ;; 14985 *::*) 14986 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14987 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14988 ;; 14989 *) 14990 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14991 ;; 14992 esac 14993} 14994 14995ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14996" 14997if test "x$ac_cv_header_dlfcn_h" = xyes 14998then : 14999 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15000 15001fi 15002 15003 15004 15005 15006 15007# Set options 15008 15009 15010 15011 enable_dlopen=no 15012 15013 15014 enable_win32_dll=no 15015 15016 15017 # Check whether --enable-shared was given. 15018if test ${enable_shared+y} 15019then : 15020 enableval=$enable_shared; p=${PACKAGE-default} 15021 case $enableval in 15022 yes) enable_shared=yes ;; 15023 no) enable_shared=no ;; 15024 *) 15025 enable_shared=no 15026 # Look at the argument we got. We use all the common list separators. 15027 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15028 for pkg in $enableval; do 15029 IFS=$lt_save_ifs 15030 if test "X$pkg" = "X$p"; then 15031 enable_shared=yes 15032 fi 15033 done 15034 IFS=$lt_save_ifs 15035 ;; 15036 esac 15037else $as_nop 15038 enable_shared=yes 15039fi 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051# Check whether --with-pic was given. 15052if test ${with_pic+y} 15053then : 15054 withval=$with_pic; lt_p=${PACKAGE-default} 15055 case $withval in 15056 yes|no) pic_mode=$withval ;; 15057 *) 15058 pic_mode=default 15059 # Look at the argument we got. We use all the common list separators. 15060 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15061 for lt_pkg in $withval; do 15062 IFS=$lt_save_ifs 15063 if test "X$lt_pkg" = "X$lt_p"; then 15064 pic_mode=yes 15065 fi 15066 done 15067 IFS=$lt_save_ifs 15068 ;; 15069 esac 15070else $as_nop 15071 pic_mode=default 15072fi 15073 15074 15075 15076 15077 15078 15079 15080 15081 # Check whether --enable-fast-install was given. 15082if test ${enable_fast_install+y} 15083then : 15084 enableval=$enable_fast_install; p=${PACKAGE-default} 15085 case $enableval in 15086 yes) enable_fast_install=yes ;; 15087 no) enable_fast_install=no ;; 15088 *) 15089 enable_fast_install=no 15090 # Look at the argument we got. We use all the common list separators. 15091 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15092 for pkg in $enableval; do 15093 IFS=$lt_save_ifs 15094 if test "X$pkg" = "X$p"; then 15095 enable_fast_install=yes 15096 fi 15097 done 15098 IFS=$lt_save_ifs 15099 ;; 15100 esac 15101else $as_nop 15102 enable_fast_install=yes 15103fi 15104 15105 15106 15107 15108 15109 15110 15111 15112 shared_archive_member_spec= 15113case $host,$enable_shared in 15114power*-*-aix[5-9]*,yes) 15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15116printf %s "checking which variant of shared library versioning to provide... " >&6; } 15117 15118# Check whether --with-aix-soname was given. 15119if test ${with_aix_soname+y} 15120then : 15121 withval=$with_aix_soname; case $withval in 15122 aix|svr4|both) 15123 ;; 15124 *) 15125 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15126 ;; 15127 esac 15128 lt_cv_with_aix_soname=$with_aix_soname 15129else $as_nop 15130 if test ${lt_cv_with_aix_soname+y} 15131then : 15132 printf %s "(cached) " >&6 15133else $as_nop 15134 lt_cv_with_aix_soname=aix 15135fi 15136 15137 with_aix_soname=$lt_cv_with_aix_soname 15138fi 15139 15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15141printf "%s\n" "$with_aix_soname" >&6; } 15142 if test aix != "$with_aix_soname"; then 15143 # For the AIX way of multilib, we name the shared archive member 15144 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15145 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15146 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15147 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15148 if test 64 = "${OBJECT_MODE-32}"; then 15149 shared_archive_member_spec=shr_64 15150 else 15151 shared_archive_member_spec=shr 15152 fi 15153 fi 15154 ;; 15155*) 15156 with_aix_soname=aix 15157 ;; 15158esac 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169# This can be used to rebuild libtool when needed 15170LIBTOOL_DEPS=$ltmain 15171 15172# Always use our own libtool. 15173LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204test -z "$LN_S" && LN_S="ln -s" 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219if test -n "${ZSH_VERSION+set}"; then 15220 setopt NO_GLOB_SUBST 15221fi 15222 15223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15224printf %s "checking for objdir... " >&6; } 15225if test ${lt_cv_objdir+y} 15226then : 15227 printf %s "(cached) " >&6 15228else $as_nop 15229 rm -f .libs 2>/dev/null 15230mkdir .libs 2>/dev/null 15231if test -d .libs; then 15232 lt_cv_objdir=.libs 15233else 15234 # MS-DOS does not allow filenames that begin with a dot. 15235 lt_cv_objdir=_libs 15236fi 15237rmdir .libs 2>/dev/null 15238fi 15239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15240printf "%s\n" "$lt_cv_objdir" >&6; } 15241objdir=$lt_cv_objdir 15242 15243 15244 15245 15246 15247printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15248 15249 15250 15251 15252case $host_os in 15253aix3*) 15254 # AIX sometimes has problems with the GCC collect2 program. For some 15255 # reason, if we set the COLLECT_NAMES environment variable, the problems 15256 # vanish in a puff of smoke. 15257 if test set != "${COLLECT_NAMES+set}"; then 15258 COLLECT_NAMES= 15259 export COLLECT_NAMES 15260 fi 15261 ;; 15262esac 15263 15264# Global variables: 15265ofile=libtool 15266can_build_shared=yes 15267 15268# All known linkers require a '.a' archive for static linking (except MSVC and 15269# ICC, which need '.lib'). 15270libext=a 15271 15272with_gnu_ld=$lt_cv_prog_gnu_ld 15273 15274old_CC=$CC 15275old_CFLAGS=$CFLAGS 15276 15277# Set sane defaults for various variables 15278test -z "$CC" && CC=cc 15279test -z "$LTCC" && LTCC=$CC 15280test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15281test -z "$LD" && LD=ld 15282test -z "$ac_objext" && ac_objext=o 15283 15284func_cc_basename $compiler 15285cc_basename=$func_cc_basename_result 15286 15287 15288# Only perform the check for file, if the check method requires it 15289test -z "$MAGIC_CMD" && MAGIC_CMD=file 15290case $deplibs_check_method in 15291file_magic*) 15292 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15294printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15295if test ${lt_cv_path_MAGIC_CMD+y} 15296then : 15297 printf %s "(cached) " >&6 15298else $as_nop 15299 case $MAGIC_CMD in 15300[\\/*] | ?:[\\/]*) 15301 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15302 ;; 15303*) 15304 lt_save_MAGIC_CMD=$MAGIC_CMD 15305 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15307 for ac_dir in $ac_dummy; do 15308 IFS=$lt_save_ifs 15309 test -z "$ac_dir" && ac_dir=. 15310 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15311 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15312 if test -n "$file_magic_test_file"; then 15313 case $deplibs_check_method in 15314 "file_magic "*) 15315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15316 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15318 $EGREP "$file_magic_regex" > /dev/null; then 15319 : 15320 else 15321 cat <<_LT_EOF 1>&2 15322 15323*** Warning: the command libtool uses to detect shared libraries, 15324*** $file_magic_cmd, produces output that libtool cannot recognize. 15325*** The result is that libtool may fail to recognize shared libraries 15326*** as such. This will affect the creation of libtool libraries that 15327*** depend on shared libraries, but programs linked with such libtool 15328*** libraries will work regardless of this problem. Nevertheless, you 15329*** may want to report the problem to your system manager and/or to 15330*** bug-libtool@gnu.org 15331 15332_LT_EOF 15333 fi ;; 15334 esac 15335 fi 15336 break 15337 fi 15338 done 15339 IFS=$lt_save_ifs 15340 MAGIC_CMD=$lt_save_MAGIC_CMD 15341 ;; 15342esac 15343fi 15344 15345MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15346if test -n "$MAGIC_CMD"; then 15347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15348printf "%s\n" "$MAGIC_CMD" >&6; } 15349else 15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15351printf "%s\n" "no" >&6; } 15352fi 15353 15354 15355 15356 15357 15358if test -z "$lt_cv_path_MAGIC_CMD"; then 15359 if test -n "$ac_tool_prefix"; then 15360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15361printf %s "checking for file... " >&6; } 15362if test ${lt_cv_path_MAGIC_CMD+y} 15363then : 15364 printf %s "(cached) " >&6 15365else $as_nop 15366 case $MAGIC_CMD in 15367[\\/*] | ?:[\\/]*) 15368 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15369 ;; 15370*) 15371 lt_save_MAGIC_CMD=$MAGIC_CMD 15372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15374 for ac_dir in $ac_dummy; do 15375 IFS=$lt_save_ifs 15376 test -z "$ac_dir" && ac_dir=. 15377 if test -f "$ac_dir/file"; then 15378 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15379 if test -n "$file_magic_test_file"; then 15380 case $deplibs_check_method in 15381 "file_magic "*) 15382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15383 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15385 $EGREP "$file_magic_regex" > /dev/null; then 15386 : 15387 else 15388 cat <<_LT_EOF 1>&2 15389 15390*** Warning: the command libtool uses to detect shared libraries, 15391*** $file_magic_cmd, produces output that libtool cannot recognize. 15392*** The result is that libtool may fail to recognize shared libraries 15393*** as such. This will affect the creation of libtool libraries that 15394*** depend on shared libraries, but programs linked with such libtool 15395*** libraries will work regardless of this problem. Nevertheless, you 15396*** may want to report the problem to your system manager and/or to 15397*** bug-libtool@gnu.org 15398 15399_LT_EOF 15400 fi ;; 15401 esac 15402 fi 15403 break 15404 fi 15405 done 15406 IFS=$lt_save_ifs 15407 MAGIC_CMD=$lt_save_MAGIC_CMD 15408 ;; 15409esac 15410fi 15411 15412MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15413if test -n "$MAGIC_CMD"; then 15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15415printf "%s\n" "$MAGIC_CMD" >&6; } 15416else 15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15418printf "%s\n" "no" >&6; } 15419fi 15420 15421 15422 else 15423 MAGIC_CMD=: 15424 fi 15425fi 15426 15427 fi 15428 ;; 15429esac 15430 15431# Use C for the default configuration in the libtool script 15432 15433lt_save_CC=$CC 15434ac_ext=c 15435ac_cpp='$CPP $CPPFLAGS' 15436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15438ac_compiler_gnu=$ac_cv_c_compiler_gnu 15439 15440 15441# Source file extension for C test sources. 15442ac_ext=c 15443 15444# Object file extension for compiled C test sources. 15445objext=o 15446objext=$objext 15447 15448# Code to be used in simple compile tests 15449lt_simple_compile_test_code="int some_variable = 0;" 15450 15451# Code to be used in simple link tests 15452lt_simple_link_test_code='int main(){return(0);}' 15453 15454 15455 15456 15457 15458 15459 15460# If no C compiler was specified, use CC. 15461LTCC=${LTCC-"$CC"} 15462 15463# If no C compiler flags were specified, use CFLAGS. 15464LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15465 15466# Allow CC to be a program name with arguments. 15467compiler=$CC 15468 15469# Save the default compiler, since it gets overwritten when the other 15470# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15471compiler_DEFAULT=$CC 15472 15473# save warnings/boilerplate of simple test code 15474ac_outfile=conftest.$ac_objext 15475echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15476eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15477_lt_compiler_boilerplate=`cat conftest.err` 15478$RM conftest* 15479 15480ac_outfile=conftest.$ac_objext 15481echo "$lt_simple_link_test_code" >conftest.$ac_ext 15482eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15483_lt_linker_boilerplate=`cat conftest.err` 15484$RM -r conftest* 15485 15486 15487if test -n "$compiler"; then 15488 15489lt_prog_compiler_no_builtin_flag= 15490 15491if test yes = "$GCC"; then 15492 case $cc_basename in 15493 nvcc*) 15494 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15495 *) 15496 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15497 esac 15498 15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15500printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15501if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15502then : 15503 printf %s "(cached) " >&6 15504else $as_nop 15505 lt_cv_prog_compiler_rtti_exceptions=no 15506 ac_outfile=conftest.$ac_objext 15507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15508 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15509 # Insert the option either (1) after the last *FLAGS variable, or 15510 # (2) before a word containing "conftest.", or (3) at the end. 15511 # Note that $ac_compile itself does not contain backslashes and begins 15512 # with a dollar sign (not a hyphen), so the echo should work correctly. 15513 # The option is referenced via a variable to avoid confusing sed. 15514 lt_compile=`echo "$ac_compile" | $SED \ 15515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15517 -e 's:$: $lt_compiler_flag:'` 15518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15519 (eval "$lt_compile" 2>conftest.err) 15520 ac_status=$? 15521 cat conftest.err >&5 15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15523 if (exit $ac_status) && test -s "$ac_outfile"; then 15524 # The compiler can only warn and ignore the option if not recognized 15525 # So say no if there are warnings other than the usual output. 15526 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15528 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15529 lt_cv_prog_compiler_rtti_exceptions=yes 15530 fi 15531 fi 15532 $RM conftest* 15533 15534fi 15535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15536printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15537 15538if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15539 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15540else 15541 : 15542fi 15543 15544fi 15545 15546 15547 15548 15549 15550 15551 lt_prog_compiler_wl= 15552lt_prog_compiler_pic= 15553lt_prog_compiler_static= 15554 15555 15556 if test yes = "$GCC"; then 15557 lt_prog_compiler_wl='-Wl,' 15558 lt_prog_compiler_static='-static' 15559 15560 case $host_os in 15561 aix*) 15562 # All AIX code is PIC. 15563 if test ia64 = "$host_cpu"; then 15564 # AIX 5 now supports IA64 processor 15565 lt_prog_compiler_static='-Bstatic' 15566 fi 15567 lt_prog_compiler_pic='-fPIC' 15568 ;; 15569 15570 amigaos*) 15571 case $host_cpu in 15572 powerpc) 15573 # see comment about AmigaOS4 .so support 15574 lt_prog_compiler_pic='-fPIC' 15575 ;; 15576 m68k) 15577 # FIXME: we need at least 68020 code to build shared libraries, but 15578 # adding the '-m68020' flag to GCC prevents building anything better, 15579 # like '-m68040'. 15580 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15581 ;; 15582 esac 15583 ;; 15584 15585 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15586 # PIC is the default for these OSes. 15587 ;; 15588 15589 mingw* | cygwin* | pw32* | os2* | cegcc*) 15590 # This hack is so that the source file can tell whether it is being 15591 # built for inclusion in a dll (and should export symbols for example). 15592 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15593 # (--disable-auto-import) libraries 15594 lt_prog_compiler_pic='-DDLL_EXPORT' 15595 case $host_os in 15596 os2*) 15597 lt_prog_compiler_static='$wl-static' 15598 ;; 15599 esac 15600 ;; 15601 15602 darwin* | rhapsody*) 15603 # PIC is the default on this platform 15604 # Common symbols not allowed in MH_DYLIB files 15605 lt_prog_compiler_pic='-fno-common' 15606 ;; 15607 15608 haiku*) 15609 # PIC is the default for Haiku. 15610 # The "-static" flag exists, but is broken. 15611 lt_prog_compiler_static= 15612 ;; 15613 15614 hpux*) 15615 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15616 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15617 # sets the default TLS model and affects inlining. 15618 case $host_cpu in 15619 hppa*64*) 15620 # +Z the default 15621 ;; 15622 *) 15623 lt_prog_compiler_pic='-fPIC' 15624 ;; 15625 esac 15626 ;; 15627 15628 interix[3-9]*) 15629 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15630 # Instead, we relocate shared libraries at runtime. 15631 ;; 15632 15633 msdosdjgpp*) 15634 # Just because we use GCC doesn't mean we suddenly get shared libraries 15635 # on systems that don't support them. 15636 lt_prog_compiler_can_build_shared=no 15637 enable_shared=no 15638 ;; 15639 15640 *nto* | *qnx*) 15641 # QNX uses GNU C++, but need to define -shared option too, otherwise 15642 # it will coredump. 15643 lt_prog_compiler_pic='-fPIC -shared' 15644 ;; 15645 15646 sysv4*MP*) 15647 if test -d /usr/nec; then 15648 lt_prog_compiler_pic=-Kconform_pic 15649 fi 15650 ;; 15651 15652 *) 15653 lt_prog_compiler_pic='-fPIC' 15654 ;; 15655 esac 15656 15657 case $cc_basename in 15658 nvcc*) # Cuda Compiler Driver 2.2 15659 lt_prog_compiler_wl='-Xlinker ' 15660 if test -n "$lt_prog_compiler_pic"; then 15661 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15662 fi 15663 ;; 15664 esac 15665 else 15666 # PORTME Check for flag to pass linker flags through the system compiler. 15667 case $host_os in 15668 aix*) 15669 lt_prog_compiler_wl='-Wl,' 15670 if test ia64 = "$host_cpu"; then 15671 # AIX 5 now supports IA64 processor 15672 lt_prog_compiler_static='-Bstatic' 15673 else 15674 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15675 fi 15676 ;; 15677 15678 darwin* | rhapsody*) 15679 # PIC is the default on this platform 15680 # Common symbols not allowed in MH_DYLIB files 15681 lt_prog_compiler_pic='-fno-common' 15682 case $cc_basename in 15683 nagfor*) 15684 # NAG Fortran compiler 15685 lt_prog_compiler_wl='-Wl,-Wl,,' 15686 lt_prog_compiler_pic='-PIC' 15687 lt_prog_compiler_static='-Bstatic' 15688 ;; 15689 esac 15690 ;; 15691 15692 mingw* | cygwin* | pw32* | os2* | cegcc*) 15693 # This hack is so that the source file can tell whether it is being 15694 # built for inclusion in a dll (and should export symbols for example). 15695 lt_prog_compiler_pic='-DDLL_EXPORT' 15696 case $host_os in 15697 os2*) 15698 lt_prog_compiler_static='$wl-static' 15699 ;; 15700 esac 15701 ;; 15702 15703 hpux9* | hpux10* | hpux11*) 15704 lt_prog_compiler_wl='-Wl,' 15705 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15706 # not for PA HP-UX. 15707 case $host_cpu in 15708 hppa*64*|ia64*) 15709 # +Z the default 15710 ;; 15711 *) 15712 lt_prog_compiler_pic='+Z' 15713 ;; 15714 esac 15715 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15716 lt_prog_compiler_static='$wl-a ${wl}archive' 15717 ;; 15718 15719 irix5* | irix6* | nonstopux*) 15720 lt_prog_compiler_wl='-Wl,' 15721 # PIC (with -KPIC) is the default. 15722 lt_prog_compiler_static='-non_shared' 15723 ;; 15724 15725 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15726 case $cc_basename in 15727 # old Intel for x86_64, which still supported -KPIC. 15728 ecc*) 15729 lt_prog_compiler_wl='-Wl,' 15730 lt_prog_compiler_pic='-KPIC' 15731 lt_prog_compiler_static='-static' 15732 ;; 15733 # icc used to be incompatible with GCC. 15734 # ICC 10 doesn't accept -KPIC any more. 15735 icc* | ifort*) 15736 lt_prog_compiler_wl='-Wl,' 15737 lt_prog_compiler_pic='-fPIC' 15738 lt_prog_compiler_static='-static' 15739 ;; 15740 # Lahey Fortran 8.1. 15741 lf95*) 15742 lt_prog_compiler_wl='-Wl,' 15743 lt_prog_compiler_pic='--shared' 15744 lt_prog_compiler_static='--static' 15745 ;; 15746 nagfor*) 15747 # NAG Fortran compiler 15748 lt_prog_compiler_wl='-Wl,-Wl,,' 15749 lt_prog_compiler_pic='-PIC' 15750 lt_prog_compiler_static='-Bstatic' 15751 ;; 15752 tcc*) 15753 # Fabrice Bellard et al's Tiny C Compiler 15754 lt_prog_compiler_wl='-Wl,' 15755 lt_prog_compiler_pic='-fPIC' 15756 lt_prog_compiler_static='-static' 15757 ;; 15758 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15759 # Portland Group compilers (*not* the Pentium gcc compiler, 15760 # which looks to be a dead project) 15761 lt_prog_compiler_wl='-Wl,' 15762 lt_prog_compiler_pic='-fpic' 15763 lt_prog_compiler_static='-Bstatic' 15764 ;; 15765 ccc*) 15766 lt_prog_compiler_wl='-Wl,' 15767 # All Alpha code is PIC. 15768 lt_prog_compiler_static='-non_shared' 15769 ;; 15770 xl* | bgxl* | bgf* | mpixl*) 15771 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15772 lt_prog_compiler_wl='-Wl,' 15773 lt_prog_compiler_pic='-qpic' 15774 lt_prog_compiler_static='-qstaticlink' 15775 ;; 15776 *) 15777 case `$CC -V 2>&1 | $SED 5q` in 15778 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15779 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15780 lt_prog_compiler_pic='-KPIC' 15781 lt_prog_compiler_static='-Bstatic' 15782 lt_prog_compiler_wl='' 15783 ;; 15784 *Sun\ F* | *Sun*Fortran*) 15785 lt_prog_compiler_pic='-KPIC' 15786 lt_prog_compiler_static='-Bstatic' 15787 lt_prog_compiler_wl='-Qoption ld ' 15788 ;; 15789 *Sun\ C*) 15790 # Sun C 5.9 15791 lt_prog_compiler_pic='-KPIC' 15792 lt_prog_compiler_static='-Bstatic' 15793 lt_prog_compiler_wl='-Wl,' 15794 ;; 15795 *Intel*\ [CF]*Compiler*) 15796 lt_prog_compiler_wl='-Wl,' 15797 lt_prog_compiler_pic='-fPIC' 15798 lt_prog_compiler_static='-static' 15799 ;; 15800 *Portland\ Group*) 15801 lt_prog_compiler_wl='-Wl,' 15802 lt_prog_compiler_pic='-fpic' 15803 lt_prog_compiler_static='-Bstatic' 15804 ;; 15805 esac 15806 ;; 15807 esac 15808 ;; 15809 15810 newsos6) 15811 lt_prog_compiler_pic='-KPIC' 15812 lt_prog_compiler_static='-Bstatic' 15813 ;; 15814 15815 *nto* | *qnx*) 15816 # QNX uses GNU C++, but need to define -shared option too, otherwise 15817 # it will coredump. 15818 lt_prog_compiler_pic='-fPIC -shared' 15819 ;; 15820 15821 osf3* | osf4* | osf5*) 15822 lt_prog_compiler_wl='-Wl,' 15823 # All OSF/1 code is PIC. 15824 lt_prog_compiler_static='-non_shared' 15825 ;; 15826 15827 rdos*) 15828 lt_prog_compiler_static='-non_shared' 15829 ;; 15830 15831 solaris*) 15832 lt_prog_compiler_pic='-KPIC' 15833 lt_prog_compiler_static='-Bstatic' 15834 case $cc_basename in 15835 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15836 lt_prog_compiler_wl='-Qoption ld ';; 15837 *) 15838 lt_prog_compiler_wl='-Wl,';; 15839 esac 15840 ;; 15841 15842 sunos4*) 15843 lt_prog_compiler_wl='-Qoption ld ' 15844 lt_prog_compiler_pic='-PIC' 15845 lt_prog_compiler_static='-Bstatic' 15846 ;; 15847 15848 sysv4 | sysv4.2uw2* | sysv4.3*) 15849 lt_prog_compiler_wl='-Wl,' 15850 lt_prog_compiler_pic='-KPIC' 15851 lt_prog_compiler_static='-Bstatic' 15852 ;; 15853 15854 sysv4*MP*) 15855 if test -d /usr/nec; then 15856 lt_prog_compiler_pic='-Kconform_pic' 15857 lt_prog_compiler_static='-Bstatic' 15858 fi 15859 ;; 15860 15861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15862 lt_prog_compiler_wl='-Wl,' 15863 lt_prog_compiler_pic='-KPIC' 15864 lt_prog_compiler_static='-Bstatic' 15865 ;; 15866 15867 unicos*) 15868 lt_prog_compiler_wl='-Wl,' 15869 lt_prog_compiler_can_build_shared=no 15870 ;; 15871 15872 uts4*) 15873 lt_prog_compiler_pic='-pic' 15874 lt_prog_compiler_static='-Bstatic' 15875 ;; 15876 15877 *) 15878 lt_prog_compiler_can_build_shared=no 15879 ;; 15880 esac 15881 fi 15882 15883case $host_os in 15884 # For platforms that do not support PIC, -DPIC is meaningless: 15885 *djgpp*) 15886 lt_prog_compiler_pic= 15887 ;; 15888 *) 15889 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15890 ;; 15891esac 15892 15893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15894printf %s "checking for $compiler option to produce PIC... " >&6; } 15895if test ${lt_cv_prog_compiler_pic+y} 15896then : 15897 printf %s "(cached) " >&6 15898else $as_nop 15899 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15900fi 15901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15902printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15903lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15904 15905# 15906# Check to make sure the PIC flag actually works. 15907# 15908if test -n "$lt_prog_compiler_pic"; then 15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15910printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15911if test ${lt_cv_prog_compiler_pic_works+y} 15912then : 15913 printf %s "(cached) " >&6 15914else $as_nop 15915 lt_cv_prog_compiler_pic_works=no 15916 ac_outfile=conftest.$ac_objext 15917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15918 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15919 # Insert the option either (1) after the last *FLAGS variable, or 15920 # (2) before a word containing "conftest.", or (3) at the end. 15921 # Note that $ac_compile itself does not contain backslashes and begins 15922 # with a dollar sign (not a hyphen), so the echo should work correctly. 15923 # The option is referenced via a variable to avoid confusing sed. 15924 lt_compile=`echo "$ac_compile" | $SED \ 15925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15927 -e 's:$: $lt_compiler_flag:'` 15928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15929 (eval "$lt_compile" 2>conftest.err) 15930 ac_status=$? 15931 cat conftest.err >&5 15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15933 if (exit $ac_status) && test -s "$ac_outfile"; then 15934 # The compiler can only warn and ignore the option if not recognized 15935 # So say no if there are warnings other than the usual output. 15936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15939 lt_cv_prog_compiler_pic_works=yes 15940 fi 15941 fi 15942 $RM conftest* 15943 15944fi 15945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15946printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15947 15948if test yes = "$lt_cv_prog_compiler_pic_works"; then 15949 case $lt_prog_compiler_pic in 15950 "" | " "*) ;; 15951 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15952 esac 15953else 15954 lt_prog_compiler_pic= 15955 lt_prog_compiler_can_build_shared=no 15956fi 15957 15958fi 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970# 15971# Check to make sure the static flag actually works. 15972# 15973wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15975printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15976if test ${lt_cv_prog_compiler_static_works+y} 15977then : 15978 printf %s "(cached) " >&6 15979else $as_nop 15980 lt_cv_prog_compiler_static_works=no 15981 save_LDFLAGS=$LDFLAGS 15982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15983 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15985 # The linker can only warn and ignore the option if not recognized 15986 # So say no if there are warnings 15987 if test -s conftest.err; then 15988 # Append any errors to the config.log. 15989 cat conftest.err 1>&5 15990 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15992 if diff conftest.exp conftest.er2 >/dev/null; then 15993 lt_cv_prog_compiler_static_works=yes 15994 fi 15995 else 15996 lt_cv_prog_compiler_static_works=yes 15997 fi 15998 fi 15999 $RM -r conftest* 16000 LDFLAGS=$save_LDFLAGS 16001 16002fi 16003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16004printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16005 16006if test yes = "$lt_cv_prog_compiler_static_works"; then 16007 : 16008else 16009 lt_prog_compiler_static= 16010fi 16011 16012 16013 16014 16015 16016 16017 16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16019printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16020if test ${lt_cv_prog_compiler_c_o+y} 16021then : 16022 printf %s "(cached) " >&6 16023else $as_nop 16024 lt_cv_prog_compiler_c_o=no 16025 $RM -r conftest 2>/dev/null 16026 mkdir conftest 16027 cd conftest 16028 mkdir out 16029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16030 16031 lt_compiler_flag="-o out/conftest2.$ac_objext" 16032 # Insert the option either (1) after the last *FLAGS variable, or 16033 # (2) before a word containing "conftest.", or (3) at the end. 16034 # Note that $ac_compile itself does not contain backslashes and begins 16035 # with a dollar sign (not a hyphen), so the echo should work correctly. 16036 lt_compile=`echo "$ac_compile" | $SED \ 16037 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16038 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16039 -e 's:$: $lt_compiler_flag:'` 16040 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16041 (eval "$lt_compile" 2>out/conftest.err) 16042 ac_status=$? 16043 cat out/conftest.err >&5 16044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16045 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16046 then 16047 # The compiler can only warn and ignore the option if not recognized 16048 # So say no if there are warnings 16049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16050 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16051 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16052 lt_cv_prog_compiler_c_o=yes 16053 fi 16054 fi 16055 chmod u+w . 2>&5 16056 $RM conftest* 16057 # SGI C++ compiler will create directory out/ii_files/ for 16058 # template instantiation 16059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16060 $RM out/* && rmdir out 16061 cd .. 16062 $RM -r conftest 16063 $RM conftest* 16064 16065fi 16066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16067printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16068 16069 16070 16071 16072 16073 16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16075printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16076if test ${lt_cv_prog_compiler_c_o+y} 16077then : 16078 printf %s "(cached) " >&6 16079else $as_nop 16080 lt_cv_prog_compiler_c_o=no 16081 $RM -r conftest 2>/dev/null 16082 mkdir conftest 16083 cd conftest 16084 mkdir out 16085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16086 16087 lt_compiler_flag="-o out/conftest2.$ac_objext" 16088 # Insert the option either (1) after the last *FLAGS variable, or 16089 # (2) before a word containing "conftest.", or (3) at the end. 16090 # Note that $ac_compile itself does not contain backslashes and begins 16091 # with a dollar sign (not a hyphen), so the echo should work correctly. 16092 lt_compile=`echo "$ac_compile" | $SED \ 16093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16095 -e 's:$: $lt_compiler_flag:'` 16096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16097 (eval "$lt_compile" 2>out/conftest.err) 16098 ac_status=$? 16099 cat out/conftest.err >&5 16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16101 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16102 then 16103 # The compiler can only warn and ignore the option if not recognized 16104 # So say no if there are warnings 16105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16108 lt_cv_prog_compiler_c_o=yes 16109 fi 16110 fi 16111 chmod u+w . 2>&5 16112 $RM conftest* 16113 # SGI C++ compiler will create directory out/ii_files/ for 16114 # template instantiation 16115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16116 $RM out/* && rmdir out 16117 cd .. 16118 $RM -r conftest 16119 $RM conftest* 16120 16121fi 16122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16123printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16124 16125 16126 16127 16128hard_links=nottested 16129if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16130 # do not overwrite the value of need_locks provided by the user 16131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16132printf %s "checking if we can lock with hard links... " >&6; } 16133 hard_links=yes 16134 $RM conftest* 16135 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16136 touch conftest.a 16137 ln conftest.a conftest.b 2>&5 || hard_links=no 16138 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16140printf "%s\n" "$hard_links" >&6; } 16141 if test no = "$hard_links"; then 16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16143printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16144 need_locks=warn 16145 fi 16146else 16147 need_locks=no 16148fi 16149 16150 16151 16152 16153 16154 16155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16156printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16157 16158 runpath_var= 16159 allow_undefined_flag= 16160 always_export_symbols=no 16161 archive_cmds= 16162 archive_expsym_cmds= 16163 compiler_needs_object=no 16164 enable_shared_with_static_runtimes=no 16165 export_dynamic_flag_spec= 16166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16167 hardcode_automatic=no 16168 hardcode_direct=no 16169 hardcode_direct_absolute=no 16170 hardcode_libdir_flag_spec= 16171 hardcode_libdir_separator= 16172 hardcode_minus_L=no 16173 hardcode_shlibpath_var=unsupported 16174 inherit_rpath=no 16175 link_all_deplibs=unknown 16176 module_cmds= 16177 module_expsym_cmds= 16178 old_archive_from_new_cmds= 16179 old_archive_from_expsyms_cmds= 16180 thread_safe_flag_spec= 16181 whole_archive_flag_spec= 16182 # include_expsyms should be a list of space-separated symbols to be *always* 16183 # included in the symbol list 16184 include_expsyms= 16185 # exclude_expsyms can be an extended regexp of symbols to exclude 16186 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16187 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16188 # as well as any symbol that contains 'd'. 16189 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16191 # platforms (ab)use it in PIC code, but their linkers get confused if 16192 # the symbol is explicitly referenced. Since portable code cannot 16193 # rely on this symbol name, it's probably fine to never include it in 16194 # preloaded symbol tables. 16195 # Exclude shared library initialization/finalization symbols. 16196 extract_expsyms_cmds= 16197 16198 case $host_os in 16199 cygwin* | mingw* | pw32* | cegcc*) 16200 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16201 # When not using gcc, we currently assume that we are using 16202 # Microsoft Visual C++ or Intel C++ Compiler. 16203 if test yes != "$GCC"; then 16204 with_gnu_ld=no 16205 fi 16206 ;; 16207 interix*) 16208 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16209 with_gnu_ld=yes 16210 ;; 16211 openbsd* | bitrig*) 16212 with_gnu_ld=no 16213 ;; 16214 esac 16215 16216 ld_shlibs=yes 16217 16218 # On some targets, GNU ld is compatible enough with the native linker 16219 # that we're better off using the native interface for both. 16220 lt_use_gnu_ld_interface=no 16221 if test yes = "$with_gnu_ld"; then 16222 case $host_os in 16223 aix*) 16224 # The AIX port of GNU ld has always aspired to compatibility 16225 # with the native linker. However, as the warning in the GNU ld 16226 # block says, versions before 2.19.5* couldn't really create working 16227 # shared libraries, regardless of the interface used. 16228 case `$LD -v 2>&1` in 16229 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16230 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16231 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16232 *) 16233 lt_use_gnu_ld_interface=yes 16234 ;; 16235 esac 16236 ;; 16237 *) 16238 lt_use_gnu_ld_interface=yes 16239 ;; 16240 esac 16241 fi 16242 16243 if test yes = "$lt_use_gnu_ld_interface"; then 16244 # If archive_cmds runs LD, not CC, wlarc should be empty 16245 wlarc='$wl' 16246 16247 # Set some defaults for GNU ld with shared library support. These 16248 # are reset later if shared libraries are not supported. Putting them 16249 # here allows them to be overridden if necessary. 16250 runpath_var=LD_RUN_PATH 16251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16252 export_dynamic_flag_spec='$wl--export-dynamic' 16253 # ancient GNU ld didn't support --whole-archive et. al. 16254 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16255 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16256 else 16257 whole_archive_flag_spec= 16258 fi 16259 supports_anon_versioning=no 16260 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16261 *GNU\ gold*) supports_anon_versioning=yes ;; 16262 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16263 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16264 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16265 *\ 2.11.*) ;; # other 2.11 versions 16266 *) supports_anon_versioning=yes ;; 16267 esac 16268 16269 # See if GNU ld supports shared libraries. 16270 case $host_os in 16271 aix[3-9]*) 16272 # On AIX/PPC, the GNU linker is very broken 16273 if test ia64 != "$host_cpu"; then 16274 ld_shlibs=no 16275 cat <<_LT_EOF 1>&2 16276 16277*** Warning: the GNU linker, at least up to release 2.19, is reported 16278*** to be unable to reliably create shared libraries on AIX. 16279*** Therefore, libtool is disabling shared libraries support. If you 16280*** really care for shared libraries, you may want to install binutils 16281*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16282*** You will then need to restart the configuration process. 16283 16284_LT_EOF 16285 fi 16286 ;; 16287 16288 amigaos*) 16289 case $host_cpu in 16290 powerpc) 16291 # see comment about AmigaOS4 .so support 16292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16293 archive_expsym_cmds='' 16294 ;; 16295 m68k) 16296 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)' 16297 hardcode_libdir_flag_spec='-L$libdir' 16298 hardcode_minus_L=yes 16299 ;; 16300 esac 16301 ;; 16302 16303 beos*) 16304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16305 allow_undefined_flag=unsupported 16306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16307 # support --undefined. This deserves some investigation. FIXME 16308 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16309 else 16310 ld_shlibs=no 16311 fi 16312 ;; 16313 16314 cygwin* | mingw* | pw32* | cegcc*) 16315 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16316 # as there is no search path for DLLs. 16317 hardcode_libdir_flag_spec='-L$libdir' 16318 export_dynamic_flag_spec='$wl--export-all-symbols' 16319 allow_undefined_flag=unsupported 16320 always_export_symbols=no 16321 enable_shared_with_static_runtimes=yes 16322 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' 16323 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16324 16325 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16327 # If the export-symbols file already is a .def file, use it as 16328 # is; otherwise, prepend EXPORTS... 16329 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16330 cp $export_symbols $output_objdir/$soname.def; 16331 else 16332 echo EXPORTS > $output_objdir/$soname.def; 16333 cat $export_symbols >> $output_objdir/$soname.def; 16334 fi~ 16335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16336 else 16337 ld_shlibs=no 16338 fi 16339 ;; 16340 16341 haiku*) 16342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16343 link_all_deplibs=yes 16344 ;; 16345 16346 os2*) 16347 hardcode_libdir_flag_spec='-L$libdir' 16348 hardcode_minus_L=yes 16349 allow_undefined_flag=unsupported 16350 shrext_cmds=.dll 16351 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16352 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16353 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16354 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16355 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16356 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16357 emximp -o $lib $output_objdir/$libname.def' 16358 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16361 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16362 prefix_cmds="$SED"~ 16363 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16364 prefix_cmds="$prefix_cmds -e 1d"; 16365 fi~ 16366 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16367 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16368 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16369 emximp -o $lib $output_objdir/$libname.def' 16370 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16371 enable_shared_with_static_runtimes=yes 16372 file_list_spec='@' 16373 ;; 16374 16375 interix[3-9]*) 16376 hardcode_direct=no 16377 hardcode_shlibpath_var=no 16378 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16379 export_dynamic_flag_spec='$wl-E' 16380 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16381 # Instead, shared libraries are loaded at an image base (0x10000000 by 16382 # default) and relocated if they conflict, which is a slow very memory 16383 # consuming and fragmenting process. To avoid this, we pick a random, 16384 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16385 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16386 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16387 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' 16388 ;; 16389 16390 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16391 tmp_diet=no 16392 if test linux-dietlibc = "$host_os"; then 16393 case $cc_basename in 16394 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16395 esac 16396 fi 16397 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16398 && test no = "$tmp_diet" 16399 then 16400 tmp_addflag=' $pic_flag' 16401 tmp_sharedflag='-shared' 16402 case $cc_basename,$host_cpu in 16403 pgcc*) # Portland Group C compiler 16404 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' 16405 tmp_addflag=' $pic_flag' 16406 ;; 16407 pgf77* | pgf90* | pgf95* | pgfortran*) 16408 # Portland Group f77 and f90 compilers 16409 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' 16410 tmp_addflag=' $pic_flag -Mnomain' ;; 16411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16412 tmp_addflag=' -i_dynamic' ;; 16413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16414 tmp_addflag=' -i_dynamic -nofor_main' ;; 16415 ifc* | ifort*) # Intel Fortran compiler 16416 tmp_addflag=' -nofor_main' ;; 16417 lf95*) # Lahey Fortran 8.1 16418 whole_archive_flag_spec= 16419 tmp_sharedflag='--shared' ;; 16420 nagfor*) # NAGFOR 5.3 16421 tmp_sharedflag='-Wl,-shared' ;; 16422 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16423 tmp_sharedflag='-qmkshrobj' 16424 tmp_addflag= ;; 16425 nvcc*) # Cuda Compiler Driver 2.2 16426 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' 16427 compiler_needs_object=yes 16428 ;; 16429 esac 16430 case `$CC -V 2>&1 | $SED 5q` in 16431 *Sun\ C*) # Sun C 5.9 16432 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' 16433 compiler_needs_object=yes 16434 tmp_sharedflag='-G' ;; 16435 *Sun\ F*) # Sun Fortran 8.3 16436 tmp_sharedflag='-G' ;; 16437 esac 16438 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16439 16440 if test yes = "$supports_anon_versioning"; then 16441 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16442 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16443 echo "local: *; };" >> $output_objdir/$libname.ver~ 16444 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16445 fi 16446 16447 case $cc_basename in 16448 tcc*) 16449 export_dynamic_flag_spec='-rdynamic' 16450 ;; 16451 xlf* | bgf* | bgxlf* | mpixlf*) 16452 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16453 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16455 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16456 if test yes = "$supports_anon_versioning"; then 16457 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16458 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16459 echo "local: *; };" >> $output_objdir/$libname.ver~ 16460 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16461 fi 16462 ;; 16463 esac 16464 else 16465 ld_shlibs=no 16466 fi 16467 ;; 16468 16469 netbsd*) 16470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16471 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16472 wlarc= 16473 else 16474 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16475 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16476 fi 16477 ;; 16478 16479 solaris*) 16480 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16481 ld_shlibs=no 16482 cat <<_LT_EOF 1>&2 16483 16484*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16485*** create shared libraries on Solaris systems. Therefore, libtool 16486*** is disabling shared libraries support. We urge you to upgrade GNU 16487*** binutils to release 2.9.1 or newer. Another option is to modify 16488*** your PATH or compiler configuration so that the native linker is 16489*** used, and then restart. 16490 16491_LT_EOF 16492 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16493 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16494 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16495 else 16496 ld_shlibs=no 16497 fi 16498 ;; 16499 16500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16501 case `$LD -v 2>&1` in 16502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16503 ld_shlibs=no 16504 cat <<_LT_EOF 1>&2 16505 16506*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16507*** reliably create shared libraries on SCO systems. Therefore, libtool 16508*** is disabling shared libraries support. We urge you to upgrade GNU 16509*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16510*** your PATH or compiler configuration so that the native linker is 16511*** used, and then restart. 16512 16513_LT_EOF 16514 ;; 16515 *) 16516 # For security reasons, it is highly recommended that you always 16517 # use absolute paths for naming shared libraries, and exclude the 16518 # DT_RUNPATH tag from executables and libraries. But doing so 16519 # requires that you compile everything twice, which is a pain. 16520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16521 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16523 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16524 else 16525 ld_shlibs=no 16526 fi 16527 ;; 16528 esac 16529 ;; 16530 16531 sunos4*) 16532 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16533 wlarc= 16534 hardcode_direct=yes 16535 hardcode_shlibpath_var=no 16536 ;; 16537 16538 *) 16539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16542 else 16543 ld_shlibs=no 16544 fi 16545 ;; 16546 esac 16547 16548 if test no = "$ld_shlibs"; then 16549 runpath_var= 16550 hardcode_libdir_flag_spec= 16551 export_dynamic_flag_spec= 16552 whole_archive_flag_spec= 16553 fi 16554 else 16555 # PORTME fill in a description of your system's linker (not GNU ld) 16556 case $host_os in 16557 aix3*) 16558 allow_undefined_flag=unsupported 16559 always_export_symbols=yes 16560 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' 16561 # Note: this linker hardcodes the directories in LIBPATH if there 16562 # are no directories specified by -L. 16563 hardcode_minus_L=yes 16564 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16565 # Neither direct hardcoding nor static linking is supported with a 16566 # broken collect2. 16567 hardcode_direct=unsupported 16568 fi 16569 ;; 16570 16571 aix[4-9]*) 16572 if test ia64 = "$host_cpu"; then 16573 # On IA64, the linker does run time linking by default, so we don't 16574 # have to do anything special. 16575 aix_use_runtimelinking=no 16576 exp_sym_flag='-Bexport' 16577 no_entry_flag= 16578 else 16579 # If we're using GNU nm, then we don't want the "-C" option. 16580 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16581 # Without the "-l" option, or with the "-B" option, AIX nm treats 16582 # weak defined symbols like other global defined symbols, whereas 16583 # GNU nm marks them as "W". 16584 # While the 'weak' keyword is ignored in the Export File, we need 16585 # it in the Import File for the 'aix-soname' feature, so we have 16586 # to replace the "-B" option with "-P" for AIX nm. 16587 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16588 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' 16589 else 16590 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' 16591 fi 16592 aix_use_runtimelinking=no 16593 16594 # Test if we are trying to use run time linking or normal 16595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16596 # have runtime linking enabled, and use it for executables. 16597 # For shared libraries, we enable/disable runtime linking 16598 # depending on the kind of the shared library created - 16599 # when "with_aix_soname,aix_use_runtimelinking" is: 16600 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16601 # "aix,yes" lib.so shared, rtl:yes, for executables 16602 # lib.a static archive 16603 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16604 # lib.a(lib.so.V) shared, rtl:no, for executables 16605 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16606 # lib.a(lib.so.V) shared, rtl:no 16607 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16608 # lib.a static archive 16609 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16610 for ld_flag in $LDFLAGS; do 16611 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16612 aix_use_runtimelinking=yes 16613 break 16614 fi 16615 done 16616 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16617 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16618 # so we don't have lib.a shared libs to link our executables. 16619 # We have to force runtime linking in this case. 16620 aix_use_runtimelinking=yes 16621 LDFLAGS="$LDFLAGS -Wl,-brtl" 16622 fi 16623 ;; 16624 esac 16625 16626 exp_sym_flag='-bexport' 16627 no_entry_flag='-bnoentry' 16628 fi 16629 16630 # When large executables or shared objects are built, AIX ld can 16631 # have problems creating the table of contents. If linking a library 16632 # or program results in "error TOC overflow" add -mminimal-toc to 16633 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16634 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16635 16636 archive_cmds='' 16637 hardcode_direct=yes 16638 hardcode_direct_absolute=yes 16639 hardcode_libdir_separator=':' 16640 link_all_deplibs=yes 16641 file_list_spec='$wl-f,' 16642 case $with_aix_soname,$aix_use_runtimelinking in 16643 aix,*) ;; # traditional, no import file 16644 svr4,* | *,yes) # use import file 16645 # The Import File defines what to hardcode. 16646 hardcode_direct=no 16647 hardcode_direct_absolute=no 16648 ;; 16649 esac 16650 16651 if test yes = "$GCC"; then 16652 case $host_os in aix4.[012]|aix4.[012].*) 16653 # We only want to do this on AIX 4.2 and lower, the check 16654 # below for broken collect2 doesn't work under 4.3+ 16655 collect2name=`$CC -print-prog-name=collect2` 16656 if test -f "$collect2name" && 16657 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16658 then 16659 # We have reworked collect2 16660 : 16661 else 16662 # We have old collect2 16663 hardcode_direct=unsupported 16664 # It fails to find uninstalled libraries when the uninstalled 16665 # path is not listed in the libpath. Setting hardcode_minus_L 16666 # to unsupported forces relinking 16667 hardcode_minus_L=yes 16668 hardcode_libdir_flag_spec='-L$libdir' 16669 hardcode_libdir_separator= 16670 fi 16671 ;; 16672 esac 16673 shared_flag='-shared' 16674 if test yes = "$aix_use_runtimelinking"; then 16675 shared_flag="$shared_flag "'$wl-G' 16676 fi 16677 # Need to ensure runtime linking is disabled for the traditional 16678 # shared library, or the linker may eventually find shared libraries 16679 # /with/ Import File - we do not want to mix them. 16680 shared_flag_aix='-shared' 16681 shared_flag_svr4='-shared $wl-G' 16682 else 16683 # not using gcc 16684 if test ia64 = "$host_cpu"; then 16685 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16686 # chokes on -Wl,-G. The following line is correct: 16687 shared_flag='-G' 16688 else 16689 if test yes = "$aix_use_runtimelinking"; then 16690 shared_flag='$wl-G' 16691 else 16692 shared_flag='$wl-bM:SRE' 16693 fi 16694 shared_flag_aix='$wl-bM:SRE' 16695 shared_flag_svr4='$wl-G' 16696 fi 16697 fi 16698 16699 export_dynamic_flag_spec='$wl-bexpall' 16700 # It seems that -bexpall does not export symbols beginning with 16701 # underscore (_), so it is better to generate a list of symbols to export. 16702 always_export_symbols=yes 16703 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16704 # Warning - without using the other runtime loading flags (-brtl), 16705 # -berok will link without error, but may produce a broken library. 16706 allow_undefined_flag='-berok' 16707 # Determine the default libpath from the value encoded in an 16708 # empty executable. 16709 if test set = "${lt_cv_aix_libpath+set}"; then 16710 aix_libpath=$lt_cv_aix_libpath 16711else 16712 if test ${lt_cv_aix_libpath_+y} 16713then : 16714 printf %s "(cached) " >&6 16715else $as_nop 16716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16717/* end confdefs.h. */ 16718 16719int 16720main (void) 16721{ 16722 16723 ; 16724 return 0; 16725} 16726_ACEOF 16727if ac_fn_c_try_link "$LINENO" 16728then : 16729 16730 lt_aix_libpath_sed=' 16731 /Import File Strings/,/^$/ { 16732 /^0/ { 16733 s/^0 *\([^ ]*\) *$/\1/ 16734 p 16735 } 16736 }' 16737 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16738 # Check for a 64-bit object if we didn't find anything. 16739 if test -z "$lt_cv_aix_libpath_"; then 16740 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16741 fi 16742fi 16743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16744 conftest$ac_exeext conftest.$ac_ext 16745 if test -z "$lt_cv_aix_libpath_"; then 16746 lt_cv_aix_libpath_=/usr/lib:/lib 16747 fi 16748 16749fi 16750 16751 aix_libpath=$lt_cv_aix_libpath_ 16752fi 16753 16754 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16755 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 16756 else 16757 if test ia64 = "$host_cpu"; then 16758 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16759 allow_undefined_flag="-z nodefs" 16760 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" 16761 else 16762 # Determine the default libpath from the value encoded in an 16763 # empty executable. 16764 if test set = "${lt_cv_aix_libpath+set}"; then 16765 aix_libpath=$lt_cv_aix_libpath 16766else 16767 if test ${lt_cv_aix_libpath_+y} 16768then : 16769 printf %s "(cached) " >&6 16770else $as_nop 16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16772/* end confdefs.h. */ 16773 16774int 16775main (void) 16776{ 16777 16778 ; 16779 return 0; 16780} 16781_ACEOF 16782if ac_fn_c_try_link "$LINENO" 16783then : 16784 16785 lt_aix_libpath_sed=' 16786 /Import File Strings/,/^$/ { 16787 /^0/ { 16788 s/^0 *\([^ ]*\) *$/\1/ 16789 p 16790 } 16791 }' 16792 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16793 # Check for a 64-bit object if we didn't find anything. 16794 if test -z "$lt_cv_aix_libpath_"; then 16795 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16796 fi 16797fi 16798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16799 conftest$ac_exeext conftest.$ac_ext 16800 if test -z "$lt_cv_aix_libpath_"; then 16801 lt_cv_aix_libpath_=/usr/lib:/lib 16802 fi 16803 16804fi 16805 16806 aix_libpath=$lt_cv_aix_libpath_ 16807fi 16808 16809 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16810 # Warning - without using the other run time loading flags, 16811 # -berok will link without error, but may produce a broken library. 16812 no_undefined_flag=' $wl-bernotok' 16813 allow_undefined_flag=' $wl-berok' 16814 if test yes = "$with_gnu_ld"; then 16815 # We only use this code for GNU lds that support --whole-archive. 16816 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16817 else 16818 # Exported symbols can be pulled into shared objects from archives 16819 whole_archive_flag_spec='$convenience' 16820 fi 16821 archive_cmds_need_lc=yes 16822 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16823 # -brtl affects multiple linker settings, -berok does not and is overridden later 16824 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16825 if test svr4 != "$with_aix_soname"; then 16826 # This is similar to how AIX traditionally builds its shared libraries. 16827 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' 16828 fi 16829 if test aix != "$with_aix_soname"; then 16830 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' 16831 else 16832 # used by -dlpreopen to get the symbols 16833 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16834 fi 16835 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16836 fi 16837 fi 16838 ;; 16839 16840 amigaos*) 16841 case $host_cpu in 16842 powerpc) 16843 # see comment about AmigaOS4 .so support 16844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16845 archive_expsym_cmds='' 16846 ;; 16847 m68k) 16848 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)' 16849 hardcode_libdir_flag_spec='-L$libdir' 16850 hardcode_minus_L=yes 16851 ;; 16852 esac 16853 ;; 16854 16855 bsdi[45]*) 16856 export_dynamic_flag_spec=-rdynamic 16857 ;; 16858 16859 cygwin* | mingw* | pw32* | cegcc*) 16860 # When not using gcc, we currently assume that we are using 16861 # Microsoft Visual C++ or Intel C++ Compiler. 16862 # hardcode_libdir_flag_spec is actually meaningless, as there is 16863 # no search path for DLLs. 16864 case $cc_basename in 16865 cl* | icl*) 16866 # Native MSVC or ICC 16867 hardcode_libdir_flag_spec=' ' 16868 allow_undefined_flag=unsupported 16869 always_export_symbols=yes 16870 file_list_spec='@' 16871 # Tell ltmain to make .lib files, not .a files. 16872 libext=lib 16873 # Tell ltmain to make .dll files, not .so files. 16874 shrext_cmds=.dll 16875 # FIXME: Setting linknames here is a bad hack. 16876 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16877 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16878 cp "$export_symbols" "$output_objdir/$soname.def"; 16879 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16880 else 16881 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16882 fi~ 16883 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16884 linknames=' 16885 # The linker will not automatically build a static lib if we build a DLL. 16886 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16887 enable_shared_with_static_runtimes=yes 16888 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16889 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16890 # Don't use ranlib 16891 old_postinstall_cmds='chmod 644 $oldlib' 16892 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16893 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16894 case $lt_outputfile in 16895 *.exe|*.EXE) ;; 16896 *) 16897 lt_outputfile=$lt_outputfile.exe 16898 lt_tool_outputfile=$lt_tool_outputfile.exe 16899 ;; 16900 esac~ 16901 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16902 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16903 $RM "$lt_outputfile.manifest"; 16904 fi' 16905 ;; 16906 *) 16907 # Assume MSVC and ICC wrapper 16908 hardcode_libdir_flag_spec=' ' 16909 allow_undefined_flag=unsupported 16910 # Tell ltmain to make .lib files, not .a files. 16911 libext=lib 16912 # Tell ltmain to make .dll files, not .so files. 16913 shrext_cmds=.dll 16914 # FIXME: Setting linknames here is a bad hack. 16915 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16916 # The linker will automatically build a .lib file if we build a DLL. 16917 old_archive_from_new_cmds='true' 16918 # FIXME: Should let the user specify the lib program. 16919 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16920 enable_shared_with_static_runtimes=yes 16921 ;; 16922 esac 16923 ;; 16924 16925 darwin* | rhapsody*) 16926 16927 16928 archive_cmds_need_lc=no 16929 hardcode_direct=no 16930 hardcode_automatic=yes 16931 hardcode_shlibpath_var=unsupported 16932 if test yes = "$lt_cv_ld_force_load"; then 16933 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\"`' 16934 16935 else 16936 whole_archive_flag_spec='' 16937 fi 16938 link_all_deplibs=yes 16939 allow_undefined_flag=$_lt_dar_allow_undefined 16940 case $cc_basename in 16941 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16942 *) _lt_dar_can_shared=$GCC ;; 16943 esac 16944 if test yes = "$_lt_dar_can_shared"; then 16945 output_verbose_link_cmd=func_echo_all 16946 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16947 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16948 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" 16949 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" 16950 16951 else 16952 ld_shlibs=no 16953 fi 16954 16955 ;; 16956 16957 dgux*) 16958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16959 hardcode_libdir_flag_spec='-L$libdir' 16960 hardcode_shlibpath_var=no 16961 ;; 16962 16963 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16964 # support. Future versions do this automatically, but an explicit c++rt0.o 16965 # does not break anything, and helps significantly (at the cost of a little 16966 # extra space). 16967 freebsd2.2*) 16968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16969 hardcode_libdir_flag_spec='-R$libdir' 16970 hardcode_direct=yes 16971 hardcode_shlibpath_var=no 16972 ;; 16973 16974 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16975 freebsd2.*) 16976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16977 hardcode_direct=yes 16978 hardcode_minus_L=yes 16979 hardcode_shlibpath_var=no 16980 ;; 16981 16982 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16983 freebsd* | dragonfly* | midnightbsd*) 16984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16985 hardcode_libdir_flag_spec='-R$libdir' 16986 hardcode_direct=yes 16987 hardcode_shlibpath_var=no 16988 ;; 16989 16990 hpux9*) 16991 if test yes = "$GCC"; then 16992 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' 16993 else 16994 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' 16995 fi 16996 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16997 hardcode_libdir_separator=: 16998 hardcode_direct=yes 16999 17000 # hardcode_minus_L: Not really in the search PATH, 17001 # but as the default location of the library. 17002 hardcode_minus_L=yes 17003 export_dynamic_flag_spec='$wl-E' 17004 ;; 17005 17006 hpux10*) 17007 if test yes,no = "$GCC,$with_gnu_ld"; then 17008 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17009 else 17010 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17011 fi 17012 if test no = "$with_gnu_ld"; then 17013 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17014 hardcode_libdir_separator=: 17015 hardcode_direct=yes 17016 hardcode_direct_absolute=yes 17017 export_dynamic_flag_spec='$wl-E' 17018 # hardcode_minus_L: Not really in the search PATH, 17019 # but as the default location of the library. 17020 hardcode_minus_L=yes 17021 fi 17022 ;; 17023 17024 hpux11*) 17025 if test yes,no = "$GCC,$with_gnu_ld"; then 17026 case $host_cpu in 17027 hppa*64*) 17028 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17029 ;; 17030 ia64*) 17031 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17032 ;; 17033 *) 17034 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17035 ;; 17036 esac 17037 else 17038 case $host_cpu in 17039 hppa*64*) 17040 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17041 ;; 17042 ia64*) 17043 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17044 ;; 17045 *) 17046 17047 # Older versions of the 11.00 compiler do not understand -b yet 17048 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17050printf %s "checking if $CC understands -b... " >&6; } 17051if test ${lt_cv_prog_compiler__b+y} 17052then : 17053 printf %s "(cached) " >&6 17054else $as_nop 17055 lt_cv_prog_compiler__b=no 17056 save_LDFLAGS=$LDFLAGS 17057 LDFLAGS="$LDFLAGS -b" 17058 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17060 # The linker can only warn and ignore the option if not recognized 17061 # So say no if there are warnings 17062 if test -s conftest.err; then 17063 # Append any errors to the config.log. 17064 cat conftest.err 1>&5 17065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17067 if diff conftest.exp conftest.er2 >/dev/null; then 17068 lt_cv_prog_compiler__b=yes 17069 fi 17070 else 17071 lt_cv_prog_compiler__b=yes 17072 fi 17073 fi 17074 $RM -r conftest* 17075 LDFLAGS=$save_LDFLAGS 17076 17077fi 17078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17079printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17080 17081if test yes = "$lt_cv_prog_compiler__b"; then 17082 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17083else 17084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17085fi 17086 17087 ;; 17088 esac 17089 fi 17090 if test no = "$with_gnu_ld"; then 17091 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17092 hardcode_libdir_separator=: 17093 17094 case $host_cpu in 17095 hppa*64*|ia64*) 17096 hardcode_direct=no 17097 hardcode_shlibpath_var=no 17098 ;; 17099 *) 17100 hardcode_direct=yes 17101 hardcode_direct_absolute=yes 17102 export_dynamic_flag_spec='$wl-E' 17103 17104 # hardcode_minus_L: Not really in the search PATH, 17105 # but as the default location of the library. 17106 hardcode_minus_L=yes 17107 ;; 17108 esac 17109 fi 17110 ;; 17111 17112 irix5* | irix6* | nonstopux*) 17113 if test yes = "$GCC"; then 17114 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' 17115 # Try to use the -exported_symbol ld option, if it does not 17116 # work, assume that -exports_file does not work either and 17117 # implicitly export all symbols. 17118 # This should be the same for all languages, so no per-tag cache variable. 17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17120printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17121if test ${lt_cv_irix_exported_symbol+y} 17122then : 17123 printf %s "(cached) " >&6 17124else $as_nop 17125 save_LDFLAGS=$LDFLAGS 17126 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17128/* end confdefs.h. */ 17129int foo (void) { return 0; } 17130_ACEOF 17131if ac_fn_c_try_link "$LINENO" 17132then : 17133 lt_cv_irix_exported_symbol=yes 17134else $as_nop 17135 lt_cv_irix_exported_symbol=no 17136fi 17137rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17138 conftest$ac_exeext conftest.$ac_ext 17139 LDFLAGS=$save_LDFLAGS 17140fi 17141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17142printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17143 if test yes = "$lt_cv_irix_exported_symbol"; then 17144 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' 17145 fi 17146 else 17147 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' 17148 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' 17149 fi 17150 archive_cmds_need_lc='no' 17151 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17152 hardcode_libdir_separator=: 17153 inherit_rpath=yes 17154 link_all_deplibs=yes 17155 ;; 17156 17157 linux*) 17158 case $cc_basename in 17159 tcc*) 17160 # Fabrice Bellard et al's Tiny C Compiler 17161 ld_shlibs=yes 17162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17163 ;; 17164 esac 17165 ;; 17166 17167 netbsd*) 17168 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17169 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17170 else 17171 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17172 fi 17173 hardcode_libdir_flag_spec='-R$libdir' 17174 hardcode_direct=yes 17175 hardcode_shlibpath_var=no 17176 ;; 17177 17178 newsos6) 17179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17180 hardcode_direct=yes 17181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17182 hardcode_libdir_separator=: 17183 hardcode_shlibpath_var=no 17184 ;; 17185 17186 *nto* | *qnx*) 17187 ;; 17188 17189 openbsd* | bitrig*) 17190 if test -f /usr/libexec/ld.so; then 17191 hardcode_direct=yes 17192 hardcode_shlibpath_var=no 17193 hardcode_direct_absolute=yes 17194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17196 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17197 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17198 export_dynamic_flag_spec='$wl-E' 17199 else 17200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17201 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17202 fi 17203 else 17204 ld_shlibs=no 17205 fi 17206 ;; 17207 17208 os2*) 17209 hardcode_libdir_flag_spec='-L$libdir' 17210 hardcode_minus_L=yes 17211 allow_undefined_flag=unsupported 17212 shrext_cmds=.dll 17213 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17214 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17215 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17216 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17217 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17218 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17219 emximp -o $lib $output_objdir/$libname.def' 17220 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17221 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17222 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17223 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17224 prefix_cmds="$SED"~ 17225 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17226 prefix_cmds="$prefix_cmds -e 1d"; 17227 fi~ 17228 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17229 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17230 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17231 emximp -o $lib $output_objdir/$libname.def' 17232 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17233 enable_shared_with_static_runtimes=yes 17234 file_list_spec='@' 17235 ;; 17236 17237 osf3*) 17238 if test yes = "$GCC"; then 17239 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17240 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' 17241 else 17242 allow_undefined_flag=' -expect_unresolved \*' 17243 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' 17244 fi 17245 archive_cmds_need_lc='no' 17246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17247 hardcode_libdir_separator=: 17248 ;; 17249 17250 osf4* | osf5*) # as osf3* with the addition of -msym flag 17251 if test yes = "$GCC"; then 17252 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17253 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' 17254 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17255 else 17256 allow_undefined_flag=' -expect_unresolved \*' 17257 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' 17258 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~ 17259 $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' 17260 17261 # Both c and cxx compiler support -rpath directly 17262 hardcode_libdir_flag_spec='-rpath $libdir' 17263 fi 17264 archive_cmds_need_lc='no' 17265 hardcode_libdir_separator=: 17266 ;; 17267 17268 solaris*) 17269 no_undefined_flag=' -z defs' 17270 if test yes = "$GCC"; then 17271 wlarc='$wl' 17272 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17274 $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' 17275 else 17276 case `$CC -V 2>&1` in 17277 *"Compilers 5.0"*) 17278 wlarc='' 17279 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17281 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17282 ;; 17283 *) 17284 wlarc='$wl' 17285 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17286 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17287 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17288 ;; 17289 esac 17290 fi 17291 hardcode_libdir_flag_spec='-R$libdir' 17292 hardcode_shlibpath_var=no 17293 case $host_os in 17294 solaris2.[0-5] | solaris2.[0-5].*) ;; 17295 *) 17296 # The compiler driver will combine and reorder linker options, 17297 # but understands '-z linker_flag'. GCC discards it without '$wl', 17298 # but is careful enough not to reorder. 17299 # Supported since Solaris 2.6 (maybe 2.5.1?) 17300 if test yes = "$GCC"; then 17301 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17302 else 17303 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17304 fi 17305 ;; 17306 esac 17307 link_all_deplibs=yes 17308 ;; 17309 17310 sunos4*) 17311 if test sequent = "$host_vendor"; then 17312 # Use $CC to link under sequent, because it throws in some extra .o 17313 # files that make .init and .fini sections work. 17314 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17315 else 17316 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17317 fi 17318 hardcode_libdir_flag_spec='-L$libdir' 17319 hardcode_direct=yes 17320 hardcode_minus_L=yes 17321 hardcode_shlibpath_var=no 17322 ;; 17323 17324 sysv4) 17325 case $host_vendor in 17326 sni) 17327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17328 hardcode_direct=yes # is this really true??? 17329 ;; 17330 siemens) 17331 ## LD is ld it makes a PLAMLIB 17332 ## CC just makes a GrossModule. 17333 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17334 reload_cmds='$CC -r -o $output$reload_objs' 17335 hardcode_direct=no 17336 ;; 17337 motorola) 17338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17339 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17340 ;; 17341 esac 17342 runpath_var='LD_RUN_PATH' 17343 hardcode_shlibpath_var=no 17344 ;; 17345 17346 sysv4.3*) 17347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17348 hardcode_shlibpath_var=no 17349 export_dynamic_flag_spec='-Bexport' 17350 ;; 17351 17352 sysv4*MP*) 17353 if test -d /usr/nec; then 17354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17355 hardcode_shlibpath_var=no 17356 runpath_var=LD_RUN_PATH 17357 hardcode_runpath_var=yes 17358 ld_shlibs=yes 17359 fi 17360 ;; 17361 17362 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17363 no_undefined_flag='$wl-z,text' 17364 archive_cmds_need_lc=no 17365 hardcode_shlibpath_var=no 17366 runpath_var='LD_RUN_PATH' 17367 17368 if test yes = "$GCC"; then 17369 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17370 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17371 else 17372 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17373 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17374 fi 17375 ;; 17376 17377 sysv5* | sco3.2v5* | sco5v6*) 17378 # Note: We CANNOT use -z defs as we might desire, because we do not 17379 # link with -lc, and that would cause any symbols used from libc to 17380 # always be unresolved, which means just about no library would 17381 # ever link correctly. If we're not using GNU ld we use -z text 17382 # though, which does catch some bad symbols but isn't as heavy-handed 17383 # as -z defs. 17384 no_undefined_flag='$wl-z,text' 17385 allow_undefined_flag='$wl-z,nodefs' 17386 archive_cmds_need_lc=no 17387 hardcode_shlibpath_var=no 17388 hardcode_libdir_flag_spec='$wl-R,$libdir' 17389 hardcode_libdir_separator=':' 17390 link_all_deplibs=yes 17391 export_dynamic_flag_spec='$wl-Bexport' 17392 runpath_var='LD_RUN_PATH' 17393 17394 if test yes = "$GCC"; then 17395 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17396 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17397 else 17398 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17399 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17400 fi 17401 ;; 17402 17403 uts4*) 17404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17405 hardcode_libdir_flag_spec='-L$libdir' 17406 hardcode_shlibpath_var=no 17407 ;; 17408 17409 *) 17410 ld_shlibs=no 17411 ;; 17412 esac 17413 17414 if test sni = "$host_vendor"; then 17415 case $host in 17416 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17417 export_dynamic_flag_spec='$wl-Blargedynsym' 17418 ;; 17419 esac 17420 fi 17421 fi 17422 17423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17424printf "%s\n" "$ld_shlibs" >&6; } 17425test no = "$ld_shlibs" && can_build_shared=no 17426 17427with_gnu_ld=$with_gnu_ld 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443# 17444# Do we need to explicitly link libc? 17445# 17446case "x$archive_cmds_need_lc" in 17447x|xyes) 17448 # Assume -lc should be added 17449 archive_cmds_need_lc=yes 17450 17451 if test yes,yes = "$GCC,$enable_shared"; then 17452 case $archive_cmds in 17453 *'~'*) 17454 # FIXME: we may have to deal with multi-command sequences. 17455 ;; 17456 '$CC '*) 17457 # Test whether the compiler implicitly links with -lc since on some 17458 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17459 # to ld, don't add -lc before -lgcc. 17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17461printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17462if test ${lt_cv_archive_cmds_need_lc+y} 17463then : 17464 printf %s "(cached) " >&6 17465else $as_nop 17466 $RM conftest* 17467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17468 17469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17470 (eval $ac_compile) 2>&5 17471 ac_status=$? 17472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17473 test $ac_status = 0; } 2>conftest.err; then 17474 soname=conftest 17475 lib=conftest 17476 libobjs=conftest.$ac_objext 17477 deplibs= 17478 wl=$lt_prog_compiler_wl 17479 pic_flag=$lt_prog_compiler_pic 17480 compiler_flags=-v 17481 linker_flags=-v 17482 verstring= 17483 output_objdir=. 17484 libname=conftest 17485 lt_save_allow_undefined_flag=$allow_undefined_flag 17486 allow_undefined_flag= 17487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17488 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17489 ac_status=$? 17490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17491 test $ac_status = 0; } 17492 then 17493 lt_cv_archive_cmds_need_lc=no 17494 else 17495 lt_cv_archive_cmds_need_lc=yes 17496 fi 17497 allow_undefined_flag=$lt_save_allow_undefined_flag 17498 else 17499 cat conftest.err 1>&5 17500 fi 17501 $RM conftest* 17502 17503fi 17504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17505printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17506 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17507 ;; 17508 esac 17509 fi 17510 ;; 17511esac 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 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17665printf %s "checking dynamic linker characteristics... " >&6; } 17666 17667if test yes = "$GCC"; then 17668 case $host_os in 17669 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17670 *) lt_awk_arg='/^libraries:/' ;; 17671 esac 17672 case $host_os in 17673 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17674 *) lt_sed_strip_eq='s|=/|/|g' ;; 17675 esac 17676 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17677 case $lt_search_path_spec in 17678 *\;*) 17679 # if the path contains ";" then we assume it to be the separator 17680 # otherwise default to the standard path separator (i.e. ":") - it is 17681 # assumed that no part of a normal pathname contains ";" but that should 17682 # okay in the real world where ";" in dirpaths is itself problematic. 17683 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17684 ;; 17685 *) 17686 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17687 ;; 17688 esac 17689 # Ok, now we have the path, separated by spaces, we can step through it 17690 # and add multilib dir if necessary... 17691 lt_tmp_lt_search_path_spec= 17692 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17693 # ...but if some path component already ends with the multilib dir we assume 17694 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17695 case "$lt_multi_os_dir; $lt_search_path_spec " in 17696 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17697 lt_multi_os_dir= 17698 ;; 17699 esac 17700 for lt_sys_path in $lt_search_path_spec; do 17701 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17702 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17703 elif test -n "$lt_multi_os_dir"; then 17704 test -d "$lt_sys_path" && \ 17705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17706 fi 17707 done 17708 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17709BEGIN {RS = " "; FS = "/|\n";} { 17710 lt_foo = ""; 17711 lt_count = 0; 17712 for (lt_i = NF; lt_i > 0; lt_i--) { 17713 if ($lt_i != "" && $lt_i != ".") { 17714 if ($lt_i == "..") { 17715 lt_count++; 17716 } else { 17717 if (lt_count == 0) { 17718 lt_foo = "/" $lt_i lt_foo; 17719 } else { 17720 lt_count--; 17721 } 17722 } 17723 } 17724 } 17725 if (lt_foo != "") { lt_freq[lt_foo]++; } 17726 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17727}'` 17728 # AWK program above erroneously prepends '/' to C:/dos/paths 17729 # for these hosts. 17730 case $host_os in 17731 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17732 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17733 esac 17734 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17735else 17736 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17737fi 17738library_names_spec= 17739libname_spec='lib$name' 17740soname_spec= 17741shrext_cmds=.so 17742postinstall_cmds= 17743postuninstall_cmds= 17744finish_cmds= 17745finish_eval= 17746shlibpath_var= 17747shlibpath_overrides_runpath=unknown 17748version_type=none 17749dynamic_linker="$host_os ld.so" 17750sys_lib_dlsearch_path_spec="/lib /usr/lib" 17751need_lib_prefix=unknown 17752hardcode_into_libs=no 17753 17754# when you set need_version to no, make sure it does not cause -set_version 17755# flags to be left without arguments 17756need_version=unknown 17757 17758 17759 17760case $host_os in 17761aix3*) 17762 version_type=linux # correct to gnu/linux during the next big refactor 17763 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17764 shlibpath_var=LIBPATH 17765 17766 # AIX 3 has no versioning support, so we append a major version to the name. 17767 soname_spec='$libname$release$shared_ext$major' 17768 ;; 17769 17770aix[4-9]*) 17771 version_type=linux # correct to gnu/linux during the next big refactor 17772 need_lib_prefix=no 17773 need_version=no 17774 hardcode_into_libs=yes 17775 if test ia64 = "$host_cpu"; then 17776 # AIX 5 supports IA64 17777 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17778 shlibpath_var=LD_LIBRARY_PATH 17779 else 17780 # With GCC up to 2.95.x, collect2 would create an import file 17781 # for dependence libraries. The import file would start with 17782 # the line '#! .'. This would cause the generated library to 17783 # depend on '.', always an invalid library. This was fixed in 17784 # development snapshots of GCC prior to 3.0. 17785 case $host_os in 17786 aix4 | aix4.[01] | aix4.[01].*) 17787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17788 echo ' yes ' 17789 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17790 : 17791 else 17792 can_build_shared=no 17793 fi 17794 ;; 17795 esac 17796 # Using Import Files as archive members, it is possible to support 17797 # filename-based versioning of shared library archives on AIX. While 17798 # this would work for both with and without runtime linking, it will 17799 # prevent static linking of such archives. So we do filename-based 17800 # shared library versioning with .so extension only, which is used 17801 # when both runtime linking and shared linking is enabled. 17802 # Unfortunately, runtime linking may impact performance, so we do 17803 # not want this to be the default eventually. Also, we use the 17804 # versioned .so libs for executables only if there is the -brtl 17805 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17806 # To allow for filename-based versioning support, we need to create 17807 # libNAME.so.V as an archive file, containing: 17808 # *) an Import File, referring to the versioned filename of the 17809 # archive as well as the shared archive member, telling the 17810 # bitwidth (32 or 64) of that shared object, and providing the 17811 # list of exported symbols of that shared object, eventually 17812 # decorated with the 'weak' keyword 17813 # *) the shared object with the F_LOADONLY flag set, to really avoid 17814 # it being seen by the linker. 17815 # At run time we better use the real file rather than another symlink, 17816 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17817 17818 case $with_aix_soname,$aix_use_runtimelinking in 17819 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17820 # soname into executable. Probably we can add versioning support to 17821 # collect2, so additional links can be useful in future. 17822 aix,yes) # traditional libtool 17823 dynamic_linker='AIX unversionable lib.so' 17824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17825 # instead of lib<name>.a to let people know that these are not 17826 # typical AIX shared libraries. 17827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17828 ;; 17829 aix,no) # traditional AIX only 17830 dynamic_linker='AIX lib.a(lib.so.V)' 17831 # We preserve .a as extension for shared libraries through AIX4.2 17832 # and later when we are not doing run time linking. 17833 library_names_spec='$libname$release.a $libname.a' 17834 soname_spec='$libname$release$shared_ext$major' 17835 ;; 17836 svr4,*) # full svr4 only 17837 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17838 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17839 # We do not specify a path in Import Files, so LIBPATH fires. 17840 shlibpath_overrides_runpath=yes 17841 ;; 17842 *,yes) # both, prefer svr4 17843 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17844 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17845 # unpreferred sharedlib libNAME.a needs extra handling 17846 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"' 17847 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"' 17848 # We do not specify a path in Import Files, so LIBPATH fires. 17849 shlibpath_overrides_runpath=yes 17850 ;; 17851 *,no) # both, prefer aix 17852 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17853 library_names_spec='$libname$release.a $libname.a' 17854 soname_spec='$libname$release$shared_ext$major' 17855 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17856 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)' 17857 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"' 17858 ;; 17859 esac 17860 shlibpath_var=LIBPATH 17861 fi 17862 ;; 17863 17864amigaos*) 17865 case $host_cpu in 17866 powerpc) 17867 # Since July 2007 AmigaOS4 officially supports .so libraries. 17868 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17870 ;; 17871 m68k) 17872 library_names_spec='$libname.ixlibrary $libname.a' 17873 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17874 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' 17875 ;; 17876 esac 17877 ;; 17878 17879beos*) 17880 library_names_spec='$libname$shared_ext' 17881 dynamic_linker="$host_os ld.so" 17882 shlibpath_var=LIBRARY_PATH 17883 ;; 17884 17885bsdi[45]*) 17886 version_type=linux # correct to gnu/linux during the next big refactor 17887 need_version=no 17888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17889 soname_spec='$libname$release$shared_ext$major' 17890 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17891 shlibpath_var=LD_LIBRARY_PATH 17892 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17893 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17894 # the default ld.so.conf also contains /usr/contrib/lib and 17895 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17896 # libtool to hard-code these into programs 17897 ;; 17898 17899cygwin* | mingw* | pw32* | cegcc*) 17900 version_type=windows 17901 shrext_cmds=.dll 17902 need_version=no 17903 need_lib_prefix=no 17904 17905 case $GCC,$cc_basename in 17906 yes,*) 17907 # gcc 17908 library_names_spec='$libname.dll.a' 17909 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17910 postinstall_cmds='base_file=`basename \$file`~ 17911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17912 dldir=$destdir/`dirname \$dlpath`~ 17913 test -d \$dldir || mkdir -p \$dldir~ 17914 $install_prog $dir/$dlname \$dldir/$dlname~ 17915 chmod a+x \$dldir/$dlname~ 17916 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17917 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17918 fi' 17919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17920 dlpath=$dir/\$dldll~ 17921 $RM \$dlpath' 17922 shlibpath_overrides_runpath=yes 17923 17924 case $host_os in 17925 cygwin*) 17926 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17927 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17928 17929 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17930 ;; 17931 mingw* | cegcc*) 17932 # MinGW DLLs use traditional 'lib' prefix 17933 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17934 ;; 17935 pw32*) 17936 # pw32 DLLs use 'pw' prefix rather than 'lib' 17937 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17938 ;; 17939 esac 17940 dynamic_linker='Win32 ld.exe' 17941 ;; 17942 17943 *,cl* | *,icl*) 17944 # Native MSVC or ICC 17945 libname_spec='$name' 17946 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17947 library_names_spec='$libname.dll.lib' 17948 17949 case $build_os in 17950 mingw*) 17951 sys_lib_search_path_spec= 17952 lt_save_ifs=$IFS 17953 IFS=';' 17954 for lt_path in $LIB 17955 do 17956 IFS=$lt_save_ifs 17957 # Let DOS variable expansion print the short 8.3 style file name. 17958 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17959 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17960 done 17961 IFS=$lt_save_ifs 17962 # Convert to MSYS style. 17963 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17964 ;; 17965 cygwin*) 17966 # Convert to unix form, then to dos form, then back to unix form 17967 # but this time dos style (no spaces!) so that the unix form looks 17968 # like /cygdrive/c/PROGRA~1:/cygdr... 17969 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17970 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17971 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17972 ;; 17973 *) 17974 sys_lib_search_path_spec=$LIB 17975 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17976 # It is most probably a Windows format PATH. 17977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17978 else 17979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17980 fi 17981 # FIXME: find the short name or the path components, as spaces are 17982 # common. (e.g. "Program Files" -> "PROGRA~1") 17983 ;; 17984 esac 17985 17986 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17987 postinstall_cmds='base_file=`basename \$file`~ 17988 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17989 dldir=$destdir/`dirname \$dlpath`~ 17990 test -d \$dldir || mkdir -p \$dldir~ 17991 $install_prog $dir/$dlname \$dldir/$dlname' 17992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17993 dlpath=$dir/\$dldll~ 17994 $RM \$dlpath' 17995 shlibpath_overrides_runpath=yes 17996 dynamic_linker='Win32 link.exe' 17997 ;; 17998 17999 *) 18000 # Assume MSVC and ICC wrapper 18001 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18002 dynamic_linker='Win32 ld.exe' 18003 ;; 18004 esac 18005 # FIXME: first we should search . and the directory the executable is in 18006 shlibpath_var=PATH 18007 ;; 18008 18009darwin* | rhapsody*) 18010 dynamic_linker="$host_os dyld" 18011 version_type=darwin 18012 need_lib_prefix=no 18013 need_version=no 18014 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18015 soname_spec='$libname$release$major$shared_ext' 18016 shlibpath_overrides_runpath=yes 18017 shlibpath_var=DYLD_LIBRARY_PATH 18018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18019 18020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18022 ;; 18023 18024dgux*) 18025 version_type=linux # correct to gnu/linux during the next big refactor 18026 need_lib_prefix=no 18027 need_version=no 18028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18029 soname_spec='$libname$release$shared_ext$major' 18030 shlibpath_var=LD_LIBRARY_PATH 18031 ;; 18032 18033freebsd* | dragonfly* | midnightbsd*) 18034 # DragonFly does not have aout. When/if they implement a new 18035 # versioning mechanism, adjust this. 18036 if test -x /usr/bin/objformat; then 18037 objformat=`/usr/bin/objformat` 18038 else 18039 case $host_os in 18040 freebsd[23].*) objformat=aout ;; 18041 *) objformat=elf ;; 18042 esac 18043 fi 18044 version_type=freebsd-$objformat 18045 case $version_type in 18046 freebsd-elf*) 18047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18048 soname_spec='$libname$release$shared_ext$major' 18049 need_version=no 18050 need_lib_prefix=no 18051 ;; 18052 freebsd-*) 18053 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18054 need_version=yes 18055 ;; 18056 esac 18057 shlibpath_var=LD_LIBRARY_PATH 18058 case $host_os in 18059 freebsd2.*) 18060 shlibpath_overrides_runpath=yes 18061 ;; 18062 freebsd3.[01]* | freebsdelf3.[01]*) 18063 shlibpath_overrides_runpath=yes 18064 hardcode_into_libs=yes 18065 ;; 18066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18068 shlibpath_overrides_runpath=no 18069 hardcode_into_libs=yes 18070 ;; 18071 *) # from 4.6 on, and DragonFly 18072 shlibpath_overrides_runpath=yes 18073 hardcode_into_libs=yes 18074 ;; 18075 esac 18076 ;; 18077 18078haiku*) 18079 version_type=linux # correct to gnu/linux during the next big refactor 18080 need_lib_prefix=no 18081 need_version=no 18082 dynamic_linker="$host_os runtime_loader" 18083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18084 soname_spec='$libname$release$shared_ext$major' 18085 shlibpath_var=LIBRARY_PATH 18086 shlibpath_overrides_runpath=no 18087 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18088 hardcode_into_libs=yes 18089 ;; 18090 18091hpux9* | hpux10* | hpux11*) 18092 # Give a soname corresponding to the major version so that dld.sl refuses to 18093 # link against other versions. 18094 version_type=sunos 18095 need_lib_prefix=no 18096 need_version=no 18097 case $host_cpu in 18098 ia64*) 18099 shrext_cmds='.so' 18100 hardcode_into_libs=yes 18101 dynamic_linker="$host_os dld.so" 18102 shlibpath_var=LD_LIBRARY_PATH 18103 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18105 soname_spec='$libname$release$shared_ext$major' 18106 if test 32 = "$HPUX_IA64_MODE"; then 18107 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18108 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18109 else 18110 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18111 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18112 fi 18113 ;; 18114 hppa*64*) 18115 shrext_cmds='.sl' 18116 hardcode_into_libs=yes 18117 dynamic_linker="$host_os dld.sl" 18118 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18121 soname_spec='$libname$release$shared_ext$major' 18122 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18124 ;; 18125 *) 18126 shrext_cmds='.sl' 18127 dynamic_linker="$host_os dld.sl" 18128 shlibpath_var=SHLIB_PATH 18129 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 18133 esac 18134 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18135 postinstall_cmds='chmod 555 $lib' 18136 # or fails outright, so override atomically: 18137 install_override_mode=555 18138 ;; 18139 18140interix[3-9]*) 18141 version_type=linux # correct to gnu/linux during the next big refactor 18142 need_lib_prefix=no 18143 need_version=no 18144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18145 soname_spec='$libname$release$shared_ext$major' 18146 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18147 shlibpath_var=LD_LIBRARY_PATH 18148 shlibpath_overrides_runpath=no 18149 hardcode_into_libs=yes 18150 ;; 18151 18152irix5* | irix6* | nonstopux*) 18153 case $host_os in 18154 nonstopux*) version_type=nonstopux ;; 18155 *) 18156 if test yes = "$lt_cv_prog_gnu_ld"; then 18157 version_type=linux # correct to gnu/linux during the next big refactor 18158 else 18159 version_type=irix 18160 fi ;; 18161 esac 18162 need_lib_prefix=no 18163 need_version=no 18164 soname_spec='$libname$release$shared_ext$major' 18165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18166 case $host_os in 18167 irix5* | nonstopux*) 18168 libsuff= shlibsuff= 18169 ;; 18170 *) 18171 case $LD in # libtool.m4 will add one of these switches to LD 18172 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18173 libsuff= shlibsuff= libmagic=32-bit;; 18174 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18175 libsuff=32 shlibsuff=N32 libmagic=N32;; 18176 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18177 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18178 *) libsuff= shlibsuff= libmagic=never-match;; 18179 esac 18180 ;; 18181 esac 18182 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18183 shlibpath_overrides_runpath=no 18184 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18185 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18186 hardcode_into_libs=yes 18187 ;; 18188 18189# No shared lib support for Linux oldld, aout, or coff. 18190linux*oldld* | linux*aout* | linux*coff*) 18191 dynamic_linker=no 18192 ;; 18193 18194linux*android*) 18195 version_type=none # Android doesn't support versioned libraries. 18196 need_lib_prefix=no 18197 need_version=no 18198 library_names_spec='$libname$release$shared_ext' 18199 soname_spec='$libname$release$shared_ext' 18200 finish_cmds= 18201 shlibpath_var=LD_LIBRARY_PATH 18202 shlibpath_overrides_runpath=yes 18203 18204 # This implies no fast_install, which is unacceptable. 18205 # Some rework will be needed to allow for fast_install 18206 # before this can be enabled. 18207 hardcode_into_libs=yes 18208 18209 dynamic_linker='Android linker' 18210 # Don't embed -rpath directories since the linker doesn't support them. 18211 hardcode_libdir_flag_spec='-L$libdir' 18212 ;; 18213 18214# This must be glibc/ELF. 18215linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18216 version_type=linux # correct to gnu/linux during the next big refactor 18217 need_lib_prefix=no 18218 need_version=no 18219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18220 soname_spec='$libname$release$shared_ext$major' 18221 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18222 shlibpath_var=LD_LIBRARY_PATH 18223 shlibpath_overrides_runpath=no 18224 18225 # Some binutils ld are patched to set DT_RUNPATH 18226 if test ${lt_cv_shlibpath_overrides_runpath+y} 18227then : 18228 printf %s "(cached) " >&6 18229else $as_nop 18230 lt_cv_shlibpath_overrides_runpath=no 18231 save_LDFLAGS=$LDFLAGS 18232 save_libdir=$libdir 18233 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18234 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18236/* end confdefs.h. */ 18237 18238int 18239main (void) 18240{ 18241 18242 ; 18243 return 0; 18244} 18245_ACEOF 18246if ac_fn_c_try_link "$LINENO" 18247then : 18248 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18249then : 18250 lt_cv_shlibpath_overrides_runpath=yes 18251fi 18252fi 18253rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18254 conftest$ac_exeext conftest.$ac_ext 18255 LDFLAGS=$save_LDFLAGS 18256 libdir=$save_libdir 18257 18258fi 18259 18260 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18261 18262 # This implies no fast_install, which is unacceptable. 18263 # Some rework will be needed to allow for fast_install 18264 # before this can be enabled. 18265 hardcode_into_libs=yes 18266 18267 # Ideally, we could use ldconfig to report *all* directores which are 18268 # searched for libraries, however this is still not possible. Aside from not 18269 # being certain /sbin/ldconfig is available, command 18270 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18271 # even though it is searched at run-time. Try to do the best guess by 18272 # appending ld.so.conf contents (and includes) to the search path. 18273 if test -f /etc/ld.so.conf; then 18274 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' ' '` 18275 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18276 fi 18277 18278 # We used to test for /lib/ld.so.1 and disable shared libraries on 18279 # powerpc, because MkLinux only supported shared libraries with the 18280 # GNU dynamic linker. Since this was broken with cross compilers, 18281 # most powerpc-linux boxes support dynamic linking these days and 18282 # people can always --disable-shared, the test was removed, and we 18283 # assume the GNU/Linux dynamic linker is in use. 18284 dynamic_linker='GNU/Linux ld.so' 18285 ;; 18286 18287netbsd*) 18288 version_type=sunos 18289 need_lib_prefix=no 18290 need_version=no 18291 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18292 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18294 dynamic_linker='NetBSD (a.out) ld.so' 18295 else 18296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18297 soname_spec='$libname$release$shared_ext$major' 18298 dynamic_linker='NetBSD ld.elf_so' 18299 fi 18300 shlibpath_var=LD_LIBRARY_PATH 18301 shlibpath_overrides_runpath=yes 18302 hardcode_into_libs=yes 18303 ;; 18304 18305newsos6) 18306 version_type=linux # correct to gnu/linux during the next big refactor 18307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18308 shlibpath_var=LD_LIBRARY_PATH 18309 shlibpath_overrides_runpath=yes 18310 ;; 18311 18312*nto* | *qnx*) 18313 version_type=qnx 18314 need_lib_prefix=no 18315 need_version=no 18316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18317 soname_spec='$libname$release$shared_ext$major' 18318 shlibpath_var=LD_LIBRARY_PATH 18319 shlibpath_overrides_runpath=no 18320 hardcode_into_libs=yes 18321 dynamic_linker='ldqnx.so' 18322 ;; 18323 18324openbsd* | bitrig*) 18325 version_type=sunos 18326 sys_lib_dlsearch_path_spec=/usr/lib 18327 need_lib_prefix=no 18328 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18329 need_version=no 18330 else 18331 need_version=yes 18332 fi 18333 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18335 shlibpath_var=LD_LIBRARY_PATH 18336 shlibpath_overrides_runpath=yes 18337 ;; 18338 18339os2*) 18340 libname_spec='$name' 18341 version_type=windows 18342 shrext_cmds=.dll 18343 need_version=no 18344 need_lib_prefix=no 18345 # OS/2 can only load a DLL with a base name of 8 characters or less. 18346 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18347 v=$($ECHO $release$versuffix | tr -d .-); 18348 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18349 $ECHO $n$v`$shared_ext' 18350 library_names_spec='${libname}_dll.$libext' 18351 dynamic_linker='OS/2 ld.exe' 18352 shlibpath_var=BEGINLIBPATH 18353 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18355 postinstall_cmds='base_file=`basename \$file`~ 18356 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18357 dldir=$destdir/`dirname \$dlpath`~ 18358 test -d \$dldir || mkdir -p \$dldir~ 18359 $install_prog $dir/$dlname \$dldir/$dlname~ 18360 chmod a+x \$dldir/$dlname~ 18361 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18362 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18363 fi' 18364 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18365 dlpath=$dir/\$dldll~ 18366 $RM \$dlpath' 18367 ;; 18368 18369osf3* | osf4* | osf5*) 18370 version_type=osf 18371 need_lib_prefix=no 18372 need_version=no 18373 soname_spec='$libname$release$shared_ext$major' 18374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18375 shlibpath_var=LD_LIBRARY_PATH 18376 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18378 ;; 18379 18380rdos*) 18381 dynamic_linker=no 18382 ;; 18383 18384solaris*) 18385 version_type=linux # correct to gnu/linux during the next big refactor 18386 need_lib_prefix=no 18387 need_version=no 18388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18389 soname_spec='$libname$release$shared_ext$major' 18390 shlibpath_var=LD_LIBRARY_PATH 18391 shlibpath_overrides_runpath=yes 18392 hardcode_into_libs=yes 18393 # ldd complains unless libraries are executable 18394 postinstall_cmds='chmod +x $lib' 18395 ;; 18396 18397sunos4*) 18398 version_type=sunos 18399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18401 shlibpath_var=LD_LIBRARY_PATH 18402 shlibpath_overrides_runpath=yes 18403 if test yes = "$with_gnu_ld"; then 18404 need_lib_prefix=no 18405 fi 18406 need_version=yes 18407 ;; 18408 18409sysv4 | sysv4.3*) 18410 version_type=linux # correct to gnu/linux during the next big refactor 18411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18412 soname_spec='$libname$release$shared_ext$major' 18413 shlibpath_var=LD_LIBRARY_PATH 18414 case $host_vendor in 18415 sni) 18416 shlibpath_overrides_runpath=no 18417 need_lib_prefix=no 18418 runpath_var=LD_RUN_PATH 18419 ;; 18420 siemens) 18421 need_lib_prefix=no 18422 ;; 18423 motorola) 18424 need_lib_prefix=no 18425 need_version=no 18426 shlibpath_overrides_runpath=no 18427 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18428 ;; 18429 esac 18430 ;; 18431 18432sysv4*MP*) 18433 if test -d /usr/nec; then 18434 version_type=linux # correct to gnu/linux during the next big refactor 18435 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18436 soname_spec='$libname$shared_ext.$major' 18437 shlibpath_var=LD_LIBRARY_PATH 18438 fi 18439 ;; 18440 18441sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18442 version_type=sco 18443 need_lib_prefix=no 18444 need_version=no 18445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18446 soname_spec='$libname$release$shared_ext$major' 18447 shlibpath_var=LD_LIBRARY_PATH 18448 shlibpath_overrides_runpath=yes 18449 hardcode_into_libs=yes 18450 if test yes = "$with_gnu_ld"; then 18451 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18452 else 18453 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18454 case $host_os in 18455 sco3.2v5*) 18456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18457 ;; 18458 esac 18459 fi 18460 sys_lib_dlsearch_path_spec='/usr/lib' 18461 ;; 18462 18463tpf*) 18464 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18465 version_type=linux # correct to gnu/linux during the next big refactor 18466 need_lib_prefix=no 18467 need_version=no 18468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18469 shlibpath_var=LD_LIBRARY_PATH 18470 shlibpath_overrides_runpath=no 18471 hardcode_into_libs=yes 18472 ;; 18473 18474uts4*) 18475 version_type=linux # correct to gnu/linux during the next big refactor 18476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18477 soname_spec='$libname$release$shared_ext$major' 18478 shlibpath_var=LD_LIBRARY_PATH 18479 ;; 18480 18481*) 18482 dynamic_linker=no 18483 ;; 18484esac 18485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18486printf "%s\n" "$dynamic_linker" >&6; } 18487test no = "$dynamic_linker" && can_build_shared=no 18488 18489variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18490if test yes = "$GCC"; then 18491 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18492fi 18493 18494if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18495 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18496fi 18497 18498if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18499 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18500fi 18501 18502# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18503configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18504 18505# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18506func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18507 18508# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18509configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18608printf %s "checking how to hardcode library paths into programs... " >&6; } 18609hardcode_action= 18610if test -n "$hardcode_libdir_flag_spec" || 18611 test -n "$runpath_var" || 18612 test yes = "$hardcode_automatic"; then 18613 18614 # We can hardcode non-existent directories. 18615 if test no != "$hardcode_direct" && 18616 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18617 # have to relink, otherwise we might link with an installed library 18618 # when we should be linking with a yet-to-be-installed one 18619 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18620 test no != "$hardcode_minus_L"; then 18621 # Linking always hardcodes the temporary library directory. 18622 hardcode_action=relink 18623 else 18624 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18625 hardcode_action=immediate 18626 fi 18627else 18628 # We cannot hardcode anything, or else we can only hardcode existing 18629 # directories. 18630 hardcode_action=unsupported 18631fi 18632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18633printf "%s\n" "$hardcode_action" >&6; } 18634 18635if test relink = "$hardcode_action" || 18636 test yes = "$inherit_rpath"; then 18637 # Fast installation is not supported 18638 enable_fast_install=no 18639elif test yes = "$shlibpath_overrides_runpath" || 18640 test no = "$enable_shared"; then 18641 # Fast installation is not necessary 18642 enable_fast_install=needless 18643fi 18644 18645 18646 18647 18648 18649 18650 if test yes != "$enable_dlopen"; then 18651 enable_dlopen=unknown 18652 enable_dlopen_self=unknown 18653 enable_dlopen_self_static=unknown 18654else 18655 lt_cv_dlopen=no 18656 lt_cv_dlopen_libs= 18657 18658 case $host_os in 18659 beos*) 18660 lt_cv_dlopen=load_add_on 18661 lt_cv_dlopen_libs= 18662 lt_cv_dlopen_self=yes 18663 ;; 18664 18665 mingw* | pw32* | cegcc*) 18666 lt_cv_dlopen=LoadLibrary 18667 lt_cv_dlopen_libs= 18668 ;; 18669 18670 cygwin*) 18671 lt_cv_dlopen=dlopen 18672 lt_cv_dlopen_libs= 18673 ;; 18674 18675 darwin*) 18676 # if libdl is installed we need to link against it 18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18678printf %s "checking for dlopen in -ldl... " >&6; } 18679if test ${ac_cv_lib_dl_dlopen+y} 18680then : 18681 printf %s "(cached) " >&6 18682else $as_nop 18683 ac_check_lib_save_LIBS=$LIBS 18684LIBS="-ldl $LIBS" 18685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18686/* end confdefs.h. */ 18687 18688/* Override any GCC internal prototype to avoid an error. 18689 Use char because int might match the return type of a GCC 18690 builtin and then its argument prototype would still apply. */ 18691char dlopen (); 18692int 18693main (void) 18694{ 18695return dlopen (); 18696 ; 18697 return 0; 18698} 18699_ACEOF 18700if ac_fn_c_try_link "$LINENO" 18701then : 18702 ac_cv_lib_dl_dlopen=yes 18703else $as_nop 18704 ac_cv_lib_dl_dlopen=no 18705fi 18706rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18707 conftest$ac_exeext conftest.$ac_ext 18708LIBS=$ac_check_lib_save_LIBS 18709fi 18710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18711printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18712if test "x$ac_cv_lib_dl_dlopen" = xyes 18713then : 18714 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18715else $as_nop 18716 18717 lt_cv_dlopen=dyld 18718 lt_cv_dlopen_libs= 18719 lt_cv_dlopen_self=yes 18720 18721fi 18722 18723 ;; 18724 18725 tpf*) 18726 # Don't try to run any link tests for TPF. We know it's impossible 18727 # because TPF is a cross-compiler, and we know how we open DSOs. 18728 lt_cv_dlopen=dlopen 18729 lt_cv_dlopen_libs= 18730 lt_cv_dlopen_self=no 18731 ;; 18732 18733 *) 18734 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18735if test "x$ac_cv_func_shl_load" = xyes 18736then : 18737 lt_cv_dlopen=shl_load 18738else $as_nop 18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18740printf %s "checking for shl_load in -ldld... " >&6; } 18741if test ${ac_cv_lib_dld_shl_load+y} 18742then : 18743 printf %s "(cached) " >&6 18744else $as_nop 18745 ac_check_lib_save_LIBS=$LIBS 18746LIBS="-ldld $LIBS" 18747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18748/* end confdefs.h. */ 18749 18750/* Override any GCC internal prototype to avoid an error. 18751 Use char because int might match the return type of a GCC 18752 builtin and then its argument prototype would still apply. */ 18753char shl_load (); 18754int 18755main (void) 18756{ 18757return shl_load (); 18758 ; 18759 return 0; 18760} 18761_ACEOF 18762if ac_fn_c_try_link "$LINENO" 18763then : 18764 ac_cv_lib_dld_shl_load=yes 18765else $as_nop 18766 ac_cv_lib_dld_shl_load=no 18767fi 18768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18769 conftest$ac_exeext conftest.$ac_ext 18770LIBS=$ac_check_lib_save_LIBS 18771fi 18772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18773printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18774if test "x$ac_cv_lib_dld_shl_load" = xyes 18775then : 18776 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18777else $as_nop 18778 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18779if test "x$ac_cv_func_dlopen" = xyes 18780then : 18781 lt_cv_dlopen=dlopen 18782else $as_nop 18783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18784printf %s "checking for dlopen in -ldl... " >&6; } 18785if test ${ac_cv_lib_dl_dlopen+y} 18786then : 18787 printf %s "(cached) " >&6 18788else $as_nop 18789 ac_check_lib_save_LIBS=$LIBS 18790LIBS="-ldl $LIBS" 18791cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18792/* end confdefs.h. */ 18793 18794/* Override any GCC internal prototype to avoid an error. 18795 Use char because int might match the return type of a GCC 18796 builtin and then its argument prototype would still apply. */ 18797char dlopen (); 18798int 18799main (void) 18800{ 18801return dlopen (); 18802 ; 18803 return 0; 18804} 18805_ACEOF 18806if ac_fn_c_try_link "$LINENO" 18807then : 18808 ac_cv_lib_dl_dlopen=yes 18809else $as_nop 18810 ac_cv_lib_dl_dlopen=no 18811fi 18812rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18813 conftest$ac_exeext conftest.$ac_ext 18814LIBS=$ac_check_lib_save_LIBS 18815fi 18816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18817printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18818if test "x$ac_cv_lib_dl_dlopen" = xyes 18819then : 18820 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18821else $as_nop 18822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18823printf %s "checking for dlopen in -lsvld... " >&6; } 18824if test ${ac_cv_lib_svld_dlopen+y} 18825then : 18826 printf %s "(cached) " >&6 18827else $as_nop 18828 ac_check_lib_save_LIBS=$LIBS 18829LIBS="-lsvld $LIBS" 18830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18831/* end confdefs.h. */ 18832 18833/* Override any GCC internal prototype to avoid an error. 18834 Use char because int might match the return type of a GCC 18835 builtin and then its argument prototype would still apply. */ 18836char dlopen (); 18837int 18838main (void) 18839{ 18840return dlopen (); 18841 ; 18842 return 0; 18843} 18844_ACEOF 18845if ac_fn_c_try_link "$LINENO" 18846then : 18847 ac_cv_lib_svld_dlopen=yes 18848else $as_nop 18849 ac_cv_lib_svld_dlopen=no 18850fi 18851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18852 conftest$ac_exeext conftest.$ac_ext 18853LIBS=$ac_check_lib_save_LIBS 18854fi 18855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18856printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18857if test "x$ac_cv_lib_svld_dlopen" = xyes 18858then : 18859 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18860else $as_nop 18861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18862printf %s "checking for dld_link in -ldld... " >&6; } 18863if test ${ac_cv_lib_dld_dld_link+y} 18864then : 18865 printf %s "(cached) " >&6 18866else $as_nop 18867 ac_check_lib_save_LIBS=$LIBS 18868LIBS="-ldld $LIBS" 18869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18870/* end confdefs.h. */ 18871 18872/* Override any GCC internal prototype to avoid an error. 18873 Use char because int might match the return type of a GCC 18874 builtin and then its argument prototype would still apply. */ 18875char dld_link (); 18876int 18877main (void) 18878{ 18879return dld_link (); 18880 ; 18881 return 0; 18882} 18883_ACEOF 18884if ac_fn_c_try_link "$LINENO" 18885then : 18886 ac_cv_lib_dld_dld_link=yes 18887else $as_nop 18888 ac_cv_lib_dld_dld_link=no 18889fi 18890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18891 conftest$ac_exeext conftest.$ac_ext 18892LIBS=$ac_check_lib_save_LIBS 18893fi 18894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18895printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18896if test "x$ac_cv_lib_dld_dld_link" = xyes 18897then : 18898 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18899fi 18900 18901 18902fi 18903 18904 18905fi 18906 18907 18908fi 18909 18910 18911fi 18912 18913 18914fi 18915 18916 ;; 18917 esac 18918 18919 if test no = "$lt_cv_dlopen"; then 18920 enable_dlopen=no 18921 else 18922 enable_dlopen=yes 18923 fi 18924 18925 case $lt_cv_dlopen in 18926 dlopen) 18927 save_CPPFLAGS=$CPPFLAGS 18928 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18929 18930 save_LDFLAGS=$LDFLAGS 18931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18932 18933 save_LIBS=$LIBS 18934 LIBS="$lt_cv_dlopen_libs $LIBS" 18935 18936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18937printf %s "checking whether a program can dlopen itself... " >&6; } 18938if test ${lt_cv_dlopen_self+y} 18939then : 18940 printf %s "(cached) " >&6 18941else $as_nop 18942 if test yes = "$cross_compiling"; then : 18943 lt_cv_dlopen_self=cross 18944else 18945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18946 lt_status=$lt_dlunknown 18947 cat > conftest.$ac_ext <<_LT_EOF 18948#line $LINENO "configure" 18949#include "confdefs.h" 18950 18951#if HAVE_DLFCN_H 18952#include <dlfcn.h> 18953#endif 18954 18955#include <stdio.h> 18956 18957#ifdef RTLD_GLOBAL 18958# define LT_DLGLOBAL RTLD_GLOBAL 18959#else 18960# ifdef DL_GLOBAL 18961# define LT_DLGLOBAL DL_GLOBAL 18962# else 18963# define LT_DLGLOBAL 0 18964# endif 18965#endif 18966 18967/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18968 find out it does not work in some platform. */ 18969#ifndef LT_DLLAZY_OR_NOW 18970# ifdef RTLD_LAZY 18971# define LT_DLLAZY_OR_NOW RTLD_LAZY 18972# else 18973# ifdef DL_LAZY 18974# define LT_DLLAZY_OR_NOW DL_LAZY 18975# else 18976# ifdef RTLD_NOW 18977# define LT_DLLAZY_OR_NOW RTLD_NOW 18978# else 18979# ifdef DL_NOW 18980# define LT_DLLAZY_OR_NOW DL_NOW 18981# else 18982# define LT_DLLAZY_OR_NOW 0 18983# endif 18984# endif 18985# endif 18986# endif 18987#endif 18988 18989/* When -fvisibility=hidden is used, assume the code has been annotated 18990 correspondingly for the symbols needed. */ 18991#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18992int fnord () __attribute__((visibility("default"))); 18993#endif 18994 18995int fnord () { return 42; } 18996int main () 18997{ 18998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18999 int status = $lt_dlunknown; 19000 19001 if (self) 19002 { 19003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19004 else 19005 { 19006 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19007 else puts (dlerror ()); 19008 } 19009 /* dlclose (self); */ 19010 } 19011 else 19012 puts (dlerror ()); 19013 19014 return status; 19015} 19016_LT_EOF 19017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19018 (eval $ac_link) 2>&5 19019 ac_status=$? 19020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19021 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19022 (./conftest; exit; ) >&5 2>/dev/null 19023 lt_status=$? 19024 case x$lt_status in 19025 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19026 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19027 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19028 esac 19029 else : 19030 # compilation failed 19031 lt_cv_dlopen_self=no 19032 fi 19033fi 19034rm -fr conftest* 19035 19036 19037fi 19038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19039printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19040 19041 if test yes = "$lt_cv_dlopen_self"; then 19042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19044printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19045if test ${lt_cv_dlopen_self_static+y} 19046then : 19047 printf %s "(cached) " >&6 19048else $as_nop 19049 if test yes = "$cross_compiling"; then : 19050 lt_cv_dlopen_self_static=cross 19051else 19052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19053 lt_status=$lt_dlunknown 19054 cat > conftest.$ac_ext <<_LT_EOF 19055#line $LINENO "configure" 19056#include "confdefs.h" 19057 19058#if HAVE_DLFCN_H 19059#include <dlfcn.h> 19060#endif 19061 19062#include <stdio.h> 19063 19064#ifdef RTLD_GLOBAL 19065# define LT_DLGLOBAL RTLD_GLOBAL 19066#else 19067# ifdef DL_GLOBAL 19068# define LT_DLGLOBAL DL_GLOBAL 19069# else 19070# define LT_DLGLOBAL 0 19071# endif 19072#endif 19073 19074/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19075 find out it does not work in some platform. */ 19076#ifndef LT_DLLAZY_OR_NOW 19077# ifdef RTLD_LAZY 19078# define LT_DLLAZY_OR_NOW RTLD_LAZY 19079# else 19080# ifdef DL_LAZY 19081# define LT_DLLAZY_OR_NOW DL_LAZY 19082# else 19083# ifdef RTLD_NOW 19084# define LT_DLLAZY_OR_NOW RTLD_NOW 19085# else 19086# ifdef DL_NOW 19087# define LT_DLLAZY_OR_NOW DL_NOW 19088# else 19089# define LT_DLLAZY_OR_NOW 0 19090# endif 19091# endif 19092# endif 19093# endif 19094#endif 19095 19096/* When -fvisibility=hidden is used, assume the code has been annotated 19097 correspondingly for the symbols needed. */ 19098#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19099int fnord () __attribute__((visibility("default"))); 19100#endif 19101 19102int fnord () { return 42; } 19103int main () 19104{ 19105 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19106 int status = $lt_dlunknown; 19107 19108 if (self) 19109 { 19110 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19111 else 19112 { 19113 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19114 else puts (dlerror ()); 19115 } 19116 /* dlclose (self); */ 19117 } 19118 else 19119 puts (dlerror ()); 19120 19121 return status; 19122} 19123_LT_EOF 19124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19125 (eval $ac_link) 2>&5 19126 ac_status=$? 19127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19128 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19129 (./conftest; exit; ) >&5 2>/dev/null 19130 lt_status=$? 19131 case x$lt_status in 19132 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19133 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19134 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19135 esac 19136 else : 19137 # compilation failed 19138 lt_cv_dlopen_self_static=no 19139 fi 19140fi 19141rm -fr conftest* 19142 19143 19144fi 19145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19146printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19147 fi 19148 19149 CPPFLAGS=$save_CPPFLAGS 19150 LDFLAGS=$save_LDFLAGS 19151 LIBS=$save_LIBS 19152 ;; 19153 esac 19154 19155 case $lt_cv_dlopen_self in 19156 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19157 *) enable_dlopen_self=unknown ;; 19158 esac 19159 19160 case $lt_cv_dlopen_self_static in 19161 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19162 *) enable_dlopen_self_static=unknown ;; 19163 esac 19164fi 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182striplib= 19183old_striplib= 19184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19185printf %s "checking whether stripping libraries is possible... " >&6; } 19186if test -z "$STRIP"; then 19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19188printf "%s\n" "no" >&6; } 19189else 19190 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19191 old_striplib="$STRIP --strip-debug" 19192 striplib="$STRIP --strip-unneeded" 19193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19194printf "%s\n" "yes" >&6; } 19195 else 19196 case $host_os in 19197 darwin*) 19198 # FIXME - insert some real tests, host_os isn't really good enough 19199 striplib="$STRIP -x" 19200 old_striplib="$STRIP -S" 19201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19202printf "%s\n" "yes" >&6; } 19203 ;; 19204 freebsd*) 19205 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19206 old_striplib="$STRIP --strip-debug" 19207 striplib="$STRIP --strip-unneeded" 19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19209printf "%s\n" "yes" >&6; } 19210 else 19211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19212printf "%s\n" "no" >&6; } 19213 fi 19214 ;; 19215 *) 19216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19217printf "%s\n" "no" >&6; } 19218 ;; 19219 esac 19220 fi 19221fi 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 # Report what library types will actually be built 19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19236printf %s "checking if libtool supports shared libraries... " >&6; } 19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19238printf "%s\n" "$can_build_shared" >&6; } 19239 19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19241printf %s "checking whether to build shared libraries... " >&6; } 19242 test no = "$can_build_shared" && enable_shared=no 19243 19244 # On AIX, shared libraries and static libraries use the same namespace, and 19245 # are all built from PIC. 19246 case $host_os in 19247 aix3*) 19248 test yes = "$enable_shared" && enable_static=no 19249 if test -n "$RANLIB"; then 19250 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19251 postinstall_cmds='$RANLIB $lib' 19252 fi 19253 ;; 19254 19255 aix[4-9]*) 19256 if test ia64 != "$host_cpu"; then 19257 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19258 yes,aix,yes) ;; # shared object as lib.so file only 19259 yes,svr4,*) ;; # shared object as lib.so archive member only 19260 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19261 esac 19262 fi 19263 ;; 19264 esac 19265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19266printf "%s\n" "$enable_shared" >&6; } 19267 19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19269printf %s "checking whether to build static libraries... " >&6; } 19270 # Make sure either enable_shared or enable_static is yes. 19271 test yes = "$enable_shared" || enable_static=yes 19272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19273printf "%s\n" "$enable_static" >&6; } 19274 19275 19276 19277 19278fi 19279ac_ext=c 19280ac_cpp='$CPP $CPPFLAGS' 19281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19283ac_compiler_gnu=$ac_cv_c_compiler_gnu 19284 19285CC=$lt_save_CC 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 ac_config_commands="$ac_config_commands libtool" 19302 19303 19304 19305 19306# Only expand once: 19307 19308 19309 19310 19311 19312# Define a configure option for an alternate module directory 19313 19314# Check whether --with-xorg-module-dir was given. 19315if test ${with_xorg_module_dir+y} 19316then : 19317 withval=$with_xorg_module_dir; moduledir="$withval" 19318else $as_nop 19319 moduledir="$libdir/xorg/modules" 19320fi 19321 19322 19323# Store the list of server defined optional extensions in REQUIRED_MODULES 19324 19325 19326 SAVE_CFLAGS="$CFLAGS" 19327 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19329/* end confdefs.h. */ 19330 19331#include "xorg-server.h" 19332#if !defined RANDR 19333#error RANDR not defined 19334#endif 19335 19336int 19337main (void) 19338{ 19339 19340 ; 19341 return 0; 19342} 19343_ACEOF 19344if ac_fn_c_try_compile "$LINENO" 19345then : 19346 _EXT_CHECK=yes 19347else $as_nop 19348 _EXT_CHECK=no 19349fi 19350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19351 CFLAGS="$SAVE_CFLAGS" 19352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19353printf %s "checking if RANDR is defined... " >&6; } 19354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19355printf "%s\n" "$_EXT_CHECK" >&6; } 19356 if test "$_EXT_CHECK" != no; then 19357 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19358 fi 19359 19360 19361 19362 SAVE_CFLAGS="$CFLAGS" 19363 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19365/* end confdefs.h. */ 19366 19367#include "xorg-server.h" 19368#if !defined RENDER 19369#error RENDER not defined 19370#endif 19371 19372int 19373main (void) 19374{ 19375 19376 ; 19377 return 0; 19378} 19379_ACEOF 19380if ac_fn_c_try_compile "$LINENO" 19381then : 19382 _EXT_CHECK=yes 19383else $as_nop 19384 _EXT_CHECK=no 19385fi 19386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19387 CFLAGS="$SAVE_CFLAGS" 19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19389printf %s "checking if RENDER is defined... " >&6; } 19390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19391printf "%s\n" "$_EXT_CHECK" >&6; } 19392 if test "$_EXT_CHECK" != no; then 19393 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19394 fi 19395 19396 19397# Obtain compiler/linker options for the driver dependencies 19398 19399pkg_failed=no 19400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19401printf %s "checking for XORG... " >&6; } 19402 19403if test -n "$XORG_CFLAGS"; then 19404 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19405 elif test -n "$PKG_CONFIG"; then 19406 if test -n "$PKG_CONFIG" && \ 19407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19408 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19409 ac_status=$? 19410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19411 test $ac_status = 0; }; then 19412 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19413 test "x$?" != "x0" && pkg_failed=yes 19414else 19415 pkg_failed=yes 19416fi 19417 else 19418 pkg_failed=untried 19419fi 19420if test -n "$XORG_LIBS"; then 19421 pkg_cv_XORG_LIBS="$XORG_LIBS" 19422 elif test -n "$PKG_CONFIG"; then 19423 if test -n "$PKG_CONFIG" && \ 19424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19425 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 19426 ac_status=$? 19427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19428 test $ac_status = 0; }; then 19429 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19430 test "x$?" != "x0" && pkg_failed=yes 19431else 19432 pkg_failed=yes 19433fi 19434 else 19435 pkg_failed=untried 19436fi 19437 19438 19439 19440if test $pkg_failed = yes; then 19441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19442printf "%s\n" "no" >&6; } 19443 19444if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19445 _pkg_short_errors_supported=yes 19446else 19447 _pkg_short_errors_supported=no 19448fi 19449 if test $_pkg_short_errors_supported = yes; then 19450 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19451 else 19452 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19453 fi 19454 # Put the nasty error message in config.log where it belongs 19455 echo "$XORG_PKG_ERRORS" >&5 19456 19457 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 19458 19459$XORG_PKG_ERRORS 19460 19461Consider adjusting the PKG_CONFIG_PATH environment variable if you 19462installed software in a non-standard prefix. 19463 19464Alternatively, you may set the environment variables XORG_CFLAGS 19465and XORG_LIBS to avoid the need to call pkg-config. 19466See the pkg-config man page for more details." "$LINENO" 5 19467elif test $pkg_failed = untried; then 19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19469printf "%s\n" "no" >&6; } 19470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19471printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19472as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19473is in your PATH or set the PKG_CONFIG environment variable to the full 19474path to pkg-config. 19475 19476Alternatively, you may set the environment variables XORG_CFLAGS 19477and XORG_LIBS to avoid the need to call pkg-config. 19478See the pkg-config man page for more details. 19479 19480To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19481See \`config.log' for more details" "$LINENO" 5; } 19482else 19483 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19484 XORG_LIBS=$pkg_cv_XORG_LIBS 19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19486printf "%s\n" "yes" >&6; } 19487 19488fi 19489 19490# Checks for libraries. 19491 19492 19493 19494DRIVER_NAME=suncg14 19495 19496 19497ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19498 19499cat >confcache <<\_ACEOF 19500# This file is a shell script that caches the results of configure 19501# tests run on this system so they can be shared between configure 19502# scripts and configure runs, see configure's option --config-cache. 19503# It is not useful on other systems. If it contains results you don't 19504# want to keep, you may remove or edit it. 19505# 19506# config.status only pays attention to the cache file if you give it 19507# the --recheck option to rerun configure. 19508# 19509# `ac_cv_env_foo' variables (set or unset) will be overridden when 19510# loading this file, other *unset* `ac_cv_foo' will be assigned the 19511# following values. 19512 19513_ACEOF 19514 19515# The following way of writing the cache mishandles newlines in values, 19516# but we know of no workaround that is simple, portable, and efficient. 19517# So, we kill variables containing newlines. 19518# Ultrix sh set writes to stderr and can't be redirected directly, 19519# and sets the high bit in the cache file unless we assign to the vars. 19520( 19521 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19522 eval ac_val=\$$ac_var 19523 case $ac_val in #( 19524 *${as_nl}*) 19525 case $ac_var in #( 19526 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19527printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19528 esac 19529 case $ac_var in #( 19530 _ | IFS | as_nl) ;; #( 19531 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19532 *) { eval $ac_var=; unset $ac_var;} ;; 19533 esac ;; 19534 esac 19535 done 19536 19537 (set) 2>&1 | 19538 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19539 *${as_nl}ac_space=\ *) 19540 # `set' does not quote correctly, so add quotes: double-quote 19541 # substitution turns \\\\ into \\, and sed turns \\ into \. 19542 sed -n \ 19543 "s/'/'\\\\''/g; 19544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19545 ;; #( 19546 *) 19547 # `set' quotes correctly as required by POSIX, so do not add quotes. 19548 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19549 ;; 19550 esac | 19551 sort 19552) | 19553 sed ' 19554 /^ac_cv_env_/b end 19555 t clear 19556 :clear 19557 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19558 t end 19559 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19560 :end' >>confcache 19561if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19562 if test -w "$cache_file"; then 19563 if test "x$cache_file" != "x/dev/null"; then 19564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19565printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19566 if test ! -f "$cache_file" || test -h "$cache_file"; then 19567 cat confcache >"$cache_file" 19568 else 19569 case $cache_file in #( 19570 */* | ?:*) 19571 mv -f confcache "$cache_file"$$ && 19572 mv -f "$cache_file"$$ "$cache_file" ;; #( 19573 *) 19574 mv -f confcache "$cache_file" ;; 19575 esac 19576 fi 19577 fi 19578 else 19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19580printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19581 fi 19582fi 19583rm -f confcache 19584 19585test "x$prefix" = xNONE && prefix=$ac_default_prefix 19586# Let make expand exec_prefix. 19587test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19588 19589DEFS=-DHAVE_CONFIG_H 19590 19591ac_libobjs= 19592ac_ltlibobjs= 19593U= 19594for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19595 # 1. Remove the extension, and $U if already installed. 19596 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19597 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19598 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19599 # will be set to the directory where LIBOBJS objects are built. 19600 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19601 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19602done 19603LIBOBJS=$ac_libobjs 19604 19605LTLIBOBJS=$ac_ltlibobjs 19606 19607 19608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19609printf %s "checking that generated files are newer than configure... " >&6; } 19610 if test -n "$am_sleep_pid"; then 19611 # Hide warnings about reused PIDs. 19612 wait $am_sleep_pid 2>/dev/null 19613 fi 19614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19615printf "%s\n" "done" >&6; } 19616 if test -n "$EXEEXT"; then 19617 am__EXEEXT_TRUE= 19618 am__EXEEXT_FALSE='#' 19619else 19620 am__EXEEXT_TRUE='#' 19621 am__EXEEXT_FALSE= 19622fi 19623 19624if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19625 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 19626Usually this means the macro was only invoked conditionally." "$LINENO" 5 19627fi 19628if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19629 as_fn_error $? "conditional \"AMDEP\" was never defined. 19630Usually this means the macro was only invoked conditionally." "$LINENO" 5 19631fi 19632if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19633 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19634Usually this means the macro was only invoked conditionally." "$LINENO" 5 19635fi 19636 19637: "${CONFIG_STATUS=./config.status}" 19638ac_write_fail=0 19639ac_clean_files_save=$ac_clean_files 19640ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19642printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19643as_write_fail=0 19644cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19645#! $SHELL 19646# Generated by $as_me. 19647# Run this file to recreate the current configuration. 19648# Compiler output produced by configure, useful for debugging 19649# configure, is in config.log if it exists. 19650 19651debug=false 19652ac_cs_recheck=false 19653ac_cs_silent=false 19654 19655SHELL=\${CONFIG_SHELL-$SHELL} 19656export SHELL 19657_ASEOF 19658cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19659## -------------------- ## 19660## M4sh Initialization. ## 19661## -------------------- ## 19662 19663# Be more Bourne compatible 19664DUALCASE=1; export DUALCASE # for MKS sh 19665as_nop=: 19666if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19667then : 19668 emulate sh 19669 NULLCMD=: 19670 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19671 # is contrary to our usage. Disable this feature. 19672 alias -g '${1+"$@"}'='"$@"' 19673 setopt NO_GLOB_SUBST 19674else $as_nop 19675 case `(set -o) 2>/dev/null` in #( 19676 *posix*) : 19677 set -o posix ;; #( 19678 *) : 19679 ;; 19680esac 19681fi 19682 19683 19684 19685# Reset variables that may have inherited troublesome values from 19686# the environment. 19687 19688# IFS needs to be set, to space, tab, and newline, in precisely that order. 19689# (If _AS_PATH_WALK were called with IFS unset, it would have the 19690# side effect of setting IFS to empty, thus disabling word splitting.) 19691# Quoting is to prevent editors from complaining about space-tab. 19692as_nl=' 19693' 19694export as_nl 19695IFS=" "" $as_nl" 19696 19697PS1='$ ' 19698PS2='> ' 19699PS4='+ ' 19700 19701# Ensure predictable behavior from utilities with locale-dependent output. 19702LC_ALL=C 19703export LC_ALL 19704LANGUAGE=C 19705export LANGUAGE 19706 19707# We cannot yet rely on "unset" to work, but we need these variables 19708# to be unset--not just set to an empty or harmless value--now, to 19709# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19710# also avoids known problems related to "unset" and subshell syntax 19711# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19712for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19713do eval test \${$as_var+y} \ 19714 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19715done 19716 19717# Ensure that fds 0, 1, and 2 are open. 19718if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19719if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19720if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19721 19722# The user is always right. 19723if ${PATH_SEPARATOR+false} :; then 19724 PATH_SEPARATOR=: 19725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19727 PATH_SEPARATOR=';' 19728 } 19729fi 19730 19731 19732# Find who we are. Look in the path if we contain no directory separator. 19733as_myself= 19734case $0 in #(( 19735 *[\\/]* ) as_myself=$0 ;; 19736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19737for as_dir in $PATH 19738do 19739 IFS=$as_save_IFS 19740 case $as_dir in #((( 19741 '') as_dir=./ ;; 19742 */) ;; 19743 *) as_dir=$as_dir/ ;; 19744 esac 19745 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19746 done 19747IFS=$as_save_IFS 19748 19749 ;; 19750esac 19751# We did not find ourselves, most probably we were run as `sh COMMAND' 19752# in which case we are not to be found in the path. 19753if test "x$as_myself" = x; then 19754 as_myself=$0 19755fi 19756if test ! -f "$as_myself"; then 19757 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19758 exit 1 19759fi 19760 19761 19762 19763# as_fn_error STATUS ERROR [LINENO LOG_FD] 19764# ---------------------------------------- 19765# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19766# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19767# script with STATUS, using 1 if that was 0. 19768as_fn_error () 19769{ 19770 as_status=$1; test $as_status -eq 0 && as_status=1 19771 if test "$4"; then 19772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19774 fi 19775 printf "%s\n" "$as_me: error: $2" >&2 19776 as_fn_exit $as_status 19777} # as_fn_error 19778 19779 19780 19781# as_fn_set_status STATUS 19782# ----------------------- 19783# Set $? to STATUS, without forking. 19784as_fn_set_status () 19785{ 19786 return $1 19787} # as_fn_set_status 19788 19789# as_fn_exit STATUS 19790# ----------------- 19791# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19792as_fn_exit () 19793{ 19794 set +e 19795 as_fn_set_status $1 19796 exit $1 19797} # as_fn_exit 19798 19799# as_fn_unset VAR 19800# --------------- 19801# Portably unset VAR. 19802as_fn_unset () 19803{ 19804 { eval $1=; unset $1;} 19805} 19806as_unset=as_fn_unset 19807 19808# as_fn_append VAR VALUE 19809# ---------------------- 19810# Append the text in VALUE to the end of the definition contained in VAR. Take 19811# advantage of any shell optimizations that allow amortized linear growth over 19812# repeated appends, instead of the typical quadratic growth present in naive 19813# implementations. 19814if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19815then : 19816 eval 'as_fn_append () 19817 { 19818 eval $1+=\$2 19819 }' 19820else $as_nop 19821 as_fn_append () 19822 { 19823 eval $1=\$$1\$2 19824 } 19825fi # as_fn_append 19826 19827# as_fn_arith ARG... 19828# ------------------ 19829# Perform arithmetic evaluation on the ARGs, and store the result in the 19830# global $as_val. Take advantage of shells that can avoid forks. The arguments 19831# must be portable across $(()) and expr. 19832if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19833then : 19834 eval 'as_fn_arith () 19835 { 19836 as_val=$(( $* )) 19837 }' 19838else $as_nop 19839 as_fn_arith () 19840 { 19841 as_val=`expr "$@" || test $? -eq 1` 19842 } 19843fi # as_fn_arith 19844 19845 19846if expr a : '\(a\)' >/dev/null 2>&1 && 19847 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19848 as_expr=expr 19849else 19850 as_expr=false 19851fi 19852 19853if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19854 as_basename=basename 19855else 19856 as_basename=false 19857fi 19858 19859if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19860 as_dirname=dirname 19861else 19862 as_dirname=false 19863fi 19864 19865as_me=`$as_basename -- "$0" || 19866$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19867 X"$0" : 'X\(//\)$' \| \ 19868 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19869printf "%s\n" X/"$0" | 19870 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19871 s//\1/ 19872 q 19873 } 19874 /^X\/\(\/\/\)$/{ 19875 s//\1/ 19876 q 19877 } 19878 /^X\/\(\/\).*/{ 19879 s//\1/ 19880 q 19881 } 19882 s/.*/./; q'` 19883 19884# Avoid depending upon Character Ranges. 19885as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19886as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19887as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19888as_cr_digits='0123456789' 19889as_cr_alnum=$as_cr_Letters$as_cr_digits 19890 19891 19892# Determine whether it's possible to make 'echo' print without a newline. 19893# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19894# for compatibility with existing Makefiles. 19895ECHO_C= ECHO_N= ECHO_T= 19896case `echo -n x` in #((((( 19897-n*) 19898 case `echo 'xy\c'` in 19899 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19900 xy) ECHO_C='\c';; 19901 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19902 ECHO_T=' ';; 19903 esac;; 19904*) 19905 ECHO_N='-n';; 19906esac 19907 19908# For backward compatibility with old third-party macros, we provide 19909# the shell variables $as_echo and $as_echo_n. New code should use 19910# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19911as_echo='printf %s\n' 19912as_echo_n='printf %s' 19913 19914rm -f conf$$ conf$$.exe conf$$.file 19915if test -d conf$$.dir; then 19916 rm -f conf$$.dir/conf$$.file 19917else 19918 rm -f conf$$.dir 19919 mkdir conf$$.dir 2>/dev/null 19920fi 19921if (echo >conf$$.file) 2>/dev/null; then 19922 if ln -s conf$$.file conf$$ 2>/dev/null; then 19923 as_ln_s='ln -s' 19924 # ... but there are two gotchas: 19925 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19926 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19927 # In both cases, we have to default to `cp -pR'. 19928 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19929 as_ln_s='cp -pR' 19930 elif ln conf$$.file conf$$ 2>/dev/null; then 19931 as_ln_s=ln 19932 else 19933 as_ln_s='cp -pR' 19934 fi 19935else 19936 as_ln_s='cp -pR' 19937fi 19938rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19939rmdir conf$$.dir 2>/dev/null 19940 19941 19942# as_fn_mkdir_p 19943# ------------- 19944# Create "$as_dir" as a directory, including parents if necessary. 19945as_fn_mkdir_p () 19946{ 19947 19948 case $as_dir in #( 19949 -*) as_dir=./$as_dir;; 19950 esac 19951 test -d "$as_dir" || eval $as_mkdir_p || { 19952 as_dirs= 19953 while :; do 19954 case $as_dir in #( 19955 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19956 *) as_qdir=$as_dir;; 19957 esac 19958 as_dirs="'$as_qdir' $as_dirs" 19959 as_dir=`$as_dirname -- "$as_dir" || 19960$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19961 X"$as_dir" : 'X\(//\)[^/]' \| \ 19962 X"$as_dir" : 'X\(//\)$' \| \ 19963 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19964printf "%s\n" X"$as_dir" | 19965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19966 s//\1/ 19967 q 19968 } 19969 /^X\(\/\/\)[^/].*/{ 19970 s//\1/ 19971 q 19972 } 19973 /^X\(\/\/\)$/{ 19974 s//\1/ 19975 q 19976 } 19977 /^X\(\/\).*/{ 19978 s//\1/ 19979 q 19980 } 19981 s/.*/./; q'` 19982 test -d "$as_dir" && break 19983 done 19984 test -z "$as_dirs" || eval "mkdir $as_dirs" 19985 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19986 19987 19988} # as_fn_mkdir_p 19989if mkdir -p . 2>/dev/null; then 19990 as_mkdir_p='mkdir -p "$as_dir"' 19991else 19992 test -d ./-p && rmdir ./-p 19993 as_mkdir_p=false 19994fi 19995 19996 19997# as_fn_executable_p FILE 19998# ----------------------- 19999# Test if FILE is an executable regular file. 20000as_fn_executable_p () 20001{ 20002 test -f "$1" && test -x "$1" 20003} # as_fn_executable_p 20004as_test_x='test -x' 20005as_executable_p=as_fn_executable_p 20006 20007# Sed expression to map a string onto a valid CPP name. 20008as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20009 20010# Sed expression to map a string onto a valid variable name. 20011as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20012 20013 20014exec 6>&1 20015## ----------------------------------- ## 20016## Main body of $CONFIG_STATUS script. ## 20017## ----------------------------------- ## 20018_ASEOF 20019test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20020 20021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20022# Save the log message, to keep $0 and so on meaningful, and to 20023# report actual input values of CONFIG_FILES etc. instead of their 20024# values after options handling. 20025ac_log=" 20026This file was extended by xf86-video-suncg14 $as_me 1.1.3, which was 20027generated by GNU Autoconf 2.71. Invocation command line was 20028 20029 CONFIG_FILES = $CONFIG_FILES 20030 CONFIG_HEADERS = $CONFIG_HEADERS 20031 CONFIG_LINKS = $CONFIG_LINKS 20032 CONFIG_COMMANDS = $CONFIG_COMMANDS 20033 $ $0 $@ 20034 20035on `(hostname || uname -n) 2>/dev/null | sed 1q` 20036" 20037 20038_ACEOF 20039 20040case $ac_config_files in *" 20041"*) set x $ac_config_files; shift; ac_config_files=$*;; 20042esac 20043 20044case $ac_config_headers in *" 20045"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20046esac 20047 20048 20049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20050# Files that config.status was made for. 20051config_files="$ac_config_files" 20052config_headers="$ac_config_headers" 20053config_commands="$ac_config_commands" 20054 20055_ACEOF 20056 20057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20058ac_cs_usage="\ 20059\`$as_me' instantiates files and other configuration actions 20060from templates according to the current configuration. Unless the files 20061and actions are specified as TAGs, all are instantiated by default. 20062 20063Usage: $0 [OPTION]... [TAG]... 20064 20065 -h, --help print this help, then exit 20066 -V, --version print version number and configuration settings, then exit 20067 --config print configuration, then exit 20068 -q, --quiet, --silent 20069 do not print progress messages 20070 -d, --debug don't remove temporary files 20071 --recheck update $as_me by reconfiguring in the same conditions 20072 --file=FILE[:TEMPLATE] 20073 instantiate the configuration file FILE 20074 --header=FILE[:TEMPLATE] 20075 instantiate the configuration header FILE 20076 20077Configuration files: 20078$config_files 20079 20080Configuration headers: 20081$config_headers 20082 20083Configuration commands: 20084$config_commands 20085 20086Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-suncg14/-/issues>." 20087 20088_ACEOF 20089ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20090ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20092ac_cs_config='$ac_cs_config_escaped' 20093ac_cs_version="\\ 20094xf86-video-suncg14 config.status 1.1.3 20095configured by $0, generated by GNU Autoconf 2.71, 20096 with options \\"\$ac_cs_config\\" 20097 20098Copyright (C) 2021 Free Software Foundation, Inc. 20099This config.status script is free software; the Free Software Foundation 20100gives unlimited permission to copy, distribute and modify it." 20101 20102ac_pwd='$ac_pwd' 20103srcdir='$srcdir' 20104INSTALL='$INSTALL' 20105MKDIR_P='$MKDIR_P' 20106AWK='$AWK' 20107test -n "\$AWK" || AWK=awk 20108_ACEOF 20109 20110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20111# The default lists apply if the user does not specify any file. 20112ac_need_defaults=: 20113while test $# != 0 20114do 20115 case $1 in 20116 --*=?*) 20117 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20118 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20119 ac_shift=: 20120 ;; 20121 --*=) 20122 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20123 ac_optarg= 20124 ac_shift=: 20125 ;; 20126 *) 20127 ac_option=$1 20128 ac_optarg=$2 20129 ac_shift=shift 20130 ;; 20131 esac 20132 20133 case $ac_option in 20134 # Handling of the options. 20135 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20136 ac_cs_recheck=: ;; 20137 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20138 printf "%s\n" "$ac_cs_version"; exit ;; 20139 --config | --confi | --conf | --con | --co | --c ) 20140 printf "%s\n" "$ac_cs_config"; exit ;; 20141 --debug | --debu | --deb | --de | --d | -d ) 20142 debug=: ;; 20143 --file | --fil | --fi | --f ) 20144 $ac_shift 20145 case $ac_optarg in 20146 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20147 '') as_fn_error $? "missing file argument" ;; 20148 esac 20149 as_fn_append CONFIG_FILES " '$ac_optarg'" 20150 ac_need_defaults=false;; 20151 --header | --heade | --head | --hea ) 20152 $ac_shift 20153 case $ac_optarg in 20154 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20155 esac 20156 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20157 ac_need_defaults=false;; 20158 --he | --h) 20159 # Conflict between --help and --header 20160 as_fn_error $? "ambiguous option: \`$1' 20161Try \`$0 --help' for more information.";; 20162 --help | --hel | -h ) 20163 printf "%s\n" "$ac_cs_usage"; exit ;; 20164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20165 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20166 ac_cs_silent=: ;; 20167 20168 # This is an error. 20169 -*) as_fn_error $? "unrecognized option: \`$1' 20170Try \`$0 --help' for more information." ;; 20171 20172 *) as_fn_append ac_config_targets " $1" 20173 ac_need_defaults=false ;; 20174 20175 esac 20176 shift 20177done 20178 20179ac_configure_extra_args= 20180 20181if $ac_cs_silent; then 20182 exec 6>/dev/null 20183 ac_configure_extra_args="$ac_configure_extra_args --silent" 20184fi 20185 20186_ACEOF 20187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20188if \$ac_cs_recheck; then 20189 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20190 shift 20191 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20192 CONFIG_SHELL='$SHELL' 20193 export CONFIG_SHELL 20194 exec "\$@" 20195fi 20196 20197_ACEOF 20198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20199exec 5>>config.log 20200{ 20201 echo 20202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20203## Running $as_me. ## 20204_ASBOX 20205 printf "%s\n" "$ac_log" 20206} >&5 20207 20208_ACEOF 20209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20210# 20211# INIT-COMMANDS 20212# 20213AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20214 20215 20216# The HP-UX ksh and POSIX shell print the target directory to stdout 20217# if CDPATH is set. 20218(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20219 20220sed_quote_subst='$sed_quote_subst' 20221double_quote_subst='$double_quote_subst' 20222delay_variable_subst='$delay_variable_subst' 20223enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20224macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20225macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20226enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20227pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20228enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20229shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20230SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20231ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20232PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20233host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20234host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20235host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20236build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20237build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20238build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20239SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20240Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20241GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20242EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20243FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20244LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20245NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20246LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20247max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20248ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20249exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20250lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20251lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20252lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20253lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20254lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20255reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20256reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20257FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20258OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20259deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20260file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20261file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20262want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20263DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20264sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20265AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20266lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20267AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20268archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20269STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20270RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20271old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20272old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20273old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20274lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20275CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20276CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20277compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20278GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20279lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20280lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20281lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20282lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20283lt_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"`' 20284lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20285nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20286lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20287lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20288objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20289MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20290lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20291lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20292lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20293lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20294lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20295need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20296MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20297DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20298NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20299LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20300OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20301OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20302libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20303shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20304extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20305archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20306enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20307export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20308whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20309compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20310old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20311old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20312archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20313archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20314module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20315module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20316with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20317allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20318no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20319hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20320hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20321hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20322hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20323hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20324hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20325hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20326inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20327link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20328always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20329export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20330exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20331include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20332prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20333postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20334file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20335variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20336need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20337need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20338version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20339runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20340shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20341shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20342libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20343library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20344soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20345install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20346postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20347postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20348finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20349finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20350hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20351sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20352configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20353configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20354hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20355enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20356enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20357enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20358old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20359striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20360 20361LTCC='$LTCC' 20362LTCFLAGS='$LTCFLAGS' 20363compiler='$compiler_DEFAULT' 20364 20365# A function that is used when there is no print builtin or printf. 20366func_fallback_echo () 20367{ 20368 eval 'cat <<_LTECHO_EOF 20369\$1 20370_LTECHO_EOF' 20371} 20372 20373# Quote evaled strings. 20374for var in SHELL \ 20375ECHO \ 20376PATH_SEPARATOR \ 20377SED \ 20378GREP \ 20379EGREP \ 20380FGREP \ 20381LD \ 20382NM \ 20383LN_S \ 20384lt_SP2NL \ 20385lt_NL2SP \ 20386reload_flag \ 20387FILECMD \ 20388OBJDUMP \ 20389deplibs_check_method \ 20390file_magic_cmd \ 20391file_magic_glob \ 20392want_nocaseglob \ 20393DLLTOOL \ 20394sharedlib_from_linklib_cmd \ 20395AR \ 20396archiver_list_spec \ 20397STRIP \ 20398RANLIB \ 20399CC \ 20400CFLAGS \ 20401compiler \ 20402lt_cv_sys_global_symbol_pipe \ 20403lt_cv_sys_global_symbol_to_cdecl \ 20404lt_cv_sys_global_symbol_to_import \ 20405lt_cv_sys_global_symbol_to_c_name_address \ 20406lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20407lt_cv_nm_interface \ 20408nm_file_list_spec \ 20409lt_cv_truncate_bin \ 20410lt_prog_compiler_no_builtin_flag \ 20411lt_prog_compiler_pic \ 20412lt_prog_compiler_wl \ 20413lt_prog_compiler_static \ 20414lt_cv_prog_compiler_c_o \ 20415need_locks \ 20416MANIFEST_TOOL \ 20417DSYMUTIL \ 20418NMEDIT \ 20419LIPO \ 20420OTOOL \ 20421OTOOL64 \ 20422shrext_cmds \ 20423export_dynamic_flag_spec \ 20424whole_archive_flag_spec \ 20425compiler_needs_object \ 20426with_gnu_ld \ 20427allow_undefined_flag \ 20428no_undefined_flag \ 20429hardcode_libdir_flag_spec \ 20430hardcode_libdir_separator \ 20431exclude_expsyms \ 20432include_expsyms \ 20433file_list_spec \ 20434variables_saved_for_relink \ 20435libname_spec \ 20436library_names_spec \ 20437soname_spec \ 20438install_override_mode \ 20439finish_eval \ 20440old_striplib \ 20441striplib; do 20442 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20443 *[\\\\\\\`\\"\\\$]*) 20444 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20445 ;; 20446 *) 20447 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20448 ;; 20449 esac 20450done 20451 20452# Double-quote double-evaled strings. 20453for var in reload_cmds \ 20454old_postinstall_cmds \ 20455old_postuninstall_cmds \ 20456old_archive_cmds \ 20457extract_expsyms_cmds \ 20458old_archive_from_new_cmds \ 20459old_archive_from_expsyms_cmds \ 20460archive_cmds \ 20461archive_expsym_cmds \ 20462module_cmds \ 20463module_expsym_cmds \ 20464export_symbols_cmds \ 20465prelink_cmds \ 20466postlink_cmds \ 20467postinstall_cmds \ 20468postuninstall_cmds \ 20469finish_cmds \ 20470sys_lib_search_path_spec \ 20471configure_time_dlsearch_path \ 20472configure_time_lt_sys_library_path; do 20473 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20474 *[\\\\\\\`\\"\\\$]*) 20475 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20476 ;; 20477 *) 20478 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20479 ;; 20480 esac 20481done 20482 20483ac_aux_dir='$ac_aux_dir' 20484 20485# See if we are running on zsh, and set the options that allow our 20486# commands through without removal of \ escapes INIT. 20487if test -n "\${ZSH_VERSION+set}"; then 20488 setopt NO_GLOB_SUBST 20489fi 20490 20491 20492 PACKAGE='$PACKAGE' 20493 VERSION='$VERSION' 20494 RM='$RM' 20495 ofile='$ofile' 20496 20497 20498 20499 20500_ACEOF 20501 20502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20503 20504# Handling of arguments. 20505for ac_config_target in $ac_config_targets 20506do 20507 case $ac_config_target in 20508 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20509 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20510 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20512 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20513 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20514 20515 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20516 esac 20517done 20518 20519 20520# If the user did not use the arguments to specify the items to instantiate, 20521# then the envvar interface is used. Set only those that are not. 20522# We use the long form for the default assignment because of an extremely 20523# bizarre bug on SunOS 4.1.3. 20524if $ac_need_defaults; then 20525 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20526 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20527 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20528fi 20529 20530# Have a temporary directory for convenience. Make it in the build tree 20531# simply because there is no reason against having it here, and in addition, 20532# creating and moving files from /tmp can sometimes cause problems. 20533# Hook for its removal unless debugging. 20534# Note that there is a small window in which the directory will not be cleaned: 20535# after its creation but before its name has been assigned to `$tmp'. 20536$debug || 20537{ 20538 tmp= ac_tmp= 20539 trap 'exit_status=$? 20540 : "${ac_tmp:=$tmp}" 20541 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20542' 0 20543 trap 'as_fn_exit 1' 1 2 13 15 20544} 20545# Create a (secure) tmp directory for tmp files. 20546 20547{ 20548 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20549 test -d "$tmp" 20550} || 20551{ 20552 tmp=./conf$$-$RANDOM 20553 (umask 077 && mkdir "$tmp") 20554} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20555ac_tmp=$tmp 20556 20557# Set up the scripts for CONFIG_FILES section. 20558# No need to generate them if there are no CONFIG_FILES. 20559# This happens for instance with `./config.status config.h'. 20560if test -n "$CONFIG_FILES"; then 20561 20562 20563ac_cr=`echo X | tr X '\015'` 20564# On cygwin, bash can eat \r inside `` if the user requested igncr. 20565# But we know of no other shell where ac_cr would be empty at this 20566# point, so we can use a bashism as a fallback. 20567if test "x$ac_cr" = x; then 20568 eval ac_cr=\$\'\\r\' 20569fi 20570ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20571if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20572 ac_cs_awk_cr='\\r' 20573else 20574 ac_cs_awk_cr=$ac_cr 20575fi 20576 20577echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20578_ACEOF 20579 20580 20581{ 20582 echo "cat >conf$$subs.awk <<_ACEOF" && 20583 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20584 echo "_ACEOF" 20585} >conf$$subs.sh || 20586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20587ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20588ac_delim='%!_!# ' 20589for ac_last_try in false false false false false :; do 20590 . ./conf$$subs.sh || 20591 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20592 20593 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20594 if test $ac_delim_n = $ac_delim_num; then 20595 break 20596 elif $ac_last_try; then 20597 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20598 else 20599 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20600 fi 20601done 20602rm -f conf$$subs.sh 20603 20604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20605cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20606_ACEOF 20607sed -n ' 20608h 20609s/^/S["/; s/!.*/"]=/ 20610p 20611g 20612s/^[^!]*!// 20613:repl 20614t repl 20615s/'"$ac_delim"'$// 20616t delim 20617:nl 20618h 20619s/\(.\{148\}\)..*/\1/ 20620t more1 20621s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20622p 20623n 20624b repl 20625:more1 20626s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20627p 20628g 20629s/.\{148\}// 20630t nl 20631:delim 20632h 20633s/\(.\{148\}\)..*/\1/ 20634t more2 20635s/["\\]/\\&/g; s/^/"/; s/$/"/ 20636p 20637b 20638:more2 20639s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20640p 20641g 20642s/.\{148\}// 20643t delim 20644' <conf$$subs.awk | sed ' 20645/^[^""]/{ 20646 N 20647 s/\n// 20648} 20649' >>$CONFIG_STATUS || ac_write_fail=1 20650rm -f conf$$subs.awk 20651cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20652_ACAWK 20653cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20654 for (key in S) S_is_set[key] = 1 20655 FS = "" 20656 20657} 20658{ 20659 line = $ 0 20660 nfields = split(line, field, "@") 20661 substed = 0 20662 len = length(field[1]) 20663 for (i = 2; i < nfields; i++) { 20664 key = field[i] 20665 keylen = length(key) 20666 if (S_is_set[key]) { 20667 value = S[key] 20668 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20669 len += length(value) + length(field[++i]) 20670 substed = 1 20671 } else 20672 len += 1 + keylen 20673 } 20674 20675 print line 20676} 20677 20678_ACAWK 20679_ACEOF 20680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20681if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20682 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20683else 20684 cat 20685fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20686 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20687_ACEOF 20688 20689# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20690# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20691# trailing colons and then remove the whole line if VPATH becomes empty 20692# (actually we leave an empty line to preserve line numbers). 20693if test "x$srcdir" = x.; then 20694 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20695h 20696s/// 20697s/^/:/ 20698s/[ ]*$/:/ 20699s/:\$(srcdir):/:/g 20700s/:\${srcdir}:/:/g 20701s/:@srcdir@:/:/g 20702s/^:*// 20703s/:*$// 20704x 20705s/\(=[ ]*\).*/\1/ 20706G 20707s/\n// 20708s/^[^=]*=[ ]*$// 20709}' 20710fi 20711 20712cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20713fi # test -n "$CONFIG_FILES" 20714 20715# Set up the scripts for CONFIG_HEADERS section. 20716# No need to generate them if there are no CONFIG_HEADERS. 20717# This happens for instance with `./config.status Makefile'. 20718if test -n "$CONFIG_HEADERS"; then 20719cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20720BEGIN { 20721_ACEOF 20722 20723# Transform confdefs.h into an awk script `defines.awk', embedded as 20724# here-document in config.status, that substitutes the proper values into 20725# config.h.in to produce config.h. 20726 20727# Create a delimiter string that does not exist in confdefs.h, to ease 20728# handling of long lines. 20729ac_delim='%!_!# ' 20730for ac_last_try in false false :; do 20731 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20732 if test -z "$ac_tt"; then 20733 break 20734 elif $ac_last_try; then 20735 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20736 else 20737 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20738 fi 20739done 20740 20741# For the awk script, D is an array of macro values keyed by name, 20742# likewise P contains macro parameters if any. Preserve backslash 20743# newline sequences. 20744 20745ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20746sed -n ' 20747s/.\{148\}/&'"$ac_delim"'/g 20748t rset 20749:rset 20750s/^[ ]*#[ ]*define[ ][ ]*/ / 20751t def 20752d 20753:def 20754s/\\$// 20755t bsnl 20756s/["\\]/\\&/g 20757s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20758D["\1"]=" \3"/p 20759s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20760d 20761:bsnl 20762s/["\\]/\\&/g 20763s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20764D["\1"]=" \3\\\\\\n"\\/p 20765t cont 20766s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20767t cont 20768d 20769:cont 20770n 20771s/.\{148\}/&'"$ac_delim"'/g 20772t clear 20773:clear 20774s/\\$// 20775t bsnlc 20776s/["\\]/\\&/g; s/^/"/; s/$/"/p 20777d 20778:bsnlc 20779s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20780b cont 20781' <confdefs.h | sed ' 20782s/'"$ac_delim"'/"\\\ 20783"/g' >>$CONFIG_STATUS || ac_write_fail=1 20784 20785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20786 for (key in D) D_is_set[key] = 1 20787 FS = "" 20788} 20789/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20790 line = \$ 0 20791 split(line, arg, " ") 20792 if (arg[1] == "#") { 20793 defundef = arg[2] 20794 mac1 = arg[3] 20795 } else { 20796 defundef = substr(arg[1], 2) 20797 mac1 = arg[2] 20798 } 20799 split(mac1, mac2, "(") #) 20800 macro = mac2[1] 20801 prefix = substr(line, 1, index(line, defundef) - 1) 20802 if (D_is_set[macro]) { 20803 # Preserve the white space surrounding the "#". 20804 print prefix "define", macro P[macro] D[macro] 20805 next 20806 } else { 20807 # Replace #undef with comments. This is necessary, for example, 20808 # in the case of _POSIX_SOURCE, which is predefined and required 20809 # on some systems where configure will not decide to define it. 20810 if (defundef == "undef") { 20811 print "/*", prefix defundef, macro, "*/" 20812 next 20813 } 20814 } 20815} 20816{ print } 20817_ACAWK 20818_ACEOF 20819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20820 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20821fi # test -n "$CONFIG_HEADERS" 20822 20823 20824eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20825shift 20826for ac_tag 20827do 20828 case $ac_tag in 20829 :[FHLC]) ac_mode=$ac_tag; continue;; 20830 esac 20831 case $ac_mode$ac_tag in 20832 :[FHL]*:*);; 20833 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20834 :[FH]-) ac_tag=-:-;; 20835 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20836 esac 20837 ac_save_IFS=$IFS 20838 IFS=: 20839 set x $ac_tag 20840 IFS=$ac_save_IFS 20841 shift 20842 ac_file=$1 20843 shift 20844 20845 case $ac_mode in 20846 :L) ac_source=$1;; 20847 :[FH]) 20848 ac_file_inputs= 20849 for ac_f 20850 do 20851 case $ac_f in 20852 -) ac_f="$ac_tmp/stdin";; 20853 *) # Look for the file first in the build tree, then in the source tree 20854 # (if the path is not absolute). The absolute path cannot be DOS-style, 20855 # because $ac_f cannot contain `:'. 20856 test -f "$ac_f" || 20857 case $ac_f in 20858 [\\/$]*) false;; 20859 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20860 esac || 20861 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20862 esac 20863 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20864 as_fn_append ac_file_inputs " '$ac_f'" 20865 done 20866 20867 # Let's still pretend it is `configure' which instantiates (i.e., don't 20868 # use $as_me), people would be surprised to read: 20869 # /* config.h. Generated by config.status. */ 20870 configure_input='Generated from '` 20871 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20872 `' by configure.' 20873 if test x"$ac_file" != x-; then 20874 configure_input="$ac_file. $configure_input" 20875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20876printf "%s\n" "$as_me: creating $ac_file" >&6;} 20877 fi 20878 # Neutralize special characters interpreted by sed in replacement strings. 20879 case $configure_input in #( 20880 *\&* | *\|* | *\\* ) 20881 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20882 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20883 *) ac_sed_conf_input=$configure_input;; 20884 esac 20885 20886 case $ac_tag in 20887 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20889 esac 20890 ;; 20891 esac 20892 20893 ac_dir=`$as_dirname -- "$ac_file" || 20894$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20895 X"$ac_file" : 'X\(//\)[^/]' \| \ 20896 X"$ac_file" : 'X\(//\)$' \| \ 20897 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20898printf "%s\n" X"$ac_file" | 20899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20900 s//\1/ 20901 q 20902 } 20903 /^X\(\/\/\)[^/].*/{ 20904 s//\1/ 20905 q 20906 } 20907 /^X\(\/\/\)$/{ 20908 s//\1/ 20909 q 20910 } 20911 /^X\(\/\).*/{ 20912 s//\1/ 20913 q 20914 } 20915 s/.*/./; q'` 20916 as_dir="$ac_dir"; as_fn_mkdir_p 20917 ac_builddir=. 20918 20919case "$ac_dir" in 20920.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20921*) 20922 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20923 # A ".." for each directory in $ac_dir_suffix. 20924 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20925 case $ac_top_builddir_sub in 20926 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20927 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20928 esac ;; 20929esac 20930ac_abs_top_builddir=$ac_pwd 20931ac_abs_builddir=$ac_pwd$ac_dir_suffix 20932# for backward compatibility: 20933ac_top_builddir=$ac_top_build_prefix 20934 20935case $srcdir in 20936 .) # We are building in place. 20937 ac_srcdir=. 20938 ac_top_srcdir=$ac_top_builddir_sub 20939 ac_abs_top_srcdir=$ac_pwd ;; 20940 [\\/]* | ?:[\\/]* ) # Absolute name. 20941 ac_srcdir=$srcdir$ac_dir_suffix; 20942 ac_top_srcdir=$srcdir 20943 ac_abs_top_srcdir=$srcdir ;; 20944 *) # Relative name. 20945 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20946 ac_top_srcdir=$ac_top_build_prefix$srcdir 20947 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20948esac 20949ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20950 20951 20952 case $ac_mode in 20953 :F) 20954 # 20955 # CONFIG_FILE 20956 # 20957 20958 case $INSTALL in 20959 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20960 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20961 esac 20962 ac_MKDIR_P=$MKDIR_P 20963 case $MKDIR_P in 20964 [\\/$]* | ?:[\\/]* ) ;; 20965 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20966 esac 20967_ACEOF 20968 20969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20970# If the template does not know about datarootdir, expand it. 20971# FIXME: This hack should be removed a few years after 2.60. 20972ac_datarootdir_hack=; ac_datarootdir_seen= 20973ac_sed_dataroot=' 20974/datarootdir/ { 20975 p 20976 q 20977} 20978/@datadir@/p 20979/@docdir@/p 20980/@infodir@/p 20981/@localedir@/p 20982/@mandir@/p' 20983case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20984*datarootdir*) ac_datarootdir_seen=yes;; 20985*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20987printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20988_ACEOF 20989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20990 ac_datarootdir_hack=' 20991 s&@datadir@&$datadir&g 20992 s&@docdir@&$docdir&g 20993 s&@infodir@&$infodir&g 20994 s&@localedir@&$localedir&g 20995 s&@mandir@&$mandir&g 20996 s&\\\${datarootdir}&$datarootdir&g' ;; 20997esac 20998_ACEOF 20999 21000# Neutralize VPATH when `$srcdir' = `.'. 21001# Shell code in configure.ac might set extrasub. 21002# FIXME: do we really want to maintain this feature? 21003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21004ac_sed_extra="$ac_vpsub 21005$extrasub 21006_ACEOF 21007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21008:t 21009/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21010s|@configure_input@|$ac_sed_conf_input|;t t 21011s&@top_builddir@&$ac_top_builddir_sub&;t t 21012s&@top_build_prefix@&$ac_top_build_prefix&;t t 21013s&@srcdir@&$ac_srcdir&;t t 21014s&@abs_srcdir@&$ac_abs_srcdir&;t t 21015s&@top_srcdir@&$ac_top_srcdir&;t t 21016s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21017s&@builddir@&$ac_builddir&;t t 21018s&@abs_builddir@&$ac_abs_builddir&;t t 21019s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21020s&@INSTALL@&$ac_INSTALL&;t t 21021s&@MKDIR_P@&$ac_MKDIR_P&;t t 21022$ac_datarootdir_hack 21023" 21024eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21025 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21026 21027test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21028 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21029 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21030 "$ac_tmp/out"`; test -z "$ac_out"; } && 21031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21032which seems to be undefined. Please make sure it is defined" >&5 21033printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21034which seems to be undefined. Please make sure it is defined" >&2;} 21035 21036 rm -f "$ac_tmp/stdin" 21037 case $ac_file in 21038 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21039 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21040 esac \ 21041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21042 ;; 21043 :H) 21044 # 21045 # CONFIG_HEADER 21046 # 21047 if test x"$ac_file" != x-; then 21048 { 21049 printf "%s\n" "/* $configure_input */" >&1 \ 21050 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21051 } >"$ac_tmp/config.h" \ 21052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21053 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21055printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21056 else 21057 rm -f "$ac_file" 21058 mv "$ac_tmp/config.h" "$ac_file" \ 21059 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21060 fi 21061 else 21062 printf "%s\n" "/* $configure_input */" >&1 \ 21063 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21064 || as_fn_error $? "could not create -" "$LINENO" 5 21065 fi 21066# Compute "$ac_file"'s index in $config_headers. 21067_am_arg="$ac_file" 21068_am_stamp_count=1 21069for _am_header in $config_headers :; do 21070 case $_am_header in 21071 $_am_arg | $_am_arg:* ) 21072 break ;; 21073 * ) 21074 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21075 esac 21076done 21077echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21078$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21079 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21080 X"$_am_arg" : 'X\(//\)$' \| \ 21081 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21082printf "%s\n" X"$_am_arg" | 21083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21084 s//\1/ 21085 q 21086 } 21087 /^X\(\/\/\)[^/].*/{ 21088 s//\1/ 21089 q 21090 } 21091 /^X\(\/\/\)$/{ 21092 s//\1/ 21093 q 21094 } 21095 /^X\(\/\).*/{ 21096 s//\1/ 21097 q 21098 } 21099 s/.*/./; q'`/stamp-h$_am_stamp_count 21100 ;; 21101 21102 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21103printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21104 ;; 21105 esac 21106 21107 21108 case $ac_file$ac_mode in 21109 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21110 # Older Autoconf quotes --file arguments for eval, but not when files 21111 # are listed without --file. Let's play safe and only enable the eval 21112 # if we detect the quoting. 21113 # TODO: see whether this extra hack can be removed once we start 21114 # requiring Autoconf 2.70 or later. 21115 case $CONFIG_FILES in #( 21116 *\'*) : 21117 eval set x "$CONFIG_FILES" ;; #( 21118 *) : 21119 set x $CONFIG_FILES ;; #( 21120 *) : 21121 ;; 21122esac 21123 shift 21124 # Used to flag and report bootstrapping failures. 21125 am_rc=0 21126 for am_mf 21127 do 21128 # Strip MF so we end up with the name of the file. 21129 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21130 # Check whether this is an Automake generated Makefile which includes 21131 # dependency-tracking related rules and includes. 21132 # Grep'ing the whole file directly is not great: AIX grep has a line 21133 # limit of 2048, but all sed's we know have understand at least 4000. 21134 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21135 || continue 21136 am_dirpart=`$as_dirname -- "$am_mf" || 21137$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21138 X"$am_mf" : 'X\(//\)[^/]' \| \ 21139 X"$am_mf" : 'X\(//\)$' \| \ 21140 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21141printf "%s\n" X"$am_mf" | 21142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21143 s//\1/ 21144 q 21145 } 21146 /^X\(\/\/\)[^/].*/{ 21147 s//\1/ 21148 q 21149 } 21150 /^X\(\/\/\)$/{ 21151 s//\1/ 21152 q 21153 } 21154 /^X\(\/\).*/{ 21155 s//\1/ 21156 q 21157 } 21158 s/.*/./; q'` 21159 am_filepart=`$as_basename -- "$am_mf" || 21160$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21161 X"$am_mf" : 'X\(//\)$' \| \ 21162 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21163printf "%s\n" X/"$am_mf" | 21164 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21165 s//\1/ 21166 q 21167 } 21168 /^X\/\(\/\/\)$/{ 21169 s//\1/ 21170 q 21171 } 21172 /^X\/\(\/\).*/{ 21173 s//\1/ 21174 q 21175 } 21176 s/.*/./; q'` 21177 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21178 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21179 | $MAKE -f - am--depfiles" >&5 21180 (cd "$am_dirpart" \ 21181 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21182 | $MAKE -f - am--depfiles) >&5 2>&5 21183 ac_status=$? 21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21185 (exit $ac_status); } || am_rc=$? 21186 done 21187 if test $am_rc -ne 0; then 21188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21189printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21190as_fn_error $? "Something went wrong bootstrapping makefile fragments 21191 for automatic dependency tracking. If GNU make was not used, consider 21192 re-running the configure script with MAKE=\"gmake\" (or whatever is 21193 necessary). You can also try re-running configure with the 21194 '--disable-dependency-tracking' option to at least be able to build 21195 the package (albeit without support for automatic dependency tracking). 21196See \`config.log' for more details" "$LINENO" 5; } 21197 fi 21198 { am_dirpart=; unset am_dirpart;} 21199 { am_filepart=; unset am_filepart;} 21200 { am_mf=; unset am_mf;} 21201 { am_rc=; unset am_rc;} 21202 rm -f conftest-deps.mk 21203} 21204 ;; 21205 "libtool":C) 21206 21207 # See if we are running on zsh, and set the options that allow our 21208 # commands through without removal of \ escapes. 21209 if test -n "${ZSH_VERSION+set}"; then 21210 setopt NO_GLOB_SUBST 21211 fi 21212 21213 cfgfile=${ofile}T 21214 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21215 $RM "$cfgfile" 21216 21217 cat <<_LT_EOF >> "$cfgfile" 21218#! $SHELL 21219# Generated automatically by $as_me ($PACKAGE) $VERSION 21220# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21221# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21222 21223# Provide generalized library-building support services. 21224# Written by Gordon Matzigkeit, 1996 21225 21226# Copyright (C) 2014 Free Software Foundation, Inc. 21227# This is free software; see the source for copying conditions. There is NO 21228# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21229 21230# GNU Libtool is free software; you can redistribute it and/or modify 21231# it under the terms of the GNU General Public License as published by 21232# the Free Software Foundation; either version 2 of of the License, or 21233# (at your option) any later version. 21234# 21235# As a special exception to the GNU General Public License, if you 21236# distribute this file as part of a program or library that is built 21237# using GNU Libtool, you may include this file under the same 21238# distribution terms that you use for the rest of that program. 21239# 21240# GNU Libtool is distributed in the hope that it will be useful, but 21241# WITHOUT ANY WARRANTY; without even the implied warranty of 21242# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21243# GNU General Public License for more details. 21244# 21245# You should have received a copy of the GNU General Public License 21246# along with this program. If not, see <http://www.gnu.org/licenses/>. 21247 21248 21249# The names of the tagged configurations supported by this script. 21250available_tags='' 21251 21252# Configured defaults for sys_lib_dlsearch_path munging. 21253: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21254 21255# ### BEGIN LIBTOOL CONFIG 21256 21257# Whether or not to build static libraries. 21258build_old_libs=$enable_static 21259 21260# Which release of libtool.m4 was used? 21261macro_version=$macro_version 21262macro_revision=$macro_revision 21263 21264# Whether or not to build shared libraries. 21265build_libtool_libs=$enable_shared 21266 21267# What type of objects to build. 21268pic_mode=$pic_mode 21269 21270# Whether or not to optimize for fast installation. 21271fast_install=$enable_fast_install 21272 21273# Shared archive member basename,for filename based shared library versioning on AIX. 21274shared_archive_member_spec=$shared_archive_member_spec 21275 21276# Shell to use when invoking shell scripts. 21277SHELL=$lt_SHELL 21278 21279# An echo program that protects backslashes. 21280ECHO=$lt_ECHO 21281 21282# The PATH separator for the build system. 21283PATH_SEPARATOR=$lt_PATH_SEPARATOR 21284 21285# The host system. 21286host_alias=$host_alias 21287host=$host 21288host_os=$host_os 21289 21290# The build system. 21291build_alias=$build_alias 21292build=$build 21293build_os=$build_os 21294 21295# A sed program that does not truncate output. 21296SED=$lt_SED 21297 21298# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21299Xsed="\$SED -e 1s/^X//" 21300 21301# A grep program that handles long lines. 21302GREP=$lt_GREP 21303 21304# An ERE matcher. 21305EGREP=$lt_EGREP 21306 21307# A literal string matcher. 21308FGREP=$lt_FGREP 21309 21310# A BSD- or MS-compatible name lister. 21311NM=$lt_NM 21312 21313# Whether we need soft or hard links. 21314LN_S=$lt_LN_S 21315 21316# What is the maximum length of a command? 21317max_cmd_len=$max_cmd_len 21318 21319# Object file suffix (normally "o"). 21320objext=$ac_objext 21321 21322# Executable file suffix (normally ""). 21323exeext=$exeext 21324 21325# whether the shell understands "unset". 21326lt_unset=$lt_unset 21327 21328# turn spaces into newlines. 21329SP2NL=$lt_lt_SP2NL 21330 21331# turn newlines into spaces. 21332NL2SP=$lt_lt_NL2SP 21333 21334# convert \$build file names to \$host format. 21335to_host_file_cmd=$lt_cv_to_host_file_cmd 21336 21337# convert \$build files to toolchain format. 21338to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21339 21340# A file(cmd) program that detects file types. 21341FILECMD=$lt_FILECMD 21342 21343# An object symbol dumper. 21344OBJDUMP=$lt_OBJDUMP 21345 21346# Method to check whether dependent libraries are shared objects. 21347deplibs_check_method=$lt_deplibs_check_method 21348 21349# Command to use when deplibs_check_method = "file_magic". 21350file_magic_cmd=$lt_file_magic_cmd 21351 21352# How to find potential files when deplibs_check_method = "file_magic". 21353file_magic_glob=$lt_file_magic_glob 21354 21355# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21356want_nocaseglob=$lt_want_nocaseglob 21357 21358# DLL creation program. 21359DLLTOOL=$lt_DLLTOOL 21360 21361# Command to associate shared and link libraries. 21362sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21363 21364# The archiver. 21365AR=$lt_AR 21366 21367# Flags to create an archive (by configure). 21368lt_ar_flags=$lt_ar_flags 21369 21370# Flags to create an archive. 21371AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21372 21373# How to feed a file listing to the archiver. 21374archiver_list_spec=$lt_archiver_list_spec 21375 21376# A symbol stripping program. 21377STRIP=$lt_STRIP 21378 21379# Commands used to install an old-style archive. 21380RANLIB=$lt_RANLIB 21381old_postinstall_cmds=$lt_old_postinstall_cmds 21382old_postuninstall_cmds=$lt_old_postuninstall_cmds 21383 21384# Whether to use a lock for old archive extraction. 21385lock_old_archive_extraction=$lock_old_archive_extraction 21386 21387# A C compiler. 21388LTCC=$lt_CC 21389 21390# LTCC compiler flags. 21391LTCFLAGS=$lt_CFLAGS 21392 21393# Take the output of nm and produce a listing of raw symbols and C names. 21394global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21395 21396# Transform the output of nm in a proper C declaration. 21397global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21398 21399# Transform the output of nm into a list of symbols to manually relocate. 21400global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21401 21402# Transform the output of nm in a C name address pair. 21403global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21404 21405# Transform the output of nm in a C name address pair when lib prefix is needed. 21406global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21407 21408# The name lister interface. 21409nm_interface=$lt_lt_cv_nm_interface 21410 21411# Specify filename containing input files for \$NM. 21412nm_file_list_spec=$lt_nm_file_list_spec 21413 21414# The root where to search for dependent libraries,and where our libraries should be installed. 21415lt_sysroot=$lt_sysroot 21416 21417# Command to truncate a binary pipe. 21418lt_truncate_bin=$lt_lt_cv_truncate_bin 21419 21420# The name of the directory that contains temporary libtool files. 21421objdir=$objdir 21422 21423# Used to examine libraries when file_magic_cmd begins with "file". 21424MAGIC_CMD=$MAGIC_CMD 21425 21426# Must we lock files when doing compilation? 21427need_locks=$lt_need_locks 21428 21429# Manifest tool. 21430MANIFEST_TOOL=$lt_MANIFEST_TOOL 21431 21432# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21433DSYMUTIL=$lt_DSYMUTIL 21434 21435# Tool to change global to local symbols on Mac OS X. 21436NMEDIT=$lt_NMEDIT 21437 21438# Tool to manipulate fat objects and archives on Mac OS X. 21439LIPO=$lt_LIPO 21440 21441# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21442OTOOL=$lt_OTOOL 21443 21444# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21445OTOOL64=$lt_OTOOL64 21446 21447# Old archive suffix (normally "a"). 21448libext=$libext 21449 21450# Shared library suffix (normally ".so"). 21451shrext_cmds=$lt_shrext_cmds 21452 21453# The commands to extract the exported symbol list from a shared archive. 21454extract_expsyms_cmds=$lt_extract_expsyms_cmds 21455 21456# Variables whose values should be saved in libtool wrapper scripts and 21457# restored at link time. 21458variables_saved_for_relink=$lt_variables_saved_for_relink 21459 21460# Do we need the "lib" prefix for modules? 21461need_lib_prefix=$need_lib_prefix 21462 21463# Do we need a version for libraries? 21464need_version=$need_version 21465 21466# Library versioning type. 21467version_type=$version_type 21468 21469# Shared library runtime path variable. 21470runpath_var=$runpath_var 21471 21472# Shared library path variable. 21473shlibpath_var=$shlibpath_var 21474 21475# Is shlibpath searched before the hard-coded library search path? 21476shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21477 21478# Format of library name prefix. 21479libname_spec=$lt_libname_spec 21480 21481# List of archive names. First name is the real one, the rest are links. 21482# The last name is the one that the linker finds with -lNAME 21483library_names_spec=$lt_library_names_spec 21484 21485# The coded name of the library, if different from the real name. 21486soname_spec=$lt_soname_spec 21487 21488# Permission mode override for installation of shared libraries. 21489install_override_mode=$lt_install_override_mode 21490 21491# Command to use after installation of a shared archive. 21492postinstall_cmds=$lt_postinstall_cmds 21493 21494# Command to use after uninstallation of a shared archive. 21495postuninstall_cmds=$lt_postuninstall_cmds 21496 21497# Commands used to finish a libtool library installation in a directory. 21498finish_cmds=$lt_finish_cmds 21499 21500# As "finish_cmds", except a single script fragment to be evaled but 21501# not shown. 21502finish_eval=$lt_finish_eval 21503 21504# Whether we should hardcode library paths into libraries. 21505hardcode_into_libs=$hardcode_into_libs 21506 21507# Compile-time system search path for libraries. 21508sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21509 21510# Detected run-time system search path for libraries. 21511sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21512 21513# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21514configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21515 21516# Whether dlopen is supported. 21517dlopen_support=$enable_dlopen 21518 21519# Whether dlopen of programs is supported. 21520dlopen_self=$enable_dlopen_self 21521 21522# Whether dlopen of statically linked programs is supported. 21523dlopen_self_static=$enable_dlopen_self_static 21524 21525# Commands to strip libraries. 21526old_striplib=$lt_old_striplib 21527striplib=$lt_striplib 21528 21529 21530# The linker used to build libraries. 21531LD=$lt_LD 21532 21533# How to create reloadable object files. 21534reload_flag=$lt_reload_flag 21535reload_cmds=$lt_reload_cmds 21536 21537# Commands used to build an old-style archive. 21538old_archive_cmds=$lt_old_archive_cmds 21539 21540# A language specific compiler. 21541CC=$lt_compiler 21542 21543# Is the compiler the GNU compiler? 21544with_gcc=$GCC 21545 21546# Compiler flag to turn off builtin functions. 21547no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21548 21549# Additional compiler flags for building library objects. 21550pic_flag=$lt_lt_prog_compiler_pic 21551 21552# How to pass a linker flag through the compiler. 21553wl=$lt_lt_prog_compiler_wl 21554 21555# Compiler flag to prevent dynamic linking. 21556link_static_flag=$lt_lt_prog_compiler_static 21557 21558# Does compiler simultaneously support -c and -o options? 21559compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21560 21561# Whether or not to add -lc for building shared libraries. 21562build_libtool_need_lc=$archive_cmds_need_lc 21563 21564# Whether or not to disallow shared libs when runtime libs are static. 21565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21566 21567# Compiler flag to allow reflexive dlopens. 21568export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21569 21570# Compiler flag to generate shared objects directly from archives. 21571whole_archive_flag_spec=$lt_whole_archive_flag_spec 21572 21573# Whether the compiler copes with passing no objects directly. 21574compiler_needs_object=$lt_compiler_needs_object 21575 21576# Create an old-style archive from a shared archive. 21577old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21578 21579# Create a temporary old-style archive to link instead of a shared archive. 21580old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21581 21582# Commands used to build a shared archive. 21583archive_cmds=$lt_archive_cmds 21584archive_expsym_cmds=$lt_archive_expsym_cmds 21585 21586# Commands used to build a loadable module if different from building 21587# a shared archive. 21588module_cmds=$lt_module_cmds 21589module_expsym_cmds=$lt_module_expsym_cmds 21590 21591# Whether we are building with GNU ld or not. 21592with_gnu_ld=$lt_with_gnu_ld 21593 21594# Flag that allows shared libraries with undefined symbols to be built. 21595allow_undefined_flag=$lt_allow_undefined_flag 21596 21597# Flag that enforces no undefined symbols. 21598no_undefined_flag=$lt_no_undefined_flag 21599 21600# Flag to hardcode \$libdir into a binary during linking. 21601# This must work even if \$libdir does not exist 21602hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21603 21604# Whether we need a single "-rpath" flag with a separated argument. 21605hardcode_libdir_separator=$lt_hardcode_libdir_separator 21606 21607# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21608# DIR into the resulting binary. 21609hardcode_direct=$hardcode_direct 21610 21611# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21612# DIR into the resulting binary and the resulting library dependency is 21613# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21614# library is relocated. 21615hardcode_direct_absolute=$hardcode_direct_absolute 21616 21617# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21618# into the resulting binary. 21619hardcode_minus_L=$hardcode_minus_L 21620 21621# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21622# into the resulting binary. 21623hardcode_shlibpath_var=$hardcode_shlibpath_var 21624 21625# Set to "yes" if building a shared library automatically hardcodes DIR 21626# into the library and all subsequent libraries and executables linked 21627# against it. 21628hardcode_automatic=$hardcode_automatic 21629 21630# Set to yes if linker adds runtime paths of dependent libraries 21631# to runtime path list. 21632inherit_rpath=$inherit_rpath 21633 21634# Whether libtool must link a program against all its dependency libraries. 21635link_all_deplibs=$link_all_deplibs 21636 21637# Set to "yes" if exported symbols are required. 21638always_export_symbols=$always_export_symbols 21639 21640# The commands to list exported symbols. 21641export_symbols_cmds=$lt_export_symbols_cmds 21642 21643# Symbols that should not be listed in the preloaded symbols. 21644exclude_expsyms=$lt_exclude_expsyms 21645 21646# Symbols that must always be exported. 21647include_expsyms=$lt_include_expsyms 21648 21649# Commands necessary for linking programs (against libraries) with templates. 21650prelink_cmds=$lt_prelink_cmds 21651 21652# Commands necessary for finishing linking programs. 21653postlink_cmds=$lt_postlink_cmds 21654 21655# Specify filename containing input files. 21656file_list_spec=$lt_file_list_spec 21657 21658# How to hardcode a shared library path into an executable. 21659hardcode_action=$hardcode_action 21660 21661# ### END LIBTOOL CONFIG 21662 21663_LT_EOF 21664 21665 cat <<'_LT_EOF' >> "$cfgfile" 21666 21667# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21668 21669# func_munge_path_list VARIABLE PATH 21670# ----------------------------------- 21671# VARIABLE is name of variable containing _space_ separated list of 21672# directories to be munged by the contents of PATH, which is string 21673# having a format: 21674# "DIR[:DIR]:" 21675# string "DIR[ DIR]" will be prepended to VARIABLE 21676# ":DIR[:DIR]" 21677# string "DIR[ DIR]" will be appended to VARIABLE 21678# "DIRP[:DIRP]::[DIRA:]DIRA" 21679# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21680# "DIRA[ DIRA]" will be appended to VARIABLE 21681# "DIR[:DIR]" 21682# VARIABLE will be replaced by "DIR[ DIR]" 21683func_munge_path_list () 21684{ 21685 case x$2 in 21686 x) 21687 ;; 21688 *:) 21689 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21690 ;; 21691 x:*) 21692 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21693 ;; 21694 *::*) 21695 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21696 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21697 ;; 21698 *) 21699 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21700 ;; 21701 esac 21702} 21703 21704 21705# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21706func_cc_basename () 21707{ 21708 for cc_temp in $*""; do 21709 case $cc_temp in 21710 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21711 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21712 \-*) ;; 21713 *) break;; 21714 esac 21715 done 21716 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21717} 21718 21719 21720# ### END FUNCTIONS SHARED WITH CONFIGURE 21721 21722_LT_EOF 21723 21724 case $host_os in 21725 aix3*) 21726 cat <<\_LT_EOF >> "$cfgfile" 21727# AIX sometimes has problems with the GCC collect2 program. For some 21728# reason, if we set the COLLECT_NAMES environment variable, the problems 21729# vanish in a puff of smoke. 21730if test set != "${COLLECT_NAMES+set}"; then 21731 COLLECT_NAMES= 21732 export COLLECT_NAMES 21733fi 21734_LT_EOF 21735 ;; 21736 esac 21737 21738 21739 21740ltmain=$ac_aux_dir/ltmain.sh 21741 21742 21743 # We use sed instead of cat because bash on DJGPP gets confused if 21744 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21745 # text mode, it properly converts lines to CR/LF. This bash problem 21746 # is reportedly fixed, but why not run on old versions too? 21747 $SED '$q' "$ltmain" >> "$cfgfile" \ 21748 || (rm -f "$cfgfile"; exit 1) 21749 21750 mv -f "$cfgfile" "$ofile" || 21751 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21752 chmod +x "$ofile" 21753 21754 ;; 21755 21756 esac 21757done # for ac_tag 21758 21759 21760as_fn_exit 0 21761_ACEOF 21762ac_clean_files=$ac_clean_files_save 21763 21764test $ac_write_fail = 0 || 21765 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21766 21767 21768# configure is writing to config.log, and then calls config.status. 21769# config.status does its own redirection, appending to config.log. 21770# Unfortunately, on DOS this fails, as config.log is still kept open 21771# by configure, so config.status won't be able to write to it; its 21772# output is simply discarded. So we exec the FD to /dev/null, 21773# effectively closing config.log, so it can be properly (re)opened and 21774# appended to by config.status. When coming back to configure, we 21775# need to make the FD available again. 21776if test "$no_create" != yes; then 21777 ac_cs_success=: 21778 ac_config_status_args= 21779 test "$silent" = yes && 21780 ac_config_status_args="$ac_config_status_args --quiet" 21781 exec 5>/dev/null 21782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21783 exec 5>>config.log 21784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21785 # would make configure fail if this is the last instruction. 21786 $ac_cs_success || as_fn_exit 1 21787fi 21788if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21790printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21791fi 21792 21793 21794