configure revision 54cef2dd
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libxkbfile 1.1.1. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196then : 197 as_have_required=yes 198else $as_nop 199 as_have_required=no 200fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202then : 203 204else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206as_found=false 207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234IFS=$as_save_IFS 235if $as_found 236then : 237 238else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243fi 244fi 245 246 247 if test "x$CONFIG_SHELL" != x 248then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno 271then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 279$0: https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/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='libxkbfile' 624PACKAGE_TARNAME='libxkbfile' 625PACKAGE_VERSION='1.1.1' 626PACKAGE_STRING='libxkbfile 1.1.1' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/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 667XKBFILE_LIBS 668XKBFILE_CFLAGS 669MAN_SUBSTS 670XORG_MAN_PAGE 671ADMIN_MAN_DIR 672DRIVER_MAN_DIR 673MISC_MAN_DIR 674FILE_MAN_DIR 675LIB_MAN_DIR 676APP_MAN_DIR 677ADMIN_MAN_SUFFIX 678DRIVER_MAN_SUFFIX 679MISC_MAN_SUFFIX 680FILE_MAN_SUFFIX 681LIB_MAN_SUFFIX 682APP_MAN_SUFFIX 683INSTALL_CMD 684PKG_CONFIG_LIBDIR 685PKG_CONFIG_PATH 686PKG_CONFIG 687CHANGELOG_CMD 688STRICT_CFLAGS 689CWARNFLAGS 690BASE_CFLAGS 691LT_SYS_LIBRARY_PATH 692OTOOL64 693OTOOL 694LIPO 695NMEDIT 696DSYMUTIL 697MANIFEST_TOOL 698RANLIB 699ac_ct_AR 700AR 701DLLTOOL 702OBJDUMP 703FILECMD 704LN_S 705NM 706ac_ct_DUMPBIN 707DUMPBIN 708LD 709FGREP 710EGREP 711GREP 712SED 713am__fastdepCC_FALSE 714am__fastdepCC_TRUE 715CCDEPMODE 716am__nodep 717AMDEPBACKSLASH 718AMDEP_FALSE 719AMDEP_TRUE 720am__include 721DEPDIR 722OBJEXT 723EXEEXT 724ac_ct_CC 725CPPFLAGS 726LDFLAGS 727CFLAGS 728CC 729host_os 730host_vendor 731host_cpu 732host 733build_os 734build_vendor 735build_cpu 736build 737LIBTOOL 738AM_BACKSLASH 739AM_DEFAULT_VERBOSITY 740AM_DEFAULT_V 741AM_V 742CSCOPE 743ETAGS 744CTAGS 745am__untar 746am__tar 747AMTAR 748am__leading_dot 749SET_MAKE 750AWK 751mkdir_p 752MKDIR_P 753INSTALL_STRIP_PROGRAM 754STRIP 755install_sh 756MAKEINFO 757AUTOHEADER 758AUTOMAKE 759AUTOCONF 760ACLOCAL 761VERSION 762PACKAGE 763CYGPATH_W 764am__isrc 765INSTALL_DATA 766INSTALL_SCRIPT 767INSTALL_PROGRAM 768target_alias 769host_alias 770build_alias 771LIBS 772ECHO_T 773ECHO_N 774ECHO_C 775DEFS 776mandir 777localedir 778libdir 779psdir 780pdfdir 781dvidir 782htmldir 783infodir 784docdir 785oldincludedir 786includedir 787runstatedir 788localstatedir 789sharedstatedir 790sysconfdir 791datadir 792datarootdir 793libexecdir 794sbindir 795bindir 796program_transform_name 797prefix 798exec_prefix 799PACKAGE_URL 800PACKAGE_BUGREPORT 801PACKAGE_STRING 802PACKAGE_VERSION 803PACKAGE_TARNAME 804PACKAGE_NAME 805PATH_SEPARATOR 806SHELL 807am__quote' 808ac_subst_files='' 809ac_user_opts=' 810enable_option_checking 811enable_silent_rules 812enable_shared 813enable_static 814with_pic 815enable_fast_install 816with_aix_soname 817enable_dependency_tracking 818with_gnu_ld 819with_sysroot 820enable_libtool_lock 821enable_selective_werror 822enable_strict_compilation 823' 824 ac_precious_vars='build_alias 825host_alias 826target_alias 827CC 828CFLAGS 829LDFLAGS 830LIBS 831CPPFLAGS 832LT_SYS_LIBRARY_PATH 833PKG_CONFIG 834PKG_CONFIG_PATH 835PKG_CONFIG_LIBDIR 836XKBFILE_CFLAGS 837XKBFILE_LIBS' 838 839 840# Initialize some variables set by options. 841ac_init_help= 842ac_init_version=false 843ac_unrecognized_opts= 844ac_unrecognized_sep= 845# The variables have the same names as the options, with 846# dashes changed to underlines. 847cache_file=/dev/null 848exec_prefix=NONE 849no_create= 850no_recursion= 851prefix=NONE 852program_prefix=NONE 853program_suffix=NONE 854program_transform_name=s,x,x, 855silent= 856site= 857srcdir= 858verbose= 859x_includes=NONE 860x_libraries=NONE 861 862# Installation directory options. 863# These are left unexpanded so users can "make install exec_prefix=/foo" 864# and all the variables that are supposed to be based on exec_prefix 865# by default will actually change. 866# Use braces instead of parens because sh, perl, etc. also accept them. 867# (The list follows the same order as the GNU Coding Standards.) 868bindir='${exec_prefix}/bin' 869sbindir='${exec_prefix}/sbin' 870libexecdir='${exec_prefix}/libexec' 871datarootdir='${prefix}/share' 872datadir='${datarootdir}' 873sysconfdir='${prefix}/etc' 874sharedstatedir='${prefix}/com' 875localstatedir='${prefix}/var' 876runstatedir='${localstatedir}/run' 877includedir='${prefix}/include' 878oldincludedir='/usr/include' 879docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 880infodir='${datarootdir}/info' 881htmldir='${docdir}' 882dvidir='${docdir}' 883pdfdir='${docdir}' 884psdir='${docdir}' 885libdir='${exec_prefix}/lib' 886localedir='${datarootdir}/locale' 887mandir='${datarootdir}/man' 888 889ac_prev= 890ac_dashdash= 891for ac_option 892do 893 # If the previous option needs an argument, assign it. 894 if test -n "$ac_prev"; then 895 eval $ac_prev=\$ac_option 896 ac_prev= 897 continue 898 fi 899 900 case $ac_option in 901 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 902 *=) ac_optarg= ;; 903 *) ac_optarg=yes ;; 904 esac 905 906 case $ac_dashdash$ac_option in 907 --) 908 ac_dashdash=yes ;; 909 910 -bindir | --bindir | --bindi | --bind | --bin | --bi) 911 ac_prev=bindir ;; 912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 913 bindir=$ac_optarg ;; 914 915 -build | --build | --buil | --bui | --bu) 916 ac_prev=build_alias ;; 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 918 build_alias=$ac_optarg ;; 919 920 -cache-file | --cache-file | --cache-fil | --cache-fi \ 921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 922 ac_prev=cache_file ;; 923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 925 cache_file=$ac_optarg ;; 926 927 --config-cache | -C) 928 cache_file=config.cache ;; 929 930 -datadir | --datadir | --datadi | --datad) 931 ac_prev=datadir ;; 932 -datadir=* | --datadir=* | --datadi=* | --datad=*) 933 datadir=$ac_optarg ;; 934 935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 936 | --dataroo | --dataro | --datar) 937 ac_prev=datarootdir ;; 938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 940 datarootdir=$ac_optarg ;; 941 942 -disable-* | --disable-*) 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 # Reject names that are not valid shell variable names. 945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 as_fn_error $? "invalid feature name: \`$ac_useropt'" 947 ac_useropt_orig=$ac_useropt 948 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 949 case $ac_user_opts in 950 *" 951"enable_$ac_useropt" 952"*) ;; 953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 954 ac_unrecognized_sep=', ';; 955 esac 956 eval enable_$ac_useropt=no ;; 957 958 -docdir | --docdir | --docdi | --doc | --do) 959 ac_prev=docdir ;; 960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 961 docdir=$ac_optarg ;; 962 963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 964 ac_prev=dvidir ;; 965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 966 dvidir=$ac_optarg ;; 967 968 -enable-* | --enable-*) 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 970 # Reject names that are not valid shell variable names. 971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 972 as_fn_error $? "invalid feature name: \`$ac_useropt'" 973 ac_useropt_orig=$ac_useropt 974 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 975 case $ac_user_opts in 976 *" 977"enable_$ac_useropt" 978"*) ;; 979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 980 ac_unrecognized_sep=', ';; 981 esac 982 eval enable_$ac_useropt=\$ac_optarg ;; 983 984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 986 | --exec | --exe | --ex) 987 ac_prev=exec_prefix ;; 988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 990 | --exec=* | --exe=* | --ex=*) 991 exec_prefix=$ac_optarg ;; 992 993 -gas | --gas | --ga | --g) 994 # Obsolete; use --with-gas. 995 with_gas=yes ;; 996 997 -help | --help | --hel | --he | -h) 998 ac_init_help=long ;; 999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1000 ac_init_help=recursive ;; 1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1002 ac_init_help=short ;; 1003 1004 -host | --host | --hos | --ho) 1005 ac_prev=host_alias ;; 1006 -host=* | --host=* | --hos=* | --ho=*) 1007 host_alias=$ac_optarg ;; 1008 1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1010 ac_prev=htmldir ;; 1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1012 | --ht=*) 1013 htmldir=$ac_optarg ;; 1014 1015 -includedir | --includedir | --includedi | --included | --include \ 1016 | --includ | --inclu | --incl | --inc) 1017 ac_prev=includedir ;; 1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1019 | --includ=* | --inclu=* | --incl=* | --inc=*) 1020 includedir=$ac_optarg ;; 1021 1022 -infodir | --infodir | --infodi | --infod | --info | --inf) 1023 ac_prev=infodir ;; 1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1025 infodir=$ac_optarg ;; 1026 1027 -libdir | --libdir | --libdi | --libd) 1028 ac_prev=libdir ;; 1029 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1030 libdir=$ac_optarg ;; 1031 1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1033 | --libexe | --libex | --libe) 1034 ac_prev=libexecdir ;; 1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1036 | --libexe=* | --libex=* | --libe=*) 1037 libexecdir=$ac_optarg ;; 1038 1039 -localedir | --localedir | --localedi | --localed | --locale) 1040 ac_prev=localedir ;; 1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1042 localedir=$ac_optarg ;; 1043 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1045 | --localstate | --localstat | --localsta | --localst | --locals) 1046 ac_prev=localstatedir ;; 1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1049 localstatedir=$ac_optarg ;; 1050 1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1052 ac_prev=mandir ;; 1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1054 mandir=$ac_optarg ;; 1055 1056 -nfp | --nfp | --nf) 1057 # Obsolete; use --without-fp. 1058 with_fp=no ;; 1059 1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1061 | --no-cr | --no-c | -n) 1062 no_create=yes ;; 1063 1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1066 no_recursion=yes ;; 1067 1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1070 | --oldin | --oldi | --old | --ol | --o) 1071 ac_prev=oldincludedir ;; 1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1075 oldincludedir=$ac_optarg ;; 1076 1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1078 ac_prev=prefix ;; 1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1080 prefix=$ac_optarg ;; 1081 1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1083 | --program-pre | --program-pr | --program-p) 1084 ac_prev=program_prefix ;; 1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1087 program_prefix=$ac_optarg ;; 1088 1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1090 | --program-suf | --program-su | --program-s) 1091 ac_prev=program_suffix ;; 1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1094 program_suffix=$ac_optarg ;; 1095 1096 -program-transform-name | --program-transform-name \ 1097 | --program-transform-nam | --program-transform-na \ 1098 | --program-transform-n | --program-transform- \ 1099 | --program-transform | --program-transfor \ 1100 | --program-transfo | --program-transf \ 1101 | --program-trans | --program-tran \ 1102 | --progr-tra | --program-tr | --program-t) 1103 ac_prev=program_transform_name ;; 1104 -program-transform-name=* | --program-transform-name=* \ 1105 | --program-transform-nam=* | --program-transform-na=* \ 1106 | --program-transform-n=* | --program-transform-=* \ 1107 | --program-transform=* | --program-transfor=* \ 1108 | --program-transfo=* | --program-transf=* \ 1109 | --program-trans=* | --program-tran=* \ 1110 | --progr-tra=* | --program-tr=* | --program-t=*) 1111 program_transform_name=$ac_optarg ;; 1112 1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1114 ac_prev=pdfdir ;; 1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1116 pdfdir=$ac_optarg ;; 1117 1118 -psdir | --psdir | --psdi | --psd | --ps) 1119 ac_prev=psdir ;; 1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1121 psdir=$ac_optarg ;; 1122 1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1124 | -silent | --silent | --silen | --sile | --sil) 1125 silent=yes ;; 1126 1127 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1128 | --runstate | --runstat | --runsta | --runst | --runs \ 1129 | --run | --ru | --r) 1130 ac_prev=runstatedir ;; 1131 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1132 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1133 | --run=* | --ru=* | --r=*) 1134 runstatedir=$ac_optarg ;; 1135 1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1137 ac_prev=sbindir ;; 1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1139 | --sbi=* | --sb=*) 1140 sbindir=$ac_optarg ;; 1141 1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1144 | --sharedst | --shareds | --shared | --share | --shar \ 1145 | --sha | --sh) 1146 ac_prev=sharedstatedir ;; 1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1150 | --sha=* | --sh=*) 1151 sharedstatedir=$ac_optarg ;; 1152 1153 -site | --site | --sit) 1154 ac_prev=site ;; 1155 -site=* | --site=* | --sit=*) 1156 site=$ac_optarg ;; 1157 1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1159 ac_prev=srcdir ;; 1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1161 srcdir=$ac_optarg ;; 1162 1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1164 | --syscon | --sysco | --sysc | --sys | --sy) 1165 ac_prev=sysconfdir ;; 1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1168 sysconfdir=$ac_optarg ;; 1169 1170 -target | --target | --targe | --targ | --tar | --ta | --t) 1171 ac_prev=target_alias ;; 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1173 target_alias=$ac_optarg ;; 1174 1175 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1176 verbose=yes ;; 1177 1178 -version | --version | --versio | --versi | --vers | -V) 1179 ac_init_version=: ;; 1180 1181 -with-* | --with-*) 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1183 # Reject names that are not valid shell variable names. 1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1185 as_fn_error $? "invalid package name: \`$ac_useropt'" 1186 ac_useropt_orig=$ac_useropt 1187 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1188 case $ac_user_opts in 1189 *" 1190"with_$ac_useropt" 1191"*) ;; 1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1193 ac_unrecognized_sep=', ';; 1194 esac 1195 eval with_$ac_useropt=\$ac_optarg ;; 1196 1197 -without-* | --without-*) 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1199 # Reject names that are not valid shell variable names. 1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1201 as_fn_error $? "invalid package name: \`$ac_useropt'" 1202 ac_useropt_orig=$ac_useropt 1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1204 case $ac_user_opts in 1205 *" 1206"with_$ac_useropt" 1207"*) ;; 1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1209 ac_unrecognized_sep=', ';; 1210 esac 1211 eval with_$ac_useropt=no ;; 1212 1213 --x) 1214 # Obsolete; use --with-x. 1215 with_x=yes ;; 1216 1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1218 | --x-incl | --x-inc | --x-in | --x-i) 1219 ac_prev=x_includes ;; 1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1222 x_includes=$ac_optarg ;; 1223 1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1226 ac_prev=x_libraries ;; 1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1229 x_libraries=$ac_optarg ;; 1230 1231 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1232Try \`$0 --help' for more information" 1233 ;; 1234 1235 *=*) 1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1237 # Reject names that are not valid shell variable names. 1238 case $ac_envvar in #( 1239 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1240 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1241 esac 1242 eval $ac_envvar=\$ac_optarg 1243 export $ac_envvar ;; 1244 1245 *) 1246 # FIXME: should be removed in autoconf 3.0. 1247 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1249 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1250 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1251 ;; 1252 1253 esac 1254done 1255 1256if test -n "$ac_prev"; then 1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1258 as_fn_error $? "missing argument to $ac_option" 1259fi 1260 1261if test -n "$ac_unrecognized_opts"; then 1262 case $enable_option_checking in 1263 no) ;; 1264 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1265 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1266 esac 1267fi 1268 1269# Check all directory arguments for consistency. 1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1271 datadir sysconfdir sharedstatedir localstatedir includedir \ 1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1273 libdir localedir mandir runstatedir 1274do 1275 eval ac_val=\$$ac_var 1276 # Remove trailing slashes. 1277 case $ac_val in 1278 */ ) 1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1280 eval $ac_var=\$ac_val;; 1281 esac 1282 # Be sure to have absolute directory names. 1283 case $ac_val in 1284 [\\/$]* | ?:[\\/]* ) continue;; 1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1286 esac 1287 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1288done 1289 1290# There might be people who depend on the old broken behavior: `$host' 1291# used to hold the argument of --host etc. 1292# FIXME: To remove some day. 1293build=$build_alias 1294host=$host_alias 1295target=$target_alias 1296 1297# FIXME: To remove some day. 1298if test "x$host_alias" != x; then 1299 if test "x$build_alias" = x; then 1300 cross_compiling=maybe 1301 elif test "x$build_alias" != "x$host_alias"; then 1302 cross_compiling=yes 1303 fi 1304fi 1305 1306ac_tool_prefix= 1307test -n "$host_alias" && ac_tool_prefix=$host_alias- 1308 1309test "$silent" = yes && exec 6>/dev/null 1310 1311 1312ac_pwd=`pwd` && test -n "$ac_pwd" && 1313ac_ls_di=`ls -di .` && 1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1315 as_fn_error $? "working directory cannot be determined" 1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1317 as_fn_error $? "pwd does not report name of working directory" 1318 1319 1320# Find the source files, if location was not specified. 1321if test -z "$srcdir"; then 1322 ac_srcdir_defaulted=yes 1323 # Try the directory containing this script, then the parent directory. 1324 ac_confdir=`$as_dirname -- "$as_myself" || 1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1326 X"$as_myself" : 'X\(//\)[^/]' \| \ 1327 X"$as_myself" : 'X\(//\)$' \| \ 1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1329printf "%s\n" X"$as_myself" | 1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1331 s//\1/ 1332 q 1333 } 1334 /^X\(\/\/\)[^/].*/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)$/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\).*/{ 1343 s//\1/ 1344 q 1345 } 1346 s/.*/./; q'` 1347 srcdir=$ac_confdir 1348 if test ! -r "$srcdir/$ac_unique_file"; then 1349 srcdir=.. 1350 fi 1351else 1352 ac_srcdir_defaulted=no 1353fi 1354if test ! -r "$srcdir/$ac_unique_file"; then 1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1356 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1357fi 1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1359ac_abs_confdir=`( 1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1361 pwd)` 1362# When building in place, set srcdir=. 1363if test "$ac_abs_confdir" = "$ac_pwd"; then 1364 srcdir=. 1365fi 1366# Remove unnecessary trailing slashes from srcdir. 1367# Double slashes in file names in object file debugging info 1368# mess up M-x gdb in Emacs. 1369case $srcdir in 1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1371esac 1372for ac_var in $ac_precious_vars; do 1373 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_env_${ac_var}_value=\$${ac_var} 1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1376 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1377done 1378 1379# 1380# Report the --help message. 1381# 1382if test "$ac_init_help" = "long"; then 1383 # Omit some internal or obsolete options to make the list less imposing. 1384 # This message is too long to be a string in the A/UX 3.1 sh. 1385 cat <<_ACEOF 1386\`configure' configures libxkbfile 1.1.1 to adapt to many kinds of systems. 1387 1388Usage: $0 [OPTION]... [VAR=VALUE]... 1389 1390To assign environment variables (e.g., CC, CFLAGS...), specify them as 1391VAR=VALUE. See below for descriptions of some of the useful variables. 1392 1393Defaults for the options are specified in brackets. 1394 1395Configuration: 1396 -h, --help display this help and exit 1397 --help=short display options specific to this package 1398 --help=recursive display the short help of all the included packages 1399 -V, --version display version information and exit 1400 -q, --quiet, --silent do not print \`checking ...' messages 1401 --cache-file=FILE cache test results in FILE [disabled] 1402 -C, --config-cache alias for \`--cache-file=config.cache' 1403 -n, --no-create do not create output files 1404 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1405 1406Installation directories: 1407 --prefix=PREFIX install architecture-independent files in PREFIX 1408 [$ac_default_prefix] 1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1410 [PREFIX] 1411 1412By default, \`make install' will install all the files in 1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1414an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1415for instance \`--prefix=\$HOME'. 1416 1417For better control, use the options below. 1418 1419Fine tuning of the installation directories: 1420 --bindir=DIR user executables [EPREFIX/bin] 1421 --sbindir=DIR system admin executables [EPREFIX/sbin] 1422 --libexecdir=DIR program executables [EPREFIX/libexec] 1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1426 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1427 --libdir=DIR object code libraries [EPREFIX/lib] 1428 --includedir=DIR C header files [PREFIX/include] 1429 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1430 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1431 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1432 --infodir=DIR info documentation [DATAROOTDIR/info] 1433 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1434 --mandir=DIR man documentation [DATAROOTDIR/man] 1435 --docdir=DIR documentation root [DATAROOTDIR/doc/libxkbfile] 1436 --htmldir=DIR html documentation [DOCDIR] 1437 --dvidir=DIR dvi documentation [DOCDIR] 1438 --pdfdir=DIR pdf documentation [DOCDIR] 1439 --psdir=DIR ps documentation [DOCDIR] 1440_ACEOF 1441 1442 cat <<\_ACEOF 1443 1444Program names: 1445 --program-prefix=PREFIX prepend PREFIX to installed program names 1446 --program-suffix=SUFFIX append SUFFIX to installed program names 1447 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1448 1449System types: 1450 --build=BUILD configure for building on BUILD [guessed] 1451 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1452_ACEOF 1453fi 1454 1455if test -n "$ac_init_help"; then 1456 case $ac_init_help in 1457 short | recursive ) echo "Configuration of libxkbfile 1.1.1:";; 1458 esac 1459 cat <<\_ACEOF 1460 1461Optional Features: 1462 --disable-option-checking ignore unrecognized --enable/--with options 1463 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1464 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1465 --enable-silent-rules less verbose build output (undo: "make V=1") 1466 --disable-silent-rules verbose build output (undo: "make V=0") 1467 --enable-shared[=PKGS] build shared libraries [default=yes] 1468 --enable-static[=PKGS] build static libraries [default=yes] 1469 --enable-fast-install[=PKGS] 1470 optimize for fast installation [default=yes] 1471 --enable-dependency-tracking 1472 do not reject slow dependency extractors 1473 --disable-dependency-tracking 1474 speeds up one-time build 1475 --disable-libtool-lock avoid locking (might break parallel builds) 1476 --disable-selective-werror 1477 Turn off selective compiler errors. (default: 1478 enabled) 1479 --enable-strict-compilation 1480 Enable all warnings from compiler and make them 1481 errors (default: disabled) 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1487 both] 1488 --with-aix-soname=aix|svr4|both 1489 shared library versioning (aka "SONAME") variant to 1490 provide on AIX, [default=aix]. 1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1493 compiler's sysroot if not specified). 1494 1495Some influential environment variables: 1496 CC C compiler command 1497 CFLAGS C compiler flags 1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1499 nonstandard directory <lib dir> 1500 LIBS libraries to pass to the linker, e.g. -l<library> 1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1502 you have headers in a nonstandard directory <include dir> 1503 LT_SYS_LIBRARY_PATH 1504 User-defined run-time library search path. 1505 PKG_CONFIG path to pkg-config utility 1506 PKG_CONFIG_PATH 1507 directories to add to pkg-config's search path 1508 PKG_CONFIG_LIBDIR 1509 path overriding pkg-config's built-in search path 1510 XKBFILE_CFLAGS 1511 C compiler flags for XKBFILE, overriding pkg-config 1512 XKBFILE_LIBS 1513 linker flags for XKBFILE, overriding pkg-config 1514 1515Use these variables to override the choices made by `configure' or to help 1516it to find libraries and programs with nonstandard names/locations. 1517 1518Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>. 1519_ACEOF 1520ac_status=$? 1521fi 1522 1523if test "$ac_init_help" = "recursive"; then 1524 # If there are subdirs, report their specific --help. 1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1526 test -d "$ac_dir" || 1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1528 continue 1529 ac_builddir=. 1530 1531case "$ac_dir" in 1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1533*) 1534 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1535 # A ".." for each directory in $ac_dir_suffix. 1536 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1537 case $ac_top_builddir_sub in 1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1540 esac ;; 1541esac 1542ac_abs_top_builddir=$ac_pwd 1543ac_abs_builddir=$ac_pwd$ac_dir_suffix 1544# for backward compatibility: 1545ac_top_builddir=$ac_top_build_prefix 1546 1547case $srcdir in 1548 .) # We are building in place. 1549 ac_srcdir=. 1550 ac_top_srcdir=$ac_top_builddir_sub 1551 ac_abs_top_srcdir=$ac_pwd ;; 1552 [\\/]* | ?:[\\/]* ) # Absolute name. 1553 ac_srcdir=$srcdir$ac_dir_suffix; 1554 ac_top_srcdir=$srcdir 1555 ac_abs_top_srcdir=$srcdir ;; 1556 *) # Relative name. 1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1558 ac_top_srcdir=$ac_top_build_prefix$srcdir 1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1560esac 1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1562 1563 cd "$ac_dir" || { ac_status=$?; continue; } 1564 # Check for configure.gnu first; this name is used for a wrapper for 1565 # Metaconfig's "Configure" on case-insensitive file systems. 1566 if test -f "$ac_srcdir/configure.gnu"; then 1567 echo && 1568 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1569 elif test -f "$ac_srcdir/configure"; then 1570 echo && 1571 $SHELL "$ac_srcdir/configure" --help=recursive 1572 else 1573 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1574 fi || ac_status=$? 1575 cd "$ac_pwd" || { ac_status=$?; break; } 1576 done 1577fi 1578 1579test -n "$ac_init_help" && exit $ac_status 1580if $ac_init_version; then 1581 cat <<\_ACEOF 1582libxkbfile configure 1.1.1 1583generated by GNU Autoconf 2.71 1584 1585Copyright (C) 2021 Free Software Foundation, Inc. 1586This configure script is free software; the Free Software Foundation 1587gives unlimited permission to copy, distribute and modify it. 1588_ACEOF 1589 exit 1590fi 1591 1592## ------------------------ ## 1593## Autoconf initialization. ## 1594## ------------------------ ## 1595 1596# ac_fn_c_try_compile LINENO 1597# -------------------------- 1598# Try to compile conftest.$ac_ext, and return whether this succeeded. 1599ac_fn_c_try_compile () 1600{ 1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1602 rm -f conftest.$ac_objext conftest.beam 1603 if { { ac_try="$ac_compile" 1604case "(($ac_try" in 1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1606 *) ac_try_echo=$ac_try;; 1607esac 1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1609printf "%s\n" "$ac_try_echo"; } >&5 1610 (eval "$ac_compile") 2>conftest.err 1611 ac_status=$? 1612 if test -s conftest.err; then 1613 grep -v '^ *+' conftest.err >conftest.er1 1614 cat conftest.er1 >&5 1615 mv -f conftest.er1 conftest.err 1616 fi 1617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1618 test $ac_status = 0; } && { 1619 test -z "$ac_c_werror_flag" || 1620 test ! -s conftest.err 1621 } && test -s conftest.$ac_objext 1622then : 1623 ac_retval=0 1624else $as_nop 1625 printf "%s\n" "$as_me: failed program was:" >&5 1626sed 's/^/| /' conftest.$ac_ext >&5 1627 1628 ac_retval=1 1629fi 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 as_fn_set_status $ac_retval 1632 1633} # ac_fn_c_try_compile 1634 1635# ac_fn_c_try_link LINENO 1636# ----------------------- 1637# Try to link conftest.$ac_ext, and return whether this succeeded. 1638ac_fn_c_try_link () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1642 if { { ac_try="$ac_link" 1643case "(($ac_try" in 1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1645 *) ac_try_echo=$ac_try;; 1646esac 1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1648printf "%s\n" "$ac_try_echo"; } >&5 1649 (eval "$ac_link") 2>conftest.err 1650 ac_status=$? 1651 if test -s conftest.err; then 1652 grep -v '^ *+' conftest.err >conftest.er1 1653 cat conftest.er1 >&5 1654 mv -f conftest.er1 conftest.err 1655 fi 1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1657 test $ac_status = 0; } && { 1658 test -z "$ac_c_werror_flag" || 1659 test ! -s conftest.err 1660 } && test -s conftest$ac_exeext && { 1661 test "$cross_compiling" = yes || 1662 test -x conftest$ac_exeext 1663 } 1664then : 1665 ac_retval=0 1666else $as_nop 1667 printf "%s\n" "$as_me: failed program was:" >&5 1668sed 's/^/| /' conftest.$ac_ext >&5 1669 1670 ac_retval=1 1671fi 1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1674 # interfere with the next link command; also delete a directory that is 1675 # left behind by Apple's compiler. We do this before executing the actions. 1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1678 as_fn_set_status $ac_retval 1679 1680} # ac_fn_c_try_link 1681 1682# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1683# ------------------------------------------------------- 1684# Tests whether HEADER exists and can be compiled using the include files in 1685# INCLUDES, setting the cache variable VAR accordingly. 1686ac_fn_c_check_header_compile () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1690printf %s "checking for $2... " >&6; } 1691if eval test \${$3+y} 1692then : 1693 printf %s "(cached) " >&6 1694else $as_nop 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696/* end confdefs.h. */ 1697$4 1698#include <$2> 1699_ACEOF 1700if ac_fn_c_try_compile "$LINENO" 1701then : 1702 eval "$3=yes" 1703else $as_nop 1704 eval "$3=no" 1705fi 1706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1707fi 1708eval ac_res=\$$3 1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1710printf "%s\n" "$ac_res" >&6; } 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 1713} # ac_fn_c_check_header_compile 1714 1715# ac_fn_c_check_func LINENO FUNC VAR 1716# ---------------------------------- 1717# Tests whether FUNC exists, setting the cache variable VAR accordingly 1718ac_fn_c_check_func () 1719{ 1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1722printf %s "checking for $2... " >&6; } 1723if eval test \${$3+y} 1724then : 1725 printf %s "(cached) " >&6 1726else $as_nop 1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1730 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1731#define $2 innocuous_$2 1732 1733/* System header to define __stub macros and hopefully few prototypes, 1734 which can conflict with char $2 (); below. */ 1735 1736#include <limits.h> 1737#undef $2 1738 1739/* Override any GCC internal prototype to avoid an error. 1740 Use char because int might match the return type of a GCC 1741 builtin and then its argument prototype would still apply. */ 1742#ifdef __cplusplus 1743extern "C" 1744#endif 1745char $2 (); 1746/* The GNU C library defines this for functions which it implements 1747 to always fail with ENOSYS. Some functions are actually named 1748 something starting with __ and the normal name is an alias. */ 1749#if defined __stub_$2 || defined __stub___$2 1750choke me 1751#endif 1752 1753int 1754main (void) 1755{ 1756return $2 (); 1757 ; 1758 return 0; 1759} 1760_ACEOF 1761if ac_fn_c_try_link "$LINENO" 1762then : 1763 eval "$3=yes" 1764else $as_nop 1765 eval "$3=no" 1766fi 1767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1768 conftest$ac_exeext conftest.$ac_ext 1769fi 1770eval ac_res=\$$3 1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1772printf "%s\n" "$ac_res" >&6; } 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1774 1775} # ac_fn_c_check_func 1776 1777# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1778# ------------------------------------------------------------------ 1779# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1780# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1781ac_fn_check_decl () 1782{ 1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1784 as_decl_name=`echo $2|sed 's/ *(.*//'` 1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1786printf %s "checking whether $as_decl_name is declared... " >&6; } 1787if eval test \${$3+y} 1788then : 1789 printf %s "(cached) " >&6 1790else $as_nop 1791 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1792 eval ac_save_FLAGS=\$$6 1793 as_fn_append $6 " $5" 1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1795/* end confdefs.h. */ 1796$4 1797int 1798main (void) 1799{ 1800#ifndef $as_decl_name 1801#ifdef __cplusplus 1802 (void) $as_decl_use; 1803#else 1804 (void) $as_decl_name; 1805#endif 1806#endif 1807 1808 ; 1809 return 0; 1810} 1811_ACEOF 1812if ac_fn_c_try_compile "$LINENO" 1813then : 1814 eval "$3=yes" 1815else $as_nop 1816 eval "$3=no" 1817fi 1818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1819 eval $6=\$ac_save_FLAGS 1820 1821fi 1822eval ac_res=\$$3 1823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1824printf "%s\n" "$ac_res" >&6; } 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1826 1827} # ac_fn_check_decl 1828ac_configure_args_raw= 1829for ac_arg 1830do 1831 case $ac_arg in 1832 *\'*) 1833 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1834 esac 1835 as_fn_append ac_configure_args_raw " '$ac_arg'" 1836done 1837 1838case $ac_configure_args_raw in 1839 *$as_nl*) 1840 ac_safe_unquote= ;; 1841 *) 1842 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1843 ac_unsafe_a="$ac_unsafe_z#~" 1844 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1845 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1846esac 1847 1848cat >config.log <<_ACEOF 1849This file contains any messages produced by compilers while 1850running configure, to aid debugging if configure makes a mistake. 1851 1852It was created by libxkbfile $as_me 1.1.1, which was 1853generated by GNU Autoconf 2.71. Invocation command line was 1854 1855 $ $0$ac_configure_args_raw 1856 1857_ACEOF 1858exec 5>>config.log 1859{ 1860cat <<_ASUNAME 1861## --------- ## 1862## Platform. ## 1863## --------- ## 1864 1865hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1866uname -m = `(uname -m) 2>/dev/null || echo unknown` 1867uname -r = `(uname -r) 2>/dev/null || echo unknown` 1868uname -s = `(uname -s) 2>/dev/null || echo unknown` 1869uname -v = `(uname -v) 2>/dev/null || echo unknown` 1870 1871/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1872/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1873 1874/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1875/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1876/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1877/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1878/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1879/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1880/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1881 1882_ASUNAME 1883 1884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1885for as_dir in $PATH 1886do 1887 IFS=$as_save_IFS 1888 case $as_dir in #((( 1889 '') as_dir=./ ;; 1890 */) ;; 1891 *) as_dir=$as_dir/ ;; 1892 esac 1893 printf "%s\n" "PATH: $as_dir" 1894 done 1895IFS=$as_save_IFS 1896 1897} >&5 1898 1899cat >&5 <<_ACEOF 1900 1901 1902## ----------- ## 1903## Core tests. ## 1904## ----------- ## 1905 1906_ACEOF 1907 1908 1909# Keep a trace of the command line. 1910# Strip out --no-create and --no-recursion so they do not pile up. 1911# Strip out --silent because we don't want to record it for future runs. 1912# Also quote any args containing shell meta-characters. 1913# Make two passes to allow for proper duplicate-argument suppression. 1914ac_configure_args= 1915ac_configure_args0= 1916ac_configure_args1= 1917ac_must_keep_next=false 1918for ac_pass in 1 2 1919do 1920 for ac_arg 1921 do 1922 case $ac_arg in 1923 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1924 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1925 | -silent | --silent | --silen | --sile | --sil) 1926 continue ;; 1927 *\'*) 1928 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1929 esac 1930 case $ac_pass in 1931 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1932 2) 1933 as_fn_append ac_configure_args1 " '$ac_arg'" 1934 if test $ac_must_keep_next = true; then 1935 ac_must_keep_next=false # Got value, back to normal. 1936 else 1937 case $ac_arg in 1938 *=* | --config-cache | -C | -disable-* | --disable-* \ 1939 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1940 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1941 | -with-* | --with-* | -without-* | --without-* | --x) 1942 case "$ac_configure_args0 " in 1943 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1944 esac 1945 ;; 1946 -* ) ac_must_keep_next=true ;; 1947 esac 1948 fi 1949 as_fn_append ac_configure_args " '$ac_arg'" 1950 ;; 1951 esac 1952 done 1953done 1954{ ac_configure_args0=; unset ac_configure_args0;} 1955{ ac_configure_args1=; unset ac_configure_args1;} 1956 1957# When interrupted or exit'd, cleanup temporary files, and complete 1958# config.log. We remove comments because anyway the quotes in there 1959# would cause problems or look ugly. 1960# WARNING: Use '\'' to represent an apostrophe within the trap. 1961# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1962trap 'exit_status=$? 1963 # Sanitize IFS. 1964 IFS=" "" $as_nl" 1965 # Save into config.log some information that might help in debugging. 1966 { 1967 echo 1968 1969 printf "%s\n" "## ---------------- ## 1970## Cache variables. ## 1971## ---------------- ##" 1972 echo 1973 # The following way of writing the cache mishandles newlines in values, 1974( 1975 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1976 eval ac_val=\$$ac_var 1977 case $ac_val in #( 1978 *${as_nl}*) 1979 case $ac_var in #( 1980 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1981printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1982 esac 1983 case $ac_var in #( 1984 _ | IFS | as_nl) ;; #( 1985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1986 *) { eval $ac_var=; unset $ac_var;} ;; 1987 esac ;; 1988 esac 1989 done 1990 (set) 2>&1 | 1991 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1992 *${as_nl}ac_space=\ *) 1993 sed -n \ 1994 "s/'\''/'\''\\\\'\'''\''/g; 1995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1996 ;; #( 1997 *) 1998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1999 ;; 2000 esac | 2001 sort 2002) 2003 echo 2004 2005 printf "%s\n" "## ----------------- ## 2006## Output variables. ## 2007## ----------------- ##" 2008 echo 2009 for ac_var in $ac_subst_vars 2010 do 2011 eval ac_val=\$$ac_var 2012 case $ac_val in 2013 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2014 esac 2015 printf "%s\n" "$ac_var='\''$ac_val'\''" 2016 done | sort 2017 echo 2018 2019 if test -n "$ac_subst_files"; then 2020 printf "%s\n" "## ------------------- ## 2021## File substitutions. ## 2022## ------------------- ##" 2023 echo 2024 for ac_var in $ac_subst_files 2025 do 2026 eval ac_val=\$$ac_var 2027 case $ac_val in 2028 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2029 esac 2030 printf "%s\n" "$ac_var='\''$ac_val'\''" 2031 done | sort 2032 echo 2033 fi 2034 2035 if test -s confdefs.h; then 2036 printf "%s\n" "## ----------- ## 2037## confdefs.h. ## 2038## ----------- ##" 2039 echo 2040 cat confdefs.h 2041 echo 2042 fi 2043 test "$ac_signal" != 0 && 2044 printf "%s\n" "$as_me: caught signal $ac_signal" 2045 printf "%s\n" "$as_me: exit $exit_status" 2046 } >&5 2047 rm -f core *.core core.conftest.* && 2048 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2049 exit $exit_status 2050' 0 2051for ac_signal in 1 2 13 15; do 2052 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2053done 2054ac_signal=0 2055 2056# confdefs.h avoids OS command line length limits that DEFS can exceed. 2057rm -f -r conftest* confdefs.h 2058 2059printf "%s\n" "/* confdefs.h */" > confdefs.h 2060 2061# Predefined preprocessor variables. 2062 2063printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2064 2065printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2066 2067printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2068 2069printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2070 2071printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2072 2073printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2074 2075 2076# Let the site file select an alternate cache file if it wants to. 2077# Prefer an explicitly selected file to automatically selected ones. 2078if test -n "$CONFIG_SITE"; then 2079 ac_site_files="$CONFIG_SITE" 2080elif test "x$prefix" != xNONE; then 2081 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2082else 2083 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2084fi 2085 2086for ac_site_file in $ac_site_files 2087do 2088 case $ac_site_file in #( 2089 */*) : 2090 ;; #( 2091 *) : 2092 ac_site_file=./$ac_site_file ;; 2093esac 2094 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2096printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2097 sed 's/^/| /' "$ac_site_file" >&5 2098 . "$ac_site_file" \ 2099 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2100printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2101as_fn_error $? "failed to load site script $ac_site_file 2102See \`config.log' for more details" "$LINENO" 5; } 2103 fi 2104done 2105 2106if test -r "$cache_file"; then 2107 # Some versions of bash will fail to source /dev/null (special files 2108 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2109 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2111printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2112 case $cache_file in 2113 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2114 *) . "./$cache_file";; 2115 esac 2116 fi 2117else 2118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2119printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2120 >$cache_file 2121fi 2122 2123# Test code for whether the C compiler supports C89 (global declarations) 2124ac_c_conftest_c89_globals=' 2125/* Does the compiler advertise C89 conformance? 2126 Do not test the value of __STDC__, because some compilers set it to 0 2127 while being otherwise adequately conformant. */ 2128#if !defined __STDC__ 2129# error "Compiler does not advertise C89 conformance" 2130#endif 2131 2132#include <stddef.h> 2133#include <stdarg.h> 2134struct stat; 2135/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2136struct buf { int x; }; 2137struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2138static char *e (p, i) 2139 char **p; 2140 int i; 2141{ 2142 return p[i]; 2143} 2144static char *f (char * (*g) (char **, int), char **p, ...) 2145{ 2146 char *s; 2147 va_list v; 2148 va_start (v,p); 2149 s = g (p, va_arg (v,int)); 2150 va_end (v); 2151 return s; 2152} 2153 2154/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2155 function prototypes and stuff, but not \xHH hex character constants. 2156 These do not provoke an error unfortunately, instead are silently treated 2157 as an "x". The following induces an error, until -std is added to get 2158 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2159 array size at least. It is necessary to write \x00 == 0 to get something 2160 that is true only with -std. */ 2161int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2162 2163/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2164 inside strings and character constants. */ 2165#define FOO(x) '\''x'\'' 2166int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2167 2168int test (int i, double x); 2169struct s1 {int (*f) (int a);}; 2170struct s2 {int (*f) (double a);}; 2171int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2172 int, int);' 2173 2174# Test code for whether the C compiler supports C89 (body of main). 2175ac_c_conftest_c89_main=' 2176ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2177' 2178 2179# Test code for whether the C compiler supports C99 (global declarations) 2180ac_c_conftest_c99_globals=' 2181// Does the compiler advertise C99 conformance? 2182#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2183# error "Compiler does not advertise C99 conformance" 2184#endif 2185 2186#include <stdbool.h> 2187extern int puts (const char *); 2188extern int printf (const char *, ...); 2189extern int dprintf (int, const char *, ...); 2190extern void *malloc (size_t); 2191 2192// Check varargs macros. These examples are taken from C99 6.10.3.5. 2193// dprintf is used instead of fprintf to avoid needing to declare 2194// FILE and stderr. 2195#define debug(...) dprintf (2, __VA_ARGS__) 2196#define showlist(...) puts (#__VA_ARGS__) 2197#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2198static void 2199test_varargs_macros (void) 2200{ 2201 int x = 1234; 2202 int y = 5678; 2203 debug ("Flag"); 2204 debug ("X = %d\n", x); 2205 showlist (The first, second, and third items.); 2206 report (x>y, "x is %d but y is %d", x, y); 2207} 2208 2209// Check long long types. 2210#define BIG64 18446744073709551615ull 2211#define BIG32 4294967295ul 2212#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2213#if !BIG_OK 2214 #error "your preprocessor is broken" 2215#endif 2216#if BIG_OK 2217#else 2218 #error "your preprocessor is broken" 2219#endif 2220static long long int bignum = -9223372036854775807LL; 2221static unsigned long long int ubignum = BIG64; 2222 2223struct incomplete_array 2224{ 2225 int datasize; 2226 double data[]; 2227}; 2228 2229struct named_init { 2230 int number; 2231 const wchar_t *name; 2232 double average; 2233}; 2234 2235typedef const char *ccp; 2236 2237static inline int 2238test_restrict (ccp restrict text) 2239{ 2240 // See if C++-style comments work. 2241 // Iterate through items via the restricted pointer. 2242 // Also check for declarations in for loops. 2243 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2244 continue; 2245 return 0; 2246} 2247 2248// Check varargs and va_copy. 2249static bool 2250test_varargs (const char *format, ...) 2251{ 2252 va_list args; 2253 va_start (args, format); 2254 va_list args_copy; 2255 va_copy (args_copy, args); 2256 2257 const char *str = ""; 2258 int number = 0; 2259 float fnumber = 0; 2260 2261 while (*format) 2262 { 2263 switch (*format++) 2264 { 2265 case '\''s'\'': // string 2266 str = va_arg (args_copy, const char *); 2267 break; 2268 case '\''d'\'': // int 2269 number = va_arg (args_copy, int); 2270 break; 2271 case '\''f'\'': // float 2272 fnumber = va_arg (args_copy, double); 2273 break; 2274 default: 2275 break; 2276 } 2277 } 2278 va_end (args_copy); 2279 va_end (args); 2280 2281 return *str && number && fnumber; 2282} 2283' 2284 2285# Test code for whether the C compiler supports C99 (body of main). 2286ac_c_conftest_c99_main=' 2287 // Check bool. 2288 _Bool success = false; 2289 success |= (argc != 0); 2290 2291 // Check restrict. 2292 if (test_restrict ("String literal") == 0) 2293 success = true; 2294 char *restrict newvar = "Another string"; 2295 2296 // Check varargs. 2297 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2298 test_varargs_macros (); 2299 2300 // Check flexible array members. 2301 struct incomplete_array *ia = 2302 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2303 ia->datasize = 10; 2304 for (int i = 0; i < ia->datasize; ++i) 2305 ia->data[i] = i * 1.234; 2306 2307 // Check named initializers. 2308 struct named_init ni = { 2309 .number = 34, 2310 .name = L"Test wide string", 2311 .average = 543.34343, 2312 }; 2313 2314 ni.number = 58; 2315 2316 int dynamic_array[ni.number]; 2317 dynamic_array[0] = argv[0][0]; 2318 dynamic_array[ni.number - 1] = 543; 2319 2320 // work around unused variable warnings 2321 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2322 || dynamic_array[ni.number - 1] != 543); 2323' 2324 2325# Test code for whether the C compiler supports C11 (global declarations) 2326ac_c_conftest_c11_globals=' 2327// Does the compiler advertise C11 conformance? 2328#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2329# error "Compiler does not advertise C11 conformance" 2330#endif 2331 2332// Check _Alignas. 2333char _Alignas (double) aligned_as_double; 2334char _Alignas (0) no_special_alignment; 2335extern char aligned_as_int; 2336char _Alignas (0) _Alignas (int) aligned_as_int; 2337 2338// Check _Alignof. 2339enum 2340{ 2341 int_alignment = _Alignof (int), 2342 int_array_alignment = _Alignof (int[100]), 2343 char_alignment = _Alignof (char) 2344}; 2345_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2346 2347// Check _Noreturn. 2348int _Noreturn does_not_return (void) { for (;;) continue; } 2349 2350// Check _Static_assert. 2351struct test_static_assert 2352{ 2353 int x; 2354 _Static_assert (sizeof (int) <= sizeof (long int), 2355 "_Static_assert does not work in struct"); 2356 long int y; 2357}; 2358 2359// Check UTF-8 literals. 2360#define u8 syntax error! 2361char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2362 2363// Check duplicate typedefs. 2364typedef long *long_ptr; 2365typedef long int *long_ptr; 2366typedef long_ptr long_ptr; 2367 2368// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2369struct anonymous 2370{ 2371 union { 2372 struct { int i; int j; }; 2373 struct { int k; long int l; } w; 2374 }; 2375 int m; 2376} v1; 2377' 2378 2379# Test code for whether the C compiler supports C11 (body of main). 2380ac_c_conftest_c11_main=' 2381 _Static_assert ((offsetof (struct anonymous, i) 2382 == offsetof (struct anonymous, w.k)), 2383 "Anonymous union alignment botch"); 2384 v1.i = 2; 2385 v1.w.k = 5; 2386 ok |= v1.i != 5; 2387' 2388 2389# Test code for whether the C compiler supports C11 (complete). 2390ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2391${ac_c_conftest_c99_globals} 2392${ac_c_conftest_c11_globals} 2393 2394int 2395main (int argc, char **argv) 2396{ 2397 int ok = 0; 2398 ${ac_c_conftest_c89_main} 2399 ${ac_c_conftest_c99_main} 2400 ${ac_c_conftest_c11_main} 2401 return ok; 2402} 2403" 2404 2405# Test code for whether the C compiler supports C99 (complete). 2406ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2407${ac_c_conftest_c99_globals} 2408 2409int 2410main (int argc, char **argv) 2411{ 2412 int ok = 0; 2413 ${ac_c_conftest_c89_main} 2414 ${ac_c_conftest_c99_main} 2415 return ok; 2416} 2417" 2418 2419# Test code for whether the C compiler supports C89 (complete). 2420ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2421 2422int 2423main (int argc, char **argv) 2424{ 2425 int ok = 0; 2426 ${ac_c_conftest_c89_main} 2427 return ok; 2428} 2429" 2430 2431as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2432as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2433as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2434as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2435as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2436as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2437as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2438as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2439as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2440 2441# Auxiliary files required by this configure script. 2442ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2443 2444# Locations in which to look for auxiliary files. 2445ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2446 2447# Search for a directory containing all of the required auxiliary files, 2448# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2449# If we don't find one directory that contains all the files we need, 2450# we report the set of missing files from the *first* directory in 2451# $ac_aux_dir_candidates and give up. 2452ac_missing_aux_files="" 2453ac_first_candidate=: 2454printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2456as_found=false 2457for as_dir in $ac_aux_dir_candidates 2458do 2459 IFS=$as_save_IFS 2460 case $as_dir in #((( 2461 '') as_dir=./ ;; 2462 */) ;; 2463 *) as_dir=$as_dir/ ;; 2464 esac 2465 as_found=: 2466 2467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2468 ac_aux_dir_found=yes 2469 ac_install_sh= 2470 for ac_aux in $ac_aux_files 2471 do 2472 # As a special case, if "install-sh" is required, that requirement 2473 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2474 # and $ac_install_sh is set appropriately for whichever one is found. 2475 if test x"$ac_aux" = x"install-sh" 2476 then 2477 if test -f "${as_dir}install-sh"; then 2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2479 ac_install_sh="${as_dir}install-sh -c" 2480 elif test -f "${as_dir}install.sh"; then 2481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2482 ac_install_sh="${as_dir}install.sh -c" 2483 elif test -f "${as_dir}shtool"; then 2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2485 ac_install_sh="${as_dir}shtool install -c" 2486 else 2487 ac_aux_dir_found=no 2488 if $ac_first_candidate; then 2489 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2490 else 2491 break 2492 fi 2493 fi 2494 else 2495 if test -f "${as_dir}${ac_aux}"; then 2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2497 else 2498 ac_aux_dir_found=no 2499 if $ac_first_candidate; then 2500 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2501 else 2502 break 2503 fi 2504 fi 2505 fi 2506 done 2507 if test "$ac_aux_dir_found" = yes; then 2508 ac_aux_dir="$as_dir" 2509 break 2510 fi 2511 ac_first_candidate=false 2512 2513 as_found=false 2514done 2515IFS=$as_save_IFS 2516if $as_found 2517then : 2518 2519else $as_nop 2520 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2521fi 2522 2523 2524# These three variables are undocumented and unsupported, 2525# and are intended to be withdrawn in a future Autoconf release. 2526# They can cause serious problems if a builder's source tree is in a directory 2527# whose full name contains unusual characters. 2528if test -f "${ac_aux_dir}config.guess"; then 2529 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2530fi 2531if test -f "${ac_aux_dir}config.sub"; then 2532 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2533fi 2534if test -f "$ac_aux_dir/configure"; then 2535 ac_configure="$SHELL ${ac_aux_dir}configure" 2536fi 2537 2538# Check that the precious variables saved in the cache have kept the same 2539# value. 2540ac_cache_corrupted=false 2541for ac_var in $ac_precious_vars; do 2542 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2543 eval ac_new_set=\$ac_env_${ac_var}_set 2544 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2545 eval ac_new_val=\$ac_env_${ac_var}_value 2546 case $ac_old_set,$ac_new_set in 2547 set,) 2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2549printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2550 ac_cache_corrupted=: ;; 2551 ,set) 2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2553printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2554 ac_cache_corrupted=: ;; 2555 ,);; 2556 *) 2557 if test "x$ac_old_val" != "x$ac_new_val"; then 2558 # differences in whitespace do not lead to failure. 2559 ac_old_val_w=`echo x $ac_old_val` 2560 ac_new_val_w=`echo x $ac_new_val` 2561 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2563printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2564 ac_cache_corrupted=: 2565 else 2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2567printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2568 eval $ac_var=\$ac_old_val 2569 fi 2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2571printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2573printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2574 fi;; 2575 esac 2576 # Pass precious variables to config.status. 2577 if test "$ac_new_set" = set; then 2578 case $ac_new_val in 2579 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2580 *) ac_arg=$ac_var=$ac_new_val ;; 2581 esac 2582 case " $ac_configure_args " in 2583 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2584 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2585 esac 2586 fi 2587done 2588if $ac_cache_corrupted; then 2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2590printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2592printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2593 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2594 and start over" "$LINENO" 5 2595fi 2596## -------------------- ## 2597## Main body of script. ## 2598## -------------------- ## 2599 2600ac_ext=c 2601ac_cpp='$CPP $CPPFLAGS' 2602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2604ac_compiler_gnu=$ac_cv_c_compiler_gnu 2605 2606 2607 2608ac_config_headers="$ac_config_headers config.h" 2609 2610 2611# Initialize Automake 2612am__api_version='1.16' 2613 2614 2615 2616 # Find a good install program. We prefer a C program (faster), 2617# so one script is as good as another. But avoid the broken or 2618# incompatible versions: 2619# SysV /etc/install, /usr/sbin/install 2620# SunOS /usr/etc/install 2621# IRIX /sbin/install 2622# AIX /bin/install 2623# AmigaOS /C/install, which installs bootblocks on floppy discs 2624# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2625# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2626# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2627# OS/2's system install, which has a completely different semantic 2628# ./install, which can be erroneously created by make from ./install.sh. 2629# Reject install programs that cannot install multiple files. 2630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2631printf %s "checking for a BSD-compatible install... " >&6; } 2632if test -z "$INSTALL"; then 2633if test ${ac_cv_path_install+y} 2634then : 2635 printf %s "(cached) " >&6 2636else $as_nop 2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2638for as_dir in $PATH 2639do 2640 IFS=$as_save_IFS 2641 case $as_dir in #((( 2642 '') as_dir=./ ;; 2643 */) ;; 2644 *) as_dir=$as_dir/ ;; 2645 esac 2646 # Account for fact that we put trailing slashes in our PATH walk. 2647case $as_dir in #(( 2648 ./ | /[cC]/* | \ 2649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2650 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2651 /usr/ucb/* ) ;; 2652 *) 2653 # OSF1 and SCO ODT 3.0 have their own names for install. 2654 # Don't use installbsd from OSF since it installs stuff as root 2655 # by default. 2656 for ac_prog in ginstall scoinst install; do 2657 for ac_exec_ext in '' $ac_executable_extensions; do 2658 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2659 if test $ac_prog = install && 2660 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2661 # AIX install. It has an incompatible calling convention. 2662 : 2663 elif test $ac_prog = install && 2664 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2665 # program-specific install script used by HP pwplus--don't use. 2666 : 2667 else 2668 rm -rf conftest.one conftest.two conftest.dir 2669 echo one > conftest.one 2670 echo two > conftest.two 2671 mkdir conftest.dir 2672 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2673 test -s conftest.one && test -s conftest.two && 2674 test -s conftest.dir/conftest.one && 2675 test -s conftest.dir/conftest.two 2676 then 2677 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2678 break 3 2679 fi 2680 fi 2681 fi 2682 done 2683 done 2684 ;; 2685esac 2686 2687 done 2688IFS=$as_save_IFS 2689 2690rm -rf conftest.one conftest.two conftest.dir 2691 2692fi 2693 if test ${ac_cv_path_install+y}; then 2694 INSTALL=$ac_cv_path_install 2695 else 2696 # As a last resort, use the slow shell script. Don't cache a 2697 # value for INSTALL within a source directory, because that will 2698 # break other packages using the cache if that directory is 2699 # removed, or if the value is a relative name. 2700 INSTALL=$ac_install_sh 2701 fi 2702fi 2703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2704printf "%s\n" "$INSTALL" >&6; } 2705 2706# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2707# It thinks the first close brace ends the variable substitution. 2708test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2709 2710test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2711 2712test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2713 2714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2715printf %s "checking whether build environment is sane... " >&6; } 2716# Reject unsafe characters in $srcdir or the absolute working directory 2717# name. Accept space and tab only in the latter. 2718am_lf=' 2719' 2720case `pwd` in 2721 *[\\\"\#\$\&\'\`$am_lf]*) 2722 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2723esac 2724case $srcdir in 2725 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2726 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2727esac 2728 2729# Do 'set' in a subshell so we don't clobber the current shell's 2730# arguments. Must try -L first in case configure is actually a 2731# symlink; some systems play weird games with the mod time of symlinks 2732# (eg FreeBSD returns the mod time of the symlink's containing 2733# directory). 2734if ( 2735 am_has_slept=no 2736 for am_try in 1 2; do 2737 echo "timestamp, slept: $am_has_slept" > conftest.file 2738 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2739 if test "$*" = "X"; then 2740 # -L didn't work. 2741 set X `ls -t "$srcdir/configure" conftest.file` 2742 fi 2743 if test "$*" != "X $srcdir/configure conftest.file" \ 2744 && test "$*" != "X conftest.file $srcdir/configure"; then 2745 2746 # If neither matched, then we have a broken ls. This can happen 2747 # if, for instance, CONFIG_SHELL is bash and it inherits a 2748 # broken ls alias from the environment. This has actually 2749 # happened. Such a system could not be considered "sane". 2750 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2751 alias in your environment" "$LINENO" 5 2752 fi 2753 if test "$2" = conftest.file || test $am_try -eq 2; then 2754 break 2755 fi 2756 # Just in case. 2757 sleep 1 2758 am_has_slept=yes 2759 done 2760 test "$2" = conftest.file 2761 ) 2762then 2763 # Ok. 2764 : 2765else 2766 as_fn_error $? "newly created file is older than distributed files! 2767Check your system clock" "$LINENO" 5 2768fi 2769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2770printf "%s\n" "yes" >&6; } 2771# If we didn't sleep, we still need to ensure time stamps of config.status and 2772# generated files are strictly newer. 2773am_sleep_pid= 2774if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2775 ( sleep 1 ) & 2776 am_sleep_pid=$! 2777fi 2778 2779rm -f conftest.file 2780 2781test "$program_prefix" != NONE && 2782 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2783# Use a double $ so make ignores it. 2784test "$program_suffix" != NONE && 2785 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2786# Double any \ or $. 2787# By default was `s,x,x', remove it if useless. 2788ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2789program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2790 2791 2792# Expand $ac_aux_dir to an absolute path. 2793am_aux_dir=`cd "$ac_aux_dir" && pwd` 2794 2795 2796 if test x"${MISSING+set}" != xset; then 2797 MISSING="\${SHELL} '$am_aux_dir/missing'" 2798fi 2799# Use eval to expand $SHELL 2800if eval "$MISSING --is-lightweight"; then 2801 am_missing_run="$MISSING " 2802else 2803 am_missing_run= 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2805printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2806fi 2807 2808if test x"${install_sh+set}" != xset; then 2809 case $am_aux_dir in 2810 *\ * | *\ *) 2811 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2812 *) 2813 install_sh="\${SHELL} $am_aux_dir/install-sh" 2814 esac 2815fi 2816 2817# Installed binaries are usually stripped using 'strip' when the user 2818# run "make install-strip". However 'strip' might not be the right 2819# tool to use in cross-compilation environments, therefore Automake 2820# will honor the 'STRIP' environment variable to overrule this program. 2821if test "$cross_compiling" != no; then 2822 if test -n "$ac_tool_prefix"; then 2823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2824set dummy ${ac_tool_prefix}strip; ac_word=$2 2825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2826printf %s "checking for $ac_word... " >&6; } 2827if test ${ac_cv_prog_STRIP+y} 2828then : 2829 printf %s "(cached) " >&6 2830else $as_nop 2831 if test -n "$STRIP"; then 2832 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2833else 2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835for as_dir in $PATH 2836do 2837 IFS=$as_save_IFS 2838 case $as_dir in #((( 2839 '') as_dir=./ ;; 2840 */) ;; 2841 *) as_dir=$as_dir/ ;; 2842 esac 2843 for ac_exec_ext in '' $ac_executable_extensions; do 2844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2845 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2847 break 2 2848 fi 2849done 2850 done 2851IFS=$as_save_IFS 2852 2853fi 2854fi 2855STRIP=$ac_cv_prog_STRIP 2856if test -n "$STRIP"; then 2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2858printf "%s\n" "$STRIP" >&6; } 2859else 2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2861printf "%s\n" "no" >&6; } 2862fi 2863 2864 2865fi 2866if test -z "$ac_cv_prog_STRIP"; then 2867 ac_ct_STRIP=$STRIP 2868 # Extract the first word of "strip", so it can be a program name with args. 2869set dummy strip; ac_word=$2 2870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2871printf %s "checking for $ac_word... " >&6; } 2872if test ${ac_cv_prog_ac_ct_STRIP+y} 2873then : 2874 printf %s "(cached) " >&6 2875else $as_nop 2876 if test -n "$ac_ct_STRIP"; then 2877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2878else 2879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2880for as_dir in $PATH 2881do 2882 IFS=$as_save_IFS 2883 case $as_dir in #((( 2884 '') as_dir=./ ;; 2885 */) ;; 2886 *) as_dir=$as_dir/ ;; 2887 esac 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2890 ac_cv_prog_ac_ct_STRIP="strip" 2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2901if test -n "$ac_ct_STRIP"; then 2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2903printf "%s\n" "$ac_ct_STRIP" >&6; } 2904else 2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906printf "%s\n" "no" >&6; } 2907fi 2908 2909 if test "x$ac_ct_STRIP" = x; then 2910 STRIP=":" 2911 else 2912 case $cross_compiling:$ac_tool_warned in 2913yes:) 2914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2915printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2916ac_tool_warned=yes ;; 2917esac 2918 STRIP=$ac_ct_STRIP 2919 fi 2920else 2921 STRIP="$ac_cv_prog_STRIP" 2922fi 2923 2924fi 2925INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2926 2927 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2929printf %s "checking for a race-free mkdir -p... " >&6; } 2930if test -z "$MKDIR_P"; then 2931 if test ${ac_cv_path_mkdir+y} 2932then : 2933 printf %s "(cached) " >&6 2934else $as_nop 2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2936for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2937do 2938 IFS=$as_save_IFS 2939 case $as_dir in #((( 2940 '') as_dir=./ ;; 2941 */) ;; 2942 *) as_dir=$as_dir/ ;; 2943 esac 2944 for ac_prog in mkdir gmkdir; do 2945 for ac_exec_ext in '' $ac_executable_extensions; do 2946 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2947 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2948 'mkdir ('*'coreutils) '* | \ 2949 'BusyBox '* | \ 2950 'mkdir (fileutils) '4.1*) 2951 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2952 break 3;; 2953 esac 2954 done 2955 done 2956 done 2957IFS=$as_save_IFS 2958 2959fi 2960 2961 test -d ./--version && rmdir ./--version 2962 if test ${ac_cv_path_mkdir+y}; then 2963 MKDIR_P="$ac_cv_path_mkdir -p" 2964 else 2965 # As a last resort, use the slow shell script. Don't cache a 2966 # value for MKDIR_P within a source directory, because that will 2967 # break other packages using the cache if that directory is 2968 # removed, or if the value is a relative name. 2969 MKDIR_P="$ac_install_sh -d" 2970 fi 2971fi 2972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2973printf "%s\n" "$MKDIR_P" >&6; } 2974 2975for ac_prog in gawk mawk nawk awk 2976do 2977 # Extract the first word of "$ac_prog", so it can be a program name with args. 2978set dummy $ac_prog; ac_word=$2 2979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2980printf %s "checking for $ac_word... " >&6; } 2981if test ${ac_cv_prog_AWK+y} 2982then : 2983 printf %s "(cached) " >&6 2984else $as_nop 2985 if test -n "$AWK"; then 2986 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2987else 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 case $as_dir in #((( 2993 '') as_dir=./ ;; 2994 */) ;; 2995 *) as_dir=$as_dir/ ;; 2996 esac 2997 for ac_exec_ext in '' $ac_executable_extensions; do 2998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2999 ac_cv_prog_AWK="$ac_prog" 3000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3001 break 2 3002 fi 3003done 3004 done 3005IFS=$as_save_IFS 3006 3007fi 3008fi 3009AWK=$ac_cv_prog_AWK 3010if test -n "$AWK"; then 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3012printf "%s\n" "$AWK" >&6; } 3013else 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015printf "%s\n" "no" >&6; } 3016fi 3017 3018 3019 test -n "$AWK" && break 3020done 3021 3022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3023printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3024set x ${MAKE-make} 3025ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3026if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3027then : 3028 printf %s "(cached) " >&6 3029else $as_nop 3030 cat >conftest.make <<\_ACEOF 3031SHELL = /bin/sh 3032all: 3033 @echo '@@@%%%=$(MAKE)=@@@%%%' 3034_ACEOF 3035# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3036case `${MAKE-make} -f conftest.make 2>/dev/null` in 3037 *@@@%%%=?*=@@@%%%*) 3038 eval ac_cv_prog_make_${ac_make}_set=yes;; 3039 *) 3040 eval ac_cv_prog_make_${ac_make}_set=no;; 3041esac 3042rm -f conftest.make 3043fi 3044if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3046printf "%s\n" "yes" >&6; } 3047 SET_MAKE= 3048else 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050printf "%s\n" "no" >&6; } 3051 SET_MAKE="MAKE=${MAKE-make}" 3052fi 3053 3054rm -rf .tst 2>/dev/null 3055mkdir .tst 2>/dev/null 3056if test -d .tst; then 3057 am__leading_dot=. 3058else 3059 am__leading_dot=_ 3060fi 3061rmdir .tst 2>/dev/null 3062 3063# Check whether --enable-silent-rules was given. 3064if test ${enable_silent_rules+y} 3065then : 3066 enableval=$enable_silent_rules; 3067fi 3068 3069case $enable_silent_rules in # ((( 3070 yes) AM_DEFAULT_VERBOSITY=0;; 3071 no) AM_DEFAULT_VERBOSITY=1;; 3072 *) AM_DEFAULT_VERBOSITY=1;; 3073esac 3074am_make=${MAKE-make} 3075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3076printf %s "checking whether $am_make supports nested variables... " >&6; } 3077if test ${am_cv_make_support_nested_variables+y} 3078then : 3079 printf %s "(cached) " >&6 3080else $as_nop 3081 if printf "%s\n" 'TRUE=$(BAR$(V)) 3082BAR0=false 3083BAR1=true 3084V=1 3085am__doit: 3086 @$(TRUE) 3087.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3088 am_cv_make_support_nested_variables=yes 3089else 3090 am_cv_make_support_nested_variables=no 3091fi 3092fi 3093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3094printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3095if test $am_cv_make_support_nested_variables = yes; then 3096 AM_V='$(V)' 3097 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3098else 3099 AM_V=$AM_DEFAULT_VERBOSITY 3100 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3101fi 3102AM_BACKSLASH='\' 3103 3104if test "`cd $srcdir && pwd`" != "`pwd`"; then 3105 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3106 # is not polluted with repeated "-I." 3107 am__isrc=' -I$(srcdir)' 3108 # test to see if srcdir already configured 3109 if test -f $srcdir/config.status; then 3110 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3111 fi 3112fi 3113 3114# test whether we have cygpath 3115if test -z "$CYGPATH_W"; then 3116 if (cygpath --version) >/dev/null 2>/dev/null; then 3117 CYGPATH_W='cygpath -w' 3118 else 3119 CYGPATH_W=echo 3120 fi 3121fi 3122 3123 3124# Define the identity of the package. 3125 PACKAGE='libxkbfile' 3126 VERSION='1.1.1' 3127 3128 3129printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3130 3131 3132printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3133 3134# Some tools Automake needs. 3135 3136ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3137 3138 3139AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3140 3141 3142AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3143 3144 3145AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3146 3147 3148MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3149 3150# For better backward compatibility. To be removed once Automake 1.9.x 3151# dies out for good. For more background, see: 3152# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3153# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3154mkdir_p='$(MKDIR_P)' 3155 3156# We need awk for the "check" target (and possibly the TAP driver). The 3157# system "awk" is bad on some platforms. 3158# Always define AMTAR for backward compatibility. Yes, it's still used 3159# in the wild :-( We should find a proper way to deprecate it ... 3160AMTAR='$${TAR-tar}' 3161 3162 3163# We'll loop over all known methods to create a tar archive until one works. 3164_am_tools='gnutar pax cpio none' 3165 3166am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3167 3168 3169 3170 3171 3172# Variables for tags utilities; see am/tags.am 3173if test -z "$CTAGS"; then 3174 CTAGS=ctags 3175fi 3176 3177if test -z "$ETAGS"; then 3178 ETAGS=etags 3179fi 3180 3181if test -z "$CSCOPE"; then 3182 CSCOPE=cscope 3183fi 3184 3185 3186 3187# POSIX will say in a future version that running "rm -f" with no argument 3188# is OK; and we want to be able to make that assumption in our Makefile 3189# recipes. So use an aggressive probe to check that the usage we want is 3190# actually supported "in the wild" to an acceptable degree. 3191# See automake bug#10828. 3192# To make any issue more visible, cause the running configure to be aborted 3193# by default if the 'rm' program in use doesn't match our expectations; the 3194# user can still override this though. 3195if rm -f && rm -fr && rm -rf; then : OK; else 3196 cat >&2 <<'END' 3197Oops! 3198 3199Your 'rm' program seems unable to run without file operands specified 3200on the command line, even when the '-f' option is present. This is contrary 3201to the behaviour of most rm programs out there, and not conforming with 3202the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3203 3204Please tell bug-automake@gnu.org about your system, including the value 3205of your $PATH and any error possibly output before this message. This 3206can help us improve future automake versions. 3207 3208END 3209 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3210 echo 'Configuration will proceed anyway, since you have set the' >&2 3211 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3212 echo >&2 3213 else 3214 cat >&2 <<'END' 3215Aborting the configuration process, to ensure you take notice of the issue. 3216 3217You can download and install GNU coreutils to get an 'rm' implementation 3218that behaves properly: <https://www.gnu.org/software/coreutils/>. 3219 3220If you want to complete the configuration process using your problematic 3221'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3222to "yes", and re-run configure. 3223 3224END 3225 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3226 fi 3227fi 3228 3229 3230# Initialize libtool 3231case `pwd` in 3232 *\ * | *\ *) 3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3234printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3235esac 3236 3237 3238 3239macro_version='2.4.7' 3240macro_revision='2.4.7' 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255ltmain=$ac_aux_dir/ltmain.sh 3256 3257 3258 3259 # Make sure we can run config.sub. 3260$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3261 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3262 3263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3264printf %s "checking build system type... " >&6; } 3265if test ${ac_cv_build+y} 3266then : 3267 printf %s "(cached) " >&6 3268else $as_nop 3269 ac_build_alias=$build_alias 3270test "x$ac_build_alias" = x && 3271 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3272test "x$ac_build_alias" = x && 3273 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3274ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3275 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3276 3277fi 3278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3279printf "%s\n" "$ac_cv_build" >&6; } 3280case $ac_cv_build in 3281*-*-*) ;; 3282*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3283esac 3284build=$ac_cv_build 3285ac_save_IFS=$IFS; IFS='-' 3286set x $ac_cv_build 3287shift 3288build_cpu=$1 3289build_vendor=$2 3290shift; shift 3291# Remember, the first character of IFS is used to create $*, 3292# except with old shells: 3293build_os=$* 3294IFS=$ac_save_IFS 3295case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3296 3297 3298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3299printf %s "checking host system type... " >&6; } 3300if test ${ac_cv_host+y} 3301then : 3302 printf %s "(cached) " >&6 3303else $as_nop 3304 if test "x$host_alias" = x; then 3305 ac_cv_host=$ac_cv_build 3306else 3307 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3308 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3309fi 3310 3311fi 3312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3313printf "%s\n" "$ac_cv_host" >&6; } 3314case $ac_cv_host in 3315*-*-*) ;; 3316*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3317esac 3318host=$ac_cv_host 3319ac_save_IFS=$IFS; IFS='-' 3320set x $ac_cv_host 3321shift 3322host_cpu=$1 3323host_vendor=$2 3324shift; shift 3325# Remember, the first character of IFS is used to create $*, 3326# except with old shells: 3327host_os=$* 3328IFS=$ac_save_IFS 3329case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3330 3331 3332# Backslashify metacharacters that are still active within 3333# double-quoted strings. 3334sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3335 3336# Same as above, but do not quote variable references. 3337double_quote_subst='s/\(["`\\]\)/\\\1/g' 3338 3339# Sed substitution to delay expansion of an escaped shell variable in a 3340# double_quote_subst'ed string. 3341delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3342 3343# Sed substitution to delay expansion of an escaped single quote. 3344delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3345 3346# Sed substitution to avoid accidental globbing in evaled expressions 3347no_glob_subst='s/\*/\\\*/g' 3348 3349ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3350ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3351ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3352 3353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3354printf %s "checking how to print strings... " >&6; } 3355# Test print first, because it will be a builtin if present. 3356if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3357 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3358 ECHO='print -r --' 3359elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3360 ECHO='printf %s\n' 3361else 3362 # Use this function as a fallback that always works. 3363 func_fallback_echo () 3364 { 3365 eval 'cat <<_LTECHO_EOF 3366$1 3367_LTECHO_EOF' 3368 } 3369 ECHO='func_fallback_echo' 3370fi 3371 3372# func_echo_all arg... 3373# Invoke $ECHO with all args, space-separated. 3374func_echo_all () 3375{ 3376 $ECHO "" 3377} 3378 3379case $ECHO in 3380 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3381printf "%s\n" "printf" >&6; } ;; 3382 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3383printf "%s\n" "print -r" >&6; } ;; 3384 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3385printf "%s\n" "cat" >&6; } ;; 3386esac 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410DEPDIR="${am__leading_dot}deps" 3411 3412ac_config_commands="$ac_config_commands depfiles" 3413 3414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3415printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3416cat > confinc.mk << 'END' 3417am__doit: 3418 @echo this is the am__doit target >confinc.out 3419.PHONY: am__doit 3420END 3421am__include="#" 3422am__quote= 3423# BSD make does it like this. 3424echo '.include "confinc.mk" # ignored' > confmf.BSD 3425# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3426echo 'include confinc.mk # ignored' > confmf.GNU 3427_am_result=no 3428for s in GNU BSD; do 3429 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3430 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3431 ac_status=$? 3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3433 (exit $ac_status); } 3434 case $?:`cat confinc.out 2>/dev/null` in #( 3435 '0:this is the am__doit target') : 3436 case $s in #( 3437 BSD) : 3438 am__include='.include' am__quote='"' ;; #( 3439 *) : 3440 am__include='include' am__quote='' ;; 3441esac ;; #( 3442 *) : 3443 ;; 3444esac 3445 if test "$am__include" != "#"; then 3446 _am_result="yes ($s style)" 3447 break 3448 fi 3449done 3450rm -f confinc.* confmf.* 3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3452printf "%s\n" "${_am_result}" >&6; } 3453 3454# Check whether --enable-dependency-tracking was given. 3455if test ${enable_dependency_tracking+y} 3456then : 3457 enableval=$enable_dependency_tracking; 3458fi 3459 3460if test "x$enable_dependency_tracking" != xno; then 3461 am_depcomp="$ac_aux_dir/depcomp" 3462 AMDEPBACKSLASH='\' 3463 am__nodep='_no' 3464fi 3465 if test "x$enable_dependency_tracking" != xno; then 3466 AMDEP_TRUE= 3467 AMDEP_FALSE='#' 3468else 3469 AMDEP_TRUE='#' 3470 AMDEP_FALSE= 3471fi 3472 3473 3474ac_ext=c 3475ac_cpp='$CPP $CPPFLAGS' 3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3478ac_compiler_gnu=$ac_cv_c_compiler_gnu 3479if test -n "$ac_tool_prefix"; then 3480 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3481set dummy ${ac_tool_prefix}gcc; ac_word=$2 3482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3483printf %s "checking for $ac_word... " >&6; } 3484if test ${ac_cv_prog_CC+y} 3485then : 3486 printf %s "(cached) " >&6 3487else $as_nop 3488 if test -n "$CC"; then 3489 ac_cv_prog_CC="$CC" # Let the user override the test. 3490else 3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3492for as_dir in $PATH 3493do 3494 IFS=$as_save_IFS 3495 case $as_dir in #((( 3496 '') as_dir=./ ;; 3497 */) ;; 3498 *) as_dir=$as_dir/ ;; 3499 esac 3500 for ac_exec_ext in '' $ac_executable_extensions; do 3501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3502 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3504 break 2 3505 fi 3506done 3507 done 3508IFS=$as_save_IFS 3509 3510fi 3511fi 3512CC=$ac_cv_prog_CC 3513if test -n "$CC"; then 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3515printf "%s\n" "$CC" >&6; } 3516else 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3518printf "%s\n" "no" >&6; } 3519fi 3520 3521 3522fi 3523if test -z "$ac_cv_prog_CC"; then 3524 ac_ct_CC=$CC 3525 # Extract the first word of "gcc", so it can be a program name with args. 3526set dummy gcc; ac_word=$2 3527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3528printf %s "checking for $ac_word... " >&6; } 3529if test ${ac_cv_prog_ac_ct_CC+y} 3530then : 3531 printf %s "(cached) " >&6 3532else $as_nop 3533 if test -n "$ac_ct_CC"; then 3534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3535else 3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537for as_dir in $PATH 3538do 3539 IFS=$as_save_IFS 3540 case $as_dir in #((( 3541 '') as_dir=./ ;; 3542 */) ;; 3543 *) as_dir=$as_dir/ ;; 3544 esac 3545 for ac_exec_ext in '' $ac_executable_extensions; do 3546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3547 ac_cv_prog_ac_ct_CC="gcc" 3548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3549 break 2 3550 fi 3551done 3552 done 3553IFS=$as_save_IFS 3554 3555fi 3556fi 3557ac_ct_CC=$ac_cv_prog_ac_ct_CC 3558if test -n "$ac_ct_CC"; then 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3560printf "%s\n" "$ac_ct_CC" >&6; } 3561else 3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3563printf "%s\n" "no" >&6; } 3564fi 3565 3566 if test "x$ac_ct_CC" = x; then 3567 CC="" 3568 else 3569 case $cross_compiling:$ac_tool_warned in 3570yes:) 3571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3572printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3573ac_tool_warned=yes ;; 3574esac 3575 CC=$ac_ct_CC 3576 fi 3577else 3578 CC="$ac_cv_prog_CC" 3579fi 3580 3581if test -z "$CC"; then 3582 if test -n "$ac_tool_prefix"; then 3583 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3584set dummy ${ac_tool_prefix}cc; ac_word=$2 3585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3586printf %s "checking for $ac_word... " >&6; } 3587if test ${ac_cv_prog_CC+y} 3588then : 3589 printf %s "(cached) " >&6 3590else $as_nop 3591 if test -n "$CC"; then 3592 ac_cv_prog_CC="$CC" # Let the user override the test. 3593else 3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595for as_dir in $PATH 3596do 3597 IFS=$as_save_IFS 3598 case $as_dir in #((( 3599 '') as_dir=./ ;; 3600 */) ;; 3601 *) as_dir=$as_dir/ ;; 3602 esac 3603 for ac_exec_ext in '' $ac_executable_extensions; do 3604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3605 ac_cv_prog_CC="${ac_tool_prefix}cc" 3606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3607 break 2 3608 fi 3609done 3610 done 3611IFS=$as_save_IFS 3612 3613fi 3614fi 3615CC=$ac_cv_prog_CC 3616if test -n "$CC"; then 3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3618printf "%s\n" "$CC" >&6; } 3619else 3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3621printf "%s\n" "no" >&6; } 3622fi 3623 3624 3625 fi 3626fi 3627if test -z "$CC"; then 3628 # Extract the first word of "cc", so it can be a program name with args. 3629set dummy cc; ac_word=$2 3630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3631printf %s "checking for $ac_word... " >&6; } 3632if test ${ac_cv_prog_CC+y} 3633then : 3634 printf %s "(cached) " >&6 3635else $as_nop 3636 if test -n "$CC"; then 3637 ac_cv_prog_CC="$CC" # Let the user override the test. 3638else 3639 ac_prog_rejected=no 3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3641for as_dir in $PATH 3642do 3643 IFS=$as_save_IFS 3644 case $as_dir in #((( 3645 '') as_dir=./ ;; 3646 */) ;; 3647 *) as_dir=$as_dir/ ;; 3648 esac 3649 for ac_exec_ext in '' $ac_executable_extensions; do 3650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3651 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3652 ac_prog_rejected=yes 3653 continue 3654 fi 3655 ac_cv_prog_CC="cc" 3656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3657 break 2 3658 fi 3659done 3660 done 3661IFS=$as_save_IFS 3662 3663if test $ac_prog_rejected = yes; then 3664 # We found a bogon in the path, so make sure we never use it. 3665 set dummy $ac_cv_prog_CC 3666 shift 3667 if test $# != 0; then 3668 # We chose a different compiler from the bogus one. 3669 # However, it has the same basename, so the bogon will be chosen 3670 # first if we set CC to just the basename; use the full file name. 3671 shift 3672 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3673 fi 3674fi 3675fi 3676fi 3677CC=$ac_cv_prog_CC 3678if test -n "$CC"; then 3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3680printf "%s\n" "$CC" >&6; } 3681else 3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683printf "%s\n" "no" >&6; } 3684fi 3685 3686 3687fi 3688if test -z "$CC"; then 3689 if test -n "$ac_tool_prefix"; then 3690 for ac_prog in cl.exe 3691 do 3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3693set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3695printf %s "checking for $ac_word... " >&6; } 3696if test ${ac_cv_prog_CC+y} 3697then : 3698 printf %s "(cached) " >&6 3699else $as_nop 3700 if test -n "$CC"; then 3701 ac_cv_prog_CC="$CC" # Let the user override the test. 3702else 3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3704for as_dir in $PATH 3705do 3706 IFS=$as_save_IFS 3707 case $as_dir in #((( 3708 '') as_dir=./ ;; 3709 */) ;; 3710 *) as_dir=$as_dir/ ;; 3711 esac 3712 for ac_exec_ext in '' $ac_executable_extensions; do 3713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3716 break 2 3717 fi 3718done 3719 done 3720IFS=$as_save_IFS 3721 3722fi 3723fi 3724CC=$ac_cv_prog_CC 3725if test -n "$CC"; then 3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3727printf "%s\n" "$CC" >&6; } 3728else 3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3730printf "%s\n" "no" >&6; } 3731fi 3732 3733 3734 test -n "$CC" && break 3735 done 3736fi 3737if test -z "$CC"; then 3738 ac_ct_CC=$CC 3739 for ac_prog in cl.exe 3740do 3741 # Extract the first word of "$ac_prog", so it can be a program name with args. 3742set dummy $ac_prog; ac_word=$2 3743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3744printf %s "checking for $ac_word... " >&6; } 3745if test ${ac_cv_prog_ac_ct_CC+y} 3746then : 3747 printf %s "(cached) " >&6 3748else $as_nop 3749 if test -n "$ac_ct_CC"; then 3750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3751else 3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3753for as_dir in $PATH 3754do 3755 IFS=$as_save_IFS 3756 case $as_dir in #((( 3757 '') as_dir=./ ;; 3758 */) ;; 3759 *) as_dir=$as_dir/ ;; 3760 esac 3761 for ac_exec_ext in '' $ac_executable_extensions; do 3762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3763 ac_cv_prog_ac_ct_CC="$ac_prog" 3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3765 break 2 3766 fi 3767done 3768 done 3769IFS=$as_save_IFS 3770 3771fi 3772fi 3773ac_ct_CC=$ac_cv_prog_ac_ct_CC 3774if test -n "$ac_ct_CC"; then 3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3776printf "%s\n" "$ac_ct_CC" >&6; } 3777else 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3779printf "%s\n" "no" >&6; } 3780fi 3781 3782 3783 test -n "$ac_ct_CC" && break 3784done 3785 3786 if test "x$ac_ct_CC" = x; then 3787 CC="" 3788 else 3789 case $cross_compiling:$ac_tool_warned in 3790yes:) 3791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3792printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3793ac_tool_warned=yes ;; 3794esac 3795 CC=$ac_ct_CC 3796 fi 3797fi 3798 3799fi 3800if test -z "$CC"; then 3801 if test -n "$ac_tool_prefix"; then 3802 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3803set dummy ${ac_tool_prefix}clang; ac_word=$2 3804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3805printf %s "checking for $ac_word... " >&6; } 3806if test ${ac_cv_prog_CC+y} 3807then : 3808 printf %s "(cached) " >&6 3809else $as_nop 3810 if test -n "$CC"; then 3811 ac_cv_prog_CC="$CC" # Let the user override the test. 3812else 3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814for as_dir in $PATH 3815do 3816 IFS=$as_save_IFS 3817 case $as_dir in #((( 3818 '') as_dir=./ ;; 3819 */) ;; 3820 *) as_dir=$as_dir/ ;; 3821 esac 3822 for ac_exec_ext in '' $ac_executable_extensions; do 3823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3824 ac_cv_prog_CC="${ac_tool_prefix}clang" 3825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3826 break 2 3827 fi 3828done 3829 done 3830IFS=$as_save_IFS 3831 3832fi 3833fi 3834CC=$ac_cv_prog_CC 3835if test -n "$CC"; then 3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3837printf "%s\n" "$CC" >&6; } 3838else 3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3840printf "%s\n" "no" >&6; } 3841fi 3842 3843 3844fi 3845if test -z "$ac_cv_prog_CC"; then 3846 ac_ct_CC=$CC 3847 # Extract the first word of "clang", so it can be a program name with args. 3848set dummy clang; ac_word=$2 3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3850printf %s "checking for $ac_word... " >&6; } 3851if test ${ac_cv_prog_ac_ct_CC+y} 3852then : 3853 printf %s "(cached) " >&6 3854else $as_nop 3855 if test -n "$ac_ct_CC"; then 3856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3857else 3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3859for as_dir in $PATH 3860do 3861 IFS=$as_save_IFS 3862 case $as_dir in #((( 3863 '') as_dir=./ ;; 3864 */) ;; 3865 *) as_dir=$as_dir/ ;; 3866 esac 3867 for ac_exec_ext in '' $ac_executable_extensions; do 3868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3869 ac_cv_prog_ac_ct_CC="clang" 3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3871 break 2 3872 fi 3873done 3874 done 3875IFS=$as_save_IFS 3876 3877fi 3878fi 3879ac_ct_CC=$ac_cv_prog_ac_ct_CC 3880if test -n "$ac_ct_CC"; then 3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3882printf "%s\n" "$ac_ct_CC" >&6; } 3883else 3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3885printf "%s\n" "no" >&6; } 3886fi 3887 3888 if test "x$ac_ct_CC" = x; then 3889 CC="" 3890 else 3891 case $cross_compiling:$ac_tool_warned in 3892yes:) 3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3894printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3895ac_tool_warned=yes ;; 3896esac 3897 CC=$ac_ct_CC 3898 fi 3899else 3900 CC="$ac_cv_prog_CC" 3901fi 3902 3903fi 3904 3905 3906test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3907printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3908as_fn_error $? "no acceptable C compiler found in \$PATH 3909See \`config.log' for more details" "$LINENO" 5; } 3910 3911# Provide some information about the compiler. 3912printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3913set X $ac_compile 3914ac_compiler=$2 3915for ac_option in --version -v -V -qversion -version; do 3916 { { ac_try="$ac_compiler $ac_option >&5" 3917case "(($ac_try" in 3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3919 *) ac_try_echo=$ac_try;; 3920esac 3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3922printf "%s\n" "$ac_try_echo"; } >&5 3923 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3924 ac_status=$? 3925 if test -s conftest.err; then 3926 sed '10a\ 3927... rest of stderr output deleted ... 3928 10q' conftest.err >conftest.er1 3929 cat conftest.er1 >&5 3930 fi 3931 rm -f conftest.er1 conftest.err 3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3933 test $ac_status = 0; } 3934done 3935 3936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938 3939int 3940main (void) 3941{ 3942 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947ac_clean_files_save=$ac_clean_files 3948ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3949# Try to create an executable without -o first, disregard a.out. 3950# It will help us diagnose broken compilers, and finding out an intuition 3951# of exeext. 3952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3953printf %s "checking whether the C compiler works... " >&6; } 3954ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3955 3956# The possible output files: 3957ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3958 3959ac_rmfiles= 3960for ac_file in $ac_files 3961do 3962 case $ac_file in 3963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3964 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3965 esac 3966done 3967rm -f $ac_rmfiles 3968 3969if { { ac_try="$ac_link_default" 3970case "(($ac_try" in 3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3972 *) ac_try_echo=$ac_try;; 3973esac 3974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3975printf "%s\n" "$ac_try_echo"; } >&5 3976 (eval "$ac_link_default") 2>&5 3977 ac_status=$? 3978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3979 test $ac_status = 0; } 3980then : 3981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3982# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3983# in a Makefile. We should not override ac_cv_exeext if it was cached, 3984# so that the user can short-circuit this test for compilers unknown to 3985# Autoconf. 3986for ac_file in $ac_files '' 3987do 3988 test -f "$ac_file" || continue 3989 case $ac_file in 3990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3991 ;; 3992 [ab].out ) 3993 # We found the default executable, but exeext='' is most 3994 # certainly right. 3995 break;; 3996 *.* ) 3997 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3998 then :; else 3999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4000 fi 4001 # We set ac_cv_exeext here because the later test for it is not 4002 # safe: cross compilers may not add the suffix if given an `-o' 4003 # argument, so we may need to know it at that point already. 4004 # Even if this section looks crufty: it has the advantage of 4005 # actually working. 4006 break;; 4007 * ) 4008 break;; 4009 esac 4010done 4011test "$ac_cv_exeext" = no && ac_cv_exeext= 4012 4013else $as_nop 4014 ac_file='' 4015fi 4016if test -z "$ac_file" 4017then : 4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4019printf "%s\n" "no" >&6; } 4020printf "%s\n" "$as_me: failed program was:" >&5 4021sed 's/^/| /' conftest.$ac_ext >&5 4022 4023{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4024printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4025as_fn_error 77 "C compiler cannot create executables 4026See \`config.log' for more details" "$LINENO" 5; } 4027else $as_nop 4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4029printf "%s\n" "yes" >&6; } 4030fi 4031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4032printf %s "checking for C compiler default output file name... " >&6; } 4033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4034printf "%s\n" "$ac_file" >&6; } 4035ac_exeext=$ac_cv_exeext 4036 4037rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4038ac_clean_files=$ac_clean_files_save 4039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4040printf %s "checking for suffix of executables... " >&6; } 4041if { { ac_try="$ac_link" 4042case "(($ac_try" in 4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4044 *) ac_try_echo=$ac_try;; 4045esac 4046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4047printf "%s\n" "$ac_try_echo"; } >&5 4048 (eval "$ac_link") 2>&5 4049 ac_status=$? 4050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4051 test $ac_status = 0; } 4052then : 4053 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4054# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4055# work properly (i.e., refer to `conftest.exe'), while it won't with 4056# `rm'. 4057for ac_file in conftest.exe conftest conftest.*; do 4058 test -f "$ac_file" || continue 4059 case $ac_file in 4060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4061 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4062 break;; 4063 * ) break;; 4064 esac 4065done 4066else $as_nop 4067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4068printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4069as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4070See \`config.log' for more details" "$LINENO" 5; } 4071fi 4072rm -f conftest conftest$ac_cv_exeext 4073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4074printf "%s\n" "$ac_cv_exeext" >&6; } 4075 4076rm -f conftest.$ac_ext 4077EXEEXT=$ac_cv_exeext 4078ac_exeext=$EXEEXT 4079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4080/* end confdefs.h. */ 4081#include <stdio.h> 4082int 4083main (void) 4084{ 4085FILE *f = fopen ("conftest.out", "w"); 4086 return ferror (f) || fclose (f) != 0; 4087 4088 ; 4089 return 0; 4090} 4091_ACEOF 4092ac_clean_files="$ac_clean_files conftest.out" 4093# Check that the compiler produces executables we can run. If not, either 4094# the compiler is broken, or we cross compile. 4095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4096printf %s "checking whether we are cross compiling... " >&6; } 4097if test "$cross_compiling" != yes; then 4098 { { ac_try="$ac_link" 4099case "(($ac_try" in 4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4101 *) ac_try_echo=$ac_try;; 4102esac 4103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4104printf "%s\n" "$ac_try_echo"; } >&5 4105 (eval "$ac_link") 2>&5 4106 ac_status=$? 4107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4108 test $ac_status = 0; } 4109 if { ac_try='./conftest$ac_cv_exeext' 4110 { { case "(($ac_try" in 4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4112 *) ac_try_echo=$ac_try;; 4113esac 4114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4115printf "%s\n" "$ac_try_echo"; } >&5 4116 (eval "$ac_try") 2>&5 4117 ac_status=$? 4118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4119 test $ac_status = 0; }; }; then 4120 cross_compiling=no 4121 else 4122 if test "$cross_compiling" = maybe; then 4123 cross_compiling=yes 4124 else 4125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4126printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4127as_fn_error 77 "cannot run C compiled programs. 4128If you meant to cross compile, use \`--host'. 4129See \`config.log' for more details" "$LINENO" 5; } 4130 fi 4131 fi 4132fi 4133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4134printf "%s\n" "$cross_compiling" >&6; } 4135 4136rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4137ac_clean_files=$ac_clean_files_save 4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4139printf %s "checking for suffix of object files... " >&6; } 4140if test ${ac_cv_objext+y} 4141then : 4142 printf %s "(cached) " >&6 4143else $as_nop 4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146 4147int 4148main (void) 4149{ 4150 4151 ; 4152 return 0; 4153} 4154_ACEOF 4155rm -f conftest.o conftest.obj 4156if { { ac_try="$ac_compile" 4157case "(($ac_try" in 4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4159 *) ac_try_echo=$ac_try;; 4160esac 4161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4162printf "%s\n" "$ac_try_echo"; } >&5 4163 (eval "$ac_compile") 2>&5 4164 ac_status=$? 4165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4166 test $ac_status = 0; } 4167then : 4168 for ac_file in conftest.o conftest.obj conftest.*; do 4169 test -f "$ac_file" || continue; 4170 case $ac_file in 4171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4173 break;; 4174 esac 4175done 4176else $as_nop 4177 printf "%s\n" "$as_me: failed program was:" >&5 4178sed 's/^/| /' conftest.$ac_ext >&5 4179 4180{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4181printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4182as_fn_error $? "cannot compute suffix of object files: cannot compile 4183See \`config.log' for more details" "$LINENO" 5; } 4184fi 4185rm -f conftest.$ac_cv_objext conftest.$ac_ext 4186fi 4187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4188printf "%s\n" "$ac_cv_objext" >&6; } 4189OBJEXT=$ac_cv_objext 4190ac_objext=$OBJEXT 4191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4192printf %s "checking whether the compiler supports GNU C... " >&6; } 4193if test ${ac_cv_c_compiler_gnu+y} 4194then : 4195 printf %s "(cached) " >&6 4196else $as_nop 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198/* end confdefs.h. */ 4199 4200int 4201main (void) 4202{ 4203#ifndef __GNUC__ 4204 choke me 4205#endif 4206 4207 ; 4208 return 0; 4209} 4210_ACEOF 4211if ac_fn_c_try_compile "$LINENO" 4212then : 4213 ac_compiler_gnu=yes 4214else $as_nop 4215 ac_compiler_gnu=no 4216fi 4217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4218ac_cv_c_compiler_gnu=$ac_compiler_gnu 4219 4220fi 4221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4222printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4223ac_compiler_gnu=$ac_cv_c_compiler_gnu 4224 4225if test $ac_compiler_gnu = yes; then 4226 GCC=yes 4227else 4228 GCC= 4229fi 4230ac_test_CFLAGS=${CFLAGS+y} 4231ac_save_CFLAGS=$CFLAGS 4232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4233printf %s "checking whether $CC accepts -g... " >&6; } 4234if test ${ac_cv_prog_cc_g+y} 4235then : 4236 printf %s "(cached) " >&6 4237else $as_nop 4238 ac_save_c_werror_flag=$ac_c_werror_flag 4239 ac_c_werror_flag=yes 4240 ac_cv_prog_cc_g=no 4241 CFLAGS="-g" 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244 4245int 4246main (void) 4247{ 4248 4249 ; 4250 return 0; 4251} 4252_ACEOF 4253if ac_fn_c_try_compile "$LINENO" 4254then : 4255 ac_cv_prog_cc_g=yes 4256else $as_nop 4257 CFLAGS="" 4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4259/* end confdefs.h. */ 4260 4261int 4262main (void) 4263{ 4264 4265 ; 4266 return 0; 4267} 4268_ACEOF 4269if ac_fn_c_try_compile "$LINENO" 4270then : 4271 4272else $as_nop 4273 ac_c_werror_flag=$ac_save_c_werror_flag 4274 CFLAGS="-g" 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277 4278int 4279main (void) 4280{ 4281 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286if ac_fn_c_try_compile "$LINENO" 4287then : 4288 ac_cv_prog_cc_g=yes 4289fi 4290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4291fi 4292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4293fi 4294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4295 ac_c_werror_flag=$ac_save_c_werror_flag 4296fi 4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4298printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4299if test $ac_test_CFLAGS; then 4300 CFLAGS=$ac_save_CFLAGS 4301elif test $ac_cv_prog_cc_g = yes; then 4302 if test "$GCC" = yes; then 4303 CFLAGS="-g -O2" 4304 else 4305 CFLAGS="-g" 4306 fi 4307else 4308 if test "$GCC" = yes; then 4309 CFLAGS="-O2" 4310 else 4311 CFLAGS= 4312 fi 4313fi 4314ac_prog_cc_stdc=no 4315if test x$ac_prog_cc_stdc = xno 4316then : 4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4318printf %s "checking for $CC option to enable C11 features... " >&6; } 4319if test ${ac_cv_prog_cc_c11+y} 4320then : 4321 printf %s "(cached) " >&6 4322else $as_nop 4323 ac_cv_prog_cc_c11=no 4324ac_save_CC=$CC 4325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327$ac_c_conftest_c11_program 4328_ACEOF 4329for ac_arg in '' -std=gnu11 4330do 4331 CC="$ac_save_CC $ac_arg" 4332 if ac_fn_c_try_compile "$LINENO" 4333then : 4334 ac_cv_prog_cc_c11=$ac_arg 4335fi 4336rm -f core conftest.err conftest.$ac_objext conftest.beam 4337 test "x$ac_cv_prog_cc_c11" != "xno" && break 4338done 4339rm -f conftest.$ac_ext 4340CC=$ac_save_CC 4341fi 4342 4343if test "x$ac_cv_prog_cc_c11" = xno 4344then : 4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4346printf "%s\n" "unsupported" >&6; } 4347else $as_nop 4348 if test "x$ac_cv_prog_cc_c11" = x 4349then : 4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4351printf "%s\n" "none needed" >&6; } 4352else $as_nop 4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4354printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4355 CC="$CC $ac_cv_prog_cc_c11" 4356fi 4357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4358 ac_prog_cc_stdc=c11 4359fi 4360fi 4361if test x$ac_prog_cc_stdc = xno 4362then : 4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4364printf %s "checking for $CC option to enable C99 features... " >&6; } 4365if test ${ac_cv_prog_cc_c99+y} 4366then : 4367 printf %s "(cached) " >&6 4368else $as_nop 4369 ac_cv_prog_cc_c99=no 4370ac_save_CC=$CC 4371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4372/* end confdefs.h. */ 4373$ac_c_conftest_c99_program 4374_ACEOF 4375for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4376do 4377 CC="$ac_save_CC $ac_arg" 4378 if ac_fn_c_try_compile "$LINENO" 4379then : 4380 ac_cv_prog_cc_c99=$ac_arg 4381fi 4382rm -f core conftest.err conftest.$ac_objext conftest.beam 4383 test "x$ac_cv_prog_cc_c99" != "xno" && break 4384done 4385rm -f conftest.$ac_ext 4386CC=$ac_save_CC 4387fi 4388 4389if test "x$ac_cv_prog_cc_c99" = xno 4390then : 4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4392printf "%s\n" "unsupported" >&6; } 4393else $as_nop 4394 if test "x$ac_cv_prog_cc_c99" = x 4395then : 4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4397printf "%s\n" "none needed" >&6; } 4398else $as_nop 4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4400printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4401 CC="$CC $ac_cv_prog_cc_c99" 4402fi 4403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4404 ac_prog_cc_stdc=c99 4405fi 4406fi 4407if test x$ac_prog_cc_stdc = xno 4408then : 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4410printf %s "checking for $CC option to enable C89 features... " >&6; } 4411if test ${ac_cv_prog_cc_c89+y} 4412then : 4413 printf %s "(cached) " >&6 4414else $as_nop 4415 ac_cv_prog_cc_c89=no 4416ac_save_CC=$CC 4417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4418/* end confdefs.h. */ 4419$ac_c_conftest_c89_program 4420_ACEOF 4421for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4422do 4423 CC="$ac_save_CC $ac_arg" 4424 if ac_fn_c_try_compile "$LINENO" 4425then : 4426 ac_cv_prog_cc_c89=$ac_arg 4427fi 4428rm -f core conftest.err conftest.$ac_objext conftest.beam 4429 test "x$ac_cv_prog_cc_c89" != "xno" && break 4430done 4431rm -f conftest.$ac_ext 4432CC=$ac_save_CC 4433fi 4434 4435if test "x$ac_cv_prog_cc_c89" = xno 4436then : 4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4438printf "%s\n" "unsupported" >&6; } 4439else $as_nop 4440 if test "x$ac_cv_prog_cc_c89" = x 4441then : 4442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4443printf "%s\n" "none needed" >&6; } 4444else $as_nop 4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4446printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4447 CC="$CC $ac_cv_prog_cc_c89" 4448fi 4449 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4450 ac_prog_cc_stdc=c89 4451fi 4452fi 4453 4454ac_ext=c 4455ac_cpp='$CPP $CPPFLAGS' 4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4458ac_compiler_gnu=$ac_cv_c_compiler_gnu 4459 4460 4461 ac_ext=c 4462ac_cpp='$CPP $CPPFLAGS' 4463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4465ac_compiler_gnu=$ac_cv_c_compiler_gnu 4466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4467printf %s "checking whether $CC understands -c and -o together... " >&6; } 4468if test ${am_cv_prog_cc_c_o+y} 4469then : 4470 printf %s "(cached) " >&6 4471else $as_nop 4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4473/* end confdefs.h. */ 4474 4475int 4476main (void) 4477{ 4478 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483 # Make sure it works both with $CC and with simple cc. 4484 # Following AC_PROG_CC_C_O, we do the test twice because some 4485 # compilers refuse to overwrite an existing .o file with -o, 4486 # though they will create one. 4487 am_cv_prog_cc_c_o=yes 4488 for am_i in 1 2; do 4489 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4490 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4491 ac_status=$? 4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4493 (exit $ac_status); } \ 4494 && test -f conftest2.$ac_objext; then 4495 : OK 4496 else 4497 am_cv_prog_cc_c_o=no 4498 break 4499 fi 4500 done 4501 rm -f core conftest* 4502 unset am_i 4503fi 4504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4505printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4506if test "$am_cv_prog_cc_c_o" != yes; then 4507 # Losing compiler, so override with the script. 4508 # FIXME: It is wrong to rewrite CC. 4509 # But if we don't then we get into trouble of one sort or another. 4510 # A longer-term fix would be to have automake use am__CC in this case, 4511 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4512 CC="$am_aux_dir/compile $CC" 4513fi 4514ac_ext=c 4515ac_cpp='$CPP $CPPFLAGS' 4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4518ac_compiler_gnu=$ac_cv_c_compiler_gnu 4519 4520 4521depcc="$CC" am_compiler_list= 4522 4523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4524printf %s "checking dependency style of $depcc... " >&6; } 4525if test ${am_cv_CC_dependencies_compiler_type+y} 4526then : 4527 printf %s "(cached) " >&6 4528else $as_nop 4529 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4530 # We make a subdir and do the tests there. Otherwise we can end up 4531 # making bogus files that we don't know about and never remove. For 4532 # instance it was reported that on HP-UX the gcc test will end up 4533 # making a dummy file named 'D' -- because '-MD' means "put the output 4534 # in D". 4535 rm -rf conftest.dir 4536 mkdir conftest.dir 4537 # Copy depcomp to subdir because otherwise we won't find it if we're 4538 # using a relative directory. 4539 cp "$am_depcomp" conftest.dir 4540 cd conftest.dir 4541 # We will build objects and dependencies in a subdirectory because 4542 # it helps to detect inapplicable dependency modes. For instance 4543 # both Tru64's cc and ICC support -MD to output dependencies as a 4544 # side effect of compilation, but ICC will put the dependencies in 4545 # the current directory while Tru64 will put them in the object 4546 # directory. 4547 mkdir sub 4548 4549 am_cv_CC_dependencies_compiler_type=none 4550 if test "$am_compiler_list" = ""; then 4551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4552 fi 4553 am__universal=false 4554 case " $depcc " in #( 4555 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4556 esac 4557 4558 for depmode in $am_compiler_list; do 4559 # Setup a source with many dependencies, because some compilers 4560 # like to wrap large dependency lists on column 80 (with \), and 4561 # we should not choose a depcomp mode which is confused by this. 4562 # 4563 # We need to recreate these files for each test, as the compiler may 4564 # overwrite some of them when testing with obscure command lines. 4565 # This happens at least with the AIX C compiler. 4566 : > sub/conftest.c 4567 for i in 1 2 3 4 5 6; do 4568 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4569 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4570 # Solaris 10 /bin/sh. 4571 echo '/* dummy */' > sub/conftst$i.h 4572 done 4573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4574 4575 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4576 # mode. It turns out that the SunPro C++ compiler does not properly 4577 # handle '-M -o', and we need to detect this. Also, some Intel 4578 # versions had trouble with output in subdirs. 4579 am__obj=sub/conftest.${OBJEXT-o} 4580 am__minus_obj="-o $am__obj" 4581 case $depmode in 4582 gcc) 4583 # This depmode causes a compiler race in universal mode. 4584 test "$am__universal" = false || continue 4585 ;; 4586 nosideeffect) 4587 # After this tag, mechanisms are not by side-effect, so they'll 4588 # only be used when explicitly requested. 4589 if test "x$enable_dependency_tracking" = xyes; then 4590 continue 4591 else 4592 break 4593 fi 4594 ;; 4595 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4596 # This compiler won't grok '-c -o', but also, the minuso test has 4597 # not run yet. These depmodes are late enough in the game, and 4598 # so weak that their functioning should not be impacted. 4599 am__obj=conftest.${OBJEXT-o} 4600 am__minus_obj= 4601 ;; 4602 none) break ;; 4603 esac 4604 if depmode=$depmode \ 4605 source=sub/conftest.c object=$am__obj \ 4606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4608 >/dev/null 2>conftest.err && 4609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4613 # icc doesn't choke on unknown options, it will just issue warnings 4614 # or remarks (even with -Werror). So we grep stderr for any message 4615 # that says an option was ignored or not supported. 4616 # When given -MP, icc 7.0 and 7.1 complain thusly: 4617 # icc: Command line warning: ignoring option '-M'; no argument required 4618 # The diagnosis changed in icc 8.0: 4619 # icc: Command line remark: option '-MP' not supported 4620 if (grep 'ignoring option' conftest.err || 4621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4622 am_cv_CC_dependencies_compiler_type=$depmode 4623 break 4624 fi 4625 fi 4626 done 4627 4628 cd .. 4629 rm -rf conftest.dir 4630else 4631 am_cv_CC_dependencies_compiler_type=none 4632fi 4633 4634fi 4635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4636printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4637CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4638 4639 if 4640 test "x$enable_dependency_tracking" != xno \ 4641 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4642 am__fastdepCC_TRUE= 4643 am__fastdepCC_FALSE='#' 4644else 4645 am__fastdepCC_TRUE='#' 4646 am__fastdepCC_FALSE= 4647fi 4648 4649 4650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4651printf %s "checking for a sed that does not truncate output... " >&6; } 4652if test ${ac_cv_path_SED+y} 4653then : 4654 printf %s "(cached) " >&6 4655else $as_nop 4656 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4657 for ac_i in 1 2 3 4 5 6 7; do 4658 ac_script="$ac_script$as_nl$ac_script" 4659 done 4660 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4661 { ac_script=; unset ac_script;} 4662 if test -z "$SED"; then 4663 ac_path_SED_found=false 4664 # Loop through the user's path and test for each of PROGNAME-LIST 4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4666for as_dir in $PATH 4667do 4668 IFS=$as_save_IFS 4669 case $as_dir in #((( 4670 '') as_dir=./ ;; 4671 */) ;; 4672 *) as_dir=$as_dir/ ;; 4673 esac 4674 for ac_prog in sed gsed 4675 do 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4678 as_fn_executable_p "$ac_path_SED" || continue 4679# Check for GNU ac_path_SED and select it if it is found. 4680 # Check for GNU $ac_path_SED 4681case `"$ac_path_SED" --version 2>&1` in 4682*GNU*) 4683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4684*) 4685 ac_count=0 4686 printf %s 0123456789 >"conftest.in" 4687 while : 4688 do 4689 cat "conftest.in" "conftest.in" >"conftest.tmp" 4690 mv "conftest.tmp" "conftest.in" 4691 cp "conftest.in" "conftest.nl" 4692 printf "%s\n" '' >> "conftest.nl" 4693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4695 as_fn_arith $ac_count + 1 && ac_count=$as_val 4696 if test $ac_count -gt ${ac_path_SED_max-0}; then 4697 # Best one so far, save it but keep looking for a better one 4698 ac_cv_path_SED="$ac_path_SED" 4699 ac_path_SED_max=$ac_count 4700 fi 4701 # 10*(2^10) chars as input seems more than enough 4702 test $ac_count -gt 10 && break 4703 done 4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4705esac 4706 4707 $ac_path_SED_found && break 3 4708 done 4709 done 4710 done 4711IFS=$as_save_IFS 4712 if test -z "$ac_cv_path_SED"; then 4713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4714 fi 4715else 4716 ac_cv_path_SED=$SED 4717fi 4718 4719fi 4720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4721printf "%s\n" "$ac_cv_path_SED" >&6; } 4722 SED="$ac_cv_path_SED" 4723 rm -f conftest.sed 4724 4725test -z "$SED" && SED=sed 4726Xsed="$SED -e 1s/^X//" 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4739printf %s "checking for grep that handles long lines and -e... " >&6; } 4740if test ${ac_cv_path_GREP+y} 4741then : 4742 printf %s "(cached) " >&6 4743else $as_nop 4744 if test -z "$GREP"; then 4745 ac_path_GREP_found=false 4746 # Loop through the user's path and test for each of PROGNAME-LIST 4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4749do 4750 IFS=$as_save_IFS 4751 case $as_dir in #((( 4752 '') as_dir=./ ;; 4753 */) ;; 4754 *) as_dir=$as_dir/ ;; 4755 esac 4756 for ac_prog in grep ggrep 4757 do 4758 for ac_exec_ext in '' $ac_executable_extensions; do 4759 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4760 as_fn_executable_p "$ac_path_GREP" || continue 4761# Check for GNU ac_path_GREP and select it if it is found. 4762 # Check for GNU $ac_path_GREP 4763case `"$ac_path_GREP" --version 2>&1` in 4764*GNU*) 4765 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4766*) 4767 ac_count=0 4768 printf %s 0123456789 >"conftest.in" 4769 while : 4770 do 4771 cat "conftest.in" "conftest.in" >"conftest.tmp" 4772 mv "conftest.tmp" "conftest.in" 4773 cp "conftest.in" "conftest.nl" 4774 printf "%s\n" 'GREP' >> "conftest.nl" 4775 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4777 as_fn_arith $ac_count + 1 && ac_count=$as_val 4778 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4779 # Best one so far, save it but keep looking for a better one 4780 ac_cv_path_GREP="$ac_path_GREP" 4781 ac_path_GREP_max=$ac_count 4782 fi 4783 # 10*(2^10) chars as input seems more than enough 4784 test $ac_count -gt 10 && break 4785 done 4786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4787esac 4788 4789 $ac_path_GREP_found && break 3 4790 done 4791 done 4792 done 4793IFS=$as_save_IFS 4794 if test -z "$ac_cv_path_GREP"; then 4795 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4796 fi 4797else 4798 ac_cv_path_GREP=$GREP 4799fi 4800 4801fi 4802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4803printf "%s\n" "$ac_cv_path_GREP" >&6; } 4804 GREP="$ac_cv_path_GREP" 4805 4806 4807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4808printf %s "checking for egrep... " >&6; } 4809if test ${ac_cv_path_EGREP+y} 4810then : 4811 printf %s "(cached) " >&6 4812else $as_nop 4813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4814 then ac_cv_path_EGREP="$GREP -E" 4815 else 4816 if test -z "$EGREP"; then 4817 ac_path_EGREP_found=false 4818 # Loop through the user's path and test for each of PROGNAME-LIST 4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4821do 4822 IFS=$as_save_IFS 4823 case $as_dir in #((( 4824 '') as_dir=./ ;; 4825 */) ;; 4826 *) as_dir=$as_dir/ ;; 4827 esac 4828 for ac_prog in egrep 4829 do 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4832 as_fn_executable_p "$ac_path_EGREP" || continue 4833# Check for GNU ac_path_EGREP and select it if it is found. 4834 # Check for GNU $ac_path_EGREP 4835case `"$ac_path_EGREP" --version 2>&1` in 4836*GNU*) 4837 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4838*) 4839 ac_count=0 4840 printf %s 0123456789 >"conftest.in" 4841 while : 4842 do 4843 cat "conftest.in" "conftest.in" >"conftest.tmp" 4844 mv "conftest.tmp" "conftest.in" 4845 cp "conftest.in" "conftest.nl" 4846 printf "%s\n" 'EGREP' >> "conftest.nl" 4847 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4849 as_fn_arith $ac_count + 1 && ac_count=$as_val 4850 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4851 # Best one so far, save it but keep looking for a better one 4852 ac_cv_path_EGREP="$ac_path_EGREP" 4853 ac_path_EGREP_max=$ac_count 4854 fi 4855 # 10*(2^10) chars as input seems more than enough 4856 test $ac_count -gt 10 && break 4857 done 4858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4859esac 4860 4861 $ac_path_EGREP_found && break 3 4862 done 4863 done 4864 done 4865IFS=$as_save_IFS 4866 if test -z "$ac_cv_path_EGREP"; then 4867 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4868 fi 4869else 4870 ac_cv_path_EGREP=$EGREP 4871fi 4872 4873 fi 4874fi 4875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4876printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4877 EGREP="$ac_cv_path_EGREP" 4878 4879 4880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4881printf %s "checking for fgrep... " >&6; } 4882if test ${ac_cv_path_FGREP+y} 4883then : 4884 printf %s "(cached) " >&6 4885else $as_nop 4886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4887 then ac_cv_path_FGREP="$GREP -F" 4888 else 4889 if test -z "$FGREP"; then 4890 ac_path_FGREP_found=false 4891 # Loop through the user's path and test for each of PROGNAME-LIST 4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4894do 4895 IFS=$as_save_IFS 4896 case $as_dir in #((( 4897 '') as_dir=./ ;; 4898 */) ;; 4899 *) as_dir=$as_dir/ ;; 4900 esac 4901 for ac_prog in fgrep 4902 do 4903 for ac_exec_ext in '' $ac_executable_extensions; do 4904 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4905 as_fn_executable_p "$ac_path_FGREP" || continue 4906# Check for GNU ac_path_FGREP and select it if it is found. 4907 # Check for GNU $ac_path_FGREP 4908case `"$ac_path_FGREP" --version 2>&1` in 4909*GNU*) 4910 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4911*) 4912 ac_count=0 4913 printf %s 0123456789 >"conftest.in" 4914 while : 4915 do 4916 cat "conftest.in" "conftest.in" >"conftest.tmp" 4917 mv "conftest.tmp" "conftest.in" 4918 cp "conftest.in" "conftest.nl" 4919 printf "%s\n" 'FGREP' >> "conftest.nl" 4920 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4922 as_fn_arith $ac_count + 1 && ac_count=$as_val 4923 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4924 # Best one so far, save it but keep looking for a better one 4925 ac_cv_path_FGREP="$ac_path_FGREP" 4926 ac_path_FGREP_max=$ac_count 4927 fi 4928 # 10*(2^10) chars as input seems more than enough 4929 test $ac_count -gt 10 && break 4930 done 4931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4932esac 4933 4934 $ac_path_FGREP_found && break 3 4935 done 4936 done 4937 done 4938IFS=$as_save_IFS 4939 if test -z "$ac_cv_path_FGREP"; then 4940 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4941 fi 4942else 4943 ac_cv_path_FGREP=$FGREP 4944fi 4945 4946 fi 4947fi 4948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4949printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4950 FGREP="$ac_cv_path_FGREP" 4951 4952 4953test -z "$GREP" && GREP=grep 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973# Check whether --with-gnu-ld was given. 4974if test ${with_gnu_ld+y} 4975then : 4976 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4977else $as_nop 4978 with_gnu_ld=no 4979fi 4980 4981ac_prog=ld 4982if test yes = "$GCC"; then 4983 # Check if gcc -print-prog-name=ld gives a path. 4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4985printf %s "checking for ld used by $CC... " >&6; } 4986 case $host in 4987 *-*-mingw*) 4988 # gcc leaves a trailing carriage return, which upsets mingw 4989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4990 *) 4991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4992 esac 4993 case $ac_prog in 4994 # Accept absolute paths. 4995 [\\/]* | ?:[\\/]*) 4996 re_direlt='/[^/][^/]*/\.\./' 4997 # Canonicalize the pathname of ld 4998 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4999 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5000 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5001 done 5002 test -z "$LD" && LD=$ac_prog 5003 ;; 5004 "") 5005 # If it fails, then pretend we aren't using GCC. 5006 ac_prog=ld 5007 ;; 5008 *) 5009 # If it is relative, then search for the first ld in PATH. 5010 with_gnu_ld=unknown 5011 ;; 5012 esac 5013elif test yes = "$with_gnu_ld"; then 5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5015printf %s "checking for GNU ld... " >&6; } 5016else 5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5018printf %s "checking for non-GNU ld... " >&6; } 5019fi 5020if test ${lt_cv_path_LD+y} 5021then : 5022 printf %s "(cached) " >&6 5023else $as_nop 5024 if test -z "$LD"; then 5025 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5026 for ac_dir in $PATH; do 5027 IFS=$lt_save_ifs 5028 test -z "$ac_dir" && ac_dir=. 5029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5030 lt_cv_path_LD=$ac_dir/$ac_prog 5031 # Check to see if the program is GNU ld. I'd rather use --version, 5032 # but apparently some variants of GNU ld only accept -v. 5033 # Break only if it was the GNU/non-GNU ld that we prefer. 5034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5035 *GNU* | *'with BFD'*) 5036 test no != "$with_gnu_ld" && break 5037 ;; 5038 *) 5039 test yes != "$with_gnu_ld" && break 5040 ;; 5041 esac 5042 fi 5043 done 5044 IFS=$lt_save_ifs 5045else 5046 lt_cv_path_LD=$LD # Let the user override the test with a path. 5047fi 5048fi 5049 5050LD=$lt_cv_path_LD 5051if test -n "$LD"; then 5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5053printf "%s\n" "$LD" >&6; } 5054else 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5056printf "%s\n" "no" >&6; } 5057fi 5058test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5060printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5061if test ${lt_cv_prog_gnu_ld+y} 5062then : 5063 printf %s "(cached) " >&6 5064else $as_nop 5065 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5066case `$LD -v 2>&1 </dev/null` in 5067*GNU* | *'with BFD'*) 5068 lt_cv_prog_gnu_ld=yes 5069 ;; 5070*) 5071 lt_cv_prog_gnu_ld=no 5072 ;; 5073esac 5074fi 5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5076printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5077with_gnu_ld=$lt_cv_prog_gnu_ld 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5088printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5089if test ${lt_cv_path_NM+y} 5090then : 5091 printf %s "(cached) " >&6 5092else $as_nop 5093 if test -n "$NM"; then 5094 # Let the user override the test. 5095 lt_cv_path_NM=$NM 5096else 5097 lt_nm_to_check=${ac_tool_prefix}nm 5098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5099 lt_nm_to_check="$lt_nm_to_check nm" 5100 fi 5101 for lt_tmp_nm in $lt_nm_to_check; do 5102 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5103 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5104 IFS=$lt_save_ifs 5105 test -z "$ac_dir" && ac_dir=. 5106 tmp_nm=$ac_dir/$lt_tmp_nm 5107 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5108 # Check to see if the nm accepts a BSD-compat flag. 5109 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5110 # nm: unknown option "B" ignored 5111 # Tru64's nm complains that /dev/null is an invalid object file 5112 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5113 case $build_os in 5114 mingw*) lt_bad_file=conftest.nm/nofile ;; 5115 *) lt_bad_file=/dev/null ;; 5116 esac 5117 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5118 *$lt_bad_file* | *'Invalid file or object type'*) 5119 lt_cv_path_NM="$tmp_nm -B" 5120 break 2 5121 ;; 5122 *) 5123 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5124 */dev/null*) 5125 lt_cv_path_NM="$tmp_nm -p" 5126 break 2 5127 ;; 5128 *) 5129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5130 continue # so that we can try to find one that supports BSD flags 5131 ;; 5132 esac 5133 ;; 5134 esac 5135 fi 5136 done 5137 IFS=$lt_save_ifs 5138 done 5139 : ${lt_cv_path_NM=no} 5140fi 5141fi 5142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5143printf "%s\n" "$lt_cv_path_NM" >&6; } 5144if test no != "$lt_cv_path_NM"; then 5145 NM=$lt_cv_path_NM 5146else 5147 # Didn't find any BSD compatible name lister, look for dumpbin. 5148 if test -n "$DUMPBIN"; then : 5149 # Let the user override the test. 5150 else 5151 if test -n "$ac_tool_prefix"; then 5152 for ac_prog in dumpbin "link -dump" 5153 do 5154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5155set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5157printf %s "checking for $ac_word... " >&6; } 5158if test ${ac_cv_prog_DUMPBIN+y} 5159then : 5160 printf %s "(cached) " >&6 5161else $as_nop 5162 if test -n "$DUMPBIN"; then 5163 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5164else 5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5166for as_dir in $PATH 5167do 5168 IFS=$as_save_IFS 5169 case $as_dir in #((( 5170 '') as_dir=./ ;; 5171 */) ;; 5172 *) as_dir=$as_dir/ ;; 5173 esac 5174 for ac_exec_ext in '' $ac_executable_extensions; do 5175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5176 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5178 break 2 5179 fi 5180done 5181 done 5182IFS=$as_save_IFS 5183 5184fi 5185fi 5186DUMPBIN=$ac_cv_prog_DUMPBIN 5187if test -n "$DUMPBIN"; then 5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5189printf "%s\n" "$DUMPBIN" >&6; } 5190else 5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5192printf "%s\n" "no" >&6; } 5193fi 5194 5195 5196 test -n "$DUMPBIN" && break 5197 done 5198fi 5199if test -z "$DUMPBIN"; then 5200 ac_ct_DUMPBIN=$DUMPBIN 5201 for ac_prog in dumpbin "link -dump" 5202do 5203 # Extract the first word of "$ac_prog", so it can be a program name with args. 5204set dummy $ac_prog; ac_word=$2 5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5206printf %s "checking for $ac_word... " >&6; } 5207if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5208then : 5209 printf %s "(cached) " >&6 5210else $as_nop 5211 if test -n "$ac_ct_DUMPBIN"; then 5212 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5213else 5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5215for as_dir in $PATH 5216do 5217 IFS=$as_save_IFS 5218 case $as_dir in #((( 5219 '') as_dir=./ ;; 5220 */) ;; 5221 *) as_dir=$as_dir/ ;; 5222 esac 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5225 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5227 break 2 5228 fi 5229done 5230 done 5231IFS=$as_save_IFS 5232 5233fi 5234fi 5235ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5236if test -n "$ac_ct_DUMPBIN"; then 5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5238printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5239else 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241printf "%s\n" "no" >&6; } 5242fi 5243 5244 5245 test -n "$ac_ct_DUMPBIN" && break 5246done 5247 5248 if test "x$ac_ct_DUMPBIN" = x; then 5249 DUMPBIN=":" 5250 else 5251 case $cross_compiling:$ac_tool_warned in 5252yes:) 5253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5254printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5255ac_tool_warned=yes ;; 5256esac 5257 DUMPBIN=$ac_ct_DUMPBIN 5258 fi 5259fi 5260 5261 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5262 *COFF*) 5263 DUMPBIN="$DUMPBIN -symbols -headers" 5264 ;; 5265 *) 5266 DUMPBIN=: 5267 ;; 5268 esac 5269 fi 5270 5271 if test : != "$DUMPBIN"; then 5272 NM=$DUMPBIN 5273 fi 5274fi 5275test -z "$NM" && NM=nm 5276 5277 5278 5279 5280 5281 5282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5283printf %s "checking the name lister ($NM) interface... " >&6; } 5284if test ${lt_cv_nm_interface+y} 5285then : 5286 printf %s "(cached) " >&6 5287else $as_nop 5288 lt_cv_nm_interface="BSD nm" 5289 echo "int some_variable = 0;" > conftest.$ac_ext 5290 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5291 (eval "$ac_compile" 2>conftest.err) 5292 cat conftest.err >&5 5293 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5294 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5295 cat conftest.err >&5 5296 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5297 cat conftest.out >&5 5298 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5299 lt_cv_nm_interface="MS dumpbin" 5300 fi 5301 rm -f conftest* 5302fi 5303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5304printf "%s\n" "$lt_cv_nm_interface" >&6; } 5305 5306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5307printf %s "checking whether ln -s works... " >&6; } 5308LN_S=$as_ln_s 5309if test "$LN_S" = "ln -s"; then 5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5311printf "%s\n" "yes" >&6; } 5312else 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5314printf "%s\n" "no, using $LN_S" >&6; } 5315fi 5316 5317# find the maximum length of command line arguments 5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5319printf %s "checking the maximum length of command line arguments... " >&6; } 5320if test ${lt_cv_sys_max_cmd_len+y} 5321then : 5322 printf %s "(cached) " >&6 5323else $as_nop 5324 i=0 5325 teststring=ABCD 5326 5327 case $build_os in 5328 msdosdjgpp*) 5329 # On DJGPP, this test can blow up pretty badly due to problems in libc 5330 # (any single argument exceeding 2000 bytes causes a buffer overrun 5331 # during glob expansion). Even if it were fixed, the result of this 5332 # check would be larger than it should be. 5333 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5334 ;; 5335 5336 gnu*) 5337 # Under GNU Hurd, this test is not required because there is 5338 # no limit to the length of command line arguments. 5339 # Libtool will interpret -1 as no limit whatsoever 5340 lt_cv_sys_max_cmd_len=-1; 5341 ;; 5342 5343 cygwin* | mingw* | cegcc*) 5344 # On Win9x/ME, this test blows up -- it succeeds, but takes 5345 # about 5 minutes as the teststring grows exponentially. 5346 # Worse, since 9x/ME are not pre-emptively multitasking, 5347 # you end up with a "frozen" computer, even though with patience 5348 # the test eventually succeeds (with a max line length of 256k). 5349 # Instead, let's just punt: use the minimum linelength reported by 5350 # all of the supported platforms: 8192 (on NT/2K/XP). 5351 lt_cv_sys_max_cmd_len=8192; 5352 ;; 5353 5354 mint*) 5355 # On MiNT this can take a long time and run out of memory. 5356 lt_cv_sys_max_cmd_len=8192; 5357 ;; 5358 5359 amigaos*) 5360 # On AmigaOS with pdksh, this test takes hours, literally. 5361 # So we just punt and use a minimum line length of 8192. 5362 lt_cv_sys_max_cmd_len=8192; 5363 ;; 5364 5365 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5366 # This has been around since 386BSD, at least. Likely further. 5367 if test -x /sbin/sysctl; then 5368 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5369 elif test -x /usr/sbin/sysctl; then 5370 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5371 else 5372 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5373 fi 5374 # And add a safety zone 5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5377 ;; 5378 5379 interix*) 5380 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5381 lt_cv_sys_max_cmd_len=196608 5382 ;; 5383 5384 os2*) 5385 # The test takes a long time on OS/2. 5386 lt_cv_sys_max_cmd_len=8192 5387 ;; 5388 5389 osf*) 5390 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5391 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5392 # nice to cause kernel panics so lets avoid the loop below. 5393 # First set a reasonable default. 5394 lt_cv_sys_max_cmd_len=16384 5395 # 5396 if test -x /sbin/sysconfig; then 5397 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5398 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5399 esac 5400 fi 5401 ;; 5402 sco3.2v5*) 5403 lt_cv_sys_max_cmd_len=102400 5404 ;; 5405 sysv5* | sco5v6* | sysv4.2uw2*) 5406 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5407 if test -n "$kargmax"; then 5408 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5409 else 5410 lt_cv_sys_max_cmd_len=32768 5411 fi 5412 ;; 5413 *) 5414 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5415 if test -n "$lt_cv_sys_max_cmd_len" && \ 5416 test undefined != "$lt_cv_sys_max_cmd_len"; then 5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5419 else 5420 # Make teststring a little bigger before we do anything with it. 5421 # a 1K string should be a reasonable start. 5422 for i in 1 2 3 4 5 6 7 8; do 5423 teststring=$teststring$teststring 5424 done 5425 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5426 # If test is not a shell built-in, we'll probably end up computing a 5427 # maximum length that is only half of the actual maximum length, but 5428 # we can't tell. 5429 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5430 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5431 test 17 != "$i" # 1/2 MB should be enough 5432 do 5433 i=`expr $i + 1` 5434 teststring=$teststring$teststring 5435 done 5436 # Only check the string length outside the loop. 5437 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5438 teststring= 5439 # Add a significant safety factor because C++ compilers can tack on 5440 # massive amounts of additional arguments before passing them to the 5441 # linker. It appears as though 1/2 is a usable value. 5442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5443 fi 5444 ;; 5445 esac 5446 5447fi 5448 5449if test -n "$lt_cv_sys_max_cmd_len"; then 5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5451printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5452else 5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5454printf "%s\n" "none" >&6; } 5455fi 5456max_cmd_len=$lt_cv_sys_max_cmd_len 5457 5458 5459 5460 5461 5462 5463: ${CP="cp -f"} 5464: ${MV="mv -f"} 5465: ${RM="rm -f"} 5466 5467if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5468 lt_unset=unset 5469else 5470 lt_unset=false 5471fi 5472 5473 5474 5475 5476 5477# test EBCDIC or ASCII 5478case `echo X|tr X '\101'` in 5479 A) # ASCII based system 5480 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5481 lt_SP2NL='tr \040 \012' 5482 lt_NL2SP='tr \015\012 \040\040' 5483 ;; 5484 *) # EBCDIC based system 5485 lt_SP2NL='tr \100 \n' 5486 lt_NL2SP='tr \r\n \100\100' 5487 ;; 5488esac 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5499printf %s "checking how to convert $build file names to $host format... " >&6; } 5500if test ${lt_cv_to_host_file_cmd+y} 5501then : 5502 printf %s "(cached) " >&6 5503else $as_nop 5504 case $host in 5505 *-*-mingw* ) 5506 case $build in 5507 *-*-mingw* ) # actually msys 5508 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5509 ;; 5510 *-*-cygwin* ) 5511 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5512 ;; 5513 * ) # otherwise, assume *nix 5514 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5515 ;; 5516 esac 5517 ;; 5518 *-*-cygwin* ) 5519 case $build in 5520 *-*-mingw* ) # actually msys 5521 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5522 ;; 5523 *-*-cygwin* ) 5524 lt_cv_to_host_file_cmd=func_convert_file_noop 5525 ;; 5526 * ) # otherwise, assume *nix 5527 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5528 ;; 5529 esac 5530 ;; 5531 * ) # unhandled hosts (and "normal" native builds) 5532 lt_cv_to_host_file_cmd=func_convert_file_noop 5533 ;; 5534esac 5535 5536fi 5537 5538to_host_file_cmd=$lt_cv_to_host_file_cmd 5539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5540printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5541 5542 5543 5544 5545 5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5547printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5548if test ${lt_cv_to_tool_file_cmd+y} 5549then : 5550 printf %s "(cached) " >&6 5551else $as_nop 5552 #assume ordinary cross tools, or native build. 5553lt_cv_to_tool_file_cmd=func_convert_file_noop 5554case $host in 5555 *-*-mingw* ) 5556 case $build in 5557 *-*-mingw* ) # actually msys 5558 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5559 ;; 5560 esac 5561 ;; 5562esac 5563 5564fi 5565 5566to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5568printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5569 5570 5571 5572 5573 5574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5575printf %s "checking for $LD option to reload object files... " >&6; } 5576if test ${lt_cv_ld_reload_flag+y} 5577then : 5578 printf %s "(cached) " >&6 5579else $as_nop 5580 lt_cv_ld_reload_flag='-r' 5581fi 5582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5583printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5584reload_flag=$lt_cv_ld_reload_flag 5585case $reload_flag in 5586"" | " "*) ;; 5587*) reload_flag=" $reload_flag" ;; 5588esac 5589reload_cmds='$LD$reload_flag -o $output$reload_objs' 5590case $host_os in 5591 cygwin* | mingw* | pw32* | cegcc*) 5592 if test yes != "$GCC"; then 5593 reload_cmds=false 5594 fi 5595 ;; 5596 darwin*) 5597 if test yes = "$GCC"; then 5598 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5599 else 5600 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5601 fi 5602 ;; 5603esac 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613if test -n "$ac_tool_prefix"; then 5614 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5615set dummy ${ac_tool_prefix}file; ac_word=$2 5616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5617printf %s "checking for $ac_word... " >&6; } 5618if test ${ac_cv_prog_FILECMD+y} 5619then : 5620 printf %s "(cached) " >&6 5621else $as_nop 5622 if test -n "$FILECMD"; then 5623 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5624else 5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5626for as_dir in $PATH 5627do 5628 IFS=$as_save_IFS 5629 case $as_dir in #((( 5630 '') as_dir=./ ;; 5631 */) ;; 5632 *) as_dir=$as_dir/ ;; 5633 esac 5634 for ac_exec_ext in '' $ac_executable_extensions; do 5635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5636 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5638 break 2 5639 fi 5640done 5641 done 5642IFS=$as_save_IFS 5643 5644fi 5645fi 5646FILECMD=$ac_cv_prog_FILECMD 5647if test -n "$FILECMD"; then 5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5649printf "%s\n" "$FILECMD" >&6; } 5650else 5651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5652printf "%s\n" "no" >&6; } 5653fi 5654 5655 5656fi 5657if test -z "$ac_cv_prog_FILECMD"; then 5658 ac_ct_FILECMD=$FILECMD 5659 # Extract the first word of "file", so it can be a program name with args. 5660set dummy file; ac_word=$2 5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5662printf %s "checking for $ac_word... " >&6; } 5663if test ${ac_cv_prog_ac_ct_FILECMD+y} 5664then : 5665 printf %s "(cached) " >&6 5666else $as_nop 5667 if test -n "$ac_ct_FILECMD"; then 5668 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5669else 5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5671for as_dir in $PATH 5672do 5673 IFS=$as_save_IFS 5674 case $as_dir in #((( 5675 '') as_dir=./ ;; 5676 */) ;; 5677 *) as_dir=$as_dir/ ;; 5678 esac 5679 for ac_exec_ext in '' $ac_executable_extensions; do 5680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5681 ac_cv_prog_ac_ct_FILECMD="file" 5682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5683 break 2 5684 fi 5685done 5686 done 5687IFS=$as_save_IFS 5688 5689fi 5690fi 5691ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5692if test -n "$ac_ct_FILECMD"; then 5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5694printf "%s\n" "$ac_ct_FILECMD" >&6; } 5695else 5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5697printf "%s\n" "no" >&6; } 5698fi 5699 5700 if test "x$ac_ct_FILECMD" = x; then 5701 FILECMD=":" 5702 else 5703 case $cross_compiling:$ac_tool_warned in 5704yes:) 5705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5706printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5707ac_tool_warned=yes ;; 5708esac 5709 FILECMD=$ac_ct_FILECMD 5710 fi 5711else 5712 FILECMD="$ac_cv_prog_FILECMD" 5713fi 5714 5715 5716 5717 5718 5719 5720 5721if test -n "$ac_tool_prefix"; then 5722 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5723set dummy ${ac_tool_prefix}objdump; ac_word=$2 5724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5725printf %s "checking for $ac_word... " >&6; } 5726if test ${ac_cv_prog_OBJDUMP+y} 5727then : 5728 printf %s "(cached) " >&6 5729else $as_nop 5730 if test -n "$OBJDUMP"; then 5731 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5732else 5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5734for as_dir in $PATH 5735do 5736 IFS=$as_save_IFS 5737 case $as_dir in #((( 5738 '') as_dir=./ ;; 5739 */) ;; 5740 *) as_dir=$as_dir/ ;; 5741 esac 5742 for ac_exec_ext in '' $ac_executable_extensions; do 5743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5746 break 2 5747 fi 5748done 5749 done 5750IFS=$as_save_IFS 5751 5752fi 5753fi 5754OBJDUMP=$ac_cv_prog_OBJDUMP 5755if test -n "$OBJDUMP"; then 5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5757printf "%s\n" "$OBJDUMP" >&6; } 5758else 5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5760printf "%s\n" "no" >&6; } 5761fi 5762 5763 5764fi 5765if test -z "$ac_cv_prog_OBJDUMP"; then 5766 ac_ct_OBJDUMP=$OBJDUMP 5767 # Extract the first word of "objdump", so it can be a program name with args. 5768set dummy objdump; ac_word=$2 5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5770printf %s "checking for $ac_word... " >&6; } 5771if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5772then : 5773 printf %s "(cached) " >&6 5774else $as_nop 5775 if test -n "$ac_ct_OBJDUMP"; then 5776 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5777else 5778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5779for as_dir in $PATH 5780do 5781 IFS=$as_save_IFS 5782 case $as_dir in #((( 5783 '') as_dir=./ ;; 5784 */) ;; 5785 *) as_dir=$as_dir/ ;; 5786 esac 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5789 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793done 5794 done 5795IFS=$as_save_IFS 5796 5797fi 5798fi 5799ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5800if test -n "$ac_ct_OBJDUMP"; then 5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5802printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5803else 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5805printf "%s\n" "no" >&6; } 5806fi 5807 5808 if test "x$ac_ct_OBJDUMP" = x; then 5809 OBJDUMP="false" 5810 else 5811 case $cross_compiling:$ac_tool_warned in 5812yes:) 5813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5814printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5815ac_tool_warned=yes ;; 5816esac 5817 OBJDUMP=$ac_ct_OBJDUMP 5818 fi 5819else 5820 OBJDUMP="$ac_cv_prog_OBJDUMP" 5821fi 5822 5823test -z "$OBJDUMP" && OBJDUMP=objdump 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5834printf %s "checking how to recognize dependent libraries... " >&6; } 5835if test ${lt_cv_deplibs_check_method+y} 5836then : 5837 printf %s "(cached) " >&6 5838else $as_nop 5839 lt_cv_file_magic_cmd='$MAGIC_CMD' 5840lt_cv_file_magic_test_file= 5841lt_cv_deplibs_check_method='unknown' 5842# Need to set the preceding variable on all platforms that support 5843# interlibrary dependencies. 5844# 'none' -- dependencies not supported. 5845# 'unknown' -- same as none, but documents that we really don't know. 5846# 'pass_all' -- all dependencies passed with no checks. 5847# 'test_compile' -- check by making test program. 5848# 'file_magic [[regex]]' -- check by looking for files in library path 5849# that responds to the $file_magic_cmd with a given extended regex. 5850# If you have 'file' or equivalent on your system and you're not sure 5851# whether 'pass_all' will *always* work, you probably want this one. 5852 5853case $host_os in 5854aix[4-9]*) 5855 lt_cv_deplibs_check_method=pass_all 5856 ;; 5857 5858beos*) 5859 lt_cv_deplibs_check_method=pass_all 5860 ;; 5861 5862bsdi[45]*) 5863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5864 lt_cv_file_magic_cmd='$FILECMD -L' 5865 lt_cv_file_magic_test_file=/shlib/libc.so 5866 ;; 5867 5868cygwin*) 5869 # func_win32_libid is a shell function defined in ltmain.sh 5870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5871 lt_cv_file_magic_cmd='func_win32_libid' 5872 ;; 5873 5874mingw* | pw32*) 5875 # Base MSYS/MinGW do not provide the 'file' command needed by 5876 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5877 # unless we find 'file', for example because we are cross-compiling. 5878 if ( file / ) >/dev/null 2>&1; then 5879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5880 lt_cv_file_magic_cmd='func_win32_libid' 5881 else 5882 # Keep this pattern in sync with the one in func_win32_libid. 5883 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5884 lt_cv_file_magic_cmd='$OBJDUMP -f' 5885 fi 5886 ;; 5887 5888cegcc*) 5889 # use the weaker test based on 'objdump'. See mingw*. 5890 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5891 lt_cv_file_magic_cmd='$OBJDUMP -f' 5892 ;; 5893 5894darwin* | rhapsody*) 5895 lt_cv_deplibs_check_method=pass_all 5896 ;; 5897 5898freebsd* | dragonfly* | midnightbsd*) 5899 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5900 case $host_cpu in 5901 i*86 ) 5902 # Not sure whether the presence of OpenBSD here was a mistake. 5903 # Let's accept both of them until this is cleared up. 5904 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5905 lt_cv_file_magic_cmd=$FILECMD 5906 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5907 ;; 5908 esac 5909 else 5910 lt_cv_deplibs_check_method=pass_all 5911 fi 5912 ;; 5913 5914haiku*) 5915 lt_cv_deplibs_check_method=pass_all 5916 ;; 5917 5918hpux10.20* | hpux11*) 5919 lt_cv_file_magic_cmd=$FILECMD 5920 case $host_cpu in 5921 ia64*) 5922 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5923 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5924 ;; 5925 hppa*64*) 5926 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]' 5927 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5928 ;; 5929 *) 5930 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5931 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5932 ;; 5933 esac 5934 ;; 5935 5936interix[3-9]*) 5937 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5939 ;; 5940 5941irix5* | irix6* | nonstopux*) 5942 case $LD in 5943 *-32|*"-32 ") libmagic=32-bit;; 5944 *-n32|*"-n32 ") libmagic=N32;; 5945 *-64|*"-64 ") libmagic=64-bit;; 5946 *) libmagic=never-match;; 5947 esac 5948 lt_cv_deplibs_check_method=pass_all 5949 ;; 5950 5951# This must be glibc/ELF. 5952linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5953 lt_cv_deplibs_check_method=pass_all 5954 ;; 5955 5956netbsd*) 5957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5959 else 5960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5961 fi 5962 ;; 5963 5964newos6*) 5965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5966 lt_cv_file_magic_cmd=$FILECMD 5967 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5968 ;; 5969 5970*nto* | *qnx*) 5971 lt_cv_deplibs_check_method=pass_all 5972 ;; 5973 5974openbsd* | bitrig*) 5975 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5977 else 5978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5979 fi 5980 ;; 5981 5982osf3* | osf4* | osf5*) 5983 lt_cv_deplibs_check_method=pass_all 5984 ;; 5985 5986rdos*) 5987 lt_cv_deplibs_check_method=pass_all 5988 ;; 5989 5990solaris*) 5991 lt_cv_deplibs_check_method=pass_all 5992 ;; 5993 5994sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5995 lt_cv_deplibs_check_method=pass_all 5996 ;; 5997 5998sysv4 | sysv4.3*) 5999 case $host_vendor in 6000 motorola) 6001 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]' 6002 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6003 ;; 6004 ncr) 6005 lt_cv_deplibs_check_method=pass_all 6006 ;; 6007 sequent) 6008 lt_cv_file_magic_cmd='/bin/file' 6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6010 ;; 6011 sni) 6012 lt_cv_file_magic_cmd='/bin/file' 6013 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6014 lt_cv_file_magic_test_file=/lib/libc.so 6015 ;; 6016 siemens) 6017 lt_cv_deplibs_check_method=pass_all 6018 ;; 6019 pc) 6020 lt_cv_deplibs_check_method=pass_all 6021 ;; 6022 esac 6023 ;; 6024 6025tpf*) 6026 lt_cv_deplibs_check_method=pass_all 6027 ;; 6028os2*) 6029 lt_cv_deplibs_check_method=pass_all 6030 ;; 6031esac 6032 6033fi 6034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6035printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6036 6037file_magic_glob= 6038want_nocaseglob=no 6039if test "$build" = "$host"; then 6040 case $host_os in 6041 mingw* | pw32*) 6042 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6043 want_nocaseglob=yes 6044 else 6045 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6046 fi 6047 ;; 6048 esac 6049fi 6050 6051file_magic_cmd=$lt_cv_file_magic_cmd 6052deplibs_check_method=$lt_cv_deplibs_check_method 6053test -z "$deplibs_check_method" && deplibs_check_method=unknown 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076if test -n "$ac_tool_prefix"; then 6077 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6078set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6080printf %s "checking for $ac_word... " >&6; } 6081if test ${ac_cv_prog_DLLTOOL+y} 6082then : 6083 printf %s "(cached) " >&6 6084else $as_nop 6085 if test -n "$DLLTOOL"; then 6086 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6087else 6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6089for as_dir in $PATH 6090do 6091 IFS=$as_save_IFS 6092 case $as_dir in #((( 6093 '') as_dir=./ ;; 6094 */) ;; 6095 *) as_dir=$as_dir/ ;; 6096 esac 6097 for ac_exec_ext in '' $ac_executable_extensions; do 6098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6099 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6101 break 2 6102 fi 6103done 6104 done 6105IFS=$as_save_IFS 6106 6107fi 6108fi 6109DLLTOOL=$ac_cv_prog_DLLTOOL 6110if test -n "$DLLTOOL"; then 6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6112printf "%s\n" "$DLLTOOL" >&6; } 6113else 6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6115printf "%s\n" "no" >&6; } 6116fi 6117 6118 6119fi 6120if test -z "$ac_cv_prog_DLLTOOL"; then 6121 ac_ct_DLLTOOL=$DLLTOOL 6122 # Extract the first word of "dlltool", so it can be a program name with args. 6123set dummy dlltool; ac_word=$2 6124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6125printf %s "checking for $ac_word... " >&6; } 6126if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6127then : 6128 printf %s "(cached) " >&6 6129else $as_nop 6130 if test -n "$ac_ct_DLLTOOL"; then 6131 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6132else 6133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134for as_dir in $PATH 6135do 6136 IFS=$as_save_IFS 6137 case $as_dir in #((( 6138 '') as_dir=./ ;; 6139 */) ;; 6140 *) as_dir=$as_dir/ ;; 6141 esac 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6144 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148done 6149 done 6150IFS=$as_save_IFS 6151 6152fi 6153fi 6154ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6155if test -n "$ac_ct_DLLTOOL"; then 6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6157printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6158else 6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6160printf "%s\n" "no" >&6; } 6161fi 6162 6163 if test "x$ac_ct_DLLTOOL" = x; then 6164 DLLTOOL="false" 6165 else 6166 case $cross_compiling:$ac_tool_warned in 6167yes:) 6168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6169printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6170ac_tool_warned=yes ;; 6171esac 6172 DLLTOOL=$ac_ct_DLLTOOL 6173 fi 6174else 6175 DLLTOOL="$ac_cv_prog_DLLTOOL" 6176fi 6177 6178test -z "$DLLTOOL" && DLLTOOL=dlltool 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6190printf %s "checking how to associate runtime and link libraries... " >&6; } 6191if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6192then : 6193 printf %s "(cached) " >&6 6194else $as_nop 6195 lt_cv_sharedlib_from_linklib_cmd='unknown' 6196 6197case $host_os in 6198cygwin* | mingw* | pw32* | cegcc*) 6199 # two different shell functions defined in ltmain.sh; 6200 # decide which one to use based on capabilities of $DLLTOOL 6201 case `$DLLTOOL --help 2>&1` in 6202 *--identify-strict*) 6203 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6204 ;; 6205 *) 6206 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6207 ;; 6208 esac 6209 ;; 6210*) 6211 # fallback: assume linklib IS sharedlib 6212 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6213 ;; 6214esac 6215 6216fi 6217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6218printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6219sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6220test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6221 6222 6223 6224 6225 6226 6227 6228 6229if test -n "$ac_tool_prefix"; then 6230 for ac_prog in ar 6231 do 6232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6233set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6235printf %s "checking for $ac_word... " >&6; } 6236if test ${ac_cv_prog_AR+y} 6237then : 6238 printf %s "(cached) " >&6 6239else $as_nop 6240 if test -n "$AR"; then 6241 ac_cv_prog_AR="$AR" # Let the user override the test. 6242else 6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6244for as_dir in $PATH 6245do 6246 IFS=$as_save_IFS 6247 case $as_dir in #((( 6248 '') as_dir=./ ;; 6249 */) ;; 6250 *) as_dir=$as_dir/ ;; 6251 esac 6252 for ac_exec_ext in '' $ac_executable_extensions; do 6253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6254 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6256 break 2 6257 fi 6258done 6259 done 6260IFS=$as_save_IFS 6261 6262fi 6263fi 6264AR=$ac_cv_prog_AR 6265if test -n "$AR"; then 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6267printf "%s\n" "$AR" >&6; } 6268else 6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6270printf "%s\n" "no" >&6; } 6271fi 6272 6273 6274 test -n "$AR" && break 6275 done 6276fi 6277if test -z "$AR"; then 6278 ac_ct_AR=$AR 6279 for ac_prog in ar 6280do 6281 # Extract the first word of "$ac_prog", so it can be a program name with args. 6282set dummy $ac_prog; ac_word=$2 6283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284printf %s "checking for $ac_word... " >&6; } 6285if test ${ac_cv_prog_ac_ct_AR+y} 6286then : 6287 printf %s "(cached) " >&6 6288else $as_nop 6289 if test -n "$ac_ct_AR"; then 6290 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6291else 6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6293for as_dir in $PATH 6294do 6295 IFS=$as_save_IFS 6296 case $as_dir in #((( 6297 '') as_dir=./ ;; 6298 */) ;; 6299 *) as_dir=$as_dir/ ;; 6300 esac 6301 for ac_exec_ext in '' $ac_executable_extensions; do 6302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6303 ac_cv_prog_ac_ct_AR="$ac_prog" 6304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6305 break 2 6306 fi 6307done 6308 done 6309IFS=$as_save_IFS 6310 6311fi 6312fi 6313ac_ct_AR=$ac_cv_prog_ac_ct_AR 6314if test -n "$ac_ct_AR"; then 6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6316printf "%s\n" "$ac_ct_AR" >&6; } 6317else 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6319printf "%s\n" "no" >&6; } 6320fi 6321 6322 6323 test -n "$ac_ct_AR" && break 6324done 6325 6326 if test "x$ac_ct_AR" = x; then 6327 AR="false" 6328 else 6329 case $cross_compiling:$ac_tool_warned in 6330yes:) 6331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6332printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6333ac_tool_warned=yes ;; 6334esac 6335 AR=$ac_ct_AR 6336 fi 6337fi 6338 6339: ${AR=ar} 6340 6341 6342 6343 6344 6345 6346# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6347# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6348# higher priority because thats what people were doing historically (setting 6349# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6350# variable obsoleted/removed. 6351 6352test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6353lt_ar_flags=$AR_FLAGS 6354 6355 6356 6357 6358 6359 6360# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6361# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6362 6363 6364 6365 6366 6367 6368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6369printf %s "checking for archiver @FILE support... " >&6; } 6370if test ${lt_cv_ar_at_file+y} 6371then : 6372 printf %s "(cached) " >&6 6373else $as_nop 6374 lt_cv_ar_at_file=no 6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6376/* end confdefs.h. */ 6377 6378int 6379main (void) 6380{ 6381 6382 ; 6383 return 0; 6384} 6385_ACEOF 6386if ac_fn_c_try_compile "$LINENO" 6387then : 6388 echo conftest.$ac_objext > conftest.lst 6389 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6391 (eval $lt_ar_try) 2>&5 6392 ac_status=$? 6393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6394 test $ac_status = 0; } 6395 if test 0 -eq "$ac_status"; then 6396 # Ensure the archiver fails upon bogus file names. 6397 rm -f conftest.$ac_objext libconftest.a 6398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6399 (eval $lt_ar_try) 2>&5 6400 ac_status=$? 6401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6402 test $ac_status = 0; } 6403 if test 0 -ne "$ac_status"; then 6404 lt_cv_ar_at_file=@ 6405 fi 6406 fi 6407 rm -f conftest.* libconftest.a 6408 6409fi 6410rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6411 6412fi 6413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6414printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6415 6416if test no = "$lt_cv_ar_at_file"; then 6417 archiver_list_spec= 6418else 6419 archiver_list_spec=$lt_cv_ar_at_file 6420fi 6421 6422 6423 6424 6425 6426 6427 6428if test -n "$ac_tool_prefix"; then 6429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6430set dummy ${ac_tool_prefix}strip; ac_word=$2 6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432printf %s "checking for $ac_word... " >&6; } 6433if test ${ac_cv_prog_STRIP+y} 6434then : 6435 printf %s "(cached) " >&6 6436else $as_nop 6437 if test -n "$STRIP"; then 6438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6439else 6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6441for as_dir in $PATH 6442do 6443 IFS=$as_save_IFS 6444 case $as_dir in #((( 6445 '') as_dir=./ ;; 6446 */) ;; 6447 *) as_dir=$as_dir/ ;; 6448 esac 6449 for ac_exec_ext in '' $ac_executable_extensions; do 6450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6451 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6453 break 2 6454 fi 6455done 6456 done 6457IFS=$as_save_IFS 6458 6459fi 6460fi 6461STRIP=$ac_cv_prog_STRIP 6462if test -n "$STRIP"; then 6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6464printf "%s\n" "$STRIP" >&6; } 6465else 6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6467printf "%s\n" "no" >&6; } 6468fi 6469 6470 6471fi 6472if test -z "$ac_cv_prog_STRIP"; then 6473 ac_ct_STRIP=$STRIP 6474 # Extract the first word of "strip", so it can be a program name with args. 6475set dummy strip; ac_word=$2 6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6477printf %s "checking for $ac_word... " >&6; } 6478if test ${ac_cv_prog_ac_ct_STRIP+y} 6479then : 6480 printf %s "(cached) " >&6 6481else $as_nop 6482 if test -n "$ac_ct_STRIP"; then 6483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6484else 6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6486for as_dir in $PATH 6487do 6488 IFS=$as_save_IFS 6489 case $as_dir in #((( 6490 '') as_dir=./ ;; 6491 */) ;; 6492 *) as_dir=$as_dir/ ;; 6493 esac 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6496 ac_cv_prog_ac_ct_STRIP="strip" 6497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6498 break 2 6499 fi 6500done 6501 done 6502IFS=$as_save_IFS 6503 6504fi 6505fi 6506ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6507if test -n "$ac_ct_STRIP"; then 6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6509printf "%s\n" "$ac_ct_STRIP" >&6; } 6510else 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6512printf "%s\n" "no" >&6; } 6513fi 6514 6515 if test "x$ac_ct_STRIP" = x; then 6516 STRIP=":" 6517 else 6518 case $cross_compiling:$ac_tool_warned in 6519yes:) 6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6521printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6522ac_tool_warned=yes ;; 6523esac 6524 STRIP=$ac_ct_STRIP 6525 fi 6526else 6527 STRIP="$ac_cv_prog_STRIP" 6528fi 6529 6530test -z "$STRIP" && STRIP=: 6531 6532 6533 6534 6535 6536 6537if test -n "$ac_tool_prefix"; then 6538 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6539set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6541printf %s "checking for $ac_word... " >&6; } 6542if test ${ac_cv_prog_RANLIB+y} 6543then : 6544 printf %s "(cached) " >&6 6545else $as_nop 6546 if test -n "$RANLIB"; then 6547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6548else 6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6550for as_dir in $PATH 6551do 6552 IFS=$as_save_IFS 6553 case $as_dir in #((( 6554 '') as_dir=./ ;; 6555 */) ;; 6556 *) as_dir=$as_dir/ ;; 6557 esac 6558 for ac_exec_ext in '' $ac_executable_extensions; do 6559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6560 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6562 break 2 6563 fi 6564done 6565 done 6566IFS=$as_save_IFS 6567 6568fi 6569fi 6570RANLIB=$ac_cv_prog_RANLIB 6571if test -n "$RANLIB"; then 6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6573printf "%s\n" "$RANLIB" >&6; } 6574else 6575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6576printf "%s\n" "no" >&6; } 6577fi 6578 6579 6580fi 6581if test -z "$ac_cv_prog_RANLIB"; then 6582 ac_ct_RANLIB=$RANLIB 6583 # Extract the first word of "ranlib", so it can be a program name with args. 6584set dummy ranlib; ac_word=$2 6585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6586printf %s "checking for $ac_word... " >&6; } 6587if test ${ac_cv_prog_ac_ct_RANLIB+y} 6588then : 6589 printf %s "(cached) " >&6 6590else $as_nop 6591 if test -n "$ac_ct_RANLIB"; then 6592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6593else 6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595for as_dir in $PATH 6596do 6597 IFS=$as_save_IFS 6598 case $as_dir in #((( 6599 '') as_dir=./ ;; 6600 */) ;; 6601 *) as_dir=$as_dir/ ;; 6602 esac 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6605 ac_cv_prog_ac_ct_RANLIB="ranlib" 6606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609done 6610 done 6611IFS=$as_save_IFS 6612 6613fi 6614fi 6615ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6616if test -n "$ac_ct_RANLIB"; then 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6618printf "%s\n" "$ac_ct_RANLIB" >&6; } 6619else 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621printf "%s\n" "no" >&6; } 6622fi 6623 6624 if test "x$ac_ct_RANLIB" = x; then 6625 RANLIB=":" 6626 else 6627 case $cross_compiling:$ac_tool_warned in 6628yes:) 6629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6630printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6631ac_tool_warned=yes ;; 6632esac 6633 RANLIB=$ac_ct_RANLIB 6634 fi 6635else 6636 RANLIB="$ac_cv_prog_RANLIB" 6637fi 6638 6639test -z "$RANLIB" && RANLIB=: 6640 6641 6642 6643 6644 6645 6646# Determine commands to create old-style static archives. 6647old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6648old_postinstall_cmds='chmod 644 $oldlib' 6649old_postuninstall_cmds= 6650 6651if test -n "$RANLIB"; then 6652 case $host_os in 6653 bitrig* | openbsd*) 6654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6655 ;; 6656 *) 6657 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6658 ;; 6659 esac 6660 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6661fi 6662 6663case $host_os in 6664 darwin*) 6665 lock_old_archive_extraction=yes ;; 6666 *) 6667 lock_old_archive_extraction=no ;; 6668esac 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708# If no C compiler was specified, use CC. 6709LTCC=${LTCC-"$CC"} 6710 6711# If no C compiler flags were specified, use CFLAGS. 6712LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6713 6714# Allow CC to be a program name with arguments. 6715compiler=$CC 6716 6717 6718# Check for command to grab the raw symbol name followed by C symbol from nm. 6719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6720printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6721if test ${lt_cv_sys_global_symbol_pipe+y} 6722then : 6723 printf %s "(cached) " >&6 6724else $as_nop 6725 6726# These are sane defaults that work on at least a few old systems. 6727# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6728 6729# Character class describing NM global symbol codes. 6730symcode='[BCDEGRST]' 6731 6732# Regexp to match symbols that can be accessed directly from C. 6733sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6734 6735# Define system-specific variables. 6736case $host_os in 6737aix*) 6738 symcode='[BCDT]' 6739 ;; 6740cygwin* | mingw* | pw32* | cegcc*) 6741 symcode='[ABCDGISTW]' 6742 ;; 6743hpux*) 6744 if test ia64 = "$host_cpu"; then 6745 symcode='[ABCDEGRST]' 6746 fi 6747 ;; 6748irix* | nonstopux*) 6749 symcode='[BCDEGRST]' 6750 ;; 6751osf*) 6752 symcode='[BCDEGQRST]' 6753 ;; 6754solaris*) 6755 symcode='[BDRT]' 6756 ;; 6757sco3.2v5*) 6758 symcode='[DT]' 6759 ;; 6760sysv4.2uw2*) 6761 symcode='[DT]' 6762 ;; 6763sysv5* | sco5v6* | unixware* | OpenUNIX*) 6764 symcode='[ABDT]' 6765 ;; 6766sysv4) 6767 symcode='[DFNSTU]' 6768 ;; 6769esac 6770 6771# If we're using GNU nm, then use its standard symbol codes. 6772case `$NM -V 2>&1` in 6773*GNU* | *'with BFD'*) 6774 symcode='[ABCDGIRSTW]' ;; 6775esac 6776 6777if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6778 # Gets list of data symbols to import. 6779 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6780 # Adjust the below global symbol transforms to fixup imported variables. 6781 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6782 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6783 lt_c_name_lib_hook="\ 6784 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6785 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6786else 6787 # Disable hooks by default. 6788 lt_cv_sys_global_symbol_to_import= 6789 lt_cdecl_hook= 6790 lt_c_name_hook= 6791 lt_c_name_lib_hook= 6792fi 6793 6794# Transform an extracted symbol line into a proper C declaration. 6795# Some systems (esp. on ia64) link data and code symbols differently, 6796# so use this general approach. 6797lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6798$lt_cdecl_hook\ 6799" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6800" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6801 6802# Transform an extracted symbol line into symbol name and symbol address 6803lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6804$lt_c_name_hook\ 6805" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6806" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6807 6808# Transform an extracted symbol line into symbol name with lib prefix and 6809# symbol address. 6810lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6811$lt_c_name_lib_hook\ 6812" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6813" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6814" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6815 6816# Handle CRLF in mingw tool chain 6817opt_cr= 6818case $build_os in 6819mingw*) 6820 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6821 ;; 6822esac 6823 6824# Try without a prefix underscore, then with it. 6825for ac_symprfx in "" "_"; do 6826 6827 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6828 symxfrm="\\1 $ac_symprfx\\2 \\2" 6829 6830 # Write the raw and C identifiers. 6831 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6832 # Fake it for dumpbin and say T for any non-static function, 6833 # D for any global variable and I for any imported variable. 6834 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6835 # which start with @ or ?. 6836 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6837" {last_section=section; section=\$ 3};"\ 6838" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6839" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6840" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6841" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6842" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6843" \$ 0!~/External *\|/{next};"\ 6844" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6845" {if(hide[section]) next};"\ 6846" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6847" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6848" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6849" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6850" ' prfx=^$ac_symprfx" 6851 else 6852 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6853 fi 6854 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6855 6856 # Check to see that the pipe works correctly. 6857 pipe_works=no 6858 6859 rm -f conftest* 6860 cat > conftest.$ac_ext <<_LT_EOF 6861#ifdef __cplusplus 6862extern "C" { 6863#endif 6864char nm_test_var; 6865void nm_test_func(void); 6866void nm_test_func(void){} 6867#ifdef __cplusplus 6868} 6869#endif 6870int main(){nm_test_var='a';nm_test_func();return(0);} 6871_LT_EOF 6872 6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6874 (eval $ac_compile) 2>&5 6875 ac_status=$? 6876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6877 test $ac_status = 0; }; then 6878 # Now try to grab the symbols. 6879 nlist=conftest.nm 6880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6881 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6882 ac_status=$? 6883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6884 test $ac_status = 0; } && test -s "$nlist"; then 6885 # Try sorting and uniquifying the output. 6886 if sort "$nlist" | uniq > "$nlist"T; then 6887 mv -f "$nlist"T "$nlist" 6888 else 6889 rm -f "$nlist"T 6890 fi 6891 6892 # Make sure that we snagged all the symbols we need. 6893 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6894 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6895 cat <<_LT_EOF > conftest.$ac_ext 6896/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6897#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6898/* DATA imports from DLLs on WIN32 can't be const, because runtime 6899 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6900# define LT_DLSYM_CONST 6901#elif defined __osf__ 6902/* This system does not cope well with relocations in const data. */ 6903# define LT_DLSYM_CONST 6904#else 6905# define LT_DLSYM_CONST const 6906#endif 6907 6908#ifdef __cplusplus 6909extern "C" { 6910#endif 6911 6912_LT_EOF 6913 # Now generate the symbol file. 6914 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6915 6916 cat <<_LT_EOF >> conftest.$ac_ext 6917 6918/* The mapping between symbol names and symbols. */ 6919LT_DLSYM_CONST struct { 6920 const char *name; 6921 void *address; 6922} 6923lt__PROGRAM__LTX_preloaded_symbols[] = 6924{ 6925 { "@PROGRAM@", (void *) 0 }, 6926_LT_EOF 6927 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6928 cat <<\_LT_EOF >> conftest.$ac_ext 6929 {0, (void *) 0} 6930}; 6931 6932/* This works around a problem in FreeBSD linker */ 6933#ifdef FREEBSD_WORKAROUND 6934static const void *lt_preloaded_setup() { 6935 return lt__PROGRAM__LTX_preloaded_symbols; 6936} 6937#endif 6938 6939#ifdef __cplusplus 6940} 6941#endif 6942_LT_EOF 6943 # Now try linking the two files. 6944 mv conftest.$ac_objext conftstm.$ac_objext 6945 lt_globsym_save_LIBS=$LIBS 6946 lt_globsym_save_CFLAGS=$CFLAGS 6947 LIBS=conftstm.$ac_objext 6948 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6950 (eval $ac_link) 2>&5 6951 ac_status=$? 6952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6953 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6954 pipe_works=yes 6955 fi 6956 LIBS=$lt_globsym_save_LIBS 6957 CFLAGS=$lt_globsym_save_CFLAGS 6958 else 6959 echo "cannot find nm_test_func in $nlist" >&5 6960 fi 6961 else 6962 echo "cannot find nm_test_var in $nlist" >&5 6963 fi 6964 else 6965 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6966 fi 6967 else 6968 echo "$progname: failed program was:" >&5 6969 cat conftest.$ac_ext >&5 6970 fi 6971 rm -rf conftest* conftst* 6972 6973 # Do not use the global_symbol_pipe unless it works. 6974 if test yes = "$pipe_works"; then 6975 break 6976 else 6977 lt_cv_sys_global_symbol_pipe= 6978 fi 6979done 6980 6981fi 6982 6983if test -z "$lt_cv_sys_global_symbol_pipe"; then 6984 lt_cv_sys_global_symbol_to_cdecl= 6985fi 6986if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6988printf "%s\n" "failed" >&6; } 6989else 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6991printf "%s\n" "ok" >&6; } 6992fi 6993 6994# Response file support. 6995if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6996 nm_file_list_spec='@' 6997elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6998 nm_file_list_spec='@' 6999fi 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7038printf %s "checking for sysroot... " >&6; } 7039 7040# Check whether --with-sysroot was given. 7041if test ${with_sysroot+y} 7042then : 7043 withval=$with_sysroot; 7044else $as_nop 7045 with_sysroot=no 7046fi 7047 7048 7049lt_sysroot= 7050case $with_sysroot in #( 7051 yes) 7052 if test yes = "$GCC"; then 7053 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7054 fi 7055 ;; #( 7056 /*) 7057 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7058 ;; #( 7059 no|'') 7060 ;; #( 7061 *) 7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7063printf "%s\n" "$with_sysroot" >&6; } 7064 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7065 ;; 7066esac 7067 7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7069printf "%s\n" "${lt_sysroot:-no}" >&6; } 7070 7071 7072 7073 7074 7075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7076printf %s "checking for a working dd... " >&6; } 7077if test ${ac_cv_path_lt_DD+y} 7078then : 7079 printf %s "(cached) " >&6 7080else $as_nop 7081 printf 0123456789abcdef0123456789abcdef >conftest.i 7082cat conftest.i conftest.i >conftest2.i 7083: ${lt_DD:=$DD} 7084if test -z "$lt_DD"; then 7085 ac_path_lt_DD_found=false 7086 # Loop through the user's path and test for each of PROGNAME-LIST 7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7088for as_dir in $PATH 7089do 7090 IFS=$as_save_IFS 7091 case $as_dir in #((( 7092 '') as_dir=./ ;; 7093 */) ;; 7094 *) as_dir=$as_dir/ ;; 7095 esac 7096 for ac_prog in dd 7097 do 7098 for ac_exec_ext in '' $ac_executable_extensions; do 7099 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7100 as_fn_executable_p "$ac_path_lt_DD" || continue 7101if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7102 cmp -s conftest.i conftest.out \ 7103 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7104fi 7105 $ac_path_lt_DD_found && break 3 7106 done 7107 done 7108 done 7109IFS=$as_save_IFS 7110 if test -z "$ac_cv_path_lt_DD"; then 7111 : 7112 fi 7113else 7114 ac_cv_path_lt_DD=$lt_DD 7115fi 7116 7117rm -f conftest.i conftest2.i conftest.out 7118fi 7119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7120printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7121 7122 7123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7124printf %s "checking how to truncate binary pipes... " >&6; } 7125if test ${lt_cv_truncate_bin+y} 7126then : 7127 printf %s "(cached) " >&6 7128else $as_nop 7129 printf 0123456789abcdef0123456789abcdef >conftest.i 7130cat conftest.i conftest.i >conftest2.i 7131lt_cv_truncate_bin= 7132if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7133 cmp -s conftest.i conftest.out \ 7134 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7135fi 7136rm -f conftest.i conftest2.i conftest.out 7137test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7138fi 7139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7140printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7141 7142 7143 7144 7145 7146 7147 7148# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7149func_cc_basename () 7150{ 7151 for cc_temp in $*""; do 7152 case $cc_temp in 7153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7155 \-*) ;; 7156 *) break;; 7157 esac 7158 done 7159 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7160} 7161 7162# Check whether --enable-libtool-lock was given. 7163if test ${enable_libtool_lock+y} 7164then : 7165 enableval=$enable_libtool_lock; 7166fi 7167 7168test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7169 7170# Some flags need to be propagated to the compiler or linker for good 7171# libtool support. 7172case $host in 7173ia64-*-hpux*) 7174 # Find out what ABI is being produced by ac_compile, and set mode 7175 # options accordingly. 7176 echo 'int i;' > conftest.$ac_ext 7177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7178 (eval $ac_compile) 2>&5 7179 ac_status=$? 7180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7181 test $ac_status = 0; }; then 7182 case `$FILECMD conftest.$ac_objext` in 7183 *ELF-32*) 7184 HPUX_IA64_MODE=32 7185 ;; 7186 *ELF-64*) 7187 HPUX_IA64_MODE=64 7188 ;; 7189 esac 7190 fi 7191 rm -rf conftest* 7192 ;; 7193*-*-irix6*) 7194 # Find out what ABI is being produced by ac_compile, and set linker 7195 # options accordingly. 7196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7198 (eval $ac_compile) 2>&5 7199 ac_status=$? 7200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7201 test $ac_status = 0; }; then 7202 if test yes = "$lt_cv_prog_gnu_ld"; then 7203 case `$FILECMD conftest.$ac_objext` in 7204 *32-bit*) 7205 LD="${LD-ld} -melf32bsmip" 7206 ;; 7207 *N32*) 7208 LD="${LD-ld} -melf32bmipn32" 7209 ;; 7210 *64-bit*) 7211 LD="${LD-ld} -melf64bmip" 7212 ;; 7213 esac 7214 else 7215 case `$FILECMD conftest.$ac_objext` in 7216 *32-bit*) 7217 LD="${LD-ld} -32" 7218 ;; 7219 *N32*) 7220 LD="${LD-ld} -n32" 7221 ;; 7222 *64-bit*) 7223 LD="${LD-ld} -64" 7224 ;; 7225 esac 7226 fi 7227 fi 7228 rm -rf conftest* 7229 ;; 7230 7231mips64*-*linux*) 7232 # Find out what ABI is being produced by ac_compile, and set linker 7233 # options accordingly. 7234 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7236 (eval $ac_compile) 2>&5 7237 ac_status=$? 7238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7239 test $ac_status = 0; }; then 7240 emul=elf 7241 case `$FILECMD conftest.$ac_objext` in 7242 *32-bit*) 7243 emul="${emul}32" 7244 ;; 7245 *64-bit*) 7246 emul="${emul}64" 7247 ;; 7248 esac 7249 case `$FILECMD conftest.$ac_objext` in 7250 *MSB*) 7251 emul="${emul}btsmip" 7252 ;; 7253 *LSB*) 7254 emul="${emul}ltsmip" 7255 ;; 7256 esac 7257 case `$FILECMD conftest.$ac_objext` in 7258 *N32*) 7259 emul="${emul}n32" 7260 ;; 7261 esac 7262 LD="${LD-ld} -m $emul" 7263 fi 7264 rm -rf conftest* 7265 ;; 7266 7267x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7268s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7269 # Find out what ABI is being produced by ac_compile, and set linker 7270 # options accordingly. Note that the listed cases only cover the 7271 # situations where additional linker options are needed (such as when 7272 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7273 # vice versa); the common cases where no linker options are needed do 7274 # not appear in the list. 7275 echo 'int i;' > conftest.$ac_ext 7276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7277 (eval $ac_compile) 2>&5 7278 ac_status=$? 7279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7280 test $ac_status = 0; }; then 7281 case `$FILECMD conftest.o` in 7282 *32-bit*) 7283 case $host in 7284 x86_64-*kfreebsd*-gnu) 7285 LD="${LD-ld} -m elf_i386_fbsd" 7286 ;; 7287 x86_64-*linux*) 7288 case `$FILECMD conftest.o` in 7289 *x86-64*) 7290 LD="${LD-ld} -m elf32_x86_64" 7291 ;; 7292 *) 7293 LD="${LD-ld} -m elf_i386" 7294 ;; 7295 esac 7296 ;; 7297 powerpc64le-*linux*) 7298 LD="${LD-ld} -m elf32lppclinux" 7299 ;; 7300 powerpc64-*linux*) 7301 LD="${LD-ld} -m elf32ppclinux" 7302 ;; 7303 s390x-*linux*) 7304 LD="${LD-ld} -m elf_s390" 7305 ;; 7306 sparc64-*linux*) 7307 LD="${LD-ld} -m elf32_sparc" 7308 ;; 7309 esac 7310 ;; 7311 *64-bit*) 7312 case $host in 7313 x86_64-*kfreebsd*-gnu) 7314 LD="${LD-ld} -m elf_x86_64_fbsd" 7315 ;; 7316 x86_64-*linux*) 7317 LD="${LD-ld} -m elf_x86_64" 7318 ;; 7319 powerpcle-*linux*) 7320 LD="${LD-ld} -m elf64lppc" 7321 ;; 7322 powerpc-*linux*) 7323 LD="${LD-ld} -m elf64ppc" 7324 ;; 7325 s390*-*linux*|s390*-*tpf*) 7326 LD="${LD-ld} -m elf64_s390" 7327 ;; 7328 sparc*-*linux*) 7329 LD="${LD-ld} -m elf64_sparc" 7330 ;; 7331 esac 7332 ;; 7333 esac 7334 fi 7335 rm -rf conftest* 7336 ;; 7337 7338*-*-sco3.2v5*) 7339 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7340 SAVE_CFLAGS=$CFLAGS 7341 CFLAGS="$CFLAGS -belf" 7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7343printf %s "checking whether the C compiler needs -belf... " >&6; } 7344if test ${lt_cv_cc_needs_belf+y} 7345then : 7346 printf %s "(cached) " >&6 7347else $as_nop 7348 ac_ext=c 7349ac_cpp='$CPP $CPPFLAGS' 7350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7352ac_compiler_gnu=$ac_cv_c_compiler_gnu 7353 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355/* end confdefs.h. */ 7356 7357int 7358main (void) 7359{ 7360 7361 ; 7362 return 0; 7363} 7364_ACEOF 7365if ac_fn_c_try_link "$LINENO" 7366then : 7367 lt_cv_cc_needs_belf=yes 7368else $as_nop 7369 lt_cv_cc_needs_belf=no 7370fi 7371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7372 conftest$ac_exeext conftest.$ac_ext 7373 ac_ext=c 7374ac_cpp='$CPP $CPPFLAGS' 7375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7377ac_compiler_gnu=$ac_cv_c_compiler_gnu 7378 7379fi 7380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7381printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7382 if test yes != "$lt_cv_cc_needs_belf"; then 7383 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7384 CFLAGS=$SAVE_CFLAGS 7385 fi 7386 ;; 7387*-*solaris*) 7388 # Find out what ABI is being produced by ac_compile, and set linker 7389 # options accordingly. 7390 echo 'int i;' > conftest.$ac_ext 7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7392 (eval $ac_compile) 2>&5 7393 ac_status=$? 7394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7395 test $ac_status = 0; }; then 7396 case `$FILECMD conftest.o` in 7397 *64-bit*) 7398 case $lt_cv_prog_gnu_ld in 7399 yes*) 7400 case $host in 7401 i?86-*-solaris*|x86_64-*-solaris*) 7402 LD="${LD-ld} -m elf_x86_64" 7403 ;; 7404 sparc*-*-solaris*) 7405 LD="${LD-ld} -m elf64_sparc" 7406 ;; 7407 esac 7408 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7409 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7410 LD=${LD-ld}_sol2 7411 fi 7412 ;; 7413 *) 7414 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7415 LD="${LD-ld} -64" 7416 fi 7417 ;; 7418 esac 7419 ;; 7420 esac 7421 fi 7422 rm -rf conftest* 7423 ;; 7424esac 7425 7426need_locks=$enable_libtool_lock 7427 7428if test -n "$ac_tool_prefix"; then 7429 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7430set dummy ${ac_tool_prefix}mt; ac_word=$2 7431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7432printf %s "checking for $ac_word... " >&6; } 7433if test ${ac_cv_prog_MANIFEST_TOOL+y} 7434then : 7435 printf %s "(cached) " >&6 7436else $as_nop 7437 if test -n "$MANIFEST_TOOL"; then 7438 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7439else 7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7441for as_dir in $PATH 7442do 7443 IFS=$as_save_IFS 7444 case $as_dir in #((( 7445 '') as_dir=./ ;; 7446 */) ;; 7447 *) as_dir=$as_dir/ ;; 7448 esac 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7451 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455done 7456 done 7457IFS=$as_save_IFS 7458 7459fi 7460fi 7461MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7462if test -n "$MANIFEST_TOOL"; then 7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7464printf "%s\n" "$MANIFEST_TOOL" >&6; } 7465else 7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7467printf "%s\n" "no" >&6; } 7468fi 7469 7470 7471fi 7472if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7473 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7474 # Extract the first word of "mt", so it can be a program name with args. 7475set dummy mt; ac_word=$2 7476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7477printf %s "checking for $ac_word... " >&6; } 7478if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7479then : 7480 printf %s "(cached) " >&6 7481else $as_nop 7482 if test -n "$ac_ct_MANIFEST_TOOL"; then 7483 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7484else 7485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7486for as_dir in $PATH 7487do 7488 IFS=$as_save_IFS 7489 case $as_dir in #((( 7490 '') as_dir=./ ;; 7491 */) ;; 7492 *) as_dir=$as_dir/ ;; 7493 esac 7494 for ac_exec_ext in '' $ac_executable_extensions; do 7495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7496 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7498 break 2 7499 fi 7500done 7501 done 7502IFS=$as_save_IFS 7503 7504fi 7505fi 7506ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7507if test -n "$ac_ct_MANIFEST_TOOL"; then 7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7509printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7510else 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7512printf "%s\n" "no" >&6; } 7513fi 7514 7515 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7516 MANIFEST_TOOL=":" 7517 else 7518 case $cross_compiling:$ac_tool_warned in 7519yes:) 7520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7521printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7522ac_tool_warned=yes ;; 7523esac 7524 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7525 fi 7526else 7527 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7528fi 7529 7530test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7532printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7533if test ${lt_cv_path_mainfest_tool+y} 7534then : 7535 printf %s "(cached) " >&6 7536else $as_nop 7537 lt_cv_path_mainfest_tool=no 7538 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7539 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7540 cat conftest.err >&5 7541 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7542 lt_cv_path_mainfest_tool=yes 7543 fi 7544 rm -f conftest* 7545fi 7546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7547printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7548if test yes != "$lt_cv_path_mainfest_tool"; then 7549 MANIFEST_TOOL=: 7550fi 7551 7552 7553 7554 7555 7556 7557 case $host_os in 7558 rhapsody* | darwin*) 7559 if test -n "$ac_tool_prefix"; then 7560 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7561set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7563printf %s "checking for $ac_word... " >&6; } 7564if test ${ac_cv_prog_DSYMUTIL+y} 7565then : 7566 printf %s "(cached) " >&6 7567else $as_nop 7568 if test -n "$DSYMUTIL"; then 7569 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7570else 7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7572for as_dir in $PATH 7573do 7574 IFS=$as_save_IFS 7575 case $as_dir in #((( 7576 '') as_dir=./ ;; 7577 */) ;; 7578 *) as_dir=$as_dir/ ;; 7579 esac 7580 for ac_exec_ext in '' $ac_executable_extensions; do 7581 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7582 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7584 break 2 7585 fi 7586done 7587 done 7588IFS=$as_save_IFS 7589 7590fi 7591fi 7592DSYMUTIL=$ac_cv_prog_DSYMUTIL 7593if test -n "$DSYMUTIL"; then 7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7595printf "%s\n" "$DSYMUTIL" >&6; } 7596else 7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7598printf "%s\n" "no" >&6; } 7599fi 7600 7601 7602fi 7603if test -z "$ac_cv_prog_DSYMUTIL"; then 7604 ac_ct_DSYMUTIL=$DSYMUTIL 7605 # Extract the first word of "dsymutil", so it can be a program name with args. 7606set dummy dsymutil; ac_word=$2 7607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7608printf %s "checking for $ac_word... " >&6; } 7609if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7610then : 7611 printf %s "(cached) " >&6 7612else $as_nop 7613 if test -n "$ac_ct_DSYMUTIL"; then 7614 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7615else 7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7617for as_dir in $PATH 7618do 7619 IFS=$as_save_IFS 7620 case $as_dir in #((( 7621 '') as_dir=./ ;; 7622 */) ;; 7623 *) as_dir=$as_dir/ ;; 7624 esac 7625 for ac_exec_ext in '' $ac_executable_extensions; do 7626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7627 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7629 break 2 7630 fi 7631done 7632 done 7633IFS=$as_save_IFS 7634 7635fi 7636fi 7637ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7638if test -n "$ac_ct_DSYMUTIL"; then 7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7640printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7641else 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7643printf "%s\n" "no" >&6; } 7644fi 7645 7646 if test "x$ac_ct_DSYMUTIL" = x; then 7647 DSYMUTIL=":" 7648 else 7649 case $cross_compiling:$ac_tool_warned in 7650yes:) 7651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7652printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7653ac_tool_warned=yes ;; 7654esac 7655 DSYMUTIL=$ac_ct_DSYMUTIL 7656 fi 7657else 7658 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7659fi 7660 7661 if test -n "$ac_tool_prefix"; then 7662 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7663set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7665printf %s "checking for $ac_word... " >&6; } 7666if test ${ac_cv_prog_NMEDIT+y} 7667then : 7668 printf %s "(cached) " >&6 7669else $as_nop 7670 if test -n "$NMEDIT"; then 7671 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7672else 7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7674for as_dir in $PATH 7675do 7676 IFS=$as_save_IFS 7677 case $as_dir in #((( 7678 '') as_dir=./ ;; 7679 */) ;; 7680 *) as_dir=$as_dir/ ;; 7681 esac 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7684 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689 done 7690IFS=$as_save_IFS 7691 7692fi 7693fi 7694NMEDIT=$ac_cv_prog_NMEDIT 7695if test -n "$NMEDIT"; then 7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7697printf "%s\n" "$NMEDIT" >&6; } 7698else 7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700printf "%s\n" "no" >&6; } 7701fi 7702 7703 7704fi 7705if test -z "$ac_cv_prog_NMEDIT"; then 7706 ac_ct_NMEDIT=$NMEDIT 7707 # Extract the first word of "nmedit", so it can be a program name with args. 7708set dummy nmedit; ac_word=$2 7709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7710printf %s "checking for $ac_word... " >&6; } 7711if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7712then : 7713 printf %s "(cached) " >&6 7714else $as_nop 7715 if test -n "$ac_ct_NMEDIT"; then 7716 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7717else 7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7719for as_dir in $PATH 7720do 7721 IFS=$as_save_IFS 7722 case $as_dir in #((( 7723 '') as_dir=./ ;; 7724 */) ;; 7725 *) as_dir=$as_dir/ ;; 7726 esac 7727 for ac_exec_ext in '' $ac_executable_extensions; do 7728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7729 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7731 break 2 7732 fi 7733done 7734 done 7735IFS=$as_save_IFS 7736 7737fi 7738fi 7739ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7740if test -n "$ac_ct_NMEDIT"; then 7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7742printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7743else 7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7745printf "%s\n" "no" >&6; } 7746fi 7747 7748 if test "x$ac_ct_NMEDIT" = x; then 7749 NMEDIT=":" 7750 else 7751 case $cross_compiling:$ac_tool_warned in 7752yes:) 7753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7754printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7755ac_tool_warned=yes ;; 7756esac 7757 NMEDIT=$ac_ct_NMEDIT 7758 fi 7759else 7760 NMEDIT="$ac_cv_prog_NMEDIT" 7761fi 7762 7763 if test -n "$ac_tool_prefix"; then 7764 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7765set dummy ${ac_tool_prefix}lipo; ac_word=$2 7766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7767printf %s "checking for $ac_word... " >&6; } 7768if test ${ac_cv_prog_LIPO+y} 7769then : 7770 printf %s "(cached) " >&6 7771else $as_nop 7772 if test -n "$LIPO"; then 7773 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7774else 7775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7776for as_dir in $PATH 7777do 7778 IFS=$as_save_IFS 7779 case $as_dir in #((( 7780 '') as_dir=./ ;; 7781 */) ;; 7782 *) as_dir=$as_dir/ ;; 7783 esac 7784 for ac_exec_ext in '' $ac_executable_extensions; do 7785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7786 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7788 break 2 7789 fi 7790done 7791 done 7792IFS=$as_save_IFS 7793 7794fi 7795fi 7796LIPO=$ac_cv_prog_LIPO 7797if test -n "$LIPO"; then 7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7799printf "%s\n" "$LIPO" >&6; } 7800else 7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7802printf "%s\n" "no" >&6; } 7803fi 7804 7805 7806fi 7807if test -z "$ac_cv_prog_LIPO"; then 7808 ac_ct_LIPO=$LIPO 7809 # Extract the first word of "lipo", so it can be a program name with args. 7810set dummy lipo; ac_word=$2 7811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812printf %s "checking for $ac_word... " >&6; } 7813if test ${ac_cv_prog_ac_ct_LIPO+y} 7814then : 7815 printf %s "(cached) " >&6 7816else $as_nop 7817 if test -n "$ac_ct_LIPO"; then 7818 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7819else 7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7821for as_dir in $PATH 7822do 7823 IFS=$as_save_IFS 7824 case $as_dir in #((( 7825 '') as_dir=./ ;; 7826 */) ;; 7827 *) as_dir=$as_dir/ ;; 7828 esac 7829 for ac_exec_ext in '' $ac_executable_extensions; do 7830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7831 ac_cv_prog_ac_ct_LIPO="lipo" 7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7833 break 2 7834 fi 7835done 7836 done 7837IFS=$as_save_IFS 7838 7839fi 7840fi 7841ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7842if test -n "$ac_ct_LIPO"; then 7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7844printf "%s\n" "$ac_ct_LIPO" >&6; } 7845else 7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7847printf "%s\n" "no" >&6; } 7848fi 7849 7850 if test "x$ac_ct_LIPO" = x; then 7851 LIPO=":" 7852 else 7853 case $cross_compiling:$ac_tool_warned in 7854yes:) 7855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7856printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7857ac_tool_warned=yes ;; 7858esac 7859 LIPO=$ac_ct_LIPO 7860 fi 7861else 7862 LIPO="$ac_cv_prog_LIPO" 7863fi 7864 7865 if test -n "$ac_tool_prefix"; then 7866 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7867set dummy ${ac_tool_prefix}otool; ac_word=$2 7868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7869printf %s "checking for $ac_word... " >&6; } 7870if test ${ac_cv_prog_OTOOL+y} 7871then : 7872 printf %s "(cached) " >&6 7873else $as_nop 7874 if test -n "$OTOOL"; then 7875 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7876else 7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7878for as_dir in $PATH 7879do 7880 IFS=$as_save_IFS 7881 case $as_dir in #((( 7882 '') as_dir=./ ;; 7883 */) ;; 7884 *) as_dir=$as_dir/ ;; 7885 esac 7886 for ac_exec_ext in '' $ac_executable_extensions; do 7887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7888 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7890 break 2 7891 fi 7892done 7893 done 7894IFS=$as_save_IFS 7895 7896fi 7897fi 7898OTOOL=$ac_cv_prog_OTOOL 7899if test -n "$OTOOL"; then 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7901printf "%s\n" "$OTOOL" >&6; } 7902else 7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7904printf "%s\n" "no" >&6; } 7905fi 7906 7907 7908fi 7909if test -z "$ac_cv_prog_OTOOL"; then 7910 ac_ct_OTOOL=$OTOOL 7911 # Extract the first word of "otool", so it can be a program name with args. 7912set dummy otool; ac_word=$2 7913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7914printf %s "checking for $ac_word... " >&6; } 7915if test ${ac_cv_prog_ac_ct_OTOOL+y} 7916then : 7917 printf %s "(cached) " >&6 7918else $as_nop 7919 if test -n "$ac_ct_OTOOL"; then 7920 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7921else 7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7923for as_dir in $PATH 7924do 7925 IFS=$as_save_IFS 7926 case $as_dir in #((( 7927 '') as_dir=./ ;; 7928 */) ;; 7929 *) as_dir=$as_dir/ ;; 7930 esac 7931 for ac_exec_ext in '' $ac_executable_extensions; do 7932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7933 ac_cv_prog_ac_ct_OTOOL="otool" 7934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7935 break 2 7936 fi 7937done 7938 done 7939IFS=$as_save_IFS 7940 7941fi 7942fi 7943ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7944if test -n "$ac_ct_OTOOL"; then 7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7946printf "%s\n" "$ac_ct_OTOOL" >&6; } 7947else 7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7949printf "%s\n" "no" >&6; } 7950fi 7951 7952 if test "x$ac_ct_OTOOL" = x; then 7953 OTOOL=":" 7954 else 7955 case $cross_compiling:$ac_tool_warned in 7956yes:) 7957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7959ac_tool_warned=yes ;; 7960esac 7961 OTOOL=$ac_ct_OTOOL 7962 fi 7963else 7964 OTOOL="$ac_cv_prog_OTOOL" 7965fi 7966 7967 if test -n "$ac_tool_prefix"; then 7968 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7969set dummy ${ac_tool_prefix}otool64; ac_word=$2 7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7971printf %s "checking for $ac_word... " >&6; } 7972if test ${ac_cv_prog_OTOOL64+y} 7973then : 7974 printf %s "(cached) " >&6 7975else $as_nop 7976 if test -n "$OTOOL64"; then 7977 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7978else 7979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7980for as_dir in $PATH 7981do 7982 IFS=$as_save_IFS 7983 case $as_dir in #((( 7984 '') as_dir=./ ;; 7985 */) ;; 7986 *) as_dir=$as_dir/ ;; 7987 esac 7988 for ac_exec_ext in '' $ac_executable_extensions; do 7989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7990 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7992 break 2 7993 fi 7994done 7995 done 7996IFS=$as_save_IFS 7997 7998fi 7999fi 8000OTOOL64=$ac_cv_prog_OTOOL64 8001if test -n "$OTOOL64"; then 8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8003printf "%s\n" "$OTOOL64" >&6; } 8004else 8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8006printf "%s\n" "no" >&6; } 8007fi 8008 8009 8010fi 8011if test -z "$ac_cv_prog_OTOOL64"; then 8012 ac_ct_OTOOL64=$OTOOL64 8013 # Extract the first word of "otool64", so it can be a program name with args. 8014set dummy otool64; ac_word=$2 8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8016printf %s "checking for $ac_word... " >&6; } 8017if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8018then : 8019 printf %s "(cached) " >&6 8020else $as_nop 8021 if test -n "$ac_ct_OTOOL64"; then 8022 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8023else 8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025for as_dir in $PATH 8026do 8027 IFS=$as_save_IFS 8028 case $as_dir in #((( 8029 '') as_dir=./ ;; 8030 */) ;; 8031 *) as_dir=$as_dir/ ;; 8032 esac 8033 for ac_exec_ext in '' $ac_executable_extensions; do 8034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8035 ac_cv_prog_ac_ct_OTOOL64="otool64" 8036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8037 break 2 8038 fi 8039done 8040 done 8041IFS=$as_save_IFS 8042 8043fi 8044fi 8045ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8046if test -n "$ac_ct_OTOOL64"; then 8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8048printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8049else 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8051printf "%s\n" "no" >&6; } 8052fi 8053 8054 if test "x$ac_ct_OTOOL64" = x; then 8055 OTOOL64=":" 8056 else 8057 case $cross_compiling:$ac_tool_warned in 8058yes:) 8059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8060printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8061ac_tool_warned=yes ;; 8062esac 8063 OTOOL64=$ac_ct_OTOOL64 8064 fi 8065else 8066 OTOOL64="$ac_cv_prog_OTOOL64" 8067fi 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8096printf %s "checking for -single_module linker flag... " >&6; } 8097if test ${lt_cv_apple_cc_single_mod+y} 8098then : 8099 printf %s "(cached) " >&6 8100else $as_nop 8101 lt_cv_apple_cc_single_mod=no 8102 if test -z "$LT_MULTI_MODULE"; then 8103 # By default we will add the -single_module flag. You can override 8104 # by either setting the environment variable LT_MULTI_MODULE 8105 # non-empty at configure time, or by adding -multi_module to the 8106 # link flags. 8107 rm -rf libconftest.dylib* 8108 echo "int foo(void){return 1;}" > conftest.c 8109 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8110-dynamiclib -Wl,-single_module conftest.c" >&5 8111 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8112 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8113 _lt_result=$? 8114 # If there is a non-empty error log, and "single_module" 8115 # appears in it, assume the flag caused a linker warning 8116 if test -s conftest.err && $GREP single_module conftest.err; then 8117 cat conftest.err >&5 8118 # Otherwise, if the output was created with a 0 exit code from 8119 # the compiler, it worked. 8120 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8121 lt_cv_apple_cc_single_mod=yes 8122 else 8123 cat conftest.err >&5 8124 fi 8125 rm -rf libconftest.dylib* 8126 rm -f conftest.* 8127 fi 8128fi 8129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8130printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8131 8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8133printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8134if test ${lt_cv_ld_exported_symbols_list+y} 8135then : 8136 printf %s "(cached) " >&6 8137else $as_nop 8138 lt_cv_ld_exported_symbols_list=no 8139 save_LDFLAGS=$LDFLAGS 8140 echo "_main" > conftest.sym 8141 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8143/* end confdefs.h. */ 8144 8145int 8146main (void) 8147{ 8148 8149 ; 8150 return 0; 8151} 8152_ACEOF 8153if ac_fn_c_try_link "$LINENO" 8154then : 8155 lt_cv_ld_exported_symbols_list=yes 8156else $as_nop 8157 lt_cv_ld_exported_symbols_list=no 8158fi 8159rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8160 conftest$ac_exeext conftest.$ac_ext 8161 LDFLAGS=$save_LDFLAGS 8162 8163fi 8164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8165printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8166 8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8168printf %s "checking for -force_load linker flag... " >&6; } 8169if test ${lt_cv_ld_force_load+y} 8170then : 8171 printf %s "(cached) " >&6 8172else $as_nop 8173 lt_cv_ld_force_load=no 8174 cat > conftest.c << _LT_EOF 8175int forced_loaded() { return 2;} 8176_LT_EOF 8177 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8178 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8179 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8180 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8181 echo "$RANLIB libconftest.a" >&5 8182 $RANLIB libconftest.a 2>&5 8183 cat > conftest.c << _LT_EOF 8184int main() { return 0;} 8185_LT_EOF 8186 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8187 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8188 _lt_result=$? 8189 if test -s conftest.err && $GREP force_load conftest.err; then 8190 cat conftest.err >&5 8191 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8192 lt_cv_ld_force_load=yes 8193 else 8194 cat conftest.err >&5 8195 fi 8196 rm -f conftest.err libconftest.a conftest conftest.c 8197 rm -rf conftest.dSYM 8198 8199fi 8200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8201printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8202 case $host_os in 8203 rhapsody* | darwin1.[012]) 8204 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8205 darwin1.*) 8206 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8207 darwin*) 8208 case $MACOSX_DEPLOYMENT_TARGET,$host in 8209 10.[012],*|,*powerpc*-darwin[5-8]*) 8210 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8211 *) 8212 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8213 esac 8214 ;; 8215 esac 8216 if test yes = "$lt_cv_apple_cc_single_mod"; then 8217 _lt_dar_single_mod='$single_module' 8218 fi 8219 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8220 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8221 else 8222 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8223 fi 8224 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8225 _lt_dsymutil='~$DSYMUTIL $lib || :' 8226 else 8227 _lt_dsymutil= 8228 fi 8229 ;; 8230 esac 8231 8232# func_munge_path_list VARIABLE PATH 8233# ----------------------------------- 8234# VARIABLE is name of variable containing _space_ separated list of 8235# directories to be munged by the contents of PATH, which is string 8236# having a format: 8237# "DIR[:DIR]:" 8238# string "DIR[ DIR]" will be prepended to VARIABLE 8239# ":DIR[:DIR]" 8240# string "DIR[ DIR]" will be appended to VARIABLE 8241# "DIRP[:DIRP]::[DIRA:]DIRA" 8242# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8243# "DIRA[ DIRA]" will be appended to VARIABLE 8244# "DIR[:DIR]" 8245# VARIABLE will be replaced by "DIR[ DIR]" 8246func_munge_path_list () 8247{ 8248 case x$2 in 8249 x) 8250 ;; 8251 *:) 8252 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8253 ;; 8254 x:*) 8255 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8256 ;; 8257 *::*) 8258 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8259 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8260 ;; 8261 *) 8262 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8263 ;; 8264 esac 8265} 8266 8267ac_header= ac_cache= 8268for ac_item in $ac_header_c_list 8269do 8270 if test $ac_cache; then 8271 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8272 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8273 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8274 fi 8275 ac_header= ac_cache= 8276 elif test $ac_header; then 8277 ac_cache=$ac_item 8278 else 8279 ac_header=$ac_item 8280 fi 8281done 8282 8283 8284 8285 8286 8287 8288 8289 8290if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8291then : 8292 8293printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8294 8295fi 8296ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8297" 8298if test "x$ac_cv_header_dlfcn_h" = xyes 8299then : 8300 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8301 8302fi 8303 8304 8305 8306 8307 8308# Set options 8309 8310 8311 8312 enable_dlopen=no 8313 8314 8315 enable_win32_dll=no 8316 8317 8318 # Check whether --enable-shared was given. 8319if test ${enable_shared+y} 8320then : 8321 enableval=$enable_shared; p=${PACKAGE-default} 8322 case $enableval in 8323 yes) enable_shared=yes ;; 8324 no) enable_shared=no ;; 8325 *) 8326 enable_shared=no 8327 # Look at the argument we got. We use all the common list separators. 8328 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8329 for pkg in $enableval; do 8330 IFS=$lt_save_ifs 8331 if test "X$pkg" = "X$p"; then 8332 enable_shared=yes 8333 fi 8334 done 8335 IFS=$lt_save_ifs 8336 ;; 8337 esac 8338else $as_nop 8339 enable_shared=yes 8340fi 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 # Check whether --enable-static was given. 8351if test ${enable_static+y} 8352then : 8353 enableval=$enable_static; p=${PACKAGE-default} 8354 case $enableval in 8355 yes) enable_static=yes ;; 8356 no) enable_static=no ;; 8357 *) 8358 enable_static=no 8359 # Look at the argument we got. We use all the common list separators. 8360 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8361 for pkg in $enableval; do 8362 IFS=$lt_save_ifs 8363 if test "X$pkg" = "X$p"; then 8364 enable_static=yes 8365 fi 8366 done 8367 IFS=$lt_save_ifs 8368 ;; 8369 esac 8370else $as_nop 8371 enable_static=yes 8372fi 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383# Check whether --with-pic was given. 8384if test ${with_pic+y} 8385then : 8386 withval=$with_pic; lt_p=${PACKAGE-default} 8387 case $withval in 8388 yes|no) pic_mode=$withval ;; 8389 *) 8390 pic_mode=default 8391 # Look at the argument we got. We use all the common list separators. 8392 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8393 for lt_pkg in $withval; do 8394 IFS=$lt_save_ifs 8395 if test "X$lt_pkg" = "X$lt_p"; then 8396 pic_mode=yes 8397 fi 8398 done 8399 IFS=$lt_save_ifs 8400 ;; 8401 esac 8402else $as_nop 8403 pic_mode=default 8404fi 8405 8406 8407 8408 8409 8410 8411 8412 8413 # Check whether --enable-fast-install was given. 8414if test ${enable_fast_install+y} 8415then : 8416 enableval=$enable_fast_install; p=${PACKAGE-default} 8417 case $enableval in 8418 yes) enable_fast_install=yes ;; 8419 no) enable_fast_install=no ;; 8420 *) 8421 enable_fast_install=no 8422 # Look at the argument we got. We use all the common list separators. 8423 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8424 for pkg in $enableval; do 8425 IFS=$lt_save_ifs 8426 if test "X$pkg" = "X$p"; then 8427 enable_fast_install=yes 8428 fi 8429 done 8430 IFS=$lt_save_ifs 8431 ;; 8432 esac 8433else $as_nop 8434 enable_fast_install=yes 8435fi 8436 8437 8438 8439 8440 8441 8442 8443 8444 shared_archive_member_spec= 8445case $host,$enable_shared in 8446power*-*-aix[5-9]*,yes) 8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8448printf %s "checking which variant of shared library versioning to provide... " >&6; } 8449 8450# Check whether --with-aix-soname was given. 8451if test ${with_aix_soname+y} 8452then : 8453 withval=$with_aix_soname; case $withval in 8454 aix|svr4|both) 8455 ;; 8456 *) 8457 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8458 ;; 8459 esac 8460 lt_cv_with_aix_soname=$with_aix_soname 8461else $as_nop 8462 if test ${lt_cv_with_aix_soname+y} 8463then : 8464 printf %s "(cached) " >&6 8465else $as_nop 8466 lt_cv_with_aix_soname=aix 8467fi 8468 8469 with_aix_soname=$lt_cv_with_aix_soname 8470fi 8471 8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8473printf "%s\n" "$with_aix_soname" >&6; } 8474 if test aix != "$with_aix_soname"; then 8475 # For the AIX way of multilib, we name the shared archive member 8476 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8477 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8478 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8479 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8480 if test 64 = "${OBJECT_MODE-32}"; then 8481 shared_archive_member_spec=shr_64 8482 else 8483 shared_archive_member_spec=shr 8484 fi 8485 fi 8486 ;; 8487*) 8488 with_aix_soname=aix 8489 ;; 8490esac 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501# This can be used to rebuild libtool when needed 8502LIBTOOL_DEPS=$ltmain 8503 8504# Always use our own libtool. 8505LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536test -z "$LN_S" && LN_S="ln -s" 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551if test -n "${ZSH_VERSION+set}"; then 8552 setopt NO_GLOB_SUBST 8553fi 8554 8555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8556printf %s "checking for objdir... " >&6; } 8557if test ${lt_cv_objdir+y} 8558then : 8559 printf %s "(cached) " >&6 8560else $as_nop 8561 rm -f .libs 2>/dev/null 8562mkdir .libs 2>/dev/null 8563if test -d .libs; then 8564 lt_cv_objdir=.libs 8565else 8566 # MS-DOS does not allow filenames that begin with a dot. 8567 lt_cv_objdir=_libs 8568fi 8569rmdir .libs 2>/dev/null 8570fi 8571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8572printf "%s\n" "$lt_cv_objdir" >&6; } 8573objdir=$lt_cv_objdir 8574 8575 8576 8577 8578 8579printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8580 8581 8582 8583 8584case $host_os in 8585aix3*) 8586 # AIX sometimes has problems with the GCC collect2 program. For some 8587 # reason, if we set the COLLECT_NAMES environment variable, the problems 8588 # vanish in a puff of smoke. 8589 if test set != "${COLLECT_NAMES+set}"; then 8590 COLLECT_NAMES= 8591 export COLLECT_NAMES 8592 fi 8593 ;; 8594esac 8595 8596# Global variables: 8597ofile=libtool 8598can_build_shared=yes 8599 8600# All known linkers require a '.a' archive for static linking (except MSVC and 8601# ICC, which need '.lib'). 8602libext=a 8603 8604with_gnu_ld=$lt_cv_prog_gnu_ld 8605 8606old_CC=$CC 8607old_CFLAGS=$CFLAGS 8608 8609# Set sane defaults for various variables 8610test -z "$CC" && CC=cc 8611test -z "$LTCC" && LTCC=$CC 8612test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8613test -z "$LD" && LD=ld 8614test -z "$ac_objext" && ac_objext=o 8615 8616func_cc_basename $compiler 8617cc_basename=$func_cc_basename_result 8618 8619 8620# Only perform the check for file, if the check method requires it 8621test -z "$MAGIC_CMD" && MAGIC_CMD=file 8622case $deplibs_check_method in 8623file_magic*) 8624 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8626printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8627if test ${lt_cv_path_MAGIC_CMD+y} 8628then : 8629 printf %s "(cached) " >&6 8630else $as_nop 8631 case $MAGIC_CMD in 8632[\\/*] | ?:[\\/]*) 8633 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8634 ;; 8635*) 8636 lt_save_MAGIC_CMD=$MAGIC_CMD 8637 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8638 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8639 for ac_dir in $ac_dummy; do 8640 IFS=$lt_save_ifs 8641 test -z "$ac_dir" && ac_dir=. 8642 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8643 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8644 if test -n "$file_magic_test_file"; then 8645 case $deplibs_check_method in 8646 "file_magic "*) 8647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8648 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8650 $EGREP "$file_magic_regex" > /dev/null; then 8651 : 8652 else 8653 cat <<_LT_EOF 1>&2 8654 8655*** Warning: the command libtool uses to detect shared libraries, 8656*** $file_magic_cmd, produces output that libtool cannot recognize. 8657*** The result is that libtool may fail to recognize shared libraries 8658*** as such. This will affect the creation of libtool libraries that 8659*** depend on shared libraries, but programs linked with such libtool 8660*** libraries will work regardless of this problem. Nevertheless, you 8661*** may want to report the problem to your system manager and/or to 8662*** bug-libtool@gnu.org 8663 8664_LT_EOF 8665 fi ;; 8666 esac 8667 fi 8668 break 8669 fi 8670 done 8671 IFS=$lt_save_ifs 8672 MAGIC_CMD=$lt_save_MAGIC_CMD 8673 ;; 8674esac 8675fi 8676 8677MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8678if test -n "$MAGIC_CMD"; then 8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8680printf "%s\n" "$MAGIC_CMD" >&6; } 8681else 8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8683printf "%s\n" "no" >&6; } 8684fi 8685 8686 8687 8688 8689 8690if test -z "$lt_cv_path_MAGIC_CMD"; then 8691 if test -n "$ac_tool_prefix"; then 8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8693printf %s "checking for file... " >&6; } 8694if test ${lt_cv_path_MAGIC_CMD+y} 8695then : 8696 printf %s "(cached) " >&6 8697else $as_nop 8698 case $MAGIC_CMD in 8699[\\/*] | ?:[\\/]*) 8700 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8701 ;; 8702*) 8703 lt_save_MAGIC_CMD=$MAGIC_CMD 8704 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8706 for ac_dir in $ac_dummy; do 8707 IFS=$lt_save_ifs 8708 test -z "$ac_dir" && ac_dir=. 8709 if test -f "$ac_dir/file"; then 8710 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8711 if test -n "$file_magic_test_file"; then 8712 case $deplibs_check_method in 8713 "file_magic "*) 8714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8715 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8717 $EGREP "$file_magic_regex" > /dev/null; then 8718 : 8719 else 8720 cat <<_LT_EOF 1>&2 8721 8722*** Warning: the command libtool uses to detect shared libraries, 8723*** $file_magic_cmd, produces output that libtool cannot recognize. 8724*** The result is that libtool may fail to recognize shared libraries 8725*** as such. This will affect the creation of libtool libraries that 8726*** depend on shared libraries, but programs linked with such libtool 8727*** libraries will work regardless of this problem. Nevertheless, you 8728*** may want to report the problem to your system manager and/or to 8729*** bug-libtool@gnu.org 8730 8731_LT_EOF 8732 fi ;; 8733 esac 8734 fi 8735 break 8736 fi 8737 done 8738 IFS=$lt_save_ifs 8739 MAGIC_CMD=$lt_save_MAGIC_CMD 8740 ;; 8741esac 8742fi 8743 8744MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8745if test -n "$MAGIC_CMD"; then 8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8747printf "%s\n" "$MAGIC_CMD" >&6; } 8748else 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8750printf "%s\n" "no" >&6; } 8751fi 8752 8753 8754 else 8755 MAGIC_CMD=: 8756 fi 8757fi 8758 8759 fi 8760 ;; 8761esac 8762 8763# Use C for the default configuration in the libtool script 8764 8765lt_save_CC=$CC 8766ac_ext=c 8767ac_cpp='$CPP $CPPFLAGS' 8768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8770ac_compiler_gnu=$ac_cv_c_compiler_gnu 8771 8772 8773# Source file extension for C test sources. 8774ac_ext=c 8775 8776# Object file extension for compiled C test sources. 8777objext=o 8778objext=$objext 8779 8780# Code to be used in simple compile tests 8781lt_simple_compile_test_code="int some_variable = 0;" 8782 8783# Code to be used in simple link tests 8784lt_simple_link_test_code='int main(){return(0);}' 8785 8786 8787 8788 8789 8790 8791 8792# If no C compiler was specified, use CC. 8793LTCC=${LTCC-"$CC"} 8794 8795# If no C compiler flags were specified, use CFLAGS. 8796LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8797 8798# Allow CC to be a program name with arguments. 8799compiler=$CC 8800 8801# Save the default compiler, since it gets overwritten when the other 8802# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8803compiler_DEFAULT=$CC 8804 8805# save warnings/boilerplate of simple test code 8806ac_outfile=conftest.$ac_objext 8807echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8808eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8809_lt_compiler_boilerplate=`cat conftest.err` 8810$RM conftest* 8811 8812ac_outfile=conftest.$ac_objext 8813echo "$lt_simple_link_test_code" >conftest.$ac_ext 8814eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8815_lt_linker_boilerplate=`cat conftest.err` 8816$RM -r conftest* 8817 8818 8819if test -n "$compiler"; then 8820 8821lt_prog_compiler_no_builtin_flag= 8822 8823if test yes = "$GCC"; then 8824 case $cc_basename in 8825 nvcc*) 8826 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8827 *) 8828 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8829 esac 8830 8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8832printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8833if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8834then : 8835 printf %s "(cached) " >&6 8836else $as_nop 8837 lt_cv_prog_compiler_rtti_exceptions=no 8838 ac_outfile=conftest.$ac_objext 8839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8840 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8841 # Insert the option either (1) after the last *FLAGS variable, or 8842 # (2) before a word containing "conftest.", or (3) at the end. 8843 # Note that $ac_compile itself does not contain backslashes and begins 8844 # with a dollar sign (not a hyphen), so the echo should work correctly. 8845 # The option is referenced via a variable to avoid confusing sed. 8846 lt_compile=`echo "$ac_compile" | $SED \ 8847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8849 -e 's:$: $lt_compiler_flag:'` 8850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8851 (eval "$lt_compile" 2>conftest.err) 8852 ac_status=$? 8853 cat conftest.err >&5 8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8855 if (exit $ac_status) && test -s "$ac_outfile"; then 8856 # The compiler can only warn and ignore the option if not recognized 8857 # So say no if there are warnings other than the usual output. 8858 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8859 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8860 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8861 lt_cv_prog_compiler_rtti_exceptions=yes 8862 fi 8863 fi 8864 $RM conftest* 8865 8866fi 8867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8868printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8869 8870if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8871 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8872else 8873 : 8874fi 8875 8876fi 8877 8878 8879 8880 8881 8882 8883 lt_prog_compiler_wl= 8884lt_prog_compiler_pic= 8885lt_prog_compiler_static= 8886 8887 8888 if test yes = "$GCC"; then 8889 lt_prog_compiler_wl='-Wl,' 8890 lt_prog_compiler_static='-static' 8891 8892 case $host_os in 8893 aix*) 8894 # All AIX code is PIC. 8895 if test ia64 = "$host_cpu"; then 8896 # AIX 5 now supports IA64 processor 8897 lt_prog_compiler_static='-Bstatic' 8898 fi 8899 lt_prog_compiler_pic='-fPIC' 8900 ;; 8901 8902 amigaos*) 8903 case $host_cpu in 8904 powerpc) 8905 # see comment about AmigaOS4 .so support 8906 lt_prog_compiler_pic='-fPIC' 8907 ;; 8908 m68k) 8909 # FIXME: we need at least 68020 code to build shared libraries, but 8910 # adding the '-m68020' flag to GCC prevents building anything better, 8911 # like '-m68040'. 8912 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8913 ;; 8914 esac 8915 ;; 8916 8917 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8918 # PIC is the default for these OSes. 8919 ;; 8920 8921 mingw* | cygwin* | pw32* | os2* | cegcc*) 8922 # This hack is so that the source file can tell whether it is being 8923 # built for inclusion in a dll (and should export symbols for example). 8924 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8925 # (--disable-auto-import) libraries 8926 lt_prog_compiler_pic='-DDLL_EXPORT' 8927 case $host_os in 8928 os2*) 8929 lt_prog_compiler_static='$wl-static' 8930 ;; 8931 esac 8932 ;; 8933 8934 darwin* | rhapsody*) 8935 # PIC is the default on this platform 8936 # Common symbols not allowed in MH_DYLIB files 8937 lt_prog_compiler_pic='-fno-common' 8938 ;; 8939 8940 haiku*) 8941 # PIC is the default for Haiku. 8942 # The "-static" flag exists, but is broken. 8943 lt_prog_compiler_static= 8944 ;; 8945 8946 hpux*) 8947 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8948 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8949 # sets the default TLS model and affects inlining. 8950 case $host_cpu in 8951 hppa*64*) 8952 # +Z the default 8953 ;; 8954 *) 8955 lt_prog_compiler_pic='-fPIC' 8956 ;; 8957 esac 8958 ;; 8959 8960 interix[3-9]*) 8961 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8962 # Instead, we relocate shared libraries at runtime. 8963 ;; 8964 8965 msdosdjgpp*) 8966 # Just because we use GCC doesn't mean we suddenly get shared libraries 8967 # on systems that don't support them. 8968 lt_prog_compiler_can_build_shared=no 8969 enable_shared=no 8970 ;; 8971 8972 *nto* | *qnx*) 8973 # QNX uses GNU C++, but need to define -shared option too, otherwise 8974 # it will coredump. 8975 lt_prog_compiler_pic='-fPIC -shared' 8976 ;; 8977 8978 sysv4*MP*) 8979 if test -d /usr/nec; then 8980 lt_prog_compiler_pic=-Kconform_pic 8981 fi 8982 ;; 8983 8984 *) 8985 lt_prog_compiler_pic='-fPIC' 8986 ;; 8987 esac 8988 8989 case $cc_basename in 8990 nvcc*) # Cuda Compiler Driver 2.2 8991 lt_prog_compiler_wl='-Xlinker ' 8992 if test -n "$lt_prog_compiler_pic"; then 8993 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8994 fi 8995 ;; 8996 esac 8997 else 8998 # PORTME Check for flag to pass linker flags through the system compiler. 8999 case $host_os in 9000 aix*) 9001 lt_prog_compiler_wl='-Wl,' 9002 if test ia64 = "$host_cpu"; then 9003 # AIX 5 now supports IA64 processor 9004 lt_prog_compiler_static='-Bstatic' 9005 else 9006 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9007 fi 9008 ;; 9009 9010 darwin* | rhapsody*) 9011 # PIC is the default on this platform 9012 # Common symbols not allowed in MH_DYLIB files 9013 lt_prog_compiler_pic='-fno-common' 9014 case $cc_basename in 9015 nagfor*) 9016 # NAG Fortran compiler 9017 lt_prog_compiler_wl='-Wl,-Wl,,' 9018 lt_prog_compiler_pic='-PIC' 9019 lt_prog_compiler_static='-Bstatic' 9020 ;; 9021 esac 9022 ;; 9023 9024 mingw* | cygwin* | pw32* | os2* | cegcc*) 9025 # This hack is so that the source file can tell whether it is being 9026 # built for inclusion in a dll (and should export symbols for example). 9027 lt_prog_compiler_pic='-DDLL_EXPORT' 9028 case $host_os in 9029 os2*) 9030 lt_prog_compiler_static='$wl-static' 9031 ;; 9032 esac 9033 ;; 9034 9035 hpux9* | hpux10* | hpux11*) 9036 lt_prog_compiler_wl='-Wl,' 9037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9038 # not for PA HP-UX. 9039 case $host_cpu in 9040 hppa*64*|ia64*) 9041 # +Z the default 9042 ;; 9043 *) 9044 lt_prog_compiler_pic='+Z' 9045 ;; 9046 esac 9047 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9048 lt_prog_compiler_static='$wl-a ${wl}archive' 9049 ;; 9050 9051 irix5* | irix6* | nonstopux*) 9052 lt_prog_compiler_wl='-Wl,' 9053 # PIC (with -KPIC) is the default. 9054 lt_prog_compiler_static='-non_shared' 9055 ;; 9056 9057 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9058 case $cc_basename in 9059 # old Intel for x86_64, which still supported -KPIC. 9060 ecc*) 9061 lt_prog_compiler_wl='-Wl,' 9062 lt_prog_compiler_pic='-KPIC' 9063 lt_prog_compiler_static='-static' 9064 ;; 9065 # icc used to be incompatible with GCC. 9066 # ICC 10 doesn't accept -KPIC any more. 9067 icc* | ifort*) 9068 lt_prog_compiler_wl='-Wl,' 9069 lt_prog_compiler_pic='-fPIC' 9070 lt_prog_compiler_static='-static' 9071 ;; 9072 # Lahey Fortran 8.1. 9073 lf95*) 9074 lt_prog_compiler_wl='-Wl,' 9075 lt_prog_compiler_pic='--shared' 9076 lt_prog_compiler_static='--static' 9077 ;; 9078 nagfor*) 9079 # NAG Fortran compiler 9080 lt_prog_compiler_wl='-Wl,-Wl,,' 9081 lt_prog_compiler_pic='-PIC' 9082 lt_prog_compiler_static='-Bstatic' 9083 ;; 9084 tcc*) 9085 # Fabrice Bellard et al's Tiny C Compiler 9086 lt_prog_compiler_wl='-Wl,' 9087 lt_prog_compiler_pic='-fPIC' 9088 lt_prog_compiler_static='-static' 9089 ;; 9090 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9091 # Portland Group compilers (*not* the Pentium gcc compiler, 9092 # which looks to be a dead project) 9093 lt_prog_compiler_wl='-Wl,' 9094 lt_prog_compiler_pic='-fpic' 9095 lt_prog_compiler_static='-Bstatic' 9096 ;; 9097 ccc*) 9098 lt_prog_compiler_wl='-Wl,' 9099 # All Alpha code is PIC. 9100 lt_prog_compiler_static='-non_shared' 9101 ;; 9102 xl* | bgxl* | bgf* | mpixl*) 9103 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9104 lt_prog_compiler_wl='-Wl,' 9105 lt_prog_compiler_pic='-qpic' 9106 lt_prog_compiler_static='-qstaticlink' 9107 ;; 9108 *) 9109 case `$CC -V 2>&1 | $SED 5q` in 9110 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9111 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9112 lt_prog_compiler_pic='-KPIC' 9113 lt_prog_compiler_static='-Bstatic' 9114 lt_prog_compiler_wl='' 9115 ;; 9116 *Sun\ F* | *Sun*Fortran*) 9117 lt_prog_compiler_pic='-KPIC' 9118 lt_prog_compiler_static='-Bstatic' 9119 lt_prog_compiler_wl='-Qoption ld ' 9120 ;; 9121 *Sun\ C*) 9122 # Sun C 5.9 9123 lt_prog_compiler_pic='-KPIC' 9124 lt_prog_compiler_static='-Bstatic' 9125 lt_prog_compiler_wl='-Wl,' 9126 ;; 9127 *Intel*\ [CF]*Compiler*) 9128 lt_prog_compiler_wl='-Wl,' 9129 lt_prog_compiler_pic='-fPIC' 9130 lt_prog_compiler_static='-static' 9131 ;; 9132 *Portland\ Group*) 9133 lt_prog_compiler_wl='-Wl,' 9134 lt_prog_compiler_pic='-fpic' 9135 lt_prog_compiler_static='-Bstatic' 9136 ;; 9137 esac 9138 ;; 9139 esac 9140 ;; 9141 9142 newsos6) 9143 lt_prog_compiler_pic='-KPIC' 9144 lt_prog_compiler_static='-Bstatic' 9145 ;; 9146 9147 *nto* | *qnx*) 9148 # QNX uses GNU C++, but need to define -shared option too, otherwise 9149 # it will coredump. 9150 lt_prog_compiler_pic='-fPIC -shared' 9151 ;; 9152 9153 osf3* | osf4* | osf5*) 9154 lt_prog_compiler_wl='-Wl,' 9155 # All OSF/1 code is PIC. 9156 lt_prog_compiler_static='-non_shared' 9157 ;; 9158 9159 rdos*) 9160 lt_prog_compiler_static='-non_shared' 9161 ;; 9162 9163 solaris*) 9164 lt_prog_compiler_pic='-KPIC' 9165 lt_prog_compiler_static='-Bstatic' 9166 case $cc_basename in 9167 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9168 lt_prog_compiler_wl='-Qoption ld ';; 9169 *) 9170 lt_prog_compiler_wl='-Wl,';; 9171 esac 9172 ;; 9173 9174 sunos4*) 9175 lt_prog_compiler_wl='-Qoption ld ' 9176 lt_prog_compiler_pic='-PIC' 9177 lt_prog_compiler_static='-Bstatic' 9178 ;; 9179 9180 sysv4 | sysv4.2uw2* | sysv4.3*) 9181 lt_prog_compiler_wl='-Wl,' 9182 lt_prog_compiler_pic='-KPIC' 9183 lt_prog_compiler_static='-Bstatic' 9184 ;; 9185 9186 sysv4*MP*) 9187 if test -d /usr/nec; then 9188 lt_prog_compiler_pic='-Kconform_pic' 9189 lt_prog_compiler_static='-Bstatic' 9190 fi 9191 ;; 9192 9193 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9194 lt_prog_compiler_wl='-Wl,' 9195 lt_prog_compiler_pic='-KPIC' 9196 lt_prog_compiler_static='-Bstatic' 9197 ;; 9198 9199 unicos*) 9200 lt_prog_compiler_wl='-Wl,' 9201 lt_prog_compiler_can_build_shared=no 9202 ;; 9203 9204 uts4*) 9205 lt_prog_compiler_pic='-pic' 9206 lt_prog_compiler_static='-Bstatic' 9207 ;; 9208 9209 *) 9210 lt_prog_compiler_can_build_shared=no 9211 ;; 9212 esac 9213 fi 9214 9215case $host_os in 9216 # For platforms that do not support PIC, -DPIC is meaningless: 9217 *djgpp*) 9218 lt_prog_compiler_pic= 9219 ;; 9220 *) 9221 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9222 ;; 9223esac 9224 9225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9226printf %s "checking for $compiler option to produce PIC... " >&6; } 9227if test ${lt_cv_prog_compiler_pic+y} 9228then : 9229 printf %s "(cached) " >&6 9230else $as_nop 9231 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9232fi 9233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9234printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9235lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9236 9237# 9238# Check to make sure the PIC flag actually works. 9239# 9240if test -n "$lt_prog_compiler_pic"; then 9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9242printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9243if test ${lt_cv_prog_compiler_pic_works+y} 9244then : 9245 printf %s "(cached) " >&6 9246else $as_nop 9247 lt_cv_prog_compiler_pic_works=no 9248 ac_outfile=conftest.$ac_objext 9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9250 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9251 # Insert the option either (1) after the last *FLAGS variable, or 9252 # (2) before a word containing "conftest.", or (3) at the end. 9253 # Note that $ac_compile itself does not contain backslashes and begins 9254 # with a dollar sign (not a hyphen), so the echo should work correctly. 9255 # The option is referenced via a variable to avoid confusing sed. 9256 lt_compile=`echo "$ac_compile" | $SED \ 9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9259 -e 's:$: $lt_compiler_flag:'` 9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9261 (eval "$lt_compile" 2>conftest.err) 9262 ac_status=$? 9263 cat conftest.err >&5 9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9265 if (exit $ac_status) && test -s "$ac_outfile"; then 9266 # The compiler can only warn and ignore the option if not recognized 9267 # So say no if there are warnings other than the usual output. 9268 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9271 lt_cv_prog_compiler_pic_works=yes 9272 fi 9273 fi 9274 $RM conftest* 9275 9276fi 9277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9278printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9279 9280if test yes = "$lt_cv_prog_compiler_pic_works"; then 9281 case $lt_prog_compiler_pic in 9282 "" | " "*) ;; 9283 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9284 esac 9285else 9286 lt_prog_compiler_pic= 9287 lt_prog_compiler_can_build_shared=no 9288fi 9289 9290fi 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302# 9303# Check to make sure the static flag actually works. 9304# 9305wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9307printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9308if test ${lt_cv_prog_compiler_static_works+y} 9309then : 9310 printf %s "(cached) " >&6 9311else $as_nop 9312 lt_cv_prog_compiler_static_works=no 9313 save_LDFLAGS=$LDFLAGS 9314 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9315 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9316 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9317 # The linker can only warn and ignore the option if not recognized 9318 # So say no if there are warnings 9319 if test -s conftest.err; then 9320 # Append any errors to the config.log. 9321 cat conftest.err 1>&5 9322 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9324 if diff conftest.exp conftest.er2 >/dev/null; then 9325 lt_cv_prog_compiler_static_works=yes 9326 fi 9327 else 9328 lt_cv_prog_compiler_static_works=yes 9329 fi 9330 fi 9331 $RM -r conftest* 9332 LDFLAGS=$save_LDFLAGS 9333 9334fi 9335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9336printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9337 9338if test yes = "$lt_cv_prog_compiler_static_works"; then 9339 : 9340else 9341 lt_prog_compiler_static= 9342fi 9343 9344 9345 9346 9347 9348 9349 9350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9351printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9352if test ${lt_cv_prog_compiler_c_o+y} 9353then : 9354 printf %s "(cached) " >&6 9355else $as_nop 9356 lt_cv_prog_compiler_c_o=no 9357 $RM -r conftest 2>/dev/null 9358 mkdir conftest 9359 cd conftest 9360 mkdir out 9361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9362 9363 lt_compiler_flag="-o out/conftest2.$ac_objext" 9364 # Insert the option either (1) after the last *FLAGS variable, or 9365 # (2) before a word containing "conftest.", or (3) at the end. 9366 # Note that $ac_compile itself does not contain backslashes and begins 9367 # with a dollar sign (not a hyphen), so the echo should work correctly. 9368 lt_compile=`echo "$ac_compile" | $SED \ 9369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9371 -e 's:$: $lt_compiler_flag:'` 9372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9373 (eval "$lt_compile" 2>out/conftest.err) 9374 ac_status=$? 9375 cat out/conftest.err >&5 9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9377 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9378 then 9379 # The compiler can only warn and ignore the option if not recognized 9380 # So say no if there are warnings 9381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9384 lt_cv_prog_compiler_c_o=yes 9385 fi 9386 fi 9387 chmod u+w . 2>&5 9388 $RM conftest* 9389 # SGI C++ compiler will create directory out/ii_files/ for 9390 # template instantiation 9391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9392 $RM out/* && rmdir out 9393 cd .. 9394 $RM -r conftest 9395 $RM conftest* 9396 9397fi 9398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9399printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9400 9401 9402 9403 9404 9405 9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9407printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9408if test ${lt_cv_prog_compiler_c_o+y} 9409then : 9410 printf %s "(cached) " >&6 9411else $as_nop 9412 lt_cv_prog_compiler_c_o=no 9413 $RM -r conftest 2>/dev/null 9414 mkdir conftest 9415 cd conftest 9416 mkdir out 9417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9418 9419 lt_compiler_flag="-o out/conftest2.$ac_objext" 9420 # Insert the option either (1) after the last *FLAGS variable, or 9421 # (2) before a word containing "conftest.", or (3) at the end. 9422 # Note that $ac_compile itself does not contain backslashes and begins 9423 # with a dollar sign (not a hyphen), so the echo should work correctly. 9424 lt_compile=`echo "$ac_compile" | $SED \ 9425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9427 -e 's:$: $lt_compiler_flag:'` 9428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9429 (eval "$lt_compile" 2>out/conftest.err) 9430 ac_status=$? 9431 cat out/conftest.err >&5 9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9433 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9434 then 9435 # The compiler can only warn and ignore the option if not recognized 9436 # So say no if there are warnings 9437 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9438 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9439 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9440 lt_cv_prog_compiler_c_o=yes 9441 fi 9442 fi 9443 chmod u+w . 2>&5 9444 $RM conftest* 9445 # SGI C++ compiler will create directory out/ii_files/ for 9446 # template instantiation 9447 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9448 $RM out/* && rmdir out 9449 cd .. 9450 $RM -r conftest 9451 $RM conftest* 9452 9453fi 9454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9455printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9456 9457 9458 9459 9460hard_links=nottested 9461if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9462 # do not overwrite the value of need_locks provided by the user 9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9464printf %s "checking if we can lock with hard links... " >&6; } 9465 hard_links=yes 9466 $RM conftest* 9467 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9468 touch conftest.a 9469 ln conftest.a conftest.b 2>&5 || hard_links=no 9470 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9472printf "%s\n" "$hard_links" >&6; } 9473 if test no = "$hard_links"; then 9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9475printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9476 need_locks=warn 9477 fi 9478else 9479 need_locks=no 9480fi 9481 9482 9483 9484 9485 9486 9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9488printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9489 9490 runpath_var= 9491 allow_undefined_flag= 9492 always_export_symbols=no 9493 archive_cmds= 9494 archive_expsym_cmds= 9495 compiler_needs_object=no 9496 enable_shared_with_static_runtimes=no 9497 export_dynamic_flag_spec= 9498 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9499 hardcode_automatic=no 9500 hardcode_direct=no 9501 hardcode_direct_absolute=no 9502 hardcode_libdir_flag_spec= 9503 hardcode_libdir_separator= 9504 hardcode_minus_L=no 9505 hardcode_shlibpath_var=unsupported 9506 inherit_rpath=no 9507 link_all_deplibs=unknown 9508 module_cmds= 9509 module_expsym_cmds= 9510 old_archive_from_new_cmds= 9511 old_archive_from_expsyms_cmds= 9512 thread_safe_flag_spec= 9513 whole_archive_flag_spec= 9514 # include_expsyms should be a list of space-separated symbols to be *always* 9515 # included in the symbol list 9516 include_expsyms= 9517 # exclude_expsyms can be an extended regexp of symbols to exclude 9518 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9519 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9520 # as well as any symbol that contains 'd'. 9521 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9522 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9523 # platforms (ab)use it in PIC code, but their linkers get confused if 9524 # the symbol is explicitly referenced. Since portable code cannot 9525 # rely on this symbol name, it's probably fine to never include it in 9526 # preloaded symbol tables. 9527 # Exclude shared library initialization/finalization symbols. 9528 extract_expsyms_cmds= 9529 9530 case $host_os in 9531 cygwin* | mingw* | pw32* | cegcc*) 9532 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9533 # When not using gcc, we currently assume that we are using 9534 # Microsoft Visual C++ or Intel C++ Compiler. 9535 if test yes != "$GCC"; then 9536 with_gnu_ld=no 9537 fi 9538 ;; 9539 interix*) 9540 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9541 with_gnu_ld=yes 9542 ;; 9543 openbsd* | bitrig*) 9544 with_gnu_ld=no 9545 ;; 9546 esac 9547 9548 ld_shlibs=yes 9549 9550 # On some targets, GNU ld is compatible enough with the native linker 9551 # that we're better off using the native interface for both. 9552 lt_use_gnu_ld_interface=no 9553 if test yes = "$with_gnu_ld"; then 9554 case $host_os in 9555 aix*) 9556 # The AIX port of GNU ld has always aspired to compatibility 9557 # with the native linker. However, as the warning in the GNU ld 9558 # block says, versions before 2.19.5* couldn't really create working 9559 # shared libraries, regardless of the interface used. 9560 case `$LD -v 2>&1` in 9561 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9562 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9563 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9564 *) 9565 lt_use_gnu_ld_interface=yes 9566 ;; 9567 esac 9568 ;; 9569 *) 9570 lt_use_gnu_ld_interface=yes 9571 ;; 9572 esac 9573 fi 9574 9575 if test yes = "$lt_use_gnu_ld_interface"; then 9576 # If archive_cmds runs LD, not CC, wlarc should be empty 9577 wlarc='$wl' 9578 9579 # Set some defaults for GNU ld with shared library support. These 9580 # are reset later if shared libraries are not supported. Putting them 9581 # here allows them to be overridden if necessary. 9582 runpath_var=LD_RUN_PATH 9583 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9584 export_dynamic_flag_spec='$wl--export-dynamic' 9585 # ancient GNU ld didn't support --whole-archive et. al. 9586 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9587 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9588 else 9589 whole_archive_flag_spec= 9590 fi 9591 supports_anon_versioning=no 9592 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9593 *GNU\ gold*) supports_anon_versioning=yes ;; 9594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9597 *\ 2.11.*) ;; # other 2.11 versions 9598 *) supports_anon_versioning=yes ;; 9599 esac 9600 9601 # See if GNU ld supports shared libraries. 9602 case $host_os in 9603 aix[3-9]*) 9604 # On AIX/PPC, the GNU linker is very broken 9605 if test ia64 != "$host_cpu"; then 9606 ld_shlibs=no 9607 cat <<_LT_EOF 1>&2 9608 9609*** Warning: the GNU linker, at least up to release 2.19, is reported 9610*** to be unable to reliably create shared libraries on AIX. 9611*** Therefore, libtool is disabling shared libraries support. If you 9612*** really care for shared libraries, you may want to install binutils 9613*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9614*** You will then need to restart the configuration process. 9615 9616_LT_EOF 9617 fi 9618 ;; 9619 9620 amigaos*) 9621 case $host_cpu in 9622 powerpc) 9623 # see comment about AmigaOS4 .so support 9624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9625 archive_expsym_cmds='' 9626 ;; 9627 m68k) 9628 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)' 9629 hardcode_libdir_flag_spec='-L$libdir' 9630 hardcode_minus_L=yes 9631 ;; 9632 esac 9633 ;; 9634 9635 beos*) 9636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9637 allow_undefined_flag=unsupported 9638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9639 # support --undefined. This deserves some investigation. FIXME 9640 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9641 else 9642 ld_shlibs=no 9643 fi 9644 ;; 9645 9646 cygwin* | mingw* | pw32* | cegcc*) 9647 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9648 # as there is no search path for DLLs. 9649 hardcode_libdir_flag_spec='-L$libdir' 9650 export_dynamic_flag_spec='$wl--export-all-symbols' 9651 allow_undefined_flag=unsupported 9652 always_export_symbols=no 9653 enable_shared_with_static_runtimes=yes 9654 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' 9655 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9656 9657 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9659 # If the export-symbols file already is a .def file, use it as 9660 # is; otherwise, prepend EXPORTS... 9661 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9662 cp $export_symbols $output_objdir/$soname.def; 9663 else 9664 echo EXPORTS > $output_objdir/$soname.def; 9665 cat $export_symbols >> $output_objdir/$soname.def; 9666 fi~ 9667 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9668 else 9669 ld_shlibs=no 9670 fi 9671 ;; 9672 9673 haiku*) 9674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9675 link_all_deplibs=yes 9676 ;; 9677 9678 os2*) 9679 hardcode_libdir_flag_spec='-L$libdir' 9680 hardcode_minus_L=yes 9681 allow_undefined_flag=unsupported 9682 shrext_cmds=.dll 9683 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9684 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9685 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9686 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9687 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9688 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9689 emximp -o $lib $output_objdir/$libname.def' 9690 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9691 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9692 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9693 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9694 prefix_cmds="$SED"~ 9695 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9696 prefix_cmds="$prefix_cmds -e 1d"; 9697 fi~ 9698 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9699 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9700 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9701 emximp -o $lib $output_objdir/$libname.def' 9702 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9703 enable_shared_with_static_runtimes=yes 9704 file_list_spec='@' 9705 ;; 9706 9707 interix[3-9]*) 9708 hardcode_direct=no 9709 hardcode_shlibpath_var=no 9710 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9711 export_dynamic_flag_spec='$wl-E' 9712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9713 # Instead, shared libraries are loaded at an image base (0x10000000 by 9714 # default) and relocated if they conflict, which is a slow very memory 9715 # consuming and fragmenting process. To avoid this, we pick a random, 9716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9717 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9719 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' 9720 ;; 9721 9722 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9723 tmp_diet=no 9724 if test linux-dietlibc = "$host_os"; then 9725 case $cc_basename in 9726 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9727 esac 9728 fi 9729 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9730 && test no = "$tmp_diet" 9731 then 9732 tmp_addflag=' $pic_flag' 9733 tmp_sharedflag='-shared' 9734 case $cc_basename,$host_cpu in 9735 pgcc*) # Portland Group C compiler 9736 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' 9737 tmp_addflag=' $pic_flag' 9738 ;; 9739 pgf77* | pgf90* | pgf95* | pgfortran*) 9740 # Portland Group f77 and f90 compilers 9741 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' 9742 tmp_addflag=' $pic_flag -Mnomain' ;; 9743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9744 tmp_addflag=' -i_dynamic' ;; 9745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9746 tmp_addflag=' -i_dynamic -nofor_main' ;; 9747 ifc* | ifort*) # Intel Fortran compiler 9748 tmp_addflag=' -nofor_main' ;; 9749 lf95*) # Lahey Fortran 8.1 9750 whole_archive_flag_spec= 9751 tmp_sharedflag='--shared' ;; 9752 nagfor*) # NAGFOR 5.3 9753 tmp_sharedflag='-Wl,-shared' ;; 9754 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9755 tmp_sharedflag='-qmkshrobj' 9756 tmp_addflag= ;; 9757 nvcc*) # Cuda Compiler Driver 2.2 9758 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' 9759 compiler_needs_object=yes 9760 ;; 9761 esac 9762 case `$CC -V 2>&1 | $SED 5q` in 9763 *Sun\ C*) # Sun C 5.9 9764 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' 9765 compiler_needs_object=yes 9766 tmp_sharedflag='-G' ;; 9767 *Sun\ F*) # Sun Fortran 8.3 9768 tmp_sharedflag='-G' ;; 9769 esac 9770 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9771 9772 if test yes = "$supports_anon_versioning"; then 9773 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9774 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9775 echo "local: *; };" >> $output_objdir/$libname.ver~ 9776 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9777 fi 9778 9779 case $cc_basename in 9780 tcc*) 9781 export_dynamic_flag_spec='-rdynamic' 9782 ;; 9783 xlf* | bgf* | bgxlf* | mpixlf*) 9784 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9785 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9786 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9787 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9788 if test yes = "$supports_anon_versioning"; then 9789 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9790 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9791 echo "local: *; };" >> $output_objdir/$libname.ver~ 9792 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9793 fi 9794 ;; 9795 esac 9796 else 9797 ld_shlibs=no 9798 fi 9799 ;; 9800 9801 netbsd*) 9802 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9803 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9804 wlarc= 9805 else 9806 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9807 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9808 fi 9809 ;; 9810 9811 solaris*) 9812 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9813 ld_shlibs=no 9814 cat <<_LT_EOF 1>&2 9815 9816*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9817*** create shared libraries on Solaris systems. Therefore, libtool 9818*** is disabling shared libraries support. We urge you to upgrade GNU 9819*** binutils to release 2.9.1 or newer. Another option is to modify 9820*** your PATH or compiler configuration so that the native linker is 9821*** used, and then restart. 9822 9823_LT_EOF 9824 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9825 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9826 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9827 else 9828 ld_shlibs=no 9829 fi 9830 ;; 9831 9832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9833 case `$LD -v 2>&1` in 9834 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9835 ld_shlibs=no 9836 cat <<_LT_EOF 1>&2 9837 9838*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9839*** reliably create shared libraries on SCO systems. Therefore, libtool 9840*** is disabling shared libraries support. We urge you to upgrade GNU 9841*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9842*** your PATH or compiler configuration so that the native linker is 9843*** used, and then restart. 9844 9845_LT_EOF 9846 ;; 9847 *) 9848 # For security reasons, it is highly recommended that you always 9849 # use absolute paths for naming shared libraries, and exclude the 9850 # DT_RUNPATH tag from executables and libraries. But doing so 9851 # requires that you compile everything twice, which is a pain. 9852 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9855 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9856 else 9857 ld_shlibs=no 9858 fi 9859 ;; 9860 esac 9861 ;; 9862 9863 sunos4*) 9864 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9865 wlarc= 9866 hardcode_direct=yes 9867 hardcode_shlibpath_var=no 9868 ;; 9869 9870 *) 9871 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9874 else 9875 ld_shlibs=no 9876 fi 9877 ;; 9878 esac 9879 9880 if test no = "$ld_shlibs"; then 9881 runpath_var= 9882 hardcode_libdir_flag_spec= 9883 export_dynamic_flag_spec= 9884 whole_archive_flag_spec= 9885 fi 9886 else 9887 # PORTME fill in a description of your system's linker (not GNU ld) 9888 case $host_os in 9889 aix3*) 9890 allow_undefined_flag=unsupported 9891 always_export_symbols=yes 9892 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' 9893 # Note: this linker hardcodes the directories in LIBPATH if there 9894 # are no directories specified by -L. 9895 hardcode_minus_L=yes 9896 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9897 # Neither direct hardcoding nor static linking is supported with a 9898 # broken collect2. 9899 hardcode_direct=unsupported 9900 fi 9901 ;; 9902 9903 aix[4-9]*) 9904 if test ia64 = "$host_cpu"; then 9905 # On IA64, the linker does run time linking by default, so we don't 9906 # have to do anything special. 9907 aix_use_runtimelinking=no 9908 exp_sym_flag='-Bexport' 9909 no_entry_flag= 9910 else 9911 # If we're using GNU nm, then we don't want the "-C" option. 9912 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9913 # Without the "-l" option, or with the "-B" option, AIX nm treats 9914 # weak defined symbols like other global defined symbols, whereas 9915 # GNU nm marks them as "W". 9916 # While the 'weak' keyword is ignored in the Export File, we need 9917 # it in the Import File for the 'aix-soname' feature, so we have 9918 # to replace the "-B" option with "-P" for AIX nm. 9919 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9920 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' 9921 else 9922 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' 9923 fi 9924 aix_use_runtimelinking=no 9925 9926 # Test if we are trying to use run time linking or normal 9927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9928 # have runtime linking enabled, and use it for executables. 9929 # For shared libraries, we enable/disable runtime linking 9930 # depending on the kind of the shared library created - 9931 # when "with_aix_soname,aix_use_runtimelinking" is: 9932 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9933 # "aix,yes" lib.so shared, rtl:yes, for executables 9934 # lib.a static archive 9935 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9936 # lib.a(lib.so.V) shared, rtl:no, for executables 9937 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9938 # lib.a(lib.so.V) shared, rtl:no 9939 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9940 # lib.a static archive 9941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9942 for ld_flag in $LDFLAGS; do 9943 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9944 aix_use_runtimelinking=yes 9945 break 9946 fi 9947 done 9948 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9949 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9950 # so we don't have lib.a shared libs to link our executables. 9951 # We have to force runtime linking in this case. 9952 aix_use_runtimelinking=yes 9953 LDFLAGS="$LDFLAGS -Wl,-brtl" 9954 fi 9955 ;; 9956 esac 9957 9958 exp_sym_flag='-bexport' 9959 no_entry_flag='-bnoentry' 9960 fi 9961 9962 # When large executables or shared objects are built, AIX ld can 9963 # have problems creating the table of contents. If linking a library 9964 # or program results in "error TOC overflow" add -mminimal-toc to 9965 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9966 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9967 9968 archive_cmds='' 9969 hardcode_direct=yes 9970 hardcode_direct_absolute=yes 9971 hardcode_libdir_separator=':' 9972 link_all_deplibs=yes 9973 file_list_spec='$wl-f,' 9974 case $with_aix_soname,$aix_use_runtimelinking in 9975 aix,*) ;; # traditional, no import file 9976 svr4,* | *,yes) # use import file 9977 # The Import File defines what to hardcode. 9978 hardcode_direct=no 9979 hardcode_direct_absolute=no 9980 ;; 9981 esac 9982 9983 if test yes = "$GCC"; then 9984 case $host_os in aix4.[012]|aix4.[012].*) 9985 # We only want to do this on AIX 4.2 and lower, the check 9986 # below for broken collect2 doesn't work under 4.3+ 9987 collect2name=`$CC -print-prog-name=collect2` 9988 if test -f "$collect2name" && 9989 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9990 then 9991 # We have reworked collect2 9992 : 9993 else 9994 # We have old collect2 9995 hardcode_direct=unsupported 9996 # It fails to find uninstalled libraries when the uninstalled 9997 # path is not listed in the libpath. Setting hardcode_minus_L 9998 # to unsupported forces relinking 9999 hardcode_minus_L=yes 10000 hardcode_libdir_flag_spec='-L$libdir' 10001 hardcode_libdir_separator= 10002 fi 10003 ;; 10004 esac 10005 shared_flag='-shared' 10006 if test yes = "$aix_use_runtimelinking"; then 10007 shared_flag="$shared_flag "'$wl-G' 10008 fi 10009 # Need to ensure runtime linking is disabled for the traditional 10010 # shared library, or the linker may eventually find shared libraries 10011 # /with/ Import File - we do not want to mix them. 10012 shared_flag_aix='-shared' 10013 shared_flag_svr4='-shared $wl-G' 10014 else 10015 # not using gcc 10016 if test ia64 = "$host_cpu"; then 10017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10018 # chokes on -Wl,-G. The following line is correct: 10019 shared_flag='-G' 10020 else 10021 if test yes = "$aix_use_runtimelinking"; then 10022 shared_flag='$wl-G' 10023 else 10024 shared_flag='$wl-bM:SRE' 10025 fi 10026 shared_flag_aix='$wl-bM:SRE' 10027 shared_flag_svr4='$wl-G' 10028 fi 10029 fi 10030 10031 export_dynamic_flag_spec='$wl-bexpall' 10032 # It seems that -bexpall does not export symbols beginning with 10033 # underscore (_), so it is better to generate a list of symbols to export. 10034 always_export_symbols=yes 10035 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10036 # Warning - without using the other runtime loading flags (-brtl), 10037 # -berok will link without error, but may produce a broken library. 10038 allow_undefined_flag='-berok' 10039 # Determine the default libpath from the value encoded in an 10040 # empty executable. 10041 if test set = "${lt_cv_aix_libpath+set}"; then 10042 aix_libpath=$lt_cv_aix_libpath 10043else 10044 if test ${lt_cv_aix_libpath_+y} 10045then : 10046 printf %s "(cached) " >&6 10047else $as_nop 10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10049/* end confdefs.h. */ 10050 10051int 10052main (void) 10053{ 10054 10055 ; 10056 return 0; 10057} 10058_ACEOF 10059if ac_fn_c_try_link "$LINENO" 10060then : 10061 10062 lt_aix_libpath_sed=' 10063 /Import File Strings/,/^$/ { 10064 /^0/ { 10065 s/^0 *\([^ ]*\) *$/\1/ 10066 p 10067 } 10068 }' 10069 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10070 # Check for a 64-bit object if we didn't find anything. 10071 if test -z "$lt_cv_aix_libpath_"; then 10072 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10073 fi 10074fi 10075rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10076 conftest$ac_exeext conftest.$ac_ext 10077 if test -z "$lt_cv_aix_libpath_"; then 10078 lt_cv_aix_libpath_=/usr/lib:/lib 10079 fi 10080 10081fi 10082 10083 aix_libpath=$lt_cv_aix_libpath_ 10084fi 10085 10086 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10087 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 10088 else 10089 if test ia64 = "$host_cpu"; then 10090 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10091 allow_undefined_flag="-z nodefs" 10092 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" 10093 else 10094 # Determine the default libpath from the value encoded in an 10095 # empty executable. 10096 if test set = "${lt_cv_aix_libpath+set}"; then 10097 aix_libpath=$lt_cv_aix_libpath 10098else 10099 if test ${lt_cv_aix_libpath_+y} 10100then : 10101 printf %s "(cached) " >&6 10102else $as_nop 10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10104/* end confdefs.h. */ 10105 10106int 10107main (void) 10108{ 10109 10110 ; 10111 return 0; 10112} 10113_ACEOF 10114if ac_fn_c_try_link "$LINENO" 10115then : 10116 10117 lt_aix_libpath_sed=' 10118 /Import File Strings/,/^$/ { 10119 /^0/ { 10120 s/^0 *\([^ ]*\) *$/\1/ 10121 p 10122 } 10123 }' 10124 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10125 # Check for a 64-bit object if we didn't find anything. 10126 if test -z "$lt_cv_aix_libpath_"; then 10127 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10128 fi 10129fi 10130rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10131 conftest$ac_exeext conftest.$ac_ext 10132 if test -z "$lt_cv_aix_libpath_"; then 10133 lt_cv_aix_libpath_=/usr/lib:/lib 10134 fi 10135 10136fi 10137 10138 aix_libpath=$lt_cv_aix_libpath_ 10139fi 10140 10141 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10142 # Warning - without using the other run time loading flags, 10143 # -berok will link without error, but may produce a broken library. 10144 no_undefined_flag=' $wl-bernotok' 10145 allow_undefined_flag=' $wl-berok' 10146 if test yes = "$with_gnu_ld"; then 10147 # We only use this code for GNU lds that support --whole-archive. 10148 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10149 else 10150 # Exported symbols can be pulled into shared objects from archives 10151 whole_archive_flag_spec='$convenience' 10152 fi 10153 archive_cmds_need_lc=yes 10154 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10155 # -brtl affects multiple linker settings, -berok does not and is overridden later 10156 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10157 if test svr4 != "$with_aix_soname"; then 10158 # This is similar to how AIX traditionally builds its shared libraries. 10159 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' 10160 fi 10161 if test aix != "$with_aix_soname"; then 10162 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' 10163 else 10164 # used by -dlpreopen to get the symbols 10165 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10166 fi 10167 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10168 fi 10169 fi 10170 ;; 10171 10172 amigaos*) 10173 case $host_cpu in 10174 powerpc) 10175 # see comment about AmigaOS4 .so support 10176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10177 archive_expsym_cmds='' 10178 ;; 10179 m68k) 10180 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)' 10181 hardcode_libdir_flag_spec='-L$libdir' 10182 hardcode_minus_L=yes 10183 ;; 10184 esac 10185 ;; 10186 10187 bsdi[45]*) 10188 export_dynamic_flag_spec=-rdynamic 10189 ;; 10190 10191 cygwin* | mingw* | pw32* | cegcc*) 10192 # When not using gcc, we currently assume that we are using 10193 # Microsoft Visual C++ or Intel C++ Compiler. 10194 # hardcode_libdir_flag_spec is actually meaningless, as there is 10195 # no search path for DLLs. 10196 case $cc_basename in 10197 cl* | icl*) 10198 # Native MSVC or ICC 10199 hardcode_libdir_flag_spec=' ' 10200 allow_undefined_flag=unsupported 10201 always_export_symbols=yes 10202 file_list_spec='@' 10203 # Tell ltmain to make .lib files, not .a files. 10204 libext=lib 10205 # Tell ltmain to make .dll files, not .so files. 10206 shrext_cmds=.dll 10207 # FIXME: Setting linknames here is a bad hack. 10208 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10209 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10210 cp "$export_symbols" "$output_objdir/$soname.def"; 10211 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10212 else 10213 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10214 fi~ 10215 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10216 linknames=' 10217 # The linker will not automatically build a static lib if we build a DLL. 10218 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10219 enable_shared_with_static_runtimes=yes 10220 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10221 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10222 # Don't use ranlib 10223 old_postinstall_cmds='chmod 644 $oldlib' 10224 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10225 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10226 case $lt_outputfile in 10227 *.exe|*.EXE) ;; 10228 *) 10229 lt_outputfile=$lt_outputfile.exe 10230 lt_tool_outputfile=$lt_tool_outputfile.exe 10231 ;; 10232 esac~ 10233 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10234 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10235 $RM "$lt_outputfile.manifest"; 10236 fi' 10237 ;; 10238 *) 10239 # Assume MSVC and ICC wrapper 10240 hardcode_libdir_flag_spec=' ' 10241 allow_undefined_flag=unsupported 10242 # Tell ltmain to make .lib files, not .a files. 10243 libext=lib 10244 # Tell ltmain to make .dll files, not .so files. 10245 shrext_cmds=.dll 10246 # FIXME: Setting linknames here is a bad hack. 10247 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10248 # The linker will automatically build a .lib file if we build a DLL. 10249 old_archive_from_new_cmds='true' 10250 # FIXME: Should let the user specify the lib program. 10251 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10252 enable_shared_with_static_runtimes=yes 10253 ;; 10254 esac 10255 ;; 10256 10257 darwin* | rhapsody*) 10258 10259 10260 archive_cmds_need_lc=no 10261 hardcode_direct=no 10262 hardcode_automatic=yes 10263 hardcode_shlibpath_var=unsupported 10264 if test yes = "$lt_cv_ld_force_load"; then 10265 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\"`' 10266 10267 else 10268 whole_archive_flag_spec='' 10269 fi 10270 link_all_deplibs=yes 10271 allow_undefined_flag=$_lt_dar_allow_undefined 10272 case $cc_basename in 10273 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10274 *) _lt_dar_can_shared=$GCC ;; 10275 esac 10276 if test yes = "$_lt_dar_can_shared"; then 10277 output_verbose_link_cmd=func_echo_all 10278 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10279 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10280 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" 10281 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" 10282 10283 else 10284 ld_shlibs=no 10285 fi 10286 10287 ;; 10288 10289 dgux*) 10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10291 hardcode_libdir_flag_spec='-L$libdir' 10292 hardcode_shlibpath_var=no 10293 ;; 10294 10295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10296 # support. Future versions do this automatically, but an explicit c++rt0.o 10297 # does not break anything, and helps significantly (at the cost of a little 10298 # extra space). 10299 freebsd2.2*) 10300 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10301 hardcode_libdir_flag_spec='-R$libdir' 10302 hardcode_direct=yes 10303 hardcode_shlibpath_var=no 10304 ;; 10305 10306 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10307 freebsd2.*) 10308 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10309 hardcode_direct=yes 10310 hardcode_minus_L=yes 10311 hardcode_shlibpath_var=no 10312 ;; 10313 10314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10315 freebsd* | dragonfly* | midnightbsd*) 10316 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10317 hardcode_libdir_flag_spec='-R$libdir' 10318 hardcode_direct=yes 10319 hardcode_shlibpath_var=no 10320 ;; 10321 10322 hpux9*) 10323 if test yes = "$GCC"; then 10324 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' 10325 else 10326 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' 10327 fi 10328 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10329 hardcode_libdir_separator=: 10330 hardcode_direct=yes 10331 10332 # hardcode_minus_L: Not really in the search PATH, 10333 # but as the default location of the library. 10334 hardcode_minus_L=yes 10335 export_dynamic_flag_spec='$wl-E' 10336 ;; 10337 10338 hpux10*) 10339 if test yes,no = "$GCC,$with_gnu_ld"; then 10340 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10341 else 10342 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10343 fi 10344 if test no = "$with_gnu_ld"; then 10345 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10346 hardcode_libdir_separator=: 10347 hardcode_direct=yes 10348 hardcode_direct_absolute=yes 10349 export_dynamic_flag_spec='$wl-E' 10350 # hardcode_minus_L: Not really in the search PATH, 10351 # but as the default location of the library. 10352 hardcode_minus_L=yes 10353 fi 10354 ;; 10355 10356 hpux11*) 10357 if test yes,no = "$GCC,$with_gnu_ld"; then 10358 case $host_cpu in 10359 hppa*64*) 10360 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10361 ;; 10362 ia64*) 10363 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10364 ;; 10365 *) 10366 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10367 ;; 10368 esac 10369 else 10370 case $host_cpu in 10371 hppa*64*) 10372 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10373 ;; 10374 ia64*) 10375 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10376 ;; 10377 *) 10378 10379 # Older versions of the 11.00 compiler do not understand -b yet 10380 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10382printf %s "checking if $CC understands -b... " >&6; } 10383if test ${lt_cv_prog_compiler__b+y} 10384then : 10385 printf %s "(cached) " >&6 10386else $as_nop 10387 lt_cv_prog_compiler__b=no 10388 save_LDFLAGS=$LDFLAGS 10389 LDFLAGS="$LDFLAGS -b" 10390 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10392 # The linker can only warn and ignore the option if not recognized 10393 # So say no if there are warnings 10394 if test -s conftest.err; then 10395 # Append any errors to the config.log. 10396 cat conftest.err 1>&5 10397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10399 if diff conftest.exp conftest.er2 >/dev/null; then 10400 lt_cv_prog_compiler__b=yes 10401 fi 10402 else 10403 lt_cv_prog_compiler__b=yes 10404 fi 10405 fi 10406 $RM -r conftest* 10407 LDFLAGS=$save_LDFLAGS 10408 10409fi 10410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10411printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10412 10413if test yes = "$lt_cv_prog_compiler__b"; then 10414 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10415else 10416 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10417fi 10418 10419 ;; 10420 esac 10421 fi 10422 if test no = "$with_gnu_ld"; then 10423 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10424 hardcode_libdir_separator=: 10425 10426 case $host_cpu in 10427 hppa*64*|ia64*) 10428 hardcode_direct=no 10429 hardcode_shlibpath_var=no 10430 ;; 10431 *) 10432 hardcode_direct=yes 10433 hardcode_direct_absolute=yes 10434 export_dynamic_flag_spec='$wl-E' 10435 10436 # hardcode_minus_L: Not really in the search PATH, 10437 # but as the default location of the library. 10438 hardcode_minus_L=yes 10439 ;; 10440 esac 10441 fi 10442 ;; 10443 10444 irix5* | irix6* | nonstopux*) 10445 if test yes = "$GCC"; then 10446 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' 10447 # Try to use the -exported_symbol ld option, if it does not 10448 # work, assume that -exports_file does not work either and 10449 # implicitly export all symbols. 10450 # This should be the same for all languages, so no per-tag cache variable. 10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10452printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10453if test ${lt_cv_irix_exported_symbol+y} 10454then : 10455 printf %s "(cached) " >&6 10456else $as_nop 10457 save_LDFLAGS=$LDFLAGS 10458 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460/* end confdefs.h. */ 10461int foo (void) { return 0; } 10462_ACEOF 10463if ac_fn_c_try_link "$LINENO" 10464then : 10465 lt_cv_irix_exported_symbol=yes 10466else $as_nop 10467 lt_cv_irix_exported_symbol=no 10468fi 10469rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10470 conftest$ac_exeext conftest.$ac_ext 10471 LDFLAGS=$save_LDFLAGS 10472fi 10473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10474printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10475 if test yes = "$lt_cv_irix_exported_symbol"; then 10476 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' 10477 fi 10478 else 10479 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' 10480 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' 10481 fi 10482 archive_cmds_need_lc='no' 10483 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10484 hardcode_libdir_separator=: 10485 inherit_rpath=yes 10486 link_all_deplibs=yes 10487 ;; 10488 10489 linux*) 10490 case $cc_basename in 10491 tcc*) 10492 # Fabrice Bellard et al's Tiny C Compiler 10493 ld_shlibs=yes 10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10495 ;; 10496 esac 10497 ;; 10498 10499 netbsd*) 10500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10502 else 10503 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10504 fi 10505 hardcode_libdir_flag_spec='-R$libdir' 10506 hardcode_direct=yes 10507 hardcode_shlibpath_var=no 10508 ;; 10509 10510 newsos6) 10511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10512 hardcode_direct=yes 10513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10514 hardcode_libdir_separator=: 10515 hardcode_shlibpath_var=no 10516 ;; 10517 10518 *nto* | *qnx*) 10519 ;; 10520 10521 openbsd* | bitrig*) 10522 if test -f /usr/libexec/ld.so; then 10523 hardcode_direct=yes 10524 hardcode_shlibpath_var=no 10525 hardcode_direct_absolute=yes 10526 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10528 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10529 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10530 export_dynamic_flag_spec='$wl-E' 10531 else 10532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10533 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10534 fi 10535 else 10536 ld_shlibs=no 10537 fi 10538 ;; 10539 10540 os2*) 10541 hardcode_libdir_flag_spec='-L$libdir' 10542 hardcode_minus_L=yes 10543 allow_undefined_flag=unsupported 10544 shrext_cmds=.dll 10545 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10546 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10547 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10548 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10549 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10550 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10551 emximp -o $lib $output_objdir/$libname.def' 10552 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10553 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10554 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10555 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10556 prefix_cmds="$SED"~ 10557 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10558 prefix_cmds="$prefix_cmds -e 1d"; 10559 fi~ 10560 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10561 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10562 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10563 emximp -o $lib $output_objdir/$libname.def' 10564 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10565 enable_shared_with_static_runtimes=yes 10566 file_list_spec='@' 10567 ;; 10568 10569 osf3*) 10570 if test yes = "$GCC"; then 10571 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10572 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' 10573 else 10574 allow_undefined_flag=' -expect_unresolved \*' 10575 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' 10576 fi 10577 archive_cmds_need_lc='no' 10578 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10579 hardcode_libdir_separator=: 10580 ;; 10581 10582 osf4* | osf5*) # as osf3* with the addition of -msym flag 10583 if test yes = "$GCC"; then 10584 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10585 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' 10586 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10587 else 10588 allow_undefined_flag=' -expect_unresolved \*' 10589 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' 10590 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~ 10591 $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' 10592 10593 # Both c and cxx compiler support -rpath directly 10594 hardcode_libdir_flag_spec='-rpath $libdir' 10595 fi 10596 archive_cmds_need_lc='no' 10597 hardcode_libdir_separator=: 10598 ;; 10599 10600 solaris*) 10601 no_undefined_flag=' -z defs' 10602 if test yes = "$GCC"; then 10603 wlarc='$wl' 10604 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10606 $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' 10607 else 10608 case `$CC -V 2>&1` in 10609 *"Compilers 5.0"*) 10610 wlarc='' 10611 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10613 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10614 ;; 10615 *) 10616 wlarc='$wl' 10617 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10618 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10619 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10620 ;; 10621 esac 10622 fi 10623 hardcode_libdir_flag_spec='-R$libdir' 10624 hardcode_shlibpath_var=no 10625 case $host_os in 10626 solaris2.[0-5] | solaris2.[0-5].*) ;; 10627 *) 10628 # The compiler driver will combine and reorder linker options, 10629 # but understands '-z linker_flag'. GCC discards it without '$wl', 10630 # but is careful enough not to reorder. 10631 # Supported since Solaris 2.6 (maybe 2.5.1?) 10632 if test yes = "$GCC"; then 10633 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10634 else 10635 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10636 fi 10637 ;; 10638 esac 10639 link_all_deplibs=yes 10640 ;; 10641 10642 sunos4*) 10643 if test sequent = "$host_vendor"; then 10644 # Use $CC to link under sequent, because it throws in some extra .o 10645 # files that make .init and .fini sections work. 10646 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10647 else 10648 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10649 fi 10650 hardcode_libdir_flag_spec='-L$libdir' 10651 hardcode_direct=yes 10652 hardcode_minus_L=yes 10653 hardcode_shlibpath_var=no 10654 ;; 10655 10656 sysv4) 10657 case $host_vendor in 10658 sni) 10659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10660 hardcode_direct=yes # is this really true??? 10661 ;; 10662 siemens) 10663 ## LD is ld it makes a PLAMLIB 10664 ## CC just makes a GrossModule. 10665 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10666 reload_cmds='$CC -r -o $output$reload_objs' 10667 hardcode_direct=no 10668 ;; 10669 motorola) 10670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10671 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10672 ;; 10673 esac 10674 runpath_var='LD_RUN_PATH' 10675 hardcode_shlibpath_var=no 10676 ;; 10677 10678 sysv4.3*) 10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10680 hardcode_shlibpath_var=no 10681 export_dynamic_flag_spec='-Bexport' 10682 ;; 10683 10684 sysv4*MP*) 10685 if test -d /usr/nec; then 10686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10687 hardcode_shlibpath_var=no 10688 runpath_var=LD_RUN_PATH 10689 hardcode_runpath_var=yes 10690 ld_shlibs=yes 10691 fi 10692 ;; 10693 10694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10695 no_undefined_flag='$wl-z,text' 10696 archive_cmds_need_lc=no 10697 hardcode_shlibpath_var=no 10698 runpath_var='LD_RUN_PATH' 10699 10700 if test yes = "$GCC"; then 10701 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10702 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10703 else 10704 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10705 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10706 fi 10707 ;; 10708 10709 sysv5* | sco3.2v5* | sco5v6*) 10710 # Note: We CANNOT use -z defs as we might desire, because we do not 10711 # link with -lc, and that would cause any symbols used from libc to 10712 # always be unresolved, which means just about no library would 10713 # ever link correctly. If we're not using GNU ld we use -z text 10714 # though, which does catch some bad symbols but isn't as heavy-handed 10715 # as -z defs. 10716 no_undefined_flag='$wl-z,text' 10717 allow_undefined_flag='$wl-z,nodefs' 10718 archive_cmds_need_lc=no 10719 hardcode_shlibpath_var=no 10720 hardcode_libdir_flag_spec='$wl-R,$libdir' 10721 hardcode_libdir_separator=':' 10722 link_all_deplibs=yes 10723 export_dynamic_flag_spec='$wl-Bexport' 10724 runpath_var='LD_RUN_PATH' 10725 10726 if test yes = "$GCC"; then 10727 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10728 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10729 else 10730 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10731 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10732 fi 10733 ;; 10734 10735 uts4*) 10736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10737 hardcode_libdir_flag_spec='-L$libdir' 10738 hardcode_shlibpath_var=no 10739 ;; 10740 10741 *) 10742 ld_shlibs=no 10743 ;; 10744 esac 10745 10746 if test sni = "$host_vendor"; then 10747 case $host in 10748 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10749 export_dynamic_flag_spec='$wl-Blargedynsym' 10750 ;; 10751 esac 10752 fi 10753 fi 10754 10755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10756printf "%s\n" "$ld_shlibs" >&6; } 10757test no = "$ld_shlibs" && can_build_shared=no 10758 10759with_gnu_ld=$with_gnu_ld 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775# 10776# Do we need to explicitly link libc? 10777# 10778case "x$archive_cmds_need_lc" in 10779x|xyes) 10780 # Assume -lc should be added 10781 archive_cmds_need_lc=yes 10782 10783 if test yes,yes = "$GCC,$enable_shared"; then 10784 case $archive_cmds in 10785 *'~'*) 10786 # FIXME: we may have to deal with multi-command sequences. 10787 ;; 10788 '$CC '*) 10789 # Test whether the compiler implicitly links with -lc since on some 10790 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10791 # to ld, don't add -lc before -lgcc. 10792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10793printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10794if test ${lt_cv_archive_cmds_need_lc+y} 10795then : 10796 printf %s "(cached) " >&6 10797else $as_nop 10798 $RM conftest* 10799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10800 10801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10802 (eval $ac_compile) 2>&5 10803 ac_status=$? 10804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10805 test $ac_status = 0; } 2>conftest.err; then 10806 soname=conftest 10807 lib=conftest 10808 libobjs=conftest.$ac_objext 10809 deplibs= 10810 wl=$lt_prog_compiler_wl 10811 pic_flag=$lt_prog_compiler_pic 10812 compiler_flags=-v 10813 linker_flags=-v 10814 verstring= 10815 output_objdir=. 10816 libname=conftest 10817 lt_save_allow_undefined_flag=$allow_undefined_flag 10818 allow_undefined_flag= 10819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10820 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10821 ac_status=$? 10822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10823 test $ac_status = 0; } 10824 then 10825 lt_cv_archive_cmds_need_lc=no 10826 else 10827 lt_cv_archive_cmds_need_lc=yes 10828 fi 10829 allow_undefined_flag=$lt_save_allow_undefined_flag 10830 else 10831 cat conftest.err 1>&5 10832 fi 10833 $RM conftest* 10834 10835fi 10836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10837printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10838 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10839 ;; 10840 esac 10841 fi 10842 ;; 10843esac 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10997printf %s "checking dynamic linker characteristics... " >&6; } 10998 10999if test yes = "$GCC"; then 11000 case $host_os in 11001 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11002 *) lt_awk_arg='/^libraries:/' ;; 11003 esac 11004 case $host_os in 11005 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11006 *) lt_sed_strip_eq='s|=/|/|g' ;; 11007 esac 11008 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11009 case $lt_search_path_spec in 11010 *\;*) 11011 # if the path contains ";" then we assume it to be the separator 11012 # otherwise default to the standard path separator (i.e. ":") - it is 11013 # assumed that no part of a normal pathname contains ";" but that should 11014 # okay in the real world where ";" in dirpaths is itself problematic. 11015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11016 ;; 11017 *) 11018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11019 ;; 11020 esac 11021 # Ok, now we have the path, separated by spaces, we can step through it 11022 # and add multilib dir if necessary... 11023 lt_tmp_lt_search_path_spec= 11024 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11025 # ...but if some path component already ends with the multilib dir we assume 11026 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11027 case "$lt_multi_os_dir; $lt_search_path_spec " in 11028 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11029 lt_multi_os_dir= 11030 ;; 11031 esac 11032 for lt_sys_path in $lt_search_path_spec; do 11033 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11034 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11035 elif test -n "$lt_multi_os_dir"; then 11036 test -d "$lt_sys_path" && \ 11037 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11038 fi 11039 done 11040 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11041BEGIN {RS = " "; FS = "/|\n";} { 11042 lt_foo = ""; 11043 lt_count = 0; 11044 for (lt_i = NF; lt_i > 0; lt_i--) { 11045 if ($lt_i != "" && $lt_i != ".") { 11046 if ($lt_i == "..") { 11047 lt_count++; 11048 } else { 11049 if (lt_count == 0) { 11050 lt_foo = "/" $lt_i lt_foo; 11051 } else { 11052 lt_count--; 11053 } 11054 } 11055 } 11056 } 11057 if (lt_foo != "") { lt_freq[lt_foo]++; } 11058 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11059}'` 11060 # AWK program above erroneously prepends '/' to C:/dos/paths 11061 # for these hosts. 11062 case $host_os in 11063 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11064 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11065 esac 11066 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11067else 11068 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11069fi 11070library_names_spec= 11071libname_spec='lib$name' 11072soname_spec= 11073shrext_cmds=.so 11074postinstall_cmds= 11075postuninstall_cmds= 11076finish_cmds= 11077finish_eval= 11078shlibpath_var= 11079shlibpath_overrides_runpath=unknown 11080version_type=none 11081dynamic_linker="$host_os ld.so" 11082sys_lib_dlsearch_path_spec="/lib /usr/lib" 11083need_lib_prefix=unknown 11084hardcode_into_libs=no 11085 11086# when you set need_version to no, make sure it does not cause -set_version 11087# flags to be left without arguments 11088need_version=unknown 11089 11090 11091 11092case $host_os in 11093aix3*) 11094 version_type=linux # correct to gnu/linux during the next big refactor 11095 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11096 shlibpath_var=LIBPATH 11097 11098 # AIX 3 has no versioning support, so we append a major version to the name. 11099 soname_spec='$libname$release$shared_ext$major' 11100 ;; 11101 11102aix[4-9]*) 11103 version_type=linux # correct to gnu/linux during the next big refactor 11104 need_lib_prefix=no 11105 need_version=no 11106 hardcode_into_libs=yes 11107 if test ia64 = "$host_cpu"; then 11108 # AIX 5 supports IA64 11109 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11110 shlibpath_var=LD_LIBRARY_PATH 11111 else 11112 # With GCC up to 2.95.x, collect2 would create an import file 11113 # for dependence libraries. The import file would start with 11114 # the line '#! .'. This would cause the generated library to 11115 # depend on '.', always an invalid library. This was fixed in 11116 # development snapshots of GCC prior to 3.0. 11117 case $host_os in 11118 aix4 | aix4.[01] | aix4.[01].*) 11119 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11120 echo ' yes ' 11121 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11122 : 11123 else 11124 can_build_shared=no 11125 fi 11126 ;; 11127 esac 11128 # Using Import Files as archive members, it is possible to support 11129 # filename-based versioning of shared library archives on AIX. While 11130 # this would work for both with and without runtime linking, it will 11131 # prevent static linking of such archives. So we do filename-based 11132 # shared library versioning with .so extension only, which is used 11133 # when both runtime linking and shared linking is enabled. 11134 # Unfortunately, runtime linking may impact performance, so we do 11135 # not want this to be the default eventually. Also, we use the 11136 # versioned .so libs for executables only if there is the -brtl 11137 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11138 # To allow for filename-based versioning support, we need to create 11139 # libNAME.so.V as an archive file, containing: 11140 # *) an Import File, referring to the versioned filename of the 11141 # archive as well as the shared archive member, telling the 11142 # bitwidth (32 or 64) of that shared object, and providing the 11143 # list of exported symbols of that shared object, eventually 11144 # decorated with the 'weak' keyword 11145 # *) the shared object with the F_LOADONLY flag set, to really avoid 11146 # it being seen by the linker. 11147 # At run time we better use the real file rather than another symlink, 11148 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11149 11150 case $with_aix_soname,$aix_use_runtimelinking in 11151 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11152 # soname into executable. Probably we can add versioning support to 11153 # collect2, so additional links can be useful in future. 11154 aix,yes) # traditional libtool 11155 dynamic_linker='AIX unversionable lib.so' 11156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11157 # instead of lib<name>.a to let people know that these are not 11158 # typical AIX shared libraries. 11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11160 ;; 11161 aix,no) # traditional AIX only 11162 dynamic_linker='AIX lib.a(lib.so.V)' 11163 # We preserve .a as extension for shared libraries through AIX4.2 11164 # and later when we are not doing run time linking. 11165 library_names_spec='$libname$release.a $libname.a' 11166 soname_spec='$libname$release$shared_ext$major' 11167 ;; 11168 svr4,*) # full svr4 only 11169 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11170 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11171 # We do not specify a path in Import Files, so LIBPATH fires. 11172 shlibpath_overrides_runpath=yes 11173 ;; 11174 *,yes) # both, prefer svr4 11175 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11176 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11177 # unpreferred sharedlib libNAME.a needs extra handling 11178 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"' 11179 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"' 11180 # We do not specify a path in Import Files, so LIBPATH fires. 11181 shlibpath_overrides_runpath=yes 11182 ;; 11183 *,no) # both, prefer aix 11184 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11185 library_names_spec='$libname$release.a $libname.a' 11186 soname_spec='$libname$release$shared_ext$major' 11187 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11188 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)' 11189 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"' 11190 ;; 11191 esac 11192 shlibpath_var=LIBPATH 11193 fi 11194 ;; 11195 11196amigaos*) 11197 case $host_cpu in 11198 powerpc) 11199 # Since July 2007 AmigaOS4 officially supports .so libraries. 11200 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11202 ;; 11203 m68k) 11204 library_names_spec='$libname.ixlibrary $libname.a' 11205 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11206 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' 11207 ;; 11208 esac 11209 ;; 11210 11211beos*) 11212 library_names_spec='$libname$shared_ext' 11213 dynamic_linker="$host_os ld.so" 11214 shlibpath_var=LIBRARY_PATH 11215 ;; 11216 11217bsdi[45]*) 11218 version_type=linux # correct to gnu/linux during the next big refactor 11219 need_version=no 11220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11221 soname_spec='$libname$release$shared_ext$major' 11222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11223 shlibpath_var=LD_LIBRARY_PATH 11224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11226 # the default ld.so.conf also contains /usr/contrib/lib and 11227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11228 # libtool to hard-code these into programs 11229 ;; 11230 11231cygwin* | mingw* | pw32* | cegcc*) 11232 version_type=windows 11233 shrext_cmds=.dll 11234 need_version=no 11235 need_lib_prefix=no 11236 11237 case $GCC,$cc_basename in 11238 yes,*) 11239 # gcc 11240 library_names_spec='$libname.dll.a' 11241 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11242 postinstall_cmds='base_file=`basename \$file`~ 11243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11244 dldir=$destdir/`dirname \$dlpath`~ 11245 test -d \$dldir || mkdir -p \$dldir~ 11246 $install_prog $dir/$dlname \$dldir/$dlname~ 11247 chmod a+x \$dldir/$dlname~ 11248 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11249 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11250 fi' 11251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11252 dlpath=$dir/\$dldll~ 11253 $RM \$dlpath' 11254 shlibpath_overrides_runpath=yes 11255 11256 case $host_os in 11257 cygwin*) 11258 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11259 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11260 11261 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11262 ;; 11263 mingw* | cegcc*) 11264 # MinGW DLLs use traditional 'lib' prefix 11265 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11266 ;; 11267 pw32*) 11268 # pw32 DLLs use 'pw' prefix rather than 'lib' 11269 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11270 ;; 11271 esac 11272 dynamic_linker='Win32 ld.exe' 11273 ;; 11274 11275 *,cl* | *,icl*) 11276 # Native MSVC or ICC 11277 libname_spec='$name' 11278 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11279 library_names_spec='$libname.dll.lib' 11280 11281 case $build_os in 11282 mingw*) 11283 sys_lib_search_path_spec= 11284 lt_save_ifs=$IFS 11285 IFS=';' 11286 for lt_path in $LIB 11287 do 11288 IFS=$lt_save_ifs 11289 # Let DOS variable expansion print the short 8.3 style file name. 11290 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11291 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11292 done 11293 IFS=$lt_save_ifs 11294 # Convert to MSYS style. 11295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11296 ;; 11297 cygwin*) 11298 # Convert to unix form, then to dos form, then back to unix form 11299 # but this time dos style (no spaces!) so that the unix form looks 11300 # like /cygdrive/c/PROGRA~1:/cygdr... 11301 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11302 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11303 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11304 ;; 11305 *) 11306 sys_lib_search_path_spec=$LIB 11307 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11308 # It is most probably a Windows format PATH. 11309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11310 else 11311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11312 fi 11313 # FIXME: find the short name or the path components, as spaces are 11314 # common. (e.g. "Program Files" -> "PROGRA~1") 11315 ;; 11316 esac 11317 11318 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11319 postinstall_cmds='base_file=`basename \$file`~ 11320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11321 dldir=$destdir/`dirname \$dlpath`~ 11322 test -d \$dldir || mkdir -p \$dldir~ 11323 $install_prog $dir/$dlname \$dldir/$dlname' 11324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11325 dlpath=$dir/\$dldll~ 11326 $RM \$dlpath' 11327 shlibpath_overrides_runpath=yes 11328 dynamic_linker='Win32 link.exe' 11329 ;; 11330 11331 *) 11332 # Assume MSVC and ICC wrapper 11333 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11334 dynamic_linker='Win32 ld.exe' 11335 ;; 11336 esac 11337 # FIXME: first we should search . and the directory the executable is in 11338 shlibpath_var=PATH 11339 ;; 11340 11341darwin* | rhapsody*) 11342 dynamic_linker="$host_os dyld" 11343 version_type=darwin 11344 need_lib_prefix=no 11345 need_version=no 11346 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11347 soname_spec='$libname$release$major$shared_ext' 11348 shlibpath_overrides_runpath=yes 11349 shlibpath_var=DYLD_LIBRARY_PATH 11350 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11351 11352 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11354 ;; 11355 11356dgux*) 11357 version_type=linux # correct to gnu/linux during the next big refactor 11358 need_lib_prefix=no 11359 need_version=no 11360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11361 soname_spec='$libname$release$shared_ext$major' 11362 shlibpath_var=LD_LIBRARY_PATH 11363 ;; 11364 11365freebsd* | dragonfly* | midnightbsd*) 11366 # DragonFly does not have aout. When/if they implement a new 11367 # versioning mechanism, adjust this. 11368 if test -x /usr/bin/objformat; then 11369 objformat=`/usr/bin/objformat` 11370 else 11371 case $host_os in 11372 freebsd[23].*) objformat=aout ;; 11373 *) objformat=elf ;; 11374 esac 11375 fi 11376 version_type=freebsd-$objformat 11377 case $version_type in 11378 freebsd-elf*) 11379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11380 soname_spec='$libname$release$shared_ext$major' 11381 need_version=no 11382 need_lib_prefix=no 11383 ;; 11384 freebsd-*) 11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11386 need_version=yes 11387 ;; 11388 esac 11389 shlibpath_var=LD_LIBRARY_PATH 11390 case $host_os in 11391 freebsd2.*) 11392 shlibpath_overrides_runpath=yes 11393 ;; 11394 freebsd3.[01]* | freebsdelf3.[01]*) 11395 shlibpath_overrides_runpath=yes 11396 hardcode_into_libs=yes 11397 ;; 11398 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11399 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11400 shlibpath_overrides_runpath=no 11401 hardcode_into_libs=yes 11402 ;; 11403 *) # from 4.6 on, and DragonFly 11404 shlibpath_overrides_runpath=yes 11405 hardcode_into_libs=yes 11406 ;; 11407 esac 11408 ;; 11409 11410haiku*) 11411 version_type=linux # correct to gnu/linux during the next big refactor 11412 need_lib_prefix=no 11413 need_version=no 11414 dynamic_linker="$host_os runtime_loader" 11415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11416 soname_spec='$libname$release$shared_ext$major' 11417 shlibpath_var=LIBRARY_PATH 11418 shlibpath_overrides_runpath=no 11419 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11420 hardcode_into_libs=yes 11421 ;; 11422 11423hpux9* | hpux10* | hpux11*) 11424 # Give a soname corresponding to the major version so that dld.sl refuses to 11425 # link against other versions. 11426 version_type=sunos 11427 need_lib_prefix=no 11428 need_version=no 11429 case $host_cpu in 11430 ia64*) 11431 shrext_cmds='.so' 11432 hardcode_into_libs=yes 11433 dynamic_linker="$host_os dld.so" 11434 shlibpath_var=LD_LIBRARY_PATH 11435 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11437 soname_spec='$libname$release$shared_ext$major' 11438 if test 32 = "$HPUX_IA64_MODE"; then 11439 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11440 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11441 else 11442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11443 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11444 fi 11445 ;; 11446 hppa*64*) 11447 shrext_cmds='.sl' 11448 hardcode_into_libs=yes 11449 dynamic_linker="$host_os dld.sl" 11450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11453 soname_spec='$libname$release$shared_ext$major' 11454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11456 ;; 11457 *) 11458 shrext_cmds='.sl' 11459 dynamic_linker="$host_os dld.sl" 11460 shlibpath_var=SHLIB_PATH 11461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11463 soname_spec='$libname$release$shared_ext$major' 11464 ;; 11465 esac 11466 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11467 postinstall_cmds='chmod 555 $lib' 11468 # or fails outright, so override atomically: 11469 install_override_mode=555 11470 ;; 11471 11472interix[3-9]*) 11473 version_type=linux # correct to gnu/linux during the next big refactor 11474 need_lib_prefix=no 11475 need_version=no 11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11477 soname_spec='$libname$release$shared_ext$major' 11478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11479 shlibpath_var=LD_LIBRARY_PATH 11480 shlibpath_overrides_runpath=no 11481 hardcode_into_libs=yes 11482 ;; 11483 11484irix5* | irix6* | nonstopux*) 11485 case $host_os in 11486 nonstopux*) version_type=nonstopux ;; 11487 *) 11488 if test yes = "$lt_cv_prog_gnu_ld"; then 11489 version_type=linux # correct to gnu/linux during the next big refactor 11490 else 11491 version_type=irix 11492 fi ;; 11493 esac 11494 need_lib_prefix=no 11495 need_version=no 11496 soname_spec='$libname$release$shared_ext$major' 11497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11498 case $host_os in 11499 irix5* | nonstopux*) 11500 libsuff= shlibsuff= 11501 ;; 11502 *) 11503 case $LD in # libtool.m4 will add one of these switches to LD 11504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11505 libsuff= shlibsuff= libmagic=32-bit;; 11506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11507 libsuff=32 shlibsuff=N32 libmagic=N32;; 11508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11509 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11510 *) libsuff= shlibsuff= libmagic=never-match;; 11511 esac 11512 ;; 11513 esac 11514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11515 shlibpath_overrides_runpath=no 11516 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11517 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11518 hardcode_into_libs=yes 11519 ;; 11520 11521# No shared lib support for Linux oldld, aout, or coff. 11522linux*oldld* | linux*aout* | linux*coff*) 11523 dynamic_linker=no 11524 ;; 11525 11526linux*android*) 11527 version_type=none # Android doesn't support versioned libraries. 11528 need_lib_prefix=no 11529 need_version=no 11530 library_names_spec='$libname$release$shared_ext' 11531 soname_spec='$libname$release$shared_ext' 11532 finish_cmds= 11533 shlibpath_var=LD_LIBRARY_PATH 11534 shlibpath_overrides_runpath=yes 11535 11536 # This implies no fast_install, which is unacceptable. 11537 # Some rework will be needed to allow for fast_install 11538 # before this can be enabled. 11539 hardcode_into_libs=yes 11540 11541 dynamic_linker='Android linker' 11542 # Don't embed -rpath directories since the linker doesn't support them. 11543 hardcode_libdir_flag_spec='-L$libdir' 11544 ;; 11545 11546# This must be glibc/ELF. 11547linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11548 version_type=linux # correct to gnu/linux during the next big refactor 11549 need_lib_prefix=no 11550 need_version=no 11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11552 soname_spec='$libname$release$shared_ext$major' 11553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11554 shlibpath_var=LD_LIBRARY_PATH 11555 shlibpath_overrides_runpath=no 11556 11557 # Some binutils ld are patched to set DT_RUNPATH 11558 if test ${lt_cv_shlibpath_overrides_runpath+y} 11559then : 11560 printf %s "(cached) " >&6 11561else $as_nop 11562 lt_cv_shlibpath_overrides_runpath=no 11563 save_LDFLAGS=$LDFLAGS 11564 save_libdir=$libdir 11565 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11566 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11568/* end confdefs.h. */ 11569 11570int 11571main (void) 11572{ 11573 11574 ; 11575 return 0; 11576} 11577_ACEOF 11578if ac_fn_c_try_link "$LINENO" 11579then : 11580 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11581then : 11582 lt_cv_shlibpath_overrides_runpath=yes 11583fi 11584fi 11585rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11586 conftest$ac_exeext conftest.$ac_ext 11587 LDFLAGS=$save_LDFLAGS 11588 libdir=$save_libdir 11589 11590fi 11591 11592 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11593 11594 # This implies no fast_install, which is unacceptable. 11595 # Some rework will be needed to allow for fast_install 11596 # before this can be enabled. 11597 hardcode_into_libs=yes 11598 11599 # Ideally, we could use ldconfig to report *all* directores which are 11600 # searched for libraries, however this is still not possible. Aside from not 11601 # being certain /sbin/ldconfig is available, command 11602 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11603 # even though it is searched at run-time. Try to do the best guess by 11604 # appending ld.so.conf contents (and includes) to the search path. 11605 if test -f /etc/ld.so.conf; then 11606 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' ' '` 11607 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11608 fi 11609 11610 # We used to test for /lib/ld.so.1 and disable shared libraries on 11611 # powerpc, because MkLinux only supported shared libraries with the 11612 # GNU dynamic linker. Since this was broken with cross compilers, 11613 # most powerpc-linux boxes support dynamic linking these days and 11614 # people can always --disable-shared, the test was removed, and we 11615 # assume the GNU/Linux dynamic linker is in use. 11616 dynamic_linker='GNU/Linux ld.so' 11617 ;; 11618 11619netbsd*) 11620 version_type=sunos 11621 need_lib_prefix=no 11622 need_version=no 11623 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11624 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11626 dynamic_linker='NetBSD (a.out) ld.so' 11627 else 11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11629 soname_spec='$libname$release$shared_ext$major' 11630 dynamic_linker='NetBSD ld.elf_so' 11631 fi 11632 shlibpath_var=LD_LIBRARY_PATH 11633 shlibpath_overrides_runpath=yes 11634 hardcode_into_libs=yes 11635 ;; 11636 11637newsos6) 11638 version_type=linux # correct to gnu/linux during the next big refactor 11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11640 shlibpath_var=LD_LIBRARY_PATH 11641 shlibpath_overrides_runpath=yes 11642 ;; 11643 11644*nto* | *qnx*) 11645 version_type=qnx 11646 need_lib_prefix=no 11647 need_version=no 11648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11649 soname_spec='$libname$release$shared_ext$major' 11650 shlibpath_var=LD_LIBRARY_PATH 11651 shlibpath_overrides_runpath=no 11652 hardcode_into_libs=yes 11653 dynamic_linker='ldqnx.so' 11654 ;; 11655 11656openbsd* | bitrig*) 11657 version_type=sunos 11658 sys_lib_dlsearch_path_spec=/usr/lib 11659 need_lib_prefix=no 11660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11661 need_version=no 11662 else 11663 need_version=yes 11664 fi 11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11667 shlibpath_var=LD_LIBRARY_PATH 11668 shlibpath_overrides_runpath=yes 11669 ;; 11670 11671os2*) 11672 libname_spec='$name' 11673 version_type=windows 11674 shrext_cmds=.dll 11675 need_version=no 11676 need_lib_prefix=no 11677 # OS/2 can only load a DLL with a base name of 8 characters or less. 11678 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11679 v=$($ECHO $release$versuffix | tr -d .-); 11680 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11681 $ECHO $n$v`$shared_ext' 11682 library_names_spec='${libname}_dll.$libext' 11683 dynamic_linker='OS/2 ld.exe' 11684 shlibpath_var=BEGINLIBPATH 11685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11687 postinstall_cmds='base_file=`basename \$file`~ 11688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11689 dldir=$destdir/`dirname \$dlpath`~ 11690 test -d \$dldir || mkdir -p \$dldir~ 11691 $install_prog $dir/$dlname \$dldir/$dlname~ 11692 chmod a+x \$dldir/$dlname~ 11693 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11694 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11695 fi' 11696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11697 dlpath=$dir/\$dldll~ 11698 $RM \$dlpath' 11699 ;; 11700 11701osf3* | osf4* | osf5*) 11702 version_type=osf 11703 need_lib_prefix=no 11704 need_version=no 11705 soname_spec='$libname$release$shared_ext$major' 11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11707 shlibpath_var=LD_LIBRARY_PATH 11708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11710 ;; 11711 11712rdos*) 11713 dynamic_linker=no 11714 ;; 11715 11716solaris*) 11717 version_type=linux # correct to gnu/linux during the next big refactor 11718 need_lib_prefix=no 11719 need_version=no 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11721 soname_spec='$libname$release$shared_ext$major' 11722 shlibpath_var=LD_LIBRARY_PATH 11723 shlibpath_overrides_runpath=yes 11724 hardcode_into_libs=yes 11725 # ldd complains unless libraries are executable 11726 postinstall_cmds='chmod +x $lib' 11727 ;; 11728 11729sunos4*) 11730 version_type=sunos 11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11732 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11733 shlibpath_var=LD_LIBRARY_PATH 11734 shlibpath_overrides_runpath=yes 11735 if test yes = "$with_gnu_ld"; then 11736 need_lib_prefix=no 11737 fi 11738 need_version=yes 11739 ;; 11740 11741sysv4 | sysv4.3*) 11742 version_type=linux # correct to gnu/linux during the next big refactor 11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11744 soname_spec='$libname$release$shared_ext$major' 11745 shlibpath_var=LD_LIBRARY_PATH 11746 case $host_vendor in 11747 sni) 11748 shlibpath_overrides_runpath=no 11749 need_lib_prefix=no 11750 runpath_var=LD_RUN_PATH 11751 ;; 11752 siemens) 11753 need_lib_prefix=no 11754 ;; 11755 motorola) 11756 need_lib_prefix=no 11757 need_version=no 11758 shlibpath_overrides_runpath=no 11759 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11760 ;; 11761 esac 11762 ;; 11763 11764sysv4*MP*) 11765 if test -d /usr/nec; then 11766 version_type=linux # correct to gnu/linux during the next big refactor 11767 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11768 soname_spec='$libname$shared_ext.$major' 11769 shlibpath_var=LD_LIBRARY_PATH 11770 fi 11771 ;; 11772 11773sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11774 version_type=sco 11775 need_lib_prefix=no 11776 need_version=no 11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11778 soname_spec='$libname$release$shared_ext$major' 11779 shlibpath_var=LD_LIBRARY_PATH 11780 shlibpath_overrides_runpath=yes 11781 hardcode_into_libs=yes 11782 if test yes = "$with_gnu_ld"; then 11783 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11784 else 11785 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11786 case $host_os in 11787 sco3.2v5*) 11788 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11789 ;; 11790 esac 11791 fi 11792 sys_lib_dlsearch_path_spec='/usr/lib' 11793 ;; 11794 11795tpf*) 11796 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11797 version_type=linux # correct to gnu/linux during the next big refactor 11798 need_lib_prefix=no 11799 need_version=no 11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11801 shlibpath_var=LD_LIBRARY_PATH 11802 shlibpath_overrides_runpath=no 11803 hardcode_into_libs=yes 11804 ;; 11805 11806uts4*) 11807 version_type=linux # correct to gnu/linux during the next big refactor 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 soname_spec='$libname$release$shared_ext$major' 11810 shlibpath_var=LD_LIBRARY_PATH 11811 ;; 11812 11813*) 11814 dynamic_linker=no 11815 ;; 11816esac 11817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11818printf "%s\n" "$dynamic_linker" >&6; } 11819test no = "$dynamic_linker" && can_build_shared=no 11820 11821variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11822if test yes = "$GCC"; then 11823 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11824fi 11825 11826if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11827 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11828fi 11829 11830if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11831 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11832fi 11833 11834# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11835configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11836 11837# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11838func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11839 11840# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11841configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11940printf %s "checking how to hardcode library paths into programs... " >&6; } 11941hardcode_action= 11942if test -n "$hardcode_libdir_flag_spec" || 11943 test -n "$runpath_var" || 11944 test yes = "$hardcode_automatic"; then 11945 11946 # We can hardcode non-existent directories. 11947 if test no != "$hardcode_direct" && 11948 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11949 # have to relink, otherwise we might link with an installed library 11950 # when we should be linking with a yet-to-be-installed one 11951 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11952 test no != "$hardcode_minus_L"; then 11953 # Linking always hardcodes the temporary library directory. 11954 hardcode_action=relink 11955 else 11956 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11957 hardcode_action=immediate 11958 fi 11959else 11960 # We cannot hardcode anything, or else we can only hardcode existing 11961 # directories. 11962 hardcode_action=unsupported 11963fi 11964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11965printf "%s\n" "$hardcode_action" >&6; } 11966 11967if test relink = "$hardcode_action" || 11968 test yes = "$inherit_rpath"; then 11969 # Fast installation is not supported 11970 enable_fast_install=no 11971elif test yes = "$shlibpath_overrides_runpath" || 11972 test no = "$enable_shared"; then 11973 # Fast installation is not necessary 11974 enable_fast_install=needless 11975fi 11976 11977 11978 11979 11980 11981 11982 if test yes != "$enable_dlopen"; then 11983 enable_dlopen=unknown 11984 enable_dlopen_self=unknown 11985 enable_dlopen_self_static=unknown 11986else 11987 lt_cv_dlopen=no 11988 lt_cv_dlopen_libs= 11989 11990 case $host_os in 11991 beos*) 11992 lt_cv_dlopen=load_add_on 11993 lt_cv_dlopen_libs= 11994 lt_cv_dlopen_self=yes 11995 ;; 11996 11997 mingw* | pw32* | cegcc*) 11998 lt_cv_dlopen=LoadLibrary 11999 lt_cv_dlopen_libs= 12000 ;; 12001 12002 cygwin*) 12003 lt_cv_dlopen=dlopen 12004 lt_cv_dlopen_libs= 12005 ;; 12006 12007 darwin*) 12008 # if libdl is installed we need to link against it 12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12010printf %s "checking for dlopen in -ldl... " >&6; } 12011if test ${ac_cv_lib_dl_dlopen+y} 12012then : 12013 printf %s "(cached) " >&6 12014else $as_nop 12015 ac_check_lib_save_LIBS=$LIBS 12016LIBS="-ldl $LIBS" 12017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12018/* end confdefs.h. */ 12019 12020/* Override any GCC internal prototype to avoid an error. 12021 Use char because int might match the return type of a GCC 12022 builtin and then its argument prototype would still apply. */ 12023char dlopen (); 12024int 12025main (void) 12026{ 12027return dlopen (); 12028 ; 12029 return 0; 12030} 12031_ACEOF 12032if ac_fn_c_try_link "$LINENO" 12033then : 12034 ac_cv_lib_dl_dlopen=yes 12035else $as_nop 12036 ac_cv_lib_dl_dlopen=no 12037fi 12038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12039 conftest$ac_exeext conftest.$ac_ext 12040LIBS=$ac_check_lib_save_LIBS 12041fi 12042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12043printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12044if test "x$ac_cv_lib_dl_dlopen" = xyes 12045then : 12046 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12047else $as_nop 12048 12049 lt_cv_dlopen=dyld 12050 lt_cv_dlopen_libs= 12051 lt_cv_dlopen_self=yes 12052 12053fi 12054 12055 ;; 12056 12057 tpf*) 12058 # Don't try to run any link tests for TPF. We know it's impossible 12059 # because TPF is a cross-compiler, and we know how we open DSOs. 12060 lt_cv_dlopen=dlopen 12061 lt_cv_dlopen_libs= 12062 lt_cv_dlopen_self=no 12063 ;; 12064 12065 *) 12066 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12067if test "x$ac_cv_func_shl_load" = xyes 12068then : 12069 lt_cv_dlopen=shl_load 12070else $as_nop 12071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12072printf %s "checking for shl_load in -ldld... " >&6; } 12073if test ${ac_cv_lib_dld_shl_load+y} 12074then : 12075 printf %s "(cached) " >&6 12076else $as_nop 12077 ac_check_lib_save_LIBS=$LIBS 12078LIBS="-ldld $LIBS" 12079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12080/* end confdefs.h. */ 12081 12082/* Override any GCC internal prototype to avoid an error. 12083 Use char because int might match the return type of a GCC 12084 builtin and then its argument prototype would still apply. */ 12085char shl_load (); 12086int 12087main (void) 12088{ 12089return shl_load (); 12090 ; 12091 return 0; 12092} 12093_ACEOF 12094if ac_fn_c_try_link "$LINENO" 12095then : 12096 ac_cv_lib_dld_shl_load=yes 12097else $as_nop 12098 ac_cv_lib_dld_shl_load=no 12099fi 12100rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12101 conftest$ac_exeext conftest.$ac_ext 12102LIBS=$ac_check_lib_save_LIBS 12103fi 12104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12105printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12106if test "x$ac_cv_lib_dld_shl_load" = xyes 12107then : 12108 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12109else $as_nop 12110 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12111if test "x$ac_cv_func_dlopen" = xyes 12112then : 12113 lt_cv_dlopen=dlopen 12114else $as_nop 12115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12116printf %s "checking for dlopen in -ldl... " >&6; } 12117if test ${ac_cv_lib_dl_dlopen+y} 12118then : 12119 printf %s "(cached) " >&6 12120else $as_nop 12121 ac_check_lib_save_LIBS=$LIBS 12122LIBS="-ldl $LIBS" 12123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12124/* end confdefs.h. */ 12125 12126/* Override any GCC internal prototype to avoid an error. 12127 Use char because int might match the return type of a GCC 12128 builtin and then its argument prototype would still apply. */ 12129char dlopen (); 12130int 12131main (void) 12132{ 12133return dlopen (); 12134 ; 12135 return 0; 12136} 12137_ACEOF 12138if ac_fn_c_try_link "$LINENO" 12139then : 12140 ac_cv_lib_dl_dlopen=yes 12141else $as_nop 12142 ac_cv_lib_dl_dlopen=no 12143fi 12144rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12145 conftest$ac_exeext conftest.$ac_ext 12146LIBS=$ac_check_lib_save_LIBS 12147fi 12148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12149printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12150if test "x$ac_cv_lib_dl_dlopen" = xyes 12151then : 12152 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12153else $as_nop 12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12155printf %s "checking for dlopen in -lsvld... " >&6; } 12156if test ${ac_cv_lib_svld_dlopen+y} 12157then : 12158 printf %s "(cached) " >&6 12159else $as_nop 12160 ac_check_lib_save_LIBS=$LIBS 12161LIBS="-lsvld $LIBS" 12162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12163/* end confdefs.h. */ 12164 12165/* Override any GCC internal prototype to avoid an error. 12166 Use char because int might match the return type of a GCC 12167 builtin and then its argument prototype would still apply. */ 12168char dlopen (); 12169int 12170main (void) 12171{ 12172return dlopen (); 12173 ; 12174 return 0; 12175} 12176_ACEOF 12177if ac_fn_c_try_link "$LINENO" 12178then : 12179 ac_cv_lib_svld_dlopen=yes 12180else $as_nop 12181 ac_cv_lib_svld_dlopen=no 12182fi 12183rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12184 conftest$ac_exeext conftest.$ac_ext 12185LIBS=$ac_check_lib_save_LIBS 12186fi 12187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12188printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12189if test "x$ac_cv_lib_svld_dlopen" = xyes 12190then : 12191 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12192else $as_nop 12193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12194printf %s "checking for dld_link in -ldld... " >&6; } 12195if test ${ac_cv_lib_dld_dld_link+y} 12196then : 12197 printf %s "(cached) " >&6 12198else $as_nop 12199 ac_check_lib_save_LIBS=$LIBS 12200LIBS="-ldld $LIBS" 12201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12202/* end confdefs.h. */ 12203 12204/* Override any GCC internal prototype to avoid an error. 12205 Use char because int might match the return type of a GCC 12206 builtin and then its argument prototype would still apply. */ 12207char dld_link (); 12208int 12209main (void) 12210{ 12211return dld_link (); 12212 ; 12213 return 0; 12214} 12215_ACEOF 12216if ac_fn_c_try_link "$LINENO" 12217then : 12218 ac_cv_lib_dld_dld_link=yes 12219else $as_nop 12220 ac_cv_lib_dld_dld_link=no 12221fi 12222rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12223 conftest$ac_exeext conftest.$ac_ext 12224LIBS=$ac_check_lib_save_LIBS 12225fi 12226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12227printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12228if test "x$ac_cv_lib_dld_dld_link" = xyes 12229then : 12230 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12231fi 12232 12233 12234fi 12235 12236 12237fi 12238 12239 12240fi 12241 12242 12243fi 12244 12245 12246fi 12247 12248 ;; 12249 esac 12250 12251 if test no = "$lt_cv_dlopen"; then 12252 enable_dlopen=no 12253 else 12254 enable_dlopen=yes 12255 fi 12256 12257 case $lt_cv_dlopen in 12258 dlopen) 12259 save_CPPFLAGS=$CPPFLAGS 12260 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12261 12262 save_LDFLAGS=$LDFLAGS 12263 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12264 12265 save_LIBS=$LIBS 12266 LIBS="$lt_cv_dlopen_libs $LIBS" 12267 12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12269printf %s "checking whether a program can dlopen itself... " >&6; } 12270if test ${lt_cv_dlopen_self+y} 12271then : 12272 printf %s "(cached) " >&6 12273else $as_nop 12274 if test yes = "$cross_compiling"; then : 12275 lt_cv_dlopen_self=cross 12276else 12277 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12278 lt_status=$lt_dlunknown 12279 cat > conftest.$ac_ext <<_LT_EOF 12280#line $LINENO "configure" 12281#include "confdefs.h" 12282 12283#if HAVE_DLFCN_H 12284#include <dlfcn.h> 12285#endif 12286 12287#include <stdio.h> 12288 12289#ifdef RTLD_GLOBAL 12290# define LT_DLGLOBAL RTLD_GLOBAL 12291#else 12292# ifdef DL_GLOBAL 12293# define LT_DLGLOBAL DL_GLOBAL 12294# else 12295# define LT_DLGLOBAL 0 12296# endif 12297#endif 12298 12299/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12300 find out it does not work in some platform. */ 12301#ifndef LT_DLLAZY_OR_NOW 12302# ifdef RTLD_LAZY 12303# define LT_DLLAZY_OR_NOW RTLD_LAZY 12304# else 12305# ifdef DL_LAZY 12306# define LT_DLLAZY_OR_NOW DL_LAZY 12307# else 12308# ifdef RTLD_NOW 12309# define LT_DLLAZY_OR_NOW RTLD_NOW 12310# else 12311# ifdef DL_NOW 12312# define LT_DLLAZY_OR_NOW DL_NOW 12313# else 12314# define LT_DLLAZY_OR_NOW 0 12315# endif 12316# endif 12317# endif 12318# endif 12319#endif 12320 12321/* When -fvisibility=hidden is used, assume the code has been annotated 12322 correspondingly for the symbols needed. */ 12323#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12324int fnord () __attribute__((visibility("default"))); 12325#endif 12326 12327int fnord () { return 42; } 12328int main () 12329{ 12330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12331 int status = $lt_dlunknown; 12332 12333 if (self) 12334 { 12335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12336 else 12337 { 12338 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12339 else puts (dlerror ()); 12340 } 12341 /* dlclose (self); */ 12342 } 12343 else 12344 puts (dlerror ()); 12345 12346 return status; 12347} 12348_LT_EOF 12349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12350 (eval $ac_link) 2>&5 12351 ac_status=$? 12352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12353 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12354 (./conftest; exit; ) >&5 2>/dev/null 12355 lt_status=$? 12356 case x$lt_status in 12357 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12358 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12359 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12360 esac 12361 else : 12362 # compilation failed 12363 lt_cv_dlopen_self=no 12364 fi 12365fi 12366rm -fr conftest* 12367 12368 12369fi 12370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12371printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12372 12373 if test yes = "$lt_cv_dlopen_self"; then 12374 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12376printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12377if test ${lt_cv_dlopen_self_static+y} 12378then : 12379 printf %s "(cached) " >&6 12380else $as_nop 12381 if test yes = "$cross_compiling"; then : 12382 lt_cv_dlopen_self_static=cross 12383else 12384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12385 lt_status=$lt_dlunknown 12386 cat > conftest.$ac_ext <<_LT_EOF 12387#line $LINENO "configure" 12388#include "confdefs.h" 12389 12390#if HAVE_DLFCN_H 12391#include <dlfcn.h> 12392#endif 12393 12394#include <stdio.h> 12395 12396#ifdef RTLD_GLOBAL 12397# define LT_DLGLOBAL RTLD_GLOBAL 12398#else 12399# ifdef DL_GLOBAL 12400# define LT_DLGLOBAL DL_GLOBAL 12401# else 12402# define LT_DLGLOBAL 0 12403# endif 12404#endif 12405 12406/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12407 find out it does not work in some platform. */ 12408#ifndef LT_DLLAZY_OR_NOW 12409# ifdef RTLD_LAZY 12410# define LT_DLLAZY_OR_NOW RTLD_LAZY 12411# else 12412# ifdef DL_LAZY 12413# define LT_DLLAZY_OR_NOW DL_LAZY 12414# else 12415# ifdef RTLD_NOW 12416# define LT_DLLAZY_OR_NOW RTLD_NOW 12417# else 12418# ifdef DL_NOW 12419# define LT_DLLAZY_OR_NOW DL_NOW 12420# else 12421# define LT_DLLAZY_OR_NOW 0 12422# endif 12423# endif 12424# endif 12425# endif 12426#endif 12427 12428/* When -fvisibility=hidden is used, assume the code has been annotated 12429 correspondingly for the symbols needed. */ 12430#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12431int fnord () __attribute__((visibility("default"))); 12432#endif 12433 12434int fnord () { return 42; } 12435int main () 12436{ 12437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12438 int status = $lt_dlunknown; 12439 12440 if (self) 12441 { 12442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12443 else 12444 { 12445 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12446 else puts (dlerror ()); 12447 } 12448 /* dlclose (self); */ 12449 } 12450 else 12451 puts (dlerror ()); 12452 12453 return status; 12454} 12455_LT_EOF 12456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12457 (eval $ac_link) 2>&5 12458 ac_status=$? 12459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12460 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12461 (./conftest; exit; ) >&5 2>/dev/null 12462 lt_status=$? 12463 case x$lt_status in 12464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12466 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12467 esac 12468 else : 12469 # compilation failed 12470 lt_cv_dlopen_self_static=no 12471 fi 12472fi 12473rm -fr conftest* 12474 12475 12476fi 12477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12478printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12479 fi 12480 12481 CPPFLAGS=$save_CPPFLAGS 12482 LDFLAGS=$save_LDFLAGS 12483 LIBS=$save_LIBS 12484 ;; 12485 esac 12486 12487 case $lt_cv_dlopen_self in 12488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12489 *) enable_dlopen_self=unknown ;; 12490 esac 12491 12492 case $lt_cv_dlopen_self_static in 12493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12494 *) enable_dlopen_self_static=unknown ;; 12495 esac 12496fi 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514striplib= 12515old_striplib= 12516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12517printf %s "checking whether stripping libraries is possible... " >&6; } 12518if test -z "$STRIP"; then 12519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12520printf "%s\n" "no" >&6; } 12521else 12522 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12523 old_striplib="$STRIP --strip-debug" 12524 striplib="$STRIP --strip-unneeded" 12525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12526printf "%s\n" "yes" >&6; } 12527 else 12528 case $host_os in 12529 darwin*) 12530 # FIXME - insert some real tests, host_os isn't really good enough 12531 striplib="$STRIP -x" 12532 old_striplib="$STRIP -S" 12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12534printf "%s\n" "yes" >&6; } 12535 ;; 12536 freebsd*) 12537 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12538 old_striplib="$STRIP --strip-debug" 12539 striplib="$STRIP --strip-unneeded" 12540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12541printf "%s\n" "yes" >&6; } 12542 else 12543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12544printf "%s\n" "no" >&6; } 12545 fi 12546 ;; 12547 *) 12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12549printf "%s\n" "no" >&6; } 12550 ;; 12551 esac 12552 fi 12553fi 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 # Report what library types will actually be built 12567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12568printf %s "checking if libtool supports shared libraries... " >&6; } 12569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12570printf "%s\n" "$can_build_shared" >&6; } 12571 12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12573printf %s "checking whether to build shared libraries... " >&6; } 12574 test no = "$can_build_shared" && enable_shared=no 12575 12576 # On AIX, shared libraries and static libraries use the same namespace, and 12577 # are all built from PIC. 12578 case $host_os in 12579 aix3*) 12580 test yes = "$enable_shared" && enable_static=no 12581 if test -n "$RANLIB"; then 12582 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12583 postinstall_cmds='$RANLIB $lib' 12584 fi 12585 ;; 12586 12587 aix[4-9]*) 12588 if test ia64 != "$host_cpu"; then 12589 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12590 yes,aix,yes) ;; # shared object as lib.so file only 12591 yes,svr4,*) ;; # shared object as lib.so archive member only 12592 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12593 esac 12594 fi 12595 ;; 12596 esac 12597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12598printf "%s\n" "$enable_shared" >&6; } 12599 12600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12601printf %s "checking whether to build static libraries... " >&6; } 12602 # Make sure either enable_shared or enable_static is yes. 12603 test yes = "$enable_shared" || enable_static=yes 12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12605printf "%s\n" "$enable_static" >&6; } 12606 12607 12608 12609 12610fi 12611ac_ext=c 12612ac_cpp='$CPP $CPPFLAGS' 12613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12615ac_compiler_gnu=$ac_cv_c_compiler_gnu 12616 12617CC=$lt_save_CC 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 ac_config_commands="$ac_config_commands libtool" 12634 12635 12636 12637 12638# Only expand once: 12639 12640 12641 12642# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12656printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12657if test ${ac_cv_c_undeclared_builtin_options+y} 12658then : 12659 printf %s "(cached) " >&6 12660else $as_nop 12661 ac_save_CFLAGS=$CFLAGS 12662 ac_cv_c_undeclared_builtin_options='cannot detect' 12663 for ac_arg in '' -fno-builtin; do 12664 CFLAGS="$ac_save_CFLAGS $ac_arg" 12665 # This test program should *not* compile successfully. 12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12667/* end confdefs.h. */ 12668 12669int 12670main (void) 12671{ 12672(void) strchr; 12673 ; 12674 return 0; 12675} 12676_ACEOF 12677if ac_fn_c_try_compile "$LINENO" 12678then : 12679 12680else $as_nop 12681 # This test program should compile successfully. 12682 # No library function is consistently available on 12683 # freestanding implementations, so test against a dummy 12684 # declaration. Include always-available headers on the 12685 # off chance that they somehow elicit warnings. 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687/* end confdefs.h. */ 12688#include <float.h> 12689#include <limits.h> 12690#include <stdarg.h> 12691#include <stddef.h> 12692extern void ac_decl (int, char *); 12693 12694int 12695main (void) 12696{ 12697(void) ac_decl (0, (char *) 0); 12698 (void) ac_decl; 12699 12700 ; 12701 return 0; 12702} 12703_ACEOF 12704if ac_fn_c_try_compile "$LINENO" 12705then : 12706 if test x"$ac_arg" = x 12707then : 12708 ac_cv_c_undeclared_builtin_options='none needed' 12709else $as_nop 12710 ac_cv_c_undeclared_builtin_options=$ac_arg 12711fi 12712 break 12713fi 12714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12715fi 12716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12717 done 12718 CFLAGS=$ac_save_CFLAGS 12719 12720fi 12721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12722printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12723 case $ac_cv_c_undeclared_builtin_options in #( 12724 'cannot detect') : 12725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12726printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12727as_fn_error $? "cannot make $CC report undeclared builtins 12728See \`config.log' for more details" "$LINENO" 5; } ;; #( 12729 'none needed') : 12730 ac_c_undeclared_builtin_options='' ;; #( 12731 *) : 12732 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12733esac 12734 12735 12736 12737 12738 12739ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12740if test "x$ac_cv_have_decl___clang__" = xyes 12741then : 12742 CLANGCC="yes" 12743else $as_nop 12744 CLANGCC="no" 12745fi 12746ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12747if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12748then : 12749 INTELCC="yes" 12750else $as_nop 12751 INTELCC="no" 12752fi 12753ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12754if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12755then : 12756 SUNCC="yes" 12757else $as_nop 12758 SUNCC="no" 12759fi 12760 12761 12762 12763 12764 12765 12766 12767 12768if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12769 if test -n "$ac_tool_prefix"; then 12770 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12771set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12773printf %s "checking for $ac_word... " >&6; } 12774if test ${ac_cv_path_PKG_CONFIG+y} 12775then : 12776 printf %s "(cached) " >&6 12777else $as_nop 12778 case $PKG_CONFIG in 12779 [\\/]* | ?:[\\/]*) 12780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12781 ;; 12782 *) 12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12784for as_dir in $PATH 12785do 12786 IFS=$as_save_IFS 12787 case $as_dir in #((( 12788 '') as_dir=./ ;; 12789 */) ;; 12790 *) as_dir=$as_dir/ ;; 12791 esac 12792 for ac_exec_ext in '' $ac_executable_extensions; do 12793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12794 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12796 break 2 12797 fi 12798done 12799 done 12800IFS=$as_save_IFS 12801 12802 ;; 12803esac 12804fi 12805PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12806if test -n "$PKG_CONFIG"; then 12807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12808printf "%s\n" "$PKG_CONFIG" >&6; } 12809else 12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12811printf "%s\n" "no" >&6; } 12812fi 12813 12814 12815fi 12816if test -z "$ac_cv_path_PKG_CONFIG"; then 12817 ac_pt_PKG_CONFIG=$PKG_CONFIG 12818 # Extract the first word of "pkg-config", so it can be a program name with args. 12819set dummy pkg-config; ac_word=$2 12820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12821printf %s "checking for $ac_word... " >&6; } 12822if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12823then : 12824 printf %s "(cached) " >&6 12825else $as_nop 12826 case $ac_pt_PKG_CONFIG in 12827 [\\/]* | ?:[\\/]*) 12828 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12829 ;; 12830 *) 12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12832for as_dir in $PATH 12833do 12834 IFS=$as_save_IFS 12835 case $as_dir in #((( 12836 '') as_dir=./ ;; 12837 */) ;; 12838 *) as_dir=$as_dir/ ;; 12839 esac 12840 for ac_exec_ext in '' $ac_executable_extensions; do 12841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12844 break 2 12845 fi 12846done 12847 done 12848IFS=$as_save_IFS 12849 12850 ;; 12851esac 12852fi 12853ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12854if test -n "$ac_pt_PKG_CONFIG"; then 12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12856printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12857else 12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12859printf "%s\n" "no" >&6; } 12860fi 12861 12862 if test "x$ac_pt_PKG_CONFIG" = x; then 12863 PKG_CONFIG="" 12864 else 12865 case $cross_compiling:$ac_tool_warned in 12866yes:) 12867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12868printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12869ac_tool_warned=yes ;; 12870esac 12871 PKG_CONFIG=$ac_pt_PKG_CONFIG 12872 fi 12873else 12874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12875fi 12876 12877fi 12878if test -n "$PKG_CONFIG"; then 12879 _pkg_min_version=0.9.0 12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12881printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12884printf "%s\n" "yes" >&6; } 12885 else 12886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12887printf "%s\n" "no" >&6; } 12888 PKG_CONFIG="" 12889 fi 12890fi 12891 12892 12893 12894 12895 12896# Check whether --enable-selective-werror was given. 12897if test ${enable_selective_werror+y} 12898then : 12899 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12900else $as_nop 12901 SELECTIVE_WERROR=yes 12902fi 12903 12904 12905 12906 12907 12908# -v is too short to test reliably with XORG_TESTSET_CFLAG 12909if test "x$SUNCC" = "xyes"; then 12910 BASE_CFLAGS="-v" 12911else 12912 BASE_CFLAGS="" 12913fi 12914 12915# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929xorg_testset_save_CFLAGS="$CFLAGS" 12930 12931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12934printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12935if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12936then : 12937 printf %s "(cached) " >&6 12938else $as_nop 12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12940/* end confdefs.h. */ 12941int i; 12942_ACEOF 12943if ac_fn_c_try_compile "$LINENO" 12944then : 12945 xorg_cv_cc_flag_unknown_warning_option=yes 12946else $as_nop 12947 xorg_cv_cc_flag_unknown_warning_option=no 12948fi 12949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12950fi 12951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12952printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12954 CFLAGS="$xorg_testset_save_CFLAGS" 12955fi 12956 12957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12960 fi 12961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12963printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12964if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12965then : 12966 printf %s "(cached) " >&6 12967else $as_nop 12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12969/* end confdefs.h. */ 12970int i; 12971_ACEOF 12972if ac_fn_c_try_compile "$LINENO" 12973then : 12974 xorg_cv_cc_flag_unused_command_line_argument=yes 12975else $as_nop 12976 xorg_cv_cc_flag_unused_command_line_argument=no 12977fi 12978rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12979fi 12980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12981printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12983 CFLAGS="$xorg_testset_save_CFLAGS" 12984fi 12985 12986found="no" 12987 12988 if test $found = "no" ; then 12989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12991 fi 12992 12993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12995 fi 12996 12997 CFLAGS="$CFLAGS -Wall" 12998 12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13000printf %s "checking if $CC supports -Wall... " >&6; } 13001 cacheid=xorg_cv_cc_flag__Wall 13002 if eval test \${$cacheid+y} 13003then : 13004 printf %s "(cached) " >&6 13005else $as_nop 13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13007/* end confdefs.h. */ 13008int i; 13009int 13010main (void) 13011{ 13012 13013 ; 13014 return 0; 13015} 13016_ACEOF 13017if ac_fn_c_try_link "$LINENO" 13018then : 13019 eval $cacheid=yes 13020else $as_nop 13021 eval $cacheid=no 13022fi 13023rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13024 conftest$ac_exeext conftest.$ac_ext 13025fi 13026 13027 13028 CFLAGS="$xorg_testset_save_CFLAGS" 13029 13030 eval supported=\$$cacheid 13031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13032printf "%s\n" "$supported" >&6; } 13033 if test "$supported" = "yes" ; then 13034 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13035 found="yes" 13036 fi 13037 fi 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053xorg_testset_save_CFLAGS="$CFLAGS" 13054 13055if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13058printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13059if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13060then : 13061 printf %s "(cached) " >&6 13062else $as_nop 13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13064/* end confdefs.h. */ 13065int i; 13066_ACEOF 13067if ac_fn_c_try_compile "$LINENO" 13068then : 13069 xorg_cv_cc_flag_unknown_warning_option=yes 13070else $as_nop 13071 xorg_cv_cc_flag_unknown_warning_option=no 13072fi 13073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13074fi 13075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13076printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13078 CFLAGS="$xorg_testset_save_CFLAGS" 13079fi 13080 13081if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13083 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13084 fi 13085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13087printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13088if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13089then : 13090 printf %s "(cached) " >&6 13091else $as_nop 13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094int i; 13095_ACEOF 13096if ac_fn_c_try_compile "$LINENO" 13097then : 13098 xorg_cv_cc_flag_unused_command_line_argument=yes 13099else $as_nop 13100 xorg_cv_cc_flag_unused_command_line_argument=no 13101fi 13102rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13103fi 13104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13107 CFLAGS="$xorg_testset_save_CFLAGS" 13108fi 13109 13110found="no" 13111 13112 if test $found = "no" ; then 13113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13115 fi 13116 13117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13119 fi 13120 13121 CFLAGS="$CFLAGS -Wpointer-arith" 13122 13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13124printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13125 cacheid=xorg_cv_cc_flag__Wpointer_arith 13126 if eval test \${$cacheid+y} 13127then : 13128 printf %s "(cached) " >&6 13129else $as_nop 13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13131/* end confdefs.h. */ 13132int i; 13133int 13134main (void) 13135{ 13136 13137 ; 13138 return 0; 13139} 13140_ACEOF 13141if ac_fn_c_try_link "$LINENO" 13142then : 13143 eval $cacheid=yes 13144else $as_nop 13145 eval $cacheid=no 13146fi 13147rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13148 conftest$ac_exeext conftest.$ac_ext 13149fi 13150 13151 13152 CFLAGS="$xorg_testset_save_CFLAGS" 13153 13154 eval supported=\$$cacheid 13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13156printf "%s\n" "$supported" >&6; } 13157 if test "$supported" = "yes" ; then 13158 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13159 found="yes" 13160 fi 13161 fi 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177xorg_testset_save_CFLAGS="$CFLAGS" 13178 13179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13183if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13184then : 13185 printf %s "(cached) " >&6 13186else $as_nop 13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13188/* end confdefs.h. */ 13189int i; 13190_ACEOF 13191if ac_fn_c_try_compile "$LINENO" 13192then : 13193 xorg_cv_cc_flag_unknown_warning_option=yes 13194else $as_nop 13195 xorg_cv_cc_flag_unknown_warning_option=no 13196fi 13197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13198fi 13199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13202 CFLAGS="$xorg_testset_save_CFLAGS" 13203fi 13204 13205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13208 fi 13209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13212if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13213then : 13214 printf %s "(cached) " >&6 13215else $as_nop 13216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13217/* end confdefs.h. */ 13218int i; 13219_ACEOF 13220if ac_fn_c_try_compile "$LINENO" 13221then : 13222 xorg_cv_cc_flag_unused_command_line_argument=yes 13223else $as_nop 13224 xorg_cv_cc_flag_unused_command_line_argument=no 13225fi 13226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13227fi 13228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13231 CFLAGS="$xorg_testset_save_CFLAGS" 13232fi 13233 13234found="no" 13235 13236 if test $found = "no" ; then 13237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13239 fi 13240 13241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13243 fi 13244 13245 CFLAGS="$CFLAGS -Wmissing-declarations" 13246 13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13248printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13249 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13250 if eval test \${$cacheid+y} 13251then : 13252 printf %s "(cached) " >&6 13253else $as_nop 13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13255/* end confdefs.h. */ 13256int i; 13257int 13258main (void) 13259{ 13260 13261 ; 13262 return 0; 13263} 13264_ACEOF 13265if ac_fn_c_try_link "$LINENO" 13266then : 13267 eval $cacheid=yes 13268else $as_nop 13269 eval $cacheid=no 13270fi 13271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13272 conftest$ac_exeext conftest.$ac_ext 13273fi 13274 13275 13276 CFLAGS="$xorg_testset_save_CFLAGS" 13277 13278 eval supported=\$$cacheid 13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13280printf "%s\n" "$supported" >&6; } 13281 if test "$supported" = "yes" ; then 13282 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13283 found="yes" 13284 fi 13285 fi 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301xorg_testset_save_CFLAGS="$CFLAGS" 13302 13303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13306printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13307if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13308then : 13309 printf %s "(cached) " >&6 13310else $as_nop 13311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13312/* end confdefs.h. */ 13313int i; 13314_ACEOF 13315if ac_fn_c_try_compile "$LINENO" 13316then : 13317 xorg_cv_cc_flag_unknown_warning_option=yes 13318else $as_nop 13319 xorg_cv_cc_flag_unknown_warning_option=no 13320fi 13321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13322fi 13323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13324printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13326 CFLAGS="$xorg_testset_save_CFLAGS" 13327fi 13328 13329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13332 fi 13333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13335printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13336if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13337then : 13338 printf %s "(cached) " >&6 13339else $as_nop 13340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13341/* end confdefs.h. */ 13342int i; 13343_ACEOF 13344if ac_fn_c_try_compile "$LINENO" 13345then : 13346 xorg_cv_cc_flag_unused_command_line_argument=yes 13347else $as_nop 13348 xorg_cv_cc_flag_unused_command_line_argument=no 13349fi 13350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13351fi 13352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13353printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13355 CFLAGS="$xorg_testset_save_CFLAGS" 13356fi 13357 13358found="no" 13359 13360 if test $found = "no" ; then 13361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13363 fi 13364 13365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13367 fi 13368 13369 CFLAGS="$CFLAGS -Wformat=2" 13370 13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13372printf %s "checking if $CC supports -Wformat=2... " >&6; } 13373 cacheid=xorg_cv_cc_flag__Wformat_2 13374 if eval test \${$cacheid+y} 13375then : 13376 printf %s "(cached) " >&6 13377else $as_nop 13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13379/* end confdefs.h. */ 13380int i; 13381int 13382main (void) 13383{ 13384 13385 ; 13386 return 0; 13387} 13388_ACEOF 13389if ac_fn_c_try_link "$LINENO" 13390then : 13391 eval $cacheid=yes 13392else $as_nop 13393 eval $cacheid=no 13394fi 13395rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13396 conftest$ac_exeext conftest.$ac_ext 13397fi 13398 13399 13400 CFLAGS="$xorg_testset_save_CFLAGS" 13401 13402 eval supported=\$$cacheid 13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13404printf "%s\n" "$supported" >&6; } 13405 if test "$supported" = "yes" ; then 13406 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13407 found="yes" 13408 fi 13409 fi 13410 13411 if test $found = "no" ; then 13412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13414 fi 13415 13416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13418 fi 13419 13420 CFLAGS="$CFLAGS -Wformat" 13421 13422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13423printf %s "checking if $CC supports -Wformat... " >&6; } 13424 cacheid=xorg_cv_cc_flag__Wformat 13425 if eval test \${$cacheid+y} 13426then : 13427 printf %s "(cached) " >&6 13428else $as_nop 13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13430/* end confdefs.h. */ 13431int i; 13432int 13433main (void) 13434{ 13435 13436 ; 13437 return 0; 13438} 13439_ACEOF 13440if ac_fn_c_try_link "$LINENO" 13441then : 13442 eval $cacheid=yes 13443else $as_nop 13444 eval $cacheid=no 13445fi 13446rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13447 conftest$ac_exeext conftest.$ac_ext 13448fi 13449 13450 13451 CFLAGS="$xorg_testset_save_CFLAGS" 13452 13453 eval supported=\$$cacheid 13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13455printf "%s\n" "$supported" >&6; } 13456 if test "$supported" = "yes" ; then 13457 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13458 found="yes" 13459 fi 13460 fi 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478xorg_testset_save_CFLAGS="$CFLAGS" 13479 13480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13483printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13484if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13485then : 13486 printf %s "(cached) " >&6 13487else $as_nop 13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13489/* end confdefs.h. */ 13490int i; 13491_ACEOF 13492if ac_fn_c_try_compile "$LINENO" 13493then : 13494 xorg_cv_cc_flag_unknown_warning_option=yes 13495else $as_nop 13496 xorg_cv_cc_flag_unknown_warning_option=no 13497fi 13498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13499fi 13500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13501printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13503 CFLAGS="$xorg_testset_save_CFLAGS" 13504fi 13505 13506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13509 fi 13510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13512printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13513if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13514then : 13515 printf %s "(cached) " >&6 13516else $as_nop 13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13518/* end confdefs.h. */ 13519int i; 13520_ACEOF 13521if ac_fn_c_try_compile "$LINENO" 13522then : 13523 xorg_cv_cc_flag_unused_command_line_argument=yes 13524else $as_nop 13525 xorg_cv_cc_flag_unused_command_line_argument=no 13526fi 13527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13528fi 13529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13530printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13532 CFLAGS="$xorg_testset_save_CFLAGS" 13533fi 13534 13535found="no" 13536 13537 if test $found = "no" ; then 13538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13540 fi 13541 13542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13544 fi 13545 13546 CFLAGS="$CFLAGS -Wstrict-prototypes" 13547 13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13549printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13550 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13551 if eval test \${$cacheid+y} 13552then : 13553 printf %s "(cached) " >&6 13554else $as_nop 13555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13556/* end confdefs.h. */ 13557int i; 13558int 13559main (void) 13560{ 13561 13562 ; 13563 return 0; 13564} 13565_ACEOF 13566if ac_fn_c_try_link "$LINENO" 13567then : 13568 eval $cacheid=yes 13569else $as_nop 13570 eval $cacheid=no 13571fi 13572rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13573 conftest$ac_exeext conftest.$ac_ext 13574fi 13575 13576 13577 CFLAGS="$xorg_testset_save_CFLAGS" 13578 13579 eval supported=\$$cacheid 13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13581printf "%s\n" "$supported" >&6; } 13582 if test "$supported" = "yes" ; then 13583 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13584 found="yes" 13585 fi 13586 fi 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602xorg_testset_save_CFLAGS="$CFLAGS" 13603 13604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13607printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13608if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13609then : 13610 printf %s "(cached) " >&6 13611else $as_nop 13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13613/* end confdefs.h. */ 13614int i; 13615_ACEOF 13616if ac_fn_c_try_compile "$LINENO" 13617then : 13618 xorg_cv_cc_flag_unknown_warning_option=yes 13619else $as_nop 13620 xorg_cv_cc_flag_unknown_warning_option=no 13621fi 13622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13623fi 13624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13625printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13627 CFLAGS="$xorg_testset_save_CFLAGS" 13628fi 13629 13630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13633 fi 13634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13636printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13637if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13638then : 13639 printf %s "(cached) " >&6 13640else $as_nop 13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13642/* end confdefs.h. */ 13643int i; 13644_ACEOF 13645if ac_fn_c_try_compile "$LINENO" 13646then : 13647 xorg_cv_cc_flag_unused_command_line_argument=yes 13648else $as_nop 13649 xorg_cv_cc_flag_unused_command_line_argument=no 13650fi 13651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13652fi 13653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13654printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13656 CFLAGS="$xorg_testset_save_CFLAGS" 13657fi 13658 13659found="no" 13660 13661 if test $found = "no" ; then 13662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13664 fi 13665 13666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13668 fi 13669 13670 CFLAGS="$CFLAGS -Wmissing-prototypes" 13671 13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13673printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13674 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13675 if eval test \${$cacheid+y} 13676then : 13677 printf %s "(cached) " >&6 13678else $as_nop 13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13680/* end confdefs.h. */ 13681int i; 13682int 13683main (void) 13684{ 13685 13686 ; 13687 return 0; 13688} 13689_ACEOF 13690if ac_fn_c_try_link "$LINENO" 13691then : 13692 eval $cacheid=yes 13693else $as_nop 13694 eval $cacheid=no 13695fi 13696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13697 conftest$ac_exeext conftest.$ac_ext 13698fi 13699 13700 13701 CFLAGS="$xorg_testset_save_CFLAGS" 13702 13703 eval supported=\$$cacheid 13704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13705printf "%s\n" "$supported" >&6; } 13706 if test "$supported" = "yes" ; then 13707 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13708 found="yes" 13709 fi 13710 fi 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726xorg_testset_save_CFLAGS="$CFLAGS" 13727 13728if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13731printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13732if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13733then : 13734 printf %s "(cached) " >&6 13735else $as_nop 13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13737/* end confdefs.h. */ 13738int i; 13739_ACEOF 13740if ac_fn_c_try_compile "$LINENO" 13741then : 13742 xorg_cv_cc_flag_unknown_warning_option=yes 13743else $as_nop 13744 xorg_cv_cc_flag_unknown_warning_option=no 13745fi 13746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13747fi 13748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13749printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13751 CFLAGS="$xorg_testset_save_CFLAGS" 13752fi 13753 13754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13757 fi 13758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13760printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13761if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13762then : 13763 printf %s "(cached) " >&6 13764else $as_nop 13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13766/* end confdefs.h. */ 13767int i; 13768_ACEOF 13769if ac_fn_c_try_compile "$LINENO" 13770then : 13771 xorg_cv_cc_flag_unused_command_line_argument=yes 13772else $as_nop 13773 xorg_cv_cc_flag_unused_command_line_argument=no 13774fi 13775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13776fi 13777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13778printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13780 CFLAGS="$xorg_testset_save_CFLAGS" 13781fi 13782 13783found="no" 13784 13785 if test $found = "no" ; then 13786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13788 fi 13789 13790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13792 fi 13793 13794 CFLAGS="$CFLAGS -Wnested-externs" 13795 13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13797printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13798 cacheid=xorg_cv_cc_flag__Wnested_externs 13799 if eval test \${$cacheid+y} 13800then : 13801 printf %s "(cached) " >&6 13802else $as_nop 13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13804/* end confdefs.h. */ 13805int i; 13806int 13807main (void) 13808{ 13809 13810 ; 13811 return 0; 13812} 13813_ACEOF 13814if ac_fn_c_try_link "$LINENO" 13815then : 13816 eval $cacheid=yes 13817else $as_nop 13818 eval $cacheid=no 13819fi 13820rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13821 conftest$ac_exeext conftest.$ac_ext 13822fi 13823 13824 13825 CFLAGS="$xorg_testset_save_CFLAGS" 13826 13827 eval supported=\$$cacheid 13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13829printf "%s\n" "$supported" >&6; } 13830 if test "$supported" = "yes" ; then 13831 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13832 found="yes" 13833 fi 13834 fi 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850xorg_testset_save_CFLAGS="$CFLAGS" 13851 13852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13855printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13856if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13857then : 13858 printf %s "(cached) " >&6 13859else $as_nop 13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13861/* end confdefs.h. */ 13862int i; 13863_ACEOF 13864if ac_fn_c_try_compile "$LINENO" 13865then : 13866 xorg_cv_cc_flag_unknown_warning_option=yes 13867else $as_nop 13868 xorg_cv_cc_flag_unknown_warning_option=no 13869fi 13870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13871fi 13872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13875 CFLAGS="$xorg_testset_save_CFLAGS" 13876fi 13877 13878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13881 fi 13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13885if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13886then : 13887 printf %s "(cached) " >&6 13888else $as_nop 13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890/* end confdefs.h. */ 13891int i; 13892_ACEOF 13893if ac_fn_c_try_compile "$LINENO" 13894then : 13895 xorg_cv_cc_flag_unused_command_line_argument=yes 13896else $as_nop 13897 xorg_cv_cc_flag_unused_command_line_argument=no 13898fi 13899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13900fi 13901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13902printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13903 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13904 CFLAGS="$xorg_testset_save_CFLAGS" 13905fi 13906 13907found="no" 13908 13909 if test $found = "no" ; then 13910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13912 fi 13913 13914 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13916 fi 13917 13918 CFLAGS="$CFLAGS -Wbad-function-cast" 13919 13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13921printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13922 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13923 if eval test \${$cacheid+y} 13924then : 13925 printf %s "(cached) " >&6 13926else $as_nop 13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13928/* end confdefs.h. */ 13929int i; 13930int 13931main (void) 13932{ 13933 13934 ; 13935 return 0; 13936} 13937_ACEOF 13938if ac_fn_c_try_link "$LINENO" 13939then : 13940 eval $cacheid=yes 13941else $as_nop 13942 eval $cacheid=no 13943fi 13944rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13945 conftest$ac_exeext conftest.$ac_ext 13946fi 13947 13948 13949 CFLAGS="$xorg_testset_save_CFLAGS" 13950 13951 eval supported=\$$cacheid 13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13953printf "%s\n" "$supported" >&6; } 13954 if test "$supported" = "yes" ; then 13955 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13956 found="yes" 13957 fi 13958 fi 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974xorg_testset_save_CFLAGS="$CFLAGS" 13975 13976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13980if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13981then : 13982 printf %s "(cached) " >&6 13983else $as_nop 13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13985/* end confdefs.h. */ 13986int i; 13987_ACEOF 13988if ac_fn_c_try_compile "$LINENO" 13989then : 13990 xorg_cv_cc_flag_unknown_warning_option=yes 13991else $as_nop 13992 xorg_cv_cc_flag_unknown_warning_option=no 13993fi 13994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13995fi 13996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13999 CFLAGS="$xorg_testset_save_CFLAGS" 14000fi 14001 14002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14005 fi 14006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14009if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14010then : 14011 printf %s "(cached) " >&6 14012else $as_nop 14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14014/* end confdefs.h. */ 14015int i; 14016_ACEOF 14017if ac_fn_c_try_compile "$LINENO" 14018then : 14019 xorg_cv_cc_flag_unused_command_line_argument=yes 14020else $as_nop 14021 xorg_cv_cc_flag_unused_command_line_argument=no 14022fi 14023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14024fi 14025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14027 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14028 CFLAGS="$xorg_testset_save_CFLAGS" 14029fi 14030 14031found="no" 14032 14033 if test $found = "no" ; then 14034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14036 fi 14037 14038 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14039 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14040 fi 14041 14042 CFLAGS="$CFLAGS -Wold-style-definition" 14043 14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14045printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14046 cacheid=xorg_cv_cc_flag__Wold_style_definition 14047 if eval test \${$cacheid+y} 14048then : 14049 printf %s "(cached) " >&6 14050else $as_nop 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053int i; 14054int 14055main (void) 14056{ 14057 14058 ; 14059 return 0; 14060} 14061_ACEOF 14062if ac_fn_c_try_link "$LINENO" 14063then : 14064 eval $cacheid=yes 14065else $as_nop 14066 eval $cacheid=no 14067fi 14068rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14069 conftest$ac_exeext conftest.$ac_ext 14070fi 14071 14072 14073 CFLAGS="$xorg_testset_save_CFLAGS" 14074 14075 eval supported=\$$cacheid 14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14077printf "%s\n" "$supported" >&6; } 14078 if test "$supported" = "yes" ; then 14079 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14080 found="yes" 14081 fi 14082 fi 14083 14084 if test $found = "no" ; then 14085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14087 fi 14088 14089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14091 fi 14092 14093 CFLAGS="$CFLAGS -fd" 14094 14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14096printf %s "checking if $CC supports -fd... " >&6; } 14097 cacheid=xorg_cv_cc_flag__fd 14098 if eval test \${$cacheid+y} 14099then : 14100 printf %s "(cached) " >&6 14101else $as_nop 14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14103/* end confdefs.h. */ 14104int i; 14105int 14106main (void) 14107{ 14108 14109 ; 14110 return 0; 14111} 14112_ACEOF 14113if ac_fn_c_try_link "$LINENO" 14114then : 14115 eval $cacheid=yes 14116else $as_nop 14117 eval $cacheid=no 14118fi 14119rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14120 conftest$ac_exeext conftest.$ac_ext 14121fi 14122 14123 14124 CFLAGS="$xorg_testset_save_CFLAGS" 14125 14126 eval supported=\$$cacheid 14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14128printf "%s\n" "$supported" >&6; } 14129 if test "$supported" = "yes" ; then 14130 BASE_CFLAGS="$BASE_CFLAGS -fd" 14131 found="yes" 14132 fi 14133 fi 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149xorg_testset_save_CFLAGS="$CFLAGS" 14150 14151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14155if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14156then : 14157 printf %s "(cached) " >&6 14158else $as_nop 14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14160/* end confdefs.h. */ 14161int i; 14162_ACEOF 14163if ac_fn_c_try_compile "$LINENO" 14164then : 14165 xorg_cv_cc_flag_unknown_warning_option=yes 14166else $as_nop 14167 xorg_cv_cc_flag_unknown_warning_option=no 14168fi 14169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14170fi 14171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14174 CFLAGS="$xorg_testset_save_CFLAGS" 14175fi 14176 14177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14180 fi 14181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14184if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14185then : 14186 printf %s "(cached) " >&6 14187else $as_nop 14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14189/* end confdefs.h. */ 14190int i; 14191_ACEOF 14192if ac_fn_c_try_compile "$LINENO" 14193then : 14194 xorg_cv_cc_flag_unused_command_line_argument=yes 14195else $as_nop 14196 xorg_cv_cc_flag_unused_command_line_argument=no 14197fi 14198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14199fi 14200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14203 CFLAGS="$xorg_testset_save_CFLAGS" 14204fi 14205 14206found="no" 14207 14208 if test $found = "no" ; then 14209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14211 fi 14212 14213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14215 fi 14216 14217 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14218 14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14220printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14221 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14222 if eval test \${$cacheid+y} 14223then : 14224 printf %s "(cached) " >&6 14225else $as_nop 14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14227/* end confdefs.h. */ 14228int i; 14229int 14230main (void) 14231{ 14232 14233 ; 14234 return 0; 14235} 14236_ACEOF 14237if ac_fn_c_try_link "$LINENO" 14238then : 14239 eval $cacheid=yes 14240else $as_nop 14241 eval $cacheid=no 14242fi 14243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14244 conftest$ac_exeext conftest.$ac_ext 14245fi 14246 14247 14248 CFLAGS="$xorg_testset_save_CFLAGS" 14249 14250 eval supported=\$$cacheid 14251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14252printf "%s\n" "$supported" >&6; } 14253 if test "$supported" = "yes" ; then 14254 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14255 found="yes" 14256 fi 14257 fi 14258 14259 14260 14261 14262 14263# This chunk adds additional warnings that could catch undesired effects. 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277xorg_testset_save_CFLAGS="$CFLAGS" 14278 14279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14282printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14283if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14284then : 14285 printf %s "(cached) " >&6 14286else $as_nop 14287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14288/* end confdefs.h. */ 14289int i; 14290_ACEOF 14291if ac_fn_c_try_compile "$LINENO" 14292then : 14293 xorg_cv_cc_flag_unknown_warning_option=yes 14294else $as_nop 14295 xorg_cv_cc_flag_unknown_warning_option=no 14296fi 14297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14298fi 14299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14300printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14302 CFLAGS="$xorg_testset_save_CFLAGS" 14303fi 14304 14305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14308 fi 14309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14311printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14312if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14313then : 14314 printf %s "(cached) " >&6 14315else $as_nop 14316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14317/* end confdefs.h. */ 14318int i; 14319_ACEOF 14320if ac_fn_c_try_compile "$LINENO" 14321then : 14322 xorg_cv_cc_flag_unused_command_line_argument=yes 14323else $as_nop 14324 xorg_cv_cc_flag_unused_command_line_argument=no 14325fi 14326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14327fi 14328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14329printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14331 CFLAGS="$xorg_testset_save_CFLAGS" 14332fi 14333 14334found="no" 14335 14336 if test $found = "no" ; then 14337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14339 fi 14340 14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14343 fi 14344 14345 CFLAGS="$CFLAGS -Wunused" 14346 14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14348printf %s "checking if $CC supports -Wunused... " >&6; } 14349 cacheid=xorg_cv_cc_flag__Wunused 14350 if eval test \${$cacheid+y} 14351then : 14352 printf %s "(cached) " >&6 14353else $as_nop 14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355/* end confdefs.h. */ 14356int i; 14357int 14358main (void) 14359{ 14360 14361 ; 14362 return 0; 14363} 14364_ACEOF 14365if ac_fn_c_try_link "$LINENO" 14366then : 14367 eval $cacheid=yes 14368else $as_nop 14369 eval $cacheid=no 14370fi 14371rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14372 conftest$ac_exeext conftest.$ac_ext 14373fi 14374 14375 14376 CFLAGS="$xorg_testset_save_CFLAGS" 14377 14378 eval supported=\$$cacheid 14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14380printf "%s\n" "$supported" >&6; } 14381 if test "$supported" = "yes" ; then 14382 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14383 found="yes" 14384 fi 14385 fi 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401xorg_testset_save_CFLAGS="$CFLAGS" 14402 14403if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14406printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14407if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14408then : 14409 printf %s "(cached) " >&6 14410else $as_nop 14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14412/* end confdefs.h. */ 14413int i; 14414_ACEOF 14415if ac_fn_c_try_compile "$LINENO" 14416then : 14417 xorg_cv_cc_flag_unknown_warning_option=yes 14418else $as_nop 14419 xorg_cv_cc_flag_unknown_warning_option=no 14420fi 14421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14422fi 14423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14426 CFLAGS="$xorg_testset_save_CFLAGS" 14427fi 14428 14429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14432 fi 14433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14436if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14437then : 14438 printf %s "(cached) " >&6 14439else $as_nop 14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14441/* end confdefs.h. */ 14442int i; 14443_ACEOF 14444if ac_fn_c_try_compile "$LINENO" 14445then : 14446 xorg_cv_cc_flag_unused_command_line_argument=yes 14447else $as_nop 14448 xorg_cv_cc_flag_unused_command_line_argument=no 14449fi 14450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14451fi 14452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14453printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14455 CFLAGS="$xorg_testset_save_CFLAGS" 14456fi 14457 14458found="no" 14459 14460 if test $found = "no" ; then 14461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14463 fi 14464 14465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14467 fi 14468 14469 CFLAGS="$CFLAGS -Wuninitialized" 14470 14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14472printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14473 cacheid=xorg_cv_cc_flag__Wuninitialized 14474 if eval test \${$cacheid+y} 14475then : 14476 printf %s "(cached) " >&6 14477else $as_nop 14478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14479/* end confdefs.h. */ 14480int i; 14481int 14482main (void) 14483{ 14484 14485 ; 14486 return 0; 14487} 14488_ACEOF 14489if ac_fn_c_try_link "$LINENO" 14490then : 14491 eval $cacheid=yes 14492else $as_nop 14493 eval $cacheid=no 14494fi 14495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14496 conftest$ac_exeext conftest.$ac_ext 14497fi 14498 14499 14500 CFLAGS="$xorg_testset_save_CFLAGS" 14501 14502 eval supported=\$$cacheid 14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14504printf "%s\n" "$supported" >&6; } 14505 if test "$supported" = "yes" ; then 14506 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14507 found="yes" 14508 fi 14509 fi 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525xorg_testset_save_CFLAGS="$CFLAGS" 14526 14527if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14530printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14531if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14532then : 14533 printf %s "(cached) " >&6 14534else $as_nop 14535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14536/* end confdefs.h. */ 14537int i; 14538_ACEOF 14539if ac_fn_c_try_compile "$LINENO" 14540then : 14541 xorg_cv_cc_flag_unknown_warning_option=yes 14542else $as_nop 14543 xorg_cv_cc_flag_unknown_warning_option=no 14544fi 14545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14546fi 14547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14550 CFLAGS="$xorg_testset_save_CFLAGS" 14551fi 14552 14553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14556 fi 14557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14560if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14561then : 14562 printf %s "(cached) " >&6 14563else $as_nop 14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14565/* end confdefs.h. */ 14566int i; 14567_ACEOF 14568if ac_fn_c_try_compile "$LINENO" 14569then : 14570 xorg_cv_cc_flag_unused_command_line_argument=yes 14571else $as_nop 14572 xorg_cv_cc_flag_unused_command_line_argument=no 14573fi 14574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14575fi 14576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14577printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14578 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14579 CFLAGS="$xorg_testset_save_CFLAGS" 14580fi 14581 14582found="no" 14583 14584 if test $found = "no" ; then 14585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14587 fi 14588 14589 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14591 fi 14592 14593 CFLAGS="$CFLAGS -Wshadow" 14594 14595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14596printf %s "checking if $CC supports -Wshadow... " >&6; } 14597 cacheid=xorg_cv_cc_flag__Wshadow 14598 if eval test \${$cacheid+y} 14599then : 14600 printf %s "(cached) " >&6 14601else $as_nop 14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14603/* end confdefs.h. */ 14604int i; 14605int 14606main (void) 14607{ 14608 14609 ; 14610 return 0; 14611} 14612_ACEOF 14613if ac_fn_c_try_link "$LINENO" 14614then : 14615 eval $cacheid=yes 14616else $as_nop 14617 eval $cacheid=no 14618fi 14619rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14620 conftest$ac_exeext conftest.$ac_ext 14621fi 14622 14623 14624 CFLAGS="$xorg_testset_save_CFLAGS" 14625 14626 eval supported=\$$cacheid 14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14628printf "%s\n" "$supported" >&6; } 14629 if test "$supported" = "yes" ; then 14630 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14631 found="yes" 14632 fi 14633 fi 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649xorg_testset_save_CFLAGS="$CFLAGS" 14650 14651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14655if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14656then : 14657 printf %s "(cached) " >&6 14658else $as_nop 14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14660/* end confdefs.h. */ 14661int i; 14662_ACEOF 14663if ac_fn_c_try_compile "$LINENO" 14664then : 14665 xorg_cv_cc_flag_unknown_warning_option=yes 14666else $as_nop 14667 xorg_cv_cc_flag_unknown_warning_option=no 14668fi 14669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14670fi 14671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14673 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14674 CFLAGS="$xorg_testset_save_CFLAGS" 14675fi 14676 14677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14680 fi 14681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14684if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14685then : 14686 printf %s "(cached) " >&6 14687else $as_nop 14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14689/* end confdefs.h. */ 14690int i; 14691_ACEOF 14692if ac_fn_c_try_compile "$LINENO" 14693then : 14694 xorg_cv_cc_flag_unused_command_line_argument=yes 14695else $as_nop 14696 xorg_cv_cc_flag_unused_command_line_argument=no 14697fi 14698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14699fi 14700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14703 CFLAGS="$xorg_testset_save_CFLAGS" 14704fi 14705 14706found="no" 14707 14708 if test $found = "no" ; then 14709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14711 fi 14712 14713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14715 fi 14716 14717 CFLAGS="$CFLAGS -Wmissing-noreturn" 14718 14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14720printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14721 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14722 if eval test \${$cacheid+y} 14723then : 14724 printf %s "(cached) " >&6 14725else $as_nop 14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14727/* end confdefs.h. */ 14728int i; 14729int 14730main (void) 14731{ 14732 14733 ; 14734 return 0; 14735} 14736_ACEOF 14737if ac_fn_c_try_link "$LINENO" 14738then : 14739 eval $cacheid=yes 14740else $as_nop 14741 eval $cacheid=no 14742fi 14743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14744 conftest$ac_exeext conftest.$ac_ext 14745fi 14746 14747 14748 CFLAGS="$xorg_testset_save_CFLAGS" 14749 14750 eval supported=\$$cacheid 14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14752printf "%s\n" "$supported" >&6; } 14753 if test "$supported" = "yes" ; then 14754 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14755 found="yes" 14756 fi 14757 fi 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773xorg_testset_save_CFLAGS="$CFLAGS" 14774 14775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14779if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14780then : 14781 printf %s "(cached) " >&6 14782else $as_nop 14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14784/* end confdefs.h. */ 14785int i; 14786_ACEOF 14787if ac_fn_c_try_compile "$LINENO" 14788then : 14789 xorg_cv_cc_flag_unknown_warning_option=yes 14790else $as_nop 14791 xorg_cv_cc_flag_unknown_warning_option=no 14792fi 14793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14794fi 14795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14798 CFLAGS="$xorg_testset_save_CFLAGS" 14799fi 14800 14801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14804 fi 14805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14808if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14809then : 14810 printf %s "(cached) " >&6 14811else $as_nop 14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814int i; 14815_ACEOF 14816if ac_fn_c_try_compile "$LINENO" 14817then : 14818 xorg_cv_cc_flag_unused_command_line_argument=yes 14819else $as_nop 14820 xorg_cv_cc_flag_unused_command_line_argument=no 14821fi 14822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14823fi 14824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14827 CFLAGS="$xorg_testset_save_CFLAGS" 14828fi 14829 14830found="no" 14831 14832 if test $found = "no" ; then 14833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14835 fi 14836 14837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14839 fi 14840 14841 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14842 14843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14844printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14845 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14846 if eval test \${$cacheid+y} 14847then : 14848 printf %s "(cached) " >&6 14849else $as_nop 14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14851/* end confdefs.h. */ 14852int i; 14853int 14854main (void) 14855{ 14856 14857 ; 14858 return 0; 14859} 14860_ACEOF 14861if ac_fn_c_try_link "$LINENO" 14862then : 14863 eval $cacheid=yes 14864else $as_nop 14865 eval $cacheid=no 14866fi 14867rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14868 conftest$ac_exeext conftest.$ac_ext 14869fi 14870 14871 14872 CFLAGS="$xorg_testset_save_CFLAGS" 14873 14874 eval supported=\$$cacheid 14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14876printf "%s\n" "$supported" >&6; } 14877 if test "$supported" = "yes" ; then 14878 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14879 found="yes" 14880 fi 14881 fi 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897xorg_testset_save_CFLAGS="$CFLAGS" 14898 14899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14904then : 14905 printf %s "(cached) " >&6 14906else $as_nop 14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14908/* end confdefs.h. */ 14909int i; 14910_ACEOF 14911if ac_fn_c_try_compile "$LINENO" 14912then : 14913 xorg_cv_cc_flag_unknown_warning_option=yes 14914else $as_nop 14915 xorg_cv_cc_flag_unknown_warning_option=no 14916fi 14917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14918fi 14919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14922 CFLAGS="$xorg_testset_save_CFLAGS" 14923fi 14924 14925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14928 fi 14929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14933then : 14934 printf %s "(cached) " >&6 14935else $as_nop 14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14937/* end confdefs.h. */ 14938int i; 14939_ACEOF 14940if ac_fn_c_try_compile "$LINENO" 14941then : 14942 xorg_cv_cc_flag_unused_command_line_argument=yes 14943else $as_nop 14944 xorg_cv_cc_flag_unused_command_line_argument=no 14945fi 14946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14947fi 14948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14951 CFLAGS="$xorg_testset_save_CFLAGS" 14952fi 14953 14954found="no" 14955 14956 if test $found = "no" ; then 14957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14959 fi 14960 14961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14963 fi 14964 14965 CFLAGS="$CFLAGS -Wredundant-decls" 14966 14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14968printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 14969 cacheid=xorg_cv_cc_flag__Wredundant_decls 14970 if eval test \${$cacheid+y} 14971then : 14972 printf %s "(cached) " >&6 14973else $as_nop 14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14975/* end confdefs.h. */ 14976int i; 14977int 14978main (void) 14979{ 14980 14981 ; 14982 return 0; 14983} 14984_ACEOF 14985if ac_fn_c_try_link "$LINENO" 14986then : 14987 eval $cacheid=yes 14988else $as_nop 14989 eval $cacheid=no 14990fi 14991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14992 conftest$ac_exeext conftest.$ac_ext 14993fi 14994 14995 14996 CFLAGS="$xorg_testset_save_CFLAGS" 14997 14998 eval supported=\$$cacheid 14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15000printf "%s\n" "$supported" >&6; } 15001 if test "$supported" = "yes" ; then 15002 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15003 found="yes" 15004 fi 15005 fi 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021xorg_testset_save_CFLAGS="$CFLAGS" 15022 15023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15028then : 15029 printf %s "(cached) " >&6 15030else $as_nop 15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15032/* end confdefs.h. */ 15033int i; 15034_ACEOF 15035if ac_fn_c_try_compile "$LINENO" 15036then : 15037 xorg_cv_cc_flag_unknown_warning_option=yes 15038else $as_nop 15039 xorg_cv_cc_flag_unknown_warning_option=no 15040fi 15041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15042fi 15043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15046 CFLAGS="$xorg_testset_save_CFLAGS" 15047fi 15048 15049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15052 fi 15053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15057then : 15058 printf %s "(cached) " >&6 15059else $as_nop 15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15061/* end confdefs.h. */ 15062int i; 15063_ACEOF 15064if ac_fn_c_try_compile "$LINENO" 15065then : 15066 xorg_cv_cc_flag_unused_command_line_argument=yes 15067else $as_nop 15068 xorg_cv_cc_flag_unused_command_line_argument=no 15069fi 15070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15071fi 15072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15075 CFLAGS="$xorg_testset_save_CFLAGS" 15076fi 15077 15078found="no" 15079 15080 if test $found = "no" ; then 15081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15083 fi 15084 15085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15087 fi 15088 15089 CFLAGS="$CFLAGS -Wlogical-op" 15090 15091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15092printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15093 cacheid=xorg_cv_cc_flag__Wlogical_op 15094 if eval test \${$cacheid+y} 15095then : 15096 printf %s "(cached) " >&6 15097else $as_nop 15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15099/* end confdefs.h. */ 15100int i; 15101int 15102main (void) 15103{ 15104 15105 ; 15106 return 0; 15107} 15108_ACEOF 15109if ac_fn_c_try_link "$LINENO" 15110then : 15111 eval $cacheid=yes 15112else $as_nop 15113 eval $cacheid=no 15114fi 15115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15116 conftest$ac_exeext conftest.$ac_ext 15117fi 15118 15119 15120 CFLAGS="$xorg_testset_save_CFLAGS" 15121 15122 eval supported=\$$cacheid 15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15124printf "%s\n" "$supported" >&6; } 15125 if test "$supported" = "yes" ; then 15126 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15127 found="yes" 15128 fi 15129 fi 15130 15131 15132 15133# These are currently disabled because they are noisy. They will be enabled 15134# in the future once the codebase is sufficiently modernized to silence 15135# them. For now, I don't want them to drown out the other warnings. 15136# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15137# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15138# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15139 15140# Turn some warnings into errors, so we don't accidently get successful builds 15141# when there are problems that should be fixed. 15142 15143if test "x$SELECTIVE_WERROR" = "xyes" ; then 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157xorg_testset_save_CFLAGS="$CFLAGS" 15158 15159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15164then : 15165 printf %s "(cached) " >&6 15166else $as_nop 15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15168/* end confdefs.h. */ 15169int i; 15170_ACEOF 15171if ac_fn_c_try_compile "$LINENO" 15172then : 15173 xorg_cv_cc_flag_unknown_warning_option=yes 15174else $as_nop 15175 xorg_cv_cc_flag_unknown_warning_option=no 15176fi 15177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15178fi 15179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15182 CFLAGS="$xorg_testset_save_CFLAGS" 15183fi 15184 15185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15188 fi 15189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15192if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15193then : 15194 printf %s "(cached) " >&6 15195else $as_nop 15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15197/* end confdefs.h. */ 15198int i; 15199_ACEOF 15200if ac_fn_c_try_compile "$LINENO" 15201then : 15202 xorg_cv_cc_flag_unused_command_line_argument=yes 15203else $as_nop 15204 xorg_cv_cc_flag_unused_command_line_argument=no 15205fi 15206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15207fi 15208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15211 CFLAGS="$xorg_testset_save_CFLAGS" 15212fi 15213 15214found="no" 15215 15216 if test $found = "no" ; then 15217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15219 fi 15220 15221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15223 fi 15224 15225 CFLAGS="$CFLAGS -Werror=implicit" 15226 15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15228printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15229 cacheid=xorg_cv_cc_flag__Werror_implicit 15230 if eval test \${$cacheid+y} 15231then : 15232 printf %s "(cached) " >&6 15233else $as_nop 15234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15235/* end confdefs.h. */ 15236int i; 15237int 15238main (void) 15239{ 15240 15241 ; 15242 return 0; 15243} 15244_ACEOF 15245if ac_fn_c_try_link "$LINENO" 15246then : 15247 eval $cacheid=yes 15248else $as_nop 15249 eval $cacheid=no 15250fi 15251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15252 conftest$ac_exeext conftest.$ac_ext 15253fi 15254 15255 15256 CFLAGS="$xorg_testset_save_CFLAGS" 15257 15258 eval supported=\$$cacheid 15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15260printf "%s\n" "$supported" >&6; } 15261 if test "$supported" = "yes" ; then 15262 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15263 found="yes" 15264 fi 15265 fi 15266 15267 if test $found = "no" ; then 15268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15270 fi 15271 15272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15274 fi 15275 15276 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15277 15278 { 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 15279printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15280 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15281 if eval test \${$cacheid+y} 15282then : 15283 printf %s "(cached) " >&6 15284else $as_nop 15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15286/* end confdefs.h. */ 15287int i; 15288int 15289main (void) 15290{ 15291 15292 ; 15293 return 0; 15294} 15295_ACEOF 15296if ac_fn_c_try_link "$LINENO" 15297then : 15298 eval $cacheid=yes 15299else $as_nop 15300 eval $cacheid=no 15301fi 15302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15303 conftest$ac_exeext conftest.$ac_ext 15304fi 15305 15306 15307 CFLAGS="$xorg_testset_save_CFLAGS" 15308 15309 eval supported=\$$cacheid 15310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15311printf "%s\n" "$supported" >&6; } 15312 if test "$supported" = "yes" ; then 15313 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15314 found="yes" 15315 fi 15316 fi 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332xorg_testset_save_CFLAGS="$CFLAGS" 15333 15334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15338if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15339then : 15340 printf %s "(cached) " >&6 15341else $as_nop 15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15343/* end confdefs.h. */ 15344int i; 15345_ACEOF 15346if ac_fn_c_try_compile "$LINENO" 15347then : 15348 xorg_cv_cc_flag_unknown_warning_option=yes 15349else $as_nop 15350 xorg_cv_cc_flag_unknown_warning_option=no 15351fi 15352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15353fi 15354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15355printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15357 CFLAGS="$xorg_testset_save_CFLAGS" 15358fi 15359 15360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15363 fi 15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15366printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15367if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15368then : 15369 printf %s "(cached) " >&6 15370else $as_nop 15371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15372/* end confdefs.h. */ 15373int i; 15374_ACEOF 15375if ac_fn_c_try_compile "$LINENO" 15376then : 15377 xorg_cv_cc_flag_unused_command_line_argument=yes 15378else $as_nop 15379 xorg_cv_cc_flag_unused_command_line_argument=no 15380fi 15381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15382fi 15383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15386 CFLAGS="$xorg_testset_save_CFLAGS" 15387fi 15388 15389found="no" 15390 15391 if test $found = "no" ; then 15392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15394 fi 15395 15396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15398 fi 15399 15400 CFLAGS="$CFLAGS -Werror=nonnull" 15401 15402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15403printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15404 cacheid=xorg_cv_cc_flag__Werror_nonnull 15405 if eval test \${$cacheid+y} 15406then : 15407 printf %s "(cached) " >&6 15408else $as_nop 15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15410/* end confdefs.h. */ 15411int i; 15412int 15413main (void) 15414{ 15415 15416 ; 15417 return 0; 15418} 15419_ACEOF 15420if ac_fn_c_try_link "$LINENO" 15421then : 15422 eval $cacheid=yes 15423else $as_nop 15424 eval $cacheid=no 15425fi 15426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15427 conftest$ac_exeext conftest.$ac_ext 15428fi 15429 15430 15431 CFLAGS="$xorg_testset_save_CFLAGS" 15432 15433 eval supported=\$$cacheid 15434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15435printf "%s\n" "$supported" >&6; } 15436 if test "$supported" = "yes" ; then 15437 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15438 found="yes" 15439 fi 15440 fi 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456xorg_testset_save_CFLAGS="$CFLAGS" 15457 15458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15462if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15463then : 15464 printf %s "(cached) " >&6 15465else $as_nop 15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15467/* end confdefs.h. */ 15468int i; 15469_ACEOF 15470if ac_fn_c_try_compile "$LINENO" 15471then : 15472 xorg_cv_cc_flag_unknown_warning_option=yes 15473else $as_nop 15474 xorg_cv_cc_flag_unknown_warning_option=no 15475fi 15476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15477fi 15478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15481 CFLAGS="$xorg_testset_save_CFLAGS" 15482fi 15483 15484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15487 fi 15488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15491if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15492then : 15493 printf %s "(cached) " >&6 15494else $as_nop 15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15496/* end confdefs.h. */ 15497int i; 15498_ACEOF 15499if ac_fn_c_try_compile "$LINENO" 15500then : 15501 xorg_cv_cc_flag_unused_command_line_argument=yes 15502else $as_nop 15503 xorg_cv_cc_flag_unused_command_line_argument=no 15504fi 15505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15506fi 15507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15510 CFLAGS="$xorg_testset_save_CFLAGS" 15511fi 15512 15513found="no" 15514 15515 if test $found = "no" ; then 15516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15518 fi 15519 15520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15522 fi 15523 15524 CFLAGS="$CFLAGS -Werror=init-self" 15525 15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15527printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15528 cacheid=xorg_cv_cc_flag__Werror_init_self 15529 if eval test \${$cacheid+y} 15530then : 15531 printf %s "(cached) " >&6 15532else $as_nop 15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535int i; 15536int 15537main (void) 15538{ 15539 15540 ; 15541 return 0; 15542} 15543_ACEOF 15544if ac_fn_c_try_link "$LINENO" 15545then : 15546 eval $cacheid=yes 15547else $as_nop 15548 eval $cacheid=no 15549fi 15550rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15551 conftest$ac_exeext conftest.$ac_ext 15552fi 15553 15554 15555 CFLAGS="$xorg_testset_save_CFLAGS" 15556 15557 eval supported=\$$cacheid 15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15559printf "%s\n" "$supported" >&6; } 15560 if test "$supported" = "yes" ; then 15561 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15562 found="yes" 15563 fi 15564 fi 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580xorg_testset_save_CFLAGS="$CFLAGS" 15581 15582if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15585printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15586if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15587then : 15588 printf %s "(cached) " >&6 15589else $as_nop 15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15591/* end confdefs.h. */ 15592int i; 15593_ACEOF 15594if ac_fn_c_try_compile "$LINENO" 15595then : 15596 xorg_cv_cc_flag_unknown_warning_option=yes 15597else $as_nop 15598 xorg_cv_cc_flag_unknown_warning_option=no 15599fi 15600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15601fi 15602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15603printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15605 CFLAGS="$xorg_testset_save_CFLAGS" 15606fi 15607 15608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15611 fi 15612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15614printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15615if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15616then : 15617 printf %s "(cached) " >&6 15618else $as_nop 15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620/* end confdefs.h. */ 15621int i; 15622_ACEOF 15623if ac_fn_c_try_compile "$LINENO" 15624then : 15625 xorg_cv_cc_flag_unused_command_line_argument=yes 15626else $as_nop 15627 xorg_cv_cc_flag_unused_command_line_argument=no 15628fi 15629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15630fi 15631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15632printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15634 CFLAGS="$xorg_testset_save_CFLAGS" 15635fi 15636 15637found="no" 15638 15639 if test $found = "no" ; then 15640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15642 fi 15643 15644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15646 fi 15647 15648 CFLAGS="$CFLAGS -Werror=main" 15649 15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15651printf %s "checking if $CC supports -Werror=main... " >&6; } 15652 cacheid=xorg_cv_cc_flag__Werror_main 15653 if eval test \${$cacheid+y} 15654then : 15655 printf %s "(cached) " >&6 15656else $as_nop 15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15658/* end confdefs.h. */ 15659int i; 15660int 15661main (void) 15662{ 15663 15664 ; 15665 return 0; 15666} 15667_ACEOF 15668if ac_fn_c_try_link "$LINENO" 15669then : 15670 eval $cacheid=yes 15671else $as_nop 15672 eval $cacheid=no 15673fi 15674rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15675 conftest$ac_exeext conftest.$ac_ext 15676fi 15677 15678 15679 CFLAGS="$xorg_testset_save_CFLAGS" 15680 15681 eval supported=\$$cacheid 15682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15683printf "%s\n" "$supported" >&6; } 15684 if test "$supported" = "yes" ; then 15685 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15686 found="yes" 15687 fi 15688 fi 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704xorg_testset_save_CFLAGS="$CFLAGS" 15705 15706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15710if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15711then : 15712 printf %s "(cached) " >&6 15713else $as_nop 15714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15715/* end confdefs.h. */ 15716int i; 15717_ACEOF 15718if ac_fn_c_try_compile "$LINENO" 15719then : 15720 xorg_cv_cc_flag_unknown_warning_option=yes 15721else $as_nop 15722 xorg_cv_cc_flag_unknown_warning_option=no 15723fi 15724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15725fi 15726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15729 CFLAGS="$xorg_testset_save_CFLAGS" 15730fi 15731 15732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15735 fi 15736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15739if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15740then : 15741 printf %s "(cached) " >&6 15742else $as_nop 15743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15744/* end confdefs.h. */ 15745int i; 15746_ACEOF 15747if ac_fn_c_try_compile "$LINENO" 15748then : 15749 xorg_cv_cc_flag_unused_command_line_argument=yes 15750else $as_nop 15751 xorg_cv_cc_flag_unused_command_line_argument=no 15752fi 15753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15754fi 15755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15758 CFLAGS="$xorg_testset_save_CFLAGS" 15759fi 15760 15761found="no" 15762 15763 if test $found = "no" ; then 15764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15766 fi 15767 15768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15770 fi 15771 15772 CFLAGS="$CFLAGS -Werror=missing-braces" 15773 15774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15775printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15776 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15777 if eval test \${$cacheid+y} 15778then : 15779 printf %s "(cached) " >&6 15780else $as_nop 15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15782/* end confdefs.h. */ 15783int i; 15784int 15785main (void) 15786{ 15787 15788 ; 15789 return 0; 15790} 15791_ACEOF 15792if ac_fn_c_try_link "$LINENO" 15793then : 15794 eval $cacheid=yes 15795else $as_nop 15796 eval $cacheid=no 15797fi 15798rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15799 conftest$ac_exeext conftest.$ac_ext 15800fi 15801 15802 15803 CFLAGS="$xorg_testset_save_CFLAGS" 15804 15805 eval supported=\$$cacheid 15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15807printf "%s\n" "$supported" >&6; } 15808 if test "$supported" = "yes" ; then 15809 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15810 found="yes" 15811 fi 15812 fi 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828xorg_testset_save_CFLAGS="$CFLAGS" 15829 15830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15833printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15834if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15835then : 15836 printf %s "(cached) " >&6 15837else $as_nop 15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15839/* end confdefs.h. */ 15840int i; 15841_ACEOF 15842if ac_fn_c_try_compile "$LINENO" 15843then : 15844 xorg_cv_cc_flag_unknown_warning_option=yes 15845else $as_nop 15846 xorg_cv_cc_flag_unknown_warning_option=no 15847fi 15848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15849fi 15850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15853 CFLAGS="$xorg_testset_save_CFLAGS" 15854fi 15855 15856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15859 fi 15860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15864then : 15865 printf %s "(cached) " >&6 15866else $as_nop 15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15868/* end confdefs.h. */ 15869int i; 15870_ACEOF 15871if ac_fn_c_try_compile "$LINENO" 15872then : 15873 xorg_cv_cc_flag_unused_command_line_argument=yes 15874else $as_nop 15875 xorg_cv_cc_flag_unused_command_line_argument=no 15876fi 15877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15878fi 15879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15882 CFLAGS="$xorg_testset_save_CFLAGS" 15883fi 15884 15885found="no" 15886 15887 if test $found = "no" ; then 15888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15890 fi 15891 15892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15894 fi 15895 15896 CFLAGS="$CFLAGS -Werror=sequence-point" 15897 15898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15899printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15900 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15901 if eval test \${$cacheid+y} 15902then : 15903 printf %s "(cached) " >&6 15904else $as_nop 15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15906/* end confdefs.h. */ 15907int i; 15908int 15909main (void) 15910{ 15911 15912 ; 15913 return 0; 15914} 15915_ACEOF 15916if ac_fn_c_try_link "$LINENO" 15917then : 15918 eval $cacheid=yes 15919else $as_nop 15920 eval $cacheid=no 15921fi 15922rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15923 conftest$ac_exeext conftest.$ac_ext 15924fi 15925 15926 15927 CFLAGS="$xorg_testset_save_CFLAGS" 15928 15929 eval supported=\$$cacheid 15930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15931printf "%s\n" "$supported" >&6; } 15932 if test "$supported" = "yes" ; then 15933 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15934 found="yes" 15935 fi 15936 fi 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952xorg_testset_save_CFLAGS="$CFLAGS" 15953 15954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15958if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15959then : 15960 printf %s "(cached) " >&6 15961else $as_nop 15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15963/* end confdefs.h. */ 15964int i; 15965_ACEOF 15966if ac_fn_c_try_compile "$LINENO" 15967then : 15968 xorg_cv_cc_flag_unknown_warning_option=yes 15969else $as_nop 15970 xorg_cv_cc_flag_unknown_warning_option=no 15971fi 15972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15973fi 15974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15977 CFLAGS="$xorg_testset_save_CFLAGS" 15978fi 15979 15980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15983 fi 15984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15987if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15988then : 15989 printf %s "(cached) " >&6 15990else $as_nop 15991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15992/* end confdefs.h. */ 15993int i; 15994_ACEOF 15995if ac_fn_c_try_compile "$LINENO" 15996then : 15997 xorg_cv_cc_flag_unused_command_line_argument=yes 15998else $as_nop 15999 xorg_cv_cc_flag_unused_command_line_argument=no 16000fi 16001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16002fi 16003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16006 CFLAGS="$xorg_testset_save_CFLAGS" 16007fi 16008 16009found="no" 16010 16011 if test $found = "no" ; then 16012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16014 fi 16015 16016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16018 fi 16019 16020 CFLAGS="$CFLAGS -Werror=return-type" 16021 16022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16023printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16024 cacheid=xorg_cv_cc_flag__Werror_return_type 16025 if eval test \${$cacheid+y} 16026then : 16027 printf %s "(cached) " >&6 16028else $as_nop 16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16030/* end confdefs.h. */ 16031int i; 16032int 16033main (void) 16034{ 16035 16036 ; 16037 return 0; 16038} 16039_ACEOF 16040if ac_fn_c_try_link "$LINENO" 16041then : 16042 eval $cacheid=yes 16043else $as_nop 16044 eval $cacheid=no 16045fi 16046rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16047 conftest$ac_exeext conftest.$ac_ext 16048fi 16049 16050 16051 CFLAGS="$xorg_testset_save_CFLAGS" 16052 16053 eval supported=\$$cacheid 16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16055printf "%s\n" "$supported" >&6; } 16056 if test "$supported" = "yes" ; then 16057 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16058 found="yes" 16059 fi 16060 fi 16061 16062 if test $found = "no" ; then 16063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16065 fi 16066 16067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16069 fi 16070 16071 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16072 16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16074printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16075 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16076 if eval test \${$cacheid+y} 16077then : 16078 printf %s "(cached) " >&6 16079else $as_nop 16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082int i; 16083int 16084main (void) 16085{ 16086 16087 ; 16088 return 0; 16089} 16090_ACEOF 16091if ac_fn_c_try_link "$LINENO" 16092then : 16093 eval $cacheid=yes 16094else $as_nop 16095 eval $cacheid=no 16096fi 16097rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16098 conftest$ac_exeext conftest.$ac_ext 16099fi 16100 16101 16102 CFLAGS="$xorg_testset_save_CFLAGS" 16103 16104 eval supported=\$$cacheid 16105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16106printf "%s\n" "$supported" >&6; } 16107 if test "$supported" = "yes" ; then 16108 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16109 found="yes" 16110 fi 16111 fi 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127xorg_testset_save_CFLAGS="$CFLAGS" 16128 16129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16132printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16133if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16134then : 16135 printf %s "(cached) " >&6 16136else $as_nop 16137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16138/* end confdefs.h. */ 16139int i; 16140_ACEOF 16141if ac_fn_c_try_compile "$LINENO" 16142then : 16143 xorg_cv_cc_flag_unknown_warning_option=yes 16144else $as_nop 16145 xorg_cv_cc_flag_unknown_warning_option=no 16146fi 16147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16148fi 16149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16150printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16152 CFLAGS="$xorg_testset_save_CFLAGS" 16153fi 16154 16155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16158 fi 16159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16161printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16162if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16163then : 16164 printf %s "(cached) " >&6 16165else $as_nop 16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16167/* end confdefs.h. */ 16168int i; 16169_ACEOF 16170if ac_fn_c_try_compile "$LINENO" 16171then : 16172 xorg_cv_cc_flag_unused_command_line_argument=yes 16173else $as_nop 16174 xorg_cv_cc_flag_unused_command_line_argument=no 16175fi 16176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16177fi 16178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16179printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16181 CFLAGS="$xorg_testset_save_CFLAGS" 16182fi 16183 16184found="no" 16185 16186 if test $found = "no" ; then 16187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16189 fi 16190 16191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16193 fi 16194 16195 CFLAGS="$CFLAGS -Werror=trigraphs" 16196 16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16198printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16199 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16200 if eval test \${$cacheid+y} 16201then : 16202 printf %s "(cached) " >&6 16203else $as_nop 16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16205/* end confdefs.h. */ 16206int i; 16207int 16208main (void) 16209{ 16210 16211 ; 16212 return 0; 16213} 16214_ACEOF 16215if ac_fn_c_try_link "$LINENO" 16216then : 16217 eval $cacheid=yes 16218else $as_nop 16219 eval $cacheid=no 16220fi 16221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16222 conftest$ac_exeext conftest.$ac_ext 16223fi 16224 16225 16226 CFLAGS="$xorg_testset_save_CFLAGS" 16227 16228 eval supported=\$$cacheid 16229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16230printf "%s\n" "$supported" >&6; } 16231 if test "$supported" = "yes" ; then 16232 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16233 found="yes" 16234 fi 16235 fi 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251xorg_testset_save_CFLAGS="$CFLAGS" 16252 16253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16257if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16258then : 16259 printf %s "(cached) " >&6 16260else $as_nop 16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262/* end confdefs.h. */ 16263int i; 16264_ACEOF 16265if ac_fn_c_try_compile "$LINENO" 16266then : 16267 xorg_cv_cc_flag_unknown_warning_option=yes 16268else $as_nop 16269 xorg_cv_cc_flag_unknown_warning_option=no 16270fi 16271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16272fi 16273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16276 CFLAGS="$xorg_testset_save_CFLAGS" 16277fi 16278 16279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16282 fi 16283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16286if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16287then : 16288 printf %s "(cached) " >&6 16289else $as_nop 16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16291/* end confdefs.h. */ 16292int i; 16293_ACEOF 16294if ac_fn_c_try_compile "$LINENO" 16295then : 16296 xorg_cv_cc_flag_unused_command_line_argument=yes 16297else $as_nop 16298 xorg_cv_cc_flag_unused_command_line_argument=no 16299fi 16300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16301fi 16302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16305 CFLAGS="$xorg_testset_save_CFLAGS" 16306fi 16307 16308found="no" 16309 16310 if test $found = "no" ; then 16311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16313 fi 16314 16315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16317 fi 16318 16319 CFLAGS="$CFLAGS -Werror=array-bounds" 16320 16321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16322printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16323 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16324 if eval test \${$cacheid+y} 16325then : 16326 printf %s "(cached) " >&6 16327else $as_nop 16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16329/* end confdefs.h. */ 16330int i; 16331int 16332main (void) 16333{ 16334 16335 ; 16336 return 0; 16337} 16338_ACEOF 16339if ac_fn_c_try_link "$LINENO" 16340then : 16341 eval $cacheid=yes 16342else $as_nop 16343 eval $cacheid=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16346 conftest$ac_exeext conftest.$ac_ext 16347fi 16348 16349 16350 CFLAGS="$xorg_testset_save_CFLAGS" 16351 16352 eval supported=\$$cacheid 16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16354printf "%s\n" "$supported" >&6; } 16355 if test "$supported" = "yes" ; then 16356 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16357 found="yes" 16358 fi 16359 fi 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375xorg_testset_save_CFLAGS="$CFLAGS" 16376 16377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16381if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16382then : 16383 printf %s "(cached) " >&6 16384else $as_nop 16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16386/* end confdefs.h. */ 16387int i; 16388_ACEOF 16389if ac_fn_c_try_compile "$LINENO" 16390then : 16391 xorg_cv_cc_flag_unknown_warning_option=yes 16392else $as_nop 16393 xorg_cv_cc_flag_unknown_warning_option=no 16394fi 16395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16396fi 16397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16400 CFLAGS="$xorg_testset_save_CFLAGS" 16401fi 16402 16403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16406 fi 16407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16410if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16411then : 16412 printf %s "(cached) " >&6 16413else $as_nop 16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415/* end confdefs.h. */ 16416int i; 16417_ACEOF 16418if ac_fn_c_try_compile "$LINENO" 16419then : 16420 xorg_cv_cc_flag_unused_command_line_argument=yes 16421else $as_nop 16422 xorg_cv_cc_flag_unused_command_line_argument=no 16423fi 16424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16425fi 16426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16429 CFLAGS="$xorg_testset_save_CFLAGS" 16430fi 16431 16432found="no" 16433 16434 if test $found = "no" ; then 16435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16437 fi 16438 16439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16441 fi 16442 16443 CFLAGS="$CFLAGS -Werror=write-strings" 16444 16445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16446printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16447 cacheid=xorg_cv_cc_flag__Werror_write_strings 16448 if eval test \${$cacheid+y} 16449then : 16450 printf %s "(cached) " >&6 16451else $as_nop 16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16453/* end confdefs.h. */ 16454int i; 16455int 16456main (void) 16457{ 16458 16459 ; 16460 return 0; 16461} 16462_ACEOF 16463if ac_fn_c_try_link "$LINENO" 16464then : 16465 eval $cacheid=yes 16466else $as_nop 16467 eval $cacheid=no 16468fi 16469rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16470 conftest$ac_exeext conftest.$ac_ext 16471fi 16472 16473 16474 CFLAGS="$xorg_testset_save_CFLAGS" 16475 16476 eval supported=\$$cacheid 16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16478printf "%s\n" "$supported" >&6; } 16479 if test "$supported" = "yes" ; then 16480 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16481 found="yes" 16482 fi 16483 fi 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499xorg_testset_save_CFLAGS="$CFLAGS" 16500 16501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16506then : 16507 printf %s "(cached) " >&6 16508else $as_nop 16509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16510/* end confdefs.h. */ 16511int i; 16512_ACEOF 16513if ac_fn_c_try_compile "$LINENO" 16514then : 16515 xorg_cv_cc_flag_unknown_warning_option=yes 16516else $as_nop 16517 xorg_cv_cc_flag_unknown_warning_option=no 16518fi 16519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16520fi 16521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16524 CFLAGS="$xorg_testset_save_CFLAGS" 16525fi 16526 16527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16530 fi 16531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16534if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16535then : 16536 printf %s "(cached) " >&6 16537else $as_nop 16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16539/* end confdefs.h. */ 16540int i; 16541_ACEOF 16542if ac_fn_c_try_compile "$LINENO" 16543then : 16544 xorg_cv_cc_flag_unused_command_line_argument=yes 16545else $as_nop 16546 xorg_cv_cc_flag_unused_command_line_argument=no 16547fi 16548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16549fi 16550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16553 CFLAGS="$xorg_testset_save_CFLAGS" 16554fi 16555 16556found="no" 16557 16558 if test $found = "no" ; then 16559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16561 fi 16562 16563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16565 fi 16566 16567 CFLAGS="$CFLAGS -Werror=address" 16568 16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16570printf %s "checking if $CC supports -Werror=address... " >&6; } 16571 cacheid=xorg_cv_cc_flag__Werror_address 16572 if eval test \${$cacheid+y} 16573then : 16574 printf %s "(cached) " >&6 16575else $as_nop 16576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16577/* end confdefs.h. */ 16578int i; 16579int 16580main (void) 16581{ 16582 16583 ; 16584 return 0; 16585} 16586_ACEOF 16587if ac_fn_c_try_link "$LINENO" 16588then : 16589 eval $cacheid=yes 16590else $as_nop 16591 eval $cacheid=no 16592fi 16593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16594 conftest$ac_exeext conftest.$ac_ext 16595fi 16596 16597 16598 CFLAGS="$xorg_testset_save_CFLAGS" 16599 16600 eval supported=\$$cacheid 16601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16602printf "%s\n" "$supported" >&6; } 16603 if test "$supported" = "yes" ; then 16604 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16605 found="yes" 16606 fi 16607 fi 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623xorg_testset_save_CFLAGS="$CFLAGS" 16624 16625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16630then : 16631 printf %s "(cached) " >&6 16632else $as_nop 16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16634/* end confdefs.h. */ 16635int i; 16636_ACEOF 16637if ac_fn_c_try_compile "$LINENO" 16638then : 16639 xorg_cv_cc_flag_unknown_warning_option=yes 16640else $as_nop 16641 xorg_cv_cc_flag_unknown_warning_option=no 16642fi 16643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16644fi 16645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16648 CFLAGS="$xorg_testset_save_CFLAGS" 16649fi 16650 16651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16654 fi 16655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16659then : 16660 printf %s "(cached) " >&6 16661else $as_nop 16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16663/* end confdefs.h. */ 16664int i; 16665_ACEOF 16666if ac_fn_c_try_compile "$LINENO" 16667then : 16668 xorg_cv_cc_flag_unused_command_line_argument=yes 16669else $as_nop 16670 xorg_cv_cc_flag_unused_command_line_argument=no 16671fi 16672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16673fi 16674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16677 CFLAGS="$xorg_testset_save_CFLAGS" 16678fi 16679 16680found="no" 16681 16682 if test $found = "no" ; then 16683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16685 fi 16686 16687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16689 fi 16690 16691 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16692 16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16694printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16695 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16696 if eval test \${$cacheid+y} 16697then : 16698 printf %s "(cached) " >&6 16699else $as_nop 16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16701/* end confdefs.h. */ 16702int i; 16703int 16704main (void) 16705{ 16706 16707 ; 16708 return 0; 16709} 16710_ACEOF 16711if ac_fn_c_try_link "$LINENO" 16712then : 16713 eval $cacheid=yes 16714else $as_nop 16715 eval $cacheid=no 16716fi 16717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16718 conftest$ac_exeext conftest.$ac_ext 16719fi 16720 16721 16722 CFLAGS="$xorg_testset_save_CFLAGS" 16723 16724 eval supported=\$$cacheid 16725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16726printf "%s\n" "$supported" >&6; } 16727 if test "$supported" = "yes" ; then 16728 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16729 found="yes" 16730 fi 16731 fi 16732 16733 if test $found = "no" ; then 16734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16736 fi 16737 16738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16740 fi 16741 16742 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16743 16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16745printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16746 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16747 if eval test \${$cacheid+y} 16748then : 16749 printf %s "(cached) " >&6 16750else $as_nop 16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16752/* end confdefs.h. */ 16753int i; 16754int 16755main (void) 16756{ 16757 16758 ; 16759 return 0; 16760} 16761_ACEOF 16762if ac_fn_c_try_link "$LINENO" 16763then : 16764 eval $cacheid=yes 16765else $as_nop 16766 eval $cacheid=no 16767fi 16768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16769 conftest$ac_exeext conftest.$ac_ext 16770fi 16771 16772 16773 CFLAGS="$xorg_testset_save_CFLAGS" 16774 16775 eval supported=\$$cacheid 16776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16777printf "%s\n" "$supported" >&6; } 16778 if test "$supported" = "yes" ; then 16779 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16780 found="yes" 16781 fi 16782 fi 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798xorg_testset_save_CFLAGS="$CFLAGS" 16799 16800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16803printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16804if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16805then : 16806 printf %s "(cached) " >&6 16807else $as_nop 16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16809/* end confdefs.h. */ 16810int i; 16811_ACEOF 16812if ac_fn_c_try_compile "$LINENO" 16813then : 16814 xorg_cv_cc_flag_unknown_warning_option=yes 16815else $as_nop 16816 xorg_cv_cc_flag_unknown_warning_option=no 16817fi 16818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16819fi 16820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16821printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16823 CFLAGS="$xorg_testset_save_CFLAGS" 16824fi 16825 16826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16829 fi 16830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16832printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16833if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16834then : 16835 printf %s "(cached) " >&6 16836else $as_nop 16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16838/* end confdefs.h. */ 16839int i; 16840_ACEOF 16841if ac_fn_c_try_compile "$LINENO" 16842then : 16843 xorg_cv_cc_flag_unused_command_line_argument=yes 16844else $as_nop 16845 xorg_cv_cc_flag_unused_command_line_argument=no 16846fi 16847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16848fi 16849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16850printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16852 CFLAGS="$xorg_testset_save_CFLAGS" 16853fi 16854 16855found="no" 16856 16857 if test $found = "no" ; then 16858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16860 fi 16861 16862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16864 fi 16865 16866 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16867 16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16869printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16870 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16871 if eval test \${$cacheid+y} 16872then : 16873 printf %s "(cached) " >&6 16874else $as_nop 16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16876/* end confdefs.h. */ 16877int i; 16878int 16879main (void) 16880{ 16881 16882 ; 16883 return 0; 16884} 16885_ACEOF 16886if ac_fn_c_try_link "$LINENO" 16887then : 16888 eval $cacheid=yes 16889else $as_nop 16890 eval $cacheid=no 16891fi 16892rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16893 conftest$ac_exeext conftest.$ac_ext 16894fi 16895 16896 16897 CFLAGS="$xorg_testset_save_CFLAGS" 16898 16899 eval supported=\$$cacheid 16900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16901printf "%s\n" "$supported" >&6; } 16902 if test "$supported" = "yes" ; then 16903 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16904 found="yes" 16905 fi 16906 fi 16907 16908 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16909else 16910{ 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 16911printf "%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;} 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925xorg_testset_save_CFLAGS="$CFLAGS" 16926 16927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16931if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16932then : 16933 printf %s "(cached) " >&6 16934else $as_nop 16935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16936/* end confdefs.h. */ 16937int i; 16938_ACEOF 16939if ac_fn_c_try_compile "$LINENO" 16940then : 16941 xorg_cv_cc_flag_unknown_warning_option=yes 16942else $as_nop 16943 xorg_cv_cc_flag_unknown_warning_option=no 16944fi 16945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16946fi 16947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16950 CFLAGS="$xorg_testset_save_CFLAGS" 16951fi 16952 16953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16956 fi 16957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16960if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16961then : 16962 printf %s "(cached) " >&6 16963else $as_nop 16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16965/* end confdefs.h. */ 16966int i; 16967_ACEOF 16968if ac_fn_c_try_compile "$LINENO" 16969then : 16970 xorg_cv_cc_flag_unused_command_line_argument=yes 16971else $as_nop 16972 xorg_cv_cc_flag_unused_command_line_argument=no 16973fi 16974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16975fi 16976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16979 CFLAGS="$xorg_testset_save_CFLAGS" 16980fi 16981 16982found="no" 16983 16984 if test $found = "no" ; then 16985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16987 fi 16988 16989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16991 fi 16992 16993 CFLAGS="$CFLAGS -Wimplicit" 16994 16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16996printf %s "checking if $CC supports -Wimplicit... " >&6; } 16997 cacheid=xorg_cv_cc_flag__Wimplicit 16998 if eval test \${$cacheid+y} 16999then : 17000 printf %s "(cached) " >&6 17001else $as_nop 17002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17003/* end confdefs.h. */ 17004int i; 17005int 17006main (void) 17007{ 17008 17009 ; 17010 return 0; 17011} 17012_ACEOF 17013if ac_fn_c_try_link "$LINENO" 17014then : 17015 eval $cacheid=yes 17016else $as_nop 17017 eval $cacheid=no 17018fi 17019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17020 conftest$ac_exeext conftest.$ac_ext 17021fi 17022 17023 17024 CFLAGS="$xorg_testset_save_CFLAGS" 17025 17026 eval supported=\$$cacheid 17027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17028printf "%s\n" "$supported" >&6; } 17029 if test "$supported" = "yes" ; then 17030 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17031 found="yes" 17032 fi 17033 fi 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049xorg_testset_save_CFLAGS="$CFLAGS" 17050 17051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17055if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17056then : 17057 printf %s "(cached) " >&6 17058else $as_nop 17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17060/* end confdefs.h. */ 17061int i; 17062_ACEOF 17063if ac_fn_c_try_compile "$LINENO" 17064then : 17065 xorg_cv_cc_flag_unknown_warning_option=yes 17066else $as_nop 17067 xorg_cv_cc_flag_unknown_warning_option=no 17068fi 17069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17070fi 17071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17074 CFLAGS="$xorg_testset_save_CFLAGS" 17075fi 17076 17077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17080 fi 17081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17084if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17085then : 17086 printf %s "(cached) " >&6 17087else $as_nop 17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17089/* end confdefs.h. */ 17090int i; 17091_ACEOF 17092if ac_fn_c_try_compile "$LINENO" 17093then : 17094 xorg_cv_cc_flag_unused_command_line_argument=yes 17095else $as_nop 17096 xorg_cv_cc_flag_unused_command_line_argument=no 17097fi 17098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17099fi 17100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17103 CFLAGS="$xorg_testset_save_CFLAGS" 17104fi 17105 17106found="no" 17107 17108 if test $found = "no" ; then 17109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17111 fi 17112 17113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17115 fi 17116 17117 CFLAGS="$CFLAGS -Wnonnull" 17118 17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17120printf %s "checking if $CC supports -Wnonnull... " >&6; } 17121 cacheid=xorg_cv_cc_flag__Wnonnull 17122 if eval test \${$cacheid+y} 17123then : 17124 printf %s "(cached) " >&6 17125else $as_nop 17126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17127/* end confdefs.h. */ 17128int i; 17129int 17130main (void) 17131{ 17132 17133 ; 17134 return 0; 17135} 17136_ACEOF 17137if ac_fn_c_try_link "$LINENO" 17138then : 17139 eval $cacheid=yes 17140else $as_nop 17141 eval $cacheid=no 17142fi 17143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17144 conftest$ac_exeext conftest.$ac_ext 17145fi 17146 17147 17148 CFLAGS="$xorg_testset_save_CFLAGS" 17149 17150 eval supported=\$$cacheid 17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17152printf "%s\n" "$supported" >&6; } 17153 if test "$supported" = "yes" ; then 17154 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17155 found="yes" 17156 fi 17157 fi 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173xorg_testset_save_CFLAGS="$CFLAGS" 17174 17175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17179if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17180then : 17181 printf %s "(cached) " >&6 17182else $as_nop 17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17184/* end confdefs.h. */ 17185int i; 17186_ACEOF 17187if ac_fn_c_try_compile "$LINENO" 17188then : 17189 xorg_cv_cc_flag_unknown_warning_option=yes 17190else $as_nop 17191 xorg_cv_cc_flag_unknown_warning_option=no 17192fi 17193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17194fi 17195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17196printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17198 CFLAGS="$xorg_testset_save_CFLAGS" 17199fi 17200 17201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17204 fi 17205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17207printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17208if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17209then : 17210 printf %s "(cached) " >&6 17211else $as_nop 17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17213/* end confdefs.h. */ 17214int i; 17215_ACEOF 17216if ac_fn_c_try_compile "$LINENO" 17217then : 17218 xorg_cv_cc_flag_unused_command_line_argument=yes 17219else $as_nop 17220 xorg_cv_cc_flag_unused_command_line_argument=no 17221fi 17222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17223fi 17224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17227 CFLAGS="$xorg_testset_save_CFLAGS" 17228fi 17229 17230found="no" 17231 17232 if test $found = "no" ; then 17233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17235 fi 17236 17237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17239 fi 17240 17241 CFLAGS="$CFLAGS -Winit-self" 17242 17243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17244printf %s "checking if $CC supports -Winit-self... " >&6; } 17245 cacheid=xorg_cv_cc_flag__Winit_self 17246 if eval test \${$cacheid+y} 17247then : 17248 printf %s "(cached) " >&6 17249else $as_nop 17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17251/* end confdefs.h. */ 17252int i; 17253int 17254main (void) 17255{ 17256 17257 ; 17258 return 0; 17259} 17260_ACEOF 17261if ac_fn_c_try_link "$LINENO" 17262then : 17263 eval $cacheid=yes 17264else $as_nop 17265 eval $cacheid=no 17266fi 17267rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17268 conftest$ac_exeext conftest.$ac_ext 17269fi 17270 17271 17272 CFLAGS="$xorg_testset_save_CFLAGS" 17273 17274 eval supported=\$$cacheid 17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17276printf "%s\n" "$supported" >&6; } 17277 if test "$supported" = "yes" ; then 17278 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17279 found="yes" 17280 fi 17281 fi 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297xorg_testset_save_CFLAGS="$CFLAGS" 17298 17299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17303if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17304then : 17305 printf %s "(cached) " >&6 17306else $as_nop 17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17308/* end confdefs.h. */ 17309int i; 17310_ACEOF 17311if ac_fn_c_try_compile "$LINENO" 17312then : 17313 xorg_cv_cc_flag_unknown_warning_option=yes 17314else $as_nop 17315 xorg_cv_cc_flag_unknown_warning_option=no 17316fi 17317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17318fi 17319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17322 CFLAGS="$xorg_testset_save_CFLAGS" 17323fi 17324 17325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17328 fi 17329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17332if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17333then : 17334 printf %s "(cached) " >&6 17335else $as_nop 17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337/* end confdefs.h. */ 17338int i; 17339_ACEOF 17340if ac_fn_c_try_compile "$LINENO" 17341then : 17342 xorg_cv_cc_flag_unused_command_line_argument=yes 17343else $as_nop 17344 xorg_cv_cc_flag_unused_command_line_argument=no 17345fi 17346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17347fi 17348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17351 CFLAGS="$xorg_testset_save_CFLAGS" 17352fi 17353 17354found="no" 17355 17356 if test $found = "no" ; then 17357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17359 fi 17360 17361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17363 fi 17364 17365 CFLAGS="$CFLAGS -Wmain" 17366 17367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17368printf %s "checking if $CC supports -Wmain... " >&6; } 17369 cacheid=xorg_cv_cc_flag__Wmain 17370 if eval test \${$cacheid+y} 17371then : 17372 printf %s "(cached) " >&6 17373else $as_nop 17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17375/* end confdefs.h. */ 17376int i; 17377int 17378main (void) 17379{ 17380 17381 ; 17382 return 0; 17383} 17384_ACEOF 17385if ac_fn_c_try_link "$LINENO" 17386then : 17387 eval $cacheid=yes 17388else $as_nop 17389 eval $cacheid=no 17390fi 17391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17392 conftest$ac_exeext conftest.$ac_ext 17393fi 17394 17395 17396 CFLAGS="$xorg_testset_save_CFLAGS" 17397 17398 eval supported=\$$cacheid 17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17400printf "%s\n" "$supported" >&6; } 17401 if test "$supported" = "yes" ; then 17402 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17403 found="yes" 17404 fi 17405 fi 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421xorg_testset_save_CFLAGS="$CFLAGS" 17422 17423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17427if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17428then : 17429 printf %s "(cached) " >&6 17430else $as_nop 17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17432/* end confdefs.h. */ 17433int i; 17434_ACEOF 17435if ac_fn_c_try_compile "$LINENO" 17436then : 17437 xorg_cv_cc_flag_unknown_warning_option=yes 17438else $as_nop 17439 xorg_cv_cc_flag_unknown_warning_option=no 17440fi 17441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17442fi 17443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17446 CFLAGS="$xorg_testset_save_CFLAGS" 17447fi 17448 17449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17452 fi 17453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17456if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17457then : 17458 printf %s "(cached) " >&6 17459else $as_nop 17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17461/* end confdefs.h. */ 17462int i; 17463_ACEOF 17464if ac_fn_c_try_compile "$LINENO" 17465then : 17466 xorg_cv_cc_flag_unused_command_line_argument=yes 17467else $as_nop 17468 xorg_cv_cc_flag_unused_command_line_argument=no 17469fi 17470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17471fi 17472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17475 CFLAGS="$xorg_testset_save_CFLAGS" 17476fi 17477 17478found="no" 17479 17480 if test $found = "no" ; then 17481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17483 fi 17484 17485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17487 fi 17488 17489 CFLAGS="$CFLAGS -Wmissing-braces" 17490 17491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17492printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17493 cacheid=xorg_cv_cc_flag__Wmissing_braces 17494 if eval test \${$cacheid+y} 17495then : 17496 printf %s "(cached) " >&6 17497else $as_nop 17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17499/* end confdefs.h. */ 17500int i; 17501int 17502main (void) 17503{ 17504 17505 ; 17506 return 0; 17507} 17508_ACEOF 17509if ac_fn_c_try_link "$LINENO" 17510then : 17511 eval $cacheid=yes 17512else $as_nop 17513 eval $cacheid=no 17514fi 17515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17516 conftest$ac_exeext conftest.$ac_ext 17517fi 17518 17519 17520 CFLAGS="$xorg_testset_save_CFLAGS" 17521 17522 eval supported=\$$cacheid 17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17524printf "%s\n" "$supported" >&6; } 17525 if test "$supported" = "yes" ; then 17526 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17527 found="yes" 17528 fi 17529 fi 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545xorg_testset_save_CFLAGS="$CFLAGS" 17546 17547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17552then : 17553 printf %s "(cached) " >&6 17554else $as_nop 17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556/* end confdefs.h. */ 17557int i; 17558_ACEOF 17559if ac_fn_c_try_compile "$LINENO" 17560then : 17561 xorg_cv_cc_flag_unknown_warning_option=yes 17562else $as_nop 17563 xorg_cv_cc_flag_unknown_warning_option=no 17564fi 17565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17566fi 17567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17570 CFLAGS="$xorg_testset_save_CFLAGS" 17571fi 17572 17573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17576 fi 17577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17580if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17581then : 17582 printf %s "(cached) " >&6 17583else $as_nop 17584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17585/* end confdefs.h. */ 17586int i; 17587_ACEOF 17588if ac_fn_c_try_compile "$LINENO" 17589then : 17590 xorg_cv_cc_flag_unused_command_line_argument=yes 17591else $as_nop 17592 xorg_cv_cc_flag_unused_command_line_argument=no 17593fi 17594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17595fi 17596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17599 CFLAGS="$xorg_testset_save_CFLAGS" 17600fi 17601 17602found="no" 17603 17604 if test $found = "no" ; then 17605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17607 fi 17608 17609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17611 fi 17612 17613 CFLAGS="$CFLAGS -Wsequence-point" 17614 17615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17616printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17617 cacheid=xorg_cv_cc_flag__Wsequence_point 17618 if eval test \${$cacheid+y} 17619then : 17620 printf %s "(cached) " >&6 17621else $as_nop 17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17623/* end confdefs.h. */ 17624int i; 17625int 17626main (void) 17627{ 17628 17629 ; 17630 return 0; 17631} 17632_ACEOF 17633if ac_fn_c_try_link "$LINENO" 17634then : 17635 eval $cacheid=yes 17636else $as_nop 17637 eval $cacheid=no 17638fi 17639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17640 conftest$ac_exeext conftest.$ac_ext 17641fi 17642 17643 17644 CFLAGS="$xorg_testset_save_CFLAGS" 17645 17646 eval supported=\$$cacheid 17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17648printf "%s\n" "$supported" >&6; } 17649 if test "$supported" = "yes" ; then 17650 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17651 found="yes" 17652 fi 17653 fi 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669xorg_testset_save_CFLAGS="$CFLAGS" 17670 17671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17676then : 17677 printf %s "(cached) " >&6 17678else $as_nop 17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17680/* end confdefs.h. */ 17681int i; 17682_ACEOF 17683if ac_fn_c_try_compile "$LINENO" 17684then : 17685 xorg_cv_cc_flag_unknown_warning_option=yes 17686else $as_nop 17687 xorg_cv_cc_flag_unknown_warning_option=no 17688fi 17689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17690fi 17691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17694 CFLAGS="$xorg_testset_save_CFLAGS" 17695fi 17696 17697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17700 fi 17701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17704if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17705then : 17706 printf %s "(cached) " >&6 17707else $as_nop 17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17709/* end confdefs.h. */ 17710int i; 17711_ACEOF 17712if ac_fn_c_try_compile "$LINENO" 17713then : 17714 xorg_cv_cc_flag_unused_command_line_argument=yes 17715else $as_nop 17716 xorg_cv_cc_flag_unused_command_line_argument=no 17717fi 17718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17719fi 17720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17723 CFLAGS="$xorg_testset_save_CFLAGS" 17724fi 17725 17726found="no" 17727 17728 if test $found = "no" ; then 17729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17731 fi 17732 17733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17735 fi 17736 17737 CFLAGS="$CFLAGS -Wreturn-type" 17738 17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17740printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17741 cacheid=xorg_cv_cc_flag__Wreturn_type 17742 if eval test \${$cacheid+y} 17743then : 17744 printf %s "(cached) " >&6 17745else $as_nop 17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17747/* end confdefs.h. */ 17748int i; 17749int 17750main (void) 17751{ 17752 17753 ; 17754 return 0; 17755} 17756_ACEOF 17757if ac_fn_c_try_link "$LINENO" 17758then : 17759 eval $cacheid=yes 17760else $as_nop 17761 eval $cacheid=no 17762fi 17763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17764 conftest$ac_exeext conftest.$ac_ext 17765fi 17766 17767 17768 CFLAGS="$xorg_testset_save_CFLAGS" 17769 17770 eval supported=\$$cacheid 17771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17772printf "%s\n" "$supported" >&6; } 17773 if test "$supported" = "yes" ; then 17774 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17775 found="yes" 17776 fi 17777 fi 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793xorg_testset_save_CFLAGS="$CFLAGS" 17794 17795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17799if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17800then : 17801 printf %s "(cached) " >&6 17802else $as_nop 17803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17804/* end confdefs.h. */ 17805int i; 17806_ACEOF 17807if ac_fn_c_try_compile "$LINENO" 17808then : 17809 xorg_cv_cc_flag_unknown_warning_option=yes 17810else $as_nop 17811 xorg_cv_cc_flag_unknown_warning_option=no 17812fi 17813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17814fi 17815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17818 CFLAGS="$xorg_testset_save_CFLAGS" 17819fi 17820 17821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17824 fi 17825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17828if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17829then : 17830 printf %s "(cached) " >&6 17831else $as_nop 17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833/* end confdefs.h. */ 17834int i; 17835_ACEOF 17836if ac_fn_c_try_compile "$LINENO" 17837then : 17838 xorg_cv_cc_flag_unused_command_line_argument=yes 17839else $as_nop 17840 xorg_cv_cc_flag_unused_command_line_argument=no 17841fi 17842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17843fi 17844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17847 CFLAGS="$xorg_testset_save_CFLAGS" 17848fi 17849 17850found="no" 17851 17852 if test $found = "no" ; then 17853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17855 fi 17856 17857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17859 fi 17860 17861 CFLAGS="$CFLAGS -Wtrigraphs" 17862 17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17864printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17865 cacheid=xorg_cv_cc_flag__Wtrigraphs 17866 if eval test \${$cacheid+y} 17867then : 17868 printf %s "(cached) " >&6 17869else $as_nop 17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17871/* end confdefs.h. */ 17872int i; 17873int 17874main (void) 17875{ 17876 17877 ; 17878 return 0; 17879} 17880_ACEOF 17881if ac_fn_c_try_link "$LINENO" 17882then : 17883 eval $cacheid=yes 17884else $as_nop 17885 eval $cacheid=no 17886fi 17887rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17888 conftest$ac_exeext conftest.$ac_ext 17889fi 17890 17891 17892 CFLAGS="$xorg_testset_save_CFLAGS" 17893 17894 eval supported=\$$cacheid 17895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17896printf "%s\n" "$supported" >&6; } 17897 if test "$supported" = "yes" ; then 17898 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17899 found="yes" 17900 fi 17901 fi 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917xorg_testset_save_CFLAGS="$CFLAGS" 17918 17919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17923if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17924then : 17925 printf %s "(cached) " >&6 17926else $as_nop 17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17928/* end confdefs.h. */ 17929int i; 17930_ACEOF 17931if ac_fn_c_try_compile "$LINENO" 17932then : 17933 xorg_cv_cc_flag_unknown_warning_option=yes 17934else $as_nop 17935 xorg_cv_cc_flag_unknown_warning_option=no 17936fi 17937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17938fi 17939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17940printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17942 CFLAGS="$xorg_testset_save_CFLAGS" 17943fi 17944 17945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17948 fi 17949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17951printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17952if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17953then : 17954 printf %s "(cached) " >&6 17955else $as_nop 17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17957/* end confdefs.h. */ 17958int i; 17959_ACEOF 17960if ac_fn_c_try_compile "$LINENO" 17961then : 17962 xorg_cv_cc_flag_unused_command_line_argument=yes 17963else $as_nop 17964 xorg_cv_cc_flag_unused_command_line_argument=no 17965fi 17966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17967fi 17968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17969printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17971 CFLAGS="$xorg_testset_save_CFLAGS" 17972fi 17973 17974found="no" 17975 17976 if test $found = "no" ; then 17977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17979 fi 17980 17981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17983 fi 17984 17985 CFLAGS="$CFLAGS -Warray-bounds" 17986 17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17988printf %s "checking if $CC supports -Warray-bounds... " >&6; } 17989 cacheid=xorg_cv_cc_flag__Warray_bounds 17990 if eval test \${$cacheid+y} 17991then : 17992 printf %s "(cached) " >&6 17993else $as_nop 17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17995/* end confdefs.h. */ 17996int i; 17997int 17998main (void) 17999{ 18000 18001 ; 18002 return 0; 18003} 18004_ACEOF 18005if ac_fn_c_try_link "$LINENO" 18006then : 18007 eval $cacheid=yes 18008else $as_nop 18009 eval $cacheid=no 18010fi 18011rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18012 conftest$ac_exeext conftest.$ac_ext 18013fi 18014 18015 18016 CFLAGS="$xorg_testset_save_CFLAGS" 18017 18018 eval supported=\$$cacheid 18019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18020printf "%s\n" "$supported" >&6; } 18021 if test "$supported" = "yes" ; then 18022 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18023 found="yes" 18024 fi 18025 fi 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041xorg_testset_save_CFLAGS="$CFLAGS" 18042 18043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18047if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18048then : 18049 printf %s "(cached) " >&6 18050else $as_nop 18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18052/* end confdefs.h. */ 18053int i; 18054_ACEOF 18055if ac_fn_c_try_compile "$LINENO" 18056then : 18057 xorg_cv_cc_flag_unknown_warning_option=yes 18058else $as_nop 18059 xorg_cv_cc_flag_unknown_warning_option=no 18060fi 18061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18062fi 18063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18066 CFLAGS="$xorg_testset_save_CFLAGS" 18067fi 18068 18069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18072 fi 18073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18076if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18077then : 18078 printf %s "(cached) " >&6 18079else $as_nop 18080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18081/* end confdefs.h. */ 18082int i; 18083_ACEOF 18084if ac_fn_c_try_compile "$LINENO" 18085then : 18086 xorg_cv_cc_flag_unused_command_line_argument=yes 18087else $as_nop 18088 xorg_cv_cc_flag_unused_command_line_argument=no 18089fi 18090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18091fi 18092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18095 CFLAGS="$xorg_testset_save_CFLAGS" 18096fi 18097 18098found="no" 18099 18100 if test $found = "no" ; then 18101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18103 fi 18104 18105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18107 fi 18108 18109 CFLAGS="$CFLAGS -Wwrite-strings" 18110 18111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18112printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18113 cacheid=xorg_cv_cc_flag__Wwrite_strings 18114 if eval test \${$cacheid+y} 18115then : 18116 printf %s "(cached) " >&6 18117else $as_nop 18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18119/* end confdefs.h. */ 18120int i; 18121int 18122main (void) 18123{ 18124 18125 ; 18126 return 0; 18127} 18128_ACEOF 18129if ac_fn_c_try_link "$LINENO" 18130then : 18131 eval $cacheid=yes 18132else $as_nop 18133 eval $cacheid=no 18134fi 18135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18136 conftest$ac_exeext conftest.$ac_ext 18137fi 18138 18139 18140 CFLAGS="$xorg_testset_save_CFLAGS" 18141 18142 eval supported=\$$cacheid 18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18144printf "%s\n" "$supported" >&6; } 18145 if test "$supported" = "yes" ; then 18146 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18147 found="yes" 18148 fi 18149 fi 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165xorg_testset_save_CFLAGS="$CFLAGS" 18166 18167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18171if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18172then : 18173 printf %s "(cached) " >&6 18174else $as_nop 18175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18176/* end confdefs.h. */ 18177int i; 18178_ACEOF 18179if ac_fn_c_try_compile "$LINENO" 18180then : 18181 xorg_cv_cc_flag_unknown_warning_option=yes 18182else $as_nop 18183 xorg_cv_cc_flag_unknown_warning_option=no 18184fi 18185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18186fi 18187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18190 CFLAGS="$xorg_testset_save_CFLAGS" 18191fi 18192 18193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18196 fi 18197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18200if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18201then : 18202 printf %s "(cached) " >&6 18203else $as_nop 18204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18205/* end confdefs.h. */ 18206int i; 18207_ACEOF 18208if ac_fn_c_try_compile "$LINENO" 18209then : 18210 xorg_cv_cc_flag_unused_command_line_argument=yes 18211else $as_nop 18212 xorg_cv_cc_flag_unused_command_line_argument=no 18213fi 18214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18215fi 18216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18219 CFLAGS="$xorg_testset_save_CFLAGS" 18220fi 18221 18222found="no" 18223 18224 if test $found = "no" ; then 18225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18227 fi 18228 18229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18231 fi 18232 18233 CFLAGS="$CFLAGS -Waddress" 18234 18235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18236printf %s "checking if $CC supports -Waddress... " >&6; } 18237 cacheid=xorg_cv_cc_flag__Waddress 18238 if eval test \${$cacheid+y} 18239then : 18240 printf %s "(cached) " >&6 18241else $as_nop 18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18243/* end confdefs.h. */ 18244int i; 18245int 18246main (void) 18247{ 18248 18249 ; 18250 return 0; 18251} 18252_ACEOF 18253if ac_fn_c_try_link "$LINENO" 18254then : 18255 eval $cacheid=yes 18256else $as_nop 18257 eval $cacheid=no 18258fi 18259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18260 conftest$ac_exeext conftest.$ac_ext 18261fi 18262 18263 18264 CFLAGS="$xorg_testset_save_CFLAGS" 18265 18266 eval supported=\$$cacheid 18267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18268printf "%s\n" "$supported" >&6; } 18269 if test "$supported" = "yes" ; then 18270 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18271 found="yes" 18272 fi 18273 fi 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289xorg_testset_save_CFLAGS="$CFLAGS" 18290 18291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18294printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18295if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18296then : 18297 printf %s "(cached) " >&6 18298else $as_nop 18299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18300/* end confdefs.h. */ 18301int i; 18302_ACEOF 18303if ac_fn_c_try_compile "$LINENO" 18304then : 18305 xorg_cv_cc_flag_unknown_warning_option=yes 18306else $as_nop 18307 xorg_cv_cc_flag_unknown_warning_option=no 18308fi 18309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18310fi 18311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18313 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18314 CFLAGS="$xorg_testset_save_CFLAGS" 18315fi 18316 18317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18319 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18320 fi 18321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18324if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18325then : 18326 printf %s "(cached) " >&6 18327else $as_nop 18328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18329/* end confdefs.h. */ 18330int i; 18331_ACEOF 18332if ac_fn_c_try_compile "$LINENO" 18333then : 18334 xorg_cv_cc_flag_unused_command_line_argument=yes 18335else $as_nop 18336 xorg_cv_cc_flag_unused_command_line_argument=no 18337fi 18338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18339fi 18340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18341printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18343 CFLAGS="$xorg_testset_save_CFLAGS" 18344fi 18345 18346found="no" 18347 18348 if test $found = "no" ; then 18349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18351 fi 18352 18353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18355 fi 18356 18357 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18358 18359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18360printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18361 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18362 if eval test \${$cacheid+y} 18363then : 18364 printf %s "(cached) " >&6 18365else $as_nop 18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18367/* end confdefs.h. */ 18368int i; 18369int 18370main (void) 18371{ 18372 18373 ; 18374 return 0; 18375} 18376_ACEOF 18377if ac_fn_c_try_link "$LINENO" 18378then : 18379 eval $cacheid=yes 18380else $as_nop 18381 eval $cacheid=no 18382fi 18383rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18384 conftest$ac_exeext conftest.$ac_ext 18385fi 18386 18387 18388 CFLAGS="$xorg_testset_save_CFLAGS" 18389 18390 eval supported=\$$cacheid 18391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18392printf "%s\n" "$supported" >&6; } 18393 if test "$supported" = "yes" ; then 18394 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18395 found="yes" 18396 fi 18397 fi 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413xorg_testset_save_CFLAGS="$CFLAGS" 18414 18415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18418printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18419if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18420then : 18421 printf %s "(cached) " >&6 18422else $as_nop 18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18424/* end confdefs.h. */ 18425int i; 18426_ACEOF 18427if ac_fn_c_try_compile "$LINENO" 18428then : 18429 xorg_cv_cc_flag_unknown_warning_option=yes 18430else $as_nop 18431 xorg_cv_cc_flag_unknown_warning_option=no 18432fi 18433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18434fi 18435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18436printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18438 CFLAGS="$xorg_testset_save_CFLAGS" 18439fi 18440 18441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18444 fi 18445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18447printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18448if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18449then : 18450 printf %s "(cached) " >&6 18451else $as_nop 18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18453/* end confdefs.h. */ 18454int i; 18455_ACEOF 18456if ac_fn_c_try_compile "$LINENO" 18457then : 18458 xorg_cv_cc_flag_unused_command_line_argument=yes 18459else $as_nop 18460 xorg_cv_cc_flag_unused_command_line_argument=no 18461fi 18462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18463fi 18464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18467 CFLAGS="$xorg_testset_save_CFLAGS" 18468fi 18469 18470found="no" 18471 18472 if test $found = "no" ; then 18473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18475 fi 18476 18477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18479 fi 18480 18481 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18482 18483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18484printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18485 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18486 if eval test \${$cacheid+y} 18487then : 18488 printf %s "(cached) " >&6 18489else $as_nop 18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491/* end confdefs.h. */ 18492int i; 18493int 18494main (void) 18495{ 18496 18497 ; 18498 return 0; 18499} 18500_ACEOF 18501if ac_fn_c_try_link "$LINENO" 18502then : 18503 eval $cacheid=yes 18504else $as_nop 18505 eval $cacheid=no 18506fi 18507rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18508 conftest$ac_exeext conftest.$ac_ext 18509fi 18510 18511 18512 CFLAGS="$xorg_testset_save_CFLAGS" 18513 18514 eval supported=\$$cacheid 18515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18516printf "%s\n" "$supported" >&6; } 18517 if test "$supported" = "yes" ; then 18518 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18519 found="yes" 18520 fi 18521 fi 18522 18523 18524fi 18525 18526 18527 18528 18529 18530 18531 18532 CWARNFLAGS="$BASE_CFLAGS" 18533 if test "x$GCC" = xyes ; then 18534 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18535 fi 18536 18537 18538 18539 18540 18541 18542 18543 18544# Check whether --enable-strict-compilation was given. 18545if test ${enable_strict_compilation+y} 18546then : 18547 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18548else $as_nop 18549 STRICT_COMPILE=no 18550fi 18551 18552 18553 18554 18555 18556 18557STRICT_CFLAGS="" 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571xorg_testset_save_CFLAGS="$CFLAGS" 18572 18573if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18576printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18577if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18578then : 18579 printf %s "(cached) " >&6 18580else $as_nop 18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18582/* end confdefs.h. */ 18583int i; 18584_ACEOF 18585if ac_fn_c_try_compile "$LINENO" 18586then : 18587 xorg_cv_cc_flag_unknown_warning_option=yes 18588else $as_nop 18589 xorg_cv_cc_flag_unknown_warning_option=no 18590fi 18591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18592fi 18593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18594printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18595 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18596 CFLAGS="$xorg_testset_save_CFLAGS" 18597fi 18598 18599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18601 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18602 fi 18603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18605printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18606if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18607then : 18608 printf %s "(cached) " >&6 18609else $as_nop 18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18611/* end confdefs.h. */ 18612int i; 18613_ACEOF 18614if ac_fn_c_try_compile "$LINENO" 18615then : 18616 xorg_cv_cc_flag_unused_command_line_argument=yes 18617else $as_nop 18618 xorg_cv_cc_flag_unused_command_line_argument=no 18619fi 18620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18621fi 18622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18623printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18625 CFLAGS="$xorg_testset_save_CFLAGS" 18626fi 18627 18628found="no" 18629 18630 if test $found = "no" ; then 18631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18633 fi 18634 18635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18637 fi 18638 18639 CFLAGS="$CFLAGS -pedantic" 18640 18641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18642printf %s "checking if $CC supports -pedantic... " >&6; } 18643 cacheid=xorg_cv_cc_flag__pedantic 18644 if eval test \${$cacheid+y} 18645then : 18646 printf %s "(cached) " >&6 18647else $as_nop 18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18649/* end confdefs.h. */ 18650int i; 18651int 18652main (void) 18653{ 18654 18655 ; 18656 return 0; 18657} 18658_ACEOF 18659if ac_fn_c_try_link "$LINENO" 18660then : 18661 eval $cacheid=yes 18662else $as_nop 18663 eval $cacheid=no 18664fi 18665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18666 conftest$ac_exeext conftest.$ac_ext 18667fi 18668 18669 18670 CFLAGS="$xorg_testset_save_CFLAGS" 18671 18672 eval supported=\$$cacheid 18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18674printf "%s\n" "$supported" >&6; } 18675 if test "$supported" = "yes" ; then 18676 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18677 found="yes" 18678 fi 18679 fi 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695xorg_testset_save_CFLAGS="$CFLAGS" 18696 18697if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18700printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18701if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18702then : 18703 printf %s "(cached) " >&6 18704else $as_nop 18705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18706/* end confdefs.h. */ 18707int i; 18708_ACEOF 18709if ac_fn_c_try_compile "$LINENO" 18710then : 18711 xorg_cv_cc_flag_unknown_warning_option=yes 18712else $as_nop 18713 xorg_cv_cc_flag_unknown_warning_option=no 18714fi 18715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18716fi 18717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18718printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18720 CFLAGS="$xorg_testset_save_CFLAGS" 18721fi 18722 18723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18726 fi 18727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18729printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18730if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18731then : 18732 printf %s "(cached) " >&6 18733else $as_nop 18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18735/* end confdefs.h. */ 18736int i; 18737_ACEOF 18738if ac_fn_c_try_compile "$LINENO" 18739then : 18740 xorg_cv_cc_flag_unused_command_line_argument=yes 18741else $as_nop 18742 xorg_cv_cc_flag_unused_command_line_argument=no 18743fi 18744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18745fi 18746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18747printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18749 CFLAGS="$xorg_testset_save_CFLAGS" 18750fi 18751 18752found="no" 18753 18754 if test $found = "no" ; then 18755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18757 fi 18758 18759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18761 fi 18762 18763 CFLAGS="$CFLAGS -Werror" 18764 18765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18766printf %s "checking if $CC supports -Werror... " >&6; } 18767 cacheid=xorg_cv_cc_flag__Werror 18768 if eval test \${$cacheid+y} 18769then : 18770 printf %s "(cached) " >&6 18771else $as_nop 18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18773/* end confdefs.h. */ 18774int i; 18775int 18776main (void) 18777{ 18778 18779 ; 18780 return 0; 18781} 18782_ACEOF 18783if ac_fn_c_try_link "$LINENO" 18784then : 18785 eval $cacheid=yes 18786else $as_nop 18787 eval $cacheid=no 18788fi 18789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18790 conftest$ac_exeext conftest.$ac_ext 18791fi 18792 18793 18794 CFLAGS="$xorg_testset_save_CFLAGS" 18795 18796 eval supported=\$$cacheid 18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18798printf "%s\n" "$supported" >&6; } 18799 if test "$supported" = "yes" ; then 18800 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18801 found="yes" 18802 fi 18803 fi 18804 18805 if test $found = "no" ; then 18806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18808 fi 18809 18810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18812 fi 18813 18814 CFLAGS="$CFLAGS -errwarn" 18815 18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18817printf %s "checking if $CC supports -errwarn... " >&6; } 18818 cacheid=xorg_cv_cc_flag__errwarn 18819 if eval test \${$cacheid+y} 18820then : 18821 printf %s "(cached) " >&6 18822else $as_nop 18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18824/* end confdefs.h. */ 18825int i; 18826int 18827main (void) 18828{ 18829 18830 ; 18831 return 0; 18832} 18833_ACEOF 18834if ac_fn_c_try_link "$LINENO" 18835then : 18836 eval $cacheid=yes 18837else $as_nop 18838 eval $cacheid=no 18839fi 18840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18841 conftest$ac_exeext conftest.$ac_ext 18842fi 18843 18844 18845 CFLAGS="$xorg_testset_save_CFLAGS" 18846 18847 eval supported=\$$cacheid 18848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18849printf "%s\n" "$supported" >&6; } 18850 if test "$supported" = "yes" ; then 18851 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18852 found="yes" 18853 fi 18854 fi 18855 18856 18857 18858# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18859# activate it with -Werror, so we add it here explicitly. 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873xorg_testset_save_CFLAGS="$CFLAGS" 18874 18875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18879if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18880then : 18881 printf %s "(cached) " >&6 18882else $as_nop 18883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18884/* end confdefs.h. */ 18885int i; 18886_ACEOF 18887if ac_fn_c_try_compile "$LINENO" 18888then : 18889 xorg_cv_cc_flag_unknown_warning_option=yes 18890else $as_nop 18891 xorg_cv_cc_flag_unknown_warning_option=no 18892fi 18893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18894fi 18895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18898 CFLAGS="$xorg_testset_save_CFLAGS" 18899fi 18900 18901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18904 fi 18905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18908if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18909then : 18910 printf %s "(cached) " >&6 18911else $as_nop 18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18913/* end confdefs.h. */ 18914int i; 18915_ACEOF 18916if ac_fn_c_try_compile "$LINENO" 18917then : 18918 xorg_cv_cc_flag_unused_command_line_argument=yes 18919else $as_nop 18920 xorg_cv_cc_flag_unused_command_line_argument=no 18921fi 18922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18923fi 18924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18927 CFLAGS="$xorg_testset_save_CFLAGS" 18928fi 18929 18930found="no" 18931 18932 if test $found = "no" ; then 18933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18935 fi 18936 18937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18939 fi 18940 18941 CFLAGS="$CFLAGS -Werror=attributes" 18942 18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18944printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18945 cacheid=xorg_cv_cc_flag__Werror_attributes 18946 if eval test \${$cacheid+y} 18947then : 18948 printf %s "(cached) " >&6 18949else $as_nop 18950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18951/* end confdefs.h. */ 18952int i; 18953int 18954main (void) 18955{ 18956 18957 ; 18958 return 0; 18959} 18960_ACEOF 18961if ac_fn_c_try_link "$LINENO" 18962then : 18963 eval $cacheid=yes 18964else $as_nop 18965 eval $cacheid=no 18966fi 18967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18968 conftest$ac_exeext conftest.$ac_ext 18969fi 18970 18971 18972 CFLAGS="$xorg_testset_save_CFLAGS" 18973 18974 eval supported=\$$cacheid 18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18976printf "%s\n" "$supported" >&6; } 18977 if test "$supported" = "yes" ; then 18978 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18979 found="yes" 18980 fi 18981 fi 18982 18983 18984 18985if test "x$STRICT_COMPILE" = "xyes"; then 18986 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18987 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18988fi 18989 18990 18991 18992 18993 18994 18995cat >>confdefs.h <<_ACEOF 18996#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18997_ACEOF 18998 18999 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19000 if test "x$PVM" = "x"; then 19001 PVM="0" 19002 fi 19003 19004printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19005 19006 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19007 if test "x$PVP" = "x"; then 19008 PVP="0" 19009 fi 19010 19011printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19012 19013 19014 19015CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19016mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19017|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19018touch \$(top_srcdir)/ChangeLog; \ 19019echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19020 19021 19022 19023 19024macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19025INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19026mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19027|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19028touch \$(top_srcdir)/INSTALL; \ 19029echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19030 19031 19032 19033 19034 19035 19036case $host_os in 19037 solaris*) 19038 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19039 # check for a man page file found in later versions that use 19040 # traditional section numbers instead 19041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19042printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19043if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19044then : 19045 printf %s "(cached) " >&6 19046else $as_nop 19047 test "$cross_compiling" = yes && 19048 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19049if test -r "/usr/share/man/man7/attributes.7"; then 19050 ac_cv_file__usr_share_man_man7_attributes_7=yes 19051else 19052 ac_cv_file__usr_share_man_man7_attributes_7=no 19053fi 19054fi 19055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19056printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19057if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19058then : 19059 SYSV_MAN_SECTIONS=false 19060else $as_nop 19061 SYSV_MAN_SECTIONS=true 19062fi 19063 19064 ;; 19065 *) SYSV_MAN_SECTIONS=false ;; 19066esac 19067 19068if test x$APP_MAN_SUFFIX = x ; then 19069 APP_MAN_SUFFIX=1 19070fi 19071if test x$APP_MAN_DIR = x ; then 19072 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19073fi 19074 19075if test x$LIB_MAN_SUFFIX = x ; then 19076 LIB_MAN_SUFFIX=3 19077fi 19078if test x$LIB_MAN_DIR = x ; then 19079 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19080fi 19081 19082if test x$FILE_MAN_SUFFIX = x ; then 19083 case $SYSV_MAN_SECTIONS in 19084 true) FILE_MAN_SUFFIX=4 ;; 19085 *) FILE_MAN_SUFFIX=5 ;; 19086 esac 19087fi 19088if test x$FILE_MAN_DIR = x ; then 19089 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19090fi 19091 19092if test x$MISC_MAN_SUFFIX = x ; then 19093 case $SYSV_MAN_SECTIONS in 19094 true) MISC_MAN_SUFFIX=5 ;; 19095 *) MISC_MAN_SUFFIX=7 ;; 19096 esac 19097fi 19098if test x$MISC_MAN_DIR = x ; then 19099 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19100fi 19101 19102if test x$DRIVER_MAN_SUFFIX = x ; then 19103 case $SYSV_MAN_SECTIONS in 19104 true) DRIVER_MAN_SUFFIX=7 ;; 19105 *) DRIVER_MAN_SUFFIX=4 ;; 19106 esac 19107fi 19108if test x$DRIVER_MAN_DIR = x ; then 19109 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19110fi 19111 19112if test x$ADMIN_MAN_SUFFIX = x ; then 19113 case $SYSV_MAN_SECTIONS in 19114 true) ADMIN_MAN_SUFFIX=1m ;; 19115 *) ADMIN_MAN_SUFFIX=8 ;; 19116 esac 19117fi 19118if test x$ADMIN_MAN_DIR = x ; then 19119 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19120fi 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136XORG_MAN_PAGE="X Version 11" 19137 19138MAN_SUBSTS="\ 19139 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19140 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19141 -e 's|__xservername__|Xorg|g' \ 19142 -e 's|__xconfigfile__|xorg.conf|g' \ 19143 -e 's|__projectroot__|\$(prefix)|g' \ 19144 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19145 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19146 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19147 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19148 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19149 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19150 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19151 19152 19153 19154# Check whether --enable-silent-rules was given. 19155if test ${enable_silent_rules+y} 19156then : 19157 enableval=$enable_silent_rules; 19158fi 19159 19160case $enable_silent_rules in # ((( 19161 yes) AM_DEFAULT_VERBOSITY=0;; 19162 no) AM_DEFAULT_VERBOSITY=1;; 19163 *) AM_DEFAULT_VERBOSITY=0;; 19164esac 19165am_make=${MAKE-make} 19166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19167printf %s "checking whether $am_make supports nested variables... " >&6; } 19168if test ${am_cv_make_support_nested_variables+y} 19169then : 19170 printf %s "(cached) " >&6 19171else $as_nop 19172 if printf "%s\n" 'TRUE=$(BAR$(V)) 19173BAR0=false 19174BAR1=true 19175V=1 19176am__doit: 19177 @$(TRUE) 19178.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19179 am_cv_make_support_nested_variables=yes 19180else 19181 am_cv_make_support_nested_variables=no 19182fi 19183fi 19184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19185printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19186if test $am_cv_make_support_nested_variables = yes; then 19187 AM_V='$(V)' 19188 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19189else 19190 AM_V=$AM_DEFAULT_VERBOSITY 19191 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19192fi 19193AM_BACKSLASH='\' 19194 19195 19196 19197# Checks for library functions. 19198ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 19199if test "x$ac_cv_func_strcasecmp" = xyes 19200then : 19201 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 19202 19203fi 19204ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 19205if test "x$ac_cv_func_strndup" = xyes 19206then : 19207 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 19208 19209fi 19210 19211ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked" 19212if test "x$ac_cv_func_getc_unlocked" = xyes 19213then : 19214 19215printf "%s\n" "#define HAVE_UNLOCKED_STDIO 1" >>confdefs.h 19216 19217fi 19218 19219 19220# Obtain compiler/linker options for dependencies 19221 19222pkg_failed=no 19223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XKBFILE" >&5 19224printf %s "checking for XKBFILE... " >&6; } 19225 19226if test -n "$XKBFILE_CFLAGS"; then 19227 pkg_cv_XKBFILE_CFLAGS="$XKBFILE_CFLAGS" 19228 elif test -n "$PKG_CONFIG"; then 19229 if test -n "$PKG_CONFIG" && \ 19230 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 19231 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 19232 ac_status=$? 19233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19234 test $ac_status = 0; }; then 19235 pkg_cv_XKBFILE_CFLAGS=`$PKG_CONFIG --cflags "x11 kbproto" 2>/dev/null` 19236 test "x$?" != "x0" && pkg_failed=yes 19237else 19238 pkg_failed=yes 19239fi 19240 else 19241 pkg_failed=untried 19242fi 19243if test -n "$XKBFILE_LIBS"; then 19244 pkg_cv_XKBFILE_LIBS="$XKBFILE_LIBS" 19245 elif test -n "$PKG_CONFIG"; then 19246 if test -n "$PKG_CONFIG" && \ 19247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 kbproto\""; } >&5 19248 ($PKG_CONFIG --exists --print-errors "x11 kbproto") 2>&5 19249 ac_status=$? 19250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19251 test $ac_status = 0; }; then 19252 pkg_cv_XKBFILE_LIBS=`$PKG_CONFIG --libs "x11 kbproto" 2>/dev/null` 19253 test "x$?" != "x0" && pkg_failed=yes 19254else 19255 pkg_failed=yes 19256fi 19257 else 19258 pkg_failed=untried 19259fi 19260 19261 19262 19263if test $pkg_failed = yes; then 19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19265printf "%s\n" "no" >&6; } 19266 19267if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19268 _pkg_short_errors_supported=yes 19269else 19270 _pkg_short_errors_supported=no 19271fi 19272 if test $_pkg_short_errors_supported = yes; then 19273 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 kbproto" 2>&1` 19274 else 19275 XKBFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 kbproto" 2>&1` 19276 fi 19277 # Put the nasty error message in config.log where it belongs 19278 echo "$XKBFILE_PKG_ERRORS" >&5 19279 19280 as_fn_error $? "Package requirements (x11 kbproto) were not met: 19281 19282$XKBFILE_PKG_ERRORS 19283 19284Consider adjusting the PKG_CONFIG_PATH environment variable if you 19285installed software in a non-standard prefix. 19286 19287Alternatively, you may set the environment variables XKBFILE_CFLAGS 19288and XKBFILE_LIBS to avoid the need to call pkg-config. 19289See the pkg-config man page for more details." "$LINENO" 5 19290elif test $pkg_failed = untried; then 19291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19292printf "%s\n" "no" >&6; } 19293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19294printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19295as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19296is in your PATH or set the PKG_CONFIG environment variable to the full 19297path to pkg-config. 19298 19299Alternatively, you may set the environment variables XKBFILE_CFLAGS 19300and XKBFILE_LIBS to avoid the need to call pkg-config. 19301See the pkg-config man page for more details. 19302 19303To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19304See \`config.log' for more details" "$LINENO" 5; } 19305else 19306 XKBFILE_CFLAGS=$pkg_cv_XKBFILE_CFLAGS 19307 XKBFILE_LIBS=$pkg_cv_XKBFILE_LIBS 19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19309printf "%s\n" "yes" >&6; } 19310 19311fi 19312 19313ac_config_files="$ac_config_files Makefile src/Makefile xkbfile.pc" 19314 19315cat >confcache <<\_ACEOF 19316# This file is a shell script that caches the results of configure 19317# tests run on this system so they can be shared between configure 19318# scripts and configure runs, see configure's option --config-cache. 19319# It is not useful on other systems. If it contains results you don't 19320# want to keep, you may remove or edit it. 19321# 19322# config.status only pays attention to the cache file if you give it 19323# the --recheck option to rerun configure. 19324# 19325# `ac_cv_env_foo' variables (set or unset) will be overridden when 19326# loading this file, other *unset* `ac_cv_foo' will be assigned the 19327# following values. 19328 19329_ACEOF 19330 19331# The following way of writing the cache mishandles newlines in values, 19332# but we know of no workaround that is simple, portable, and efficient. 19333# So, we kill variables containing newlines. 19334# Ultrix sh set writes to stderr and can't be redirected directly, 19335# and sets the high bit in the cache file unless we assign to the vars. 19336( 19337 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19338 eval ac_val=\$$ac_var 19339 case $ac_val in #( 19340 *${as_nl}*) 19341 case $ac_var in #( 19342 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19343printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19344 esac 19345 case $ac_var in #( 19346 _ | IFS | as_nl) ;; #( 19347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19348 *) { eval $ac_var=; unset $ac_var;} ;; 19349 esac ;; 19350 esac 19351 done 19352 19353 (set) 2>&1 | 19354 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19355 *${as_nl}ac_space=\ *) 19356 # `set' does not quote correctly, so add quotes: double-quote 19357 # substitution turns \\\\ into \\, and sed turns \\ into \. 19358 sed -n \ 19359 "s/'/'\\\\''/g; 19360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19361 ;; #( 19362 *) 19363 # `set' quotes correctly as required by POSIX, so do not add quotes. 19364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19365 ;; 19366 esac | 19367 sort 19368) | 19369 sed ' 19370 /^ac_cv_env_/b end 19371 t clear 19372 :clear 19373 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19374 t end 19375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19376 :end' >>confcache 19377if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19378 if test -w "$cache_file"; then 19379 if test "x$cache_file" != "x/dev/null"; then 19380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19381printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19382 if test ! -f "$cache_file" || test -h "$cache_file"; then 19383 cat confcache >"$cache_file" 19384 else 19385 case $cache_file in #( 19386 */* | ?:*) 19387 mv -f confcache "$cache_file"$$ && 19388 mv -f "$cache_file"$$ "$cache_file" ;; #( 19389 *) 19390 mv -f confcache "$cache_file" ;; 19391 esac 19392 fi 19393 fi 19394 else 19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19396printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19397 fi 19398fi 19399rm -f confcache 19400 19401test "x$prefix" = xNONE && prefix=$ac_default_prefix 19402# Let make expand exec_prefix. 19403test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19404 19405DEFS=-DHAVE_CONFIG_H 19406 19407ac_libobjs= 19408ac_ltlibobjs= 19409U= 19410for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19411 # 1. Remove the extension, and $U if already installed. 19412 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19413 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19414 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19415 # will be set to the directory where LIBOBJS objects are built. 19416 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19417 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19418done 19419LIBOBJS=$ac_libobjs 19420 19421LTLIBOBJS=$ac_ltlibobjs 19422 19423 19424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19425printf %s "checking that generated files are newer than configure... " >&6; } 19426 if test -n "$am_sleep_pid"; then 19427 # Hide warnings about reused PIDs. 19428 wait $am_sleep_pid 2>/dev/null 19429 fi 19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19431printf "%s\n" "done" >&6; } 19432 if test -n "$EXEEXT"; then 19433 am__EXEEXT_TRUE= 19434 am__EXEEXT_FALSE='#' 19435else 19436 am__EXEEXT_TRUE='#' 19437 am__EXEEXT_FALSE= 19438fi 19439 19440if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19441 as_fn_error $? "conditional \"AMDEP\" was never defined. 19442Usually this means the macro was only invoked conditionally." "$LINENO" 5 19443fi 19444if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19445 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19446Usually this means the macro was only invoked conditionally." "$LINENO" 5 19447fi 19448 19449: "${CONFIG_STATUS=./config.status}" 19450ac_write_fail=0 19451ac_clean_files_save=$ac_clean_files 19452ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19454printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19455as_write_fail=0 19456cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19457#! $SHELL 19458# Generated by $as_me. 19459# Run this file to recreate the current configuration. 19460# Compiler output produced by configure, useful for debugging 19461# configure, is in config.log if it exists. 19462 19463debug=false 19464ac_cs_recheck=false 19465ac_cs_silent=false 19466 19467SHELL=\${CONFIG_SHELL-$SHELL} 19468export SHELL 19469_ASEOF 19470cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19471## -------------------- ## 19472## M4sh Initialization. ## 19473## -------------------- ## 19474 19475# Be more Bourne compatible 19476DUALCASE=1; export DUALCASE # for MKS sh 19477as_nop=: 19478if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19479then : 19480 emulate sh 19481 NULLCMD=: 19482 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19483 # is contrary to our usage. Disable this feature. 19484 alias -g '${1+"$@"}'='"$@"' 19485 setopt NO_GLOB_SUBST 19486else $as_nop 19487 case `(set -o) 2>/dev/null` in #( 19488 *posix*) : 19489 set -o posix ;; #( 19490 *) : 19491 ;; 19492esac 19493fi 19494 19495 19496 19497# Reset variables that may have inherited troublesome values from 19498# the environment. 19499 19500# IFS needs to be set, to space, tab, and newline, in precisely that order. 19501# (If _AS_PATH_WALK were called with IFS unset, it would have the 19502# side effect of setting IFS to empty, thus disabling word splitting.) 19503# Quoting is to prevent editors from complaining about space-tab. 19504as_nl=' 19505' 19506export as_nl 19507IFS=" "" $as_nl" 19508 19509PS1='$ ' 19510PS2='> ' 19511PS4='+ ' 19512 19513# Ensure predictable behavior from utilities with locale-dependent output. 19514LC_ALL=C 19515export LC_ALL 19516LANGUAGE=C 19517export LANGUAGE 19518 19519# We cannot yet rely on "unset" to work, but we need these variables 19520# to be unset--not just set to an empty or harmless value--now, to 19521# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19522# also avoids known problems related to "unset" and subshell syntax 19523# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19524for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19525do eval test \${$as_var+y} \ 19526 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19527done 19528 19529# Ensure that fds 0, 1, and 2 are open. 19530if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19531if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19532if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19533 19534# The user is always right. 19535if ${PATH_SEPARATOR+false} :; then 19536 PATH_SEPARATOR=: 19537 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19538 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19539 PATH_SEPARATOR=';' 19540 } 19541fi 19542 19543 19544# Find who we are. Look in the path if we contain no directory separator. 19545as_myself= 19546case $0 in #(( 19547 *[\\/]* ) as_myself=$0 ;; 19548 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19549for as_dir in $PATH 19550do 19551 IFS=$as_save_IFS 19552 case $as_dir in #((( 19553 '') as_dir=./ ;; 19554 */) ;; 19555 *) as_dir=$as_dir/ ;; 19556 esac 19557 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19558 done 19559IFS=$as_save_IFS 19560 19561 ;; 19562esac 19563# We did not find ourselves, most probably we were run as `sh COMMAND' 19564# in which case we are not to be found in the path. 19565if test "x$as_myself" = x; then 19566 as_myself=$0 19567fi 19568if test ! -f "$as_myself"; then 19569 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19570 exit 1 19571fi 19572 19573 19574 19575# as_fn_error STATUS ERROR [LINENO LOG_FD] 19576# ---------------------------------------- 19577# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19578# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19579# script with STATUS, using 1 if that was 0. 19580as_fn_error () 19581{ 19582 as_status=$1; test $as_status -eq 0 && as_status=1 19583 if test "$4"; then 19584 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19586 fi 19587 printf "%s\n" "$as_me: error: $2" >&2 19588 as_fn_exit $as_status 19589} # as_fn_error 19590 19591 19592 19593# as_fn_set_status STATUS 19594# ----------------------- 19595# Set $? to STATUS, without forking. 19596as_fn_set_status () 19597{ 19598 return $1 19599} # as_fn_set_status 19600 19601# as_fn_exit STATUS 19602# ----------------- 19603# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19604as_fn_exit () 19605{ 19606 set +e 19607 as_fn_set_status $1 19608 exit $1 19609} # as_fn_exit 19610 19611# as_fn_unset VAR 19612# --------------- 19613# Portably unset VAR. 19614as_fn_unset () 19615{ 19616 { eval $1=; unset $1;} 19617} 19618as_unset=as_fn_unset 19619 19620# as_fn_append VAR VALUE 19621# ---------------------- 19622# Append the text in VALUE to the end of the definition contained in VAR. Take 19623# advantage of any shell optimizations that allow amortized linear growth over 19624# repeated appends, instead of the typical quadratic growth present in naive 19625# implementations. 19626if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19627then : 19628 eval 'as_fn_append () 19629 { 19630 eval $1+=\$2 19631 }' 19632else $as_nop 19633 as_fn_append () 19634 { 19635 eval $1=\$$1\$2 19636 } 19637fi # as_fn_append 19638 19639# as_fn_arith ARG... 19640# ------------------ 19641# Perform arithmetic evaluation on the ARGs, and store the result in the 19642# global $as_val. Take advantage of shells that can avoid forks. The arguments 19643# must be portable across $(()) and expr. 19644if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19645then : 19646 eval 'as_fn_arith () 19647 { 19648 as_val=$(( $* )) 19649 }' 19650else $as_nop 19651 as_fn_arith () 19652 { 19653 as_val=`expr "$@" || test $? -eq 1` 19654 } 19655fi # as_fn_arith 19656 19657 19658if expr a : '\(a\)' >/dev/null 2>&1 && 19659 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19660 as_expr=expr 19661else 19662 as_expr=false 19663fi 19664 19665if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19666 as_basename=basename 19667else 19668 as_basename=false 19669fi 19670 19671if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19672 as_dirname=dirname 19673else 19674 as_dirname=false 19675fi 19676 19677as_me=`$as_basename -- "$0" || 19678$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19679 X"$0" : 'X\(//\)$' \| \ 19680 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19681printf "%s\n" X/"$0" | 19682 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19683 s//\1/ 19684 q 19685 } 19686 /^X\/\(\/\/\)$/{ 19687 s//\1/ 19688 q 19689 } 19690 /^X\/\(\/\).*/{ 19691 s//\1/ 19692 q 19693 } 19694 s/.*/./; q'` 19695 19696# Avoid depending upon Character Ranges. 19697as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19698as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19699as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19700as_cr_digits='0123456789' 19701as_cr_alnum=$as_cr_Letters$as_cr_digits 19702 19703 19704# Determine whether it's possible to make 'echo' print without a newline. 19705# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19706# for compatibility with existing Makefiles. 19707ECHO_C= ECHO_N= ECHO_T= 19708case `echo -n x` in #((((( 19709-n*) 19710 case `echo 'xy\c'` in 19711 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19712 xy) ECHO_C='\c';; 19713 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19714 ECHO_T=' ';; 19715 esac;; 19716*) 19717 ECHO_N='-n';; 19718esac 19719 19720# For backward compatibility with old third-party macros, we provide 19721# the shell variables $as_echo and $as_echo_n. New code should use 19722# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19723as_echo='printf %s\n' 19724as_echo_n='printf %s' 19725 19726rm -f conf$$ conf$$.exe conf$$.file 19727if test -d conf$$.dir; then 19728 rm -f conf$$.dir/conf$$.file 19729else 19730 rm -f conf$$.dir 19731 mkdir conf$$.dir 2>/dev/null 19732fi 19733if (echo >conf$$.file) 2>/dev/null; then 19734 if ln -s conf$$.file conf$$ 2>/dev/null; then 19735 as_ln_s='ln -s' 19736 # ... but there are two gotchas: 19737 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19738 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19739 # In both cases, we have to default to `cp -pR'. 19740 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19741 as_ln_s='cp -pR' 19742 elif ln conf$$.file conf$$ 2>/dev/null; then 19743 as_ln_s=ln 19744 else 19745 as_ln_s='cp -pR' 19746 fi 19747else 19748 as_ln_s='cp -pR' 19749fi 19750rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19751rmdir conf$$.dir 2>/dev/null 19752 19753 19754# as_fn_mkdir_p 19755# ------------- 19756# Create "$as_dir" as a directory, including parents if necessary. 19757as_fn_mkdir_p () 19758{ 19759 19760 case $as_dir in #( 19761 -*) as_dir=./$as_dir;; 19762 esac 19763 test -d "$as_dir" || eval $as_mkdir_p || { 19764 as_dirs= 19765 while :; do 19766 case $as_dir in #( 19767 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19768 *) as_qdir=$as_dir;; 19769 esac 19770 as_dirs="'$as_qdir' $as_dirs" 19771 as_dir=`$as_dirname -- "$as_dir" || 19772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19773 X"$as_dir" : 'X\(//\)[^/]' \| \ 19774 X"$as_dir" : 'X\(//\)$' \| \ 19775 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19776printf "%s\n" X"$as_dir" | 19777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19778 s//\1/ 19779 q 19780 } 19781 /^X\(\/\/\)[^/].*/{ 19782 s//\1/ 19783 q 19784 } 19785 /^X\(\/\/\)$/{ 19786 s//\1/ 19787 q 19788 } 19789 /^X\(\/\).*/{ 19790 s//\1/ 19791 q 19792 } 19793 s/.*/./; q'` 19794 test -d "$as_dir" && break 19795 done 19796 test -z "$as_dirs" || eval "mkdir $as_dirs" 19797 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19798 19799 19800} # as_fn_mkdir_p 19801if mkdir -p . 2>/dev/null; then 19802 as_mkdir_p='mkdir -p "$as_dir"' 19803else 19804 test -d ./-p && rmdir ./-p 19805 as_mkdir_p=false 19806fi 19807 19808 19809# as_fn_executable_p FILE 19810# ----------------------- 19811# Test if FILE is an executable regular file. 19812as_fn_executable_p () 19813{ 19814 test -f "$1" && test -x "$1" 19815} # as_fn_executable_p 19816as_test_x='test -x' 19817as_executable_p=as_fn_executable_p 19818 19819# Sed expression to map a string onto a valid CPP name. 19820as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19821 19822# Sed expression to map a string onto a valid variable name. 19823as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19824 19825 19826exec 6>&1 19827## ----------------------------------- ## 19828## Main body of $CONFIG_STATUS script. ## 19829## ----------------------------------- ## 19830_ASEOF 19831test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19832 19833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19834# Save the log message, to keep $0 and so on meaningful, and to 19835# report actual input values of CONFIG_FILES etc. instead of their 19836# values after options handling. 19837ac_log=" 19838This file was extended by libxkbfile $as_me 1.1.1, which was 19839generated by GNU Autoconf 2.71. Invocation command line was 19840 19841 CONFIG_FILES = $CONFIG_FILES 19842 CONFIG_HEADERS = $CONFIG_HEADERS 19843 CONFIG_LINKS = $CONFIG_LINKS 19844 CONFIG_COMMANDS = $CONFIG_COMMANDS 19845 $ $0 $@ 19846 19847on `(hostname || uname -n) 2>/dev/null | sed 1q` 19848" 19849 19850_ACEOF 19851 19852case $ac_config_files in *" 19853"*) set x $ac_config_files; shift; ac_config_files=$*;; 19854esac 19855 19856case $ac_config_headers in *" 19857"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19858esac 19859 19860 19861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19862# Files that config.status was made for. 19863config_files="$ac_config_files" 19864config_headers="$ac_config_headers" 19865config_commands="$ac_config_commands" 19866 19867_ACEOF 19868 19869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19870ac_cs_usage="\ 19871\`$as_me' instantiates files and other configuration actions 19872from templates according to the current configuration. Unless the files 19873and actions are specified as TAGs, all are instantiated by default. 19874 19875Usage: $0 [OPTION]... [TAG]... 19876 19877 -h, --help print this help, then exit 19878 -V, --version print version number and configuration settings, then exit 19879 --config print configuration, then exit 19880 -q, --quiet, --silent 19881 do not print progress messages 19882 -d, --debug don't remove temporary files 19883 --recheck update $as_me by reconfiguring in the same conditions 19884 --file=FILE[:TEMPLATE] 19885 instantiate the configuration file FILE 19886 --header=FILE[:TEMPLATE] 19887 instantiate the configuration header FILE 19888 19889Configuration files: 19890$config_files 19891 19892Configuration headers: 19893$config_headers 19894 19895Configuration commands: 19896$config_commands 19897 19898Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/issues>." 19899 19900_ACEOF 19901ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 19902ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 19903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19904ac_cs_config='$ac_cs_config_escaped' 19905ac_cs_version="\\ 19906libxkbfile config.status 1.1.1 19907configured by $0, generated by GNU Autoconf 2.71, 19908 with options \\"\$ac_cs_config\\" 19909 19910Copyright (C) 2021 Free Software Foundation, Inc. 19911This config.status script is free software; the Free Software Foundation 19912gives unlimited permission to copy, distribute and modify it." 19913 19914ac_pwd='$ac_pwd' 19915srcdir='$srcdir' 19916INSTALL='$INSTALL' 19917MKDIR_P='$MKDIR_P' 19918AWK='$AWK' 19919test -n "\$AWK" || AWK=awk 19920_ACEOF 19921 19922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19923# The default lists apply if the user does not specify any file. 19924ac_need_defaults=: 19925while test $# != 0 19926do 19927 case $1 in 19928 --*=?*) 19929 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19930 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19931 ac_shift=: 19932 ;; 19933 --*=) 19934 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19935 ac_optarg= 19936 ac_shift=: 19937 ;; 19938 *) 19939 ac_option=$1 19940 ac_optarg=$2 19941 ac_shift=shift 19942 ;; 19943 esac 19944 19945 case $ac_option in 19946 # Handling of the options. 19947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19948 ac_cs_recheck=: ;; 19949 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19950 printf "%s\n" "$ac_cs_version"; exit ;; 19951 --config | --confi | --conf | --con | --co | --c ) 19952 printf "%s\n" "$ac_cs_config"; exit ;; 19953 --debug | --debu | --deb | --de | --d | -d ) 19954 debug=: ;; 19955 --file | --fil | --fi | --f ) 19956 $ac_shift 19957 case $ac_optarg in 19958 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19959 '') as_fn_error $? "missing file argument" ;; 19960 esac 19961 as_fn_append CONFIG_FILES " '$ac_optarg'" 19962 ac_need_defaults=false;; 19963 --header | --heade | --head | --hea ) 19964 $ac_shift 19965 case $ac_optarg in 19966 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19967 esac 19968 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19969 ac_need_defaults=false;; 19970 --he | --h) 19971 # Conflict between --help and --header 19972 as_fn_error $? "ambiguous option: \`$1' 19973Try \`$0 --help' for more information.";; 19974 --help | --hel | -h ) 19975 printf "%s\n" "$ac_cs_usage"; exit ;; 19976 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19977 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19978 ac_cs_silent=: ;; 19979 19980 # This is an error. 19981 -*) as_fn_error $? "unrecognized option: \`$1' 19982Try \`$0 --help' for more information." ;; 19983 19984 *) as_fn_append ac_config_targets " $1" 19985 ac_need_defaults=false ;; 19986 19987 esac 19988 shift 19989done 19990 19991ac_configure_extra_args= 19992 19993if $ac_cs_silent; then 19994 exec 6>/dev/null 19995 ac_configure_extra_args="$ac_configure_extra_args --silent" 19996fi 19997 19998_ACEOF 19999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20000if \$ac_cs_recheck; then 20001 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20002 shift 20003 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20004 CONFIG_SHELL='$SHELL' 20005 export CONFIG_SHELL 20006 exec "\$@" 20007fi 20008 20009_ACEOF 20010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20011exec 5>>config.log 20012{ 20013 echo 20014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20015## Running $as_me. ## 20016_ASBOX 20017 printf "%s\n" "$ac_log" 20018} >&5 20019 20020_ACEOF 20021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20022# 20023# INIT-COMMANDS 20024# 20025AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20026 20027 20028# The HP-UX ksh and POSIX shell print the target directory to stdout 20029# if CDPATH is set. 20030(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20031 20032sed_quote_subst='$sed_quote_subst' 20033double_quote_subst='$double_quote_subst' 20034delay_variable_subst='$delay_variable_subst' 20035macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20036macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20037enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20038enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20039pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20040enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20041shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20042SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20043ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20044PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20045host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20046host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20047host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20048build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20049build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20050build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20051SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20052Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20053GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20054EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20055FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20056LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20057NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20058LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20059max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20060ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20061exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20062lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20063lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20064lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20065lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20066lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20067reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20068reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20069FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20070OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20071deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20072file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20073file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20074want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20075DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20076sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20077AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20078lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20079AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20080archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20081STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20082RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20083old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20084old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20085old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20086lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20087CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20088CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20089compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20090GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20091lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20092lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20093lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20094lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20095lt_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"`' 20096lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20097nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20098lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20099lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20100objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20101MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20102lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20103lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20104lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20105lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20106lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20107need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20108MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20109DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20110NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20111LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20112OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20113OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20114libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20115shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20116extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20117archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20118enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20119export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20120whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20121compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20122old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20123old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20124archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20125archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20126module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20127module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20128with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20129allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20130no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20131hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20132hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20133hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20134hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20135hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20136hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20137hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20138inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20139link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20140always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20141export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20142exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20143include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20144prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20145postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20146file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20147variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20148need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20149need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20150version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20151runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20152shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20153shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20154libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20155library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20156soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20157install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20158postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20159postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20160finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20161finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20162hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20163sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20164configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20165configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20166hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20167enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20168enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20169enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20170old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20171striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20172 20173LTCC='$LTCC' 20174LTCFLAGS='$LTCFLAGS' 20175compiler='$compiler_DEFAULT' 20176 20177# A function that is used when there is no print builtin or printf. 20178func_fallback_echo () 20179{ 20180 eval 'cat <<_LTECHO_EOF 20181\$1 20182_LTECHO_EOF' 20183} 20184 20185# Quote evaled strings. 20186for var in SHELL \ 20187ECHO \ 20188PATH_SEPARATOR \ 20189SED \ 20190GREP \ 20191EGREP \ 20192FGREP \ 20193LD \ 20194NM \ 20195LN_S \ 20196lt_SP2NL \ 20197lt_NL2SP \ 20198reload_flag \ 20199FILECMD \ 20200OBJDUMP \ 20201deplibs_check_method \ 20202file_magic_cmd \ 20203file_magic_glob \ 20204want_nocaseglob \ 20205DLLTOOL \ 20206sharedlib_from_linklib_cmd \ 20207AR \ 20208archiver_list_spec \ 20209STRIP \ 20210RANLIB \ 20211CC \ 20212CFLAGS \ 20213compiler \ 20214lt_cv_sys_global_symbol_pipe \ 20215lt_cv_sys_global_symbol_to_cdecl \ 20216lt_cv_sys_global_symbol_to_import \ 20217lt_cv_sys_global_symbol_to_c_name_address \ 20218lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20219lt_cv_nm_interface \ 20220nm_file_list_spec \ 20221lt_cv_truncate_bin \ 20222lt_prog_compiler_no_builtin_flag \ 20223lt_prog_compiler_pic \ 20224lt_prog_compiler_wl \ 20225lt_prog_compiler_static \ 20226lt_cv_prog_compiler_c_o \ 20227need_locks \ 20228MANIFEST_TOOL \ 20229DSYMUTIL \ 20230NMEDIT \ 20231LIPO \ 20232OTOOL \ 20233OTOOL64 \ 20234shrext_cmds \ 20235export_dynamic_flag_spec \ 20236whole_archive_flag_spec \ 20237compiler_needs_object \ 20238with_gnu_ld \ 20239allow_undefined_flag \ 20240no_undefined_flag \ 20241hardcode_libdir_flag_spec \ 20242hardcode_libdir_separator \ 20243exclude_expsyms \ 20244include_expsyms \ 20245file_list_spec \ 20246variables_saved_for_relink \ 20247libname_spec \ 20248library_names_spec \ 20249soname_spec \ 20250install_override_mode \ 20251finish_eval \ 20252old_striplib \ 20253striplib; do 20254 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20255 *[\\\\\\\`\\"\\\$]*) 20256 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20257 ;; 20258 *) 20259 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20260 ;; 20261 esac 20262done 20263 20264# Double-quote double-evaled strings. 20265for var in reload_cmds \ 20266old_postinstall_cmds \ 20267old_postuninstall_cmds \ 20268old_archive_cmds \ 20269extract_expsyms_cmds \ 20270old_archive_from_new_cmds \ 20271old_archive_from_expsyms_cmds \ 20272archive_cmds \ 20273archive_expsym_cmds \ 20274module_cmds \ 20275module_expsym_cmds \ 20276export_symbols_cmds \ 20277prelink_cmds \ 20278postlink_cmds \ 20279postinstall_cmds \ 20280postuninstall_cmds \ 20281finish_cmds \ 20282sys_lib_search_path_spec \ 20283configure_time_dlsearch_path \ 20284configure_time_lt_sys_library_path; do 20285 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20286 *[\\\\\\\`\\"\\\$]*) 20287 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20288 ;; 20289 *) 20290 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20291 ;; 20292 esac 20293done 20294 20295ac_aux_dir='$ac_aux_dir' 20296 20297# See if we are running on zsh, and set the options that allow our 20298# commands through without removal of \ escapes INIT. 20299if test -n "\${ZSH_VERSION+set}"; then 20300 setopt NO_GLOB_SUBST 20301fi 20302 20303 20304 PACKAGE='$PACKAGE' 20305 VERSION='$VERSION' 20306 RM='$RM' 20307 ofile='$ofile' 20308 20309 20310 20311 20312_ACEOF 20313 20314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20315 20316# Handling of arguments. 20317for ac_config_target in $ac_config_targets 20318do 20319 case $ac_config_target in 20320 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20321 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20322 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20323 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20324 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20325 "xkbfile.pc") CONFIG_FILES="$CONFIG_FILES xkbfile.pc" ;; 20326 20327 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20328 esac 20329done 20330 20331 20332# If the user did not use the arguments to specify the items to instantiate, 20333# then the envvar interface is used. Set only those that are not. 20334# We use the long form for the default assignment because of an extremely 20335# bizarre bug on SunOS 4.1.3. 20336if $ac_need_defaults; then 20337 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20338 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20339 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20340fi 20341 20342# Have a temporary directory for convenience. Make it in the build tree 20343# simply because there is no reason against having it here, and in addition, 20344# creating and moving files from /tmp can sometimes cause problems. 20345# Hook for its removal unless debugging. 20346# Note that there is a small window in which the directory will not be cleaned: 20347# after its creation but before its name has been assigned to `$tmp'. 20348$debug || 20349{ 20350 tmp= ac_tmp= 20351 trap 'exit_status=$? 20352 : "${ac_tmp:=$tmp}" 20353 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20354' 0 20355 trap 'as_fn_exit 1' 1 2 13 15 20356} 20357# Create a (secure) tmp directory for tmp files. 20358 20359{ 20360 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20361 test -d "$tmp" 20362} || 20363{ 20364 tmp=./conf$$-$RANDOM 20365 (umask 077 && mkdir "$tmp") 20366} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20367ac_tmp=$tmp 20368 20369# Set up the scripts for CONFIG_FILES section. 20370# No need to generate them if there are no CONFIG_FILES. 20371# This happens for instance with `./config.status config.h'. 20372if test -n "$CONFIG_FILES"; then 20373 20374 20375ac_cr=`echo X | tr X '\015'` 20376# On cygwin, bash can eat \r inside `` if the user requested igncr. 20377# But we know of no other shell where ac_cr would be empty at this 20378# point, so we can use a bashism as a fallback. 20379if test "x$ac_cr" = x; then 20380 eval ac_cr=\$\'\\r\' 20381fi 20382ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20383if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20384 ac_cs_awk_cr='\\r' 20385else 20386 ac_cs_awk_cr=$ac_cr 20387fi 20388 20389echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20390_ACEOF 20391 20392 20393{ 20394 echo "cat >conf$$subs.awk <<_ACEOF" && 20395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20396 echo "_ACEOF" 20397} >conf$$subs.sh || 20398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20399ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20400ac_delim='%!_!# ' 20401for ac_last_try in false false false false false :; do 20402 . ./conf$$subs.sh || 20403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20404 20405 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20406 if test $ac_delim_n = $ac_delim_num; then 20407 break 20408 elif $ac_last_try; then 20409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20410 else 20411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20412 fi 20413done 20414rm -f conf$$subs.sh 20415 20416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20417cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20418_ACEOF 20419sed -n ' 20420h 20421s/^/S["/; s/!.*/"]=/ 20422p 20423g 20424s/^[^!]*!// 20425:repl 20426t repl 20427s/'"$ac_delim"'$// 20428t delim 20429:nl 20430h 20431s/\(.\{148\}\)..*/\1/ 20432t more1 20433s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20434p 20435n 20436b repl 20437:more1 20438s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20439p 20440g 20441s/.\{148\}// 20442t nl 20443:delim 20444h 20445s/\(.\{148\}\)..*/\1/ 20446t more2 20447s/["\\]/\\&/g; s/^/"/; s/$/"/ 20448p 20449b 20450:more2 20451s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20452p 20453g 20454s/.\{148\}// 20455t delim 20456' <conf$$subs.awk | sed ' 20457/^[^""]/{ 20458 N 20459 s/\n// 20460} 20461' >>$CONFIG_STATUS || ac_write_fail=1 20462rm -f conf$$subs.awk 20463cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20464_ACAWK 20465cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20466 for (key in S) S_is_set[key] = 1 20467 FS = "" 20468 20469} 20470{ 20471 line = $ 0 20472 nfields = split(line, field, "@") 20473 substed = 0 20474 len = length(field[1]) 20475 for (i = 2; i < nfields; i++) { 20476 key = field[i] 20477 keylen = length(key) 20478 if (S_is_set[key]) { 20479 value = S[key] 20480 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20481 len += length(value) + length(field[++i]) 20482 substed = 1 20483 } else 20484 len += 1 + keylen 20485 } 20486 20487 print line 20488} 20489 20490_ACAWK 20491_ACEOF 20492cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20493if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20494 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20495else 20496 cat 20497fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20498 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20499_ACEOF 20500 20501# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20502# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20503# trailing colons and then remove the whole line if VPATH becomes empty 20504# (actually we leave an empty line to preserve line numbers). 20505if test "x$srcdir" = x.; then 20506 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20507h 20508s/// 20509s/^/:/ 20510s/[ ]*$/:/ 20511s/:\$(srcdir):/:/g 20512s/:\${srcdir}:/:/g 20513s/:@srcdir@:/:/g 20514s/^:*// 20515s/:*$// 20516x 20517s/\(=[ ]*\).*/\1/ 20518G 20519s/\n// 20520s/^[^=]*=[ ]*$// 20521}' 20522fi 20523 20524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20525fi # test -n "$CONFIG_FILES" 20526 20527# Set up the scripts for CONFIG_HEADERS section. 20528# No need to generate them if there are no CONFIG_HEADERS. 20529# This happens for instance with `./config.status Makefile'. 20530if test -n "$CONFIG_HEADERS"; then 20531cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20532BEGIN { 20533_ACEOF 20534 20535# Transform confdefs.h into an awk script `defines.awk', embedded as 20536# here-document in config.status, that substitutes the proper values into 20537# config.h.in to produce config.h. 20538 20539# Create a delimiter string that does not exist in confdefs.h, to ease 20540# handling of long lines. 20541ac_delim='%!_!# ' 20542for ac_last_try in false false :; do 20543 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20544 if test -z "$ac_tt"; then 20545 break 20546 elif $ac_last_try; then 20547 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20548 else 20549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20550 fi 20551done 20552 20553# For the awk script, D is an array of macro values keyed by name, 20554# likewise P contains macro parameters if any. Preserve backslash 20555# newline sequences. 20556 20557ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20558sed -n ' 20559s/.\{148\}/&'"$ac_delim"'/g 20560t rset 20561:rset 20562s/^[ ]*#[ ]*define[ ][ ]*/ / 20563t def 20564d 20565:def 20566s/\\$// 20567t bsnl 20568s/["\\]/\\&/g 20569s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20570D["\1"]=" \3"/p 20571s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20572d 20573:bsnl 20574s/["\\]/\\&/g 20575s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20576D["\1"]=" \3\\\\\\n"\\/p 20577t cont 20578s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20579t cont 20580d 20581:cont 20582n 20583s/.\{148\}/&'"$ac_delim"'/g 20584t clear 20585:clear 20586s/\\$// 20587t bsnlc 20588s/["\\]/\\&/g; s/^/"/; s/$/"/p 20589d 20590:bsnlc 20591s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20592b cont 20593' <confdefs.h | sed ' 20594s/'"$ac_delim"'/"\\\ 20595"/g' >>$CONFIG_STATUS || ac_write_fail=1 20596 20597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20598 for (key in D) D_is_set[key] = 1 20599 FS = "" 20600} 20601/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20602 line = \$ 0 20603 split(line, arg, " ") 20604 if (arg[1] == "#") { 20605 defundef = arg[2] 20606 mac1 = arg[3] 20607 } else { 20608 defundef = substr(arg[1], 2) 20609 mac1 = arg[2] 20610 } 20611 split(mac1, mac2, "(") #) 20612 macro = mac2[1] 20613 prefix = substr(line, 1, index(line, defundef) - 1) 20614 if (D_is_set[macro]) { 20615 # Preserve the white space surrounding the "#". 20616 print prefix "define", macro P[macro] D[macro] 20617 next 20618 } else { 20619 # Replace #undef with comments. This is necessary, for example, 20620 # in the case of _POSIX_SOURCE, which is predefined and required 20621 # on some systems where configure will not decide to define it. 20622 if (defundef == "undef") { 20623 print "/*", prefix defundef, macro, "*/" 20624 next 20625 } 20626 } 20627} 20628{ print } 20629_ACAWK 20630_ACEOF 20631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20632 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20633fi # test -n "$CONFIG_HEADERS" 20634 20635 20636eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20637shift 20638for ac_tag 20639do 20640 case $ac_tag in 20641 :[FHLC]) ac_mode=$ac_tag; continue;; 20642 esac 20643 case $ac_mode$ac_tag in 20644 :[FHL]*:*);; 20645 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20646 :[FH]-) ac_tag=-:-;; 20647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20648 esac 20649 ac_save_IFS=$IFS 20650 IFS=: 20651 set x $ac_tag 20652 IFS=$ac_save_IFS 20653 shift 20654 ac_file=$1 20655 shift 20656 20657 case $ac_mode in 20658 :L) ac_source=$1;; 20659 :[FH]) 20660 ac_file_inputs= 20661 for ac_f 20662 do 20663 case $ac_f in 20664 -) ac_f="$ac_tmp/stdin";; 20665 *) # Look for the file first in the build tree, then in the source tree 20666 # (if the path is not absolute). The absolute path cannot be DOS-style, 20667 # because $ac_f cannot contain `:'. 20668 test -f "$ac_f" || 20669 case $ac_f in 20670 [\\/$]*) false;; 20671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20672 esac || 20673 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20674 esac 20675 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20676 as_fn_append ac_file_inputs " '$ac_f'" 20677 done 20678 20679 # Let's still pretend it is `configure' which instantiates (i.e., don't 20680 # use $as_me), people would be surprised to read: 20681 # /* config.h. Generated by config.status. */ 20682 configure_input='Generated from '` 20683 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20684 `' by configure.' 20685 if test x"$ac_file" != x-; then 20686 configure_input="$ac_file. $configure_input" 20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20688printf "%s\n" "$as_me: creating $ac_file" >&6;} 20689 fi 20690 # Neutralize special characters interpreted by sed in replacement strings. 20691 case $configure_input in #( 20692 *\&* | *\|* | *\\* ) 20693 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20694 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20695 *) ac_sed_conf_input=$configure_input;; 20696 esac 20697 20698 case $ac_tag in 20699 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20701 esac 20702 ;; 20703 esac 20704 20705 ac_dir=`$as_dirname -- "$ac_file" || 20706$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20707 X"$ac_file" : 'X\(//\)[^/]' \| \ 20708 X"$ac_file" : 'X\(//\)$' \| \ 20709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20710printf "%s\n" X"$ac_file" | 20711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20712 s//\1/ 20713 q 20714 } 20715 /^X\(\/\/\)[^/].*/{ 20716 s//\1/ 20717 q 20718 } 20719 /^X\(\/\/\)$/{ 20720 s//\1/ 20721 q 20722 } 20723 /^X\(\/\).*/{ 20724 s//\1/ 20725 q 20726 } 20727 s/.*/./; q'` 20728 as_dir="$ac_dir"; as_fn_mkdir_p 20729 ac_builddir=. 20730 20731case "$ac_dir" in 20732.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20733*) 20734 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20735 # A ".." for each directory in $ac_dir_suffix. 20736 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20737 case $ac_top_builddir_sub in 20738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20740 esac ;; 20741esac 20742ac_abs_top_builddir=$ac_pwd 20743ac_abs_builddir=$ac_pwd$ac_dir_suffix 20744# for backward compatibility: 20745ac_top_builddir=$ac_top_build_prefix 20746 20747case $srcdir in 20748 .) # We are building in place. 20749 ac_srcdir=. 20750 ac_top_srcdir=$ac_top_builddir_sub 20751 ac_abs_top_srcdir=$ac_pwd ;; 20752 [\\/]* | ?:[\\/]* ) # Absolute name. 20753 ac_srcdir=$srcdir$ac_dir_suffix; 20754 ac_top_srcdir=$srcdir 20755 ac_abs_top_srcdir=$srcdir ;; 20756 *) # Relative name. 20757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20758 ac_top_srcdir=$ac_top_build_prefix$srcdir 20759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20760esac 20761ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20762 20763 20764 case $ac_mode in 20765 :F) 20766 # 20767 # CONFIG_FILE 20768 # 20769 20770 case $INSTALL in 20771 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20772 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20773 esac 20774 ac_MKDIR_P=$MKDIR_P 20775 case $MKDIR_P in 20776 [\\/$]* | ?:[\\/]* ) ;; 20777 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20778 esac 20779_ACEOF 20780 20781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20782# If the template does not know about datarootdir, expand it. 20783# FIXME: This hack should be removed a few years after 2.60. 20784ac_datarootdir_hack=; ac_datarootdir_seen= 20785ac_sed_dataroot=' 20786/datarootdir/ { 20787 p 20788 q 20789} 20790/@datadir@/p 20791/@docdir@/p 20792/@infodir@/p 20793/@localedir@/p 20794/@mandir@/p' 20795case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20796*datarootdir*) ac_datarootdir_seen=yes;; 20797*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20799printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20800_ACEOF 20801cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20802 ac_datarootdir_hack=' 20803 s&@datadir@&$datadir&g 20804 s&@docdir@&$docdir&g 20805 s&@infodir@&$infodir&g 20806 s&@localedir@&$localedir&g 20807 s&@mandir@&$mandir&g 20808 s&\\\${datarootdir}&$datarootdir&g' ;; 20809esac 20810_ACEOF 20811 20812# Neutralize VPATH when `$srcdir' = `.'. 20813# Shell code in configure.ac might set extrasub. 20814# FIXME: do we really want to maintain this feature? 20815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20816ac_sed_extra="$ac_vpsub 20817$extrasub 20818_ACEOF 20819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20820:t 20821/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20822s|@configure_input@|$ac_sed_conf_input|;t t 20823s&@top_builddir@&$ac_top_builddir_sub&;t t 20824s&@top_build_prefix@&$ac_top_build_prefix&;t t 20825s&@srcdir@&$ac_srcdir&;t t 20826s&@abs_srcdir@&$ac_abs_srcdir&;t t 20827s&@top_srcdir@&$ac_top_srcdir&;t t 20828s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20829s&@builddir@&$ac_builddir&;t t 20830s&@abs_builddir@&$ac_abs_builddir&;t t 20831s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20832s&@INSTALL@&$ac_INSTALL&;t t 20833s&@MKDIR_P@&$ac_MKDIR_P&;t t 20834$ac_datarootdir_hack 20835" 20836eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20837 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20838 20839test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20840 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20841 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20842 "$ac_tmp/out"`; test -z "$ac_out"; } && 20843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20844which seems to be undefined. Please make sure it is defined" >&5 20845printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20846which seems to be undefined. Please make sure it is defined" >&2;} 20847 20848 rm -f "$ac_tmp/stdin" 20849 case $ac_file in 20850 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20851 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20852 esac \ 20853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20854 ;; 20855 :H) 20856 # 20857 # CONFIG_HEADER 20858 # 20859 if test x"$ac_file" != x-; then 20860 { 20861 printf "%s\n" "/* $configure_input */" >&1 \ 20862 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20863 } >"$ac_tmp/config.h" \ 20864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20865 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20867printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 20868 else 20869 rm -f "$ac_file" 20870 mv "$ac_tmp/config.h" "$ac_file" \ 20871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20872 fi 20873 else 20874 printf "%s\n" "/* $configure_input */" >&1 \ 20875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20876 || as_fn_error $? "could not create -" "$LINENO" 5 20877 fi 20878# Compute "$ac_file"'s index in $config_headers. 20879_am_arg="$ac_file" 20880_am_stamp_count=1 20881for _am_header in $config_headers :; do 20882 case $_am_header in 20883 $_am_arg | $_am_arg:* ) 20884 break ;; 20885 * ) 20886 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20887 esac 20888done 20889echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20890$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20891 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20892 X"$_am_arg" : 'X\(//\)$' \| \ 20893 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20894printf "%s\n" X"$_am_arg" | 20895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20896 s//\1/ 20897 q 20898 } 20899 /^X\(\/\/\)[^/].*/{ 20900 s//\1/ 20901 q 20902 } 20903 /^X\(\/\/\)$/{ 20904 s//\1/ 20905 q 20906 } 20907 /^X\(\/\).*/{ 20908 s//\1/ 20909 q 20910 } 20911 s/.*/./; q'`/stamp-h$_am_stamp_count 20912 ;; 20913 20914 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20915printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 20916 ;; 20917 esac 20918 20919 20920 case $ac_file$ac_mode in 20921 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20922 # Older Autoconf quotes --file arguments for eval, but not when files 20923 # are listed without --file. Let's play safe and only enable the eval 20924 # if we detect the quoting. 20925 # TODO: see whether this extra hack can be removed once we start 20926 # requiring Autoconf 2.70 or later. 20927 case $CONFIG_FILES in #( 20928 *\'*) : 20929 eval set x "$CONFIG_FILES" ;; #( 20930 *) : 20931 set x $CONFIG_FILES ;; #( 20932 *) : 20933 ;; 20934esac 20935 shift 20936 # Used to flag and report bootstrapping failures. 20937 am_rc=0 20938 for am_mf 20939 do 20940 # Strip MF so we end up with the name of the file. 20941 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 20942 # Check whether this is an Automake generated Makefile which includes 20943 # dependency-tracking related rules and includes. 20944 # Grep'ing the whole file directly is not great: AIX grep has a line 20945 # limit of 2048, but all sed's we know have understand at least 4000. 20946 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20947 || continue 20948 am_dirpart=`$as_dirname -- "$am_mf" || 20949$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20950 X"$am_mf" : 'X\(//\)[^/]' \| \ 20951 X"$am_mf" : 'X\(//\)$' \| \ 20952 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20953printf "%s\n" X"$am_mf" | 20954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20955 s//\1/ 20956 q 20957 } 20958 /^X\(\/\/\)[^/].*/{ 20959 s//\1/ 20960 q 20961 } 20962 /^X\(\/\/\)$/{ 20963 s//\1/ 20964 q 20965 } 20966 /^X\(\/\).*/{ 20967 s//\1/ 20968 q 20969 } 20970 s/.*/./; q'` 20971 am_filepart=`$as_basename -- "$am_mf" || 20972$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20973 X"$am_mf" : 'X\(//\)$' \| \ 20974 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20975printf "%s\n" X/"$am_mf" | 20976 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20977 s//\1/ 20978 q 20979 } 20980 /^X\/\(\/\/\)$/{ 20981 s//\1/ 20982 q 20983 } 20984 /^X\/\(\/\).*/{ 20985 s//\1/ 20986 q 20987 } 20988 s/.*/./; q'` 20989 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20990 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20991 | $MAKE -f - am--depfiles" >&5 20992 (cd "$am_dirpart" \ 20993 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20994 | $MAKE -f - am--depfiles) >&5 2>&5 20995 ac_status=$? 20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20997 (exit $ac_status); } || am_rc=$? 20998 done 20999 if test $am_rc -ne 0; then 21000 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21001printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21002as_fn_error $? "Something went wrong bootstrapping makefile fragments 21003 for automatic dependency tracking. If GNU make was not used, consider 21004 re-running the configure script with MAKE=\"gmake\" (or whatever is 21005 necessary). You can also try re-running configure with the 21006 '--disable-dependency-tracking' option to at least be able to build 21007 the package (albeit without support for automatic dependency tracking). 21008See \`config.log' for more details" "$LINENO" 5; } 21009 fi 21010 { am_dirpart=; unset am_dirpart;} 21011 { am_filepart=; unset am_filepart;} 21012 { am_mf=; unset am_mf;} 21013 { am_rc=; unset am_rc;} 21014 rm -f conftest-deps.mk 21015} 21016 ;; 21017 "libtool":C) 21018 21019 # See if we are running on zsh, and set the options that allow our 21020 # commands through without removal of \ escapes. 21021 if test -n "${ZSH_VERSION+set}"; then 21022 setopt NO_GLOB_SUBST 21023 fi 21024 21025 cfgfile=${ofile}T 21026 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21027 $RM "$cfgfile" 21028 21029 cat <<_LT_EOF >> "$cfgfile" 21030#! $SHELL 21031# Generated automatically by $as_me ($PACKAGE) $VERSION 21032# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21033# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21034 21035# Provide generalized library-building support services. 21036# Written by Gordon Matzigkeit, 1996 21037 21038# Copyright (C) 2014 Free Software Foundation, Inc. 21039# This is free software; see the source for copying conditions. There is NO 21040# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21041 21042# GNU Libtool is free software; you can redistribute it and/or modify 21043# it under the terms of the GNU General Public License as published by 21044# the Free Software Foundation; either version 2 of of the License, or 21045# (at your option) any later version. 21046# 21047# As a special exception to the GNU General Public License, if you 21048# distribute this file as part of a program or library that is built 21049# using GNU Libtool, you may include this file under the same 21050# distribution terms that you use for the rest of that program. 21051# 21052# GNU Libtool is distributed in the hope that it will be useful, but 21053# WITHOUT ANY WARRANTY; without even the implied warranty of 21054# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21055# GNU General Public License for more details. 21056# 21057# You should have received a copy of the GNU General Public License 21058# along with this program. If not, see <http://www.gnu.org/licenses/>. 21059 21060 21061# The names of the tagged configurations supported by this script. 21062available_tags='' 21063 21064# Configured defaults for sys_lib_dlsearch_path munging. 21065: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21066 21067# ### BEGIN LIBTOOL CONFIG 21068 21069# Which release of libtool.m4 was used? 21070macro_version=$macro_version 21071macro_revision=$macro_revision 21072 21073# Whether or not to build shared libraries. 21074build_libtool_libs=$enable_shared 21075 21076# Whether or not to build static libraries. 21077build_old_libs=$enable_static 21078 21079# What type of objects to build. 21080pic_mode=$pic_mode 21081 21082# Whether or not to optimize for fast installation. 21083fast_install=$enable_fast_install 21084 21085# Shared archive member basename,for filename based shared library versioning on AIX. 21086shared_archive_member_spec=$shared_archive_member_spec 21087 21088# Shell to use when invoking shell scripts. 21089SHELL=$lt_SHELL 21090 21091# An echo program that protects backslashes. 21092ECHO=$lt_ECHO 21093 21094# The PATH separator for the build system. 21095PATH_SEPARATOR=$lt_PATH_SEPARATOR 21096 21097# The host system. 21098host_alias=$host_alias 21099host=$host 21100host_os=$host_os 21101 21102# The build system. 21103build_alias=$build_alias 21104build=$build 21105build_os=$build_os 21106 21107# A sed program that does not truncate output. 21108SED=$lt_SED 21109 21110# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21111Xsed="\$SED -e 1s/^X//" 21112 21113# A grep program that handles long lines. 21114GREP=$lt_GREP 21115 21116# An ERE matcher. 21117EGREP=$lt_EGREP 21118 21119# A literal string matcher. 21120FGREP=$lt_FGREP 21121 21122# A BSD- or MS-compatible name lister. 21123NM=$lt_NM 21124 21125# Whether we need soft or hard links. 21126LN_S=$lt_LN_S 21127 21128# What is the maximum length of a command? 21129max_cmd_len=$max_cmd_len 21130 21131# Object file suffix (normally "o"). 21132objext=$ac_objext 21133 21134# Executable file suffix (normally ""). 21135exeext=$exeext 21136 21137# whether the shell understands "unset". 21138lt_unset=$lt_unset 21139 21140# turn spaces into newlines. 21141SP2NL=$lt_lt_SP2NL 21142 21143# turn newlines into spaces. 21144NL2SP=$lt_lt_NL2SP 21145 21146# convert \$build file names to \$host format. 21147to_host_file_cmd=$lt_cv_to_host_file_cmd 21148 21149# convert \$build files to toolchain format. 21150to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21151 21152# A file(cmd) program that detects file types. 21153FILECMD=$lt_FILECMD 21154 21155# An object symbol dumper. 21156OBJDUMP=$lt_OBJDUMP 21157 21158# Method to check whether dependent libraries are shared objects. 21159deplibs_check_method=$lt_deplibs_check_method 21160 21161# Command to use when deplibs_check_method = "file_magic". 21162file_magic_cmd=$lt_file_magic_cmd 21163 21164# How to find potential files when deplibs_check_method = "file_magic". 21165file_magic_glob=$lt_file_magic_glob 21166 21167# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21168want_nocaseglob=$lt_want_nocaseglob 21169 21170# DLL creation program. 21171DLLTOOL=$lt_DLLTOOL 21172 21173# Command to associate shared and link libraries. 21174sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21175 21176# The archiver. 21177AR=$lt_AR 21178 21179# Flags to create an archive (by configure). 21180lt_ar_flags=$lt_ar_flags 21181 21182# Flags to create an archive. 21183AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21184 21185# How to feed a file listing to the archiver. 21186archiver_list_spec=$lt_archiver_list_spec 21187 21188# A symbol stripping program. 21189STRIP=$lt_STRIP 21190 21191# Commands used to install an old-style archive. 21192RANLIB=$lt_RANLIB 21193old_postinstall_cmds=$lt_old_postinstall_cmds 21194old_postuninstall_cmds=$lt_old_postuninstall_cmds 21195 21196# Whether to use a lock for old archive extraction. 21197lock_old_archive_extraction=$lock_old_archive_extraction 21198 21199# A C compiler. 21200LTCC=$lt_CC 21201 21202# LTCC compiler flags. 21203LTCFLAGS=$lt_CFLAGS 21204 21205# Take the output of nm and produce a listing of raw symbols and C names. 21206global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21207 21208# Transform the output of nm in a proper C declaration. 21209global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21210 21211# Transform the output of nm into a list of symbols to manually relocate. 21212global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21213 21214# Transform the output of nm in a C name address pair. 21215global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21216 21217# Transform the output of nm in a C name address pair when lib prefix is needed. 21218global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21219 21220# The name lister interface. 21221nm_interface=$lt_lt_cv_nm_interface 21222 21223# Specify filename containing input files for \$NM. 21224nm_file_list_spec=$lt_nm_file_list_spec 21225 21226# The root where to search for dependent libraries,and where our libraries should be installed. 21227lt_sysroot=$lt_sysroot 21228 21229# Command to truncate a binary pipe. 21230lt_truncate_bin=$lt_lt_cv_truncate_bin 21231 21232# The name of the directory that contains temporary libtool files. 21233objdir=$objdir 21234 21235# Used to examine libraries when file_magic_cmd begins with "file". 21236MAGIC_CMD=$MAGIC_CMD 21237 21238# Must we lock files when doing compilation? 21239need_locks=$lt_need_locks 21240 21241# Manifest tool. 21242MANIFEST_TOOL=$lt_MANIFEST_TOOL 21243 21244# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21245DSYMUTIL=$lt_DSYMUTIL 21246 21247# Tool to change global to local symbols on Mac OS X. 21248NMEDIT=$lt_NMEDIT 21249 21250# Tool to manipulate fat objects and archives on Mac OS X. 21251LIPO=$lt_LIPO 21252 21253# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21254OTOOL=$lt_OTOOL 21255 21256# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21257OTOOL64=$lt_OTOOL64 21258 21259# Old archive suffix (normally "a"). 21260libext=$libext 21261 21262# Shared library suffix (normally ".so"). 21263shrext_cmds=$lt_shrext_cmds 21264 21265# The commands to extract the exported symbol list from a shared archive. 21266extract_expsyms_cmds=$lt_extract_expsyms_cmds 21267 21268# Variables whose values should be saved in libtool wrapper scripts and 21269# restored at link time. 21270variables_saved_for_relink=$lt_variables_saved_for_relink 21271 21272# Do we need the "lib" prefix for modules? 21273need_lib_prefix=$need_lib_prefix 21274 21275# Do we need a version for libraries? 21276need_version=$need_version 21277 21278# Library versioning type. 21279version_type=$version_type 21280 21281# Shared library runtime path variable. 21282runpath_var=$runpath_var 21283 21284# Shared library path variable. 21285shlibpath_var=$shlibpath_var 21286 21287# Is shlibpath searched before the hard-coded library search path? 21288shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21289 21290# Format of library name prefix. 21291libname_spec=$lt_libname_spec 21292 21293# List of archive names. First name is the real one, the rest are links. 21294# The last name is the one that the linker finds with -lNAME 21295library_names_spec=$lt_library_names_spec 21296 21297# The coded name of the library, if different from the real name. 21298soname_spec=$lt_soname_spec 21299 21300# Permission mode override for installation of shared libraries. 21301install_override_mode=$lt_install_override_mode 21302 21303# Command to use after installation of a shared archive. 21304postinstall_cmds=$lt_postinstall_cmds 21305 21306# Command to use after uninstallation of a shared archive. 21307postuninstall_cmds=$lt_postuninstall_cmds 21308 21309# Commands used to finish a libtool library installation in a directory. 21310finish_cmds=$lt_finish_cmds 21311 21312# As "finish_cmds", except a single script fragment to be evaled but 21313# not shown. 21314finish_eval=$lt_finish_eval 21315 21316# Whether we should hardcode library paths into libraries. 21317hardcode_into_libs=$hardcode_into_libs 21318 21319# Compile-time system search path for libraries. 21320sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21321 21322# Detected run-time system search path for libraries. 21323sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21324 21325# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21326configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21327 21328# Whether dlopen is supported. 21329dlopen_support=$enable_dlopen 21330 21331# Whether dlopen of programs is supported. 21332dlopen_self=$enable_dlopen_self 21333 21334# Whether dlopen of statically linked programs is supported. 21335dlopen_self_static=$enable_dlopen_self_static 21336 21337# Commands to strip libraries. 21338old_striplib=$lt_old_striplib 21339striplib=$lt_striplib 21340 21341 21342# The linker used to build libraries. 21343LD=$lt_LD 21344 21345# How to create reloadable object files. 21346reload_flag=$lt_reload_flag 21347reload_cmds=$lt_reload_cmds 21348 21349# Commands used to build an old-style archive. 21350old_archive_cmds=$lt_old_archive_cmds 21351 21352# A language specific compiler. 21353CC=$lt_compiler 21354 21355# Is the compiler the GNU compiler? 21356with_gcc=$GCC 21357 21358# Compiler flag to turn off builtin functions. 21359no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21360 21361# Additional compiler flags for building library objects. 21362pic_flag=$lt_lt_prog_compiler_pic 21363 21364# How to pass a linker flag through the compiler. 21365wl=$lt_lt_prog_compiler_wl 21366 21367# Compiler flag to prevent dynamic linking. 21368link_static_flag=$lt_lt_prog_compiler_static 21369 21370# Does compiler simultaneously support -c and -o options? 21371compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21372 21373# Whether or not to add -lc for building shared libraries. 21374build_libtool_need_lc=$archive_cmds_need_lc 21375 21376# Whether or not to disallow shared libs when runtime libs are static. 21377allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21378 21379# Compiler flag to allow reflexive dlopens. 21380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21381 21382# Compiler flag to generate shared objects directly from archives. 21383whole_archive_flag_spec=$lt_whole_archive_flag_spec 21384 21385# Whether the compiler copes with passing no objects directly. 21386compiler_needs_object=$lt_compiler_needs_object 21387 21388# Create an old-style archive from a shared archive. 21389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21390 21391# Create a temporary old-style archive to link instead of a shared archive. 21392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21393 21394# Commands used to build a shared archive. 21395archive_cmds=$lt_archive_cmds 21396archive_expsym_cmds=$lt_archive_expsym_cmds 21397 21398# Commands used to build a loadable module if different from building 21399# a shared archive. 21400module_cmds=$lt_module_cmds 21401module_expsym_cmds=$lt_module_expsym_cmds 21402 21403# Whether we are building with GNU ld or not. 21404with_gnu_ld=$lt_with_gnu_ld 21405 21406# Flag that allows shared libraries with undefined symbols to be built. 21407allow_undefined_flag=$lt_allow_undefined_flag 21408 21409# Flag that enforces no undefined symbols. 21410no_undefined_flag=$lt_no_undefined_flag 21411 21412# Flag to hardcode \$libdir into a binary during linking. 21413# This must work even if \$libdir does not exist 21414hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21415 21416# Whether we need a single "-rpath" flag with a separated argument. 21417hardcode_libdir_separator=$lt_hardcode_libdir_separator 21418 21419# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21420# DIR into the resulting binary. 21421hardcode_direct=$hardcode_direct 21422 21423# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21424# DIR into the resulting binary and the resulting library dependency is 21425# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21426# library is relocated. 21427hardcode_direct_absolute=$hardcode_direct_absolute 21428 21429# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21430# into the resulting binary. 21431hardcode_minus_L=$hardcode_minus_L 21432 21433# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21434# into the resulting binary. 21435hardcode_shlibpath_var=$hardcode_shlibpath_var 21436 21437# Set to "yes" if building a shared library automatically hardcodes DIR 21438# into the library and all subsequent libraries and executables linked 21439# against it. 21440hardcode_automatic=$hardcode_automatic 21441 21442# Set to yes if linker adds runtime paths of dependent libraries 21443# to runtime path list. 21444inherit_rpath=$inherit_rpath 21445 21446# Whether libtool must link a program against all its dependency libraries. 21447link_all_deplibs=$link_all_deplibs 21448 21449# Set to "yes" if exported symbols are required. 21450always_export_symbols=$always_export_symbols 21451 21452# The commands to list exported symbols. 21453export_symbols_cmds=$lt_export_symbols_cmds 21454 21455# Symbols that should not be listed in the preloaded symbols. 21456exclude_expsyms=$lt_exclude_expsyms 21457 21458# Symbols that must always be exported. 21459include_expsyms=$lt_include_expsyms 21460 21461# Commands necessary for linking programs (against libraries) with templates. 21462prelink_cmds=$lt_prelink_cmds 21463 21464# Commands necessary for finishing linking programs. 21465postlink_cmds=$lt_postlink_cmds 21466 21467# Specify filename containing input files. 21468file_list_spec=$lt_file_list_spec 21469 21470# How to hardcode a shared library path into an executable. 21471hardcode_action=$hardcode_action 21472 21473# ### END LIBTOOL CONFIG 21474 21475_LT_EOF 21476 21477 cat <<'_LT_EOF' >> "$cfgfile" 21478 21479# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21480 21481# func_munge_path_list VARIABLE PATH 21482# ----------------------------------- 21483# VARIABLE is name of variable containing _space_ separated list of 21484# directories to be munged by the contents of PATH, which is string 21485# having a format: 21486# "DIR[:DIR]:" 21487# string "DIR[ DIR]" will be prepended to VARIABLE 21488# ":DIR[:DIR]" 21489# string "DIR[ DIR]" will be appended to VARIABLE 21490# "DIRP[:DIRP]::[DIRA:]DIRA" 21491# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21492# "DIRA[ DIRA]" will be appended to VARIABLE 21493# "DIR[:DIR]" 21494# VARIABLE will be replaced by "DIR[ DIR]" 21495func_munge_path_list () 21496{ 21497 case x$2 in 21498 x) 21499 ;; 21500 *:) 21501 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21502 ;; 21503 x:*) 21504 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21505 ;; 21506 *::*) 21507 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21508 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21509 ;; 21510 *) 21511 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21512 ;; 21513 esac 21514} 21515 21516 21517# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21518func_cc_basename () 21519{ 21520 for cc_temp in $*""; do 21521 case $cc_temp in 21522 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21523 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21524 \-*) ;; 21525 *) break;; 21526 esac 21527 done 21528 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21529} 21530 21531 21532# ### END FUNCTIONS SHARED WITH CONFIGURE 21533 21534_LT_EOF 21535 21536 case $host_os in 21537 aix3*) 21538 cat <<\_LT_EOF >> "$cfgfile" 21539# AIX sometimes has problems with the GCC collect2 program. For some 21540# reason, if we set the COLLECT_NAMES environment variable, the problems 21541# vanish in a puff of smoke. 21542if test set != "${COLLECT_NAMES+set}"; then 21543 COLLECT_NAMES= 21544 export COLLECT_NAMES 21545fi 21546_LT_EOF 21547 ;; 21548 esac 21549 21550 21551 21552ltmain=$ac_aux_dir/ltmain.sh 21553 21554 21555 # We use sed instead of cat because bash on DJGPP gets confused if 21556 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21557 # text mode, it properly converts lines to CR/LF. This bash problem 21558 # is reportedly fixed, but why not run on old versions too? 21559 $SED '$q' "$ltmain" >> "$cfgfile" \ 21560 || (rm -f "$cfgfile"; exit 1) 21561 21562 mv -f "$cfgfile" "$ofile" || 21563 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21564 chmod +x "$ofile" 21565 21566 ;; 21567 21568 esac 21569done # for ac_tag 21570 21571 21572as_fn_exit 0 21573_ACEOF 21574ac_clean_files=$ac_clean_files_save 21575 21576test $ac_write_fail = 0 || 21577 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21578 21579 21580# configure is writing to config.log, and then calls config.status. 21581# config.status does its own redirection, appending to config.log. 21582# Unfortunately, on DOS this fails, as config.log is still kept open 21583# by configure, so config.status won't be able to write to it; its 21584# output is simply discarded. So we exec the FD to /dev/null, 21585# effectively closing config.log, so it can be properly (re)opened and 21586# appended to by config.status. When coming back to configure, we 21587# need to make the FD available again. 21588if test "$no_create" != yes; then 21589 ac_cs_success=: 21590 ac_config_status_args= 21591 test "$silent" = yes && 21592 ac_config_status_args="$ac_config_status_args --quiet" 21593 exec 5>/dev/null 21594 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21595 exec 5>>config.log 21596 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21597 # would make configure fail if this is the last instruction. 21598 $ac_cs_success || as_fn_exit 1 21599fi 21600if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21602printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21603fi 21604 21605 21606