configure revision da1f2d5d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libFS 1.0.9. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/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/libfs/-/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='libFS' 624PACKAGE_TARNAME='libFS' 625PACKAGE_VERSION='1.0.9' 626PACKAGE_STRING='libFS 1.0.9' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfs/-/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 666MAKE_LINT_LIB_FALSE 667MAKE_LINT_LIB_TRUE 668LINTLIB 669LINT_FALSE 670LINT_TRUE 671LINT_FLAGS 672LINT 673LIBOBJS 674FS_LIBS 675FS_CFLAGS 676XTMALLOC_ZERO_CFLAGS 677XMALLOC_ZERO_CFLAGS 678MALLOC_ZERO_CFLAGS 679MAN_SUBSTS 680XORG_MAN_PAGE 681ADMIN_MAN_DIR 682DRIVER_MAN_DIR 683MISC_MAN_DIR 684FILE_MAN_DIR 685LIB_MAN_DIR 686APP_MAN_DIR 687ADMIN_MAN_SUFFIX 688DRIVER_MAN_SUFFIX 689MISC_MAN_SUFFIX 690FILE_MAN_SUFFIX 691LIB_MAN_SUFFIX 692APP_MAN_SUFFIX 693INSTALL_CMD 694PKG_CONFIG_LIBDIR 695PKG_CONFIG_PATH 696PKG_CONFIG 697CHANGELOG_CMD 698STRICT_CFLAGS 699CWARNFLAGS 700BASE_CFLAGS 701LT_SYS_LIBRARY_PATH 702OTOOL64 703OTOOL 704LIPO 705NMEDIT 706DSYMUTIL 707MANIFEST_TOOL 708RANLIB 709ac_ct_AR 710AR 711DLLTOOL 712OBJDUMP 713FILECMD 714LN_S 715NM 716ac_ct_DUMPBIN 717DUMPBIN 718LD 719FGREP 720EGREP 721GREP 722SED 723host_os 724host_vendor 725host_cpu 726host 727build_os 728build_vendor 729build_cpu 730build 731LIBTOOL 732am__fastdepCC_FALSE 733am__fastdepCC_TRUE 734CCDEPMODE 735am__nodep 736AMDEPBACKSLASH 737AMDEP_FALSE 738AMDEP_TRUE 739am__include 740DEPDIR 741OBJEXT 742EXEEXT 743ac_ct_CC 744CPPFLAGS 745LDFLAGS 746CFLAGS 747CC 748AM_BACKSLASH 749AM_DEFAULT_VERBOSITY 750AM_DEFAULT_V 751AM_V 752CSCOPE 753ETAGS 754CTAGS 755am__untar 756am__tar 757AMTAR 758am__leading_dot 759SET_MAKE 760AWK 761mkdir_p 762MKDIR_P 763INSTALL_STRIP_PROGRAM 764STRIP 765install_sh 766MAKEINFO 767AUTOHEADER 768AUTOMAKE 769AUTOCONF 770ACLOCAL 771VERSION 772PACKAGE 773CYGPATH_W 774am__isrc 775INSTALL_DATA 776INSTALL_SCRIPT 777INSTALL_PROGRAM 778target_alias 779host_alias 780build_alias 781LIBS 782ECHO_T 783ECHO_N 784ECHO_C 785DEFS 786mandir 787localedir 788libdir 789psdir 790pdfdir 791dvidir 792htmldir 793infodir 794docdir 795oldincludedir 796includedir 797runstatedir 798localstatedir 799sharedstatedir 800sysconfdir 801datadir 802datarootdir 803libexecdir 804sbindir 805bindir 806program_transform_name 807prefix 808exec_prefix 809PACKAGE_URL 810PACKAGE_BUGREPORT 811PACKAGE_STRING 812PACKAGE_VERSION 813PACKAGE_TARNAME 814PACKAGE_NAME 815PATH_SEPARATOR 816SHELL 817am__quote' 818ac_subst_files='' 819ac_user_opts=' 820enable_option_checking 821enable_silent_rules 822enable_dependency_tracking 823enable_shared 824enable_static 825with_pic 826enable_fast_install 827with_aix_soname 828with_gnu_ld 829with_sysroot 830enable_libtool_lock 831enable_selective_werror 832enable_strict_compilation 833enable_malloc0returnsnull 834enable_unix_transport 835enable_tcp_transport 836enable_ipv6 837enable_local_transport 838with_lint 839enable_lint_library 840' 841 ac_precious_vars='build_alias 842host_alias 843target_alias 844CC 845CFLAGS 846LDFLAGS 847LIBS 848CPPFLAGS 849LT_SYS_LIBRARY_PATH 850PKG_CONFIG 851PKG_CONFIG_PATH 852PKG_CONFIG_LIBDIR 853FS_CFLAGS 854FS_LIBS 855LINT 856LINT_FLAGS' 857 858 859# Initialize some variables set by options. 860ac_init_help= 861ac_init_version=false 862ac_unrecognized_opts= 863ac_unrecognized_sep= 864# The variables have the same names as the options, with 865# dashes changed to underlines. 866cache_file=/dev/null 867exec_prefix=NONE 868no_create= 869no_recursion= 870prefix=NONE 871program_prefix=NONE 872program_suffix=NONE 873program_transform_name=s,x,x, 874silent= 875site= 876srcdir= 877verbose= 878x_includes=NONE 879x_libraries=NONE 880 881# Installation directory options. 882# These are left unexpanded so users can "make install exec_prefix=/foo" 883# and all the variables that are supposed to be based on exec_prefix 884# by default will actually change. 885# Use braces instead of parens because sh, perl, etc. also accept them. 886# (The list follows the same order as the GNU Coding Standards.) 887bindir='${exec_prefix}/bin' 888sbindir='${exec_prefix}/sbin' 889libexecdir='${exec_prefix}/libexec' 890datarootdir='${prefix}/share' 891datadir='${datarootdir}' 892sysconfdir='${prefix}/etc' 893sharedstatedir='${prefix}/com' 894localstatedir='${prefix}/var' 895runstatedir='${localstatedir}/run' 896includedir='${prefix}/include' 897oldincludedir='/usr/include' 898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 899infodir='${datarootdir}/info' 900htmldir='${docdir}' 901dvidir='${docdir}' 902pdfdir='${docdir}' 903psdir='${docdir}' 904libdir='${exec_prefix}/lib' 905localedir='${datarootdir}/locale' 906mandir='${datarootdir}/man' 907 908ac_prev= 909ac_dashdash= 910for ac_option 911do 912 # If the previous option needs an argument, assign it. 913 if test -n "$ac_prev"; then 914 eval $ac_prev=\$ac_option 915 ac_prev= 916 continue 917 fi 918 919 case $ac_option in 920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 921 *=) ac_optarg= ;; 922 *) ac_optarg=yes ;; 923 esac 924 925 case $ac_dashdash$ac_option in 926 --) 927 ac_dashdash=yes ;; 928 929 -bindir | --bindir | --bindi | --bind | --bin | --bi) 930 ac_prev=bindir ;; 931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 932 bindir=$ac_optarg ;; 933 934 -build | --build | --buil | --bui | --bu) 935 ac_prev=build_alias ;; 936 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 937 build_alias=$ac_optarg ;; 938 939 -cache-file | --cache-file | --cache-fil | --cache-fi \ 940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 941 ac_prev=cache_file ;; 942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 944 cache_file=$ac_optarg ;; 945 946 --config-cache | -C) 947 cache_file=config.cache ;; 948 949 -datadir | --datadir | --datadi | --datad) 950 ac_prev=datadir ;; 951 -datadir=* | --datadir=* | --datadi=* | --datad=*) 952 datadir=$ac_optarg ;; 953 954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 955 | --dataroo | --dataro | --datar) 956 ac_prev=datarootdir ;; 957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 959 datarootdir=$ac_optarg ;; 960 961 -disable-* | --disable-*) 962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 963 # Reject names that are not valid shell variable names. 964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 as_fn_error $? "invalid feature name: \`$ac_useropt'" 966 ac_useropt_orig=$ac_useropt 967 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 968 case $ac_user_opts in 969 *" 970"enable_$ac_useropt" 971"*) ;; 972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 973 ac_unrecognized_sep=', ';; 974 esac 975 eval enable_$ac_useropt=no ;; 976 977 -docdir | --docdir | --docdi | --doc | --do) 978 ac_prev=docdir ;; 979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 980 docdir=$ac_optarg ;; 981 982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 983 ac_prev=dvidir ;; 984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 985 dvidir=$ac_optarg ;; 986 987 -enable-* | --enable-*) 988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 989 # Reject names that are not valid shell variable names. 990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 991 as_fn_error $? "invalid feature name: \`$ac_useropt'" 992 ac_useropt_orig=$ac_useropt 993 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 994 case $ac_user_opts in 995 *" 996"enable_$ac_useropt" 997"*) ;; 998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 999 ac_unrecognized_sep=', ';; 1000 esac 1001 eval enable_$ac_useropt=\$ac_optarg ;; 1002 1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1005 | --exec | --exe | --ex) 1006 ac_prev=exec_prefix ;; 1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1009 | --exec=* | --exe=* | --ex=*) 1010 exec_prefix=$ac_optarg ;; 1011 1012 -gas | --gas | --ga | --g) 1013 # Obsolete; use --with-gas. 1014 with_gas=yes ;; 1015 1016 -help | --help | --hel | --he | -h) 1017 ac_init_help=long ;; 1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1019 ac_init_help=recursive ;; 1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1021 ac_init_help=short ;; 1022 1023 -host | --host | --hos | --ho) 1024 ac_prev=host_alias ;; 1025 -host=* | --host=* | --hos=* | --ho=*) 1026 host_alias=$ac_optarg ;; 1027 1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1029 ac_prev=htmldir ;; 1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1031 | --ht=*) 1032 htmldir=$ac_optarg ;; 1033 1034 -includedir | --includedir | --includedi | --included | --include \ 1035 | --includ | --inclu | --incl | --inc) 1036 ac_prev=includedir ;; 1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1038 | --includ=* | --inclu=* | --incl=* | --inc=*) 1039 includedir=$ac_optarg ;; 1040 1041 -infodir | --infodir | --infodi | --infod | --info | --inf) 1042 ac_prev=infodir ;; 1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1044 infodir=$ac_optarg ;; 1045 1046 -libdir | --libdir | --libdi | --libd) 1047 ac_prev=libdir ;; 1048 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1049 libdir=$ac_optarg ;; 1050 1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1052 | --libexe | --libex | --libe) 1053 ac_prev=libexecdir ;; 1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1055 | --libexe=* | --libex=* | --libe=*) 1056 libexecdir=$ac_optarg ;; 1057 1058 -localedir | --localedir | --localedi | --localed | --locale) 1059 ac_prev=localedir ;; 1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1061 localedir=$ac_optarg ;; 1062 1063 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1064 | --localstate | --localstat | --localsta | --localst | --locals) 1065 ac_prev=localstatedir ;; 1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1068 localstatedir=$ac_optarg ;; 1069 1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1071 ac_prev=mandir ;; 1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1073 mandir=$ac_optarg ;; 1074 1075 -nfp | --nfp | --nf) 1076 # Obsolete; use --without-fp. 1077 with_fp=no ;; 1078 1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1080 | --no-cr | --no-c | -n) 1081 no_create=yes ;; 1082 1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1085 no_recursion=yes ;; 1086 1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1089 | --oldin | --oldi | --old | --ol | --o) 1090 ac_prev=oldincludedir ;; 1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1094 oldincludedir=$ac_optarg ;; 1095 1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1097 ac_prev=prefix ;; 1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1099 prefix=$ac_optarg ;; 1100 1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1102 | --program-pre | --program-pr | --program-p) 1103 ac_prev=program_prefix ;; 1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1106 program_prefix=$ac_optarg ;; 1107 1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1109 | --program-suf | --program-su | --program-s) 1110 ac_prev=program_suffix ;; 1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1113 program_suffix=$ac_optarg ;; 1114 1115 -program-transform-name | --program-transform-name \ 1116 | --program-transform-nam | --program-transform-na \ 1117 | --program-transform-n | --program-transform- \ 1118 | --program-transform | --program-transfor \ 1119 | --program-transfo | --program-transf \ 1120 | --program-trans | --program-tran \ 1121 | --progr-tra | --program-tr | --program-t) 1122 ac_prev=program_transform_name ;; 1123 -program-transform-name=* | --program-transform-name=* \ 1124 | --program-transform-nam=* | --program-transform-na=* \ 1125 | --program-transform-n=* | --program-transform-=* \ 1126 | --program-transform=* | --program-transfor=* \ 1127 | --program-transfo=* | --program-transf=* \ 1128 | --program-trans=* | --program-tran=* \ 1129 | --progr-tra=* | --program-tr=* | --program-t=*) 1130 program_transform_name=$ac_optarg ;; 1131 1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1133 ac_prev=pdfdir ;; 1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1135 pdfdir=$ac_optarg ;; 1136 1137 -psdir | --psdir | --psdi | --psd | --ps) 1138 ac_prev=psdir ;; 1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1140 psdir=$ac_optarg ;; 1141 1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1143 | -silent | --silent | --silen | --sile | --sil) 1144 silent=yes ;; 1145 1146 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1147 | --runstate | --runstat | --runsta | --runst | --runs \ 1148 | --run | --ru | --r) 1149 ac_prev=runstatedir ;; 1150 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1151 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1152 | --run=* | --ru=* | --r=*) 1153 runstatedir=$ac_optarg ;; 1154 1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1156 ac_prev=sbindir ;; 1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1158 | --sbi=* | --sb=*) 1159 sbindir=$ac_optarg ;; 1160 1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1163 | --sharedst | --shareds | --shared | --share | --shar \ 1164 | --sha | --sh) 1165 ac_prev=sharedstatedir ;; 1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1169 | --sha=* | --sh=*) 1170 sharedstatedir=$ac_optarg ;; 1171 1172 -site | --site | --sit) 1173 ac_prev=site ;; 1174 -site=* | --site=* | --sit=*) 1175 site=$ac_optarg ;; 1176 1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1178 ac_prev=srcdir ;; 1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1180 srcdir=$ac_optarg ;; 1181 1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1183 | --syscon | --sysco | --sysc | --sys | --sy) 1184 ac_prev=sysconfdir ;; 1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1187 sysconfdir=$ac_optarg ;; 1188 1189 -target | --target | --targe | --targ | --tar | --ta | --t) 1190 ac_prev=target_alias ;; 1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1192 target_alias=$ac_optarg ;; 1193 1194 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1195 verbose=yes ;; 1196 1197 -version | --version | --versio | --versi | --vers | -V) 1198 ac_init_version=: ;; 1199 1200 -with-* | --with-*) 1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1202 # Reject names that are not valid shell variable names. 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1204 as_fn_error $? "invalid package name: \`$ac_useropt'" 1205 ac_useropt_orig=$ac_useropt 1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1207 case $ac_user_opts in 1208 *" 1209"with_$ac_useropt" 1210"*) ;; 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1212 ac_unrecognized_sep=', ';; 1213 esac 1214 eval with_$ac_useropt=\$ac_optarg ;; 1215 1216 -without-* | --without-*) 1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1220 as_fn_error $? "invalid package name: \`$ac_useropt'" 1221 ac_useropt_orig=$ac_useropt 1222 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1223 case $ac_user_opts in 1224 *" 1225"with_$ac_useropt" 1226"*) ;; 1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1228 ac_unrecognized_sep=', ';; 1229 esac 1230 eval with_$ac_useropt=no ;; 1231 1232 --x) 1233 # Obsolete; use --with-x. 1234 with_x=yes ;; 1235 1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1237 | --x-incl | --x-inc | --x-in | --x-i) 1238 ac_prev=x_includes ;; 1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1241 x_includes=$ac_optarg ;; 1242 1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1245 ac_prev=x_libraries ;; 1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1248 x_libraries=$ac_optarg ;; 1249 1250 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1251Try \`$0 --help' for more information" 1252 ;; 1253 1254 *=*) 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1256 # Reject names that are not valid shell variable names. 1257 case $ac_envvar in #( 1258 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1260 esac 1261 eval $ac_envvar=\$ac_optarg 1262 export $ac_envvar ;; 1263 1264 *) 1265 # FIXME: should be removed in autoconf 3.0. 1266 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1268 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1270 ;; 1271 1272 esac 1273done 1274 1275if test -n "$ac_prev"; then 1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1277 as_fn_error $? "missing argument to $ac_option" 1278fi 1279 1280if test -n "$ac_unrecognized_opts"; then 1281 case $enable_option_checking in 1282 no) ;; 1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1284 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1285 esac 1286fi 1287 1288# Check all directory arguments for consistency. 1289for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1290 datadir sysconfdir sharedstatedir localstatedir includedir \ 1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1292 libdir localedir mandir runstatedir 1293do 1294 eval ac_val=\$$ac_var 1295 # Remove trailing slashes. 1296 case $ac_val in 1297 */ ) 1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1299 eval $ac_var=\$ac_val;; 1300 esac 1301 # Be sure to have absolute directory names. 1302 case $ac_val in 1303 [\\/$]* | ?:[\\/]* ) continue;; 1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1305 esac 1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1307done 1308 1309# There might be people who depend on the old broken behavior: `$host' 1310# used to hold the argument of --host etc. 1311# FIXME: To remove some day. 1312build=$build_alias 1313host=$host_alias 1314target=$target_alias 1315 1316# FIXME: To remove some day. 1317if test "x$host_alias" != x; then 1318 if test "x$build_alias" = x; then 1319 cross_compiling=maybe 1320 elif test "x$build_alias" != "x$host_alias"; then 1321 cross_compiling=yes 1322 fi 1323fi 1324 1325ac_tool_prefix= 1326test -n "$host_alias" && ac_tool_prefix=$host_alias- 1327 1328test "$silent" = yes && exec 6>/dev/null 1329 1330 1331ac_pwd=`pwd` && test -n "$ac_pwd" && 1332ac_ls_di=`ls -di .` && 1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1334 as_fn_error $? "working directory cannot be determined" 1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1336 as_fn_error $? "pwd does not report name of working directory" 1337 1338 1339# Find the source files, if location was not specified. 1340if test -z "$srcdir"; then 1341 ac_srcdir_defaulted=yes 1342 # Try the directory containing this script, then the parent directory. 1343 ac_confdir=`$as_dirname -- "$as_myself" || 1344$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1345 X"$as_myself" : 'X\(//\)[^/]' \| \ 1346 X"$as_myself" : 'X\(//\)$' \| \ 1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1348printf "%s\n" X"$as_myself" | 1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\/\)[^/].*/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\).*/{ 1362 s//\1/ 1363 q 1364 } 1365 s/.*/./; q'` 1366 srcdir=$ac_confdir 1367 if test ! -r "$srcdir/$ac_unique_file"; then 1368 srcdir=.. 1369 fi 1370else 1371 ac_srcdir_defaulted=no 1372fi 1373if test ! -r "$srcdir/$ac_unique_file"; then 1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1376fi 1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1378ac_abs_confdir=`( 1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1380 pwd)` 1381# When building in place, set srcdir=. 1382if test "$ac_abs_confdir" = "$ac_pwd"; then 1383 srcdir=. 1384fi 1385# Remove unnecessary trailing slashes from srcdir. 1386# Double slashes in file names in object file debugging info 1387# mess up M-x gdb in Emacs. 1388case $srcdir in 1389*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1390esac 1391for ac_var in $ac_precious_vars; do 1392 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1393 eval ac_env_${ac_var}_value=\$${ac_var} 1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1396done 1397 1398# 1399# Report the --help message. 1400# 1401if test "$ac_init_help" = "long"; then 1402 # Omit some internal or obsolete options to make the list less imposing. 1403 # This message is too long to be a string in the A/UX 3.1 sh. 1404 cat <<_ACEOF 1405\`configure' configures libFS 1.0.9 to adapt to many kinds of systems. 1406 1407Usage: $0 [OPTION]... [VAR=VALUE]... 1408 1409To assign environment variables (e.g., CC, CFLAGS...), specify them as 1410VAR=VALUE. See below for descriptions of some of the useful variables. 1411 1412Defaults for the options are specified in brackets. 1413 1414Configuration: 1415 -h, --help display this help and exit 1416 --help=short display options specific to this package 1417 --help=recursive display the short help of all the included packages 1418 -V, --version display version information and exit 1419 -q, --quiet, --silent do not print \`checking ...' messages 1420 --cache-file=FILE cache test results in FILE [disabled] 1421 -C, --config-cache alias for \`--cache-file=config.cache' 1422 -n, --no-create do not create output files 1423 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1424 1425Installation directories: 1426 --prefix=PREFIX install architecture-independent files in PREFIX 1427 [$ac_default_prefix] 1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1429 [PREFIX] 1430 1431By default, \`make install' will install all the files in 1432\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1433an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1434for instance \`--prefix=\$HOME'. 1435 1436For better control, use the options below. 1437 1438Fine tuning of the installation directories: 1439 --bindir=DIR user executables [EPREFIX/bin] 1440 --sbindir=DIR system admin executables [EPREFIX/sbin] 1441 --libexecdir=DIR program executables [EPREFIX/libexec] 1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1445 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1446 --libdir=DIR object code libraries [EPREFIX/lib] 1447 --includedir=DIR C header files [PREFIX/include] 1448 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1451 --infodir=DIR info documentation [DATAROOTDIR/info] 1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1453 --mandir=DIR man documentation [DATAROOTDIR/man] 1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libFS] 1455 --htmldir=DIR html documentation [DOCDIR] 1456 --dvidir=DIR dvi documentation [DOCDIR] 1457 --pdfdir=DIR pdf documentation [DOCDIR] 1458 --psdir=DIR ps documentation [DOCDIR] 1459_ACEOF 1460 1461 cat <<\_ACEOF 1462 1463Program names: 1464 --program-prefix=PREFIX prepend PREFIX to installed program names 1465 --program-suffix=SUFFIX append SUFFIX to installed program names 1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1467 1468System types: 1469 --build=BUILD configure for building on BUILD [guessed] 1470 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1471_ACEOF 1472fi 1473 1474if test -n "$ac_init_help"; then 1475 case $ac_init_help in 1476 short | recursive ) echo "Configuration of libFS 1.0.9:";; 1477 esac 1478 cat <<\_ACEOF 1479 1480Optional Features: 1481 --disable-option-checking ignore unrecognized --enable/--with options 1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1484 --enable-silent-rules less verbose build output (undo: "make V=1") 1485 --disable-silent-rules verbose build output (undo: "make V=0") 1486 --enable-dependency-tracking 1487 do not reject slow dependency extractors 1488 --disable-dependency-tracking 1489 speeds up one-time build 1490 --enable-shared[=PKGS] build shared libraries [default=yes] 1491 --enable-static[=PKGS] build static libraries [default=yes] 1492 --enable-fast-install[=PKGS] 1493 optimize for fast installation [default=yes] 1494 --disable-libtool-lock avoid locking (might break parallel builds) 1495 --disable-selective-werror 1496 Turn off selective compiler errors. (default: 1497 enabled) 1498 --enable-strict-compilation 1499 Enable all warnings from compiler and make them 1500 errors (default: disabled) 1501 --enable-malloc0returnsnull 1502 malloc(0) returns NULL (default: auto) 1503 --enable-unix-transport Enable UNIX domain socket transport 1504 --enable-tcp-transport Enable TCP socket transport 1505 --enable-ipv6 Enable IPv6 support 1506 --enable-local-transport 1507 Enable os-specific local transport 1508 --enable-lint-library Create lint library (default: disabled) 1509 1510Optional Packages: 1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1513 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1514 both] 1515 --with-aix-soname=aix|svr4|both 1516 shared library versioning (aka "SONAME") variant to 1517 provide on AIX, [default=aix]. 1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1519 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1520 compiler's sysroot if not specified). 1521 --with-lint Use a lint-style source code checker (default: 1522 disabled) 1523 1524Some influential environment variables: 1525 CC C compiler command 1526 CFLAGS C compiler flags 1527 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1528 nonstandard directory <lib dir> 1529 LIBS libraries to pass to the linker, e.g. -l<library> 1530 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1531 you have headers in a nonstandard directory <include dir> 1532 LT_SYS_LIBRARY_PATH 1533 User-defined run-time library search path. 1534 PKG_CONFIG path to pkg-config utility 1535 PKG_CONFIG_PATH 1536 directories to add to pkg-config's search path 1537 PKG_CONFIG_LIBDIR 1538 path overriding pkg-config's built-in search path 1539 FS_CFLAGS C compiler flags for FS, overriding pkg-config 1540 FS_LIBS linker flags for FS, overriding pkg-config 1541 LINT Path to a lint-style command 1542 LINT_FLAGS Flags for the lint-style command 1543 1544Use these variables to override the choices made by `configure' or to help 1545it to find libraries and programs with nonstandard names/locations. 1546 1547Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>. 1548_ACEOF 1549ac_status=$? 1550fi 1551 1552if test "$ac_init_help" = "recursive"; then 1553 # If there are subdirs, report their specific --help. 1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1555 test -d "$ac_dir" || 1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1557 continue 1558 ac_builddir=. 1559 1560case "$ac_dir" in 1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1562*) 1563 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1564 # A ".." for each directory in $ac_dir_suffix. 1565 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1566 case $ac_top_builddir_sub in 1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1569 esac ;; 1570esac 1571ac_abs_top_builddir=$ac_pwd 1572ac_abs_builddir=$ac_pwd$ac_dir_suffix 1573# for backward compatibility: 1574ac_top_builddir=$ac_top_build_prefix 1575 1576case $srcdir in 1577 .) # We are building in place. 1578 ac_srcdir=. 1579 ac_top_srcdir=$ac_top_builddir_sub 1580 ac_abs_top_srcdir=$ac_pwd ;; 1581 [\\/]* | ?:[\\/]* ) # Absolute name. 1582 ac_srcdir=$srcdir$ac_dir_suffix; 1583 ac_top_srcdir=$srcdir 1584 ac_abs_top_srcdir=$srcdir ;; 1585 *) # Relative name. 1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1587 ac_top_srcdir=$ac_top_build_prefix$srcdir 1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1589esac 1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1591 1592 cd "$ac_dir" || { ac_status=$?; continue; } 1593 # Check for configure.gnu first; this name is used for a wrapper for 1594 # Metaconfig's "Configure" on case-insensitive file systems. 1595 if test -f "$ac_srcdir/configure.gnu"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1598 elif test -f "$ac_srcdir/configure"; then 1599 echo && 1600 $SHELL "$ac_srcdir/configure" --help=recursive 1601 else 1602 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1603 fi || ac_status=$? 1604 cd "$ac_pwd" || { ac_status=$?; break; } 1605 done 1606fi 1607 1608test -n "$ac_init_help" && exit $ac_status 1609if $ac_init_version; then 1610 cat <<\_ACEOF 1611libFS configure 1.0.9 1612generated by GNU Autoconf 2.71 1613 1614Copyright (C) 2021 Free Software Foundation, Inc. 1615This configure script is free software; the Free Software Foundation 1616gives unlimited permission to copy, distribute and modify it. 1617_ACEOF 1618 exit 1619fi 1620 1621## ------------------------ ## 1622## Autoconf initialization. ## 1623## ------------------------ ## 1624 1625# ac_fn_c_try_compile LINENO 1626# -------------------------- 1627# Try to compile conftest.$ac_ext, and return whether this succeeded. 1628ac_fn_c_try_compile () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 rm -f conftest.$ac_objext conftest.beam 1632 if { { ac_try="$ac_compile" 1633case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636esac 1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638printf "%s\n" "$ac_try_echo"; } >&5 1639 (eval "$ac_compile") 2>conftest.err 1640 ac_status=$? 1641 if test -s conftest.err; then 1642 grep -v '^ *+' conftest.err >conftest.er1 1643 cat conftest.er1 >&5 1644 mv -f conftest.er1 conftest.err 1645 fi 1646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { 1648 test -z "$ac_c_werror_flag" || 1649 test ! -s conftest.err 1650 } && test -s conftest.$ac_objext 1651then : 1652 ac_retval=0 1653else $as_nop 1654 printf "%s\n" "$as_me: failed program was:" >&5 1655sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658fi 1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660 as_fn_set_status $ac_retval 1661 1662} # ac_fn_c_try_compile 1663 1664# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1665# ------------------------------------------------------- 1666# Tests whether HEADER exists and can be compiled using the include files in 1667# INCLUDES, setting the cache variable VAR accordingly. 1668ac_fn_c_check_header_compile () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1672printf %s "checking for $2... " >&6; } 1673if eval test \${$3+y} 1674then : 1675 printf %s "(cached) " >&6 1676else $as_nop 1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678/* end confdefs.h. */ 1679$4 1680#include <$2> 1681_ACEOF 1682if ac_fn_c_try_compile "$LINENO" 1683then : 1684 eval "$3=yes" 1685else $as_nop 1686 eval "$3=no" 1687fi 1688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1689fi 1690eval ac_res=\$$3 1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1692printf "%s\n" "$ac_res" >&6; } 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 1695} # ac_fn_c_check_header_compile 1696 1697# ac_fn_c_try_link LINENO 1698# ----------------------- 1699# Try to link conftest.$ac_ext, and return whether this succeeded. 1700ac_fn_c_try_link () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1704 if { { ac_try="$ac_link" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710printf "%s\n" "$ac_try_echo"; } >&5 1711 (eval "$ac_link") 2>conftest.err 1712 ac_status=$? 1713 if test -s conftest.err; then 1714 grep -v '^ *+' conftest.err >conftest.er1 1715 cat conftest.er1 >&5 1716 mv -f conftest.er1 conftest.err 1717 fi 1718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1719 test $ac_status = 0; } && { 1720 test -z "$ac_c_werror_flag" || 1721 test ! -s conftest.err 1722 } && test -s conftest$ac_exeext && { 1723 test "$cross_compiling" = yes || 1724 test -x conftest$ac_exeext 1725 } 1726then : 1727 ac_retval=0 1728else $as_nop 1729 printf "%s\n" "$as_me: failed program was:" >&5 1730sed 's/^/| /' conftest.$ac_ext >&5 1731 1732 ac_retval=1 1733fi 1734 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1735 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1736 # interfere with the next link command; also delete a directory that is 1737 # left behind by Apple's compiler. We do this before executing the actions. 1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 as_fn_set_status $ac_retval 1741 1742} # ac_fn_c_try_link 1743 1744# ac_fn_c_check_func LINENO FUNC VAR 1745# ---------------------------------- 1746# Tests whether FUNC exists, setting the cache variable VAR accordingly 1747ac_fn_c_check_func () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1751printf %s "checking for $2... " >&6; } 1752if eval test \${$3+y} 1753then : 1754 printf %s "(cached) " >&6 1755else $as_nop 1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1757/* end confdefs.h. */ 1758/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1759 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1760#define $2 innocuous_$2 1761 1762/* System header to define __stub macros and hopefully few prototypes, 1763 which can conflict with char $2 (); below. */ 1764 1765#include <limits.h> 1766#undef $2 1767 1768/* Override any GCC internal prototype to avoid an error. 1769 Use char because int might match the return type of a GCC 1770 builtin and then its argument prototype would still apply. */ 1771#ifdef __cplusplus 1772extern "C" 1773#endif 1774char $2 (); 1775/* The GNU C library defines this for functions which it implements 1776 to always fail with ENOSYS. Some functions are actually named 1777 something starting with __ and the normal name is an alias. */ 1778#if defined __stub_$2 || defined __stub___$2 1779choke me 1780#endif 1781 1782int 1783main (void) 1784{ 1785return $2 (); 1786 ; 1787 return 0; 1788} 1789_ACEOF 1790if ac_fn_c_try_link "$LINENO" 1791then : 1792 eval "$3=yes" 1793else $as_nop 1794 eval "$3=no" 1795fi 1796rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1797 conftest$ac_exeext conftest.$ac_ext 1798fi 1799eval ac_res=\$$3 1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1801printf "%s\n" "$ac_res" >&6; } 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 1804} # ac_fn_c_check_func 1805 1806# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1807# ------------------------------------------------------------------ 1808# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1809# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1810ac_fn_check_decl () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 as_decl_name=`echo $2|sed 's/ *(.*//'` 1814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1815printf %s "checking whether $as_decl_name is declared... " >&6; } 1816if eval test \${$3+y} 1817then : 1818 printf %s "(cached) " >&6 1819else $as_nop 1820 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1821 eval ac_save_FLAGS=\$$6 1822 as_fn_append $6 " $5" 1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1824/* end confdefs.h. */ 1825$4 1826int 1827main (void) 1828{ 1829#ifndef $as_decl_name 1830#ifdef __cplusplus 1831 (void) $as_decl_use; 1832#else 1833 (void) $as_decl_name; 1834#endif 1835#endif 1836 1837 ; 1838 return 0; 1839} 1840_ACEOF 1841if ac_fn_c_try_compile "$LINENO" 1842then : 1843 eval "$3=yes" 1844else $as_nop 1845 eval "$3=no" 1846fi 1847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1848 eval $6=\$ac_save_FLAGS 1849 1850fi 1851eval ac_res=\$$3 1852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1853printf "%s\n" "$ac_res" >&6; } 1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1855 1856} # ac_fn_check_decl 1857 1858# ac_fn_c_try_run LINENO 1859# ---------------------- 1860# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1861# executables *can* be run. 1862ac_fn_c_try_run () 1863{ 1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1865 if { { ac_try="$ac_link" 1866case "(($ac_try" in 1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1868 *) ac_try_echo=$ac_try;; 1869esac 1870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1871printf "%s\n" "$ac_try_echo"; } >&5 1872 (eval "$ac_link") 2>&5 1873 ac_status=$? 1874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1875 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1876 { { case "(($ac_try" in 1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1878 *) ac_try_echo=$ac_try;; 1879esac 1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1881printf "%s\n" "$ac_try_echo"; } >&5 1882 (eval "$ac_try") 2>&5 1883 ac_status=$? 1884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1885 test $ac_status = 0; }; } 1886then : 1887 ac_retval=0 1888else $as_nop 1889 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1890 printf "%s\n" "$as_me: failed program was:" >&5 1891sed 's/^/| /' conftest.$ac_ext >&5 1892 1893 ac_retval=$ac_status 1894fi 1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 as_fn_set_status $ac_retval 1898 1899} # ac_fn_c_try_run 1900 1901# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1902# ---------------------------------------------------- 1903# Tries to find if the field MEMBER exists in type AGGR, after including 1904# INCLUDES, setting cache variable VAR accordingly. 1905ac_fn_c_check_member () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1909printf %s "checking for $2.$3... " >&6; } 1910if eval test \${$4+y} 1911then : 1912 printf %s "(cached) " >&6 1913else $as_nop 1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915/* end confdefs.h. */ 1916$5 1917int 1918main (void) 1919{ 1920static $2 ac_aggr; 1921if (ac_aggr.$3) 1922return 0; 1923 ; 1924 return 0; 1925} 1926_ACEOF 1927if ac_fn_c_try_compile "$LINENO" 1928then : 1929 eval "$4=yes" 1930else $as_nop 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$5 1934int 1935main (void) 1936{ 1937static $2 ac_aggr; 1938if (sizeof ac_aggr.$3) 1939return 0; 1940 ; 1941 return 0; 1942} 1943_ACEOF 1944if ac_fn_c_try_compile "$LINENO" 1945then : 1946 eval "$4=yes" 1947else $as_nop 1948 eval "$4=no" 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1951fi 1952rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1953fi 1954eval ac_res=\$$4 1955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1956printf "%s\n" "$ac_res" >&6; } 1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1958 1959} # ac_fn_c_check_member 1960 1961# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1962# ------------------------------------------- 1963# Tests whether TYPE exists after having included INCLUDES, setting cache 1964# variable VAR accordingly. 1965ac_fn_c_check_type () 1966{ 1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1969printf %s "checking for $2... " >&6; } 1970if eval test \${$3+y} 1971then : 1972 printf %s "(cached) " >&6 1973else $as_nop 1974 eval "$3=no" 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1976/* end confdefs.h. */ 1977$4 1978int 1979main (void) 1980{ 1981if (sizeof ($2)) 1982 return 0; 1983 ; 1984 return 0; 1985} 1986_ACEOF 1987if ac_fn_c_try_compile "$LINENO" 1988then : 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991$4 1992int 1993main (void) 1994{ 1995if (sizeof (($2))) 1996 return 0; 1997 ; 1998 return 0; 1999} 2000_ACEOF 2001if ac_fn_c_try_compile "$LINENO" 2002then : 2003 2004else $as_nop 2005 eval "$3=yes" 2006fi 2007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2008fi 2009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2010fi 2011eval ac_res=\$$3 2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2013printf "%s\n" "$ac_res" >&6; } 2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2015 2016} # ac_fn_c_check_type 2017ac_configure_args_raw= 2018for ac_arg 2019do 2020 case $ac_arg in 2021 *\'*) 2022 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2023 esac 2024 as_fn_append ac_configure_args_raw " '$ac_arg'" 2025done 2026 2027case $ac_configure_args_raw in 2028 *$as_nl*) 2029 ac_safe_unquote= ;; 2030 *) 2031 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2032 ac_unsafe_a="$ac_unsafe_z#~" 2033 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2034 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2035esac 2036 2037cat >config.log <<_ACEOF 2038This file contains any messages produced by compilers while 2039running configure, to aid debugging if configure makes a mistake. 2040 2041It was created by libFS $as_me 1.0.9, which was 2042generated by GNU Autoconf 2.71. Invocation command line was 2043 2044 $ $0$ac_configure_args_raw 2045 2046_ACEOF 2047exec 5>>config.log 2048{ 2049cat <<_ASUNAME 2050## --------- ## 2051## Platform. ## 2052## --------- ## 2053 2054hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2055uname -m = `(uname -m) 2>/dev/null || echo unknown` 2056uname -r = `(uname -r) 2>/dev/null || echo unknown` 2057uname -s = `(uname -s) 2>/dev/null || echo unknown` 2058uname -v = `(uname -v) 2>/dev/null || echo unknown` 2059 2060/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2061/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2062 2063/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2064/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2065/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2066/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2067/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2068/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2069/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2070 2071_ASUNAME 2072 2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2074for as_dir in $PATH 2075do 2076 IFS=$as_save_IFS 2077 case $as_dir in #((( 2078 '') as_dir=./ ;; 2079 */) ;; 2080 *) as_dir=$as_dir/ ;; 2081 esac 2082 printf "%s\n" "PATH: $as_dir" 2083 done 2084IFS=$as_save_IFS 2085 2086} >&5 2087 2088cat >&5 <<_ACEOF 2089 2090 2091## ----------- ## 2092## Core tests. ## 2093## ----------- ## 2094 2095_ACEOF 2096 2097 2098# Keep a trace of the command line. 2099# Strip out --no-create and --no-recursion so they do not pile up. 2100# Strip out --silent because we don't want to record it for future runs. 2101# Also quote any args containing shell meta-characters. 2102# Make two passes to allow for proper duplicate-argument suppression. 2103ac_configure_args= 2104ac_configure_args0= 2105ac_configure_args1= 2106ac_must_keep_next=false 2107for ac_pass in 1 2 2108do 2109 for ac_arg 2110 do 2111 case $ac_arg in 2112 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2114 | -silent | --silent | --silen | --sile | --sil) 2115 continue ;; 2116 *\'*) 2117 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2118 esac 2119 case $ac_pass in 2120 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2121 2) 2122 as_fn_append ac_configure_args1 " '$ac_arg'" 2123 if test $ac_must_keep_next = true; then 2124 ac_must_keep_next=false # Got value, back to normal. 2125 else 2126 case $ac_arg in 2127 *=* | --config-cache | -C | -disable-* | --disable-* \ 2128 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2129 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2130 | -with-* | --with-* | -without-* | --without-* | --x) 2131 case "$ac_configure_args0 " in 2132 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2133 esac 2134 ;; 2135 -* ) ac_must_keep_next=true ;; 2136 esac 2137 fi 2138 as_fn_append ac_configure_args " '$ac_arg'" 2139 ;; 2140 esac 2141 done 2142done 2143{ ac_configure_args0=; unset ac_configure_args0;} 2144{ ac_configure_args1=; unset ac_configure_args1;} 2145 2146# When interrupted or exit'd, cleanup temporary files, and complete 2147# config.log. We remove comments because anyway the quotes in there 2148# would cause problems or look ugly. 2149# WARNING: Use '\'' to represent an apostrophe within the trap. 2150# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2151trap 'exit_status=$? 2152 # Sanitize IFS. 2153 IFS=" "" $as_nl" 2154 # Save into config.log some information that might help in debugging. 2155 { 2156 echo 2157 2158 printf "%s\n" "## ---------------- ## 2159## Cache variables. ## 2160## ---------------- ##" 2161 echo 2162 # The following way of writing the cache mishandles newlines in values, 2163( 2164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2165 eval ac_val=\$$ac_var 2166 case $ac_val in #( 2167 *${as_nl}*) 2168 case $ac_var in #( 2169 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2170printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2171 esac 2172 case $ac_var in #( 2173 _ | IFS | as_nl) ;; #( 2174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2175 *) { eval $ac_var=; unset $ac_var;} ;; 2176 esac ;; 2177 esac 2178 done 2179 (set) 2>&1 | 2180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2181 *${as_nl}ac_space=\ *) 2182 sed -n \ 2183 "s/'\''/'\''\\\\'\'''\''/g; 2184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2185 ;; #( 2186 *) 2187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2188 ;; 2189 esac | 2190 sort 2191) 2192 echo 2193 2194 printf "%s\n" "## ----------------- ## 2195## Output variables. ## 2196## ----------------- ##" 2197 echo 2198 for ac_var in $ac_subst_vars 2199 do 2200 eval ac_val=\$$ac_var 2201 case $ac_val in 2202 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2203 esac 2204 printf "%s\n" "$ac_var='\''$ac_val'\''" 2205 done | sort 2206 echo 2207 2208 if test -n "$ac_subst_files"; then 2209 printf "%s\n" "## ------------------- ## 2210## File substitutions. ## 2211## ------------------- ##" 2212 echo 2213 for ac_var in $ac_subst_files 2214 do 2215 eval ac_val=\$$ac_var 2216 case $ac_val in 2217 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2218 esac 2219 printf "%s\n" "$ac_var='\''$ac_val'\''" 2220 done | sort 2221 echo 2222 fi 2223 2224 if test -s confdefs.h; then 2225 printf "%s\n" "## ----------- ## 2226## confdefs.h. ## 2227## ----------- ##" 2228 echo 2229 cat confdefs.h 2230 echo 2231 fi 2232 test "$ac_signal" != 0 && 2233 printf "%s\n" "$as_me: caught signal $ac_signal" 2234 printf "%s\n" "$as_me: exit $exit_status" 2235 } >&5 2236 rm -f core *.core core.conftest.* && 2237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2238 exit $exit_status 2239' 0 2240for ac_signal in 1 2 13 15; do 2241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2242done 2243ac_signal=0 2244 2245# confdefs.h avoids OS command line length limits that DEFS can exceed. 2246rm -f -r conftest* confdefs.h 2247 2248printf "%s\n" "/* confdefs.h */" > confdefs.h 2249 2250# Predefined preprocessor variables. 2251 2252printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2253 2254printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2255 2256printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2257 2258printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2259 2260printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2261 2262printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2263 2264 2265# Let the site file select an alternate cache file if it wants to. 2266# Prefer an explicitly selected file to automatically selected ones. 2267if test -n "$CONFIG_SITE"; then 2268 ac_site_files="$CONFIG_SITE" 2269elif test "x$prefix" != xNONE; then 2270 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2271else 2272 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2273fi 2274 2275for ac_site_file in $ac_site_files 2276do 2277 case $ac_site_file in #( 2278 */*) : 2279 ;; #( 2280 *) : 2281 ac_site_file=./$ac_site_file ;; 2282esac 2283 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2285printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2286 sed 's/^/| /' "$ac_site_file" >&5 2287 . "$ac_site_file" \ 2288 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2289printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2290as_fn_error $? "failed to load site script $ac_site_file 2291See \`config.log' for more details" "$LINENO" 5; } 2292 fi 2293done 2294 2295if test -r "$cache_file"; then 2296 # Some versions of bash will fail to source /dev/null (special files 2297 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2298 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2300printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2301 case $cache_file in 2302 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2303 *) . "./$cache_file";; 2304 esac 2305 fi 2306else 2307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2308printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2309 >$cache_file 2310fi 2311 2312as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2313# Test code for whether the C compiler supports C89 (global declarations) 2314ac_c_conftest_c89_globals=' 2315/* Does the compiler advertise C89 conformance? 2316 Do not test the value of __STDC__, because some compilers set it to 0 2317 while being otherwise adequately conformant. */ 2318#if !defined __STDC__ 2319# error "Compiler does not advertise C89 conformance" 2320#endif 2321 2322#include <stddef.h> 2323#include <stdarg.h> 2324struct stat; 2325/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2326struct buf { int x; }; 2327struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2328static char *e (p, i) 2329 char **p; 2330 int i; 2331{ 2332 return p[i]; 2333} 2334static char *f (char * (*g) (char **, int), char **p, ...) 2335{ 2336 char *s; 2337 va_list v; 2338 va_start (v,p); 2339 s = g (p, va_arg (v,int)); 2340 va_end (v); 2341 return s; 2342} 2343 2344/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2345 function prototypes and stuff, but not \xHH hex character constants. 2346 These do not provoke an error unfortunately, instead are silently treated 2347 as an "x". The following induces an error, until -std is added to get 2348 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2349 array size at least. It is necessary to write \x00 == 0 to get something 2350 that is true only with -std. */ 2351int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2352 2353/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2354 inside strings and character constants. */ 2355#define FOO(x) '\''x'\'' 2356int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2357 2358int test (int i, double x); 2359struct s1 {int (*f) (int a);}; 2360struct s2 {int (*f) (double a);}; 2361int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2362 int, int);' 2363 2364# Test code for whether the C compiler supports C89 (body of main). 2365ac_c_conftest_c89_main=' 2366ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2367' 2368 2369# Test code for whether the C compiler supports C99 (global declarations) 2370ac_c_conftest_c99_globals=' 2371// Does the compiler advertise C99 conformance? 2372#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2373# error "Compiler does not advertise C99 conformance" 2374#endif 2375 2376#include <stdbool.h> 2377extern int puts (const char *); 2378extern int printf (const char *, ...); 2379extern int dprintf (int, const char *, ...); 2380extern void *malloc (size_t); 2381 2382// Check varargs macros. These examples are taken from C99 6.10.3.5. 2383// dprintf is used instead of fprintf to avoid needing to declare 2384// FILE and stderr. 2385#define debug(...) dprintf (2, __VA_ARGS__) 2386#define showlist(...) puts (#__VA_ARGS__) 2387#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2388static void 2389test_varargs_macros (void) 2390{ 2391 int x = 1234; 2392 int y = 5678; 2393 debug ("Flag"); 2394 debug ("X = %d\n", x); 2395 showlist (The first, second, and third items.); 2396 report (x>y, "x is %d but y is %d", x, y); 2397} 2398 2399// Check long long types. 2400#define BIG64 18446744073709551615ull 2401#define BIG32 4294967295ul 2402#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2403#if !BIG_OK 2404 #error "your preprocessor is broken" 2405#endif 2406#if BIG_OK 2407#else 2408 #error "your preprocessor is broken" 2409#endif 2410static long long int bignum = -9223372036854775807LL; 2411static unsigned long long int ubignum = BIG64; 2412 2413struct incomplete_array 2414{ 2415 int datasize; 2416 double data[]; 2417}; 2418 2419struct named_init { 2420 int number; 2421 const wchar_t *name; 2422 double average; 2423}; 2424 2425typedef const char *ccp; 2426 2427static inline int 2428test_restrict (ccp restrict text) 2429{ 2430 // See if C++-style comments work. 2431 // Iterate through items via the restricted pointer. 2432 // Also check for declarations in for loops. 2433 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2434 continue; 2435 return 0; 2436} 2437 2438// Check varargs and va_copy. 2439static bool 2440test_varargs (const char *format, ...) 2441{ 2442 va_list args; 2443 va_start (args, format); 2444 va_list args_copy; 2445 va_copy (args_copy, args); 2446 2447 const char *str = ""; 2448 int number = 0; 2449 float fnumber = 0; 2450 2451 while (*format) 2452 { 2453 switch (*format++) 2454 { 2455 case '\''s'\'': // string 2456 str = va_arg (args_copy, const char *); 2457 break; 2458 case '\''d'\'': // int 2459 number = va_arg (args_copy, int); 2460 break; 2461 case '\''f'\'': // float 2462 fnumber = va_arg (args_copy, double); 2463 break; 2464 default: 2465 break; 2466 } 2467 } 2468 va_end (args_copy); 2469 va_end (args); 2470 2471 return *str && number && fnumber; 2472} 2473' 2474 2475# Test code for whether the C compiler supports C99 (body of main). 2476ac_c_conftest_c99_main=' 2477 // Check bool. 2478 _Bool success = false; 2479 success |= (argc != 0); 2480 2481 // Check restrict. 2482 if (test_restrict ("String literal") == 0) 2483 success = true; 2484 char *restrict newvar = "Another string"; 2485 2486 // Check varargs. 2487 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2488 test_varargs_macros (); 2489 2490 // Check flexible array members. 2491 struct incomplete_array *ia = 2492 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2493 ia->datasize = 10; 2494 for (int i = 0; i < ia->datasize; ++i) 2495 ia->data[i] = i * 1.234; 2496 2497 // Check named initializers. 2498 struct named_init ni = { 2499 .number = 34, 2500 .name = L"Test wide string", 2501 .average = 543.34343, 2502 }; 2503 2504 ni.number = 58; 2505 2506 int dynamic_array[ni.number]; 2507 dynamic_array[0] = argv[0][0]; 2508 dynamic_array[ni.number - 1] = 543; 2509 2510 // work around unused variable warnings 2511 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2512 || dynamic_array[ni.number - 1] != 543); 2513' 2514 2515# Test code for whether the C compiler supports C11 (global declarations) 2516ac_c_conftest_c11_globals=' 2517// Does the compiler advertise C11 conformance? 2518#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2519# error "Compiler does not advertise C11 conformance" 2520#endif 2521 2522// Check _Alignas. 2523char _Alignas (double) aligned_as_double; 2524char _Alignas (0) no_special_alignment; 2525extern char aligned_as_int; 2526char _Alignas (0) _Alignas (int) aligned_as_int; 2527 2528// Check _Alignof. 2529enum 2530{ 2531 int_alignment = _Alignof (int), 2532 int_array_alignment = _Alignof (int[100]), 2533 char_alignment = _Alignof (char) 2534}; 2535_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2536 2537// Check _Noreturn. 2538int _Noreturn does_not_return (void) { for (;;) continue; } 2539 2540// Check _Static_assert. 2541struct test_static_assert 2542{ 2543 int x; 2544 _Static_assert (sizeof (int) <= sizeof (long int), 2545 "_Static_assert does not work in struct"); 2546 long int y; 2547}; 2548 2549// Check UTF-8 literals. 2550#define u8 syntax error! 2551char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2552 2553// Check duplicate typedefs. 2554typedef long *long_ptr; 2555typedef long int *long_ptr; 2556typedef long_ptr long_ptr; 2557 2558// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2559struct anonymous 2560{ 2561 union { 2562 struct { int i; int j; }; 2563 struct { int k; long int l; } w; 2564 }; 2565 int m; 2566} v1; 2567' 2568 2569# Test code for whether the C compiler supports C11 (body of main). 2570ac_c_conftest_c11_main=' 2571 _Static_assert ((offsetof (struct anonymous, i) 2572 == offsetof (struct anonymous, w.k)), 2573 "Anonymous union alignment botch"); 2574 v1.i = 2; 2575 v1.w.k = 5; 2576 ok |= v1.i != 5; 2577' 2578 2579# Test code for whether the C compiler supports C11 (complete). 2580ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2581${ac_c_conftest_c99_globals} 2582${ac_c_conftest_c11_globals} 2583 2584int 2585main (int argc, char **argv) 2586{ 2587 int ok = 0; 2588 ${ac_c_conftest_c89_main} 2589 ${ac_c_conftest_c99_main} 2590 ${ac_c_conftest_c11_main} 2591 return ok; 2592} 2593" 2594 2595# Test code for whether the C compiler supports C99 (complete). 2596ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2597${ac_c_conftest_c99_globals} 2598 2599int 2600main (int argc, char **argv) 2601{ 2602 int ok = 0; 2603 ${ac_c_conftest_c89_main} 2604 ${ac_c_conftest_c99_main} 2605 return ok; 2606} 2607" 2608 2609# Test code for whether the C compiler supports C89 (complete). 2610ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2611 2612int 2613main (int argc, char **argv) 2614{ 2615 int ok = 0; 2616 ${ac_c_conftest_c89_main} 2617 return ok; 2618} 2619" 2620 2621as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2622as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2623as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2624as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2625as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2626as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2627as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2628as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2629as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2630as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2631 2632# Auxiliary files required by this configure script. 2633ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2634 2635# Locations in which to look for auxiliary files. 2636ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2637 2638# Search for a directory containing all of the required auxiliary files, 2639# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2640# If we don't find one directory that contains all the files we need, 2641# we report the set of missing files from the *first* directory in 2642# $ac_aux_dir_candidates and give up. 2643ac_missing_aux_files="" 2644ac_first_candidate=: 2645printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647as_found=false 2648for as_dir in $ac_aux_dir_candidates 2649do 2650 IFS=$as_save_IFS 2651 case $as_dir in #((( 2652 '') as_dir=./ ;; 2653 */) ;; 2654 *) as_dir=$as_dir/ ;; 2655 esac 2656 as_found=: 2657 2658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2659 ac_aux_dir_found=yes 2660 ac_install_sh= 2661 for ac_aux in $ac_aux_files 2662 do 2663 # As a special case, if "install-sh" is required, that requirement 2664 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2665 # and $ac_install_sh is set appropriately for whichever one is found. 2666 if test x"$ac_aux" = x"install-sh" 2667 then 2668 if test -f "${as_dir}install-sh"; then 2669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2670 ac_install_sh="${as_dir}install-sh -c" 2671 elif test -f "${as_dir}install.sh"; then 2672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2673 ac_install_sh="${as_dir}install.sh -c" 2674 elif test -f "${as_dir}shtool"; then 2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2676 ac_install_sh="${as_dir}shtool install -c" 2677 else 2678 ac_aux_dir_found=no 2679 if $ac_first_candidate; then 2680 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2681 else 2682 break 2683 fi 2684 fi 2685 else 2686 if test -f "${as_dir}${ac_aux}"; then 2687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2688 else 2689 ac_aux_dir_found=no 2690 if $ac_first_candidate; then 2691 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2692 else 2693 break 2694 fi 2695 fi 2696 fi 2697 done 2698 if test "$ac_aux_dir_found" = yes; then 2699 ac_aux_dir="$as_dir" 2700 break 2701 fi 2702 ac_first_candidate=false 2703 2704 as_found=false 2705done 2706IFS=$as_save_IFS 2707if $as_found 2708then : 2709 2710else $as_nop 2711 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2712fi 2713 2714 2715# These three variables are undocumented and unsupported, 2716# and are intended to be withdrawn in a future Autoconf release. 2717# They can cause serious problems if a builder's source tree is in a directory 2718# whose full name contains unusual characters. 2719if test -f "${ac_aux_dir}config.guess"; then 2720 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2721fi 2722if test -f "${ac_aux_dir}config.sub"; then 2723 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2724fi 2725if test -f "$ac_aux_dir/configure"; then 2726 ac_configure="$SHELL ${ac_aux_dir}configure" 2727fi 2728 2729# Check that the precious variables saved in the cache have kept the same 2730# value. 2731ac_cache_corrupted=false 2732for ac_var in $ac_precious_vars; do 2733 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2734 eval ac_new_set=\$ac_env_${ac_var}_set 2735 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2736 eval ac_new_val=\$ac_env_${ac_var}_value 2737 case $ac_old_set,$ac_new_set in 2738 set,) 2739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2740printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2741 ac_cache_corrupted=: ;; 2742 ,set) 2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2744printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2745 ac_cache_corrupted=: ;; 2746 ,);; 2747 *) 2748 if test "x$ac_old_val" != "x$ac_new_val"; then 2749 # differences in whitespace do not lead to failure. 2750 ac_old_val_w=`echo x $ac_old_val` 2751 ac_new_val_w=`echo x $ac_new_val` 2752 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2754printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2755 ac_cache_corrupted=: 2756 else 2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2758printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2759 eval $ac_var=\$ac_old_val 2760 fi 2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2762printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2764printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2765 fi;; 2766 esac 2767 # Pass precious variables to config.status. 2768 if test "$ac_new_set" = set; then 2769 case $ac_new_val in 2770 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2771 *) ac_arg=$ac_var=$ac_new_val ;; 2772 esac 2773 case " $ac_configure_args " in 2774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2775 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2776 esac 2777 fi 2778done 2779if $ac_cache_corrupted; then 2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2781printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2783printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2784 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2785 and start over" "$LINENO" 5 2786fi 2787## -------------------- ## 2788## Main body of script. ## 2789## -------------------- ## 2790 2791ac_ext=c 2792ac_cpp='$CPP $CPPFLAGS' 2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2795ac_compiler_gnu=$ac_cv_c_compiler_gnu 2796 2797 2798 2799ac_config_headers="$ac_config_headers config.h" 2800 2801 2802# Initialize Automake 2803am__api_version='1.16' 2804 2805 2806 2807 # Find a good install program. We prefer a C program (faster), 2808# so one script is as good as another. But avoid the broken or 2809# incompatible versions: 2810# SysV /etc/install, /usr/sbin/install 2811# SunOS /usr/etc/install 2812# IRIX /sbin/install 2813# AIX /bin/install 2814# AmigaOS /C/install, which installs bootblocks on floppy discs 2815# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2816# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2817# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2818# OS/2's system install, which has a completely different semantic 2819# ./install, which can be erroneously created by make from ./install.sh. 2820# Reject install programs that cannot install multiple files. 2821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2822printf %s "checking for a BSD-compatible install... " >&6; } 2823if test -z "$INSTALL"; then 2824if test ${ac_cv_path_install+y} 2825then : 2826 printf %s "(cached) " >&6 2827else $as_nop 2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2829for as_dir in $PATH 2830do 2831 IFS=$as_save_IFS 2832 case $as_dir in #((( 2833 '') as_dir=./ ;; 2834 */) ;; 2835 *) as_dir=$as_dir/ ;; 2836 esac 2837 # Account for fact that we put trailing slashes in our PATH walk. 2838case $as_dir in #(( 2839 ./ | /[cC]/* | \ 2840 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2841 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2842 /usr/ucb/* ) ;; 2843 *) 2844 # OSF1 and SCO ODT 3.0 have their own names for install. 2845 # Don't use installbsd from OSF since it installs stuff as root 2846 # by default. 2847 for ac_prog in ginstall scoinst install; do 2848 for ac_exec_ext in '' $ac_executable_extensions; do 2849 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2850 if test $ac_prog = install && 2851 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2852 # AIX install. It has an incompatible calling convention. 2853 : 2854 elif test $ac_prog = install && 2855 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2856 # program-specific install script used by HP pwplus--don't use. 2857 : 2858 else 2859 rm -rf conftest.one conftest.two conftest.dir 2860 echo one > conftest.one 2861 echo two > conftest.two 2862 mkdir conftest.dir 2863 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2864 test -s conftest.one && test -s conftest.two && 2865 test -s conftest.dir/conftest.one && 2866 test -s conftest.dir/conftest.two 2867 then 2868 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2869 break 3 2870 fi 2871 fi 2872 fi 2873 done 2874 done 2875 ;; 2876esac 2877 2878 done 2879IFS=$as_save_IFS 2880 2881rm -rf conftest.one conftest.two conftest.dir 2882 2883fi 2884 if test ${ac_cv_path_install+y}; then 2885 INSTALL=$ac_cv_path_install 2886 else 2887 # As a last resort, use the slow shell script. Don't cache a 2888 # value for INSTALL within a source directory, because that will 2889 # break other packages using the cache if that directory is 2890 # removed, or if the value is a relative name. 2891 INSTALL=$ac_install_sh 2892 fi 2893fi 2894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2895printf "%s\n" "$INSTALL" >&6; } 2896 2897# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2898# It thinks the first close brace ends the variable substitution. 2899test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2900 2901test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2902 2903test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2904 2905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2906printf %s "checking whether build environment is sane... " >&6; } 2907# Reject unsafe characters in $srcdir or the absolute working directory 2908# name. Accept space and tab only in the latter. 2909am_lf=' 2910' 2911case `pwd` in 2912 *[\\\"\#\$\&\'\`$am_lf]*) 2913 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2914esac 2915case $srcdir in 2916 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2917 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2918esac 2919 2920# Do 'set' in a subshell so we don't clobber the current shell's 2921# arguments. Must try -L first in case configure is actually a 2922# symlink; some systems play weird games with the mod time of symlinks 2923# (eg FreeBSD returns the mod time of the symlink's containing 2924# directory). 2925if ( 2926 am_has_slept=no 2927 for am_try in 1 2; do 2928 echo "timestamp, slept: $am_has_slept" > conftest.file 2929 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2930 if test "$*" = "X"; then 2931 # -L didn't work. 2932 set X `ls -t "$srcdir/configure" conftest.file` 2933 fi 2934 if test "$*" != "X $srcdir/configure conftest.file" \ 2935 && test "$*" != "X conftest.file $srcdir/configure"; then 2936 2937 # If neither matched, then we have a broken ls. This can happen 2938 # if, for instance, CONFIG_SHELL is bash and it inherits a 2939 # broken ls alias from the environment. This has actually 2940 # happened. Such a system could not be considered "sane". 2941 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2942 alias in your environment" "$LINENO" 5 2943 fi 2944 if test "$2" = conftest.file || test $am_try -eq 2; then 2945 break 2946 fi 2947 # Just in case. 2948 sleep 1 2949 am_has_slept=yes 2950 done 2951 test "$2" = conftest.file 2952 ) 2953then 2954 # Ok. 2955 : 2956else 2957 as_fn_error $? "newly created file is older than distributed files! 2958Check your system clock" "$LINENO" 5 2959fi 2960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2961printf "%s\n" "yes" >&6; } 2962# If we didn't sleep, we still need to ensure time stamps of config.status and 2963# generated files are strictly newer. 2964am_sleep_pid= 2965if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2966 ( sleep 1 ) & 2967 am_sleep_pid=$! 2968fi 2969 2970rm -f conftest.file 2971 2972test "$program_prefix" != NONE && 2973 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2974# Use a double $ so make ignores it. 2975test "$program_suffix" != NONE && 2976 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2977# Double any \ or $. 2978# By default was `s,x,x', remove it if useless. 2979ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2980program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2981 2982 2983# Expand $ac_aux_dir to an absolute path. 2984am_aux_dir=`cd "$ac_aux_dir" && pwd` 2985 2986 2987 if test x"${MISSING+set}" != xset; then 2988 MISSING="\${SHELL} '$am_aux_dir/missing'" 2989fi 2990# Use eval to expand $SHELL 2991if eval "$MISSING --is-lightweight"; then 2992 am_missing_run="$MISSING " 2993else 2994 am_missing_run= 2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2996printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2997fi 2998 2999if test x"${install_sh+set}" != xset; then 3000 case $am_aux_dir in 3001 *\ * | *\ *) 3002 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3003 *) 3004 install_sh="\${SHELL} $am_aux_dir/install-sh" 3005 esac 3006fi 3007 3008# Installed binaries are usually stripped using 'strip' when the user 3009# run "make install-strip". However 'strip' might not be the right 3010# tool to use in cross-compilation environments, therefore Automake 3011# will honor the 'STRIP' environment variable to overrule this program. 3012if test "$cross_compiling" != no; then 3013 if test -n "$ac_tool_prefix"; then 3014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3015set dummy ${ac_tool_prefix}strip; ac_word=$2 3016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3017printf %s "checking for $ac_word... " >&6; } 3018if test ${ac_cv_prog_STRIP+y} 3019then : 3020 printf %s "(cached) " >&6 3021else $as_nop 3022 if test -n "$STRIP"; then 3023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3024else 3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH 3027do 3028 IFS=$as_save_IFS 3029 case $as_dir in #((( 3030 '') as_dir=./ ;; 3031 */) ;; 3032 *) as_dir=$as_dir/ ;; 3033 esac 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3036 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3038 break 2 3039 fi 3040done 3041 done 3042IFS=$as_save_IFS 3043 3044fi 3045fi 3046STRIP=$ac_cv_prog_STRIP 3047if test -n "$STRIP"; then 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3049printf "%s\n" "$STRIP" >&6; } 3050else 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052printf "%s\n" "no" >&6; } 3053fi 3054 3055 3056fi 3057if test -z "$ac_cv_prog_STRIP"; then 3058 ac_ct_STRIP=$STRIP 3059 # Extract the first word of "strip", so it can be a program name with args. 3060set dummy strip; ac_word=$2 3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062printf %s "checking for $ac_word... " >&6; } 3063if test ${ac_cv_prog_ac_ct_STRIP+y} 3064then : 3065 printf %s "(cached) " >&6 3066else $as_nop 3067 if test -n "$ac_ct_STRIP"; then 3068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3069else 3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071for as_dir in $PATH 3072do 3073 IFS=$as_save_IFS 3074 case $as_dir in #((( 3075 '') as_dir=./ ;; 3076 */) ;; 3077 *) as_dir=$as_dir/ ;; 3078 esac 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3081 ac_cv_prog_ac_ct_STRIP="strip" 3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085done 3086 done 3087IFS=$as_save_IFS 3088 3089fi 3090fi 3091ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3092if test -n "$ac_ct_STRIP"; then 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3094printf "%s\n" "$ac_ct_STRIP" >&6; } 3095else 3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3097printf "%s\n" "no" >&6; } 3098fi 3099 3100 if test "x$ac_ct_STRIP" = x; then 3101 STRIP=":" 3102 else 3103 case $cross_compiling:$ac_tool_warned in 3104yes:) 3105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3106printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3107ac_tool_warned=yes ;; 3108esac 3109 STRIP=$ac_ct_STRIP 3110 fi 3111else 3112 STRIP="$ac_cv_prog_STRIP" 3113fi 3114 3115fi 3116INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3117 3118 3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3120printf %s "checking for a race-free mkdir -p... " >&6; } 3121if test -z "$MKDIR_P"; then 3122 if test ${ac_cv_path_mkdir+y} 3123then : 3124 printf %s "(cached) " >&6 3125else $as_nop 3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3128do 3129 IFS=$as_save_IFS 3130 case $as_dir in #((( 3131 '') as_dir=./ ;; 3132 */) ;; 3133 *) as_dir=$as_dir/ ;; 3134 esac 3135 for ac_prog in mkdir gmkdir; do 3136 for ac_exec_ext in '' $ac_executable_extensions; do 3137 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3138 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3139 'mkdir ('*'coreutils) '* | \ 3140 'BusyBox '* | \ 3141 'mkdir (fileutils) '4.1*) 3142 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3143 break 3;; 3144 esac 3145 done 3146 done 3147 done 3148IFS=$as_save_IFS 3149 3150fi 3151 3152 test -d ./--version && rmdir ./--version 3153 if test ${ac_cv_path_mkdir+y}; then 3154 MKDIR_P="$ac_cv_path_mkdir -p" 3155 else 3156 # As a last resort, use the slow shell script. Don't cache a 3157 # value for MKDIR_P within a source directory, because that will 3158 # break other packages using the cache if that directory is 3159 # removed, or if the value is a relative name. 3160 MKDIR_P="$ac_install_sh -d" 3161 fi 3162fi 3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3164printf "%s\n" "$MKDIR_P" >&6; } 3165 3166for ac_prog in gawk mawk nawk awk 3167do 3168 # Extract the first word of "$ac_prog", so it can be a program name with args. 3169set dummy $ac_prog; ac_word=$2 3170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3171printf %s "checking for $ac_word... " >&6; } 3172if test ${ac_cv_prog_AWK+y} 3173then : 3174 printf %s "(cached) " >&6 3175else $as_nop 3176 if test -n "$AWK"; then 3177 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3178else 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 case $as_dir in #((( 3184 '') as_dir=./ ;; 3185 */) ;; 3186 *) as_dir=$as_dir/ ;; 3187 esac 3188 for ac_exec_ext in '' $ac_executable_extensions; do 3189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3190 ac_cv_prog_AWK="$ac_prog" 3191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3192 break 2 3193 fi 3194done 3195 done 3196IFS=$as_save_IFS 3197 3198fi 3199fi 3200AWK=$ac_cv_prog_AWK 3201if test -n "$AWK"; then 3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3203printf "%s\n" "$AWK" >&6; } 3204else 3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3206printf "%s\n" "no" >&6; } 3207fi 3208 3209 3210 test -n "$AWK" && break 3211done 3212 3213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3214printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3215set x ${MAKE-make} 3216ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3217if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3218then : 3219 printf %s "(cached) " >&6 3220else $as_nop 3221 cat >conftest.make <<\_ACEOF 3222SHELL = /bin/sh 3223all: 3224 @echo '@@@%%%=$(MAKE)=@@@%%%' 3225_ACEOF 3226# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3227case `${MAKE-make} -f conftest.make 2>/dev/null` in 3228 *@@@%%%=?*=@@@%%%*) 3229 eval ac_cv_prog_make_${ac_make}_set=yes;; 3230 *) 3231 eval ac_cv_prog_make_${ac_make}_set=no;; 3232esac 3233rm -f conftest.make 3234fi 3235if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3237printf "%s\n" "yes" >&6; } 3238 SET_MAKE= 3239else 3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3241printf "%s\n" "no" >&6; } 3242 SET_MAKE="MAKE=${MAKE-make}" 3243fi 3244 3245rm -rf .tst 2>/dev/null 3246mkdir .tst 2>/dev/null 3247if test -d .tst; then 3248 am__leading_dot=. 3249else 3250 am__leading_dot=_ 3251fi 3252rmdir .tst 2>/dev/null 3253 3254# Check whether --enable-silent-rules was given. 3255if test ${enable_silent_rules+y} 3256then : 3257 enableval=$enable_silent_rules; 3258fi 3259 3260case $enable_silent_rules in # ((( 3261 yes) AM_DEFAULT_VERBOSITY=0;; 3262 no) AM_DEFAULT_VERBOSITY=1;; 3263 *) AM_DEFAULT_VERBOSITY=1;; 3264esac 3265am_make=${MAKE-make} 3266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3267printf %s "checking whether $am_make supports nested variables... " >&6; } 3268if test ${am_cv_make_support_nested_variables+y} 3269then : 3270 printf %s "(cached) " >&6 3271else $as_nop 3272 if printf "%s\n" 'TRUE=$(BAR$(V)) 3273BAR0=false 3274BAR1=true 3275V=1 3276am__doit: 3277 @$(TRUE) 3278.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3279 am_cv_make_support_nested_variables=yes 3280else 3281 am_cv_make_support_nested_variables=no 3282fi 3283fi 3284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3285printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3286if test $am_cv_make_support_nested_variables = yes; then 3287 AM_V='$(V)' 3288 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3289else 3290 AM_V=$AM_DEFAULT_VERBOSITY 3291 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3292fi 3293AM_BACKSLASH='\' 3294 3295if test "`cd $srcdir && pwd`" != "`pwd`"; then 3296 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3297 # is not polluted with repeated "-I." 3298 am__isrc=' -I$(srcdir)' 3299 # test to see if srcdir already configured 3300 if test -f $srcdir/config.status; then 3301 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3302 fi 3303fi 3304 3305# test whether we have cygpath 3306if test -z "$CYGPATH_W"; then 3307 if (cygpath --version) >/dev/null 2>/dev/null; then 3308 CYGPATH_W='cygpath -w' 3309 else 3310 CYGPATH_W=echo 3311 fi 3312fi 3313 3314 3315# Define the identity of the package. 3316 PACKAGE='libFS' 3317 VERSION='1.0.9' 3318 3319 3320printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3321 3322 3323printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3324 3325# Some tools Automake needs. 3326 3327ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3328 3329 3330AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3331 3332 3333AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3334 3335 3336AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3337 3338 3339MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3340 3341# For better backward compatibility. To be removed once Automake 1.9.x 3342# dies out for good. For more background, see: 3343# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3344# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3345mkdir_p='$(MKDIR_P)' 3346 3347# We need awk for the "check" target (and possibly the TAP driver). The 3348# system "awk" is bad on some platforms. 3349# Always define AMTAR for backward compatibility. Yes, it's still used 3350# in the wild :-( We should find a proper way to deprecate it ... 3351AMTAR='$${TAR-tar}' 3352 3353 3354# We'll loop over all known methods to create a tar archive until one works. 3355_am_tools='gnutar pax cpio none' 3356 3357am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3358 3359 3360 3361 3362 3363# Variables for tags utilities; see am/tags.am 3364if test -z "$CTAGS"; then 3365 CTAGS=ctags 3366fi 3367 3368if test -z "$ETAGS"; then 3369 ETAGS=etags 3370fi 3371 3372if test -z "$CSCOPE"; then 3373 CSCOPE=cscope 3374fi 3375 3376 3377 3378# POSIX will say in a future version that running "rm -f" with no argument 3379# is OK; and we want to be able to make that assumption in our Makefile 3380# recipes. So use an aggressive probe to check that the usage we want is 3381# actually supported "in the wild" to an acceptable degree. 3382# See automake bug#10828. 3383# To make any issue more visible, cause the running configure to be aborted 3384# by default if the 'rm' program in use doesn't match our expectations; the 3385# user can still override this though. 3386if rm -f && rm -fr && rm -rf; then : OK; else 3387 cat >&2 <<'END' 3388Oops! 3389 3390Your 'rm' program seems unable to run without file operands specified 3391on the command line, even when the '-f' option is present. This is contrary 3392to the behaviour of most rm programs out there, and not conforming with 3393the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3394 3395Please tell bug-automake@gnu.org about your system, including the value 3396of your $PATH and any error possibly output before this message. This 3397can help us improve future automake versions. 3398 3399END 3400 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3401 echo 'Configuration will proceed anyway, since you have set the' >&2 3402 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3403 echo >&2 3404 else 3405 cat >&2 <<'END' 3406Aborting the configuration process, to ensure you take notice of the issue. 3407 3408You can download and install GNU coreutils to get an 'rm' implementation 3409that behaves properly: <https://www.gnu.org/software/coreutils/>. 3410 3411If you want to complete the configuration process using your problematic 3412'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3413to "yes", and re-run configure. 3414 3415END 3416 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3417 fi 3418fi 3419 3420 3421# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3422# Must be called before any macros that run the compiler (like 3423# AC_PROG_LIBTOOL) to avoid autoconf errors. 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433DEPDIR="${am__leading_dot}deps" 3434 3435ac_config_commands="$ac_config_commands depfiles" 3436 3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3438printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3439cat > confinc.mk << 'END' 3440am__doit: 3441 @echo this is the am__doit target >confinc.out 3442.PHONY: am__doit 3443END 3444am__include="#" 3445am__quote= 3446# BSD make does it like this. 3447echo '.include "confinc.mk" # ignored' > confmf.BSD 3448# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3449echo 'include confinc.mk # ignored' > confmf.GNU 3450_am_result=no 3451for s in GNU BSD; do 3452 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3453 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3454 ac_status=$? 3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3456 (exit $ac_status); } 3457 case $?:`cat confinc.out 2>/dev/null` in #( 3458 '0:this is the am__doit target') : 3459 case $s in #( 3460 BSD) : 3461 am__include='.include' am__quote='"' ;; #( 3462 *) : 3463 am__include='include' am__quote='' ;; 3464esac ;; #( 3465 *) : 3466 ;; 3467esac 3468 if test "$am__include" != "#"; then 3469 _am_result="yes ($s style)" 3470 break 3471 fi 3472done 3473rm -f confinc.* confmf.* 3474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3475printf "%s\n" "${_am_result}" >&6; } 3476 3477# Check whether --enable-dependency-tracking was given. 3478if test ${enable_dependency_tracking+y} 3479then : 3480 enableval=$enable_dependency_tracking; 3481fi 3482 3483if test "x$enable_dependency_tracking" != xno; then 3484 am_depcomp="$ac_aux_dir/depcomp" 3485 AMDEPBACKSLASH='\' 3486 am__nodep='_no' 3487fi 3488 if test "x$enable_dependency_tracking" != xno; then 3489 AMDEP_TRUE= 3490 AMDEP_FALSE='#' 3491else 3492 AMDEP_TRUE='#' 3493 AMDEP_FALSE= 3494fi 3495 3496 3497ac_ext=c 3498ac_cpp='$CPP $CPPFLAGS' 3499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3501ac_compiler_gnu=$ac_cv_c_compiler_gnu 3502if test -n "$ac_tool_prefix"; then 3503 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3504set dummy ${ac_tool_prefix}gcc; ac_word=$2 3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3506printf %s "checking for $ac_word... " >&6; } 3507if test ${ac_cv_prog_CC+y} 3508then : 3509 printf %s "(cached) " >&6 3510else $as_nop 3511 if test -n "$CC"; then 3512 ac_cv_prog_CC="$CC" # Let the user override the test. 3513else 3514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515for as_dir in $PATH 3516do 3517 IFS=$as_save_IFS 3518 case $as_dir in #((( 3519 '') as_dir=./ ;; 3520 */) ;; 3521 *) as_dir=$as_dir/ ;; 3522 esac 3523 for ac_exec_ext in '' $ac_executable_extensions; do 3524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3525 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3527 break 2 3528 fi 3529done 3530 done 3531IFS=$as_save_IFS 3532 3533fi 3534fi 3535CC=$ac_cv_prog_CC 3536if test -n "$CC"; then 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3538printf "%s\n" "$CC" >&6; } 3539else 3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3541printf "%s\n" "no" >&6; } 3542fi 3543 3544 3545fi 3546if test -z "$ac_cv_prog_CC"; then 3547 ac_ct_CC=$CC 3548 # Extract the first word of "gcc", so it can be a program name with args. 3549set dummy gcc; ac_word=$2 3550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3551printf %s "checking for $ac_word... " >&6; } 3552if test ${ac_cv_prog_ac_ct_CC+y} 3553then : 3554 printf %s "(cached) " >&6 3555else $as_nop 3556 if test -n "$ac_ct_CC"; then 3557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3558else 3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560for as_dir in $PATH 3561do 3562 IFS=$as_save_IFS 3563 case $as_dir in #((( 3564 '') as_dir=./ ;; 3565 */) ;; 3566 *) as_dir=$as_dir/ ;; 3567 esac 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3570 ac_cv_prog_ac_ct_CC="gcc" 3571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3572 break 2 3573 fi 3574done 3575 done 3576IFS=$as_save_IFS 3577 3578fi 3579fi 3580ac_ct_CC=$ac_cv_prog_ac_ct_CC 3581if test -n "$ac_ct_CC"; then 3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3583printf "%s\n" "$ac_ct_CC" >&6; } 3584else 3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3586printf "%s\n" "no" >&6; } 3587fi 3588 3589 if test "x$ac_ct_CC" = x; then 3590 CC="" 3591 else 3592 case $cross_compiling:$ac_tool_warned in 3593yes:) 3594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3595printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3596ac_tool_warned=yes ;; 3597esac 3598 CC=$ac_ct_CC 3599 fi 3600else 3601 CC="$ac_cv_prog_CC" 3602fi 3603 3604if test -z "$CC"; then 3605 if test -n "$ac_tool_prefix"; then 3606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3607set dummy ${ac_tool_prefix}cc; ac_word=$2 3608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3609printf %s "checking for $ac_word... " >&6; } 3610if test ${ac_cv_prog_CC+y} 3611then : 3612 printf %s "(cached) " >&6 3613else $as_nop 3614 if test -n "$CC"; then 3615 ac_cv_prog_CC="$CC" # Let the user override the test. 3616else 3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618for as_dir in $PATH 3619do 3620 IFS=$as_save_IFS 3621 case $as_dir in #((( 3622 '') as_dir=./ ;; 3623 */) ;; 3624 *) as_dir=$as_dir/ ;; 3625 esac 3626 for ac_exec_ext in '' $ac_executable_extensions; do 3627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3628 ac_cv_prog_CC="${ac_tool_prefix}cc" 3629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3630 break 2 3631 fi 3632done 3633 done 3634IFS=$as_save_IFS 3635 3636fi 3637fi 3638CC=$ac_cv_prog_CC 3639if test -n "$CC"; then 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3641printf "%s\n" "$CC" >&6; } 3642else 3643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3644printf "%s\n" "no" >&6; } 3645fi 3646 3647 3648 fi 3649fi 3650if test -z "$CC"; then 3651 # Extract the first word of "cc", so it can be a program name with args. 3652set dummy cc; ac_word=$2 3653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3654printf %s "checking for $ac_word... " >&6; } 3655if test ${ac_cv_prog_CC+y} 3656then : 3657 printf %s "(cached) " >&6 3658else $as_nop 3659 if test -n "$CC"; then 3660 ac_cv_prog_CC="$CC" # Let the user override the test. 3661else 3662 ac_prog_rejected=no 3663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3664for as_dir in $PATH 3665do 3666 IFS=$as_save_IFS 3667 case $as_dir in #((( 3668 '') as_dir=./ ;; 3669 */) ;; 3670 *) as_dir=$as_dir/ ;; 3671 esac 3672 for ac_exec_ext in '' $ac_executable_extensions; do 3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3674 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3675 ac_prog_rejected=yes 3676 continue 3677 fi 3678 ac_cv_prog_CC="cc" 3679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3680 break 2 3681 fi 3682done 3683 done 3684IFS=$as_save_IFS 3685 3686if test $ac_prog_rejected = yes; then 3687 # We found a bogon in the path, so make sure we never use it. 3688 set dummy $ac_cv_prog_CC 3689 shift 3690 if test $# != 0; then 3691 # We chose a different compiler from the bogus one. 3692 # However, it has the same basename, so the bogon will be chosen 3693 # first if we set CC to just the basename; use the full file name. 3694 shift 3695 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3696 fi 3697fi 3698fi 3699fi 3700CC=$ac_cv_prog_CC 3701if test -n "$CC"; then 3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3703printf "%s\n" "$CC" >&6; } 3704else 3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3706printf "%s\n" "no" >&6; } 3707fi 3708 3709 3710fi 3711if test -z "$CC"; then 3712 if test -n "$ac_tool_prefix"; then 3713 for ac_prog in cl.exe 3714 do 3715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3716set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3718printf %s "checking for $ac_word... " >&6; } 3719if test ${ac_cv_prog_CC+y} 3720then : 3721 printf %s "(cached) " >&6 3722else $as_nop 3723 if test -n "$CC"; then 3724 ac_cv_prog_CC="$CC" # Let the user override the test. 3725else 3726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3727for as_dir in $PATH 3728do 3729 IFS=$as_save_IFS 3730 case $as_dir in #((( 3731 '') as_dir=./ ;; 3732 */) ;; 3733 *) as_dir=$as_dir/ ;; 3734 esac 3735 for ac_exec_ext in '' $ac_executable_extensions; do 3736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3739 break 2 3740 fi 3741done 3742 done 3743IFS=$as_save_IFS 3744 3745fi 3746fi 3747CC=$ac_cv_prog_CC 3748if test -n "$CC"; then 3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3750printf "%s\n" "$CC" >&6; } 3751else 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3753printf "%s\n" "no" >&6; } 3754fi 3755 3756 3757 test -n "$CC" && break 3758 done 3759fi 3760if test -z "$CC"; then 3761 ac_ct_CC=$CC 3762 for ac_prog in cl.exe 3763do 3764 # Extract the first word of "$ac_prog", so it can be a program name with args. 3765set dummy $ac_prog; ac_word=$2 3766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3767printf %s "checking for $ac_word... " >&6; } 3768if test ${ac_cv_prog_ac_ct_CC+y} 3769then : 3770 printf %s "(cached) " >&6 3771else $as_nop 3772 if test -n "$ac_ct_CC"; then 3773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3774else 3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3776for as_dir in $PATH 3777do 3778 IFS=$as_save_IFS 3779 case $as_dir in #((( 3780 '') as_dir=./ ;; 3781 */) ;; 3782 *) as_dir=$as_dir/ ;; 3783 esac 3784 for ac_exec_ext in '' $ac_executable_extensions; do 3785 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3786 ac_cv_prog_ac_ct_CC="$ac_prog" 3787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3788 break 2 3789 fi 3790done 3791 done 3792IFS=$as_save_IFS 3793 3794fi 3795fi 3796ac_ct_CC=$ac_cv_prog_ac_ct_CC 3797if test -n "$ac_ct_CC"; then 3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3799printf "%s\n" "$ac_ct_CC" >&6; } 3800else 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3802printf "%s\n" "no" >&6; } 3803fi 3804 3805 3806 test -n "$ac_ct_CC" && break 3807done 3808 3809 if test "x$ac_ct_CC" = x; then 3810 CC="" 3811 else 3812 case $cross_compiling:$ac_tool_warned in 3813yes:) 3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3815printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3816ac_tool_warned=yes ;; 3817esac 3818 CC=$ac_ct_CC 3819 fi 3820fi 3821 3822fi 3823if test -z "$CC"; then 3824 if test -n "$ac_tool_prefix"; then 3825 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3826set dummy ${ac_tool_prefix}clang; ac_word=$2 3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3828printf %s "checking for $ac_word... " >&6; } 3829if test ${ac_cv_prog_CC+y} 3830then : 3831 printf %s "(cached) " >&6 3832else $as_nop 3833 if test -n "$CC"; then 3834 ac_cv_prog_CC="$CC" # Let the user override the test. 3835else 3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3837for as_dir in $PATH 3838do 3839 IFS=$as_save_IFS 3840 case $as_dir in #((( 3841 '') as_dir=./ ;; 3842 */) ;; 3843 *) as_dir=$as_dir/ ;; 3844 esac 3845 for ac_exec_ext in '' $ac_executable_extensions; do 3846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3847 ac_cv_prog_CC="${ac_tool_prefix}clang" 3848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3849 break 2 3850 fi 3851done 3852 done 3853IFS=$as_save_IFS 3854 3855fi 3856fi 3857CC=$ac_cv_prog_CC 3858if test -n "$CC"; then 3859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3860printf "%s\n" "$CC" >&6; } 3861else 3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3863printf "%s\n" "no" >&6; } 3864fi 3865 3866 3867fi 3868if test -z "$ac_cv_prog_CC"; then 3869 ac_ct_CC=$CC 3870 # Extract the first word of "clang", so it can be a program name with args. 3871set dummy clang; ac_word=$2 3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3873printf %s "checking for $ac_word... " >&6; } 3874if test ${ac_cv_prog_ac_ct_CC+y} 3875then : 3876 printf %s "(cached) " >&6 3877else $as_nop 3878 if test -n "$ac_ct_CC"; then 3879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3880else 3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3882for as_dir in $PATH 3883do 3884 IFS=$as_save_IFS 3885 case $as_dir in #((( 3886 '') as_dir=./ ;; 3887 */) ;; 3888 *) as_dir=$as_dir/ ;; 3889 esac 3890 for ac_exec_ext in '' $ac_executable_extensions; do 3891 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3892 ac_cv_prog_ac_ct_CC="clang" 3893 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3894 break 2 3895 fi 3896done 3897 done 3898IFS=$as_save_IFS 3899 3900fi 3901fi 3902ac_ct_CC=$ac_cv_prog_ac_ct_CC 3903if test -n "$ac_ct_CC"; then 3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3905printf "%s\n" "$ac_ct_CC" >&6; } 3906else 3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3908printf "%s\n" "no" >&6; } 3909fi 3910 3911 if test "x$ac_ct_CC" = x; then 3912 CC="" 3913 else 3914 case $cross_compiling:$ac_tool_warned in 3915yes:) 3916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3917printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3918ac_tool_warned=yes ;; 3919esac 3920 CC=$ac_ct_CC 3921 fi 3922else 3923 CC="$ac_cv_prog_CC" 3924fi 3925 3926fi 3927 3928 3929test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3930printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3931as_fn_error $? "no acceptable C compiler found in \$PATH 3932See \`config.log' for more details" "$LINENO" 5; } 3933 3934# Provide some information about the compiler. 3935printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3936set X $ac_compile 3937ac_compiler=$2 3938for ac_option in --version -v -V -qversion -version; do 3939 { { ac_try="$ac_compiler $ac_option >&5" 3940case "(($ac_try" in 3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3942 *) ac_try_echo=$ac_try;; 3943esac 3944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3945printf "%s\n" "$ac_try_echo"; } >&5 3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3947 ac_status=$? 3948 if test -s conftest.err; then 3949 sed '10a\ 3950... rest of stderr output deleted ... 3951 10q' conftest.err >conftest.er1 3952 cat conftest.er1 >&5 3953 fi 3954 rm -f conftest.er1 conftest.err 3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3956 test $ac_status = 0; } 3957done 3958 3959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3960/* end confdefs.h. */ 3961 3962int 3963main (void) 3964{ 3965 3966 ; 3967 return 0; 3968} 3969_ACEOF 3970ac_clean_files_save=$ac_clean_files 3971ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3972# Try to create an executable without -o first, disregard a.out. 3973# It will help us diagnose broken compilers, and finding out an intuition 3974# of exeext. 3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3976printf %s "checking whether the C compiler works... " >&6; } 3977ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3978 3979# The possible output files: 3980ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3981 3982ac_rmfiles= 3983for ac_file in $ac_files 3984do 3985 case $ac_file in 3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3987 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3988 esac 3989done 3990rm -f $ac_rmfiles 3991 3992if { { ac_try="$ac_link_default" 3993case "(($ac_try" in 3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3995 *) ac_try_echo=$ac_try;; 3996esac 3997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3998printf "%s\n" "$ac_try_echo"; } >&5 3999 (eval "$ac_link_default") 2>&5 4000 ac_status=$? 4001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4002 test $ac_status = 0; } 4003then : 4004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4005# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4006# in a Makefile. We should not override ac_cv_exeext if it was cached, 4007# so that the user can short-circuit this test for compilers unknown to 4008# Autoconf. 4009for ac_file in $ac_files '' 4010do 4011 test -f "$ac_file" || continue 4012 case $ac_file in 4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4014 ;; 4015 [ab].out ) 4016 # We found the default executable, but exeext='' is most 4017 # certainly right. 4018 break;; 4019 *.* ) 4020 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4021 then :; else 4022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4023 fi 4024 # We set ac_cv_exeext here because the later test for it is not 4025 # safe: cross compilers may not add the suffix if given an `-o' 4026 # argument, so we may need to know it at that point already. 4027 # Even if this section looks crufty: it has the advantage of 4028 # actually working. 4029 break;; 4030 * ) 4031 break;; 4032 esac 4033done 4034test "$ac_cv_exeext" = no && ac_cv_exeext= 4035 4036else $as_nop 4037 ac_file='' 4038fi 4039if test -z "$ac_file" 4040then : 4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4042printf "%s\n" "no" >&6; } 4043printf "%s\n" "$as_me: failed program was:" >&5 4044sed 's/^/| /' conftest.$ac_ext >&5 4045 4046{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4047printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4048as_fn_error 77 "C compiler cannot create executables 4049See \`config.log' for more details" "$LINENO" 5; } 4050else $as_nop 4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4052printf "%s\n" "yes" >&6; } 4053fi 4054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4055printf %s "checking for C compiler default output file name... " >&6; } 4056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4057printf "%s\n" "$ac_file" >&6; } 4058ac_exeext=$ac_cv_exeext 4059 4060rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4061ac_clean_files=$ac_clean_files_save 4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4063printf %s "checking for suffix of executables... " >&6; } 4064if { { ac_try="$ac_link" 4065case "(($ac_try" in 4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4067 *) ac_try_echo=$ac_try;; 4068esac 4069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4070printf "%s\n" "$ac_try_echo"; } >&5 4071 (eval "$ac_link") 2>&5 4072 ac_status=$? 4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4074 test $ac_status = 0; } 4075then : 4076 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4077# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4078# work properly (i.e., refer to `conftest.exe'), while it won't with 4079# `rm'. 4080for ac_file in conftest.exe conftest conftest.*; do 4081 test -f "$ac_file" || continue 4082 case $ac_file in 4083 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4084 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4085 break;; 4086 * ) break;; 4087 esac 4088done 4089else $as_nop 4090 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4091printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4092as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4093See \`config.log' for more details" "$LINENO" 5; } 4094fi 4095rm -f conftest conftest$ac_cv_exeext 4096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4097printf "%s\n" "$ac_cv_exeext" >&6; } 4098 4099rm -f conftest.$ac_ext 4100EXEEXT=$ac_cv_exeext 4101ac_exeext=$EXEEXT 4102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4103/* end confdefs.h. */ 4104#include <stdio.h> 4105int 4106main (void) 4107{ 4108FILE *f = fopen ("conftest.out", "w"); 4109 return ferror (f) || fclose (f) != 0; 4110 4111 ; 4112 return 0; 4113} 4114_ACEOF 4115ac_clean_files="$ac_clean_files conftest.out" 4116# Check that the compiler produces executables we can run. If not, either 4117# the compiler is broken, or we cross compile. 4118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4119printf %s "checking whether we are cross compiling... " >&6; } 4120if test "$cross_compiling" != yes; then 4121 { { ac_try="$ac_link" 4122case "(($ac_try" in 4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4124 *) ac_try_echo=$ac_try;; 4125esac 4126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4127printf "%s\n" "$ac_try_echo"; } >&5 4128 (eval "$ac_link") 2>&5 4129 ac_status=$? 4130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4131 test $ac_status = 0; } 4132 if { ac_try='./conftest$ac_cv_exeext' 4133 { { case "(($ac_try" in 4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4135 *) ac_try_echo=$ac_try;; 4136esac 4137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4138printf "%s\n" "$ac_try_echo"; } >&5 4139 (eval "$ac_try") 2>&5 4140 ac_status=$? 4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4142 test $ac_status = 0; }; }; then 4143 cross_compiling=no 4144 else 4145 if test "$cross_compiling" = maybe; then 4146 cross_compiling=yes 4147 else 4148 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4149printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4150as_fn_error 77 "cannot run C compiled programs. 4151If you meant to cross compile, use \`--host'. 4152See \`config.log' for more details" "$LINENO" 5; } 4153 fi 4154 fi 4155fi 4156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4157printf "%s\n" "$cross_compiling" >&6; } 4158 4159rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4160ac_clean_files=$ac_clean_files_save 4161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4162printf %s "checking for suffix of object files... " >&6; } 4163if test ${ac_cv_objext+y} 4164then : 4165 printf %s "(cached) " >&6 4166else $as_nop 4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4168/* end confdefs.h. */ 4169 4170int 4171main (void) 4172{ 4173 4174 ; 4175 return 0; 4176} 4177_ACEOF 4178rm -f conftest.o conftest.obj 4179if { { ac_try="$ac_compile" 4180case "(($ac_try" in 4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4182 *) ac_try_echo=$ac_try;; 4183esac 4184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4185printf "%s\n" "$ac_try_echo"; } >&5 4186 (eval "$ac_compile") 2>&5 4187 ac_status=$? 4188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4189 test $ac_status = 0; } 4190then : 4191 for ac_file in conftest.o conftest.obj conftest.*; do 4192 test -f "$ac_file" || continue; 4193 case $ac_file in 4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4195 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4196 break;; 4197 esac 4198done 4199else $as_nop 4200 printf "%s\n" "$as_me: failed program was:" >&5 4201sed 's/^/| /' conftest.$ac_ext >&5 4202 4203{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4204printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4205as_fn_error $? "cannot compute suffix of object files: cannot compile 4206See \`config.log' for more details" "$LINENO" 5; } 4207fi 4208rm -f conftest.$ac_cv_objext conftest.$ac_ext 4209fi 4210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4211printf "%s\n" "$ac_cv_objext" >&6; } 4212OBJEXT=$ac_cv_objext 4213ac_objext=$OBJEXT 4214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4215printf %s "checking whether the compiler supports GNU C... " >&6; } 4216if test ${ac_cv_c_compiler_gnu+y} 4217then : 4218 printf %s "(cached) " >&6 4219else $as_nop 4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4221/* end confdefs.h. */ 4222 4223int 4224main (void) 4225{ 4226#ifndef __GNUC__ 4227 choke me 4228#endif 4229 4230 ; 4231 return 0; 4232} 4233_ACEOF 4234if ac_fn_c_try_compile "$LINENO" 4235then : 4236 ac_compiler_gnu=yes 4237else $as_nop 4238 ac_compiler_gnu=no 4239fi 4240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4241ac_cv_c_compiler_gnu=$ac_compiler_gnu 4242 4243fi 4244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4245printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4246ac_compiler_gnu=$ac_cv_c_compiler_gnu 4247 4248if test $ac_compiler_gnu = yes; then 4249 GCC=yes 4250else 4251 GCC= 4252fi 4253ac_test_CFLAGS=${CFLAGS+y} 4254ac_save_CFLAGS=$CFLAGS 4255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4256printf %s "checking whether $CC accepts -g... " >&6; } 4257if test ${ac_cv_prog_cc_g+y} 4258then : 4259 printf %s "(cached) " >&6 4260else $as_nop 4261 ac_save_c_werror_flag=$ac_c_werror_flag 4262 ac_c_werror_flag=yes 4263 ac_cv_prog_cc_g=no 4264 CFLAGS="-g" 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266/* end confdefs.h. */ 4267 4268int 4269main (void) 4270{ 4271 4272 ; 4273 return 0; 4274} 4275_ACEOF 4276if ac_fn_c_try_compile "$LINENO" 4277then : 4278 ac_cv_prog_cc_g=yes 4279else $as_nop 4280 CFLAGS="" 4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4282/* end confdefs.h. */ 4283 4284int 4285main (void) 4286{ 4287 4288 ; 4289 return 0; 4290} 4291_ACEOF 4292if ac_fn_c_try_compile "$LINENO" 4293then : 4294 4295else $as_nop 4296 ac_c_werror_flag=$ac_save_c_werror_flag 4297 CFLAGS="-g" 4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4299/* end confdefs.h. */ 4300 4301int 4302main (void) 4303{ 4304 4305 ; 4306 return 0; 4307} 4308_ACEOF 4309if ac_fn_c_try_compile "$LINENO" 4310then : 4311 ac_cv_prog_cc_g=yes 4312fi 4313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4314fi 4315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4316fi 4317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4318 ac_c_werror_flag=$ac_save_c_werror_flag 4319fi 4320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4321printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4322if test $ac_test_CFLAGS; then 4323 CFLAGS=$ac_save_CFLAGS 4324elif test $ac_cv_prog_cc_g = yes; then 4325 if test "$GCC" = yes; then 4326 CFLAGS="-g -O2" 4327 else 4328 CFLAGS="-g" 4329 fi 4330else 4331 if test "$GCC" = yes; then 4332 CFLAGS="-O2" 4333 else 4334 CFLAGS= 4335 fi 4336fi 4337ac_prog_cc_stdc=no 4338if test x$ac_prog_cc_stdc = xno 4339then : 4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4341printf %s "checking for $CC option to enable C11 features... " >&6; } 4342if test ${ac_cv_prog_cc_c11+y} 4343then : 4344 printf %s "(cached) " >&6 4345else $as_nop 4346 ac_cv_prog_cc_c11=no 4347ac_save_CC=$CC 4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4349/* end confdefs.h. */ 4350$ac_c_conftest_c11_program 4351_ACEOF 4352for ac_arg in '' -std=gnu11 4353do 4354 CC="$ac_save_CC $ac_arg" 4355 if ac_fn_c_try_compile "$LINENO" 4356then : 4357 ac_cv_prog_cc_c11=$ac_arg 4358fi 4359rm -f core conftest.err conftest.$ac_objext conftest.beam 4360 test "x$ac_cv_prog_cc_c11" != "xno" && break 4361done 4362rm -f conftest.$ac_ext 4363CC=$ac_save_CC 4364fi 4365 4366if test "x$ac_cv_prog_cc_c11" = xno 4367then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4369printf "%s\n" "unsupported" >&6; } 4370else $as_nop 4371 if test "x$ac_cv_prog_cc_c11" = x 4372then : 4373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4374printf "%s\n" "none needed" >&6; } 4375else $as_nop 4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4377printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4378 CC="$CC $ac_cv_prog_cc_c11" 4379fi 4380 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4381 ac_prog_cc_stdc=c11 4382fi 4383fi 4384if test x$ac_prog_cc_stdc = xno 4385then : 4386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4387printf %s "checking for $CC option to enable C99 features... " >&6; } 4388if test ${ac_cv_prog_cc_c99+y} 4389then : 4390 printf %s "(cached) " >&6 4391else $as_nop 4392 ac_cv_prog_cc_c99=no 4393ac_save_CC=$CC 4394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4395/* end confdefs.h. */ 4396$ac_c_conftest_c99_program 4397_ACEOF 4398for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4399do 4400 CC="$ac_save_CC $ac_arg" 4401 if ac_fn_c_try_compile "$LINENO" 4402then : 4403 ac_cv_prog_cc_c99=$ac_arg 4404fi 4405rm -f core conftest.err conftest.$ac_objext conftest.beam 4406 test "x$ac_cv_prog_cc_c99" != "xno" && break 4407done 4408rm -f conftest.$ac_ext 4409CC=$ac_save_CC 4410fi 4411 4412if test "x$ac_cv_prog_cc_c99" = xno 4413then : 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4415printf "%s\n" "unsupported" >&6; } 4416else $as_nop 4417 if test "x$ac_cv_prog_cc_c99" = x 4418then : 4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4420printf "%s\n" "none needed" >&6; } 4421else $as_nop 4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4423printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4424 CC="$CC $ac_cv_prog_cc_c99" 4425fi 4426 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4427 ac_prog_cc_stdc=c99 4428fi 4429fi 4430if test x$ac_prog_cc_stdc = xno 4431then : 4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4433printf %s "checking for $CC option to enable C89 features... " >&6; } 4434if test ${ac_cv_prog_cc_c89+y} 4435then : 4436 printf %s "(cached) " >&6 4437else $as_nop 4438 ac_cv_prog_cc_c89=no 4439ac_save_CC=$CC 4440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441/* end confdefs.h. */ 4442$ac_c_conftest_c89_program 4443_ACEOF 4444for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4445do 4446 CC="$ac_save_CC $ac_arg" 4447 if ac_fn_c_try_compile "$LINENO" 4448then : 4449 ac_cv_prog_cc_c89=$ac_arg 4450fi 4451rm -f core conftest.err conftest.$ac_objext conftest.beam 4452 test "x$ac_cv_prog_cc_c89" != "xno" && break 4453done 4454rm -f conftest.$ac_ext 4455CC=$ac_save_CC 4456fi 4457 4458if test "x$ac_cv_prog_cc_c89" = xno 4459then : 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4461printf "%s\n" "unsupported" >&6; } 4462else $as_nop 4463 if test "x$ac_cv_prog_cc_c89" = x 4464then : 4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4466printf "%s\n" "none needed" >&6; } 4467else $as_nop 4468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4469printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4470 CC="$CC $ac_cv_prog_cc_c89" 4471fi 4472 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4473 ac_prog_cc_stdc=c89 4474fi 4475fi 4476 4477ac_ext=c 4478ac_cpp='$CPP $CPPFLAGS' 4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4481ac_compiler_gnu=$ac_cv_c_compiler_gnu 4482 4483 4484 ac_ext=c 4485ac_cpp='$CPP $CPPFLAGS' 4486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4488ac_compiler_gnu=$ac_cv_c_compiler_gnu 4489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4490printf %s "checking whether $CC understands -c and -o together... " >&6; } 4491if test ${am_cv_prog_cc_c_o+y} 4492then : 4493 printf %s "(cached) " >&6 4494else $as_nop 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496/* end confdefs.h. */ 4497 4498int 4499main (void) 4500{ 4501 4502 ; 4503 return 0; 4504} 4505_ACEOF 4506 # Make sure it works both with $CC and with simple cc. 4507 # Following AC_PROG_CC_C_O, we do the test twice because some 4508 # compilers refuse to overwrite an existing .o file with -o, 4509 # though they will create one. 4510 am_cv_prog_cc_c_o=yes 4511 for am_i in 1 2; do 4512 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4513 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4514 ac_status=$? 4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4516 (exit $ac_status); } \ 4517 && test -f conftest2.$ac_objext; then 4518 : OK 4519 else 4520 am_cv_prog_cc_c_o=no 4521 break 4522 fi 4523 done 4524 rm -f core conftest* 4525 unset am_i 4526fi 4527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4528printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4529if test "$am_cv_prog_cc_c_o" != yes; then 4530 # Losing compiler, so override with the script. 4531 # FIXME: It is wrong to rewrite CC. 4532 # But if we don't then we get into trouble of one sort or another. 4533 # A longer-term fix would be to have automake use am__CC in this case, 4534 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4535 CC="$am_aux_dir/compile $CC" 4536fi 4537ac_ext=c 4538ac_cpp='$CPP $CPPFLAGS' 4539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4541ac_compiler_gnu=$ac_cv_c_compiler_gnu 4542 4543 4544depcc="$CC" am_compiler_list= 4545 4546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4547printf %s "checking dependency style of $depcc... " >&6; } 4548if test ${am_cv_CC_dependencies_compiler_type+y} 4549then : 4550 printf %s "(cached) " >&6 4551else $as_nop 4552 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4553 # We make a subdir and do the tests there. Otherwise we can end up 4554 # making bogus files that we don't know about and never remove. For 4555 # instance it was reported that on HP-UX the gcc test will end up 4556 # making a dummy file named 'D' -- because '-MD' means "put the output 4557 # in D". 4558 rm -rf conftest.dir 4559 mkdir conftest.dir 4560 # Copy depcomp to subdir because otherwise we won't find it if we're 4561 # using a relative directory. 4562 cp "$am_depcomp" conftest.dir 4563 cd conftest.dir 4564 # We will build objects and dependencies in a subdirectory because 4565 # it helps to detect inapplicable dependency modes. For instance 4566 # both Tru64's cc and ICC support -MD to output dependencies as a 4567 # side effect of compilation, but ICC will put the dependencies in 4568 # the current directory while Tru64 will put them in the object 4569 # directory. 4570 mkdir sub 4571 4572 am_cv_CC_dependencies_compiler_type=none 4573 if test "$am_compiler_list" = ""; then 4574 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4575 fi 4576 am__universal=false 4577 case " $depcc " in #( 4578 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4579 esac 4580 4581 for depmode in $am_compiler_list; do 4582 # Setup a source with many dependencies, because some compilers 4583 # like to wrap large dependency lists on column 80 (with \), and 4584 # we should not choose a depcomp mode which is confused by this. 4585 # 4586 # We need to recreate these files for each test, as the compiler may 4587 # overwrite some of them when testing with obscure command lines. 4588 # This happens at least with the AIX C compiler. 4589 : > sub/conftest.c 4590 for i in 1 2 3 4 5 6; do 4591 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4592 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4593 # Solaris 10 /bin/sh. 4594 echo '/* dummy */' > sub/conftst$i.h 4595 done 4596 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4597 4598 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4599 # mode. It turns out that the SunPro C++ compiler does not properly 4600 # handle '-M -o', and we need to detect this. Also, some Intel 4601 # versions had trouble with output in subdirs. 4602 am__obj=sub/conftest.${OBJEXT-o} 4603 am__minus_obj="-o $am__obj" 4604 case $depmode in 4605 gcc) 4606 # This depmode causes a compiler race in universal mode. 4607 test "$am__universal" = false || continue 4608 ;; 4609 nosideeffect) 4610 # After this tag, mechanisms are not by side-effect, so they'll 4611 # only be used when explicitly requested. 4612 if test "x$enable_dependency_tracking" = xyes; then 4613 continue 4614 else 4615 break 4616 fi 4617 ;; 4618 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4619 # This compiler won't grok '-c -o', but also, the minuso test has 4620 # not run yet. These depmodes are late enough in the game, and 4621 # so weak that their functioning should not be impacted. 4622 am__obj=conftest.${OBJEXT-o} 4623 am__minus_obj= 4624 ;; 4625 none) break ;; 4626 esac 4627 if depmode=$depmode \ 4628 source=sub/conftest.c object=$am__obj \ 4629 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4630 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4631 >/dev/null 2>conftest.err && 4632 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4633 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4634 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4636 # icc doesn't choke on unknown options, it will just issue warnings 4637 # or remarks (even with -Werror). So we grep stderr for any message 4638 # that says an option was ignored or not supported. 4639 # When given -MP, icc 7.0 and 7.1 complain thusly: 4640 # icc: Command line warning: ignoring option '-M'; no argument required 4641 # The diagnosis changed in icc 8.0: 4642 # icc: Command line remark: option '-MP' not supported 4643 if (grep 'ignoring option' conftest.err || 4644 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4645 am_cv_CC_dependencies_compiler_type=$depmode 4646 break 4647 fi 4648 fi 4649 done 4650 4651 cd .. 4652 rm -rf conftest.dir 4653else 4654 am_cv_CC_dependencies_compiler_type=none 4655fi 4656 4657fi 4658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4659printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4660CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4661 4662 if 4663 test "x$enable_dependency_tracking" != xno \ 4664 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4665 am__fastdepCC_TRUE= 4666 am__fastdepCC_FALSE='#' 4667else 4668 am__fastdepCC_TRUE='#' 4669 am__fastdepCC_FALSE= 4670fi 4671 4672 4673 4674ac_header= ac_cache= 4675for ac_item in $ac_header_c_list 4676do 4677 if test $ac_cache; then 4678 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4679 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4680 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4681 fi 4682 ac_header= ac_cache= 4683 elif test $ac_header; then 4684 ac_cache=$ac_item 4685 else 4686 ac_header=$ac_item 4687 fi 4688done 4689 4690 4691 4692 4693 4694 4695 4696 4697if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4698then : 4699 4700printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4701 4702fi 4703 4704 4705 4706 4707 4708 4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4710printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4711if test ${ac_cv_safe_to_define___extensions__+y} 4712then : 4713 printf %s "(cached) " >&6 4714else $as_nop 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716/* end confdefs.h. */ 4717 4718# define __EXTENSIONS__ 1 4719 $ac_includes_default 4720int 4721main (void) 4722{ 4723 4724 ; 4725 return 0; 4726} 4727_ACEOF 4728if ac_fn_c_try_compile "$LINENO" 4729then : 4730 ac_cv_safe_to_define___extensions__=yes 4731else $as_nop 4732 ac_cv_safe_to_define___extensions__=no 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4735fi 4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4737printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4738 4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4740printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4741if test ${ac_cv_should_define__xopen_source+y} 4742then : 4743 printf %s "(cached) " >&6 4744else $as_nop 4745 ac_cv_should_define__xopen_source=no 4746 if test $ac_cv_header_wchar_h = yes 4747then : 4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4749/* end confdefs.h. */ 4750 4751 #include <wchar.h> 4752 mbstate_t x; 4753int 4754main (void) 4755{ 4756 4757 ; 4758 return 0; 4759} 4760_ACEOF 4761if ac_fn_c_try_compile "$LINENO" 4762then : 4763 4764else $as_nop 4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767 4768 #define _XOPEN_SOURCE 500 4769 #include <wchar.h> 4770 mbstate_t x; 4771int 4772main (void) 4773{ 4774 4775 ; 4776 return 0; 4777} 4778_ACEOF 4779if ac_fn_c_try_compile "$LINENO" 4780then : 4781 ac_cv_should_define__xopen_source=yes 4782fi 4783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4784fi 4785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4786fi 4787fi 4788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 4789printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 4790 4791 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 4792 4793 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 4794 4795 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 4796 4797 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 4798 4799 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 4800 4801 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4802 4803 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4804 4805 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4806 4807 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4808 4809 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4810 4811 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4812 4813 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4814 4815 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4816 4817 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4818 4819 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4820 4821 if test $ac_cv_header_minix_config_h = yes 4822then : 4823 MINIX=yes 4824 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4825 4826 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4827 4828 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4829 4830else $as_nop 4831 MINIX= 4832fi 4833 if test $ac_cv_safe_to_define___extensions__ = yes 4834then : 4835 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4836 4837fi 4838 if test $ac_cv_should_define__xopen_source = yes 4839then : 4840 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4841 4842fi 4843 4844 4845# Initialize libtool 4846case `pwd` in 4847 *\ * | *\ *) 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4849printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4850esac 4851 4852 4853 4854macro_version='2.4.7' 4855macro_revision='2.4.7' 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870ltmain=$ac_aux_dir/ltmain.sh 4871 4872 4873 4874 # Make sure we can run config.sub. 4875$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4876 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4877 4878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4879printf %s "checking build system type... " >&6; } 4880if test ${ac_cv_build+y} 4881then : 4882 printf %s "(cached) " >&6 4883else $as_nop 4884 ac_build_alias=$build_alias 4885test "x$ac_build_alias" = x && 4886 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4887test "x$ac_build_alias" = x && 4888 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4889ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4890 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4891 4892fi 4893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4894printf "%s\n" "$ac_cv_build" >&6; } 4895case $ac_cv_build in 4896*-*-*) ;; 4897*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4898esac 4899build=$ac_cv_build 4900ac_save_IFS=$IFS; IFS='-' 4901set x $ac_cv_build 4902shift 4903build_cpu=$1 4904build_vendor=$2 4905shift; shift 4906# Remember, the first character of IFS is used to create $*, 4907# except with old shells: 4908build_os=$* 4909IFS=$ac_save_IFS 4910case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4911 4912 4913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4914printf %s "checking host system type... " >&6; } 4915if test ${ac_cv_host+y} 4916then : 4917 printf %s "(cached) " >&6 4918else $as_nop 4919 if test "x$host_alias" = x; then 4920 ac_cv_host=$ac_cv_build 4921else 4922 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4923 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4924fi 4925 4926fi 4927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4928printf "%s\n" "$ac_cv_host" >&6; } 4929case $ac_cv_host in 4930*-*-*) ;; 4931*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4932esac 4933host=$ac_cv_host 4934ac_save_IFS=$IFS; IFS='-' 4935set x $ac_cv_host 4936shift 4937host_cpu=$1 4938host_vendor=$2 4939shift; shift 4940# Remember, the first character of IFS is used to create $*, 4941# except with old shells: 4942host_os=$* 4943IFS=$ac_save_IFS 4944case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4945 4946 4947# Backslashify metacharacters that are still active within 4948# double-quoted strings. 4949sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4950 4951# Same as above, but do not quote variable references. 4952double_quote_subst='s/\(["`\\]\)/\\\1/g' 4953 4954# Sed substitution to delay expansion of an escaped shell variable in a 4955# double_quote_subst'ed string. 4956delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4957 4958# Sed substitution to delay expansion of an escaped single quote. 4959delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4960 4961# Sed substitution to avoid accidental globbing in evaled expressions 4962no_glob_subst='s/\*/\\\*/g' 4963 4964ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4965ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4966ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4967 4968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4969printf %s "checking how to print strings... " >&6; } 4970# Test print first, because it will be a builtin if present. 4971if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4972 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4973 ECHO='print -r --' 4974elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4975 ECHO='printf %s\n' 4976else 4977 # Use this function as a fallback that always works. 4978 func_fallback_echo () 4979 { 4980 eval 'cat <<_LTECHO_EOF 4981$1 4982_LTECHO_EOF' 4983 } 4984 ECHO='func_fallback_echo' 4985fi 4986 4987# func_echo_all arg... 4988# Invoke $ECHO with all args, space-separated. 4989func_echo_all () 4990{ 4991 $ECHO "" 4992} 4993 4994case $ECHO in 4995 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4996printf "%s\n" "printf" >&6; } ;; 4997 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4998printf "%s\n" "print -r" >&6; } ;; 4999 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5000printf "%s\n" "cat" >&6; } ;; 5001esac 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5017printf %s "checking for a sed that does not truncate output... " >&6; } 5018if test ${ac_cv_path_SED+y} 5019then : 5020 printf %s "(cached) " >&6 5021else $as_nop 5022 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5023 for ac_i in 1 2 3 4 5 6 7; do 5024 ac_script="$ac_script$as_nl$ac_script" 5025 done 5026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5027 { ac_script=; unset ac_script;} 5028 if test -z "$SED"; then 5029 ac_path_SED_found=false 5030 # Loop through the user's path and test for each of PROGNAME-LIST 5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5032for as_dir in $PATH 5033do 5034 IFS=$as_save_IFS 5035 case $as_dir in #((( 5036 '') as_dir=./ ;; 5037 */) ;; 5038 *) as_dir=$as_dir/ ;; 5039 esac 5040 for ac_prog in sed gsed 5041 do 5042 for ac_exec_ext in '' $ac_executable_extensions; do 5043 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5044 as_fn_executable_p "$ac_path_SED" || continue 5045# Check for GNU ac_path_SED and select it if it is found. 5046 # Check for GNU $ac_path_SED 5047case `"$ac_path_SED" --version 2>&1` in 5048*GNU*) 5049 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5050*) 5051 ac_count=0 5052 printf %s 0123456789 >"conftest.in" 5053 while : 5054 do 5055 cat "conftest.in" "conftest.in" >"conftest.tmp" 5056 mv "conftest.tmp" "conftest.in" 5057 cp "conftest.in" "conftest.nl" 5058 printf "%s\n" '' >> "conftest.nl" 5059 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5061 as_fn_arith $ac_count + 1 && ac_count=$as_val 5062 if test $ac_count -gt ${ac_path_SED_max-0}; then 5063 # Best one so far, save it but keep looking for a better one 5064 ac_cv_path_SED="$ac_path_SED" 5065 ac_path_SED_max=$ac_count 5066 fi 5067 # 10*(2^10) chars as input seems more than enough 5068 test $ac_count -gt 10 && break 5069 done 5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5071esac 5072 5073 $ac_path_SED_found && break 3 5074 done 5075 done 5076 done 5077IFS=$as_save_IFS 5078 if test -z "$ac_cv_path_SED"; then 5079 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5080 fi 5081else 5082 ac_cv_path_SED=$SED 5083fi 5084 5085fi 5086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5087printf "%s\n" "$ac_cv_path_SED" >&6; } 5088 SED="$ac_cv_path_SED" 5089 rm -f conftest.sed 5090 5091test -z "$SED" && SED=sed 5092Xsed="$SED -e 1s/^X//" 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5105printf %s "checking for grep that handles long lines and -e... " >&6; } 5106if test ${ac_cv_path_GREP+y} 5107then : 5108 printf %s "(cached) " >&6 5109else $as_nop 5110 if test -z "$GREP"; then 5111 ac_path_GREP_found=false 5112 # Loop through the user's path and test for each of PROGNAME-LIST 5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5114for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5115do 5116 IFS=$as_save_IFS 5117 case $as_dir in #((( 5118 '') as_dir=./ ;; 5119 */) ;; 5120 *) as_dir=$as_dir/ ;; 5121 esac 5122 for ac_prog in grep ggrep 5123 do 5124 for ac_exec_ext in '' $ac_executable_extensions; do 5125 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5126 as_fn_executable_p "$ac_path_GREP" || continue 5127# Check for GNU ac_path_GREP and select it if it is found. 5128 # Check for GNU $ac_path_GREP 5129case `"$ac_path_GREP" --version 2>&1` in 5130*GNU*) 5131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5132*) 5133 ac_count=0 5134 printf %s 0123456789 >"conftest.in" 5135 while : 5136 do 5137 cat "conftest.in" "conftest.in" >"conftest.tmp" 5138 mv "conftest.tmp" "conftest.in" 5139 cp "conftest.in" "conftest.nl" 5140 printf "%s\n" 'GREP' >> "conftest.nl" 5141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5143 as_fn_arith $ac_count + 1 && ac_count=$as_val 5144 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5145 # Best one so far, save it but keep looking for a better one 5146 ac_cv_path_GREP="$ac_path_GREP" 5147 ac_path_GREP_max=$ac_count 5148 fi 5149 # 10*(2^10) chars as input seems more than enough 5150 test $ac_count -gt 10 && break 5151 done 5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5153esac 5154 5155 $ac_path_GREP_found && break 3 5156 done 5157 done 5158 done 5159IFS=$as_save_IFS 5160 if test -z "$ac_cv_path_GREP"; then 5161 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5162 fi 5163else 5164 ac_cv_path_GREP=$GREP 5165fi 5166 5167fi 5168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5169printf "%s\n" "$ac_cv_path_GREP" >&6; } 5170 GREP="$ac_cv_path_GREP" 5171 5172 5173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5174printf %s "checking for egrep... " >&6; } 5175if test ${ac_cv_path_EGREP+y} 5176then : 5177 printf %s "(cached) " >&6 5178else $as_nop 5179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5180 then ac_cv_path_EGREP="$GREP -E" 5181 else 5182 if test -z "$EGREP"; then 5183 ac_path_EGREP_found=false 5184 # Loop through the user's path and test for each of PROGNAME-LIST 5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5187do 5188 IFS=$as_save_IFS 5189 case $as_dir in #((( 5190 '') as_dir=./ ;; 5191 */) ;; 5192 *) as_dir=$as_dir/ ;; 5193 esac 5194 for ac_prog in egrep 5195 do 5196 for ac_exec_ext in '' $ac_executable_extensions; do 5197 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5198 as_fn_executable_p "$ac_path_EGREP" || continue 5199# Check for GNU ac_path_EGREP and select it if it is found. 5200 # Check for GNU $ac_path_EGREP 5201case `"$ac_path_EGREP" --version 2>&1` in 5202*GNU*) 5203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5204*) 5205 ac_count=0 5206 printf %s 0123456789 >"conftest.in" 5207 while : 5208 do 5209 cat "conftest.in" "conftest.in" >"conftest.tmp" 5210 mv "conftest.tmp" "conftest.in" 5211 cp "conftest.in" "conftest.nl" 5212 printf "%s\n" 'EGREP' >> "conftest.nl" 5213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5215 as_fn_arith $ac_count + 1 && ac_count=$as_val 5216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5217 # Best one so far, save it but keep looking for a better one 5218 ac_cv_path_EGREP="$ac_path_EGREP" 5219 ac_path_EGREP_max=$ac_count 5220 fi 5221 # 10*(2^10) chars as input seems more than enough 5222 test $ac_count -gt 10 && break 5223 done 5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5225esac 5226 5227 $ac_path_EGREP_found && break 3 5228 done 5229 done 5230 done 5231IFS=$as_save_IFS 5232 if test -z "$ac_cv_path_EGREP"; then 5233 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5234 fi 5235else 5236 ac_cv_path_EGREP=$EGREP 5237fi 5238 5239 fi 5240fi 5241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5242printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5243 EGREP="$ac_cv_path_EGREP" 5244 5245 5246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5247printf %s "checking for fgrep... " >&6; } 5248if test ${ac_cv_path_FGREP+y} 5249then : 5250 printf %s "(cached) " >&6 5251else $as_nop 5252 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5253 then ac_cv_path_FGREP="$GREP -F" 5254 else 5255 if test -z "$FGREP"; then 5256 ac_path_FGREP_found=false 5257 # Loop through the user's path and test for each of PROGNAME-LIST 5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5259for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5260do 5261 IFS=$as_save_IFS 5262 case $as_dir in #((( 5263 '') as_dir=./ ;; 5264 */) ;; 5265 *) as_dir=$as_dir/ ;; 5266 esac 5267 for ac_prog in fgrep 5268 do 5269 for ac_exec_ext in '' $ac_executable_extensions; do 5270 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5271 as_fn_executable_p "$ac_path_FGREP" || continue 5272# Check for GNU ac_path_FGREP and select it if it is found. 5273 # Check for GNU $ac_path_FGREP 5274case `"$ac_path_FGREP" --version 2>&1` in 5275*GNU*) 5276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5277*) 5278 ac_count=0 5279 printf %s 0123456789 >"conftest.in" 5280 while : 5281 do 5282 cat "conftest.in" "conftest.in" >"conftest.tmp" 5283 mv "conftest.tmp" "conftest.in" 5284 cp "conftest.in" "conftest.nl" 5285 printf "%s\n" 'FGREP' >> "conftest.nl" 5286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5288 as_fn_arith $ac_count + 1 && ac_count=$as_val 5289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5290 # Best one so far, save it but keep looking for a better one 5291 ac_cv_path_FGREP="$ac_path_FGREP" 5292 ac_path_FGREP_max=$ac_count 5293 fi 5294 # 10*(2^10) chars as input seems more than enough 5295 test $ac_count -gt 10 && break 5296 done 5297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5298esac 5299 5300 $ac_path_FGREP_found && break 3 5301 done 5302 done 5303 done 5304IFS=$as_save_IFS 5305 if test -z "$ac_cv_path_FGREP"; then 5306 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5307 fi 5308else 5309 ac_cv_path_FGREP=$FGREP 5310fi 5311 5312 fi 5313fi 5314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5315printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5316 FGREP="$ac_cv_path_FGREP" 5317 5318 5319test -z "$GREP" && GREP=grep 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339# Check whether --with-gnu-ld was given. 5340if test ${with_gnu_ld+y} 5341then : 5342 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5343else $as_nop 5344 with_gnu_ld=no 5345fi 5346 5347ac_prog=ld 5348if test yes = "$GCC"; then 5349 # Check if gcc -print-prog-name=ld gives a path. 5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5351printf %s "checking for ld used by $CC... " >&6; } 5352 case $host in 5353 *-*-mingw*) 5354 # gcc leaves a trailing carriage return, which upsets mingw 5355 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5356 *) 5357 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5358 esac 5359 case $ac_prog in 5360 # Accept absolute paths. 5361 [\\/]* | ?:[\\/]*) 5362 re_direlt='/[^/][^/]*/\.\./' 5363 # Canonicalize the pathname of ld 5364 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5365 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5366 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5367 done 5368 test -z "$LD" && LD=$ac_prog 5369 ;; 5370 "") 5371 # If it fails, then pretend we aren't using GCC. 5372 ac_prog=ld 5373 ;; 5374 *) 5375 # If it is relative, then search for the first ld in PATH. 5376 with_gnu_ld=unknown 5377 ;; 5378 esac 5379elif test yes = "$with_gnu_ld"; then 5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5381printf %s "checking for GNU ld... " >&6; } 5382else 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5384printf %s "checking for non-GNU ld... " >&6; } 5385fi 5386if test ${lt_cv_path_LD+y} 5387then : 5388 printf %s "(cached) " >&6 5389else $as_nop 5390 if test -z "$LD"; then 5391 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5392 for ac_dir in $PATH; do 5393 IFS=$lt_save_ifs 5394 test -z "$ac_dir" && ac_dir=. 5395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5396 lt_cv_path_LD=$ac_dir/$ac_prog 5397 # Check to see if the program is GNU ld. I'd rather use --version, 5398 # but apparently some variants of GNU ld only accept -v. 5399 # Break only if it was the GNU/non-GNU ld that we prefer. 5400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5401 *GNU* | *'with BFD'*) 5402 test no != "$with_gnu_ld" && break 5403 ;; 5404 *) 5405 test yes != "$with_gnu_ld" && break 5406 ;; 5407 esac 5408 fi 5409 done 5410 IFS=$lt_save_ifs 5411else 5412 lt_cv_path_LD=$LD # Let the user override the test with a path. 5413fi 5414fi 5415 5416LD=$lt_cv_path_LD 5417if test -n "$LD"; then 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5419printf "%s\n" "$LD" >&6; } 5420else 5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5422printf "%s\n" "no" >&6; } 5423fi 5424test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5426printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5427if test ${lt_cv_prog_gnu_ld+y} 5428then : 5429 printf %s "(cached) " >&6 5430else $as_nop 5431 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5432case `$LD -v 2>&1 </dev/null` in 5433*GNU* | *'with BFD'*) 5434 lt_cv_prog_gnu_ld=yes 5435 ;; 5436*) 5437 lt_cv_prog_gnu_ld=no 5438 ;; 5439esac 5440fi 5441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5442printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5443with_gnu_ld=$lt_cv_prog_gnu_ld 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5454printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5455if test ${lt_cv_path_NM+y} 5456then : 5457 printf %s "(cached) " >&6 5458else $as_nop 5459 if test -n "$NM"; then 5460 # Let the user override the test. 5461 lt_cv_path_NM=$NM 5462else 5463 lt_nm_to_check=${ac_tool_prefix}nm 5464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5465 lt_nm_to_check="$lt_nm_to_check nm" 5466 fi 5467 for lt_tmp_nm in $lt_nm_to_check; do 5468 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5470 IFS=$lt_save_ifs 5471 test -z "$ac_dir" && ac_dir=. 5472 tmp_nm=$ac_dir/$lt_tmp_nm 5473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5474 # Check to see if the nm accepts a BSD-compat flag. 5475 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5476 # nm: unknown option "B" ignored 5477 # Tru64's nm complains that /dev/null is an invalid object file 5478 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5479 case $build_os in 5480 mingw*) lt_bad_file=conftest.nm/nofile ;; 5481 *) lt_bad_file=/dev/null ;; 5482 esac 5483 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5484 *$lt_bad_file* | *'Invalid file or object type'*) 5485 lt_cv_path_NM="$tmp_nm -B" 5486 break 2 5487 ;; 5488 *) 5489 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5490 */dev/null*) 5491 lt_cv_path_NM="$tmp_nm -p" 5492 break 2 5493 ;; 5494 *) 5495 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5496 continue # so that we can try to find one that supports BSD flags 5497 ;; 5498 esac 5499 ;; 5500 esac 5501 fi 5502 done 5503 IFS=$lt_save_ifs 5504 done 5505 : ${lt_cv_path_NM=no} 5506fi 5507fi 5508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5509printf "%s\n" "$lt_cv_path_NM" >&6; } 5510if test no != "$lt_cv_path_NM"; then 5511 NM=$lt_cv_path_NM 5512else 5513 # Didn't find any BSD compatible name lister, look for dumpbin. 5514 if test -n "$DUMPBIN"; then : 5515 # Let the user override the test. 5516 else 5517 if test -n "$ac_tool_prefix"; then 5518 for ac_prog in dumpbin "link -dump" 5519 do 5520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5521set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5523printf %s "checking for $ac_word... " >&6; } 5524if test ${ac_cv_prog_DUMPBIN+y} 5525then : 5526 printf %s "(cached) " >&6 5527else $as_nop 5528 if test -n "$DUMPBIN"; then 5529 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5530else 5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5532for as_dir in $PATH 5533do 5534 IFS=$as_save_IFS 5535 case $as_dir in #((( 5536 '') as_dir=./ ;; 5537 */) ;; 5538 *) as_dir=$as_dir/ ;; 5539 esac 5540 for ac_exec_ext in '' $ac_executable_extensions; do 5541 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5542 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5544 break 2 5545 fi 5546done 5547 done 5548IFS=$as_save_IFS 5549 5550fi 5551fi 5552DUMPBIN=$ac_cv_prog_DUMPBIN 5553if test -n "$DUMPBIN"; then 5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5555printf "%s\n" "$DUMPBIN" >&6; } 5556else 5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5558printf "%s\n" "no" >&6; } 5559fi 5560 5561 5562 test -n "$DUMPBIN" && break 5563 done 5564fi 5565if test -z "$DUMPBIN"; then 5566 ac_ct_DUMPBIN=$DUMPBIN 5567 for ac_prog in dumpbin "link -dump" 5568do 5569 # Extract the first word of "$ac_prog", so it can be a program name with args. 5570set dummy $ac_prog; ac_word=$2 5571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5572printf %s "checking for $ac_word... " >&6; } 5573if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5574then : 5575 printf %s "(cached) " >&6 5576else $as_nop 5577 if test -n "$ac_ct_DUMPBIN"; then 5578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5579else 5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5581for as_dir in $PATH 5582do 5583 IFS=$as_save_IFS 5584 case $as_dir in #((( 5585 '') as_dir=./ ;; 5586 */) ;; 5587 *) as_dir=$as_dir/ ;; 5588 esac 5589 for ac_exec_ext in '' $ac_executable_extensions; do 5590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5591 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5593 break 2 5594 fi 5595done 5596 done 5597IFS=$as_save_IFS 5598 5599fi 5600fi 5601ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5602if test -n "$ac_ct_DUMPBIN"; then 5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5604printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5605else 5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5607printf "%s\n" "no" >&6; } 5608fi 5609 5610 5611 test -n "$ac_ct_DUMPBIN" && break 5612done 5613 5614 if test "x$ac_ct_DUMPBIN" = x; then 5615 DUMPBIN=":" 5616 else 5617 case $cross_compiling:$ac_tool_warned in 5618yes:) 5619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5620printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5621ac_tool_warned=yes ;; 5622esac 5623 DUMPBIN=$ac_ct_DUMPBIN 5624 fi 5625fi 5626 5627 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5628 *COFF*) 5629 DUMPBIN="$DUMPBIN -symbols -headers" 5630 ;; 5631 *) 5632 DUMPBIN=: 5633 ;; 5634 esac 5635 fi 5636 5637 if test : != "$DUMPBIN"; then 5638 NM=$DUMPBIN 5639 fi 5640fi 5641test -z "$NM" && NM=nm 5642 5643 5644 5645 5646 5647 5648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5649printf %s "checking the name lister ($NM) interface... " >&6; } 5650if test ${lt_cv_nm_interface+y} 5651then : 5652 printf %s "(cached) " >&6 5653else $as_nop 5654 lt_cv_nm_interface="BSD nm" 5655 echo "int some_variable = 0;" > conftest.$ac_ext 5656 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5657 (eval "$ac_compile" 2>conftest.err) 5658 cat conftest.err >&5 5659 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5660 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5661 cat conftest.err >&5 5662 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5663 cat conftest.out >&5 5664 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5665 lt_cv_nm_interface="MS dumpbin" 5666 fi 5667 rm -f conftest* 5668fi 5669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5670printf "%s\n" "$lt_cv_nm_interface" >&6; } 5671 5672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5673printf %s "checking whether ln -s works... " >&6; } 5674LN_S=$as_ln_s 5675if test "$LN_S" = "ln -s"; then 5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5677printf "%s\n" "yes" >&6; } 5678else 5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5680printf "%s\n" "no, using $LN_S" >&6; } 5681fi 5682 5683# find the maximum length of command line arguments 5684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5685printf %s "checking the maximum length of command line arguments... " >&6; } 5686if test ${lt_cv_sys_max_cmd_len+y} 5687then : 5688 printf %s "(cached) " >&6 5689else $as_nop 5690 i=0 5691 teststring=ABCD 5692 5693 case $build_os in 5694 msdosdjgpp*) 5695 # On DJGPP, this test can blow up pretty badly due to problems in libc 5696 # (any single argument exceeding 2000 bytes causes a buffer overrun 5697 # during glob expansion). Even if it were fixed, the result of this 5698 # check would be larger than it should be. 5699 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5700 ;; 5701 5702 gnu*) 5703 # Under GNU Hurd, this test is not required because there is 5704 # no limit to the length of command line arguments. 5705 # Libtool will interpret -1 as no limit whatsoever 5706 lt_cv_sys_max_cmd_len=-1; 5707 ;; 5708 5709 cygwin* | mingw* | cegcc*) 5710 # On Win9x/ME, this test blows up -- it succeeds, but takes 5711 # about 5 minutes as the teststring grows exponentially. 5712 # Worse, since 9x/ME are not pre-emptively multitasking, 5713 # you end up with a "frozen" computer, even though with patience 5714 # the test eventually succeeds (with a max line length of 256k). 5715 # Instead, let's just punt: use the minimum linelength reported by 5716 # all of the supported platforms: 8192 (on NT/2K/XP). 5717 lt_cv_sys_max_cmd_len=8192; 5718 ;; 5719 5720 mint*) 5721 # On MiNT this can take a long time and run out of memory. 5722 lt_cv_sys_max_cmd_len=8192; 5723 ;; 5724 5725 amigaos*) 5726 # On AmigaOS with pdksh, this test takes hours, literally. 5727 # So we just punt and use a minimum line length of 8192. 5728 lt_cv_sys_max_cmd_len=8192; 5729 ;; 5730 5731 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5732 # This has been around since 386BSD, at least. Likely further. 5733 if test -x /sbin/sysctl; then 5734 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5735 elif test -x /usr/sbin/sysctl; then 5736 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5737 else 5738 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5739 fi 5740 # And add a safety zone 5741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5743 ;; 5744 5745 interix*) 5746 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5747 lt_cv_sys_max_cmd_len=196608 5748 ;; 5749 5750 os2*) 5751 # The test takes a long time on OS/2. 5752 lt_cv_sys_max_cmd_len=8192 5753 ;; 5754 5755 osf*) 5756 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5757 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5758 # nice to cause kernel panics so lets avoid the loop below. 5759 # First set a reasonable default. 5760 lt_cv_sys_max_cmd_len=16384 5761 # 5762 if test -x /sbin/sysconfig; then 5763 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5764 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5765 esac 5766 fi 5767 ;; 5768 sco3.2v5*) 5769 lt_cv_sys_max_cmd_len=102400 5770 ;; 5771 sysv5* | sco5v6* | sysv4.2uw2*) 5772 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5773 if test -n "$kargmax"; then 5774 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5775 else 5776 lt_cv_sys_max_cmd_len=32768 5777 fi 5778 ;; 5779 *) 5780 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5781 if test -n "$lt_cv_sys_max_cmd_len" && \ 5782 test undefined != "$lt_cv_sys_max_cmd_len"; then 5783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5785 else 5786 # Make teststring a little bigger before we do anything with it. 5787 # a 1K string should be a reasonable start. 5788 for i in 1 2 3 4 5 6 7 8; do 5789 teststring=$teststring$teststring 5790 done 5791 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5792 # If test is not a shell built-in, we'll probably end up computing a 5793 # maximum length that is only half of the actual maximum length, but 5794 # we can't tell. 5795 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5796 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5797 test 17 != "$i" # 1/2 MB should be enough 5798 do 5799 i=`expr $i + 1` 5800 teststring=$teststring$teststring 5801 done 5802 # Only check the string length outside the loop. 5803 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5804 teststring= 5805 # Add a significant safety factor because C++ compilers can tack on 5806 # massive amounts of additional arguments before passing them to the 5807 # linker. It appears as though 1/2 is a usable value. 5808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5809 fi 5810 ;; 5811 esac 5812 5813fi 5814 5815if test -n "$lt_cv_sys_max_cmd_len"; then 5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5817printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5818else 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5820printf "%s\n" "none" >&6; } 5821fi 5822max_cmd_len=$lt_cv_sys_max_cmd_len 5823 5824 5825 5826 5827 5828 5829: ${CP="cp -f"} 5830: ${MV="mv -f"} 5831: ${RM="rm -f"} 5832 5833if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5834 lt_unset=unset 5835else 5836 lt_unset=false 5837fi 5838 5839 5840 5841 5842 5843# test EBCDIC or ASCII 5844case `echo X|tr X '\101'` in 5845 A) # ASCII based system 5846 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5847 lt_SP2NL='tr \040 \012' 5848 lt_NL2SP='tr \015\012 \040\040' 5849 ;; 5850 *) # EBCDIC based system 5851 lt_SP2NL='tr \100 \n' 5852 lt_NL2SP='tr \r\n \100\100' 5853 ;; 5854esac 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5865printf %s "checking how to convert $build file names to $host format... " >&6; } 5866if test ${lt_cv_to_host_file_cmd+y} 5867then : 5868 printf %s "(cached) " >&6 5869else $as_nop 5870 case $host in 5871 *-*-mingw* ) 5872 case $build in 5873 *-*-mingw* ) # actually msys 5874 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5875 ;; 5876 *-*-cygwin* ) 5877 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5878 ;; 5879 * ) # otherwise, assume *nix 5880 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5881 ;; 5882 esac 5883 ;; 5884 *-*-cygwin* ) 5885 case $build in 5886 *-*-mingw* ) # actually msys 5887 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5888 ;; 5889 *-*-cygwin* ) 5890 lt_cv_to_host_file_cmd=func_convert_file_noop 5891 ;; 5892 * ) # otherwise, assume *nix 5893 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5894 ;; 5895 esac 5896 ;; 5897 * ) # unhandled hosts (and "normal" native builds) 5898 lt_cv_to_host_file_cmd=func_convert_file_noop 5899 ;; 5900esac 5901 5902fi 5903 5904to_host_file_cmd=$lt_cv_to_host_file_cmd 5905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5906printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5907 5908 5909 5910 5911 5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5913printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5914if test ${lt_cv_to_tool_file_cmd+y} 5915then : 5916 printf %s "(cached) " >&6 5917else $as_nop 5918 #assume ordinary cross tools, or native build. 5919lt_cv_to_tool_file_cmd=func_convert_file_noop 5920case $host in 5921 *-*-mingw* ) 5922 case $build in 5923 *-*-mingw* ) # actually msys 5924 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5925 ;; 5926 esac 5927 ;; 5928esac 5929 5930fi 5931 5932to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5934printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5935 5936 5937 5938 5939 5940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5941printf %s "checking for $LD option to reload object files... " >&6; } 5942if test ${lt_cv_ld_reload_flag+y} 5943then : 5944 printf %s "(cached) " >&6 5945else $as_nop 5946 lt_cv_ld_reload_flag='-r' 5947fi 5948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5949printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5950reload_flag=$lt_cv_ld_reload_flag 5951case $reload_flag in 5952"" | " "*) ;; 5953*) reload_flag=" $reload_flag" ;; 5954esac 5955reload_cmds='$LD$reload_flag -o $output$reload_objs' 5956case $host_os in 5957 cygwin* | mingw* | pw32* | cegcc*) 5958 if test yes != "$GCC"; then 5959 reload_cmds=false 5960 fi 5961 ;; 5962 darwin*) 5963 if test yes = "$GCC"; then 5964 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5965 else 5966 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5967 fi 5968 ;; 5969esac 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979if test -n "$ac_tool_prefix"; then 5980 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5981set dummy ${ac_tool_prefix}file; ac_word=$2 5982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5983printf %s "checking for $ac_word... " >&6; } 5984if test ${ac_cv_prog_FILECMD+y} 5985then : 5986 printf %s "(cached) " >&6 5987else $as_nop 5988 if test -n "$FILECMD"; then 5989 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5990else 5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 case $as_dir in #((( 5996 '') as_dir=./ ;; 5997 */) ;; 5998 *) as_dir=$as_dir/ ;; 5999 esac 6000 for ac_exec_ext in '' $ac_executable_extensions; do 6001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6002 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6004 break 2 6005 fi 6006done 6007 done 6008IFS=$as_save_IFS 6009 6010fi 6011fi 6012FILECMD=$ac_cv_prog_FILECMD 6013if test -n "$FILECMD"; then 6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6015printf "%s\n" "$FILECMD" >&6; } 6016else 6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6018printf "%s\n" "no" >&6; } 6019fi 6020 6021 6022fi 6023if test -z "$ac_cv_prog_FILECMD"; then 6024 ac_ct_FILECMD=$FILECMD 6025 # Extract the first word of "file", so it can be a program name with args. 6026set dummy file; ac_word=$2 6027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6028printf %s "checking for $ac_word... " >&6; } 6029if test ${ac_cv_prog_ac_ct_FILECMD+y} 6030then : 6031 printf %s "(cached) " >&6 6032else $as_nop 6033 if test -n "$ac_ct_FILECMD"; then 6034 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6035else 6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6037for as_dir in $PATH 6038do 6039 IFS=$as_save_IFS 6040 case $as_dir in #((( 6041 '') as_dir=./ ;; 6042 */) ;; 6043 *) as_dir=$as_dir/ ;; 6044 esac 6045 for ac_exec_ext in '' $ac_executable_extensions; do 6046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6047 ac_cv_prog_ac_ct_FILECMD="file" 6048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6049 break 2 6050 fi 6051done 6052 done 6053IFS=$as_save_IFS 6054 6055fi 6056fi 6057ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6058if test -n "$ac_ct_FILECMD"; then 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6060printf "%s\n" "$ac_ct_FILECMD" >&6; } 6061else 6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6063printf "%s\n" "no" >&6; } 6064fi 6065 6066 if test "x$ac_ct_FILECMD" = x; then 6067 FILECMD=":" 6068 else 6069 case $cross_compiling:$ac_tool_warned in 6070yes:) 6071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6072printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6073ac_tool_warned=yes ;; 6074esac 6075 FILECMD=$ac_ct_FILECMD 6076 fi 6077else 6078 FILECMD="$ac_cv_prog_FILECMD" 6079fi 6080 6081 6082 6083 6084 6085 6086 6087if test -n "$ac_tool_prefix"; then 6088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6089set dummy ${ac_tool_prefix}objdump; ac_word=$2 6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6091printf %s "checking for $ac_word... " >&6; } 6092if test ${ac_cv_prog_OBJDUMP+y} 6093then : 6094 printf %s "(cached) " >&6 6095else $as_nop 6096 if test -n "$OBJDUMP"; then 6097 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6098else 6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6100for as_dir in $PATH 6101do 6102 IFS=$as_save_IFS 6103 case $as_dir in #((( 6104 '') as_dir=./ ;; 6105 */) ;; 6106 *) as_dir=$as_dir/ ;; 6107 esac 6108 for ac_exec_ext in '' $ac_executable_extensions; do 6109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6110 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6112 break 2 6113 fi 6114done 6115 done 6116IFS=$as_save_IFS 6117 6118fi 6119fi 6120OBJDUMP=$ac_cv_prog_OBJDUMP 6121if test -n "$OBJDUMP"; then 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6123printf "%s\n" "$OBJDUMP" >&6; } 6124else 6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126printf "%s\n" "no" >&6; } 6127fi 6128 6129 6130fi 6131if test -z "$ac_cv_prog_OBJDUMP"; then 6132 ac_ct_OBJDUMP=$OBJDUMP 6133 # Extract the first word of "objdump", so it can be a program name with args. 6134set dummy objdump; ac_word=$2 6135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6136printf %s "checking for $ac_word... " >&6; } 6137if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6138then : 6139 printf %s "(cached) " >&6 6140else $as_nop 6141 if test -n "$ac_ct_OBJDUMP"; then 6142 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6143else 6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6145for as_dir in $PATH 6146do 6147 IFS=$as_save_IFS 6148 case $as_dir in #((( 6149 '') as_dir=./ ;; 6150 */) ;; 6151 *) as_dir=$as_dir/ ;; 6152 esac 6153 for ac_exec_ext in '' $ac_executable_extensions; do 6154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6155 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6157 break 2 6158 fi 6159done 6160 done 6161IFS=$as_save_IFS 6162 6163fi 6164fi 6165ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6166if test -n "$ac_ct_OBJDUMP"; then 6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6168printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6169else 6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6171printf "%s\n" "no" >&6; } 6172fi 6173 6174 if test "x$ac_ct_OBJDUMP" = x; then 6175 OBJDUMP="false" 6176 else 6177 case $cross_compiling:$ac_tool_warned in 6178yes:) 6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6180printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6181ac_tool_warned=yes ;; 6182esac 6183 OBJDUMP=$ac_ct_OBJDUMP 6184 fi 6185else 6186 OBJDUMP="$ac_cv_prog_OBJDUMP" 6187fi 6188 6189test -z "$OBJDUMP" && OBJDUMP=objdump 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6200printf %s "checking how to recognize dependent libraries... " >&6; } 6201if test ${lt_cv_deplibs_check_method+y} 6202then : 6203 printf %s "(cached) " >&6 6204else $as_nop 6205 lt_cv_file_magic_cmd='$MAGIC_CMD' 6206lt_cv_file_magic_test_file= 6207lt_cv_deplibs_check_method='unknown' 6208# Need to set the preceding variable on all platforms that support 6209# interlibrary dependencies. 6210# 'none' -- dependencies not supported. 6211# 'unknown' -- same as none, but documents that we really don't know. 6212# 'pass_all' -- all dependencies passed with no checks. 6213# 'test_compile' -- check by making test program. 6214# 'file_magic [[regex]]' -- check by looking for files in library path 6215# that responds to the $file_magic_cmd with a given extended regex. 6216# If you have 'file' or equivalent on your system and you're not sure 6217# whether 'pass_all' will *always* work, you probably want this one. 6218 6219case $host_os in 6220aix[4-9]*) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223 6224beos*) 6225 lt_cv_deplibs_check_method=pass_all 6226 ;; 6227 6228bsdi[45]*) 6229 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6230 lt_cv_file_magic_cmd='$FILECMD -L' 6231 lt_cv_file_magic_test_file=/shlib/libc.so 6232 ;; 6233 6234cygwin*) 6235 # func_win32_libid is a shell function defined in ltmain.sh 6236 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6237 lt_cv_file_magic_cmd='func_win32_libid' 6238 ;; 6239 6240mingw* | pw32*) 6241 # Base MSYS/MinGW do not provide the 'file' command needed by 6242 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6243 # unless we find 'file', for example because we are cross-compiling. 6244 if ( file / ) >/dev/null 2>&1; then 6245 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6246 lt_cv_file_magic_cmd='func_win32_libid' 6247 else 6248 # Keep this pattern in sync with the one in func_win32_libid. 6249 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6250 lt_cv_file_magic_cmd='$OBJDUMP -f' 6251 fi 6252 ;; 6253 6254cegcc*) 6255 # use the weaker test based on 'objdump'. See mingw*. 6256 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6257 lt_cv_file_magic_cmd='$OBJDUMP -f' 6258 ;; 6259 6260darwin* | rhapsody*) 6261 lt_cv_deplibs_check_method=pass_all 6262 ;; 6263 6264freebsd* | dragonfly* | midnightbsd*) 6265 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6266 case $host_cpu in 6267 i*86 ) 6268 # Not sure whether the presence of OpenBSD here was a mistake. 6269 # Let's accept both of them until this is cleared up. 6270 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6271 lt_cv_file_magic_cmd=$FILECMD 6272 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6273 ;; 6274 esac 6275 else 6276 lt_cv_deplibs_check_method=pass_all 6277 fi 6278 ;; 6279 6280haiku*) 6281 lt_cv_deplibs_check_method=pass_all 6282 ;; 6283 6284hpux10.20* | hpux11*) 6285 lt_cv_file_magic_cmd=$FILECMD 6286 case $host_cpu in 6287 ia64*) 6288 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6289 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6290 ;; 6291 hppa*64*) 6292 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]' 6293 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6294 ;; 6295 *) 6296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6297 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6298 ;; 6299 esac 6300 ;; 6301 6302interix[3-9]*) 6303 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6305 ;; 6306 6307irix5* | irix6* | nonstopux*) 6308 case $LD in 6309 *-32|*"-32 ") libmagic=32-bit;; 6310 *-n32|*"-n32 ") libmagic=N32;; 6311 *-64|*"-64 ") libmagic=64-bit;; 6312 *) libmagic=never-match;; 6313 esac 6314 lt_cv_deplibs_check_method=pass_all 6315 ;; 6316 6317# This must be glibc/ELF. 6318linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6319 lt_cv_deplibs_check_method=pass_all 6320 ;; 6321 6322netbsd*) 6323 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6325 else 6326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6327 fi 6328 ;; 6329 6330newos6*) 6331 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6332 lt_cv_file_magic_cmd=$FILECMD 6333 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6334 ;; 6335 6336*nto* | *qnx*) 6337 lt_cv_deplibs_check_method=pass_all 6338 ;; 6339 6340openbsd* | bitrig*) 6341 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6343 else 6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6345 fi 6346 ;; 6347 6348osf3* | osf4* | osf5*) 6349 lt_cv_deplibs_check_method=pass_all 6350 ;; 6351 6352rdos*) 6353 lt_cv_deplibs_check_method=pass_all 6354 ;; 6355 6356solaris*) 6357 lt_cv_deplibs_check_method=pass_all 6358 ;; 6359 6360sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6361 lt_cv_deplibs_check_method=pass_all 6362 ;; 6363 6364sysv4 | sysv4.3*) 6365 case $host_vendor in 6366 motorola) 6367 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]' 6368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6369 ;; 6370 ncr) 6371 lt_cv_deplibs_check_method=pass_all 6372 ;; 6373 sequent) 6374 lt_cv_file_magic_cmd='/bin/file' 6375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6376 ;; 6377 sni) 6378 lt_cv_file_magic_cmd='/bin/file' 6379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6380 lt_cv_file_magic_test_file=/lib/libc.so 6381 ;; 6382 siemens) 6383 lt_cv_deplibs_check_method=pass_all 6384 ;; 6385 pc) 6386 lt_cv_deplibs_check_method=pass_all 6387 ;; 6388 esac 6389 ;; 6390 6391tpf*) 6392 lt_cv_deplibs_check_method=pass_all 6393 ;; 6394os2*) 6395 lt_cv_deplibs_check_method=pass_all 6396 ;; 6397esac 6398 6399fi 6400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6401printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6402 6403file_magic_glob= 6404want_nocaseglob=no 6405if test "$build" = "$host"; then 6406 case $host_os in 6407 mingw* | pw32*) 6408 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6409 want_nocaseglob=yes 6410 else 6411 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6412 fi 6413 ;; 6414 esac 6415fi 6416 6417file_magic_cmd=$lt_cv_file_magic_cmd 6418deplibs_check_method=$lt_cv_deplibs_check_method 6419test -z "$deplibs_check_method" && deplibs_check_method=unknown 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442if test -n "$ac_tool_prefix"; then 6443 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6444set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6446printf %s "checking for $ac_word... " >&6; } 6447if test ${ac_cv_prog_DLLTOOL+y} 6448then : 6449 printf %s "(cached) " >&6 6450else $as_nop 6451 if test -n "$DLLTOOL"; then 6452 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6453else 6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6455for as_dir in $PATH 6456do 6457 IFS=$as_save_IFS 6458 case $as_dir in #((( 6459 '') as_dir=./ ;; 6460 */) ;; 6461 *) as_dir=$as_dir/ ;; 6462 esac 6463 for ac_exec_ext in '' $ac_executable_extensions; do 6464 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6465 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6467 break 2 6468 fi 6469done 6470 done 6471IFS=$as_save_IFS 6472 6473fi 6474fi 6475DLLTOOL=$ac_cv_prog_DLLTOOL 6476if test -n "$DLLTOOL"; then 6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6478printf "%s\n" "$DLLTOOL" >&6; } 6479else 6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6481printf "%s\n" "no" >&6; } 6482fi 6483 6484 6485fi 6486if test -z "$ac_cv_prog_DLLTOOL"; then 6487 ac_ct_DLLTOOL=$DLLTOOL 6488 # Extract the first word of "dlltool", so it can be a program name with args. 6489set dummy dlltool; ac_word=$2 6490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6491printf %s "checking for $ac_word... " >&6; } 6492if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6493then : 6494 printf %s "(cached) " >&6 6495else $as_nop 6496 if test -n "$ac_ct_DLLTOOL"; then 6497 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6498else 6499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6500for as_dir in $PATH 6501do 6502 IFS=$as_save_IFS 6503 case $as_dir in #((( 6504 '') as_dir=./ ;; 6505 */) ;; 6506 *) as_dir=$as_dir/ ;; 6507 esac 6508 for ac_exec_ext in '' $ac_executable_extensions; do 6509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6510 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6512 break 2 6513 fi 6514done 6515 done 6516IFS=$as_save_IFS 6517 6518fi 6519fi 6520ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6521if test -n "$ac_ct_DLLTOOL"; then 6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6523printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6524else 6525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6526printf "%s\n" "no" >&6; } 6527fi 6528 6529 if test "x$ac_ct_DLLTOOL" = x; then 6530 DLLTOOL="false" 6531 else 6532 case $cross_compiling:$ac_tool_warned in 6533yes:) 6534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6536ac_tool_warned=yes ;; 6537esac 6538 DLLTOOL=$ac_ct_DLLTOOL 6539 fi 6540else 6541 DLLTOOL="$ac_cv_prog_DLLTOOL" 6542fi 6543 6544test -z "$DLLTOOL" && DLLTOOL=dlltool 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6556printf %s "checking how to associate runtime and link libraries... " >&6; } 6557if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6558then : 6559 printf %s "(cached) " >&6 6560else $as_nop 6561 lt_cv_sharedlib_from_linklib_cmd='unknown' 6562 6563case $host_os in 6564cygwin* | mingw* | pw32* | cegcc*) 6565 # two different shell functions defined in ltmain.sh; 6566 # decide which one to use based on capabilities of $DLLTOOL 6567 case `$DLLTOOL --help 2>&1` in 6568 *--identify-strict*) 6569 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6570 ;; 6571 *) 6572 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6573 ;; 6574 esac 6575 ;; 6576*) 6577 # fallback: assume linklib IS sharedlib 6578 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6579 ;; 6580esac 6581 6582fi 6583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6584printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6585sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6586test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6587 6588 6589 6590 6591 6592 6593 6594if test -n "$ac_tool_prefix"; then 6595 for ac_prog in ar 6596 do 6597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6598set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6600printf %s "checking for $ac_word... " >&6; } 6601if test ${ac_cv_prog_AR+y} 6602then : 6603 printf %s "(cached) " >&6 6604else $as_nop 6605 if test -n "$AR"; then 6606 ac_cv_prog_AR="$AR" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 case $as_dir in #((( 6613 '') as_dir=./ ;; 6614 */) ;; 6615 *) as_dir=$as_dir/ ;; 6616 esac 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6619 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623done 6624 done 6625IFS=$as_save_IFS 6626 6627fi 6628fi 6629AR=$ac_cv_prog_AR 6630if test -n "$AR"; then 6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6632printf "%s\n" "$AR" >&6; } 6633else 6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6635printf "%s\n" "no" >&6; } 6636fi 6637 6638 6639 test -n "$AR" && break 6640 done 6641fi 6642if test -z "$AR"; then 6643 ac_ct_AR=$AR 6644 for ac_prog in ar 6645do 6646 # Extract the first word of "$ac_prog", so it can be a program name with args. 6647set dummy $ac_prog; ac_word=$2 6648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6649printf %s "checking for $ac_word... " >&6; } 6650if test ${ac_cv_prog_ac_ct_AR+y} 6651then : 6652 printf %s "(cached) " >&6 6653else $as_nop 6654 if test -n "$ac_ct_AR"; then 6655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6656else 6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6658for as_dir in $PATH 6659do 6660 IFS=$as_save_IFS 6661 case $as_dir in #((( 6662 '') as_dir=./ ;; 6663 */) ;; 6664 *) as_dir=$as_dir/ ;; 6665 esac 6666 for ac_exec_ext in '' $ac_executable_extensions; do 6667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6668 ac_cv_prog_ac_ct_AR="$ac_prog" 6669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6670 break 2 6671 fi 6672done 6673 done 6674IFS=$as_save_IFS 6675 6676fi 6677fi 6678ac_ct_AR=$ac_cv_prog_ac_ct_AR 6679if test -n "$ac_ct_AR"; then 6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6681printf "%s\n" "$ac_ct_AR" >&6; } 6682else 6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6684printf "%s\n" "no" >&6; } 6685fi 6686 6687 6688 test -n "$ac_ct_AR" && break 6689done 6690 6691 if test "x$ac_ct_AR" = x; then 6692 AR="false" 6693 else 6694 case $cross_compiling:$ac_tool_warned in 6695yes:) 6696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6697printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6698ac_tool_warned=yes ;; 6699esac 6700 AR=$ac_ct_AR 6701 fi 6702fi 6703 6704: ${AR=ar} 6705 6706 6707 6708 6709 6710 6711# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6712# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6713# higher priority because thats what people were doing historically (setting 6714# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6715# variable obsoleted/removed. 6716 6717test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6718lt_ar_flags=$AR_FLAGS 6719 6720 6721 6722 6723 6724 6725# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6726# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6727 6728 6729 6730 6731 6732 6733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6734printf %s "checking for archiver @FILE support... " >&6; } 6735if test ${lt_cv_ar_at_file+y} 6736then : 6737 printf %s "(cached) " >&6 6738else $as_nop 6739 lt_cv_ar_at_file=no 6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6741/* end confdefs.h. */ 6742 6743int 6744main (void) 6745{ 6746 6747 ; 6748 return 0; 6749} 6750_ACEOF 6751if ac_fn_c_try_compile "$LINENO" 6752then : 6753 echo conftest.$ac_objext > conftest.lst 6754 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6756 (eval $lt_ar_try) 2>&5 6757 ac_status=$? 6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6759 test $ac_status = 0; } 6760 if test 0 -eq "$ac_status"; then 6761 # Ensure the archiver fails upon bogus file names. 6762 rm -f conftest.$ac_objext libconftest.a 6763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6764 (eval $lt_ar_try) 2>&5 6765 ac_status=$? 6766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6767 test $ac_status = 0; } 6768 if test 0 -ne "$ac_status"; then 6769 lt_cv_ar_at_file=@ 6770 fi 6771 fi 6772 rm -f conftest.* libconftest.a 6773 6774fi 6775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6776 6777fi 6778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6779printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6780 6781if test no = "$lt_cv_ar_at_file"; then 6782 archiver_list_spec= 6783else 6784 archiver_list_spec=$lt_cv_ar_at_file 6785fi 6786 6787 6788 6789 6790 6791 6792 6793if test -n "$ac_tool_prefix"; then 6794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6795set dummy ${ac_tool_prefix}strip; ac_word=$2 6796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6797printf %s "checking for $ac_word... " >&6; } 6798if test ${ac_cv_prog_STRIP+y} 6799then : 6800 printf %s "(cached) " >&6 6801else $as_nop 6802 if test -n "$STRIP"; then 6803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6804else 6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6806for as_dir in $PATH 6807do 6808 IFS=$as_save_IFS 6809 case $as_dir in #((( 6810 '') as_dir=./ ;; 6811 */) ;; 6812 *) as_dir=$as_dir/ ;; 6813 esac 6814 for ac_exec_ext in '' $ac_executable_extensions; do 6815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6816 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6818 break 2 6819 fi 6820done 6821 done 6822IFS=$as_save_IFS 6823 6824fi 6825fi 6826STRIP=$ac_cv_prog_STRIP 6827if test -n "$STRIP"; then 6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6829printf "%s\n" "$STRIP" >&6; } 6830else 6831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6832printf "%s\n" "no" >&6; } 6833fi 6834 6835 6836fi 6837if test -z "$ac_cv_prog_STRIP"; then 6838 ac_ct_STRIP=$STRIP 6839 # Extract the first word of "strip", so it can be a program name with args. 6840set dummy strip; ac_word=$2 6841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6842printf %s "checking for $ac_word... " >&6; } 6843if test ${ac_cv_prog_ac_ct_STRIP+y} 6844then : 6845 printf %s "(cached) " >&6 6846else $as_nop 6847 if test -n "$ac_ct_STRIP"; then 6848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6849else 6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6851for as_dir in $PATH 6852do 6853 IFS=$as_save_IFS 6854 case $as_dir in #((( 6855 '') as_dir=./ ;; 6856 */) ;; 6857 *) as_dir=$as_dir/ ;; 6858 esac 6859 for ac_exec_ext in '' $ac_executable_extensions; do 6860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6861 ac_cv_prog_ac_ct_STRIP="strip" 6862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6863 break 2 6864 fi 6865done 6866 done 6867IFS=$as_save_IFS 6868 6869fi 6870fi 6871ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6872if test -n "$ac_ct_STRIP"; then 6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6874printf "%s\n" "$ac_ct_STRIP" >&6; } 6875else 6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6877printf "%s\n" "no" >&6; } 6878fi 6879 6880 if test "x$ac_ct_STRIP" = x; then 6881 STRIP=":" 6882 else 6883 case $cross_compiling:$ac_tool_warned in 6884yes:) 6885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6886printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6887ac_tool_warned=yes ;; 6888esac 6889 STRIP=$ac_ct_STRIP 6890 fi 6891else 6892 STRIP="$ac_cv_prog_STRIP" 6893fi 6894 6895test -z "$STRIP" && STRIP=: 6896 6897 6898 6899 6900 6901 6902if test -n "$ac_tool_prefix"; then 6903 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6904set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6906printf %s "checking for $ac_word... " >&6; } 6907if test ${ac_cv_prog_RANLIB+y} 6908then : 6909 printf %s "(cached) " >&6 6910else $as_nop 6911 if test -n "$RANLIB"; then 6912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6913else 6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6915for as_dir in $PATH 6916do 6917 IFS=$as_save_IFS 6918 case $as_dir in #((( 6919 '') as_dir=./ ;; 6920 */) ;; 6921 *) as_dir=$as_dir/ ;; 6922 esac 6923 for ac_exec_ext in '' $ac_executable_extensions; do 6924 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6925 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6927 break 2 6928 fi 6929done 6930 done 6931IFS=$as_save_IFS 6932 6933fi 6934fi 6935RANLIB=$ac_cv_prog_RANLIB 6936if test -n "$RANLIB"; then 6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6938printf "%s\n" "$RANLIB" >&6; } 6939else 6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6941printf "%s\n" "no" >&6; } 6942fi 6943 6944 6945fi 6946if test -z "$ac_cv_prog_RANLIB"; then 6947 ac_ct_RANLIB=$RANLIB 6948 # Extract the first word of "ranlib", so it can be a program name with args. 6949set dummy ranlib; ac_word=$2 6950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6951printf %s "checking for $ac_word... " >&6; } 6952if test ${ac_cv_prog_ac_ct_RANLIB+y} 6953then : 6954 printf %s "(cached) " >&6 6955else $as_nop 6956 if test -n "$ac_ct_RANLIB"; then 6957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 case $as_dir in #((( 6964 '') as_dir=./ ;; 6965 */) ;; 6966 *) as_dir=$as_dir/ ;; 6967 esac 6968 for ac_exec_ext in '' $ac_executable_extensions; do 6969 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6970 ac_cv_prog_ac_ct_RANLIB="ranlib" 6971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6972 break 2 6973 fi 6974done 6975 done 6976IFS=$as_save_IFS 6977 6978fi 6979fi 6980ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6981if test -n "$ac_ct_RANLIB"; then 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6983printf "%s\n" "$ac_ct_RANLIB" >&6; } 6984else 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6986printf "%s\n" "no" >&6; } 6987fi 6988 6989 if test "x$ac_ct_RANLIB" = x; then 6990 RANLIB=":" 6991 else 6992 case $cross_compiling:$ac_tool_warned in 6993yes:) 6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6995printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6996ac_tool_warned=yes ;; 6997esac 6998 RANLIB=$ac_ct_RANLIB 6999 fi 7000else 7001 RANLIB="$ac_cv_prog_RANLIB" 7002fi 7003 7004test -z "$RANLIB" && RANLIB=: 7005 7006 7007 7008 7009 7010 7011# Determine commands to create old-style static archives. 7012old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7013old_postinstall_cmds='chmod 644 $oldlib' 7014old_postuninstall_cmds= 7015 7016if test -n "$RANLIB"; then 7017 case $host_os in 7018 bitrig* | openbsd*) 7019 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7020 ;; 7021 *) 7022 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7023 ;; 7024 esac 7025 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7026fi 7027 7028case $host_os in 7029 darwin*) 7030 lock_old_archive_extraction=yes ;; 7031 *) 7032 lock_old_archive_extraction=no ;; 7033esac 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073# If no C compiler was specified, use CC. 7074LTCC=${LTCC-"$CC"} 7075 7076# If no C compiler flags were specified, use CFLAGS. 7077LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7078 7079# Allow CC to be a program name with arguments. 7080compiler=$CC 7081 7082 7083# Check for command to grab the raw symbol name followed by C symbol from nm. 7084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7085printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7086if test ${lt_cv_sys_global_symbol_pipe+y} 7087then : 7088 printf %s "(cached) " >&6 7089else $as_nop 7090 7091# These are sane defaults that work on at least a few old systems. 7092# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7093 7094# Character class describing NM global symbol codes. 7095symcode='[BCDEGRST]' 7096 7097# Regexp to match symbols that can be accessed directly from C. 7098sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7099 7100# Define system-specific variables. 7101case $host_os in 7102aix*) 7103 symcode='[BCDT]' 7104 ;; 7105cygwin* | mingw* | pw32* | cegcc*) 7106 symcode='[ABCDGISTW]' 7107 ;; 7108hpux*) 7109 if test ia64 = "$host_cpu"; then 7110 symcode='[ABCDEGRST]' 7111 fi 7112 ;; 7113irix* | nonstopux*) 7114 symcode='[BCDEGRST]' 7115 ;; 7116osf*) 7117 symcode='[BCDEGQRST]' 7118 ;; 7119solaris*) 7120 symcode='[BDRT]' 7121 ;; 7122sco3.2v5*) 7123 symcode='[DT]' 7124 ;; 7125sysv4.2uw2*) 7126 symcode='[DT]' 7127 ;; 7128sysv5* | sco5v6* | unixware* | OpenUNIX*) 7129 symcode='[ABDT]' 7130 ;; 7131sysv4) 7132 symcode='[DFNSTU]' 7133 ;; 7134esac 7135 7136# If we're using GNU nm, then use its standard symbol codes. 7137case `$NM -V 2>&1` in 7138*GNU* | *'with BFD'*) 7139 symcode='[ABCDGIRSTW]' ;; 7140esac 7141 7142if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7143 # Gets list of data symbols to import. 7144 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7145 # Adjust the below global symbol transforms to fixup imported variables. 7146 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7147 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7148 lt_c_name_lib_hook="\ 7149 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7150 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7151else 7152 # Disable hooks by default. 7153 lt_cv_sys_global_symbol_to_import= 7154 lt_cdecl_hook= 7155 lt_c_name_hook= 7156 lt_c_name_lib_hook= 7157fi 7158 7159# Transform an extracted symbol line into a proper C declaration. 7160# Some systems (esp. on ia64) link data and code symbols differently, 7161# so use this general approach. 7162lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7163$lt_cdecl_hook\ 7164" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7165" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7166 7167# Transform an extracted symbol line into symbol name and symbol address 7168lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7169$lt_c_name_hook\ 7170" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7171" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7172 7173# Transform an extracted symbol line into symbol name with lib prefix and 7174# symbol address. 7175lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7176$lt_c_name_lib_hook\ 7177" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7178" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7179" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7180 7181# Handle CRLF in mingw tool chain 7182opt_cr= 7183case $build_os in 7184mingw*) 7185 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7186 ;; 7187esac 7188 7189# Try without a prefix underscore, then with it. 7190for ac_symprfx in "" "_"; do 7191 7192 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7193 symxfrm="\\1 $ac_symprfx\\2 \\2" 7194 7195 # Write the raw and C identifiers. 7196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7197 # Fake it for dumpbin and say T for any non-static function, 7198 # D for any global variable and I for any imported variable. 7199 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7200 # which start with @ or ?. 7201 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7202" {last_section=section; section=\$ 3};"\ 7203" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7204" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7205" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7206" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7207" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7208" \$ 0!~/External *\|/{next};"\ 7209" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7210" {if(hide[section]) next};"\ 7211" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7212" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7213" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7214" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7215" ' prfx=^$ac_symprfx" 7216 else 7217 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7218 fi 7219 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7220 7221 # Check to see that the pipe works correctly. 7222 pipe_works=no 7223 7224 rm -f conftest* 7225 cat > conftest.$ac_ext <<_LT_EOF 7226#ifdef __cplusplus 7227extern "C" { 7228#endif 7229char nm_test_var; 7230void nm_test_func(void); 7231void nm_test_func(void){} 7232#ifdef __cplusplus 7233} 7234#endif 7235int main(){nm_test_var='a';nm_test_func();return(0);} 7236_LT_EOF 7237 7238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7239 (eval $ac_compile) 2>&5 7240 ac_status=$? 7241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7242 test $ac_status = 0; }; then 7243 # Now try to grab the symbols. 7244 nlist=conftest.nm 7245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7246 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7247 ac_status=$? 7248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7249 test $ac_status = 0; } && test -s "$nlist"; then 7250 # Try sorting and uniquifying the output. 7251 if sort "$nlist" | uniq > "$nlist"T; then 7252 mv -f "$nlist"T "$nlist" 7253 else 7254 rm -f "$nlist"T 7255 fi 7256 7257 # Make sure that we snagged all the symbols we need. 7258 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7259 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7260 cat <<_LT_EOF > conftest.$ac_ext 7261/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7262#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7263/* DATA imports from DLLs on WIN32 can't be const, because runtime 7264 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7265# define LT_DLSYM_CONST 7266#elif defined __osf__ 7267/* This system does not cope well with relocations in const data. */ 7268# define LT_DLSYM_CONST 7269#else 7270# define LT_DLSYM_CONST const 7271#endif 7272 7273#ifdef __cplusplus 7274extern "C" { 7275#endif 7276 7277_LT_EOF 7278 # Now generate the symbol file. 7279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7280 7281 cat <<_LT_EOF >> conftest.$ac_ext 7282 7283/* The mapping between symbol names and symbols. */ 7284LT_DLSYM_CONST struct { 7285 const char *name; 7286 void *address; 7287} 7288lt__PROGRAM__LTX_preloaded_symbols[] = 7289{ 7290 { "@PROGRAM@", (void *) 0 }, 7291_LT_EOF 7292 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7293 cat <<\_LT_EOF >> conftest.$ac_ext 7294 {0, (void *) 0} 7295}; 7296 7297/* This works around a problem in FreeBSD linker */ 7298#ifdef FREEBSD_WORKAROUND 7299static const void *lt_preloaded_setup() { 7300 return lt__PROGRAM__LTX_preloaded_symbols; 7301} 7302#endif 7303 7304#ifdef __cplusplus 7305} 7306#endif 7307_LT_EOF 7308 # Now try linking the two files. 7309 mv conftest.$ac_objext conftstm.$ac_objext 7310 lt_globsym_save_LIBS=$LIBS 7311 lt_globsym_save_CFLAGS=$CFLAGS 7312 LIBS=conftstm.$ac_objext 7313 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7315 (eval $ac_link) 2>&5 7316 ac_status=$? 7317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7318 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7319 pipe_works=yes 7320 fi 7321 LIBS=$lt_globsym_save_LIBS 7322 CFLAGS=$lt_globsym_save_CFLAGS 7323 else 7324 echo "cannot find nm_test_func in $nlist" >&5 7325 fi 7326 else 7327 echo "cannot find nm_test_var in $nlist" >&5 7328 fi 7329 else 7330 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7331 fi 7332 else 7333 echo "$progname: failed program was:" >&5 7334 cat conftest.$ac_ext >&5 7335 fi 7336 rm -rf conftest* conftst* 7337 7338 # Do not use the global_symbol_pipe unless it works. 7339 if test yes = "$pipe_works"; then 7340 break 7341 else 7342 lt_cv_sys_global_symbol_pipe= 7343 fi 7344done 7345 7346fi 7347 7348if test -z "$lt_cv_sys_global_symbol_pipe"; then 7349 lt_cv_sys_global_symbol_to_cdecl= 7350fi 7351if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7353printf "%s\n" "failed" >&6; } 7354else 7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7356printf "%s\n" "ok" >&6; } 7357fi 7358 7359# Response file support. 7360if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7361 nm_file_list_spec='@' 7362elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7363 nm_file_list_spec='@' 7364fi 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7403printf %s "checking for sysroot... " >&6; } 7404 7405# Check whether --with-sysroot was given. 7406if test ${with_sysroot+y} 7407then : 7408 withval=$with_sysroot; 7409else $as_nop 7410 with_sysroot=no 7411fi 7412 7413 7414lt_sysroot= 7415case $with_sysroot in #( 7416 yes) 7417 if test yes = "$GCC"; then 7418 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7419 fi 7420 ;; #( 7421 /*) 7422 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7423 ;; #( 7424 no|'') 7425 ;; #( 7426 *) 7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7428printf "%s\n" "$with_sysroot" >&6; } 7429 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7430 ;; 7431esac 7432 7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7434printf "%s\n" "${lt_sysroot:-no}" >&6; } 7435 7436 7437 7438 7439 7440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7441printf %s "checking for a working dd... " >&6; } 7442if test ${ac_cv_path_lt_DD+y} 7443then : 7444 printf %s "(cached) " >&6 7445else $as_nop 7446 printf 0123456789abcdef0123456789abcdef >conftest.i 7447cat conftest.i conftest.i >conftest2.i 7448: ${lt_DD:=$DD} 7449if test -z "$lt_DD"; then 7450 ac_path_lt_DD_found=false 7451 # Loop through the user's path and test for each of PROGNAME-LIST 7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7453for as_dir in $PATH 7454do 7455 IFS=$as_save_IFS 7456 case $as_dir in #((( 7457 '') as_dir=./ ;; 7458 */) ;; 7459 *) as_dir=$as_dir/ ;; 7460 esac 7461 for ac_prog in dd 7462 do 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7465 as_fn_executable_p "$ac_path_lt_DD" || continue 7466if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7467 cmp -s conftest.i conftest.out \ 7468 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7469fi 7470 $ac_path_lt_DD_found && break 3 7471 done 7472 done 7473 done 7474IFS=$as_save_IFS 7475 if test -z "$ac_cv_path_lt_DD"; then 7476 : 7477 fi 7478else 7479 ac_cv_path_lt_DD=$lt_DD 7480fi 7481 7482rm -f conftest.i conftest2.i conftest.out 7483fi 7484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7485printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7486 7487 7488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7489printf %s "checking how to truncate binary pipes... " >&6; } 7490if test ${lt_cv_truncate_bin+y} 7491then : 7492 printf %s "(cached) " >&6 7493else $as_nop 7494 printf 0123456789abcdef0123456789abcdef >conftest.i 7495cat conftest.i conftest.i >conftest2.i 7496lt_cv_truncate_bin= 7497if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7498 cmp -s conftest.i conftest.out \ 7499 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7500fi 7501rm -f conftest.i conftest2.i conftest.out 7502test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7503fi 7504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7505printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7506 7507 7508 7509 7510 7511 7512 7513# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7514func_cc_basename () 7515{ 7516 for cc_temp in $*""; do 7517 case $cc_temp in 7518 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7519 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7520 \-*) ;; 7521 *) break;; 7522 esac 7523 done 7524 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7525} 7526 7527# Check whether --enable-libtool-lock was given. 7528if test ${enable_libtool_lock+y} 7529then : 7530 enableval=$enable_libtool_lock; 7531fi 7532 7533test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7534 7535# Some flags need to be propagated to the compiler or linker for good 7536# libtool support. 7537case $host in 7538ia64-*-hpux*) 7539 # Find out what ABI is being produced by ac_compile, and set mode 7540 # options accordingly. 7541 echo 'int i;' > conftest.$ac_ext 7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7543 (eval $ac_compile) 2>&5 7544 ac_status=$? 7545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7546 test $ac_status = 0; }; then 7547 case `$FILECMD conftest.$ac_objext` in 7548 *ELF-32*) 7549 HPUX_IA64_MODE=32 7550 ;; 7551 *ELF-64*) 7552 HPUX_IA64_MODE=64 7553 ;; 7554 esac 7555 fi 7556 rm -rf conftest* 7557 ;; 7558*-*-irix6*) 7559 # Find out what ABI is being produced by ac_compile, and set linker 7560 # options accordingly. 7561 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7563 (eval $ac_compile) 2>&5 7564 ac_status=$? 7565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7566 test $ac_status = 0; }; then 7567 if test yes = "$lt_cv_prog_gnu_ld"; then 7568 case `$FILECMD conftest.$ac_objext` in 7569 *32-bit*) 7570 LD="${LD-ld} -melf32bsmip" 7571 ;; 7572 *N32*) 7573 LD="${LD-ld} -melf32bmipn32" 7574 ;; 7575 *64-bit*) 7576 LD="${LD-ld} -melf64bmip" 7577 ;; 7578 esac 7579 else 7580 case `$FILECMD conftest.$ac_objext` in 7581 *32-bit*) 7582 LD="${LD-ld} -32" 7583 ;; 7584 *N32*) 7585 LD="${LD-ld} -n32" 7586 ;; 7587 *64-bit*) 7588 LD="${LD-ld} -64" 7589 ;; 7590 esac 7591 fi 7592 fi 7593 rm -rf conftest* 7594 ;; 7595 7596mips64*-*linux*) 7597 # Find out what ABI is being produced by ac_compile, and set linker 7598 # options accordingly. 7599 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7601 (eval $ac_compile) 2>&5 7602 ac_status=$? 7603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7604 test $ac_status = 0; }; then 7605 emul=elf 7606 case `$FILECMD conftest.$ac_objext` in 7607 *32-bit*) 7608 emul="${emul}32" 7609 ;; 7610 *64-bit*) 7611 emul="${emul}64" 7612 ;; 7613 esac 7614 case `$FILECMD conftest.$ac_objext` in 7615 *MSB*) 7616 emul="${emul}btsmip" 7617 ;; 7618 *LSB*) 7619 emul="${emul}ltsmip" 7620 ;; 7621 esac 7622 case `$FILECMD conftest.$ac_objext` in 7623 *N32*) 7624 emul="${emul}n32" 7625 ;; 7626 esac 7627 LD="${LD-ld} -m $emul" 7628 fi 7629 rm -rf conftest* 7630 ;; 7631 7632x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7633s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7634 # Find out what ABI is being produced by ac_compile, and set linker 7635 # options accordingly. Note that the listed cases only cover the 7636 # situations where additional linker options are needed (such as when 7637 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7638 # vice versa); the common cases where no linker options are needed do 7639 # not appear in the list. 7640 echo 'int i;' > conftest.$ac_ext 7641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7642 (eval $ac_compile) 2>&5 7643 ac_status=$? 7644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7645 test $ac_status = 0; }; then 7646 case `$FILECMD conftest.o` in 7647 *32-bit*) 7648 case $host in 7649 x86_64-*kfreebsd*-gnu) 7650 LD="${LD-ld} -m elf_i386_fbsd" 7651 ;; 7652 x86_64-*linux*) 7653 case `$FILECMD conftest.o` in 7654 *x86-64*) 7655 LD="${LD-ld} -m elf32_x86_64" 7656 ;; 7657 *) 7658 LD="${LD-ld} -m elf_i386" 7659 ;; 7660 esac 7661 ;; 7662 powerpc64le-*linux*) 7663 LD="${LD-ld} -m elf32lppclinux" 7664 ;; 7665 powerpc64-*linux*) 7666 LD="${LD-ld} -m elf32ppclinux" 7667 ;; 7668 s390x-*linux*) 7669 LD="${LD-ld} -m elf_s390" 7670 ;; 7671 sparc64-*linux*) 7672 LD="${LD-ld} -m elf32_sparc" 7673 ;; 7674 esac 7675 ;; 7676 *64-bit*) 7677 case $host in 7678 x86_64-*kfreebsd*-gnu) 7679 LD="${LD-ld} -m elf_x86_64_fbsd" 7680 ;; 7681 x86_64-*linux*) 7682 LD="${LD-ld} -m elf_x86_64" 7683 ;; 7684 powerpcle-*linux*) 7685 LD="${LD-ld} -m elf64lppc" 7686 ;; 7687 powerpc-*linux*) 7688 LD="${LD-ld} -m elf64ppc" 7689 ;; 7690 s390*-*linux*|s390*-*tpf*) 7691 LD="${LD-ld} -m elf64_s390" 7692 ;; 7693 sparc*-*linux*) 7694 LD="${LD-ld} -m elf64_sparc" 7695 ;; 7696 esac 7697 ;; 7698 esac 7699 fi 7700 rm -rf conftest* 7701 ;; 7702 7703*-*-sco3.2v5*) 7704 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7705 SAVE_CFLAGS=$CFLAGS 7706 CFLAGS="$CFLAGS -belf" 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7708printf %s "checking whether the C compiler needs -belf... " >&6; } 7709if test ${lt_cv_cc_needs_belf+y} 7710then : 7711 printf %s "(cached) " >&6 7712else $as_nop 7713 ac_ext=c 7714ac_cpp='$CPP $CPPFLAGS' 7715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7717ac_compiler_gnu=$ac_cv_c_compiler_gnu 7718 7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7720/* end confdefs.h. */ 7721 7722int 7723main (void) 7724{ 7725 7726 ; 7727 return 0; 7728} 7729_ACEOF 7730if ac_fn_c_try_link "$LINENO" 7731then : 7732 lt_cv_cc_needs_belf=yes 7733else $as_nop 7734 lt_cv_cc_needs_belf=no 7735fi 7736rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7737 conftest$ac_exeext conftest.$ac_ext 7738 ac_ext=c 7739ac_cpp='$CPP $CPPFLAGS' 7740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7742ac_compiler_gnu=$ac_cv_c_compiler_gnu 7743 7744fi 7745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7746printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7747 if test yes != "$lt_cv_cc_needs_belf"; then 7748 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7749 CFLAGS=$SAVE_CFLAGS 7750 fi 7751 ;; 7752*-*solaris*) 7753 # Find out what ABI is being produced by ac_compile, and set linker 7754 # options accordingly. 7755 echo 'int i;' > conftest.$ac_ext 7756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7757 (eval $ac_compile) 2>&5 7758 ac_status=$? 7759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7760 test $ac_status = 0; }; then 7761 case `$FILECMD conftest.o` in 7762 *64-bit*) 7763 case $lt_cv_prog_gnu_ld in 7764 yes*) 7765 case $host in 7766 i?86-*-solaris*|x86_64-*-solaris*) 7767 LD="${LD-ld} -m elf_x86_64" 7768 ;; 7769 sparc*-*-solaris*) 7770 LD="${LD-ld} -m elf64_sparc" 7771 ;; 7772 esac 7773 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7774 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7775 LD=${LD-ld}_sol2 7776 fi 7777 ;; 7778 *) 7779 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7780 LD="${LD-ld} -64" 7781 fi 7782 ;; 7783 esac 7784 ;; 7785 esac 7786 fi 7787 rm -rf conftest* 7788 ;; 7789esac 7790 7791need_locks=$enable_libtool_lock 7792 7793if test -n "$ac_tool_prefix"; then 7794 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7795set dummy ${ac_tool_prefix}mt; ac_word=$2 7796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7797printf %s "checking for $ac_word... " >&6; } 7798if test ${ac_cv_prog_MANIFEST_TOOL+y} 7799then : 7800 printf %s "(cached) " >&6 7801else $as_nop 7802 if test -n "$MANIFEST_TOOL"; then 7803 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7804else 7805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7806for as_dir in $PATH 7807do 7808 IFS=$as_save_IFS 7809 case $as_dir in #((( 7810 '') as_dir=./ ;; 7811 */) ;; 7812 *) as_dir=$as_dir/ ;; 7813 esac 7814 for ac_exec_ext in '' $ac_executable_extensions; do 7815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7816 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7818 break 2 7819 fi 7820done 7821 done 7822IFS=$as_save_IFS 7823 7824fi 7825fi 7826MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7827if test -n "$MANIFEST_TOOL"; then 7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7829printf "%s\n" "$MANIFEST_TOOL" >&6; } 7830else 7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7832printf "%s\n" "no" >&6; } 7833fi 7834 7835 7836fi 7837if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7838 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7839 # Extract the first word of "mt", so it can be a program name with args. 7840set dummy mt; ac_word=$2 7841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7842printf %s "checking for $ac_word... " >&6; } 7843if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7844then : 7845 printf %s "(cached) " >&6 7846else $as_nop 7847 if test -n "$ac_ct_MANIFEST_TOOL"; then 7848 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7849else 7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7851for as_dir in $PATH 7852do 7853 IFS=$as_save_IFS 7854 case $as_dir in #((( 7855 '') as_dir=./ ;; 7856 */) ;; 7857 *) as_dir=$as_dir/ ;; 7858 esac 7859 for ac_exec_ext in '' $ac_executable_extensions; do 7860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7861 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7863 break 2 7864 fi 7865done 7866 done 7867IFS=$as_save_IFS 7868 7869fi 7870fi 7871ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7872if test -n "$ac_ct_MANIFEST_TOOL"; then 7873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7874printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7875else 7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7877printf "%s\n" "no" >&6; } 7878fi 7879 7880 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7881 MANIFEST_TOOL=":" 7882 else 7883 case $cross_compiling:$ac_tool_warned in 7884yes:) 7885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7886printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7887ac_tool_warned=yes ;; 7888esac 7889 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7890 fi 7891else 7892 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7893fi 7894 7895test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7897printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7898if test ${lt_cv_path_mainfest_tool+y} 7899then : 7900 printf %s "(cached) " >&6 7901else $as_nop 7902 lt_cv_path_mainfest_tool=no 7903 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7904 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7905 cat conftest.err >&5 7906 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7907 lt_cv_path_mainfest_tool=yes 7908 fi 7909 rm -f conftest* 7910fi 7911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7912printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7913if test yes != "$lt_cv_path_mainfest_tool"; then 7914 MANIFEST_TOOL=: 7915fi 7916 7917 7918 7919 7920 7921 7922 case $host_os in 7923 rhapsody* | darwin*) 7924 if test -n "$ac_tool_prefix"; then 7925 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7926set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7928printf %s "checking for $ac_word... " >&6; } 7929if test ${ac_cv_prog_DSYMUTIL+y} 7930then : 7931 printf %s "(cached) " >&6 7932else $as_nop 7933 if test -n "$DSYMUTIL"; then 7934 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7935else 7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7937for as_dir in $PATH 7938do 7939 IFS=$as_save_IFS 7940 case $as_dir in #((( 7941 '') as_dir=./ ;; 7942 */) ;; 7943 *) as_dir=$as_dir/ ;; 7944 esac 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7947 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951done 7952 done 7953IFS=$as_save_IFS 7954 7955fi 7956fi 7957DSYMUTIL=$ac_cv_prog_DSYMUTIL 7958if test -n "$DSYMUTIL"; then 7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7960printf "%s\n" "$DSYMUTIL" >&6; } 7961else 7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7963printf "%s\n" "no" >&6; } 7964fi 7965 7966 7967fi 7968if test -z "$ac_cv_prog_DSYMUTIL"; then 7969 ac_ct_DSYMUTIL=$DSYMUTIL 7970 # Extract the first word of "dsymutil", so it can be a program name with args. 7971set dummy dsymutil; ac_word=$2 7972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7973printf %s "checking for $ac_word... " >&6; } 7974if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7975then : 7976 printf %s "(cached) " >&6 7977else $as_nop 7978 if test -n "$ac_ct_DSYMUTIL"; then 7979 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7980else 7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7982for as_dir in $PATH 7983do 7984 IFS=$as_save_IFS 7985 case $as_dir in #((( 7986 '') as_dir=./ ;; 7987 */) ;; 7988 *) as_dir=$as_dir/ ;; 7989 esac 7990 for ac_exec_ext in '' $ac_executable_extensions; do 7991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7992 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7994 break 2 7995 fi 7996done 7997 done 7998IFS=$as_save_IFS 7999 8000fi 8001fi 8002ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8003if test -n "$ac_ct_DSYMUTIL"; then 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8005printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8006else 8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8008printf "%s\n" "no" >&6; } 8009fi 8010 8011 if test "x$ac_ct_DSYMUTIL" = x; then 8012 DSYMUTIL=":" 8013 else 8014 case $cross_compiling:$ac_tool_warned in 8015yes:) 8016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8017printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8018ac_tool_warned=yes ;; 8019esac 8020 DSYMUTIL=$ac_ct_DSYMUTIL 8021 fi 8022else 8023 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8024fi 8025 8026 if test -n "$ac_tool_prefix"; then 8027 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8028set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8030printf %s "checking for $ac_word... " >&6; } 8031if test ${ac_cv_prog_NMEDIT+y} 8032then : 8033 printf %s "(cached) " >&6 8034else $as_nop 8035 if test -n "$NMEDIT"; then 8036 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8037else 8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8039for as_dir in $PATH 8040do 8041 IFS=$as_save_IFS 8042 case $as_dir in #((( 8043 '') as_dir=./ ;; 8044 */) ;; 8045 *) as_dir=$as_dir/ ;; 8046 esac 8047 for ac_exec_ext in '' $ac_executable_extensions; do 8048 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8049 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8051 break 2 8052 fi 8053done 8054 done 8055IFS=$as_save_IFS 8056 8057fi 8058fi 8059NMEDIT=$ac_cv_prog_NMEDIT 8060if test -n "$NMEDIT"; then 8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8062printf "%s\n" "$NMEDIT" >&6; } 8063else 8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8065printf "%s\n" "no" >&6; } 8066fi 8067 8068 8069fi 8070if test -z "$ac_cv_prog_NMEDIT"; then 8071 ac_ct_NMEDIT=$NMEDIT 8072 # Extract the first word of "nmedit", so it can be a program name with args. 8073set dummy nmedit; ac_word=$2 8074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8075printf %s "checking for $ac_word... " >&6; } 8076if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8077then : 8078 printf %s "(cached) " >&6 8079else $as_nop 8080 if test -n "$ac_ct_NMEDIT"; then 8081 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8082else 8083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8084for as_dir in $PATH 8085do 8086 IFS=$as_save_IFS 8087 case $as_dir in #((( 8088 '') as_dir=./ ;; 8089 */) ;; 8090 *) as_dir=$as_dir/ ;; 8091 esac 8092 for ac_exec_ext in '' $ac_executable_extensions; do 8093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8094 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8096 break 2 8097 fi 8098done 8099 done 8100IFS=$as_save_IFS 8101 8102fi 8103fi 8104ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8105if test -n "$ac_ct_NMEDIT"; then 8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8107printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8108else 8109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8110printf "%s\n" "no" >&6; } 8111fi 8112 8113 if test "x$ac_ct_NMEDIT" = x; then 8114 NMEDIT=":" 8115 else 8116 case $cross_compiling:$ac_tool_warned in 8117yes:) 8118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8119printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8120ac_tool_warned=yes ;; 8121esac 8122 NMEDIT=$ac_ct_NMEDIT 8123 fi 8124else 8125 NMEDIT="$ac_cv_prog_NMEDIT" 8126fi 8127 8128 if test -n "$ac_tool_prefix"; then 8129 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8130set dummy ${ac_tool_prefix}lipo; ac_word=$2 8131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8132printf %s "checking for $ac_word... " >&6; } 8133if test ${ac_cv_prog_LIPO+y} 8134then : 8135 printf %s "(cached) " >&6 8136else $as_nop 8137 if test -n "$LIPO"; then 8138 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8139else 8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141for as_dir in $PATH 8142do 8143 IFS=$as_save_IFS 8144 case $as_dir in #((( 8145 '') as_dir=./ ;; 8146 */) ;; 8147 *) as_dir=$as_dir/ ;; 8148 esac 8149 for ac_exec_ext in '' $ac_executable_extensions; do 8150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8151 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8153 break 2 8154 fi 8155done 8156 done 8157IFS=$as_save_IFS 8158 8159fi 8160fi 8161LIPO=$ac_cv_prog_LIPO 8162if test -n "$LIPO"; then 8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8164printf "%s\n" "$LIPO" >&6; } 8165else 8166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8167printf "%s\n" "no" >&6; } 8168fi 8169 8170 8171fi 8172if test -z "$ac_cv_prog_LIPO"; then 8173 ac_ct_LIPO=$LIPO 8174 # Extract the first word of "lipo", so it can be a program name with args. 8175set dummy lipo; ac_word=$2 8176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8177printf %s "checking for $ac_word... " >&6; } 8178if test ${ac_cv_prog_ac_ct_LIPO+y} 8179then : 8180 printf %s "(cached) " >&6 8181else $as_nop 8182 if test -n "$ac_ct_LIPO"; then 8183 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8184else 8185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8186for as_dir in $PATH 8187do 8188 IFS=$as_save_IFS 8189 case $as_dir in #((( 8190 '') as_dir=./ ;; 8191 */) ;; 8192 *) as_dir=$as_dir/ ;; 8193 esac 8194 for ac_exec_ext in '' $ac_executable_extensions; do 8195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8196 ac_cv_prog_ac_ct_LIPO="lipo" 8197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8198 break 2 8199 fi 8200done 8201 done 8202IFS=$as_save_IFS 8203 8204fi 8205fi 8206ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8207if test -n "$ac_ct_LIPO"; then 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8209printf "%s\n" "$ac_ct_LIPO" >&6; } 8210else 8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8212printf "%s\n" "no" >&6; } 8213fi 8214 8215 if test "x$ac_ct_LIPO" = x; then 8216 LIPO=":" 8217 else 8218 case $cross_compiling:$ac_tool_warned in 8219yes:) 8220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8221printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8222ac_tool_warned=yes ;; 8223esac 8224 LIPO=$ac_ct_LIPO 8225 fi 8226else 8227 LIPO="$ac_cv_prog_LIPO" 8228fi 8229 8230 if test -n "$ac_tool_prefix"; then 8231 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8232set dummy ${ac_tool_prefix}otool; ac_word=$2 8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8234printf %s "checking for $ac_word... " >&6; } 8235if test ${ac_cv_prog_OTOOL+y} 8236then : 8237 printf %s "(cached) " >&6 8238else $as_nop 8239 if test -n "$OTOOL"; then 8240 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8241else 8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8243for as_dir in $PATH 8244do 8245 IFS=$as_save_IFS 8246 case $as_dir in #((( 8247 '') as_dir=./ ;; 8248 */) ;; 8249 *) as_dir=$as_dir/ ;; 8250 esac 8251 for ac_exec_ext in '' $ac_executable_extensions; do 8252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8255 break 2 8256 fi 8257done 8258 done 8259IFS=$as_save_IFS 8260 8261fi 8262fi 8263OTOOL=$ac_cv_prog_OTOOL 8264if test -n "$OTOOL"; then 8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8266printf "%s\n" "$OTOOL" >&6; } 8267else 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8269printf "%s\n" "no" >&6; } 8270fi 8271 8272 8273fi 8274if test -z "$ac_cv_prog_OTOOL"; then 8275 ac_ct_OTOOL=$OTOOL 8276 # Extract the first word of "otool", so it can be a program name with args. 8277set dummy otool; ac_word=$2 8278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8279printf %s "checking for $ac_word... " >&6; } 8280if test ${ac_cv_prog_ac_ct_OTOOL+y} 8281then : 8282 printf %s "(cached) " >&6 8283else $as_nop 8284 if test -n "$ac_ct_OTOOL"; then 8285 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8286else 8287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8288for as_dir in $PATH 8289do 8290 IFS=$as_save_IFS 8291 case $as_dir in #((( 8292 '') as_dir=./ ;; 8293 */) ;; 8294 *) as_dir=$as_dir/ ;; 8295 esac 8296 for ac_exec_ext in '' $ac_executable_extensions; do 8297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8298 ac_cv_prog_ac_ct_OTOOL="otool" 8299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8300 break 2 8301 fi 8302done 8303 done 8304IFS=$as_save_IFS 8305 8306fi 8307fi 8308ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8309if test -n "$ac_ct_OTOOL"; then 8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8311printf "%s\n" "$ac_ct_OTOOL" >&6; } 8312else 8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8314printf "%s\n" "no" >&6; } 8315fi 8316 8317 if test "x$ac_ct_OTOOL" = x; then 8318 OTOOL=":" 8319 else 8320 case $cross_compiling:$ac_tool_warned in 8321yes:) 8322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8323printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8324ac_tool_warned=yes ;; 8325esac 8326 OTOOL=$ac_ct_OTOOL 8327 fi 8328else 8329 OTOOL="$ac_cv_prog_OTOOL" 8330fi 8331 8332 if test -n "$ac_tool_prefix"; then 8333 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8334set dummy ${ac_tool_prefix}otool64; ac_word=$2 8335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8336printf %s "checking for $ac_word... " >&6; } 8337if test ${ac_cv_prog_OTOOL64+y} 8338then : 8339 printf %s "(cached) " >&6 8340else $as_nop 8341 if test -n "$OTOOL64"; then 8342 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8343else 8344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8345for as_dir in $PATH 8346do 8347 IFS=$as_save_IFS 8348 case $as_dir in #((( 8349 '') as_dir=./ ;; 8350 */) ;; 8351 *) as_dir=$as_dir/ ;; 8352 esac 8353 for ac_exec_ext in '' $ac_executable_extensions; do 8354 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8355 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8357 break 2 8358 fi 8359done 8360 done 8361IFS=$as_save_IFS 8362 8363fi 8364fi 8365OTOOL64=$ac_cv_prog_OTOOL64 8366if test -n "$OTOOL64"; then 8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8368printf "%s\n" "$OTOOL64" >&6; } 8369else 8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8371printf "%s\n" "no" >&6; } 8372fi 8373 8374 8375fi 8376if test -z "$ac_cv_prog_OTOOL64"; then 8377 ac_ct_OTOOL64=$OTOOL64 8378 # Extract the first word of "otool64", so it can be a program name with args. 8379set dummy otool64; ac_word=$2 8380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8381printf %s "checking for $ac_word... " >&6; } 8382if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8383then : 8384 printf %s "(cached) " >&6 8385else $as_nop 8386 if test -n "$ac_ct_OTOOL64"; then 8387 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8388else 8389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8390for as_dir in $PATH 8391do 8392 IFS=$as_save_IFS 8393 case $as_dir in #((( 8394 '') as_dir=./ ;; 8395 */) ;; 8396 *) as_dir=$as_dir/ ;; 8397 esac 8398 for ac_exec_ext in '' $ac_executable_extensions; do 8399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8400 ac_cv_prog_ac_ct_OTOOL64="otool64" 8401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8402 break 2 8403 fi 8404done 8405 done 8406IFS=$as_save_IFS 8407 8408fi 8409fi 8410ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8411if test -n "$ac_ct_OTOOL64"; then 8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8413printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8414else 8415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8416printf "%s\n" "no" >&6; } 8417fi 8418 8419 if test "x$ac_ct_OTOOL64" = x; then 8420 OTOOL64=":" 8421 else 8422 case $cross_compiling:$ac_tool_warned in 8423yes:) 8424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8425printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8426ac_tool_warned=yes ;; 8427esac 8428 OTOOL64=$ac_ct_OTOOL64 8429 fi 8430else 8431 OTOOL64="$ac_cv_prog_OTOOL64" 8432fi 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8461printf %s "checking for -single_module linker flag... " >&6; } 8462if test ${lt_cv_apple_cc_single_mod+y} 8463then : 8464 printf %s "(cached) " >&6 8465else $as_nop 8466 lt_cv_apple_cc_single_mod=no 8467 if test -z "$LT_MULTI_MODULE"; then 8468 # By default we will add the -single_module flag. You can override 8469 # by either setting the environment variable LT_MULTI_MODULE 8470 # non-empty at configure time, or by adding -multi_module to the 8471 # link flags. 8472 rm -rf libconftest.dylib* 8473 echo "int foo(void){return 1;}" > conftest.c 8474 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8475-dynamiclib -Wl,-single_module conftest.c" >&5 8476 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8477 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8478 _lt_result=$? 8479 # If there is a non-empty error log, and "single_module" 8480 # appears in it, assume the flag caused a linker warning 8481 if test -s conftest.err && $GREP single_module conftest.err; then 8482 cat conftest.err >&5 8483 # Otherwise, if the output was created with a 0 exit code from 8484 # the compiler, it worked. 8485 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8486 lt_cv_apple_cc_single_mod=yes 8487 else 8488 cat conftest.err >&5 8489 fi 8490 rm -rf libconftest.dylib* 8491 rm -f conftest.* 8492 fi 8493fi 8494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8495printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8496 8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8498printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8499if test ${lt_cv_ld_exported_symbols_list+y} 8500then : 8501 printf %s "(cached) " >&6 8502else $as_nop 8503 lt_cv_ld_exported_symbols_list=no 8504 save_LDFLAGS=$LDFLAGS 8505 echo "_main" > conftest.sym 8506 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8508/* end confdefs.h. */ 8509 8510int 8511main (void) 8512{ 8513 8514 ; 8515 return 0; 8516} 8517_ACEOF 8518if ac_fn_c_try_link "$LINENO" 8519then : 8520 lt_cv_ld_exported_symbols_list=yes 8521else $as_nop 8522 lt_cv_ld_exported_symbols_list=no 8523fi 8524rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8525 conftest$ac_exeext conftest.$ac_ext 8526 LDFLAGS=$save_LDFLAGS 8527 8528fi 8529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8530printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8531 8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8533printf %s "checking for -force_load linker flag... " >&6; } 8534if test ${lt_cv_ld_force_load+y} 8535then : 8536 printf %s "(cached) " >&6 8537else $as_nop 8538 lt_cv_ld_force_load=no 8539 cat > conftest.c << _LT_EOF 8540int forced_loaded() { return 2;} 8541_LT_EOF 8542 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8543 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8544 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8545 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8546 echo "$RANLIB libconftest.a" >&5 8547 $RANLIB libconftest.a 2>&5 8548 cat > conftest.c << _LT_EOF 8549int main() { return 0;} 8550_LT_EOF 8551 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8552 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8553 _lt_result=$? 8554 if test -s conftest.err && $GREP force_load conftest.err; then 8555 cat conftest.err >&5 8556 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8557 lt_cv_ld_force_load=yes 8558 else 8559 cat conftest.err >&5 8560 fi 8561 rm -f conftest.err libconftest.a conftest conftest.c 8562 rm -rf conftest.dSYM 8563 8564fi 8565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8566printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8567 case $host_os in 8568 rhapsody* | darwin1.[012]) 8569 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8570 darwin1.*) 8571 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8572 darwin*) 8573 case $MACOSX_DEPLOYMENT_TARGET,$host in 8574 10.[012],*|,*powerpc*-darwin[5-8]*) 8575 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8576 *) 8577 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8578 esac 8579 ;; 8580 esac 8581 if test yes = "$lt_cv_apple_cc_single_mod"; then 8582 _lt_dar_single_mod='$single_module' 8583 fi 8584 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8585 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8586 else 8587 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8588 fi 8589 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8590 _lt_dsymutil='~$DSYMUTIL $lib || :' 8591 else 8592 _lt_dsymutil= 8593 fi 8594 ;; 8595 esac 8596 8597# func_munge_path_list VARIABLE PATH 8598# ----------------------------------- 8599# VARIABLE is name of variable containing _space_ separated list of 8600# directories to be munged by the contents of PATH, which is string 8601# having a format: 8602# "DIR[:DIR]:" 8603# string "DIR[ DIR]" will be prepended to VARIABLE 8604# ":DIR[:DIR]" 8605# string "DIR[ DIR]" will be appended to VARIABLE 8606# "DIRP[:DIRP]::[DIRA:]DIRA" 8607# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8608# "DIRA[ DIRA]" will be appended to VARIABLE 8609# "DIR[:DIR]" 8610# VARIABLE will be replaced by "DIR[ DIR]" 8611func_munge_path_list () 8612{ 8613 case x$2 in 8614 x) 8615 ;; 8616 *:) 8617 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8618 ;; 8619 x:*) 8620 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8621 ;; 8622 *::*) 8623 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8624 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8625 ;; 8626 *) 8627 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8628 ;; 8629 esac 8630} 8631 8632ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8633" 8634if test "x$ac_cv_header_dlfcn_h" = xyes 8635then : 8636 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8637 8638fi 8639 8640 8641 8642 8643 8644# Set options 8645 8646 8647 8648 enable_dlopen=no 8649 8650 8651 enable_win32_dll=no 8652 8653 8654 # Check whether --enable-shared was given. 8655if test ${enable_shared+y} 8656then : 8657 enableval=$enable_shared; p=${PACKAGE-default} 8658 case $enableval in 8659 yes) enable_shared=yes ;; 8660 no) enable_shared=no ;; 8661 *) 8662 enable_shared=no 8663 # Look at the argument we got. We use all the common list separators. 8664 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8665 for pkg in $enableval; do 8666 IFS=$lt_save_ifs 8667 if test "X$pkg" = "X$p"; then 8668 enable_shared=yes 8669 fi 8670 done 8671 IFS=$lt_save_ifs 8672 ;; 8673 esac 8674else $as_nop 8675 enable_shared=yes 8676fi 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 # Check whether --enable-static was given. 8687if test ${enable_static+y} 8688then : 8689 enableval=$enable_static; p=${PACKAGE-default} 8690 case $enableval in 8691 yes) enable_static=yes ;; 8692 no) enable_static=no ;; 8693 *) 8694 enable_static=no 8695 # Look at the argument we got. We use all the common list separators. 8696 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8697 for pkg in $enableval; do 8698 IFS=$lt_save_ifs 8699 if test "X$pkg" = "X$p"; then 8700 enable_static=yes 8701 fi 8702 done 8703 IFS=$lt_save_ifs 8704 ;; 8705 esac 8706else $as_nop 8707 enable_static=yes 8708fi 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719# Check whether --with-pic was given. 8720if test ${with_pic+y} 8721then : 8722 withval=$with_pic; lt_p=${PACKAGE-default} 8723 case $withval in 8724 yes|no) pic_mode=$withval ;; 8725 *) 8726 pic_mode=default 8727 # Look at the argument we got. We use all the common list separators. 8728 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8729 for lt_pkg in $withval; do 8730 IFS=$lt_save_ifs 8731 if test "X$lt_pkg" = "X$lt_p"; then 8732 pic_mode=yes 8733 fi 8734 done 8735 IFS=$lt_save_ifs 8736 ;; 8737 esac 8738else $as_nop 8739 pic_mode=default 8740fi 8741 8742 8743 8744 8745 8746 8747 8748 8749 # Check whether --enable-fast-install was given. 8750if test ${enable_fast_install+y} 8751then : 8752 enableval=$enable_fast_install; p=${PACKAGE-default} 8753 case $enableval in 8754 yes) enable_fast_install=yes ;; 8755 no) enable_fast_install=no ;; 8756 *) 8757 enable_fast_install=no 8758 # Look at the argument we got. We use all the common list separators. 8759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8760 for pkg in $enableval; do 8761 IFS=$lt_save_ifs 8762 if test "X$pkg" = "X$p"; then 8763 enable_fast_install=yes 8764 fi 8765 done 8766 IFS=$lt_save_ifs 8767 ;; 8768 esac 8769else $as_nop 8770 enable_fast_install=yes 8771fi 8772 8773 8774 8775 8776 8777 8778 8779 8780 shared_archive_member_spec= 8781case $host,$enable_shared in 8782power*-*-aix[5-9]*,yes) 8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8784printf %s "checking which variant of shared library versioning to provide... " >&6; } 8785 8786# Check whether --with-aix-soname was given. 8787if test ${with_aix_soname+y} 8788then : 8789 withval=$with_aix_soname; case $withval in 8790 aix|svr4|both) 8791 ;; 8792 *) 8793 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8794 ;; 8795 esac 8796 lt_cv_with_aix_soname=$with_aix_soname 8797else $as_nop 8798 if test ${lt_cv_with_aix_soname+y} 8799then : 8800 printf %s "(cached) " >&6 8801else $as_nop 8802 lt_cv_with_aix_soname=aix 8803fi 8804 8805 with_aix_soname=$lt_cv_with_aix_soname 8806fi 8807 8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8809printf "%s\n" "$with_aix_soname" >&6; } 8810 if test aix != "$with_aix_soname"; then 8811 # For the AIX way of multilib, we name the shared archive member 8812 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8813 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8814 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8815 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8816 if test 64 = "${OBJECT_MODE-32}"; then 8817 shared_archive_member_spec=shr_64 8818 else 8819 shared_archive_member_spec=shr 8820 fi 8821 fi 8822 ;; 8823*) 8824 with_aix_soname=aix 8825 ;; 8826esac 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837# This can be used to rebuild libtool when needed 8838LIBTOOL_DEPS=$ltmain 8839 8840# Always use our own libtool. 8841LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872test -z "$LN_S" && LN_S="ln -s" 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887if test -n "${ZSH_VERSION+set}"; then 8888 setopt NO_GLOB_SUBST 8889fi 8890 8891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8892printf %s "checking for objdir... " >&6; } 8893if test ${lt_cv_objdir+y} 8894then : 8895 printf %s "(cached) " >&6 8896else $as_nop 8897 rm -f .libs 2>/dev/null 8898mkdir .libs 2>/dev/null 8899if test -d .libs; then 8900 lt_cv_objdir=.libs 8901else 8902 # MS-DOS does not allow filenames that begin with a dot. 8903 lt_cv_objdir=_libs 8904fi 8905rmdir .libs 2>/dev/null 8906fi 8907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8908printf "%s\n" "$lt_cv_objdir" >&6; } 8909objdir=$lt_cv_objdir 8910 8911 8912 8913 8914 8915printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8916 8917 8918 8919 8920case $host_os in 8921aix3*) 8922 # AIX sometimes has problems with the GCC collect2 program. For some 8923 # reason, if we set the COLLECT_NAMES environment variable, the problems 8924 # vanish in a puff of smoke. 8925 if test set != "${COLLECT_NAMES+set}"; then 8926 COLLECT_NAMES= 8927 export COLLECT_NAMES 8928 fi 8929 ;; 8930esac 8931 8932# Global variables: 8933ofile=libtool 8934can_build_shared=yes 8935 8936# All known linkers require a '.a' archive for static linking (except MSVC and 8937# ICC, which need '.lib'). 8938libext=a 8939 8940with_gnu_ld=$lt_cv_prog_gnu_ld 8941 8942old_CC=$CC 8943old_CFLAGS=$CFLAGS 8944 8945# Set sane defaults for various variables 8946test -z "$CC" && CC=cc 8947test -z "$LTCC" && LTCC=$CC 8948test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8949test -z "$LD" && LD=ld 8950test -z "$ac_objext" && ac_objext=o 8951 8952func_cc_basename $compiler 8953cc_basename=$func_cc_basename_result 8954 8955 8956# Only perform the check for file, if the check method requires it 8957test -z "$MAGIC_CMD" && MAGIC_CMD=file 8958case $deplibs_check_method in 8959file_magic*) 8960 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8962printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8963if test ${lt_cv_path_MAGIC_CMD+y} 8964then : 8965 printf %s "(cached) " >&6 8966else $as_nop 8967 case $MAGIC_CMD in 8968[\\/*] | ?:[\\/]*) 8969 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8970 ;; 8971*) 8972 lt_save_MAGIC_CMD=$MAGIC_CMD 8973 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8975 for ac_dir in $ac_dummy; do 8976 IFS=$lt_save_ifs 8977 test -z "$ac_dir" && ac_dir=. 8978 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8979 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8980 if test -n "$file_magic_test_file"; then 8981 case $deplibs_check_method in 8982 "file_magic "*) 8983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8984 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8986 $EGREP "$file_magic_regex" > /dev/null; then 8987 : 8988 else 8989 cat <<_LT_EOF 1>&2 8990 8991*** Warning: the command libtool uses to detect shared libraries, 8992*** $file_magic_cmd, produces output that libtool cannot recognize. 8993*** The result is that libtool may fail to recognize shared libraries 8994*** as such. This will affect the creation of libtool libraries that 8995*** depend on shared libraries, but programs linked with such libtool 8996*** libraries will work regardless of this problem. Nevertheless, you 8997*** may want to report the problem to your system manager and/or to 8998*** bug-libtool@gnu.org 8999 9000_LT_EOF 9001 fi ;; 9002 esac 9003 fi 9004 break 9005 fi 9006 done 9007 IFS=$lt_save_ifs 9008 MAGIC_CMD=$lt_save_MAGIC_CMD 9009 ;; 9010esac 9011fi 9012 9013MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9014if test -n "$MAGIC_CMD"; then 9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9016printf "%s\n" "$MAGIC_CMD" >&6; } 9017else 9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9019printf "%s\n" "no" >&6; } 9020fi 9021 9022 9023 9024 9025 9026if test -z "$lt_cv_path_MAGIC_CMD"; then 9027 if test -n "$ac_tool_prefix"; then 9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9029printf %s "checking for file... " >&6; } 9030if test ${lt_cv_path_MAGIC_CMD+y} 9031then : 9032 printf %s "(cached) " >&6 9033else $as_nop 9034 case $MAGIC_CMD in 9035[\\/*] | ?:[\\/]*) 9036 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9037 ;; 9038*) 9039 lt_save_MAGIC_CMD=$MAGIC_CMD 9040 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9042 for ac_dir in $ac_dummy; do 9043 IFS=$lt_save_ifs 9044 test -z "$ac_dir" && ac_dir=. 9045 if test -f "$ac_dir/file"; then 9046 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9047 if test -n "$file_magic_test_file"; then 9048 case $deplibs_check_method in 9049 "file_magic "*) 9050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9051 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9053 $EGREP "$file_magic_regex" > /dev/null; then 9054 : 9055 else 9056 cat <<_LT_EOF 1>&2 9057 9058*** Warning: the command libtool uses to detect shared libraries, 9059*** $file_magic_cmd, produces output that libtool cannot recognize. 9060*** The result is that libtool may fail to recognize shared libraries 9061*** as such. This will affect the creation of libtool libraries that 9062*** depend on shared libraries, but programs linked with such libtool 9063*** libraries will work regardless of this problem. Nevertheless, you 9064*** may want to report the problem to your system manager and/or to 9065*** bug-libtool@gnu.org 9066 9067_LT_EOF 9068 fi ;; 9069 esac 9070 fi 9071 break 9072 fi 9073 done 9074 IFS=$lt_save_ifs 9075 MAGIC_CMD=$lt_save_MAGIC_CMD 9076 ;; 9077esac 9078fi 9079 9080MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9081if test -n "$MAGIC_CMD"; then 9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9083printf "%s\n" "$MAGIC_CMD" >&6; } 9084else 9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9086printf "%s\n" "no" >&6; } 9087fi 9088 9089 9090 else 9091 MAGIC_CMD=: 9092 fi 9093fi 9094 9095 fi 9096 ;; 9097esac 9098 9099# Use C for the default configuration in the libtool script 9100 9101lt_save_CC=$CC 9102ac_ext=c 9103ac_cpp='$CPP $CPPFLAGS' 9104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9106ac_compiler_gnu=$ac_cv_c_compiler_gnu 9107 9108 9109# Source file extension for C test sources. 9110ac_ext=c 9111 9112# Object file extension for compiled C test sources. 9113objext=o 9114objext=$objext 9115 9116# Code to be used in simple compile tests 9117lt_simple_compile_test_code="int some_variable = 0;" 9118 9119# Code to be used in simple link tests 9120lt_simple_link_test_code='int main(){return(0);}' 9121 9122 9123 9124 9125 9126 9127 9128# If no C compiler was specified, use CC. 9129LTCC=${LTCC-"$CC"} 9130 9131# If no C compiler flags were specified, use CFLAGS. 9132LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9133 9134# Allow CC to be a program name with arguments. 9135compiler=$CC 9136 9137# Save the default compiler, since it gets overwritten when the other 9138# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9139compiler_DEFAULT=$CC 9140 9141# save warnings/boilerplate of simple test code 9142ac_outfile=conftest.$ac_objext 9143echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9144eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9145_lt_compiler_boilerplate=`cat conftest.err` 9146$RM conftest* 9147 9148ac_outfile=conftest.$ac_objext 9149echo "$lt_simple_link_test_code" >conftest.$ac_ext 9150eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9151_lt_linker_boilerplate=`cat conftest.err` 9152$RM -r conftest* 9153 9154 9155if test -n "$compiler"; then 9156 9157lt_prog_compiler_no_builtin_flag= 9158 9159if test yes = "$GCC"; then 9160 case $cc_basename in 9161 nvcc*) 9162 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9163 *) 9164 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9165 esac 9166 9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9168printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9169if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9170then : 9171 printf %s "(cached) " >&6 9172else $as_nop 9173 lt_cv_prog_compiler_rtti_exceptions=no 9174 ac_outfile=conftest.$ac_objext 9175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9176 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9177 # Insert the option either (1) after the last *FLAGS variable, or 9178 # (2) before a word containing "conftest.", or (3) at the end. 9179 # Note that $ac_compile itself does not contain backslashes and begins 9180 # with a dollar sign (not a hyphen), so the echo should work correctly. 9181 # The option is referenced via a variable to avoid confusing sed. 9182 lt_compile=`echo "$ac_compile" | $SED \ 9183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9185 -e 's:$: $lt_compiler_flag:'` 9186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9187 (eval "$lt_compile" 2>conftest.err) 9188 ac_status=$? 9189 cat conftest.err >&5 9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9191 if (exit $ac_status) && test -s "$ac_outfile"; then 9192 # The compiler can only warn and ignore the option if not recognized 9193 # So say no if there are warnings other than the usual output. 9194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9197 lt_cv_prog_compiler_rtti_exceptions=yes 9198 fi 9199 fi 9200 $RM conftest* 9201 9202fi 9203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9204printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9205 9206if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9207 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9208else 9209 : 9210fi 9211 9212fi 9213 9214 9215 9216 9217 9218 9219 lt_prog_compiler_wl= 9220lt_prog_compiler_pic= 9221lt_prog_compiler_static= 9222 9223 9224 if test yes = "$GCC"; then 9225 lt_prog_compiler_wl='-Wl,' 9226 lt_prog_compiler_static='-static' 9227 9228 case $host_os in 9229 aix*) 9230 # All AIX code is PIC. 9231 if test ia64 = "$host_cpu"; then 9232 # AIX 5 now supports IA64 processor 9233 lt_prog_compiler_static='-Bstatic' 9234 fi 9235 lt_prog_compiler_pic='-fPIC' 9236 ;; 9237 9238 amigaos*) 9239 case $host_cpu in 9240 powerpc) 9241 # see comment about AmigaOS4 .so support 9242 lt_prog_compiler_pic='-fPIC' 9243 ;; 9244 m68k) 9245 # FIXME: we need at least 68020 code to build shared libraries, but 9246 # adding the '-m68020' flag to GCC prevents building anything better, 9247 # like '-m68040'. 9248 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9249 ;; 9250 esac 9251 ;; 9252 9253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9254 # PIC is the default for these OSes. 9255 ;; 9256 9257 mingw* | cygwin* | pw32* | os2* | cegcc*) 9258 # This hack is so that the source file can tell whether it is being 9259 # built for inclusion in a dll (and should export symbols for example). 9260 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9261 # (--disable-auto-import) libraries 9262 lt_prog_compiler_pic='-DDLL_EXPORT' 9263 case $host_os in 9264 os2*) 9265 lt_prog_compiler_static='$wl-static' 9266 ;; 9267 esac 9268 ;; 9269 9270 darwin* | rhapsody*) 9271 # PIC is the default on this platform 9272 # Common symbols not allowed in MH_DYLIB files 9273 lt_prog_compiler_pic='-fno-common' 9274 ;; 9275 9276 haiku*) 9277 # PIC is the default for Haiku. 9278 # The "-static" flag exists, but is broken. 9279 lt_prog_compiler_static= 9280 ;; 9281 9282 hpux*) 9283 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9284 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9285 # sets the default TLS model and affects inlining. 9286 case $host_cpu in 9287 hppa*64*) 9288 # +Z the default 9289 ;; 9290 *) 9291 lt_prog_compiler_pic='-fPIC' 9292 ;; 9293 esac 9294 ;; 9295 9296 interix[3-9]*) 9297 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9298 # Instead, we relocate shared libraries at runtime. 9299 ;; 9300 9301 msdosdjgpp*) 9302 # Just because we use GCC doesn't mean we suddenly get shared libraries 9303 # on systems that don't support them. 9304 lt_prog_compiler_can_build_shared=no 9305 enable_shared=no 9306 ;; 9307 9308 *nto* | *qnx*) 9309 # QNX uses GNU C++, but need to define -shared option too, otherwise 9310 # it will coredump. 9311 lt_prog_compiler_pic='-fPIC -shared' 9312 ;; 9313 9314 sysv4*MP*) 9315 if test -d /usr/nec; then 9316 lt_prog_compiler_pic=-Kconform_pic 9317 fi 9318 ;; 9319 9320 *) 9321 lt_prog_compiler_pic='-fPIC' 9322 ;; 9323 esac 9324 9325 case $cc_basename in 9326 nvcc*) # Cuda Compiler Driver 2.2 9327 lt_prog_compiler_wl='-Xlinker ' 9328 if test -n "$lt_prog_compiler_pic"; then 9329 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9330 fi 9331 ;; 9332 esac 9333 else 9334 # PORTME Check for flag to pass linker flags through the system compiler. 9335 case $host_os in 9336 aix*) 9337 lt_prog_compiler_wl='-Wl,' 9338 if test ia64 = "$host_cpu"; then 9339 # AIX 5 now supports IA64 processor 9340 lt_prog_compiler_static='-Bstatic' 9341 else 9342 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9343 fi 9344 ;; 9345 9346 darwin* | rhapsody*) 9347 # PIC is the default on this platform 9348 # Common symbols not allowed in MH_DYLIB files 9349 lt_prog_compiler_pic='-fno-common' 9350 case $cc_basename in 9351 nagfor*) 9352 # NAG Fortran compiler 9353 lt_prog_compiler_wl='-Wl,-Wl,,' 9354 lt_prog_compiler_pic='-PIC' 9355 lt_prog_compiler_static='-Bstatic' 9356 ;; 9357 esac 9358 ;; 9359 9360 mingw* | cygwin* | pw32* | os2* | cegcc*) 9361 # This hack is so that the source file can tell whether it is being 9362 # built for inclusion in a dll (and should export symbols for example). 9363 lt_prog_compiler_pic='-DDLL_EXPORT' 9364 case $host_os in 9365 os2*) 9366 lt_prog_compiler_static='$wl-static' 9367 ;; 9368 esac 9369 ;; 9370 9371 hpux9* | hpux10* | hpux11*) 9372 lt_prog_compiler_wl='-Wl,' 9373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9374 # not for PA HP-UX. 9375 case $host_cpu in 9376 hppa*64*|ia64*) 9377 # +Z the default 9378 ;; 9379 *) 9380 lt_prog_compiler_pic='+Z' 9381 ;; 9382 esac 9383 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9384 lt_prog_compiler_static='$wl-a ${wl}archive' 9385 ;; 9386 9387 irix5* | irix6* | nonstopux*) 9388 lt_prog_compiler_wl='-Wl,' 9389 # PIC (with -KPIC) is the default. 9390 lt_prog_compiler_static='-non_shared' 9391 ;; 9392 9393 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9394 case $cc_basename in 9395 # old Intel for x86_64, which still supported -KPIC. 9396 ecc*) 9397 lt_prog_compiler_wl='-Wl,' 9398 lt_prog_compiler_pic='-KPIC' 9399 lt_prog_compiler_static='-static' 9400 ;; 9401 # icc used to be incompatible with GCC. 9402 # ICC 10 doesn't accept -KPIC any more. 9403 icc* | ifort*) 9404 lt_prog_compiler_wl='-Wl,' 9405 lt_prog_compiler_pic='-fPIC' 9406 lt_prog_compiler_static='-static' 9407 ;; 9408 # Lahey Fortran 8.1. 9409 lf95*) 9410 lt_prog_compiler_wl='-Wl,' 9411 lt_prog_compiler_pic='--shared' 9412 lt_prog_compiler_static='--static' 9413 ;; 9414 nagfor*) 9415 # NAG Fortran compiler 9416 lt_prog_compiler_wl='-Wl,-Wl,,' 9417 lt_prog_compiler_pic='-PIC' 9418 lt_prog_compiler_static='-Bstatic' 9419 ;; 9420 tcc*) 9421 # Fabrice Bellard et al's Tiny C Compiler 9422 lt_prog_compiler_wl='-Wl,' 9423 lt_prog_compiler_pic='-fPIC' 9424 lt_prog_compiler_static='-static' 9425 ;; 9426 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9427 # Portland Group compilers (*not* the Pentium gcc compiler, 9428 # which looks to be a dead project) 9429 lt_prog_compiler_wl='-Wl,' 9430 lt_prog_compiler_pic='-fpic' 9431 lt_prog_compiler_static='-Bstatic' 9432 ;; 9433 ccc*) 9434 lt_prog_compiler_wl='-Wl,' 9435 # All Alpha code is PIC. 9436 lt_prog_compiler_static='-non_shared' 9437 ;; 9438 xl* | bgxl* | bgf* | mpixl*) 9439 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9440 lt_prog_compiler_wl='-Wl,' 9441 lt_prog_compiler_pic='-qpic' 9442 lt_prog_compiler_static='-qstaticlink' 9443 ;; 9444 *) 9445 case `$CC -V 2>&1 | $SED 5q` in 9446 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9447 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9448 lt_prog_compiler_pic='-KPIC' 9449 lt_prog_compiler_static='-Bstatic' 9450 lt_prog_compiler_wl='' 9451 ;; 9452 *Sun\ F* | *Sun*Fortran*) 9453 lt_prog_compiler_pic='-KPIC' 9454 lt_prog_compiler_static='-Bstatic' 9455 lt_prog_compiler_wl='-Qoption ld ' 9456 ;; 9457 *Sun\ C*) 9458 # Sun C 5.9 9459 lt_prog_compiler_pic='-KPIC' 9460 lt_prog_compiler_static='-Bstatic' 9461 lt_prog_compiler_wl='-Wl,' 9462 ;; 9463 *Intel*\ [CF]*Compiler*) 9464 lt_prog_compiler_wl='-Wl,' 9465 lt_prog_compiler_pic='-fPIC' 9466 lt_prog_compiler_static='-static' 9467 ;; 9468 *Portland\ Group*) 9469 lt_prog_compiler_wl='-Wl,' 9470 lt_prog_compiler_pic='-fpic' 9471 lt_prog_compiler_static='-Bstatic' 9472 ;; 9473 esac 9474 ;; 9475 esac 9476 ;; 9477 9478 newsos6) 9479 lt_prog_compiler_pic='-KPIC' 9480 lt_prog_compiler_static='-Bstatic' 9481 ;; 9482 9483 *nto* | *qnx*) 9484 # QNX uses GNU C++, but need to define -shared option too, otherwise 9485 # it will coredump. 9486 lt_prog_compiler_pic='-fPIC -shared' 9487 ;; 9488 9489 osf3* | osf4* | osf5*) 9490 lt_prog_compiler_wl='-Wl,' 9491 # All OSF/1 code is PIC. 9492 lt_prog_compiler_static='-non_shared' 9493 ;; 9494 9495 rdos*) 9496 lt_prog_compiler_static='-non_shared' 9497 ;; 9498 9499 solaris*) 9500 lt_prog_compiler_pic='-KPIC' 9501 lt_prog_compiler_static='-Bstatic' 9502 case $cc_basename in 9503 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9504 lt_prog_compiler_wl='-Qoption ld ';; 9505 *) 9506 lt_prog_compiler_wl='-Wl,';; 9507 esac 9508 ;; 9509 9510 sunos4*) 9511 lt_prog_compiler_wl='-Qoption ld ' 9512 lt_prog_compiler_pic='-PIC' 9513 lt_prog_compiler_static='-Bstatic' 9514 ;; 9515 9516 sysv4 | sysv4.2uw2* | sysv4.3*) 9517 lt_prog_compiler_wl='-Wl,' 9518 lt_prog_compiler_pic='-KPIC' 9519 lt_prog_compiler_static='-Bstatic' 9520 ;; 9521 9522 sysv4*MP*) 9523 if test -d /usr/nec; then 9524 lt_prog_compiler_pic='-Kconform_pic' 9525 lt_prog_compiler_static='-Bstatic' 9526 fi 9527 ;; 9528 9529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9530 lt_prog_compiler_wl='-Wl,' 9531 lt_prog_compiler_pic='-KPIC' 9532 lt_prog_compiler_static='-Bstatic' 9533 ;; 9534 9535 unicos*) 9536 lt_prog_compiler_wl='-Wl,' 9537 lt_prog_compiler_can_build_shared=no 9538 ;; 9539 9540 uts4*) 9541 lt_prog_compiler_pic='-pic' 9542 lt_prog_compiler_static='-Bstatic' 9543 ;; 9544 9545 *) 9546 lt_prog_compiler_can_build_shared=no 9547 ;; 9548 esac 9549 fi 9550 9551case $host_os in 9552 # For platforms that do not support PIC, -DPIC is meaningless: 9553 *djgpp*) 9554 lt_prog_compiler_pic= 9555 ;; 9556 *) 9557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9558 ;; 9559esac 9560 9561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9562printf %s "checking for $compiler option to produce PIC... " >&6; } 9563if test ${lt_cv_prog_compiler_pic+y} 9564then : 9565 printf %s "(cached) " >&6 9566else $as_nop 9567 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9568fi 9569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9570printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9571lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9572 9573# 9574# Check to make sure the PIC flag actually works. 9575# 9576if test -n "$lt_prog_compiler_pic"; then 9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9578printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9579if test ${lt_cv_prog_compiler_pic_works+y} 9580then : 9581 printf %s "(cached) " >&6 9582else $as_nop 9583 lt_cv_prog_compiler_pic_works=no 9584 ac_outfile=conftest.$ac_objext 9585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9586 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9587 # Insert the option either (1) after the last *FLAGS variable, or 9588 # (2) before a word containing "conftest.", or (3) at the end. 9589 # Note that $ac_compile itself does not contain backslashes and begins 9590 # with a dollar sign (not a hyphen), so the echo should work correctly. 9591 # The option is referenced via a variable to avoid confusing sed. 9592 lt_compile=`echo "$ac_compile" | $SED \ 9593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9595 -e 's:$: $lt_compiler_flag:'` 9596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9597 (eval "$lt_compile" 2>conftest.err) 9598 ac_status=$? 9599 cat conftest.err >&5 9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9601 if (exit $ac_status) && test -s "$ac_outfile"; then 9602 # The compiler can only warn and ignore the option if not recognized 9603 # So say no if there are warnings other than the usual output. 9604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9607 lt_cv_prog_compiler_pic_works=yes 9608 fi 9609 fi 9610 $RM conftest* 9611 9612fi 9613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9614printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9615 9616if test yes = "$lt_cv_prog_compiler_pic_works"; then 9617 case $lt_prog_compiler_pic in 9618 "" | " "*) ;; 9619 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9620 esac 9621else 9622 lt_prog_compiler_pic= 9623 lt_prog_compiler_can_build_shared=no 9624fi 9625 9626fi 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638# 9639# Check to make sure the static flag actually works. 9640# 9641wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9643printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9644if test ${lt_cv_prog_compiler_static_works+y} 9645then : 9646 printf %s "(cached) " >&6 9647else $as_nop 9648 lt_cv_prog_compiler_static_works=no 9649 save_LDFLAGS=$LDFLAGS 9650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9651 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9653 # The linker can only warn and ignore the option if not recognized 9654 # So say no if there are warnings 9655 if test -s conftest.err; then 9656 # Append any errors to the config.log. 9657 cat conftest.err 1>&5 9658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9660 if diff conftest.exp conftest.er2 >/dev/null; then 9661 lt_cv_prog_compiler_static_works=yes 9662 fi 9663 else 9664 lt_cv_prog_compiler_static_works=yes 9665 fi 9666 fi 9667 $RM -r conftest* 9668 LDFLAGS=$save_LDFLAGS 9669 9670fi 9671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9672printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9673 9674if test yes = "$lt_cv_prog_compiler_static_works"; then 9675 : 9676else 9677 lt_prog_compiler_static= 9678fi 9679 9680 9681 9682 9683 9684 9685 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9687printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9688if test ${lt_cv_prog_compiler_c_o+y} 9689then : 9690 printf %s "(cached) " >&6 9691else $as_nop 9692 lt_cv_prog_compiler_c_o=no 9693 $RM -r conftest 2>/dev/null 9694 mkdir conftest 9695 cd conftest 9696 mkdir out 9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9698 9699 lt_compiler_flag="-o out/conftest2.$ac_objext" 9700 # Insert the option either (1) after the last *FLAGS variable, or 9701 # (2) before a word containing "conftest.", or (3) at the end. 9702 # Note that $ac_compile itself does not contain backslashes and begins 9703 # with a dollar sign (not a hyphen), so the echo should work correctly. 9704 lt_compile=`echo "$ac_compile" | $SED \ 9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9707 -e 's:$: $lt_compiler_flag:'` 9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9709 (eval "$lt_compile" 2>out/conftest.err) 9710 ac_status=$? 9711 cat out/conftest.err >&5 9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9714 then 9715 # The compiler can only warn and ignore the option if not recognized 9716 # So say no if there are warnings 9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9720 lt_cv_prog_compiler_c_o=yes 9721 fi 9722 fi 9723 chmod u+w . 2>&5 9724 $RM conftest* 9725 # SGI C++ compiler will create directory out/ii_files/ for 9726 # template instantiation 9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9728 $RM out/* && rmdir out 9729 cd .. 9730 $RM -r conftest 9731 $RM conftest* 9732 9733fi 9734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9735printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9736 9737 9738 9739 9740 9741 9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9743printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9744if test ${lt_cv_prog_compiler_c_o+y} 9745then : 9746 printf %s "(cached) " >&6 9747else $as_nop 9748 lt_cv_prog_compiler_c_o=no 9749 $RM -r conftest 2>/dev/null 9750 mkdir conftest 9751 cd conftest 9752 mkdir out 9753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9754 9755 lt_compiler_flag="-o out/conftest2.$ac_objext" 9756 # Insert the option either (1) after the last *FLAGS variable, or 9757 # (2) before a word containing "conftest.", or (3) at the end. 9758 # Note that $ac_compile itself does not contain backslashes and begins 9759 # with a dollar sign (not a hyphen), so the echo should work correctly. 9760 lt_compile=`echo "$ac_compile" | $SED \ 9761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9763 -e 's:$: $lt_compiler_flag:'` 9764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9765 (eval "$lt_compile" 2>out/conftest.err) 9766 ac_status=$? 9767 cat out/conftest.err >&5 9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9769 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9770 then 9771 # The compiler can only warn and ignore the option if not recognized 9772 # So say no if there are warnings 9773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9776 lt_cv_prog_compiler_c_o=yes 9777 fi 9778 fi 9779 chmod u+w . 2>&5 9780 $RM conftest* 9781 # SGI C++ compiler will create directory out/ii_files/ for 9782 # template instantiation 9783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9784 $RM out/* && rmdir out 9785 cd .. 9786 $RM -r conftest 9787 $RM conftest* 9788 9789fi 9790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9791printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9792 9793 9794 9795 9796hard_links=nottested 9797if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9798 # do not overwrite the value of need_locks provided by the user 9799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9800printf %s "checking if we can lock with hard links... " >&6; } 9801 hard_links=yes 9802 $RM conftest* 9803 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9804 touch conftest.a 9805 ln conftest.a conftest.b 2>&5 || hard_links=no 9806 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9808printf "%s\n" "$hard_links" >&6; } 9809 if test no = "$hard_links"; then 9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9811printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9812 need_locks=warn 9813 fi 9814else 9815 need_locks=no 9816fi 9817 9818 9819 9820 9821 9822 9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9824printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9825 9826 runpath_var= 9827 allow_undefined_flag= 9828 always_export_symbols=no 9829 archive_cmds= 9830 archive_expsym_cmds= 9831 compiler_needs_object=no 9832 enable_shared_with_static_runtimes=no 9833 export_dynamic_flag_spec= 9834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9835 hardcode_automatic=no 9836 hardcode_direct=no 9837 hardcode_direct_absolute=no 9838 hardcode_libdir_flag_spec= 9839 hardcode_libdir_separator= 9840 hardcode_minus_L=no 9841 hardcode_shlibpath_var=unsupported 9842 inherit_rpath=no 9843 link_all_deplibs=unknown 9844 module_cmds= 9845 module_expsym_cmds= 9846 old_archive_from_new_cmds= 9847 old_archive_from_expsyms_cmds= 9848 thread_safe_flag_spec= 9849 whole_archive_flag_spec= 9850 # include_expsyms should be a list of space-separated symbols to be *always* 9851 # included in the symbol list 9852 include_expsyms= 9853 # exclude_expsyms can be an extended regexp of symbols to exclude 9854 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9855 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9856 # as well as any symbol that contains 'd'. 9857 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9859 # platforms (ab)use it in PIC code, but their linkers get confused if 9860 # the symbol is explicitly referenced. Since portable code cannot 9861 # rely on this symbol name, it's probably fine to never include it in 9862 # preloaded symbol tables. 9863 # Exclude shared library initialization/finalization symbols. 9864 extract_expsyms_cmds= 9865 9866 case $host_os in 9867 cygwin* | mingw* | pw32* | cegcc*) 9868 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9869 # When not using gcc, we currently assume that we are using 9870 # Microsoft Visual C++ or Intel C++ Compiler. 9871 if test yes != "$GCC"; then 9872 with_gnu_ld=no 9873 fi 9874 ;; 9875 interix*) 9876 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9877 with_gnu_ld=yes 9878 ;; 9879 openbsd* | bitrig*) 9880 with_gnu_ld=no 9881 ;; 9882 esac 9883 9884 ld_shlibs=yes 9885 9886 # On some targets, GNU ld is compatible enough with the native linker 9887 # that we're better off using the native interface for both. 9888 lt_use_gnu_ld_interface=no 9889 if test yes = "$with_gnu_ld"; then 9890 case $host_os in 9891 aix*) 9892 # The AIX port of GNU ld has always aspired to compatibility 9893 # with the native linker. However, as the warning in the GNU ld 9894 # block says, versions before 2.19.5* couldn't really create working 9895 # shared libraries, regardless of the interface used. 9896 case `$LD -v 2>&1` in 9897 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9898 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9899 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9900 *) 9901 lt_use_gnu_ld_interface=yes 9902 ;; 9903 esac 9904 ;; 9905 *) 9906 lt_use_gnu_ld_interface=yes 9907 ;; 9908 esac 9909 fi 9910 9911 if test yes = "$lt_use_gnu_ld_interface"; then 9912 # If archive_cmds runs LD, not CC, wlarc should be empty 9913 wlarc='$wl' 9914 9915 # Set some defaults for GNU ld with shared library support. These 9916 # are reset later if shared libraries are not supported. Putting them 9917 # here allows them to be overridden if necessary. 9918 runpath_var=LD_RUN_PATH 9919 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9920 export_dynamic_flag_spec='$wl--export-dynamic' 9921 # ancient GNU ld didn't support --whole-archive et. al. 9922 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9923 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9924 else 9925 whole_archive_flag_spec= 9926 fi 9927 supports_anon_versioning=no 9928 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9929 *GNU\ gold*) supports_anon_versioning=yes ;; 9930 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9931 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9932 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9933 *\ 2.11.*) ;; # other 2.11 versions 9934 *) supports_anon_versioning=yes ;; 9935 esac 9936 9937 # See if GNU ld supports shared libraries. 9938 case $host_os in 9939 aix[3-9]*) 9940 # On AIX/PPC, the GNU linker is very broken 9941 if test ia64 != "$host_cpu"; then 9942 ld_shlibs=no 9943 cat <<_LT_EOF 1>&2 9944 9945*** Warning: the GNU linker, at least up to release 2.19, is reported 9946*** to be unable to reliably create shared libraries on AIX. 9947*** Therefore, libtool is disabling shared libraries support. If you 9948*** really care for shared libraries, you may want to install binutils 9949*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9950*** You will then need to restart the configuration process. 9951 9952_LT_EOF 9953 fi 9954 ;; 9955 9956 amigaos*) 9957 case $host_cpu in 9958 powerpc) 9959 # see comment about AmigaOS4 .so support 9960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9961 archive_expsym_cmds='' 9962 ;; 9963 m68k) 9964 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)' 9965 hardcode_libdir_flag_spec='-L$libdir' 9966 hardcode_minus_L=yes 9967 ;; 9968 esac 9969 ;; 9970 9971 beos*) 9972 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9973 allow_undefined_flag=unsupported 9974 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9975 # support --undefined. This deserves some investigation. FIXME 9976 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9977 else 9978 ld_shlibs=no 9979 fi 9980 ;; 9981 9982 cygwin* | mingw* | pw32* | cegcc*) 9983 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9984 # as there is no search path for DLLs. 9985 hardcode_libdir_flag_spec='-L$libdir' 9986 export_dynamic_flag_spec='$wl--export-all-symbols' 9987 allow_undefined_flag=unsupported 9988 always_export_symbols=no 9989 enable_shared_with_static_runtimes=yes 9990 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' 9991 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9992 9993 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9995 # If the export-symbols file already is a .def file, use it as 9996 # is; otherwise, prepend EXPORTS... 9997 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9998 cp $export_symbols $output_objdir/$soname.def; 9999 else 10000 echo EXPORTS > $output_objdir/$soname.def; 10001 cat $export_symbols >> $output_objdir/$soname.def; 10002 fi~ 10003 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10004 else 10005 ld_shlibs=no 10006 fi 10007 ;; 10008 10009 haiku*) 10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10011 link_all_deplibs=yes 10012 ;; 10013 10014 os2*) 10015 hardcode_libdir_flag_spec='-L$libdir' 10016 hardcode_minus_L=yes 10017 allow_undefined_flag=unsupported 10018 shrext_cmds=.dll 10019 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10020 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10021 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10022 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10023 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10024 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10025 emximp -o $lib $output_objdir/$libname.def' 10026 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10027 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10028 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10029 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10030 prefix_cmds="$SED"~ 10031 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10032 prefix_cmds="$prefix_cmds -e 1d"; 10033 fi~ 10034 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10035 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10036 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10037 emximp -o $lib $output_objdir/$libname.def' 10038 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10039 enable_shared_with_static_runtimes=yes 10040 file_list_spec='@' 10041 ;; 10042 10043 interix[3-9]*) 10044 hardcode_direct=no 10045 hardcode_shlibpath_var=no 10046 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10047 export_dynamic_flag_spec='$wl-E' 10048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10049 # Instead, shared libraries are loaded at an image base (0x10000000 by 10050 # default) and relocated if they conflict, which is a slow very memory 10051 # consuming and fragmenting process. To avoid this, we pick a random, 10052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10053 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10055 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' 10056 ;; 10057 10058 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10059 tmp_diet=no 10060 if test linux-dietlibc = "$host_os"; then 10061 case $cc_basename in 10062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10063 esac 10064 fi 10065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10066 && test no = "$tmp_diet" 10067 then 10068 tmp_addflag=' $pic_flag' 10069 tmp_sharedflag='-shared' 10070 case $cc_basename,$host_cpu in 10071 pgcc*) # Portland Group C compiler 10072 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' 10073 tmp_addflag=' $pic_flag' 10074 ;; 10075 pgf77* | pgf90* | pgf95* | pgfortran*) 10076 # Portland Group f77 and f90 compilers 10077 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' 10078 tmp_addflag=' $pic_flag -Mnomain' ;; 10079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10080 tmp_addflag=' -i_dynamic' ;; 10081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10082 tmp_addflag=' -i_dynamic -nofor_main' ;; 10083 ifc* | ifort*) # Intel Fortran compiler 10084 tmp_addflag=' -nofor_main' ;; 10085 lf95*) # Lahey Fortran 8.1 10086 whole_archive_flag_spec= 10087 tmp_sharedflag='--shared' ;; 10088 nagfor*) # NAGFOR 5.3 10089 tmp_sharedflag='-Wl,-shared' ;; 10090 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10091 tmp_sharedflag='-qmkshrobj' 10092 tmp_addflag= ;; 10093 nvcc*) # Cuda Compiler Driver 2.2 10094 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' 10095 compiler_needs_object=yes 10096 ;; 10097 esac 10098 case `$CC -V 2>&1 | $SED 5q` in 10099 *Sun\ C*) # Sun C 5.9 10100 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' 10101 compiler_needs_object=yes 10102 tmp_sharedflag='-G' ;; 10103 *Sun\ F*) # Sun Fortran 8.3 10104 tmp_sharedflag='-G' ;; 10105 esac 10106 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10107 10108 if test yes = "$supports_anon_versioning"; then 10109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10110 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10111 echo "local: *; };" >> $output_objdir/$libname.ver~ 10112 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10113 fi 10114 10115 case $cc_basename in 10116 tcc*) 10117 export_dynamic_flag_spec='-rdynamic' 10118 ;; 10119 xlf* | bgf* | bgxlf* | mpixlf*) 10120 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10121 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10123 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10124 if test yes = "$supports_anon_versioning"; then 10125 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10126 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10127 echo "local: *; };" >> $output_objdir/$libname.ver~ 10128 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10129 fi 10130 ;; 10131 esac 10132 else 10133 ld_shlibs=no 10134 fi 10135 ;; 10136 10137 netbsd*) 10138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10139 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10140 wlarc= 10141 else 10142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10144 fi 10145 ;; 10146 10147 solaris*) 10148 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10149 ld_shlibs=no 10150 cat <<_LT_EOF 1>&2 10151 10152*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10153*** create shared libraries on Solaris systems. Therefore, libtool 10154*** is disabling shared libraries support. We urge you to upgrade GNU 10155*** binutils to release 2.9.1 or newer. Another option is to modify 10156*** your PATH or compiler configuration so that the native linker is 10157*** used, and then restart. 10158 10159_LT_EOF 10160 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10163 else 10164 ld_shlibs=no 10165 fi 10166 ;; 10167 10168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10169 case `$LD -v 2>&1` in 10170 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10171 ld_shlibs=no 10172 cat <<_LT_EOF 1>&2 10173 10174*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10175*** reliably create shared libraries on SCO systems. Therefore, libtool 10176*** is disabling shared libraries support. We urge you to upgrade GNU 10177*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10178*** your PATH or compiler configuration so that the native linker is 10179*** used, and then restart. 10180 10181_LT_EOF 10182 ;; 10183 *) 10184 # For security reasons, it is highly recommended that you always 10185 # use absolute paths for naming shared libraries, and exclude the 10186 # DT_RUNPATH tag from executables and libraries. But doing so 10187 # requires that you compile everything twice, which is a pain. 10188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10192 else 10193 ld_shlibs=no 10194 fi 10195 ;; 10196 esac 10197 ;; 10198 10199 sunos4*) 10200 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10201 wlarc= 10202 hardcode_direct=yes 10203 hardcode_shlibpath_var=no 10204 ;; 10205 10206 *) 10207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10210 else 10211 ld_shlibs=no 10212 fi 10213 ;; 10214 esac 10215 10216 if test no = "$ld_shlibs"; then 10217 runpath_var= 10218 hardcode_libdir_flag_spec= 10219 export_dynamic_flag_spec= 10220 whole_archive_flag_spec= 10221 fi 10222 else 10223 # PORTME fill in a description of your system's linker (not GNU ld) 10224 case $host_os in 10225 aix3*) 10226 allow_undefined_flag=unsupported 10227 always_export_symbols=yes 10228 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' 10229 # Note: this linker hardcodes the directories in LIBPATH if there 10230 # are no directories specified by -L. 10231 hardcode_minus_L=yes 10232 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10233 # Neither direct hardcoding nor static linking is supported with a 10234 # broken collect2. 10235 hardcode_direct=unsupported 10236 fi 10237 ;; 10238 10239 aix[4-9]*) 10240 if test ia64 = "$host_cpu"; then 10241 # On IA64, the linker does run time linking by default, so we don't 10242 # have to do anything special. 10243 aix_use_runtimelinking=no 10244 exp_sym_flag='-Bexport' 10245 no_entry_flag= 10246 else 10247 # If we're using GNU nm, then we don't want the "-C" option. 10248 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10249 # Without the "-l" option, or with the "-B" option, AIX nm treats 10250 # weak defined symbols like other global defined symbols, whereas 10251 # GNU nm marks them as "W". 10252 # While the 'weak' keyword is ignored in the Export File, we need 10253 # it in the Import File for the 'aix-soname' feature, so we have 10254 # to replace the "-B" option with "-P" for AIX nm. 10255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10256 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' 10257 else 10258 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' 10259 fi 10260 aix_use_runtimelinking=no 10261 10262 # Test if we are trying to use run time linking or normal 10263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10264 # have runtime linking enabled, and use it for executables. 10265 # For shared libraries, we enable/disable runtime linking 10266 # depending on the kind of the shared library created - 10267 # when "with_aix_soname,aix_use_runtimelinking" is: 10268 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10269 # "aix,yes" lib.so shared, rtl:yes, for executables 10270 # lib.a static archive 10271 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10272 # lib.a(lib.so.V) shared, rtl:no, for executables 10273 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10274 # lib.a(lib.so.V) shared, rtl:no 10275 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10276 # lib.a static archive 10277 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10278 for ld_flag in $LDFLAGS; do 10279 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10280 aix_use_runtimelinking=yes 10281 break 10282 fi 10283 done 10284 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10285 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10286 # so we don't have lib.a shared libs to link our executables. 10287 # We have to force runtime linking in this case. 10288 aix_use_runtimelinking=yes 10289 LDFLAGS="$LDFLAGS -Wl,-brtl" 10290 fi 10291 ;; 10292 esac 10293 10294 exp_sym_flag='-bexport' 10295 no_entry_flag='-bnoentry' 10296 fi 10297 10298 # When large executables or shared objects are built, AIX ld can 10299 # have problems creating the table of contents. If linking a library 10300 # or program results in "error TOC overflow" add -mminimal-toc to 10301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10303 10304 archive_cmds='' 10305 hardcode_direct=yes 10306 hardcode_direct_absolute=yes 10307 hardcode_libdir_separator=':' 10308 link_all_deplibs=yes 10309 file_list_spec='$wl-f,' 10310 case $with_aix_soname,$aix_use_runtimelinking in 10311 aix,*) ;; # traditional, no import file 10312 svr4,* | *,yes) # use import file 10313 # The Import File defines what to hardcode. 10314 hardcode_direct=no 10315 hardcode_direct_absolute=no 10316 ;; 10317 esac 10318 10319 if test yes = "$GCC"; then 10320 case $host_os in aix4.[012]|aix4.[012].*) 10321 # We only want to do this on AIX 4.2 and lower, the check 10322 # below for broken collect2 doesn't work under 4.3+ 10323 collect2name=`$CC -print-prog-name=collect2` 10324 if test -f "$collect2name" && 10325 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10326 then 10327 # We have reworked collect2 10328 : 10329 else 10330 # We have old collect2 10331 hardcode_direct=unsupported 10332 # It fails to find uninstalled libraries when the uninstalled 10333 # path is not listed in the libpath. Setting hardcode_minus_L 10334 # to unsupported forces relinking 10335 hardcode_minus_L=yes 10336 hardcode_libdir_flag_spec='-L$libdir' 10337 hardcode_libdir_separator= 10338 fi 10339 ;; 10340 esac 10341 shared_flag='-shared' 10342 if test yes = "$aix_use_runtimelinking"; then 10343 shared_flag="$shared_flag "'$wl-G' 10344 fi 10345 # Need to ensure runtime linking is disabled for the traditional 10346 # shared library, or the linker may eventually find shared libraries 10347 # /with/ Import File - we do not want to mix them. 10348 shared_flag_aix='-shared' 10349 shared_flag_svr4='-shared $wl-G' 10350 else 10351 # not using gcc 10352 if test ia64 = "$host_cpu"; then 10353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10354 # chokes on -Wl,-G. The following line is correct: 10355 shared_flag='-G' 10356 else 10357 if test yes = "$aix_use_runtimelinking"; then 10358 shared_flag='$wl-G' 10359 else 10360 shared_flag='$wl-bM:SRE' 10361 fi 10362 shared_flag_aix='$wl-bM:SRE' 10363 shared_flag_svr4='$wl-G' 10364 fi 10365 fi 10366 10367 export_dynamic_flag_spec='$wl-bexpall' 10368 # It seems that -bexpall does not export symbols beginning with 10369 # underscore (_), so it is better to generate a list of symbols to export. 10370 always_export_symbols=yes 10371 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10372 # Warning - without using the other runtime loading flags (-brtl), 10373 # -berok will link without error, but may produce a broken library. 10374 allow_undefined_flag='-berok' 10375 # Determine the default libpath from the value encoded in an 10376 # empty executable. 10377 if test set = "${lt_cv_aix_libpath+set}"; then 10378 aix_libpath=$lt_cv_aix_libpath 10379else 10380 if test ${lt_cv_aix_libpath_+y} 10381then : 10382 printf %s "(cached) " >&6 10383else $as_nop 10384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10385/* end confdefs.h. */ 10386 10387int 10388main (void) 10389{ 10390 10391 ; 10392 return 0; 10393} 10394_ACEOF 10395if ac_fn_c_try_link "$LINENO" 10396then : 10397 10398 lt_aix_libpath_sed=' 10399 /Import File Strings/,/^$/ { 10400 /^0/ { 10401 s/^0 *\([^ ]*\) *$/\1/ 10402 p 10403 } 10404 }' 10405 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10406 # Check for a 64-bit object if we didn't find anything. 10407 if test -z "$lt_cv_aix_libpath_"; then 10408 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10409 fi 10410fi 10411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10412 conftest$ac_exeext conftest.$ac_ext 10413 if test -z "$lt_cv_aix_libpath_"; then 10414 lt_cv_aix_libpath_=/usr/lib:/lib 10415 fi 10416 10417fi 10418 10419 aix_libpath=$lt_cv_aix_libpath_ 10420fi 10421 10422 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10423 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 10424 else 10425 if test ia64 = "$host_cpu"; then 10426 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10427 allow_undefined_flag="-z nodefs" 10428 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" 10429 else 10430 # Determine the default libpath from the value encoded in an 10431 # empty executable. 10432 if test set = "${lt_cv_aix_libpath+set}"; then 10433 aix_libpath=$lt_cv_aix_libpath 10434else 10435 if test ${lt_cv_aix_libpath_+y} 10436then : 10437 printf %s "(cached) " >&6 10438else $as_nop 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440/* end confdefs.h. */ 10441 10442int 10443main (void) 10444{ 10445 10446 ; 10447 return 0; 10448} 10449_ACEOF 10450if ac_fn_c_try_link "$LINENO" 10451then : 10452 10453 lt_aix_libpath_sed=' 10454 /Import File Strings/,/^$/ { 10455 /^0/ { 10456 s/^0 *\([^ ]*\) *$/\1/ 10457 p 10458 } 10459 }' 10460 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10461 # Check for a 64-bit object if we didn't find anything. 10462 if test -z "$lt_cv_aix_libpath_"; then 10463 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10464 fi 10465fi 10466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10467 conftest$ac_exeext conftest.$ac_ext 10468 if test -z "$lt_cv_aix_libpath_"; then 10469 lt_cv_aix_libpath_=/usr/lib:/lib 10470 fi 10471 10472fi 10473 10474 aix_libpath=$lt_cv_aix_libpath_ 10475fi 10476 10477 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10478 # Warning - without using the other run time loading flags, 10479 # -berok will link without error, but may produce a broken library. 10480 no_undefined_flag=' $wl-bernotok' 10481 allow_undefined_flag=' $wl-berok' 10482 if test yes = "$with_gnu_ld"; then 10483 # We only use this code for GNU lds that support --whole-archive. 10484 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10485 else 10486 # Exported symbols can be pulled into shared objects from archives 10487 whole_archive_flag_spec='$convenience' 10488 fi 10489 archive_cmds_need_lc=yes 10490 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10491 # -brtl affects multiple linker settings, -berok does not and is overridden later 10492 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10493 if test svr4 != "$with_aix_soname"; then 10494 # This is similar to how AIX traditionally builds its shared libraries. 10495 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' 10496 fi 10497 if test aix != "$with_aix_soname"; then 10498 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' 10499 else 10500 # used by -dlpreopen to get the symbols 10501 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10502 fi 10503 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10504 fi 10505 fi 10506 ;; 10507 10508 amigaos*) 10509 case $host_cpu in 10510 powerpc) 10511 # see comment about AmigaOS4 .so support 10512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10513 archive_expsym_cmds='' 10514 ;; 10515 m68k) 10516 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)' 10517 hardcode_libdir_flag_spec='-L$libdir' 10518 hardcode_minus_L=yes 10519 ;; 10520 esac 10521 ;; 10522 10523 bsdi[45]*) 10524 export_dynamic_flag_spec=-rdynamic 10525 ;; 10526 10527 cygwin* | mingw* | pw32* | cegcc*) 10528 # When not using gcc, we currently assume that we are using 10529 # Microsoft Visual C++ or Intel C++ Compiler. 10530 # hardcode_libdir_flag_spec is actually meaningless, as there is 10531 # no search path for DLLs. 10532 case $cc_basename in 10533 cl* | icl*) 10534 # Native MSVC or ICC 10535 hardcode_libdir_flag_spec=' ' 10536 allow_undefined_flag=unsupported 10537 always_export_symbols=yes 10538 file_list_spec='@' 10539 # Tell ltmain to make .lib files, not .a files. 10540 libext=lib 10541 # Tell ltmain to make .dll files, not .so files. 10542 shrext_cmds=.dll 10543 # FIXME: Setting linknames here is a bad hack. 10544 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10545 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10546 cp "$export_symbols" "$output_objdir/$soname.def"; 10547 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10548 else 10549 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10550 fi~ 10551 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10552 linknames=' 10553 # The linker will not automatically build a static lib if we build a DLL. 10554 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10555 enable_shared_with_static_runtimes=yes 10556 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10558 # Don't use ranlib 10559 old_postinstall_cmds='chmod 644 $oldlib' 10560 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10561 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10562 case $lt_outputfile in 10563 *.exe|*.EXE) ;; 10564 *) 10565 lt_outputfile=$lt_outputfile.exe 10566 lt_tool_outputfile=$lt_tool_outputfile.exe 10567 ;; 10568 esac~ 10569 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10570 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10571 $RM "$lt_outputfile.manifest"; 10572 fi' 10573 ;; 10574 *) 10575 # Assume MSVC and ICC wrapper 10576 hardcode_libdir_flag_spec=' ' 10577 allow_undefined_flag=unsupported 10578 # Tell ltmain to make .lib files, not .a files. 10579 libext=lib 10580 # Tell ltmain to make .dll files, not .so files. 10581 shrext_cmds=.dll 10582 # FIXME: Setting linknames here is a bad hack. 10583 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10584 # The linker will automatically build a .lib file if we build a DLL. 10585 old_archive_from_new_cmds='true' 10586 # FIXME: Should let the user specify the lib program. 10587 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10588 enable_shared_with_static_runtimes=yes 10589 ;; 10590 esac 10591 ;; 10592 10593 darwin* | rhapsody*) 10594 10595 10596 archive_cmds_need_lc=no 10597 hardcode_direct=no 10598 hardcode_automatic=yes 10599 hardcode_shlibpath_var=unsupported 10600 if test yes = "$lt_cv_ld_force_load"; then 10601 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\"`' 10602 10603 else 10604 whole_archive_flag_spec='' 10605 fi 10606 link_all_deplibs=yes 10607 allow_undefined_flag=$_lt_dar_allow_undefined 10608 case $cc_basename in 10609 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10610 *) _lt_dar_can_shared=$GCC ;; 10611 esac 10612 if test yes = "$_lt_dar_can_shared"; then 10613 output_verbose_link_cmd=func_echo_all 10614 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10615 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10616 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" 10617 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" 10618 10619 else 10620 ld_shlibs=no 10621 fi 10622 10623 ;; 10624 10625 dgux*) 10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10627 hardcode_libdir_flag_spec='-L$libdir' 10628 hardcode_shlibpath_var=no 10629 ;; 10630 10631 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10632 # support. Future versions do this automatically, but an explicit c++rt0.o 10633 # does not break anything, and helps significantly (at the cost of a little 10634 # extra space). 10635 freebsd2.2*) 10636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10637 hardcode_libdir_flag_spec='-R$libdir' 10638 hardcode_direct=yes 10639 hardcode_shlibpath_var=no 10640 ;; 10641 10642 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10643 freebsd2.*) 10644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10645 hardcode_direct=yes 10646 hardcode_minus_L=yes 10647 hardcode_shlibpath_var=no 10648 ;; 10649 10650 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10651 freebsd* | dragonfly* | midnightbsd*) 10652 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10653 hardcode_libdir_flag_spec='-R$libdir' 10654 hardcode_direct=yes 10655 hardcode_shlibpath_var=no 10656 ;; 10657 10658 hpux9*) 10659 if test yes = "$GCC"; then 10660 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' 10661 else 10662 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' 10663 fi 10664 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10665 hardcode_libdir_separator=: 10666 hardcode_direct=yes 10667 10668 # hardcode_minus_L: Not really in the search PATH, 10669 # but as the default location of the library. 10670 hardcode_minus_L=yes 10671 export_dynamic_flag_spec='$wl-E' 10672 ;; 10673 10674 hpux10*) 10675 if test yes,no = "$GCC,$with_gnu_ld"; then 10676 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10677 else 10678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10679 fi 10680 if test no = "$with_gnu_ld"; then 10681 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10682 hardcode_libdir_separator=: 10683 hardcode_direct=yes 10684 hardcode_direct_absolute=yes 10685 export_dynamic_flag_spec='$wl-E' 10686 # hardcode_minus_L: Not really in the search PATH, 10687 # but as the default location of the library. 10688 hardcode_minus_L=yes 10689 fi 10690 ;; 10691 10692 hpux11*) 10693 if test yes,no = "$GCC,$with_gnu_ld"; then 10694 case $host_cpu in 10695 hppa*64*) 10696 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10697 ;; 10698 ia64*) 10699 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10700 ;; 10701 *) 10702 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10703 ;; 10704 esac 10705 else 10706 case $host_cpu in 10707 hppa*64*) 10708 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10709 ;; 10710 ia64*) 10711 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10712 ;; 10713 *) 10714 10715 # Older versions of the 11.00 compiler do not understand -b yet 10716 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10718printf %s "checking if $CC understands -b... " >&6; } 10719if test ${lt_cv_prog_compiler__b+y} 10720then : 10721 printf %s "(cached) " >&6 10722else $as_nop 10723 lt_cv_prog_compiler__b=no 10724 save_LDFLAGS=$LDFLAGS 10725 LDFLAGS="$LDFLAGS -b" 10726 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10727 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10728 # The linker can only warn and ignore the option if not recognized 10729 # So say no if there are warnings 10730 if test -s conftest.err; then 10731 # Append any errors to the config.log. 10732 cat conftest.err 1>&5 10733 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10735 if diff conftest.exp conftest.er2 >/dev/null; then 10736 lt_cv_prog_compiler__b=yes 10737 fi 10738 else 10739 lt_cv_prog_compiler__b=yes 10740 fi 10741 fi 10742 $RM -r conftest* 10743 LDFLAGS=$save_LDFLAGS 10744 10745fi 10746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10747printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10748 10749if test yes = "$lt_cv_prog_compiler__b"; then 10750 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10751else 10752 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10753fi 10754 10755 ;; 10756 esac 10757 fi 10758 if test no = "$with_gnu_ld"; then 10759 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10760 hardcode_libdir_separator=: 10761 10762 case $host_cpu in 10763 hppa*64*|ia64*) 10764 hardcode_direct=no 10765 hardcode_shlibpath_var=no 10766 ;; 10767 *) 10768 hardcode_direct=yes 10769 hardcode_direct_absolute=yes 10770 export_dynamic_flag_spec='$wl-E' 10771 10772 # hardcode_minus_L: Not really in the search PATH, 10773 # but as the default location of the library. 10774 hardcode_minus_L=yes 10775 ;; 10776 esac 10777 fi 10778 ;; 10779 10780 irix5* | irix6* | nonstopux*) 10781 if test yes = "$GCC"; then 10782 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' 10783 # Try to use the -exported_symbol ld option, if it does not 10784 # work, assume that -exports_file does not work either and 10785 # implicitly export all symbols. 10786 # This should be the same for all languages, so no per-tag cache variable. 10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10788printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10789if test ${lt_cv_irix_exported_symbol+y} 10790then : 10791 printf %s "(cached) " >&6 10792else $as_nop 10793 save_LDFLAGS=$LDFLAGS 10794 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10796/* end confdefs.h. */ 10797int foo (void) { return 0; } 10798_ACEOF 10799if ac_fn_c_try_link "$LINENO" 10800then : 10801 lt_cv_irix_exported_symbol=yes 10802else $as_nop 10803 lt_cv_irix_exported_symbol=no 10804fi 10805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10806 conftest$ac_exeext conftest.$ac_ext 10807 LDFLAGS=$save_LDFLAGS 10808fi 10809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10810printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10811 if test yes = "$lt_cv_irix_exported_symbol"; then 10812 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' 10813 fi 10814 else 10815 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' 10816 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' 10817 fi 10818 archive_cmds_need_lc='no' 10819 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10820 hardcode_libdir_separator=: 10821 inherit_rpath=yes 10822 link_all_deplibs=yes 10823 ;; 10824 10825 linux*) 10826 case $cc_basename in 10827 tcc*) 10828 # Fabrice Bellard et al's Tiny C Compiler 10829 ld_shlibs=yes 10830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10831 ;; 10832 esac 10833 ;; 10834 10835 netbsd*) 10836 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10838 else 10839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10840 fi 10841 hardcode_libdir_flag_spec='-R$libdir' 10842 hardcode_direct=yes 10843 hardcode_shlibpath_var=no 10844 ;; 10845 10846 newsos6) 10847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10848 hardcode_direct=yes 10849 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10850 hardcode_libdir_separator=: 10851 hardcode_shlibpath_var=no 10852 ;; 10853 10854 *nto* | *qnx*) 10855 ;; 10856 10857 openbsd* | bitrig*) 10858 if test -f /usr/libexec/ld.so; then 10859 hardcode_direct=yes 10860 hardcode_shlibpath_var=no 10861 hardcode_direct_absolute=yes 10862 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10864 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10865 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10866 export_dynamic_flag_spec='$wl-E' 10867 else 10868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10869 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10870 fi 10871 else 10872 ld_shlibs=no 10873 fi 10874 ;; 10875 10876 os2*) 10877 hardcode_libdir_flag_spec='-L$libdir' 10878 hardcode_minus_L=yes 10879 allow_undefined_flag=unsupported 10880 shrext_cmds=.dll 10881 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10882 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10883 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10884 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10885 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10886 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10887 emximp -o $lib $output_objdir/$libname.def' 10888 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10889 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10890 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10891 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10892 prefix_cmds="$SED"~ 10893 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10894 prefix_cmds="$prefix_cmds -e 1d"; 10895 fi~ 10896 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10897 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10898 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10899 emximp -o $lib $output_objdir/$libname.def' 10900 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10901 enable_shared_with_static_runtimes=yes 10902 file_list_spec='@' 10903 ;; 10904 10905 osf3*) 10906 if test yes = "$GCC"; then 10907 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10908 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' 10909 else 10910 allow_undefined_flag=' -expect_unresolved \*' 10911 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' 10912 fi 10913 archive_cmds_need_lc='no' 10914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10915 hardcode_libdir_separator=: 10916 ;; 10917 10918 osf4* | osf5*) # as osf3* with the addition of -msym flag 10919 if test yes = "$GCC"; then 10920 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10921 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' 10922 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10923 else 10924 allow_undefined_flag=' -expect_unresolved \*' 10925 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' 10926 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~ 10927 $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' 10928 10929 # Both c and cxx compiler support -rpath directly 10930 hardcode_libdir_flag_spec='-rpath $libdir' 10931 fi 10932 archive_cmds_need_lc='no' 10933 hardcode_libdir_separator=: 10934 ;; 10935 10936 solaris*) 10937 no_undefined_flag=' -z defs' 10938 if test yes = "$GCC"; then 10939 wlarc='$wl' 10940 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10942 $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' 10943 else 10944 case `$CC -V 2>&1` in 10945 *"Compilers 5.0"*) 10946 wlarc='' 10947 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10948 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10949 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10950 ;; 10951 *) 10952 wlarc='$wl' 10953 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10955 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10956 ;; 10957 esac 10958 fi 10959 hardcode_libdir_flag_spec='-R$libdir' 10960 hardcode_shlibpath_var=no 10961 case $host_os in 10962 solaris2.[0-5] | solaris2.[0-5].*) ;; 10963 *) 10964 # The compiler driver will combine and reorder linker options, 10965 # but understands '-z linker_flag'. GCC discards it without '$wl', 10966 # but is careful enough not to reorder. 10967 # Supported since Solaris 2.6 (maybe 2.5.1?) 10968 if test yes = "$GCC"; then 10969 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10970 else 10971 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10972 fi 10973 ;; 10974 esac 10975 link_all_deplibs=yes 10976 ;; 10977 10978 sunos4*) 10979 if test sequent = "$host_vendor"; then 10980 # Use $CC to link under sequent, because it throws in some extra .o 10981 # files that make .init and .fini sections work. 10982 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10983 else 10984 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10985 fi 10986 hardcode_libdir_flag_spec='-L$libdir' 10987 hardcode_direct=yes 10988 hardcode_minus_L=yes 10989 hardcode_shlibpath_var=no 10990 ;; 10991 10992 sysv4) 10993 case $host_vendor in 10994 sni) 10995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10996 hardcode_direct=yes # is this really true??? 10997 ;; 10998 siemens) 10999 ## LD is ld it makes a PLAMLIB 11000 ## CC just makes a GrossModule. 11001 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11002 reload_cmds='$CC -r -o $output$reload_objs' 11003 hardcode_direct=no 11004 ;; 11005 motorola) 11006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11007 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11008 ;; 11009 esac 11010 runpath_var='LD_RUN_PATH' 11011 hardcode_shlibpath_var=no 11012 ;; 11013 11014 sysv4.3*) 11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11016 hardcode_shlibpath_var=no 11017 export_dynamic_flag_spec='-Bexport' 11018 ;; 11019 11020 sysv4*MP*) 11021 if test -d /usr/nec; then 11022 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11023 hardcode_shlibpath_var=no 11024 runpath_var=LD_RUN_PATH 11025 hardcode_runpath_var=yes 11026 ld_shlibs=yes 11027 fi 11028 ;; 11029 11030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11031 no_undefined_flag='$wl-z,text' 11032 archive_cmds_need_lc=no 11033 hardcode_shlibpath_var=no 11034 runpath_var='LD_RUN_PATH' 11035 11036 if test yes = "$GCC"; then 11037 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11038 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11039 else 11040 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11041 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11042 fi 11043 ;; 11044 11045 sysv5* | sco3.2v5* | sco5v6*) 11046 # Note: We CANNOT use -z defs as we might desire, because we do not 11047 # link with -lc, and that would cause any symbols used from libc to 11048 # always be unresolved, which means just about no library would 11049 # ever link correctly. If we're not using GNU ld we use -z text 11050 # though, which does catch some bad symbols but isn't as heavy-handed 11051 # as -z defs. 11052 no_undefined_flag='$wl-z,text' 11053 allow_undefined_flag='$wl-z,nodefs' 11054 archive_cmds_need_lc=no 11055 hardcode_shlibpath_var=no 11056 hardcode_libdir_flag_spec='$wl-R,$libdir' 11057 hardcode_libdir_separator=':' 11058 link_all_deplibs=yes 11059 export_dynamic_flag_spec='$wl-Bexport' 11060 runpath_var='LD_RUN_PATH' 11061 11062 if test yes = "$GCC"; then 11063 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11064 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11065 else 11066 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11067 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11068 fi 11069 ;; 11070 11071 uts4*) 11072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11073 hardcode_libdir_flag_spec='-L$libdir' 11074 hardcode_shlibpath_var=no 11075 ;; 11076 11077 *) 11078 ld_shlibs=no 11079 ;; 11080 esac 11081 11082 if test sni = "$host_vendor"; then 11083 case $host in 11084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11085 export_dynamic_flag_spec='$wl-Blargedynsym' 11086 ;; 11087 esac 11088 fi 11089 fi 11090 11091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11092printf "%s\n" "$ld_shlibs" >&6; } 11093test no = "$ld_shlibs" && can_build_shared=no 11094 11095with_gnu_ld=$with_gnu_ld 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111# 11112# Do we need to explicitly link libc? 11113# 11114case "x$archive_cmds_need_lc" in 11115x|xyes) 11116 # Assume -lc should be added 11117 archive_cmds_need_lc=yes 11118 11119 if test yes,yes = "$GCC,$enable_shared"; then 11120 case $archive_cmds in 11121 *'~'*) 11122 # FIXME: we may have to deal with multi-command sequences. 11123 ;; 11124 '$CC '*) 11125 # Test whether the compiler implicitly links with -lc since on some 11126 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11127 # to ld, don't add -lc before -lgcc. 11128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11129printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11130if test ${lt_cv_archive_cmds_need_lc+y} 11131then : 11132 printf %s "(cached) " >&6 11133else $as_nop 11134 $RM conftest* 11135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11136 11137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11138 (eval $ac_compile) 2>&5 11139 ac_status=$? 11140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11141 test $ac_status = 0; } 2>conftest.err; then 11142 soname=conftest 11143 lib=conftest 11144 libobjs=conftest.$ac_objext 11145 deplibs= 11146 wl=$lt_prog_compiler_wl 11147 pic_flag=$lt_prog_compiler_pic 11148 compiler_flags=-v 11149 linker_flags=-v 11150 verstring= 11151 output_objdir=. 11152 libname=conftest 11153 lt_save_allow_undefined_flag=$allow_undefined_flag 11154 allow_undefined_flag= 11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11156 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11157 ac_status=$? 11158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11159 test $ac_status = 0; } 11160 then 11161 lt_cv_archive_cmds_need_lc=no 11162 else 11163 lt_cv_archive_cmds_need_lc=yes 11164 fi 11165 allow_undefined_flag=$lt_save_allow_undefined_flag 11166 else 11167 cat conftest.err 1>&5 11168 fi 11169 $RM conftest* 11170 11171fi 11172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11173printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11174 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11175 ;; 11176 esac 11177 fi 11178 ;; 11179esac 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11333printf %s "checking dynamic linker characteristics... " >&6; } 11334 11335if test yes = "$GCC"; then 11336 case $host_os in 11337 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11338 *) lt_awk_arg='/^libraries:/' ;; 11339 esac 11340 case $host_os in 11341 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11342 *) lt_sed_strip_eq='s|=/|/|g' ;; 11343 esac 11344 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11345 case $lt_search_path_spec in 11346 *\;*) 11347 # if the path contains ";" then we assume it to be the separator 11348 # otherwise default to the standard path separator (i.e. ":") - it is 11349 # assumed that no part of a normal pathname contains ";" but that should 11350 # okay in the real world where ";" in dirpaths is itself problematic. 11351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11352 ;; 11353 *) 11354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11355 ;; 11356 esac 11357 # Ok, now we have the path, separated by spaces, we can step through it 11358 # and add multilib dir if necessary... 11359 lt_tmp_lt_search_path_spec= 11360 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11361 # ...but if some path component already ends with the multilib dir we assume 11362 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11363 case "$lt_multi_os_dir; $lt_search_path_spec " in 11364 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11365 lt_multi_os_dir= 11366 ;; 11367 esac 11368 for lt_sys_path in $lt_search_path_spec; do 11369 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11370 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11371 elif test -n "$lt_multi_os_dir"; then 11372 test -d "$lt_sys_path" && \ 11373 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11374 fi 11375 done 11376 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11377BEGIN {RS = " "; FS = "/|\n";} { 11378 lt_foo = ""; 11379 lt_count = 0; 11380 for (lt_i = NF; lt_i > 0; lt_i--) { 11381 if ($lt_i != "" && $lt_i != ".") { 11382 if ($lt_i == "..") { 11383 lt_count++; 11384 } else { 11385 if (lt_count == 0) { 11386 lt_foo = "/" $lt_i lt_foo; 11387 } else { 11388 lt_count--; 11389 } 11390 } 11391 } 11392 } 11393 if (lt_foo != "") { lt_freq[lt_foo]++; } 11394 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11395}'` 11396 # AWK program above erroneously prepends '/' to C:/dos/paths 11397 # for these hosts. 11398 case $host_os in 11399 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11400 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11401 esac 11402 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11403else 11404 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11405fi 11406library_names_spec= 11407libname_spec='lib$name' 11408soname_spec= 11409shrext_cmds=.so 11410postinstall_cmds= 11411postuninstall_cmds= 11412finish_cmds= 11413finish_eval= 11414shlibpath_var= 11415shlibpath_overrides_runpath=unknown 11416version_type=none 11417dynamic_linker="$host_os ld.so" 11418sys_lib_dlsearch_path_spec="/lib /usr/lib" 11419need_lib_prefix=unknown 11420hardcode_into_libs=no 11421 11422# when you set need_version to no, make sure it does not cause -set_version 11423# flags to be left without arguments 11424need_version=unknown 11425 11426 11427 11428case $host_os in 11429aix3*) 11430 version_type=linux # correct to gnu/linux during the next big refactor 11431 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11432 shlibpath_var=LIBPATH 11433 11434 # AIX 3 has no versioning support, so we append a major version to the name. 11435 soname_spec='$libname$release$shared_ext$major' 11436 ;; 11437 11438aix[4-9]*) 11439 version_type=linux # correct to gnu/linux during the next big refactor 11440 need_lib_prefix=no 11441 need_version=no 11442 hardcode_into_libs=yes 11443 if test ia64 = "$host_cpu"; then 11444 # AIX 5 supports IA64 11445 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11446 shlibpath_var=LD_LIBRARY_PATH 11447 else 11448 # With GCC up to 2.95.x, collect2 would create an import file 11449 # for dependence libraries. The import file would start with 11450 # the line '#! .'. This would cause the generated library to 11451 # depend on '.', always an invalid library. This was fixed in 11452 # development snapshots of GCC prior to 3.0. 11453 case $host_os in 11454 aix4 | aix4.[01] | aix4.[01].*) 11455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11456 echo ' yes ' 11457 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11458 : 11459 else 11460 can_build_shared=no 11461 fi 11462 ;; 11463 esac 11464 # Using Import Files as archive members, it is possible to support 11465 # filename-based versioning of shared library archives on AIX. While 11466 # this would work for both with and without runtime linking, it will 11467 # prevent static linking of such archives. So we do filename-based 11468 # shared library versioning with .so extension only, which is used 11469 # when both runtime linking and shared linking is enabled. 11470 # Unfortunately, runtime linking may impact performance, so we do 11471 # not want this to be the default eventually. Also, we use the 11472 # versioned .so libs for executables only if there is the -brtl 11473 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11474 # To allow for filename-based versioning support, we need to create 11475 # libNAME.so.V as an archive file, containing: 11476 # *) an Import File, referring to the versioned filename of the 11477 # archive as well as the shared archive member, telling the 11478 # bitwidth (32 or 64) of that shared object, and providing the 11479 # list of exported symbols of that shared object, eventually 11480 # decorated with the 'weak' keyword 11481 # *) the shared object with the F_LOADONLY flag set, to really avoid 11482 # it being seen by the linker. 11483 # At run time we better use the real file rather than another symlink, 11484 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11485 11486 case $with_aix_soname,$aix_use_runtimelinking in 11487 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11488 # soname into executable. Probably we can add versioning support to 11489 # collect2, so additional links can be useful in future. 11490 aix,yes) # traditional libtool 11491 dynamic_linker='AIX unversionable lib.so' 11492 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11493 # instead of lib<name>.a to let people know that these are not 11494 # typical AIX shared libraries. 11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11496 ;; 11497 aix,no) # traditional AIX only 11498 dynamic_linker='AIX lib.a(lib.so.V)' 11499 # We preserve .a as extension for shared libraries through AIX4.2 11500 # and later when we are not doing run time linking. 11501 library_names_spec='$libname$release.a $libname.a' 11502 soname_spec='$libname$release$shared_ext$major' 11503 ;; 11504 svr4,*) # full svr4 only 11505 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11506 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11507 # We do not specify a path in Import Files, so LIBPATH fires. 11508 shlibpath_overrides_runpath=yes 11509 ;; 11510 *,yes) # both, prefer svr4 11511 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11512 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11513 # unpreferred sharedlib libNAME.a needs extra handling 11514 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"' 11515 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"' 11516 # We do not specify a path in Import Files, so LIBPATH fires. 11517 shlibpath_overrides_runpath=yes 11518 ;; 11519 *,no) # both, prefer aix 11520 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11521 library_names_spec='$libname$release.a $libname.a' 11522 soname_spec='$libname$release$shared_ext$major' 11523 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11524 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)' 11525 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"' 11526 ;; 11527 esac 11528 shlibpath_var=LIBPATH 11529 fi 11530 ;; 11531 11532amigaos*) 11533 case $host_cpu in 11534 powerpc) 11535 # Since July 2007 AmigaOS4 officially supports .so libraries. 11536 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11538 ;; 11539 m68k) 11540 library_names_spec='$libname.ixlibrary $libname.a' 11541 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11542 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' 11543 ;; 11544 esac 11545 ;; 11546 11547beos*) 11548 library_names_spec='$libname$shared_ext' 11549 dynamic_linker="$host_os ld.so" 11550 shlibpath_var=LIBRARY_PATH 11551 ;; 11552 11553bsdi[45]*) 11554 version_type=linux # correct to gnu/linux during the next big refactor 11555 need_version=no 11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11557 soname_spec='$libname$release$shared_ext$major' 11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11559 shlibpath_var=LD_LIBRARY_PATH 11560 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11561 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11562 # the default ld.so.conf also contains /usr/contrib/lib and 11563 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11564 # libtool to hard-code these into programs 11565 ;; 11566 11567cygwin* | mingw* | pw32* | cegcc*) 11568 version_type=windows 11569 shrext_cmds=.dll 11570 need_version=no 11571 need_lib_prefix=no 11572 11573 case $GCC,$cc_basename in 11574 yes,*) 11575 # gcc 11576 library_names_spec='$libname.dll.a' 11577 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11578 postinstall_cmds='base_file=`basename \$file`~ 11579 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11580 dldir=$destdir/`dirname \$dlpath`~ 11581 test -d \$dldir || mkdir -p \$dldir~ 11582 $install_prog $dir/$dlname \$dldir/$dlname~ 11583 chmod a+x \$dldir/$dlname~ 11584 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11585 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11586 fi' 11587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11588 dlpath=$dir/\$dldll~ 11589 $RM \$dlpath' 11590 shlibpath_overrides_runpath=yes 11591 11592 case $host_os in 11593 cygwin*) 11594 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11595 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11596 11597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11598 ;; 11599 mingw* | cegcc*) 11600 # MinGW DLLs use traditional 'lib' prefix 11601 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11602 ;; 11603 pw32*) 11604 # pw32 DLLs use 'pw' prefix rather than 'lib' 11605 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11606 ;; 11607 esac 11608 dynamic_linker='Win32 ld.exe' 11609 ;; 11610 11611 *,cl* | *,icl*) 11612 # Native MSVC or ICC 11613 libname_spec='$name' 11614 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11615 library_names_spec='$libname.dll.lib' 11616 11617 case $build_os in 11618 mingw*) 11619 sys_lib_search_path_spec= 11620 lt_save_ifs=$IFS 11621 IFS=';' 11622 for lt_path in $LIB 11623 do 11624 IFS=$lt_save_ifs 11625 # Let DOS variable expansion print the short 8.3 style file name. 11626 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11627 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11628 done 11629 IFS=$lt_save_ifs 11630 # Convert to MSYS style. 11631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11632 ;; 11633 cygwin*) 11634 # Convert to unix form, then to dos form, then back to unix form 11635 # but this time dos style (no spaces!) so that the unix form looks 11636 # like /cygdrive/c/PROGRA~1:/cygdr... 11637 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11638 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11639 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11640 ;; 11641 *) 11642 sys_lib_search_path_spec=$LIB 11643 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11644 # It is most probably a Windows format PATH. 11645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11646 else 11647 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11648 fi 11649 # FIXME: find the short name or the path components, as spaces are 11650 # common. (e.g. "Program Files" -> "PROGRA~1") 11651 ;; 11652 esac 11653 11654 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11655 postinstall_cmds='base_file=`basename \$file`~ 11656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11657 dldir=$destdir/`dirname \$dlpath`~ 11658 test -d \$dldir || mkdir -p \$dldir~ 11659 $install_prog $dir/$dlname \$dldir/$dlname' 11660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11661 dlpath=$dir/\$dldll~ 11662 $RM \$dlpath' 11663 shlibpath_overrides_runpath=yes 11664 dynamic_linker='Win32 link.exe' 11665 ;; 11666 11667 *) 11668 # Assume MSVC and ICC wrapper 11669 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11670 dynamic_linker='Win32 ld.exe' 11671 ;; 11672 esac 11673 # FIXME: first we should search . and the directory the executable is in 11674 shlibpath_var=PATH 11675 ;; 11676 11677darwin* | rhapsody*) 11678 dynamic_linker="$host_os dyld" 11679 version_type=darwin 11680 need_lib_prefix=no 11681 need_version=no 11682 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11683 soname_spec='$libname$release$major$shared_ext' 11684 shlibpath_overrides_runpath=yes 11685 shlibpath_var=DYLD_LIBRARY_PATH 11686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11687 11688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11690 ;; 11691 11692dgux*) 11693 version_type=linux # correct to gnu/linux during the next big refactor 11694 need_lib_prefix=no 11695 need_version=no 11696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11697 soname_spec='$libname$release$shared_ext$major' 11698 shlibpath_var=LD_LIBRARY_PATH 11699 ;; 11700 11701freebsd* | dragonfly* | midnightbsd*) 11702 # DragonFly does not have aout. When/if they implement a new 11703 # versioning mechanism, adjust this. 11704 if test -x /usr/bin/objformat; then 11705 objformat=`/usr/bin/objformat` 11706 else 11707 case $host_os in 11708 freebsd[23].*) objformat=aout ;; 11709 *) objformat=elf ;; 11710 esac 11711 fi 11712 version_type=freebsd-$objformat 11713 case $version_type in 11714 freebsd-elf*) 11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11716 soname_spec='$libname$release$shared_ext$major' 11717 need_version=no 11718 need_lib_prefix=no 11719 ;; 11720 freebsd-*) 11721 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11722 need_version=yes 11723 ;; 11724 esac 11725 shlibpath_var=LD_LIBRARY_PATH 11726 case $host_os in 11727 freebsd2.*) 11728 shlibpath_overrides_runpath=yes 11729 ;; 11730 freebsd3.[01]* | freebsdelf3.[01]*) 11731 shlibpath_overrides_runpath=yes 11732 hardcode_into_libs=yes 11733 ;; 11734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11736 shlibpath_overrides_runpath=no 11737 hardcode_into_libs=yes 11738 ;; 11739 *) # from 4.6 on, and DragonFly 11740 shlibpath_overrides_runpath=yes 11741 hardcode_into_libs=yes 11742 ;; 11743 esac 11744 ;; 11745 11746haiku*) 11747 version_type=linux # correct to gnu/linux during the next big refactor 11748 need_lib_prefix=no 11749 need_version=no 11750 dynamic_linker="$host_os runtime_loader" 11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11752 soname_spec='$libname$release$shared_ext$major' 11753 shlibpath_var=LIBRARY_PATH 11754 shlibpath_overrides_runpath=no 11755 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11756 hardcode_into_libs=yes 11757 ;; 11758 11759hpux9* | hpux10* | hpux11*) 11760 # Give a soname corresponding to the major version so that dld.sl refuses to 11761 # link against other versions. 11762 version_type=sunos 11763 need_lib_prefix=no 11764 need_version=no 11765 case $host_cpu in 11766 ia64*) 11767 shrext_cmds='.so' 11768 hardcode_into_libs=yes 11769 dynamic_linker="$host_os dld.so" 11770 shlibpath_var=LD_LIBRARY_PATH 11771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11773 soname_spec='$libname$release$shared_ext$major' 11774 if test 32 = "$HPUX_IA64_MODE"; then 11775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11776 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11777 else 11778 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11779 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11780 fi 11781 ;; 11782 hppa*64*) 11783 shrext_cmds='.sl' 11784 hardcode_into_libs=yes 11785 dynamic_linker="$host_os dld.sl" 11786 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11789 soname_spec='$libname$release$shared_ext$major' 11790 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11792 ;; 11793 *) 11794 shrext_cmds='.sl' 11795 dynamic_linker="$host_os dld.sl" 11796 shlibpath_var=SHLIB_PATH 11797 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11799 soname_spec='$libname$release$shared_ext$major' 11800 ;; 11801 esac 11802 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11803 postinstall_cmds='chmod 555 $lib' 11804 # or fails outright, so override atomically: 11805 install_override_mode=555 11806 ;; 11807 11808interix[3-9]*) 11809 version_type=linux # correct to gnu/linux during the next big refactor 11810 need_lib_prefix=no 11811 need_version=no 11812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11813 soname_spec='$libname$release$shared_ext$major' 11814 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11815 shlibpath_var=LD_LIBRARY_PATH 11816 shlibpath_overrides_runpath=no 11817 hardcode_into_libs=yes 11818 ;; 11819 11820irix5* | irix6* | nonstopux*) 11821 case $host_os in 11822 nonstopux*) version_type=nonstopux ;; 11823 *) 11824 if test yes = "$lt_cv_prog_gnu_ld"; then 11825 version_type=linux # correct to gnu/linux during the next big refactor 11826 else 11827 version_type=irix 11828 fi ;; 11829 esac 11830 need_lib_prefix=no 11831 need_version=no 11832 soname_spec='$libname$release$shared_ext$major' 11833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11834 case $host_os in 11835 irix5* | nonstopux*) 11836 libsuff= shlibsuff= 11837 ;; 11838 *) 11839 case $LD in # libtool.m4 will add one of these switches to LD 11840 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11841 libsuff= shlibsuff= libmagic=32-bit;; 11842 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11843 libsuff=32 shlibsuff=N32 libmagic=N32;; 11844 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11845 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11846 *) libsuff= shlibsuff= libmagic=never-match;; 11847 esac 11848 ;; 11849 esac 11850 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11851 shlibpath_overrides_runpath=no 11852 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11853 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11854 hardcode_into_libs=yes 11855 ;; 11856 11857# No shared lib support for Linux oldld, aout, or coff. 11858linux*oldld* | linux*aout* | linux*coff*) 11859 dynamic_linker=no 11860 ;; 11861 11862linux*android*) 11863 version_type=none # Android doesn't support versioned libraries. 11864 need_lib_prefix=no 11865 need_version=no 11866 library_names_spec='$libname$release$shared_ext' 11867 soname_spec='$libname$release$shared_ext' 11868 finish_cmds= 11869 shlibpath_var=LD_LIBRARY_PATH 11870 shlibpath_overrides_runpath=yes 11871 11872 # This implies no fast_install, which is unacceptable. 11873 # Some rework will be needed to allow for fast_install 11874 # before this can be enabled. 11875 hardcode_into_libs=yes 11876 11877 dynamic_linker='Android linker' 11878 # Don't embed -rpath directories since the linker doesn't support them. 11879 hardcode_libdir_flag_spec='-L$libdir' 11880 ;; 11881 11882# This must be glibc/ELF. 11883linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11884 version_type=linux # correct to gnu/linux during the next big refactor 11885 need_lib_prefix=no 11886 need_version=no 11887 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11888 soname_spec='$libname$release$shared_ext$major' 11889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11890 shlibpath_var=LD_LIBRARY_PATH 11891 shlibpath_overrides_runpath=no 11892 11893 # Some binutils ld are patched to set DT_RUNPATH 11894 if test ${lt_cv_shlibpath_overrides_runpath+y} 11895then : 11896 printf %s "(cached) " >&6 11897else $as_nop 11898 lt_cv_shlibpath_overrides_runpath=no 11899 save_LDFLAGS=$LDFLAGS 11900 save_libdir=$libdir 11901 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11902 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11904/* end confdefs.h. */ 11905 11906int 11907main (void) 11908{ 11909 11910 ; 11911 return 0; 11912} 11913_ACEOF 11914if ac_fn_c_try_link "$LINENO" 11915then : 11916 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11917then : 11918 lt_cv_shlibpath_overrides_runpath=yes 11919fi 11920fi 11921rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11922 conftest$ac_exeext conftest.$ac_ext 11923 LDFLAGS=$save_LDFLAGS 11924 libdir=$save_libdir 11925 11926fi 11927 11928 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11929 11930 # This implies no fast_install, which is unacceptable. 11931 # Some rework will be needed to allow for fast_install 11932 # before this can be enabled. 11933 hardcode_into_libs=yes 11934 11935 # Ideally, we could use ldconfig to report *all* directores which are 11936 # searched for libraries, however this is still not possible. Aside from not 11937 # being certain /sbin/ldconfig is available, command 11938 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11939 # even though it is searched at run-time. Try to do the best guess by 11940 # appending ld.so.conf contents (and includes) to the search path. 11941 if test -f /etc/ld.so.conf; then 11942 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' ' '` 11943 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11944 fi 11945 11946 # We used to test for /lib/ld.so.1 and disable shared libraries on 11947 # powerpc, because MkLinux only supported shared libraries with the 11948 # GNU dynamic linker. Since this was broken with cross compilers, 11949 # most powerpc-linux boxes support dynamic linking these days and 11950 # people can always --disable-shared, the test was removed, and we 11951 # assume the GNU/Linux dynamic linker is in use. 11952 dynamic_linker='GNU/Linux ld.so' 11953 ;; 11954 11955netbsd*) 11956 version_type=sunos 11957 need_lib_prefix=no 11958 need_version=no 11959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11962 dynamic_linker='NetBSD (a.out) ld.so' 11963 else 11964 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11965 soname_spec='$libname$release$shared_ext$major' 11966 dynamic_linker='NetBSD ld.elf_so' 11967 fi 11968 shlibpath_var=LD_LIBRARY_PATH 11969 shlibpath_overrides_runpath=yes 11970 hardcode_into_libs=yes 11971 ;; 11972 11973newsos6) 11974 version_type=linux # correct to gnu/linux during the next big refactor 11975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11976 shlibpath_var=LD_LIBRARY_PATH 11977 shlibpath_overrides_runpath=yes 11978 ;; 11979 11980*nto* | *qnx*) 11981 version_type=qnx 11982 need_lib_prefix=no 11983 need_version=no 11984 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11985 soname_spec='$libname$release$shared_ext$major' 11986 shlibpath_var=LD_LIBRARY_PATH 11987 shlibpath_overrides_runpath=no 11988 hardcode_into_libs=yes 11989 dynamic_linker='ldqnx.so' 11990 ;; 11991 11992openbsd* | bitrig*) 11993 version_type=sunos 11994 sys_lib_dlsearch_path_spec=/usr/lib 11995 need_lib_prefix=no 11996 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11997 need_version=no 11998 else 11999 need_version=yes 12000 fi 12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12003 shlibpath_var=LD_LIBRARY_PATH 12004 shlibpath_overrides_runpath=yes 12005 ;; 12006 12007os2*) 12008 libname_spec='$name' 12009 version_type=windows 12010 shrext_cmds=.dll 12011 need_version=no 12012 need_lib_prefix=no 12013 # OS/2 can only load a DLL with a base name of 8 characters or less. 12014 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12015 v=$($ECHO $release$versuffix | tr -d .-); 12016 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12017 $ECHO $n$v`$shared_ext' 12018 library_names_spec='${libname}_dll.$libext' 12019 dynamic_linker='OS/2 ld.exe' 12020 shlibpath_var=BEGINLIBPATH 12021 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12022 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12023 postinstall_cmds='base_file=`basename \$file`~ 12024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12025 dldir=$destdir/`dirname \$dlpath`~ 12026 test -d \$dldir || mkdir -p \$dldir~ 12027 $install_prog $dir/$dlname \$dldir/$dlname~ 12028 chmod a+x \$dldir/$dlname~ 12029 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12030 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12031 fi' 12032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12033 dlpath=$dir/\$dldll~ 12034 $RM \$dlpath' 12035 ;; 12036 12037osf3* | osf4* | osf5*) 12038 version_type=osf 12039 need_lib_prefix=no 12040 need_version=no 12041 soname_spec='$libname$release$shared_ext$major' 12042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12043 shlibpath_var=LD_LIBRARY_PATH 12044 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12045 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12046 ;; 12047 12048rdos*) 12049 dynamic_linker=no 12050 ;; 12051 12052solaris*) 12053 version_type=linux # correct to gnu/linux during the next big refactor 12054 need_lib_prefix=no 12055 need_version=no 12056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12057 soname_spec='$libname$release$shared_ext$major' 12058 shlibpath_var=LD_LIBRARY_PATH 12059 shlibpath_overrides_runpath=yes 12060 hardcode_into_libs=yes 12061 # ldd complains unless libraries are executable 12062 postinstall_cmds='chmod +x $lib' 12063 ;; 12064 12065sunos4*) 12066 version_type=sunos 12067 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12069 shlibpath_var=LD_LIBRARY_PATH 12070 shlibpath_overrides_runpath=yes 12071 if test yes = "$with_gnu_ld"; then 12072 need_lib_prefix=no 12073 fi 12074 need_version=yes 12075 ;; 12076 12077sysv4 | sysv4.3*) 12078 version_type=linux # correct to gnu/linux during the next big refactor 12079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12080 soname_spec='$libname$release$shared_ext$major' 12081 shlibpath_var=LD_LIBRARY_PATH 12082 case $host_vendor in 12083 sni) 12084 shlibpath_overrides_runpath=no 12085 need_lib_prefix=no 12086 runpath_var=LD_RUN_PATH 12087 ;; 12088 siemens) 12089 need_lib_prefix=no 12090 ;; 12091 motorola) 12092 need_lib_prefix=no 12093 need_version=no 12094 shlibpath_overrides_runpath=no 12095 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12096 ;; 12097 esac 12098 ;; 12099 12100sysv4*MP*) 12101 if test -d /usr/nec; then 12102 version_type=linux # correct to gnu/linux during the next big refactor 12103 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12104 soname_spec='$libname$shared_ext.$major' 12105 shlibpath_var=LD_LIBRARY_PATH 12106 fi 12107 ;; 12108 12109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12110 version_type=sco 12111 need_lib_prefix=no 12112 need_version=no 12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12114 soname_spec='$libname$release$shared_ext$major' 12115 shlibpath_var=LD_LIBRARY_PATH 12116 shlibpath_overrides_runpath=yes 12117 hardcode_into_libs=yes 12118 if test yes = "$with_gnu_ld"; then 12119 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12120 else 12121 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12122 case $host_os in 12123 sco3.2v5*) 12124 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12125 ;; 12126 esac 12127 fi 12128 sys_lib_dlsearch_path_spec='/usr/lib' 12129 ;; 12130 12131tpf*) 12132 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12133 version_type=linux # correct to gnu/linux during the next big refactor 12134 need_lib_prefix=no 12135 need_version=no 12136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12137 shlibpath_var=LD_LIBRARY_PATH 12138 shlibpath_overrides_runpath=no 12139 hardcode_into_libs=yes 12140 ;; 12141 12142uts4*) 12143 version_type=linux # correct to gnu/linux during the next big refactor 12144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12145 soname_spec='$libname$release$shared_ext$major' 12146 shlibpath_var=LD_LIBRARY_PATH 12147 ;; 12148 12149*) 12150 dynamic_linker=no 12151 ;; 12152esac 12153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12154printf "%s\n" "$dynamic_linker" >&6; } 12155test no = "$dynamic_linker" && can_build_shared=no 12156 12157variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12158if test yes = "$GCC"; then 12159 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12160fi 12161 12162if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12163 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12164fi 12165 12166if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12167 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12168fi 12169 12170# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12171configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12172 12173# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12174func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12175 12176# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12177configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12276printf %s "checking how to hardcode library paths into programs... " >&6; } 12277hardcode_action= 12278if test -n "$hardcode_libdir_flag_spec" || 12279 test -n "$runpath_var" || 12280 test yes = "$hardcode_automatic"; then 12281 12282 # We can hardcode non-existent directories. 12283 if test no != "$hardcode_direct" && 12284 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12285 # have to relink, otherwise we might link with an installed library 12286 # when we should be linking with a yet-to-be-installed one 12287 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12288 test no != "$hardcode_minus_L"; then 12289 # Linking always hardcodes the temporary library directory. 12290 hardcode_action=relink 12291 else 12292 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12293 hardcode_action=immediate 12294 fi 12295else 12296 # We cannot hardcode anything, or else we can only hardcode existing 12297 # directories. 12298 hardcode_action=unsupported 12299fi 12300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12301printf "%s\n" "$hardcode_action" >&6; } 12302 12303if test relink = "$hardcode_action" || 12304 test yes = "$inherit_rpath"; then 12305 # Fast installation is not supported 12306 enable_fast_install=no 12307elif test yes = "$shlibpath_overrides_runpath" || 12308 test no = "$enable_shared"; then 12309 # Fast installation is not necessary 12310 enable_fast_install=needless 12311fi 12312 12313 12314 12315 12316 12317 12318 if test yes != "$enable_dlopen"; then 12319 enable_dlopen=unknown 12320 enable_dlopen_self=unknown 12321 enable_dlopen_self_static=unknown 12322else 12323 lt_cv_dlopen=no 12324 lt_cv_dlopen_libs= 12325 12326 case $host_os in 12327 beos*) 12328 lt_cv_dlopen=load_add_on 12329 lt_cv_dlopen_libs= 12330 lt_cv_dlopen_self=yes 12331 ;; 12332 12333 mingw* | pw32* | cegcc*) 12334 lt_cv_dlopen=LoadLibrary 12335 lt_cv_dlopen_libs= 12336 ;; 12337 12338 cygwin*) 12339 lt_cv_dlopen=dlopen 12340 lt_cv_dlopen_libs= 12341 ;; 12342 12343 darwin*) 12344 # if libdl is installed we need to link against it 12345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12346printf %s "checking for dlopen in -ldl... " >&6; } 12347if test ${ac_cv_lib_dl_dlopen+y} 12348then : 12349 printf %s "(cached) " >&6 12350else $as_nop 12351 ac_check_lib_save_LIBS=$LIBS 12352LIBS="-ldl $LIBS" 12353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12354/* end confdefs.h. */ 12355 12356/* Override any GCC internal prototype to avoid an error. 12357 Use char because int might match the return type of a GCC 12358 builtin and then its argument prototype would still apply. */ 12359char dlopen (); 12360int 12361main (void) 12362{ 12363return dlopen (); 12364 ; 12365 return 0; 12366} 12367_ACEOF 12368if ac_fn_c_try_link "$LINENO" 12369then : 12370 ac_cv_lib_dl_dlopen=yes 12371else $as_nop 12372 ac_cv_lib_dl_dlopen=no 12373fi 12374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12375 conftest$ac_exeext conftest.$ac_ext 12376LIBS=$ac_check_lib_save_LIBS 12377fi 12378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12379printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12380if test "x$ac_cv_lib_dl_dlopen" = xyes 12381then : 12382 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12383else $as_nop 12384 12385 lt_cv_dlopen=dyld 12386 lt_cv_dlopen_libs= 12387 lt_cv_dlopen_self=yes 12388 12389fi 12390 12391 ;; 12392 12393 tpf*) 12394 # Don't try to run any link tests for TPF. We know it's impossible 12395 # because TPF is a cross-compiler, and we know how we open DSOs. 12396 lt_cv_dlopen=dlopen 12397 lt_cv_dlopen_libs= 12398 lt_cv_dlopen_self=no 12399 ;; 12400 12401 *) 12402 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12403if test "x$ac_cv_func_shl_load" = xyes 12404then : 12405 lt_cv_dlopen=shl_load 12406else $as_nop 12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12408printf %s "checking for shl_load in -ldld... " >&6; } 12409if test ${ac_cv_lib_dld_shl_load+y} 12410then : 12411 printf %s "(cached) " >&6 12412else $as_nop 12413 ac_check_lib_save_LIBS=$LIBS 12414LIBS="-ldld $LIBS" 12415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12416/* end confdefs.h. */ 12417 12418/* Override any GCC internal prototype to avoid an error. 12419 Use char because int might match the return type of a GCC 12420 builtin and then its argument prototype would still apply. */ 12421char shl_load (); 12422int 12423main (void) 12424{ 12425return shl_load (); 12426 ; 12427 return 0; 12428} 12429_ACEOF 12430if ac_fn_c_try_link "$LINENO" 12431then : 12432 ac_cv_lib_dld_shl_load=yes 12433else $as_nop 12434 ac_cv_lib_dld_shl_load=no 12435fi 12436rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12437 conftest$ac_exeext conftest.$ac_ext 12438LIBS=$ac_check_lib_save_LIBS 12439fi 12440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12441printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12442if test "x$ac_cv_lib_dld_shl_load" = xyes 12443then : 12444 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12445else $as_nop 12446 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12447if test "x$ac_cv_func_dlopen" = xyes 12448then : 12449 lt_cv_dlopen=dlopen 12450else $as_nop 12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12452printf %s "checking for dlopen in -ldl... " >&6; } 12453if test ${ac_cv_lib_dl_dlopen+y} 12454then : 12455 printf %s "(cached) " >&6 12456else $as_nop 12457 ac_check_lib_save_LIBS=$LIBS 12458LIBS="-ldl $LIBS" 12459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12460/* end confdefs.h. */ 12461 12462/* Override any GCC internal prototype to avoid an error. 12463 Use char because int might match the return type of a GCC 12464 builtin and then its argument prototype would still apply. */ 12465char dlopen (); 12466int 12467main (void) 12468{ 12469return dlopen (); 12470 ; 12471 return 0; 12472} 12473_ACEOF 12474if ac_fn_c_try_link "$LINENO" 12475then : 12476 ac_cv_lib_dl_dlopen=yes 12477else $as_nop 12478 ac_cv_lib_dl_dlopen=no 12479fi 12480rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12481 conftest$ac_exeext conftest.$ac_ext 12482LIBS=$ac_check_lib_save_LIBS 12483fi 12484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12485printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12486if test "x$ac_cv_lib_dl_dlopen" = xyes 12487then : 12488 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12489else $as_nop 12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12491printf %s "checking for dlopen in -lsvld... " >&6; } 12492if test ${ac_cv_lib_svld_dlopen+y} 12493then : 12494 printf %s "(cached) " >&6 12495else $as_nop 12496 ac_check_lib_save_LIBS=$LIBS 12497LIBS="-lsvld $LIBS" 12498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12499/* end confdefs.h. */ 12500 12501/* Override any GCC internal prototype to avoid an error. 12502 Use char because int might match the return type of a GCC 12503 builtin and then its argument prototype would still apply. */ 12504char dlopen (); 12505int 12506main (void) 12507{ 12508return dlopen (); 12509 ; 12510 return 0; 12511} 12512_ACEOF 12513if ac_fn_c_try_link "$LINENO" 12514then : 12515 ac_cv_lib_svld_dlopen=yes 12516else $as_nop 12517 ac_cv_lib_svld_dlopen=no 12518fi 12519rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12520 conftest$ac_exeext conftest.$ac_ext 12521LIBS=$ac_check_lib_save_LIBS 12522fi 12523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12524printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12525if test "x$ac_cv_lib_svld_dlopen" = xyes 12526then : 12527 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12528else $as_nop 12529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12530printf %s "checking for dld_link in -ldld... " >&6; } 12531if test ${ac_cv_lib_dld_dld_link+y} 12532then : 12533 printf %s "(cached) " >&6 12534else $as_nop 12535 ac_check_lib_save_LIBS=$LIBS 12536LIBS="-ldld $LIBS" 12537cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12538/* end confdefs.h. */ 12539 12540/* Override any GCC internal prototype to avoid an error. 12541 Use char because int might match the return type of a GCC 12542 builtin and then its argument prototype would still apply. */ 12543char dld_link (); 12544int 12545main (void) 12546{ 12547return dld_link (); 12548 ; 12549 return 0; 12550} 12551_ACEOF 12552if ac_fn_c_try_link "$LINENO" 12553then : 12554 ac_cv_lib_dld_dld_link=yes 12555else $as_nop 12556 ac_cv_lib_dld_dld_link=no 12557fi 12558rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12559 conftest$ac_exeext conftest.$ac_ext 12560LIBS=$ac_check_lib_save_LIBS 12561fi 12562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12563printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12564if test "x$ac_cv_lib_dld_dld_link" = xyes 12565then : 12566 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12567fi 12568 12569 12570fi 12571 12572 12573fi 12574 12575 12576fi 12577 12578 12579fi 12580 12581 12582fi 12583 12584 ;; 12585 esac 12586 12587 if test no = "$lt_cv_dlopen"; then 12588 enable_dlopen=no 12589 else 12590 enable_dlopen=yes 12591 fi 12592 12593 case $lt_cv_dlopen in 12594 dlopen) 12595 save_CPPFLAGS=$CPPFLAGS 12596 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12597 12598 save_LDFLAGS=$LDFLAGS 12599 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12600 12601 save_LIBS=$LIBS 12602 LIBS="$lt_cv_dlopen_libs $LIBS" 12603 12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12605printf %s "checking whether a program can dlopen itself... " >&6; } 12606if test ${lt_cv_dlopen_self+y} 12607then : 12608 printf %s "(cached) " >&6 12609else $as_nop 12610 if test yes = "$cross_compiling"; then : 12611 lt_cv_dlopen_self=cross 12612else 12613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12614 lt_status=$lt_dlunknown 12615 cat > conftest.$ac_ext <<_LT_EOF 12616#line $LINENO "configure" 12617#include "confdefs.h" 12618 12619#if HAVE_DLFCN_H 12620#include <dlfcn.h> 12621#endif 12622 12623#include <stdio.h> 12624 12625#ifdef RTLD_GLOBAL 12626# define LT_DLGLOBAL RTLD_GLOBAL 12627#else 12628# ifdef DL_GLOBAL 12629# define LT_DLGLOBAL DL_GLOBAL 12630# else 12631# define LT_DLGLOBAL 0 12632# endif 12633#endif 12634 12635/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12636 find out it does not work in some platform. */ 12637#ifndef LT_DLLAZY_OR_NOW 12638# ifdef RTLD_LAZY 12639# define LT_DLLAZY_OR_NOW RTLD_LAZY 12640# else 12641# ifdef DL_LAZY 12642# define LT_DLLAZY_OR_NOW DL_LAZY 12643# else 12644# ifdef RTLD_NOW 12645# define LT_DLLAZY_OR_NOW RTLD_NOW 12646# else 12647# ifdef DL_NOW 12648# define LT_DLLAZY_OR_NOW DL_NOW 12649# else 12650# define LT_DLLAZY_OR_NOW 0 12651# endif 12652# endif 12653# endif 12654# endif 12655#endif 12656 12657/* When -fvisibility=hidden is used, assume the code has been annotated 12658 correspondingly for the symbols needed. */ 12659#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12660int fnord () __attribute__((visibility("default"))); 12661#endif 12662 12663int fnord () { return 42; } 12664int main () 12665{ 12666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12667 int status = $lt_dlunknown; 12668 12669 if (self) 12670 { 12671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12672 else 12673 { 12674 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12675 else puts (dlerror ()); 12676 } 12677 /* dlclose (self); */ 12678 } 12679 else 12680 puts (dlerror ()); 12681 12682 return status; 12683} 12684_LT_EOF 12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12686 (eval $ac_link) 2>&5 12687 ac_status=$? 12688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12689 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12690 (./conftest; exit; ) >&5 2>/dev/null 12691 lt_status=$? 12692 case x$lt_status in 12693 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12694 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12695 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12696 esac 12697 else : 12698 # compilation failed 12699 lt_cv_dlopen_self=no 12700 fi 12701fi 12702rm -fr conftest* 12703 12704 12705fi 12706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12707printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12708 12709 if test yes = "$lt_cv_dlopen_self"; then 12710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12712printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12713if test ${lt_cv_dlopen_self_static+y} 12714then : 12715 printf %s "(cached) " >&6 12716else $as_nop 12717 if test yes = "$cross_compiling"; then : 12718 lt_cv_dlopen_self_static=cross 12719else 12720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12721 lt_status=$lt_dlunknown 12722 cat > conftest.$ac_ext <<_LT_EOF 12723#line $LINENO "configure" 12724#include "confdefs.h" 12725 12726#if HAVE_DLFCN_H 12727#include <dlfcn.h> 12728#endif 12729 12730#include <stdio.h> 12731 12732#ifdef RTLD_GLOBAL 12733# define LT_DLGLOBAL RTLD_GLOBAL 12734#else 12735# ifdef DL_GLOBAL 12736# define LT_DLGLOBAL DL_GLOBAL 12737# else 12738# define LT_DLGLOBAL 0 12739# endif 12740#endif 12741 12742/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12743 find out it does not work in some platform. */ 12744#ifndef LT_DLLAZY_OR_NOW 12745# ifdef RTLD_LAZY 12746# define LT_DLLAZY_OR_NOW RTLD_LAZY 12747# else 12748# ifdef DL_LAZY 12749# define LT_DLLAZY_OR_NOW DL_LAZY 12750# else 12751# ifdef RTLD_NOW 12752# define LT_DLLAZY_OR_NOW RTLD_NOW 12753# else 12754# ifdef DL_NOW 12755# define LT_DLLAZY_OR_NOW DL_NOW 12756# else 12757# define LT_DLLAZY_OR_NOW 0 12758# endif 12759# endif 12760# endif 12761# endif 12762#endif 12763 12764/* When -fvisibility=hidden is used, assume the code has been annotated 12765 correspondingly for the symbols needed. */ 12766#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12767int fnord () __attribute__((visibility("default"))); 12768#endif 12769 12770int fnord () { return 42; } 12771int main () 12772{ 12773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12774 int status = $lt_dlunknown; 12775 12776 if (self) 12777 { 12778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12779 else 12780 { 12781 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12782 else puts (dlerror ()); 12783 } 12784 /* dlclose (self); */ 12785 } 12786 else 12787 puts (dlerror ()); 12788 12789 return status; 12790} 12791_LT_EOF 12792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12793 (eval $ac_link) 2>&5 12794 ac_status=$? 12795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12796 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12797 (./conftest; exit; ) >&5 2>/dev/null 12798 lt_status=$? 12799 case x$lt_status in 12800 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12801 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12802 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12803 esac 12804 else : 12805 # compilation failed 12806 lt_cv_dlopen_self_static=no 12807 fi 12808fi 12809rm -fr conftest* 12810 12811 12812fi 12813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12814printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12815 fi 12816 12817 CPPFLAGS=$save_CPPFLAGS 12818 LDFLAGS=$save_LDFLAGS 12819 LIBS=$save_LIBS 12820 ;; 12821 esac 12822 12823 case $lt_cv_dlopen_self in 12824 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12825 *) enable_dlopen_self=unknown ;; 12826 esac 12827 12828 case $lt_cv_dlopen_self_static in 12829 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12830 *) enable_dlopen_self_static=unknown ;; 12831 esac 12832fi 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850striplib= 12851old_striplib= 12852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12853printf %s "checking whether stripping libraries is possible... " >&6; } 12854if test -z "$STRIP"; then 12855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12856printf "%s\n" "no" >&6; } 12857else 12858 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12859 old_striplib="$STRIP --strip-debug" 12860 striplib="$STRIP --strip-unneeded" 12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12862printf "%s\n" "yes" >&6; } 12863 else 12864 case $host_os in 12865 darwin*) 12866 # FIXME - insert some real tests, host_os isn't really good enough 12867 striplib="$STRIP -x" 12868 old_striplib="$STRIP -S" 12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12870printf "%s\n" "yes" >&6; } 12871 ;; 12872 freebsd*) 12873 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12874 old_striplib="$STRIP --strip-debug" 12875 striplib="$STRIP --strip-unneeded" 12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12877printf "%s\n" "yes" >&6; } 12878 else 12879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12880printf "%s\n" "no" >&6; } 12881 fi 12882 ;; 12883 *) 12884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12885printf "%s\n" "no" >&6; } 12886 ;; 12887 esac 12888 fi 12889fi 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 # Report what library types will actually be built 12903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12904printf %s "checking if libtool supports shared libraries... " >&6; } 12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12906printf "%s\n" "$can_build_shared" >&6; } 12907 12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12909printf %s "checking whether to build shared libraries... " >&6; } 12910 test no = "$can_build_shared" && enable_shared=no 12911 12912 # On AIX, shared libraries and static libraries use the same namespace, and 12913 # are all built from PIC. 12914 case $host_os in 12915 aix3*) 12916 test yes = "$enable_shared" && enable_static=no 12917 if test -n "$RANLIB"; then 12918 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12919 postinstall_cmds='$RANLIB $lib' 12920 fi 12921 ;; 12922 12923 aix[4-9]*) 12924 if test ia64 != "$host_cpu"; then 12925 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12926 yes,aix,yes) ;; # shared object as lib.so file only 12927 yes,svr4,*) ;; # shared object as lib.so archive member only 12928 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12929 esac 12930 fi 12931 ;; 12932 esac 12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12934printf "%s\n" "$enable_shared" >&6; } 12935 12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12937printf %s "checking whether to build static libraries... " >&6; } 12938 # Make sure either enable_shared or enable_static is yes. 12939 test yes = "$enable_shared" || enable_static=yes 12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12941printf "%s\n" "$enable_static" >&6; } 12942 12943 12944 12945 12946fi 12947ac_ext=c 12948ac_cpp='$CPP $CPPFLAGS' 12949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12951ac_compiler_gnu=$ac_cv_c_compiler_gnu 12952 12953CC=$lt_save_CC 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 ac_config_commands="$ac_config_commands libtool" 12970 12971 12972 12973 12974# Only expand once: 12975 12976 12977 12978# Require X.Org macros 1.8 or later 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12992printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12993if test ${ac_cv_c_undeclared_builtin_options+y} 12994then : 12995 printf %s "(cached) " >&6 12996else $as_nop 12997 ac_save_CFLAGS=$CFLAGS 12998 ac_cv_c_undeclared_builtin_options='cannot detect' 12999 for ac_arg in '' -fno-builtin; do 13000 CFLAGS="$ac_save_CFLAGS $ac_arg" 13001 # This test program should *not* compile successfully. 13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13003/* end confdefs.h. */ 13004 13005int 13006main (void) 13007{ 13008(void) strchr; 13009 ; 13010 return 0; 13011} 13012_ACEOF 13013if ac_fn_c_try_compile "$LINENO" 13014then : 13015 13016else $as_nop 13017 # This test program should compile successfully. 13018 # No library function is consistently available on 13019 # freestanding implementations, so test against a dummy 13020 # declaration. Include always-available headers on the 13021 # off chance that they somehow elicit warnings. 13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13023/* end confdefs.h. */ 13024#include <float.h> 13025#include <limits.h> 13026#include <stdarg.h> 13027#include <stddef.h> 13028extern void ac_decl (int, char *); 13029 13030int 13031main (void) 13032{ 13033(void) ac_decl (0, (char *) 0); 13034 (void) ac_decl; 13035 13036 ; 13037 return 0; 13038} 13039_ACEOF 13040if ac_fn_c_try_compile "$LINENO" 13041then : 13042 if test x"$ac_arg" = x 13043then : 13044 ac_cv_c_undeclared_builtin_options='none needed' 13045else $as_nop 13046 ac_cv_c_undeclared_builtin_options=$ac_arg 13047fi 13048 break 13049fi 13050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13051fi 13052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13053 done 13054 CFLAGS=$ac_save_CFLAGS 13055 13056fi 13057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13058printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13059 case $ac_cv_c_undeclared_builtin_options in #( 13060 'cannot detect') : 13061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13062printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13063as_fn_error $? "cannot make $CC report undeclared builtins 13064See \`config.log' for more details" "$LINENO" 5; } ;; #( 13065 'none needed') : 13066 ac_c_undeclared_builtin_options='' ;; #( 13067 *) : 13068 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13069esac 13070 13071 13072 13073 13074 13075ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13076if test "x$ac_cv_have_decl___clang__" = xyes 13077then : 13078 CLANGCC="yes" 13079else $as_nop 13080 CLANGCC="no" 13081fi 13082ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13083if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13084then : 13085 INTELCC="yes" 13086else $as_nop 13087 INTELCC="no" 13088fi 13089ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13090if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13091then : 13092 SUNCC="yes" 13093else $as_nop 13094 SUNCC="no" 13095fi 13096 13097 13098 13099 13100 13101 13102 13103 13104if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13105 if test -n "$ac_tool_prefix"; then 13106 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13107set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13109printf %s "checking for $ac_word... " >&6; } 13110if test ${ac_cv_path_PKG_CONFIG+y} 13111then : 13112 printf %s "(cached) " >&6 13113else $as_nop 13114 case $PKG_CONFIG in 13115 [\\/]* | ?:[\\/]*) 13116 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13117 ;; 13118 *) 13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13120for as_dir in $PATH 13121do 13122 IFS=$as_save_IFS 13123 case $as_dir in #((( 13124 '') as_dir=./ ;; 13125 */) ;; 13126 *) as_dir=$as_dir/ ;; 13127 esac 13128 for ac_exec_ext in '' $ac_executable_extensions; do 13129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13130 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13132 break 2 13133 fi 13134done 13135 done 13136IFS=$as_save_IFS 13137 13138 ;; 13139esac 13140fi 13141PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13142if test -n "$PKG_CONFIG"; then 13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13144printf "%s\n" "$PKG_CONFIG" >&6; } 13145else 13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13147printf "%s\n" "no" >&6; } 13148fi 13149 13150 13151fi 13152if test -z "$ac_cv_path_PKG_CONFIG"; then 13153 ac_pt_PKG_CONFIG=$PKG_CONFIG 13154 # Extract the first word of "pkg-config", so it can be a program name with args. 13155set dummy pkg-config; ac_word=$2 13156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13157printf %s "checking for $ac_word... " >&6; } 13158if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13159then : 13160 printf %s "(cached) " >&6 13161else $as_nop 13162 case $ac_pt_PKG_CONFIG in 13163 [\\/]* | ?:[\\/]*) 13164 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13165 ;; 13166 *) 13167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13168for as_dir in $PATH 13169do 13170 IFS=$as_save_IFS 13171 case $as_dir in #((( 13172 '') as_dir=./ ;; 13173 */) ;; 13174 *) as_dir=$as_dir/ ;; 13175 esac 13176 for ac_exec_ext in '' $ac_executable_extensions; do 13177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13178 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13180 break 2 13181 fi 13182done 13183 done 13184IFS=$as_save_IFS 13185 13186 ;; 13187esac 13188fi 13189ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13190if test -n "$ac_pt_PKG_CONFIG"; then 13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13192printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13193else 13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13195printf "%s\n" "no" >&6; } 13196fi 13197 13198 if test "x$ac_pt_PKG_CONFIG" = x; then 13199 PKG_CONFIG="" 13200 else 13201 case $cross_compiling:$ac_tool_warned in 13202yes:) 13203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13204printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13205ac_tool_warned=yes ;; 13206esac 13207 PKG_CONFIG=$ac_pt_PKG_CONFIG 13208 fi 13209else 13210 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13211fi 13212 13213fi 13214if test -n "$PKG_CONFIG"; then 13215 _pkg_min_version=0.9.0 13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13217printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13218 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13220printf "%s\n" "yes" >&6; } 13221 else 13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13223printf "%s\n" "no" >&6; } 13224 PKG_CONFIG="" 13225 fi 13226fi 13227 13228 13229 13230 13231 13232# Check whether --enable-selective-werror was given. 13233if test ${enable_selective_werror+y} 13234then : 13235 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13236else $as_nop 13237 SELECTIVE_WERROR=yes 13238fi 13239 13240 13241 13242 13243 13244# -v is too short to test reliably with XORG_TESTSET_CFLAG 13245if test "x$SUNCC" = "xyes"; then 13246 BASE_CFLAGS="-v" 13247else 13248 BASE_CFLAGS="" 13249fi 13250 13251# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265xorg_testset_save_CFLAGS="$CFLAGS" 13266 13267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13271if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13272then : 13273 printf %s "(cached) " >&6 13274else $as_nop 13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13276/* end confdefs.h. */ 13277int i; 13278_ACEOF 13279if ac_fn_c_try_compile "$LINENO" 13280then : 13281 xorg_cv_cc_flag_unknown_warning_option=yes 13282else $as_nop 13283 xorg_cv_cc_flag_unknown_warning_option=no 13284fi 13285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13286fi 13287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13290 CFLAGS="$xorg_testset_save_CFLAGS" 13291fi 13292 13293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13296 fi 13297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13300if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13301then : 13302 printf %s "(cached) " >&6 13303else $as_nop 13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305/* end confdefs.h. */ 13306int i; 13307_ACEOF 13308if ac_fn_c_try_compile "$LINENO" 13309then : 13310 xorg_cv_cc_flag_unused_command_line_argument=yes 13311else $as_nop 13312 xorg_cv_cc_flag_unused_command_line_argument=no 13313fi 13314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13315fi 13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13319 CFLAGS="$xorg_testset_save_CFLAGS" 13320fi 13321 13322found="no" 13323 13324 if test $found = "no" ; then 13325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13327 fi 13328 13329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13331 fi 13332 13333 CFLAGS="$CFLAGS -Wall" 13334 13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13336printf %s "checking if $CC supports -Wall... " >&6; } 13337 cacheid=xorg_cv_cc_flag__Wall 13338 if eval test \${$cacheid+y} 13339then : 13340 printf %s "(cached) " >&6 13341else $as_nop 13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13343/* end confdefs.h. */ 13344int i; 13345int 13346main (void) 13347{ 13348 13349 ; 13350 return 0; 13351} 13352_ACEOF 13353if ac_fn_c_try_link "$LINENO" 13354then : 13355 eval $cacheid=yes 13356else $as_nop 13357 eval $cacheid=no 13358fi 13359rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13360 conftest$ac_exeext conftest.$ac_ext 13361fi 13362 13363 13364 CFLAGS="$xorg_testset_save_CFLAGS" 13365 13366 eval supported=\$$cacheid 13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13368printf "%s\n" "$supported" >&6; } 13369 if test "$supported" = "yes" ; then 13370 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13371 found="yes" 13372 fi 13373 fi 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389xorg_testset_save_CFLAGS="$CFLAGS" 13390 13391if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13394printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13395if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13396then : 13397 printf %s "(cached) " >&6 13398else $as_nop 13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400/* end confdefs.h. */ 13401int i; 13402_ACEOF 13403if ac_fn_c_try_compile "$LINENO" 13404then : 13405 xorg_cv_cc_flag_unknown_warning_option=yes 13406else $as_nop 13407 xorg_cv_cc_flag_unknown_warning_option=no 13408fi 13409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13410fi 13411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13414 CFLAGS="$xorg_testset_save_CFLAGS" 13415fi 13416 13417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13420 fi 13421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13424if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13425then : 13426 printf %s "(cached) " >&6 13427else $as_nop 13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13429/* end confdefs.h. */ 13430int i; 13431_ACEOF 13432if ac_fn_c_try_compile "$LINENO" 13433then : 13434 xorg_cv_cc_flag_unused_command_line_argument=yes 13435else $as_nop 13436 xorg_cv_cc_flag_unused_command_line_argument=no 13437fi 13438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13439fi 13440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13441printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13443 CFLAGS="$xorg_testset_save_CFLAGS" 13444fi 13445 13446found="no" 13447 13448 if test $found = "no" ; then 13449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13451 fi 13452 13453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13455 fi 13456 13457 CFLAGS="$CFLAGS -Wpointer-arith" 13458 13459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13460printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13461 cacheid=xorg_cv_cc_flag__Wpointer_arith 13462 if eval test \${$cacheid+y} 13463then : 13464 printf %s "(cached) " >&6 13465else $as_nop 13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13467/* end confdefs.h. */ 13468int i; 13469int 13470main (void) 13471{ 13472 13473 ; 13474 return 0; 13475} 13476_ACEOF 13477if ac_fn_c_try_link "$LINENO" 13478then : 13479 eval $cacheid=yes 13480else $as_nop 13481 eval $cacheid=no 13482fi 13483rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13484 conftest$ac_exeext conftest.$ac_ext 13485fi 13486 13487 13488 CFLAGS="$xorg_testset_save_CFLAGS" 13489 13490 eval supported=\$$cacheid 13491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13492printf "%s\n" "$supported" >&6; } 13493 if test "$supported" = "yes" ; then 13494 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13495 found="yes" 13496 fi 13497 fi 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513xorg_testset_save_CFLAGS="$CFLAGS" 13514 13515if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13518printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13519if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13520then : 13521 printf %s "(cached) " >&6 13522else $as_nop 13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13524/* end confdefs.h. */ 13525int i; 13526_ACEOF 13527if ac_fn_c_try_compile "$LINENO" 13528then : 13529 xorg_cv_cc_flag_unknown_warning_option=yes 13530else $as_nop 13531 xorg_cv_cc_flag_unknown_warning_option=no 13532fi 13533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13534fi 13535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13536printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13538 CFLAGS="$xorg_testset_save_CFLAGS" 13539fi 13540 13541if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13544 fi 13545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13547printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13548if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13549then : 13550 printf %s "(cached) " >&6 13551else $as_nop 13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13553/* end confdefs.h. */ 13554int i; 13555_ACEOF 13556if ac_fn_c_try_compile "$LINENO" 13557then : 13558 xorg_cv_cc_flag_unused_command_line_argument=yes 13559else $as_nop 13560 xorg_cv_cc_flag_unused_command_line_argument=no 13561fi 13562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13563fi 13564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13565printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13567 CFLAGS="$xorg_testset_save_CFLAGS" 13568fi 13569 13570found="no" 13571 13572 if test $found = "no" ; then 13573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13575 fi 13576 13577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13579 fi 13580 13581 CFLAGS="$CFLAGS -Wmissing-declarations" 13582 13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13584printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13585 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13586 if eval test \${$cacheid+y} 13587then : 13588 printf %s "(cached) " >&6 13589else $as_nop 13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13591/* end confdefs.h. */ 13592int i; 13593int 13594main (void) 13595{ 13596 13597 ; 13598 return 0; 13599} 13600_ACEOF 13601if ac_fn_c_try_link "$LINENO" 13602then : 13603 eval $cacheid=yes 13604else $as_nop 13605 eval $cacheid=no 13606fi 13607rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13608 conftest$ac_exeext conftest.$ac_ext 13609fi 13610 13611 13612 CFLAGS="$xorg_testset_save_CFLAGS" 13613 13614 eval supported=\$$cacheid 13615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13616printf "%s\n" "$supported" >&6; } 13617 if test "$supported" = "yes" ; then 13618 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13619 found="yes" 13620 fi 13621 fi 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637xorg_testset_save_CFLAGS="$CFLAGS" 13638 13639if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13642printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13643if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13644then : 13645 printf %s "(cached) " >&6 13646else $as_nop 13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13648/* end confdefs.h. */ 13649int i; 13650_ACEOF 13651if ac_fn_c_try_compile "$LINENO" 13652then : 13653 xorg_cv_cc_flag_unknown_warning_option=yes 13654else $as_nop 13655 xorg_cv_cc_flag_unknown_warning_option=no 13656fi 13657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13658fi 13659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13662 CFLAGS="$xorg_testset_save_CFLAGS" 13663fi 13664 13665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13668 fi 13669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13672if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13673then : 13674 printf %s "(cached) " >&6 13675else $as_nop 13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13677/* end confdefs.h. */ 13678int i; 13679_ACEOF 13680if ac_fn_c_try_compile "$LINENO" 13681then : 13682 xorg_cv_cc_flag_unused_command_line_argument=yes 13683else $as_nop 13684 xorg_cv_cc_flag_unused_command_line_argument=no 13685fi 13686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13687fi 13688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13689printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13691 CFLAGS="$xorg_testset_save_CFLAGS" 13692fi 13693 13694found="no" 13695 13696 if test $found = "no" ; then 13697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13699 fi 13700 13701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13703 fi 13704 13705 CFLAGS="$CFLAGS -Wformat=2" 13706 13707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13708printf %s "checking if $CC supports -Wformat=2... " >&6; } 13709 cacheid=xorg_cv_cc_flag__Wformat_2 13710 if eval test \${$cacheid+y} 13711then : 13712 printf %s "(cached) " >&6 13713else $as_nop 13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13715/* end confdefs.h. */ 13716int i; 13717int 13718main (void) 13719{ 13720 13721 ; 13722 return 0; 13723} 13724_ACEOF 13725if ac_fn_c_try_link "$LINENO" 13726then : 13727 eval $cacheid=yes 13728else $as_nop 13729 eval $cacheid=no 13730fi 13731rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13732 conftest$ac_exeext conftest.$ac_ext 13733fi 13734 13735 13736 CFLAGS="$xorg_testset_save_CFLAGS" 13737 13738 eval supported=\$$cacheid 13739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13740printf "%s\n" "$supported" >&6; } 13741 if test "$supported" = "yes" ; then 13742 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13743 found="yes" 13744 fi 13745 fi 13746 13747 if test $found = "no" ; then 13748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13750 fi 13751 13752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13754 fi 13755 13756 CFLAGS="$CFLAGS -Wformat" 13757 13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13759printf %s "checking if $CC supports -Wformat... " >&6; } 13760 cacheid=xorg_cv_cc_flag__Wformat 13761 if eval test \${$cacheid+y} 13762then : 13763 printf %s "(cached) " >&6 13764else $as_nop 13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13766/* end confdefs.h. */ 13767int i; 13768int 13769main (void) 13770{ 13771 13772 ; 13773 return 0; 13774} 13775_ACEOF 13776if ac_fn_c_try_link "$LINENO" 13777then : 13778 eval $cacheid=yes 13779else $as_nop 13780 eval $cacheid=no 13781fi 13782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13783 conftest$ac_exeext conftest.$ac_ext 13784fi 13785 13786 13787 CFLAGS="$xorg_testset_save_CFLAGS" 13788 13789 eval supported=\$$cacheid 13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13791printf "%s\n" "$supported" >&6; } 13792 if test "$supported" = "yes" ; then 13793 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13794 found="yes" 13795 fi 13796 fi 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814xorg_testset_save_CFLAGS="$CFLAGS" 13815 13816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13820if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13821then : 13822 printf %s "(cached) " >&6 13823else $as_nop 13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13825/* end confdefs.h. */ 13826int i; 13827_ACEOF 13828if ac_fn_c_try_compile "$LINENO" 13829then : 13830 xorg_cv_cc_flag_unknown_warning_option=yes 13831else $as_nop 13832 xorg_cv_cc_flag_unknown_warning_option=no 13833fi 13834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13835fi 13836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13839 CFLAGS="$xorg_testset_save_CFLAGS" 13840fi 13841 13842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13845 fi 13846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13849if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13850then : 13851 printf %s "(cached) " >&6 13852else $as_nop 13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13854/* end confdefs.h. */ 13855int i; 13856_ACEOF 13857if ac_fn_c_try_compile "$LINENO" 13858then : 13859 xorg_cv_cc_flag_unused_command_line_argument=yes 13860else $as_nop 13861 xorg_cv_cc_flag_unused_command_line_argument=no 13862fi 13863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13864fi 13865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13868 CFLAGS="$xorg_testset_save_CFLAGS" 13869fi 13870 13871found="no" 13872 13873 if test $found = "no" ; then 13874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13876 fi 13877 13878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13880 fi 13881 13882 CFLAGS="$CFLAGS -Wstrict-prototypes" 13883 13884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13885printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13886 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13887 if eval test \${$cacheid+y} 13888then : 13889 printf %s "(cached) " >&6 13890else $as_nop 13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13892/* end confdefs.h. */ 13893int i; 13894int 13895main (void) 13896{ 13897 13898 ; 13899 return 0; 13900} 13901_ACEOF 13902if ac_fn_c_try_link "$LINENO" 13903then : 13904 eval $cacheid=yes 13905else $as_nop 13906 eval $cacheid=no 13907fi 13908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13909 conftest$ac_exeext conftest.$ac_ext 13910fi 13911 13912 13913 CFLAGS="$xorg_testset_save_CFLAGS" 13914 13915 eval supported=\$$cacheid 13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13917printf "%s\n" "$supported" >&6; } 13918 if test "$supported" = "yes" ; then 13919 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13920 found="yes" 13921 fi 13922 fi 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938xorg_testset_save_CFLAGS="$CFLAGS" 13939 13940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13945then : 13946 printf %s "(cached) " >&6 13947else $as_nop 13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13949/* end confdefs.h. */ 13950int i; 13951_ACEOF 13952if ac_fn_c_try_compile "$LINENO" 13953then : 13954 xorg_cv_cc_flag_unknown_warning_option=yes 13955else $as_nop 13956 xorg_cv_cc_flag_unknown_warning_option=no 13957fi 13958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13959fi 13960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13963 CFLAGS="$xorg_testset_save_CFLAGS" 13964fi 13965 13966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13969 fi 13970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13974then : 13975 printf %s "(cached) " >&6 13976else $as_nop 13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13978/* end confdefs.h. */ 13979int i; 13980_ACEOF 13981if ac_fn_c_try_compile "$LINENO" 13982then : 13983 xorg_cv_cc_flag_unused_command_line_argument=yes 13984else $as_nop 13985 xorg_cv_cc_flag_unused_command_line_argument=no 13986fi 13987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13988fi 13989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13992 CFLAGS="$xorg_testset_save_CFLAGS" 13993fi 13994 13995found="no" 13996 13997 if test $found = "no" ; then 13998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14000 fi 14001 14002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14004 fi 14005 14006 CFLAGS="$CFLAGS -Wmissing-prototypes" 14007 14008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14009printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14010 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14011 if eval test \${$cacheid+y} 14012then : 14013 printf %s "(cached) " >&6 14014else $as_nop 14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14016/* end confdefs.h. */ 14017int i; 14018int 14019main (void) 14020{ 14021 14022 ; 14023 return 0; 14024} 14025_ACEOF 14026if ac_fn_c_try_link "$LINENO" 14027then : 14028 eval $cacheid=yes 14029else $as_nop 14030 eval $cacheid=no 14031fi 14032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14033 conftest$ac_exeext conftest.$ac_ext 14034fi 14035 14036 14037 CFLAGS="$xorg_testset_save_CFLAGS" 14038 14039 eval supported=\$$cacheid 14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14041printf "%s\n" "$supported" >&6; } 14042 if test "$supported" = "yes" ; then 14043 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14044 found="yes" 14045 fi 14046 fi 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062xorg_testset_save_CFLAGS="$CFLAGS" 14063 14064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14067printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14068if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14069then : 14070 printf %s "(cached) " >&6 14071else $as_nop 14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14073/* end confdefs.h. */ 14074int i; 14075_ACEOF 14076if ac_fn_c_try_compile "$LINENO" 14077then : 14078 xorg_cv_cc_flag_unknown_warning_option=yes 14079else $as_nop 14080 xorg_cv_cc_flag_unknown_warning_option=no 14081fi 14082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14083fi 14084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14085printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14086 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14087 CFLAGS="$xorg_testset_save_CFLAGS" 14088fi 14089 14090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14093 fi 14094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14096printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14097if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14098then : 14099 printf %s "(cached) " >&6 14100else $as_nop 14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14102/* end confdefs.h. */ 14103int i; 14104_ACEOF 14105if ac_fn_c_try_compile "$LINENO" 14106then : 14107 xorg_cv_cc_flag_unused_command_line_argument=yes 14108else $as_nop 14109 xorg_cv_cc_flag_unused_command_line_argument=no 14110fi 14111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14112fi 14113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14114printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14116 CFLAGS="$xorg_testset_save_CFLAGS" 14117fi 14118 14119found="no" 14120 14121 if test $found = "no" ; then 14122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14124 fi 14125 14126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14128 fi 14129 14130 CFLAGS="$CFLAGS -Wnested-externs" 14131 14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14133printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14134 cacheid=xorg_cv_cc_flag__Wnested_externs 14135 if eval test \${$cacheid+y} 14136then : 14137 printf %s "(cached) " >&6 14138else $as_nop 14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14140/* end confdefs.h. */ 14141int i; 14142int 14143main (void) 14144{ 14145 14146 ; 14147 return 0; 14148} 14149_ACEOF 14150if ac_fn_c_try_link "$LINENO" 14151then : 14152 eval $cacheid=yes 14153else $as_nop 14154 eval $cacheid=no 14155fi 14156rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14157 conftest$ac_exeext conftest.$ac_ext 14158fi 14159 14160 14161 CFLAGS="$xorg_testset_save_CFLAGS" 14162 14163 eval supported=\$$cacheid 14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14165printf "%s\n" "$supported" >&6; } 14166 if test "$supported" = "yes" ; then 14167 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14168 found="yes" 14169 fi 14170 fi 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186xorg_testset_save_CFLAGS="$CFLAGS" 14187 14188if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14191printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14192if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14193then : 14194 printf %s "(cached) " >&6 14195else $as_nop 14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14197/* end confdefs.h. */ 14198int i; 14199_ACEOF 14200if ac_fn_c_try_compile "$LINENO" 14201then : 14202 xorg_cv_cc_flag_unknown_warning_option=yes 14203else $as_nop 14204 xorg_cv_cc_flag_unknown_warning_option=no 14205fi 14206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14207fi 14208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14209printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14210 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14211 CFLAGS="$xorg_testset_save_CFLAGS" 14212fi 14213 14214if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14217 fi 14218 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14220printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14221if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14222then : 14223 printf %s "(cached) " >&6 14224else $as_nop 14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14226/* end confdefs.h. */ 14227int i; 14228_ACEOF 14229if ac_fn_c_try_compile "$LINENO" 14230then : 14231 xorg_cv_cc_flag_unused_command_line_argument=yes 14232else $as_nop 14233 xorg_cv_cc_flag_unused_command_line_argument=no 14234fi 14235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14236fi 14237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14238printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14240 CFLAGS="$xorg_testset_save_CFLAGS" 14241fi 14242 14243found="no" 14244 14245 if test $found = "no" ; then 14246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14248 fi 14249 14250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14252 fi 14253 14254 CFLAGS="$CFLAGS -Wbad-function-cast" 14255 14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14257printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14258 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14259 if eval test \${$cacheid+y} 14260then : 14261 printf %s "(cached) " >&6 14262else $as_nop 14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14264/* end confdefs.h. */ 14265int i; 14266int 14267main (void) 14268{ 14269 14270 ; 14271 return 0; 14272} 14273_ACEOF 14274if ac_fn_c_try_link "$LINENO" 14275then : 14276 eval $cacheid=yes 14277else $as_nop 14278 eval $cacheid=no 14279fi 14280rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14281 conftest$ac_exeext conftest.$ac_ext 14282fi 14283 14284 14285 CFLAGS="$xorg_testset_save_CFLAGS" 14286 14287 eval supported=\$$cacheid 14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14289printf "%s\n" "$supported" >&6; } 14290 if test "$supported" = "yes" ; then 14291 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14292 found="yes" 14293 fi 14294 fi 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310xorg_testset_save_CFLAGS="$CFLAGS" 14311 14312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14315printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14316if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14317then : 14318 printf %s "(cached) " >&6 14319else $as_nop 14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14321/* end confdefs.h. */ 14322int i; 14323_ACEOF 14324if ac_fn_c_try_compile "$LINENO" 14325then : 14326 xorg_cv_cc_flag_unknown_warning_option=yes 14327else $as_nop 14328 xorg_cv_cc_flag_unknown_warning_option=no 14329fi 14330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14331fi 14332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14333printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14335 CFLAGS="$xorg_testset_save_CFLAGS" 14336fi 14337 14338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14341 fi 14342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14344printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14345if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14346then : 14347 printf %s "(cached) " >&6 14348else $as_nop 14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14350/* end confdefs.h. */ 14351int i; 14352_ACEOF 14353if ac_fn_c_try_compile "$LINENO" 14354then : 14355 xorg_cv_cc_flag_unused_command_line_argument=yes 14356else $as_nop 14357 xorg_cv_cc_flag_unused_command_line_argument=no 14358fi 14359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14360fi 14361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14362printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14364 CFLAGS="$xorg_testset_save_CFLAGS" 14365fi 14366 14367found="no" 14368 14369 if test $found = "no" ; then 14370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14372 fi 14373 14374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14376 fi 14377 14378 CFLAGS="$CFLAGS -Wold-style-definition" 14379 14380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14381printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14382 cacheid=xorg_cv_cc_flag__Wold_style_definition 14383 if eval test \${$cacheid+y} 14384then : 14385 printf %s "(cached) " >&6 14386else $as_nop 14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14388/* end confdefs.h. */ 14389int i; 14390int 14391main (void) 14392{ 14393 14394 ; 14395 return 0; 14396} 14397_ACEOF 14398if ac_fn_c_try_link "$LINENO" 14399then : 14400 eval $cacheid=yes 14401else $as_nop 14402 eval $cacheid=no 14403fi 14404rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14405 conftest$ac_exeext conftest.$ac_ext 14406fi 14407 14408 14409 CFLAGS="$xorg_testset_save_CFLAGS" 14410 14411 eval supported=\$$cacheid 14412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14413printf "%s\n" "$supported" >&6; } 14414 if test "$supported" = "yes" ; then 14415 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14416 found="yes" 14417 fi 14418 fi 14419 14420 if test $found = "no" ; then 14421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14423 fi 14424 14425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14427 fi 14428 14429 CFLAGS="$CFLAGS -fd" 14430 14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14432printf %s "checking if $CC supports -fd... " >&6; } 14433 cacheid=xorg_cv_cc_flag__fd 14434 if eval test \${$cacheid+y} 14435then : 14436 printf %s "(cached) " >&6 14437else $as_nop 14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14439/* end confdefs.h. */ 14440int i; 14441int 14442main (void) 14443{ 14444 14445 ; 14446 return 0; 14447} 14448_ACEOF 14449if ac_fn_c_try_link "$LINENO" 14450then : 14451 eval $cacheid=yes 14452else $as_nop 14453 eval $cacheid=no 14454fi 14455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14456 conftest$ac_exeext conftest.$ac_ext 14457fi 14458 14459 14460 CFLAGS="$xorg_testset_save_CFLAGS" 14461 14462 eval supported=\$$cacheid 14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14464printf "%s\n" "$supported" >&6; } 14465 if test "$supported" = "yes" ; then 14466 BASE_CFLAGS="$BASE_CFLAGS -fd" 14467 found="yes" 14468 fi 14469 fi 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485xorg_testset_save_CFLAGS="$CFLAGS" 14486 14487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14490printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14491if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14492then : 14493 printf %s "(cached) " >&6 14494else $as_nop 14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14496/* end confdefs.h. */ 14497int i; 14498_ACEOF 14499if ac_fn_c_try_compile "$LINENO" 14500then : 14501 xorg_cv_cc_flag_unknown_warning_option=yes 14502else $as_nop 14503 xorg_cv_cc_flag_unknown_warning_option=no 14504fi 14505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14506fi 14507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14510 CFLAGS="$xorg_testset_save_CFLAGS" 14511fi 14512 14513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14516 fi 14517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14520if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14521then : 14522 printf %s "(cached) " >&6 14523else $as_nop 14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14525/* end confdefs.h. */ 14526int i; 14527_ACEOF 14528if ac_fn_c_try_compile "$LINENO" 14529then : 14530 xorg_cv_cc_flag_unused_command_line_argument=yes 14531else $as_nop 14532 xorg_cv_cc_flag_unused_command_line_argument=no 14533fi 14534rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14535fi 14536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14537printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14539 CFLAGS="$xorg_testset_save_CFLAGS" 14540fi 14541 14542found="no" 14543 14544 if test $found = "no" ; then 14545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14547 fi 14548 14549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14551 fi 14552 14553 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14554 14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14556printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14557 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14558 if eval test \${$cacheid+y} 14559then : 14560 printf %s "(cached) " >&6 14561else $as_nop 14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563/* end confdefs.h. */ 14564int i; 14565int 14566main (void) 14567{ 14568 14569 ; 14570 return 0; 14571} 14572_ACEOF 14573if ac_fn_c_try_link "$LINENO" 14574then : 14575 eval $cacheid=yes 14576else $as_nop 14577 eval $cacheid=no 14578fi 14579rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14580 conftest$ac_exeext conftest.$ac_ext 14581fi 14582 14583 14584 CFLAGS="$xorg_testset_save_CFLAGS" 14585 14586 eval supported=\$$cacheid 14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14588printf "%s\n" "$supported" >&6; } 14589 if test "$supported" = "yes" ; then 14590 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14591 found="yes" 14592 fi 14593 fi 14594 14595 14596 14597 14598 14599# This chunk adds additional warnings that could catch undesired effects. 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613xorg_testset_save_CFLAGS="$CFLAGS" 14614 14615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14620then : 14621 printf %s "(cached) " >&6 14622else $as_nop 14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14624/* end confdefs.h. */ 14625int i; 14626_ACEOF 14627if ac_fn_c_try_compile "$LINENO" 14628then : 14629 xorg_cv_cc_flag_unknown_warning_option=yes 14630else $as_nop 14631 xorg_cv_cc_flag_unknown_warning_option=no 14632fi 14633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14634fi 14635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14638 CFLAGS="$xorg_testset_save_CFLAGS" 14639fi 14640 14641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14644 fi 14645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14649then : 14650 printf %s "(cached) " >&6 14651else $as_nop 14652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14653/* end confdefs.h. */ 14654int i; 14655_ACEOF 14656if ac_fn_c_try_compile "$LINENO" 14657then : 14658 xorg_cv_cc_flag_unused_command_line_argument=yes 14659else $as_nop 14660 xorg_cv_cc_flag_unused_command_line_argument=no 14661fi 14662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14663fi 14664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14667 CFLAGS="$xorg_testset_save_CFLAGS" 14668fi 14669 14670found="no" 14671 14672 if test $found = "no" ; then 14673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14675 fi 14676 14677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14679 fi 14680 14681 CFLAGS="$CFLAGS -Wunused" 14682 14683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14684printf %s "checking if $CC supports -Wunused... " >&6; } 14685 cacheid=xorg_cv_cc_flag__Wunused 14686 if eval test \${$cacheid+y} 14687then : 14688 printf %s "(cached) " >&6 14689else $as_nop 14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14691/* end confdefs.h. */ 14692int i; 14693int 14694main (void) 14695{ 14696 14697 ; 14698 return 0; 14699} 14700_ACEOF 14701if ac_fn_c_try_link "$LINENO" 14702then : 14703 eval $cacheid=yes 14704else $as_nop 14705 eval $cacheid=no 14706fi 14707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14708 conftest$ac_exeext conftest.$ac_ext 14709fi 14710 14711 14712 CFLAGS="$xorg_testset_save_CFLAGS" 14713 14714 eval supported=\$$cacheid 14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14716printf "%s\n" "$supported" >&6; } 14717 if test "$supported" = "yes" ; then 14718 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14719 found="yes" 14720 fi 14721 fi 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737xorg_testset_save_CFLAGS="$CFLAGS" 14738 14739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14743if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14744then : 14745 printf %s "(cached) " >&6 14746else $as_nop 14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14748/* end confdefs.h. */ 14749int i; 14750_ACEOF 14751if ac_fn_c_try_compile "$LINENO" 14752then : 14753 xorg_cv_cc_flag_unknown_warning_option=yes 14754else $as_nop 14755 xorg_cv_cc_flag_unknown_warning_option=no 14756fi 14757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14758fi 14759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14762 CFLAGS="$xorg_testset_save_CFLAGS" 14763fi 14764 14765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14768 fi 14769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14773then : 14774 printf %s "(cached) " >&6 14775else $as_nop 14776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778int i; 14779_ACEOF 14780if ac_fn_c_try_compile "$LINENO" 14781then : 14782 xorg_cv_cc_flag_unused_command_line_argument=yes 14783else $as_nop 14784 xorg_cv_cc_flag_unused_command_line_argument=no 14785fi 14786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14787fi 14788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14791 CFLAGS="$xorg_testset_save_CFLAGS" 14792fi 14793 14794found="no" 14795 14796 if test $found = "no" ; then 14797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14799 fi 14800 14801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14803 fi 14804 14805 CFLAGS="$CFLAGS -Wuninitialized" 14806 14807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14808printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14809 cacheid=xorg_cv_cc_flag__Wuninitialized 14810 if eval test \${$cacheid+y} 14811then : 14812 printf %s "(cached) " >&6 14813else $as_nop 14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14815/* end confdefs.h. */ 14816int i; 14817int 14818main (void) 14819{ 14820 14821 ; 14822 return 0; 14823} 14824_ACEOF 14825if ac_fn_c_try_link "$LINENO" 14826then : 14827 eval $cacheid=yes 14828else $as_nop 14829 eval $cacheid=no 14830fi 14831rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14832 conftest$ac_exeext conftest.$ac_ext 14833fi 14834 14835 14836 CFLAGS="$xorg_testset_save_CFLAGS" 14837 14838 eval supported=\$$cacheid 14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14840printf "%s\n" "$supported" >&6; } 14841 if test "$supported" = "yes" ; then 14842 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14843 found="yes" 14844 fi 14845 fi 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861xorg_testset_save_CFLAGS="$CFLAGS" 14862 14863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14867if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14868then : 14869 printf %s "(cached) " >&6 14870else $as_nop 14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14872/* end confdefs.h. */ 14873int i; 14874_ACEOF 14875if ac_fn_c_try_compile "$LINENO" 14876then : 14877 xorg_cv_cc_flag_unknown_warning_option=yes 14878else $as_nop 14879 xorg_cv_cc_flag_unknown_warning_option=no 14880fi 14881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14882fi 14883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14886 CFLAGS="$xorg_testset_save_CFLAGS" 14887fi 14888 14889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14892 fi 14893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14896if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14897then : 14898 printf %s "(cached) " >&6 14899else $as_nop 14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14901/* end confdefs.h. */ 14902int i; 14903_ACEOF 14904if ac_fn_c_try_compile "$LINENO" 14905then : 14906 xorg_cv_cc_flag_unused_command_line_argument=yes 14907else $as_nop 14908 xorg_cv_cc_flag_unused_command_line_argument=no 14909fi 14910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14911fi 14912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14915 CFLAGS="$xorg_testset_save_CFLAGS" 14916fi 14917 14918found="no" 14919 14920 if test $found = "no" ; then 14921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14923 fi 14924 14925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14927 fi 14928 14929 CFLAGS="$CFLAGS -Wshadow" 14930 14931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14932printf %s "checking if $CC supports -Wshadow... " >&6; } 14933 cacheid=xorg_cv_cc_flag__Wshadow 14934 if eval test \${$cacheid+y} 14935then : 14936 printf %s "(cached) " >&6 14937else $as_nop 14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14939/* end confdefs.h. */ 14940int i; 14941int 14942main (void) 14943{ 14944 14945 ; 14946 return 0; 14947} 14948_ACEOF 14949if ac_fn_c_try_link "$LINENO" 14950then : 14951 eval $cacheid=yes 14952else $as_nop 14953 eval $cacheid=no 14954fi 14955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14956 conftest$ac_exeext conftest.$ac_ext 14957fi 14958 14959 14960 CFLAGS="$xorg_testset_save_CFLAGS" 14961 14962 eval supported=\$$cacheid 14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14964printf "%s\n" "$supported" >&6; } 14965 if test "$supported" = "yes" ; then 14966 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14967 found="yes" 14968 fi 14969 fi 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985xorg_testset_save_CFLAGS="$CFLAGS" 14986 14987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14992then : 14993 printf %s "(cached) " >&6 14994else $as_nop 14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14996/* end confdefs.h. */ 14997int i; 14998_ACEOF 14999if ac_fn_c_try_compile "$LINENO" 15000then : 15001 xorg_cv_cc_flag_unknown_warning_option=yes 15002else $as_nop 15003 xorg_cv_cc_flag_unknown_warning_option=no 15004fi 15005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15006fi 15007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15010 CFLAGS="$xorg_testset_save_CFLAGS" 15011fi 15012 15013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15016 fi 15017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15020if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15021then : 15022 printf %s "(cached) " >&6 15023else $as_nop 15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15025/* end confdefs.h. */ 15026int i; 15027_ACEOF 15028if ac_fn_c_try_compile "$LINENO" 15029then : 15030 xorg_cv_cc_flag_unused_command_line_argument=yes 15031else $as_nop 15032 xorg_cv_cc_flag_unused_command_line_argument=no 15033fi 15034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15035fi 15036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15039 CFLAGS="$xorg_testset_save_CFLAGS" 15040fi 15041 15042found="no" 15043 15044 if test $found = "no" ; then 15045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15047 fi 15048 15049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15051 fi 15052 15053 CFLAGS="$CFLAGS -Wmissing-noreturn" 15054 15055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15056printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15057 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15058 if eval test \${$cacheid+y} 15059then : 15060 printf %s "(cached) " >&6 15061else $as_nop 15062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15063/* end confdefs.h. */ 15064int i; 15065int 15066main (void) 15067{ 15068 15069 ; 15070 return 0; 15071} 15072_ACEOF 15073if ac_fn_c_try_link "$LINENO" 15074then : 15075 eval $cacheid=yes 15076else $as_nop 15077 eval $cacheid=no 15078fi 15079rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15080 conftest$ac_exeext conftest.$ac_ext 15081fi 15082 15083 15084 CFLAGS="$xorg_testset_save_CFLAGS" 15085 15086 eval supported=\$$cacheid 15087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15088printf "%s\n" "$supported" >&6; } 15089 if test "$supported" = "yes" ; then 15090 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15091 found="yes" 15092 fi 15093 fi 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109xorg_testset_save_CFLAGS="$CFLAGS" 15110 15111if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15114printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15115if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15116then : 15117 printf %s "(cached) " >&6 15118else $as_nop 15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15120/* end confdefs.h. */ 15121int i; 15122_ACEOF 15123if ac_fn_c_try_compile "$LINENO" 15124then : 15125 xorg_cv_cc_flag_unknown_warning_option=yes 15126else $as_nop 15127 xorg_cv_cc_flag_unknown_warning_option=no 15128fi 15129rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15130fi 15131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15132printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15134 CFLAGS="$xorg_testset_save_CFLAGS" 15135fi 15136 15137if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15140 fi 15141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15143printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15144if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15145then : 15146 printf %s "(cached) " >&6 15147else $as_nop 15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15149/* end confdefs.h. */ 15150int i; 15151_ACEOF 15152if ac_fn_c_try_compile "$LINENO" 15153then : 15154 xorg_cv_cc_flag_unused_command_line_argument=yes 15155else $as_nop 15156 xorg_cv_cc_flag_unused_command_line_argument=no 15157fi 15158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15159fi 15160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15163 CFLAGS="$xorg_testset_save_CFLAGS" 15164fi 15165 15166found="no" 15167 15168 if test $found = "no" ; then 15169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15171 fi 15172 15173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15175 fi 15176 15177 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15178 15179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15180printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15181 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15182 if eval test \${$cacheid+y} 15183then : 15184 printf %s "(cached) " >&6 15185else $as_nop 15186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15187/* end confdefs.h. */ 15188int i; 15189int 15190main (void) 15191{ 15192 15193 ; 15194 return 0; 15195} 15196_ACEOF 15197if ac_fn_c_try_link "$LINENO" 15198then : 15199 eval $cacheid=yes 15200else $as_nop 15201 eval $cacheid=no 15202fi 15203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15204 conftest$ac_exeext conftest.$ac_ext 15205fi 15206 15207 15208 CFLAGS="$xorg_testset_save_CFLAGS" 15209 15210 eval supported=\$$cacheid 15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15212printf "%s\n" "$supported" >&6; } 15213 if test "$supported" = "yes" ; then 15214 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15215 found="yes" 15216 fi 15217 fi 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233xorg_testset_save_CFLAGS="$CFLAGS" 15234 15235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15239if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15240then : 15241 printf %s "(cached) " >&6 15242else $as_nop 15243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15244/* end confdefs.h. */ 15245int i; 15246_ACEOF 15247if ac_fn_c_try_compile "$LINENO" 15248then : 15249 xorg_cv_cc_flag_unknown_warning_option=yes 15250else $as_nop 15251 xorg_cv_cc_flag_unknown_warning_option=no 15252fi 15253rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15254fi 15255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15256printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15258 CFLAGS="$xorg_testset_save_CFLAGS" 15259fi 15260 15261if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15264 fi 15265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15267printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15268if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15269then : 15270 printf %s "(cached) " >&6 15271else $as_nop 15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15273/* end confdefs.h. */ 15274int i; 15275_ACEOF 15276if ac_fn_c_try_compile "$LINENO" 15277then : 15278 xorg_cv_cc_flag_unused_command_line_argument=yes 15279else $as_nop 15280 xorg_cv_cc_flag_unused_command_line_argument=no 15281fi 15282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15283fi 15284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15287 CFLAGS="$xorg_testset_save_CFLAGS" 15288fi 15289 15290found="no" 15291 15292 if test $found = "no" ; then 15293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15295 fi 15296 15297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15299 fi 15300 15301 CFLAGS="$CFLAGS -Wredundant-decls" 15302 15303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15304printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15305 cacheid=xorg_cv_cc_flag__Wredundant_decls 15306 if eval test \${$cacheid+y} 15307then : 15308 printf %s "(cached) " >&6 15309else $as_nop 15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15311/* end confdefs.h. */ 15312int i; 15313int 15314main (void) 15315{ 15316 15317 ; 15318 return 0; 15319} 15320_ACEOF 15321if ac_fn_c_try_link "$LINENO" 15322then : 15323 eval $cacheid=yes 15324else $as_nop 15325 eval $cacheid=no 15326fi 15327rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15328 conftest$ac_exeext conftest.$ac_ext 15329fi 15330 15331 15332 CFLAGS="$xorg_testset_save_CFLAGS" 15333 15334 eval supported=\$$cacheid 15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15336printf "%s\n" "$supported" >&6; } 15337 if test "$supported" = "yes" ; then 15338 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15339 found="yes" 15340 fi 15341 fi 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357xorg_testset_save_CFLAGS="$CFLAGS" 15358 15359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15363if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15364then : 15365 printf %s "(cached) " >&6 15366else $as_nop 15367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15368/* end confdefs.h. */ 15369int i; 15370_ACEOF 15371if ac_fn_c_try_compile "$LINENO" 15372then : 15373 xorg_cv_cc_flag_unknown_warning_option=yes 15374else $as_nop 15375 xorg_cv_cc_flag_unknown_warning_option=no 15376fi 15377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15378fi 15379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15380printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15382 CFLAGS="$xorg_testset_save_CFLAGS" 15383fi 15384 15385if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15388 fi 15389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15391printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15392if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15393then : 15394 printf %s "(cached) " >&6 15395else $as_nop 15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15397/* end confdefs.h. */ 15398int i; 15399_ACEOF 15400if ac_fn_c_try_compile "$LINENO" 15401then : 15402 xorg_cv_cc_flag_unused_command_line_argument=yes 15403else $as_nop 15404 xorg_cv_cc_flag_unused_command_line_argument=no 15405fi 15406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15407fi 15408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15411 CFLAGS="$xorg_testset_save_CFLAGS" 15412fi 15413 15414found="no" 15415 15416 if test $found = "no" ; then 15417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15419 fi 15420 15421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15423 fi 15424 15425 CFLAGS="$CFLAGS -Wlogical-op" 15426 15427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15428printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15429 cacheid=xorg_cv_cc_flag__Wlogical_op 15430 if eval test \${$cacheid+y} 15431then : 15432 printf %s "(cached) " >&6 15433else $as_nop 15434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15435/* end confdefs.h. */ 15436int i; 15437int 15438main (void) 15439{ 15440 15441 ; 15442 return 0; 15443} 15444_ACEOF 15445if ac_fn_c_try_link "$LINENO" 15446then : 15447 eval $cacheid=yes 15448else $as_nop 15449 eval $cacheid=no 15450fi 15451rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15452 conftest$ac_exeext conftest.$ac_ext 15453fi 15454 15455 15456 CFLAGS="$xorg_testset_save_CFLAGS" 15457 15458 eval supported=\$$cacheid 15459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15460printf "%s\n" "$supported" >&6; } 15461 if test "$supported" = "yes" ; then 15462 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15463 found="yes" 15464 fi 15465 fi 15466 15467 15468 15469# These are currently disabled because they are noisy. They will be enabled 15470# in the future once the codebase is sufficiently modernized to silence 15471# them. For now, I don't want them to drown out the other warnings. 15472# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15473# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15474# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15475 15476# Turn some warnings into errors, so we don't accidently get successful builds 15477# when there are problems that should be fixed. 15478 15479if test "x$SELECTIVE_WERROR" = "xyes" ; then 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493xorg_testset_save_CFLAGS="$CFLAGS" 15494 15495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15499if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15500then : 15501 printf %s "(cached) " >&6 15502else $as_nop 15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15504/* end confdefs.h. */ 15505int i; 15506_ACEOF 15507if ac_fn_c_try_compile "$LINENO" 15508then : 15509 xorg_cv_cc_flag_unknown_warning_option=yes 15510else $as_nop 15511 xorg_cv_cc_flag_unknown_warning_option=no 15512fi 15513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15514fi 15515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15516printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15518 CFLAGS="$xorg_testset_save_CFLAGS" 15519fi 15520 15521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15524 fi 15525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15527printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15528if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15529then : 15530 printf %s "(cached) " >&6 15531else $as_nop 15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15533/* end confdefs.h. */ 15534int i; 15535_ACEOF 15536if ac_fn_c_try_compile "$LINENO" 15537then : 15538 xorg_cv_cc_flag_unused_command_line_argument=yes 15539else $as_nop 15540 xorg_cv_cc_flag_unused_command_line_argument=no 15541fi 15542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15543fi 15544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15545printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15547 CFLAGS="$xorg_testset_save_CFLAGS" 15548fi 15549 15550found="no" 15551 15552 if test $found = "no" ; then 15553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15555 fi 15556 15557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15559 fi 15560 15561 CFLAGS="$CFLAGS -Werror=implicit" 15562 15563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15564printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15565 cacheid=xorg_cv_cc_flag__Werror_implicit 15566 if eval test \${$cacheid+y} 15567then : 15568 printf %s "(cached) " >&6 15569else $as_nop 15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15571/* end confdefs.h. */ 15572int i; 15573int 15574main (void) 15575{ 15576 15577 ; 15578 return 0; 15579} 15580_ACEOF 15581if ac_fn_c_try_link "$LINENO" 15582then : 15583 eval $cacheid=yes 15584else $as_nop 15585 eval $cacheid=no 15586fi 15587rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15588 conftest$ac_exeext conftest.$ac_ext 15589fi 15590 15591 15592 CFLAGS="$xorg_testset_save_CFLAGS" 15593 15594 eval supported=\$$cacheid 15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15596printf "%s\n" "$supported" >&6; } 15597 if test "$supported" = "yes" ; then 15598 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15599 found="yes" 15600 fi 15601 fi 15602 15603 if test $found = "no" ; then 15604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15606 fi 15607 15608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15610 fi 15611 15612 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15613 15614 { 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 15615printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15616 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15617 if eval test \${$cacheid+y} 15618then : 15619 printf %s "(cached) " >&6 15620else $as_nop 15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15622/* end confdefs.h. */ 15623int i; 15624int 15625main (void) 15626{ 15627 15628 ; 15629 return 0; 15630} 15631_ACEOF 15632if ac_fn_c_try_link "$LINENO" 15633then : 15634 eval $cacheid=yes 15635else $as_nop 15636 eval $cacheid=no 15637fi 15638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15639 conftest$ac_exeext conftest.$ac_ext 15640fi 15641 15642 15643 CFLAGS="$xorg_testset_save_CFLAGS" 15644 15645 eval supported=\$$cacheid 15646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15647printf "%s\n" "$supported" >&6; } 15648 if test "$supported" = "yes" ; then 15649 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15650 found="yes" 15651 fi 15652 fi 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668xorg_testset_save_CFLAGS="$CFLAGS" 15669 15670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15674if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15675then : 15676 printf %s "(cached) " >&6 15677else $as_nop 15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15679/* end confdefs.h. */ 15680int i; 15681_ACEOF 15682if ac_fn_c_try_compile "$LINENO" 15683then : 15684 xorg_cv_cc_flag_unknown_warning_option=yes 15685else $as_nop 15686 xorg_cv_cc_flag_unknown_warning_option=no 15687fi 15688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15689fi 15690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15693 CFLAGS="$xorg_testset_save_CFLAGS" 15694fi 15695 15696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15699 fi 15700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15703if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15704then : 15705 printf %s "(cached) " >&6 15706else $as_nop 15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15708/* end confdefs.h. */ 15709int i; 15710_ACEOF 15711if ac_fn_c_try_compile "$LINENO" 15712then : 15713 xorg_cv_cc_flag_unused_command_line_argument=yes 15714else $as_nop 15715 xorg_cv_cc_flag_unused_command_line_argument=no 15716fi 15717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15718fi 15719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15722 CFLAGS="$xorg_testset_save_CFLAGS" 15723fi 15724 15725found="no" 15726 15727 if test $found = "no" ; then 15728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15730 fi 15731 15732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15734 fi 15735 15736 CFLAGS="$CFLAGS -Werror=nonnull" 15737 15738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15739printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15740 cacheid=xorg_cv_cc_flag__Werror_nonnull 15741 if eval test \${$cacheid+y} 15742then : 15743 printf %s "(cached) " >&6 15744else $as_nop 15745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15746/* end confdefs.h. */ 15747int i; 15748int 15749main (void) 15750{ 15751 15752 ; 15753 return 0; 15754} 15755_ACEOF 15756if ac_fn_c_try_link "$LINENO" 15757then : 15758 eval $cacheid=yes 15759else $as_nop 15760 eval $cacheid=no 15761fi 15762rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15763 conftest$ac_exeext conftest.$ac_ext 15764fi 15765 15766 15767 CFLAGS="$xorg_testset_save_CFLAGS" 15768 15769 eval supported=\$$cacheid 15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15771printf "%s\n" "$supported" >&6; } 15772 if test "$supported" = "yes" ; then 15773 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15774 found="yes" 15775 fi 15776 fi 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792xorg_testset_save_CFLAGS="$CFLAGS" 15793 15794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15799then : 15800 printf %s "(cached) " >&6 15801else $as_nop 15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15803/* end confdefs.h. */ 15804int i; 15805_ACEOF 15806if ac_fn_c_try_compile "$LINENO" 15807then : 15808 xorg_cv_cc_flag_unknown_warning_option=yes 15809else $as_nop 15810 xorg_cv_cc_flag_unknown_warning_option=no 15811fi 15812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15813fi 15814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15817 CFLAGS="$xorg_testset_save_CFLAGS" 15818fi 15819 15820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15823 fi 15824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15827if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15828then : 15829 printf %s "(cached) " >&6 15830else $as_nop 15831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15832/* end confdefs.h. */ 15833int i; 15834_ACEOF 15835if ac_fn_c_try_compile "$LINENO" 15836then : 15837 xorg_cv_cc_flag_unused_command_line_argument=yes 15838else $as_nop 15839 xorg_cv_cc_flag_unused_command_line_argument=no 15840fi 15841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15842fi 15843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15846 CFLAGS="$xorg_testset_save_CFLAGS" 15847fi 15848 15849found="no" 15850 15851 if test $found = "no" ; then 15852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15854 fi 15855 15856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15858 fi 15859 15860 CFLAGS="$CFLAGS -Werror=init-self" 15861 15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15863printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15864 cacheid=xorg_cv_cc_flag__Werror_init_self 15865 if eval test \${$cacheid+y} 15866then : 15867 printf %s "(cached) " >&6 15868else $as_nop 15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15870/* end confdefs.h. */ 15871int i; 15872int 15873main (void) 15874{ 15875 15876 ; 15877 return 0; 15878} 15879_ACEOF 15880if ac_fn_c_try_link "$LINENO" 15881then : 15882 eval $cacheid=yes 15883else $as_nop 15884 eval $cacheid=no 15885fi 15886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15887 conftest$ac_exeext conftest.$ac_ext 15888fi 15889 15890 15891 CFLAGS="$xorg_testset_save_CFLAGS" 15892 15893 eval supported=\$$cacheid 15894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15895printf "%s\n" "$supported" >&6; } 15896 if test "$supported" = "yes" ; then 15897 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15898 found="yes" 15899 fi 15900 fi 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916xorg_testset_save_CFLAGS="$CFLAGS" 15917 15918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15923then : 15924 printf %s "(cached) " >&6 15925else $as_nop 15926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15927/* end confdefs.h. */ 15928int i; 15929_ACEOF 15930if ac_fn_c_try_compile "$LINENO" 15931then : 15932 xorg_cv_cc_flag_unknown_warning_option=yes 15933else $as_nop 15934 xorg_cv_cc_flag_unknown_warning_option=no 15935fi 15936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15937fi 15938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15941 CFLAGS="$xorg_testset_save_CFLAGS" 15942fi 15943 15944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15947 fi 15948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15951if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15952then : 15953 printf %s "(cached) " >&6 15954else $as_nop 15955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15956/* end confdefs.h. */ 15957int i; 15958_ACEOF 15959if ac_fn_c_try_compile "$LINENO" 15960then : 15961 xorg_cv_cc_flag_unused_command_line_argument=yes 15962else $as_nop 15963 xorg_cv_cc_flag_unused_command_line_argument=no 15964fi 15965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15966fi 15967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15970 CFLAGS="$xorg_testset_save_CFLAGS" 15971fi 15972 15973found="no" 15974 15975 if test $found = "no" ; then 15976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15978 fi 15979 15980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15982 fi 15983 15984 CFLAGS="$CFLAGS -Werror=main" 15985 15986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15987printf %s "checking if $CC supports -Werror=main... " >&6; } 15988 cacheid=xorg_cv_cc_flag__Werror_main 15989 if eval test \${$cacheid+y} 15990then : 15991 printf %s "(cached) " >&6 15992else $as_nop 15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15994/* end confdefs.h. */ 15995int i; 15996int 15997main (void) 15998{ 15999 16000 ; 16001 return 0; 16002} 16003_ACEOF 16004if ac_fn_c_try_link "$LINENO" 16005then : 16006 eval $cacheid=yes 16007else $as_nop 16008 eval $cacheid=no 16009fi 16010rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16011 conftest$ac_exeext conftest.$ac_ext 16012fi 16013 16014 16015 CFLAGS="$xorg_testset_save_CFLAGS" 16016 16017 eval supported=\$$cacheid 16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16019printf "%s\n" "$supported" >&6; } 16020 if test "$supported" = "yes" ; then 16021 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16022 found="yes" 16023 fi 16024 fi 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040xorg_testset_save_CFLAGS="$CFLAGS" 16041 16042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16045printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16046if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16047then : 16048 printf %s "(cached) " >&6 16049else $as_nop 16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16051/* end confdefs.h. */ 16052int i; 16053_ACEOF 16054if ac_fn_c_try_compile "$LINENO" 16055then : 16056 xorg_cv_cc_flag_unknown_warning_option=yes 16057else $as_nop 16058 xorg_cv_cc_flag_unknown_warning_option=no 16059fi 16060rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16061fi 16062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16063printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16065 CFLAGS="$xorg_testset_save_CFLAGS" 16066fi 16067 16068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16071 fi 16072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16074printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16075if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16076then : 16077 printf %s "(cached) " >&6 16078else $as_nop 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081int i; 16082_ACEOF 16083if ac_fn_c_try_compile "$LINENO" 16084then : 16085 xorg_cv_cc_flag_unused_command_line_argument=yes 16086else $as_nop 16087 xorg_cv_cc_flag_unused_command_line_argument=no 16088fi 16089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16090fi 16091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16094 CFLAGS="$xorg_testset_save_CFLAGS" 16095fi 16096 16097found="no" 16098 16099 if test $found = "no" ; then 16100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16102 fi 16103 16104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16106 fi 16107 16108 CFLAGS="$CFLAGS -Werror=missing-braces" 16109 16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16111printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16112 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16113 if eval test \${$cacheid+y} 16114then : 16115 printf %s "(cached) " >&6 16116else $as_nop 16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16118/* end confdefs.h. */ 16119int i; 16120int 16121main (void) 16122{ 16123 16124 ; 16125 return 0; 16126} 16127_ACEOF 16128if ac_fn_c_try_link "$LINENO" 16129then : 16130 eval $cacheid=yes 16131else $as_nop 16132 eval $cacheid=no 16133fi 16134rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16135 conftest$ac_exeext conftest.$ac_ext 16136fi 16137 16138 16139 CFLAGS="$xorg_testset_save_CFLAGS" 16140 16141 eval supported=\$$cacheid 16142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16143printf "%s\n" "$supported" >&6; } 16144 if test "$supported" = "yes" ; then 16145 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16146 found="yes" 16147 fi 16148 fi 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164xorg_testset_save_CFLAGS="$CFLAGS" 16165 16166if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16169printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16170if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16171then : 16172 printf %s "(cached) " >&6 16173else $as_nop 16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16175/* end confdefs.h. */ 16176int i; 16177_ACEOF 16178if ac_fn_c_try_compile "$LINENO" 16179then : 16180 xorg_cv_cc_flag_unknown_warning_option=yes 16181else $as_nop 16182 xorg_cv_cc_flag_unknown_warning_option=no 16183fi 16184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16185fi 16186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16189 CFLAGS="$xorg_testset_save_CFLAGS" 16190fi 16191 16192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16195 fi 16196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16199if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16200then : 16201 printf %s "(cached) " >&6 16202else $as_nop 16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16204/* end confdefs.h. */ 16205int i; 16206_ACEOF 16207if ac_fn_c_try_compile "$LINENO" 16208then : 16209 xorg_cv_cc_flag_unused_command_line_argument=yes 16210else $as_nop 16211 xorg_cv_cc_flag_unused_command_line_argument=no 16212fi 16213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16214fi 16215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16216printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16217 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16218 CFLAGS="$xorg_testset_save_CFLAGS" 16219fi 16220 16221found="no" 16222 16223 if test $found = "no" ; then 16224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16226 fi 16227 16228 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16230 fi 16231 16232 CFLAGS="$CFLAGS -Werror=sequence-point" 16233 16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16235printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16236 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16237 if eval test \${$cacheid+y} 16238then : 16239 printf %s "(cached) " >&6 16240else $as_nop 16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242/* end confdefs.h. */ 16243int i; 16244int 16245main (void) 16246{ 16247 16248 ; 16249 return 0; 16250} 16251_ACEOF 16252if ac_fn_c_try_link "$LINENO" 16253then : 16254 eval $cacheid=yes 16255else $as_nop 16256 eval $cacheid=no 16257fi 16258rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16259 conftest$ac_exeext conftest.$ac_ext 16260fi 16261 16262 16263 CFLAGS="$xorg_testset_save_CFLAGS" 16264 16265 eval supported=\$$cacheid 16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16267printf "%s\n" "$supported" >&6; } 16268 if test "$supported" = "yes" ; then 16269 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16270 found="yes" 16271 fi 16272 fi 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288xorg_testset_save_CFLAGS="$CFLAGS" 16289 16290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16293printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16294if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16295then : 16296 printf %s "(cached) " >&6 16297else $as_nop 16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16299/* end confdefs.h. */ 16300int i; 16301_ACEOF 16302if ac_fn_c_try_compile "$LINENO" 16303then : 16304 xorg_cv_cc_flag_unknown_warning_option=yes 16305else $as_nop 16306 xorg_cv_cc_flag_unknown_warning_option=no 16307fi 16308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16309fi 16310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16311printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16312 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16313 CFLAGS="$xorg_testset_save_CFLAGS" 16314fi 16315 16316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16319 fi 16320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16322printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16323if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16324then : 16325 printf %s "(cached) " >&6 16326else $as_nop 16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16328/* end confdefs.h. */ 16329int i; 16330_ACEOF 16331if ac_fn_c_try_compile "$LINENO" 16332then : 16333 xorg_cv_cc_flag_unused_command_line_argument=yes 16334else $as_nop 16335 xorg_cv_cc_flag_unused_command_line_argument=no 16336fi 16337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16338fi 16339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16342 CFLAGS="$xorg_testset_save_CFLAGS" 16343fi 16344 16345found="no" 16346 16347 if test $found = "no" ; then 16348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16350 fi 16351 16352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16354 fi 16355 16356 CFLAGS="$CFLAGS -Werror=return-type" 16357 16358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16359printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16360 cacheid=xorg_cv_cc_flag__Werror_return_type 16361 if eval test \${$cacheid+y} 16362then : 16363 printf %s "(cached) " >&6 16364else $as_nop 16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16366/* end confdefs.h. */ 16367int i; 16368int 16369main (void) 16370{ 16371 16372 ; 16373 return 0; 16374} 16375_ACEOF 16376if ac_fn_c_try_link "$LINENO" 16377then : 16378 eval $cacheid=yes 16379else $as_nop 16380 eval $cacheid=no 16381fi 16382rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16383 conftest$ac_exeext conftest.$ac_ext 16384fi 16385 16386 16387 CFLAGS="$xorg_testset_save_CFLAGS" 16388 16389 eval supported=\$$cacheid 16390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16391printf "%s\n" "$supported" >&6; } 16392 if test "$supported" = "yes" ; then 16393 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16394 found="yes" 16395 fi 16396 fi 16397 16398 if test $found = "no" ; then 16399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16401 fi 16402 16403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16405 fi 16406 16407 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16408 16409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16410printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16411 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16412 if eval test \${$cacheid+y} 16413then : 16414 printf %s "(cached) " >&6 16415else $as_nop 16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16417/* end confdefs.h. */ 16418int i; 16419int 16420main (void) 16421{ 16422 16423 ; 16424 return 0; 16425} 16426_ACEOF 16427if ac_fn_c_try_link "$LINENO" 16428then : 16429 eval $cacheid=yes 16430else $as_nop 16431 eval $cacheid=no 16432fi 16433rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16434 conftest$ac_exeext conftest.$ac_ext 16435fi 16436 16437 16438 CFLAGS="$xorg_testset_save_CFLAGS" 16439 16440 eval supported=\$$cacheid 16441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16442printf "%s\n" "$supported" >&6; } 16443 if test "$supported" = "yes" ; then 16444 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16445 found="yes" 16446 fi 16447 fi 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463xorg_testset_save_CFLAGS="$CFLAGS" 16464 16465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16468printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16469if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16470then : 16471 printf %s "(cached) " >&6 16472else $as_nop 16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16474/* end confdefs.h. */ 16475int i; 16476_ACEOF 16477if ac_fn_c_try_compile "$LINENO" 16478then : 16479 xorg_cv_cc_flag_unknown_warning_option=yes 16480else $as_nop 16481 xorg_cv_cc_flag_unknown_warning_option=no 16482fi 16483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16484fi 16485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16486printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16488 CFLAGS="$xorg_testset_save_CFLAGS" 16489fi 16490 16491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16494 fi 16495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16497printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16498if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16499then : 16500 printf %s "(cached) " >&6 16501else $as_nop 16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504int i; 16505_ACEOF 16506if ac_fn_c_try_compile "$LINENO" 16507then : 16508 xorg_cv_cc_flag_unused_command_line_argument=yes 16509else $as_nop 16510 xorg_cv_cc_flag_unused_command_line_argument=no 16511fi 16512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16513fi 16514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16517 CFLAGS="$xorg_testset_save_CFLAGS" 16518fi 16519 16520found="no" 16521 16522 if test $found = "no" ; then 16523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16525 fi 16526 16527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16529 fi 16530 16531 CFLAGS="$CFLAGS -Werror=trigraphs" 16532 16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16534printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16535 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16536 if eval test \${$cacheid+y} 16537then : 16538 printf %s "(cached) " >&6 16539else $as_nop 16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16541/* end confdefs.h. */ 16542int i; 16543int 16544main (void) 16545{ 16546 16547 ; 16548 return 0; 16549} 16550_ACEOF 16551if ac_fn_c_try_link "$LINENO" 16552then : 16553 eval $cacheid=yes 16554else $as_nop 16555 eval $cacheid=no 16556fi 16557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16558 conftest$ac_exeext conftest.$ac_ext 16559fi 16560 16561 16562 CFLAGS="$xorg_testset_save_CFLAGS" 16563 16564 eval supported=\$$cacheid 16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16566printf "%s\n" "$supported" >&6; } 16567 if test "$supported" = "yes" ; then 16568 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16569 found="yes" 16570 fi 16571 fi 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587xorg_testset_save_CFLAGS="$CFLAGS" 16588 16589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16593if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16594then : 16595 printf %s "(cached) " >&6 16596else $as_nop 16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16598/* end confdefs.h. */ 16599int i; 16600_ACEOF 16601if ac_fn_c_try_compile "$LINENO" 16602then : 16603 xorg_cv_cc_flag_unknown_warning_option=yes 16604else $as_nop 16605 xorg_cv_cc_flag_unknown_warning_option=no 16606fi 16607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16608fi 16609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16612 CFLAGS="$xorg_testset_save_CFLAGS" 16613fi 16614 16615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16618 fi 16619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16622if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16623then : 16624 printf %s "(cached) " >&6 16625else $as_nop 16626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16627/* end confdefs.h. */ 16628int i; 16629_ACEOF 16630if ac_fn_c_try_compile "$LINENO" 16631then : 16632 xorg_cv_cc_flag_unused_command_line_argument=yes 16633else $as_nop 16634 xorg_cv_cc_flag_unused_command_line_argument=no 16635fi 16636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16637fi 16638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16641 CFLAGS="$xorg_testset_save_CFLAGS" 16642fi 16643 16644found="no" 16645 16646 if test $found = "no" ; then 16647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16649 fi 16650 16651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16653 fi 16654 16655 CFLAGS="$CFLAGS -Werror=array-bounds" 16656 16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16658printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16659 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16660 if eval test \${$cacheid+y} 16661then : 16662 printf %s "(cached) " >&6 16663else $as_nop 16664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16665/* end confdefs.h. */ 16666int i; 16667int 16668main (void) 16669{ 16670 16671 ; 16672 return 0; 16673} 16674_ACEOF 16675if ac_fn_c_try_link "$LINENO" 16676then : 16677 eval $cacheid=yes 16678else $as_nop 16679 eval $cacheid=no 16680fi 16681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16682 conftest$ac_exeext conftest.$ac_ext 16683fi 16684 16685 16686 CFLAGS="$xorg_testset_save_CFLAGS" 16687 16688 eval supported=\$$cacheid 16689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16690printf "%s\n" "$supported" >&6; } 16691 if test "$supported" = "yes" ; then 16692 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16693 found="yes" 16694 fi 16695 fi 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711xorg_testset_save_CFLAGS="$CFLAGS" 16712 16713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16717if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16718then : 16719 printf %s "(cached) " >&6 16720else $as_nop 16721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16722/* end confdefs.h. */ 16723int i; 16724_ACEOF 16725if ac_fn_c_try_compile "$LINENO" 16726then : 16727 xorg_cv_cc_flag_unknown_warning_option=yes 16728else $as_nop 16729 xorg_cv_cc_flag_unknown_warning_option=no 16730fi 16731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16732fi 16733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16736 CFLAGS="$xorg_testset_save_CFLAGS" 16737fi 16738 16739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16742 fi 16743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16746if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16747then : 16748 printf %s "(cached) " >&6 16749else $as_nop 16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16751/* end confdefs.h. */ 16752int i; 16753_ACEOF 16754if ac_fn_c_try_compile "$LINENO" 16755then : 16756 xorg_cv_cc_flag_unused_command_line_argument=yes 16757else $as_nop 16758 xorg_cv_cc_flag_unused_command_line_argument=no 16759fi 16760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16761fi 16762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16765 CFLAGS="$xorg_testset_save_CFLAGS" 16766fi 16767 16768found="no" 16769 16770 if test $found = "no" ; then 16771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16773 fi 16774 16775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16777 fi 16778 16779 CFLAGS="$CFLAGS -Werror=write-strings" 16780 16781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16782printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16783 cacheid=xorg_cv_cc_flag__Werror_write_strings 16784 if eval test \${$cacheid+y} 16785then : 16786 printf %s "(cached) " >&6 16787else $as_nop 16788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16789/* end confdefs.h. */ 16790int i; 16791int 16792main (void) 16793{ 16794 16795 ; 16796 return 0; 16797} 16798_ACEOF 16799if ac_fn_c_try_link "$LINENO" 16800then : 16801 eval $cacheid=yes 16802else $as_nop 16803 eval $cacheid=no 16804fi 16805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16806 conftest$ac_exeext conftest.$ac_ext 16807fi 16808 16809 16810 CFLAGS="$xorg_testset_save_CFLAGS" 16811 16812 eval supported=\$$cacheid 16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16814printf "%s\n" "$supported" >&6; } 16815 if test "$supported" = "yes" ; then 16816 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16817 found="yes" 16818 fi 16819 fi 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835xorg_testset_save_CFLAGS="$CFLAGS" 16836 16837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16841if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16842then : 16843 printf %s "(cached) " >&6 16844else $as_nop 16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16846/* end confdefs.h. */ 16847int i; 16848_ACEOF 16849if ac_fn_c_try_compile "$LINENO" 16850then : 16851 xorg_cv_cc_flag_unknown_warning_option=yes 16852else $as_nop 16853 xorg_cv_cc_flag_unknown_warning_option=no 16854fi 16855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16856fi 16857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16860 CFLAGS="$xorg_testset_save_CFLAGS" 16861fi 16862 16863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16866 fi 16867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16871then : 16872 printf %s "(cached) " >&6 16873else $as_nop 16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16875/* end confdefs.h. */ 16876int i; 16877_ACEOF 16878if ac_fn_c_try_compile "$LINENO" 16879then : 16880 xorg_cv_cc_flag_unused_command_line_argument=yes 16881else $as_nop 16882 xorg_cv_cc_flag_unused_command_line_argument=no 16883fi 16884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16885fi 16886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16889 CFLAGS="$xorg_testset_save_CFLAGS" 16890fi 16891 16892found="no" 16893 16894 if test $found = "no" ; then 16895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16897 fi 16898 16899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16901 fi 16902 16903 CFLAGS="$CFLAGS -Werror=address" 16904 16905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16906printf %s "checking if $CC supports -Werror=address... " >&6; } 16907 cacheid=xorg_cv_cc_flag__Werror_address 16908 if eval test \${$cacheid+y} 16909then : 16910 printf %s "(cached) " >&6 16911else $as_nop 16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16913/* end confdefs.h. */ 16914int i; 16915int 16916main (void) 16917{ 16918 16919 ; 16920 return 0; 16921} 16922_ACEOF 16923if ac_fn_c_try_link "$LINENO" 16924then : 16925 eval $cacheid=yes 16926else $as_nop 16927 eval $cacheid=no 16928fi 16929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16930 conftest$ac_exeext conftest.$ac_ext 16931fi 16932 16933 16934 CFLAGS="$xorg_testset_save_CFLAGS" 16935 16936 eval supported=\$$cacheid 16937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16938printf "%s\n" "$supported" >&6; } 16939 if test "$supported" = "yes" ; then 16940 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16941 found="yes" 16942 fi 16943 fi 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959xorg_testset_save_CFLAGS="$CFLAGS" 16960 16961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16966then : 16967 printf %s "(cached) " >&6 16968else $as_nop 16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16970/* end confdefs.h. */ 16971int i; 16972_ACEOF 16973if ac_fn_c_try_compile "$LINENO" 16974then : 16975 xorg_cv_cc_flag_unknown_warning_option=yes 16976else $as_nop 16977 xorg_cv_cc_flag_unknown_warning_option=no 16978fi 16979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16980fi 16981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16984 CFLAGS="$xorg_testset_save_CFLAGS" 16985fi 16986 16987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16990 fi 16991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16994if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16995then : 16996 printf %s "(cached) " >&6 16997else $as_nop 16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16999/* end confdefs.h. */ 17000int i; 17001_ACEOF 17002if ac_fn_c_try_compile "$LINENO" 17003then : 17004 xorg_cv_cc_flag_unused_command_line_argument=yes 17005else $as_nop 17006 xorg_cv_cc_flag_unused_command_line_argument=no 17007fi 17008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17009fi 17010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17013 CFLAGS="$xorg_testset_save_CFLAGS" 17014fi 17015 17016found="no" 17017 17018 if test $found = "no" ; then 17019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17021 fi 17022 17023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17025 fi 17026 17027 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17028 17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17030printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17031 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17032 if eval test \${$cacheid+y} 17033then : 17034 printf %s "(cached) " >&6 17035else $as_nop 17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17037/* end confdefs.h. */ 17038int i; 17039int 17040main (void) 17041{ 17042 17043 ; 17044 return 0; 17045} 17046_ACEOF 17047if ac_fn_c_try_link "$LINENO" 17048then : 17049 eval $cacheid=yes 17050else $as_nop 17051 eval $cacheid=no 17052fi 17053rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17054 conftest$ac_exeext conftest.$ac_ext 17055fi 17056 17057 17058 CFLAGS="$xorg_testset_save_CFLAGS" 17059 17060 eval supported=\$$cacheid 17061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17062printf "%s\n" "$supported" >&6; } 17063 if test "$supported" = "yes" ; then 17064 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17065 found="yes" 17066 fi 17067 fi 17068 17069 if test $found = "no" ; then 17070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17072 fi 17073 17074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17076 fi 17077 17078 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17079 17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17081printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17082 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17083 if eval test \${$cacheid+y} 17084then : 17085 printf %s "(cached) " >&6 17086else $as_nop 17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17088/* end confdefs.h. */ 17089int i; 17090int 17091main (void) 17092{ 17093 17094 ; 17095 return 0; 17096} 17097_ACEOF 17098if ac_fn_c_try_link "$LINENO" 17099then : 17100 eval $cacheid=yes 17101else $as_nop 17102 eval $cacheid=no 17103fi 17104rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17105 conftest$ac_exeext conftest.$ac_ext 17106fi 17107 17108 17109 CFLAGS="$xorg_testset_save_CFLAGS" 17110 17111 eval supported=\$$cacheid 17112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17113printf "%s\n" "$supported" >&6; } 17114 if test "$supported" = "yes" ; then 17115 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17116 found="yes" 17117 fi 17118 fi 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134xorg_testset_save_CFLAGS="$CFLAGS" 17135 17136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17140if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17141then : 17142 printf %s "(cached) " >&6 17143else $as_nop 17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17145/* end confdefs.h. */ 17146int i; 17147_ACEOF 17148if ac_fn_c_try_compile "$LINENO" 17149then : 17150 xorg_cv_cc_flag_unknown_warning_option=yes 17151else $as_nop 17152 xorg_cv_cc_flag_unknown_warning_option=no 17153fi 17154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17155fi 17156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17159 CFLAGS="$xorg_testset_save_CFLAGS" 17160fi 17161 17162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17165 fi 17166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17169if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17170then : 17171 printf %s "(cached) " >&6 17172else $as_nop 17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17174/* end confdefs.h. */ 17175int i; 17176_ACEOF 17177if ac_fn_c_try_compile "$LINENO" 17178then : 17179 xorg_cv_cc_flag_unused_command_line_argument=yes 17180else $as_nop 17181 xorg_cv_cc_flag_unused_command_line_argument=no 17182fi 17183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17184fi 17185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17186printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17188 CFLAGS="$xorg_testset_save_CFLAGS" 17189fi 17190 17191found="no" 17192 17193 if test $found = "no" ; then 17194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17196 fi 17197 17198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17200 fi 17201 17202 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17203 17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17205printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17206 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17207 if eval test \${$cacheid+y} 17208then : 17209 printf %s "(cached) " >&6 17210else $as_nop 17211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17212/* end confdefs.h. */ 17213int i; 17214int 17215main (void) 17216{ 17217 17218 ; 17219 return 0; 17220} 17221_ACEOF 17222if ac_fn_c_try_link "$LINENO" 17223then : 17224 eval $cacheid=yes 17225else $as_nop 17226 eval $cacheid=no 17227fi 17228rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17229 conftest$ac_exeext conftest.$ac_ext 17230fi 17231 17232 17233 CFLAGS="$xorg_testset_save_CFLAGS" 17234 17235 eval supported=\$$cacheid 17236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17237printf "%s\n" "$supported" >&6; } 17238 if test "$supported" = "yes" ; then 17239 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17240 found="yes" 17241 fi 17242 fi 17243 17244 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17245else 17246{ 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 17247printf "%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;} 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261xorg_testset_save_CFLAGS="$CFLAGS" 17262 17263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17266printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17267if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17268then : 17269 printf %s "(cached) " >&6 17270else $as_nop 17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17272/* end confdefs.h. */ 17273int i; 17274_ACEOF 17275if ac_fn_c_try_compile "$LINENO" 17276then : 17277 xorg_cv_cc_flag_unknown_warning_option=yes 17278else $as_nop 17279 xorg_cv_cc_flag_unknown_warning_option=no 17280fi 17281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17282fi 17283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17286 CFLAGS="$xorg_testset_save_CFLAGS" 17287fi 17288 17289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17292 fi 17293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17296if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17297then : 17298 printf %s "(cached) " >&6 17299else $as_nop 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302int i; 17303_ACEOF 17304if ac_fn_c_try_compile "$LINENO" 17305then : 17306 xorg_cv_cc_flag_unused_command_line_argument=yes 17307else $as_nop 17308 xorg_cv_cc_flag_unused_command_line_argument=no 17309fi 17310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17311fi 17312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17313printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17315 CFLAGS="$xorg_testset_save_CFLAGS" 17316fi 17317 17318found="no" 17319 17320 if test $found = "no" ; then 17321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17323 fi 17324 17325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17327 fi 17328 17329 CFLAGS="$CFLAGS -Wimplicit" 17330 17331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17332printf %s "checking if $CC supports -Wimplicit... " >&6; } 17333 cacheid=xorg_cv_cc_flag__Wimplicit 17334 if eval test \${$cacheid+y} 17335then : 17336 printf %s "(cached) " >&6 17337else $as_nop 17338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17339/* end confdefs.h. */ 17340int i; 17341int 17342main (void) 17343{ 17344 17345 ; 17346 return 0; 17347} 17348_ACEOF 17349if ac_fn_c_try_link "$LINENO" 17350then : 17351 eval $cacheid=yes 17352else $as_nop 17353 eval $cacheid=no 17354fi 17355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17356 conftest$ac_exeext conftest.$ac_ext 17357fi 17358 17359 17360 CFLAGS="$xorg_testset_save_CFLAGS" 17361 17362 eval supported=\$$cacheid 17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17364printf "%s\n" "$supported" >&6; } 17365 if test "$supported" = "yes" ; then 17366 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17367 found="yes" 17368 fi 17369 fi 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385xorg_testset_save_CFLAGS="$CFLAGS" 17386 17387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17391if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17392then : 17393 printf %s "(cached) " >&6 17394else $as_nop 17395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17396/* end confdefs.h. */ 17397int i; 17398_ACEOF 17399if ac_fn_c_try_compile "$LINENO" 17400then : 17401 xorg_cv_cc_flag_unknown_warning_option=yes 17402else $as_nop 17403 xorg_cv_cc_flag_unknown_warning_option=no 17404fi 17405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17406fi 17407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17410 CFLAGS="$xorg_testset_save_CFLAGS" 17411fi 17412 17413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17416 fi 17417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17421then : 17422 printf %s "(cached) " >&6 17423else $as_nop 17424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17425/* end confdefs.h. */ 17426int i; 17427_ACEOF 17428if ac_fn_c_try_compile "$LINENO" 17429then : 17430 xorg_cv_cc_flag_unused_command_line_argument=yes 17431else $as_nop 17432 xorg_cv_cc_flag_unused_command_line_argument=no 17433fi 17434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17435fi 17436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17439 CFLAGS="$xorg_testset_save_CFLAGS" 17440fi 17441 17442found="no" 17443 17444 if test $found = "no" ; then 17445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17447 fi 17448 17449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17451 fi 17452 17453 CFLAGS="$CFLAGS -Wnonnull" 17454 17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17456printf %s "checking if $CC supports -Wnonnull... " >&6; } 17457 cacheid=xorg_cv_cc_flag__Wnonnull 17458 if eval test \${$cacheid+y} 17459then : 17460 printf %s "(cached) " >&6 17461else $as_nop 17462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17463/* end confdefs.h. */ 17464int i; 17465int 17466main (void) 17467{ 17468 17469 ; 17470 return 0; 17471} 17472_ACEOF 17473if ac_fn_c_try_link "$LINENO" 17474then : 17475 eval $cacheid=yes 17476else $as_nop 17477 eval $cacheid=no 17478fi 17479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17480 conftest$ac_exeext conftest.$ac_ext 17481fi 17482 17483 17484 CFLAGS="$xorg_testset_save_CFLAGS" 17485 17486 eval supported=\$$cacheid 17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17488printf "%s\n" "$supported" >&6; } 17489 if test "$supported" = "yes" ; then 17490 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17491 found="yes" 17492 fi 17493 fi 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509xorg_testset_save_CFLAGS="$CFLAGS" 17510 17511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17515if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17516then : 17517 printf %s "(cached) " >&6 17518else $as_nop 17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17520/* end confdefs.h. */ 17521int i; 17522_ACEOF 17523if ac_fn_c_try_compile "$LINENO" 17524then : 17525 xorg_cv_cc_flag_unknown_warning_option=yes 17526else $as_nop 17527 xorg_cv_cc_flag_unknown_warning_option=no 17528fi 17529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17530fi 17531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17534 CFLAGS="$xorg_testset_save_CFLAGS" 17535fi 17536 17537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17540 fi 17541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17544if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17545then : 17546 printf %s "(cached) " >&6 17547else $as_nop 17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17549/* end confdefs.h. */ 17550int i; 17551_ACEOF 17552if ac_fn_c_try_compile "$LINENO" 17553then : 17554 xorg_cv_cc_flag_unused_command_line_argument=yes 17555else $as_nop 17556 xorg_cv_cc_flag_unused_command_line_argument=no 17557fi 17558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17559fi 17560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17563 CFLAGS="$xorg_testset_save_CFLAGS" 17564fi 17565 17566found="no" 17567 17568 if test $found = "no" ; then 17569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17571 fi 17572 17573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17575 fi 17576 17577 CFLAGS="$CFLAGS -Winit-self" 17578 17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17580printf %s "checking if $CC supports -Winit-self... " >&6; } 17581 cacheid=xorg_cv_cc_flag__Winit_self 17582 if eval test \${$cacheid+y} 17583then : 17584 printf %s "(cached) " >&6 17585else $as_nop 17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17587/* end confdefs.h. */ 17588int i; 17589int 17590main (void) 17591{ 17592 17593 ; 17594 return 0; 17595} 17596_ACEOF 17597if ac_fn_c_try_link "$LINENO" 17598then : 17599 eval $cacheid=yes 17600else $as_nop 17601 eval $cacheid=no 17602fi 17603rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17604 conftest$ac_exeext conftest.$ac_ext 17605fi 17606 17607 17608 CFLAGS="$xorg_testset_save_CFLAGS" 17609 17610 eval supported=\$$cacheid 17611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17612printf "%s\n" "$supported" >&6; } 17613 if test "$supported" = "yes" ; then 17614 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17615 found="yes" 17616 fi 17617 fi 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633xorg_testset_save_CFLAGS="$CFLAGS" 17634 17635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17639if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17640then : 17641 printf %s "(cached) " >&6 17642else $as_nop 17643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17644/* end confdefs.h. */ 17645int i; 17646_ACEOF 17647if ac_fn_c_try_compile "$LINENO" 17648then : 17649 xorg_cv_cc_flag_unknown_warning_option=yes 17650else $as_nop 17651 xorg_cv_cc_flag_unknown_warning_option=no 17652fi 17653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17654fi 17655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17658 CFLAGS="$xorg_testset_save_CFLAGS" 17659fi 17660 17661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17664 fi 17665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17668if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17669then : 17670 printf %s "(cached) " >&6 17671else $as_nop 17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17673/* end confdefs.h. */ 17674int i; 17675_ACEOF 17676if ac_fn_c_try_compile "$LINENO" 17677then : 17678 xorg_cv_cc_flag_unused_command_line_argument=yes 17679else $as_nop 17680 xorg_cv_cc_flag_unused_command_line_argument=no 17681fi 17682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17683fi 17684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17687 CFLAGS="$xorg_testset_save_CFLAGS" 17688fi 17689 17690found="no" 17691 17692 if test $found = "no" ; then 17693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17695 fi 17696 17697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17699 fi 17700 17701 CFLAGS="$CFLAGS -Wmain" 17702 17703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17704printf %s "checking if $CC supports -Wmain... " >&6; } 17705 cacheid=xorg_cv_cc_flag__Wmain 17706 if eval test \${$cacheid+y} 17707then : 17708 printf %s "(cached) " >&6 17709else $as_nop 17710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17711/* end confdefs.h. */ 17712int i; 17713int 17714main (void) 17715{ 17716 17717 ; 17718 return 0; 17719} 17720_ACEOF 17721if ac_fn_c_try_link "$LINENO" 17722then : 17723 eval $cacheid=yes 17724else $as_nop 17725 eval $cacheid=no 17726fi 17727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17728 conftest$ac_exeext conftest.$ac_ext 17729fi 17730 17731 17732 CFLAGS="$xorg_testset_save_CFLAGS" 17733 17734 eval supported=\$$cacheid 17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17736printf "%s\n" "$supported" >&6; } 17737 if test "$supported" = "yes" ; then 17738 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17739 found="yes" 17740 fi 17741 fi 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757xorg_testset_save_CFLAGS="$CFLAGS" 17758 17759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17763if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17764then : 17765 printf %s "(cached) " >&6 17766else $as_nop 17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17768/* end confdefs.h. */ 17769int i; 17770_ACEOF 17771if ac_fn_c_try_compile "$LINENO" 17772then : 17773 xorg_cv_cc_flag_unknown_warning_option=yes 17774else $as_nop 17775 xorg_cv_cc_flag_unknown_warning_option=no 17776fi 17777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17778fi 17779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17782 CFLAGS="$xorg_testset_save_CFLAGS" 17783fi 17784 17785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17788 fi 17789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17793then : 17794 printf %s "(cached) " >&6 17795else $as_nop 17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17797/* end confdefs.h. */ 17798int i; 17799_ACEOF 17800if ac_fn_c_try_compile "$LINENO" 17801then : 17802 xorg_cv_cc_flag_unused_command_line_argument=yes 17803else $as_nop 17804 xorg_cv_cc_flag_unused_command_line_argument=no 17805fi 17806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17807fi 17808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17811 CFLAGS="$xorg_testset_save_CFLAGS" 17812fi 17813 17814found="no" 17815 17816 if test $found = "no" ; then 17817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17819 fi 17820 17821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17823 fi 17824 17825 CFLAGS="$CFLAGS -Wmissing-braces" 17826 17827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17828printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17829 cacheid=xorg_cv_cc_flag__Wmissing_braces 17830 if eval test \${$cacheid+y} 17831then : 17832 printf %s "(cached) " >&6 17833else $as_nop 17834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17835/* end confdefs.h. */ 17836int i; 17837int 17838main (void) 17839{ 17840 17841 ; 17842 return 0; 17843} 17844_ACEOF 17845if ac_fn_c_try_link "$LINENO" 17846then : 17847 eval $cacheid=yes 17848else $as_nop 17849 eval $cacheid=no 17850fi 17851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17852 conftest$ac_exeext conftest.$ac_ext 17853fi 17854 17855 17856 CFLAGS="$xorg_testset_save_CFLAGS" 17857 17858 eval supported=\$$cacheid 17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17860printf "%s\n" "$supported" >&6; } 17861 if test "$supported" = "yes" ; then 17862 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17863 found="yes" 17864 fi 17865 fi 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881xorg_testset_save_CFLAGS="$CFLAGS" 17882 17883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17887if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17888then : 17889 printf %s "(cached) " >&6 17890else $as_nop 17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17892/* end confdefs.h. */ 17893int i; 17894_ACEOF 17895if ac_fn_c_try_compile "$LINENO" 17896then : 17897 xorg_cv_cc_flag_unknown_warning_option=yes 17898else $as_nop 17899 xorg_cv_cc_flag_unknown_warning_option=no 17900fi 17901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17902fi 17903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17906 CFLAGS="$xorg_testset_save_CFLAGS" 17907fi 17908 17909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17912 fi 17913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17916if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17917then : 17918 printf %s "(cached) " >&6 17919else $as_nop 17920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17921/* end confdefs.h. */ 17922int i; 17923_ACEOF 17924if ac_fn_c_try_compile "$LINENO" 17925then : 17926 xorg_cv_cc_flag_unused_command_line_argument=yes 17927else $as_nop 17928 xorg_cv_cc_flag_unused_command_line_argument=no 17929fi 17930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17931fi 17932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17935 CFLAGS="$xorg_testset_save_CFLAGS" 17936fi 17937 17938found="no" 17939 17940 if test $found = "no" ; then 17941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17943 fi 17944 17945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17947 fi 17948 17949 CFLAGS="$CFLAGS -Wsequence-point" 17950 17951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17952printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17953 cacheid=xorg_cv_cc_flag__Wsequence_point 17954 if eval test \${$cacheid+y} 17955then : 17956 printf %s "(cached) " >&6 17957else $as_nop 17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17959/* end confdefs.h. */ 17960int i; 17961int 17962main (void) 17963{ 17964 17965 ; 17966 return 0; 17967} 17968_ACEOF 17969if ac_fn_c_try_link "$LINENO" 17970then : 17971 eval $cacheid=yes 17972else $as_nop 17973 eval $cacheid=no 17974fi 17975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17976 conftest$ac_exeext conftest.$ac_ext 17977fi 17978 17979 17980 CFLAGS="$xorg_testset_save_CFLAGS" 17981 17982 eval supported=\$$cacheid 17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17984printf "%s\n" "$supported" >&6; } 17985 if test "$supported" = "yes" ; then 17986 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17987 found="yes" 17988 fi 17989 fi 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005xorg_testset_save_CFLAGS="$CFLAGS" 18006 18007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18011if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18012then : 18013 printf %s "(cached) " >&6 18014else $as_nop 18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18016/* end confdefs.h. */ 18017int i; 18018_ACEOF 18019if ac_fn_c_try_compile "$LINENO" 18020then : 18021 xorg_cv_cc_flag_unknown_warning_option=yes 18022else $as_nop 18023 xorg_cv_cc_flag_unknown_warning_option=no 18024fi 18025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18026fi 18027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18030 CFLAGS="$xorg_testset_save_CFLAGS" 18031fi 18032 18033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18036 fi 18037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18041then : 18042 printf %s "(cached) " >&6 18043else $as_nop 18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18045/* end confdefs.h. */ 18046int i; 18047_ACEOF 18048if ac_fn_c_try_compile "$LINENO" 18049then : 18050 xorg_cv_cc_flag_unused_command_line_argument=yes 18051else $as_nop 18052 xorg_cv_cc_flag_unused_command_line_argument=no 18053fi 18054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18055fi 18056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18059 CFLAGS="$xorg_testset_save_CFLAGS" 18060fi 18061 18062found="no" 18063 18064 if test $found = "no" ; then 18065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18067 fi 18068 18069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18071 fi 18072 18073 CFLAGS="$CFLAGS -Wreturn-type" 18074 18075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18076printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18077 cacheid=xorg_cv_cc_flag__Wreturn_type 18078 if eval test \${$cacheid+y} 18079then : 18080 printf %s "(cached) " >&6 18081else $as_nop 18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18083/* end confdefs.h. */ 18084int i; 18085int 18086main (void) 18087{ 18088 18089 ; 18090 return 0; 18091} 18092_ACEOF 18093if ac_fn_c_try_link "$LINENO" 18094then : 18095 eval $cacheid=yes 18096else $as_nop 18097 eval $cacheid=no 18098fi 18099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18100 conftest$ac_exeext conftest.$ac_ext 18101fi 18102 18103 18104 CFLAGS="$xorg_testset_save_CFLAGS" 18105 18106 eval supported=\$$cacheid 18107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18108printf "%s\n" "$supported" >&6; } 18109 if test "$supported" = "yes" ; then 18110 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18111 found="yes" 18112 fi 18113 fi 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129xorg_testset_save_CFLAGS="$CFLAGS" 18130 18131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18135if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18136then : 18137 printf %s "(cached) " >&6 18138else $as_nop 18139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18140/* end confdefs.h. */ 18141int i; 18142_ACEOF 18143if ac_fn_c_try_compile "$LINENO" 18144then : 18145 xorg_cv_cc_flag_unknown_warning_option=yes 18146else $as_nop 18147 xorg_cv_cc_flag_unknown_warning_option=no 18148fi 18149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18150fi 18151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18154 CFLAGS="$xorg_testset_save_CFLAGS" 18155fi 18156 18157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18160 fi 18161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18165then : 18166 printf %s "(cached) " >&6 18167else $as_nop 18168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18169/* end confdefs.h. */ 18170int i; 18171_ACEOF 18172if ac_fn_c_try_compile "$LINENO" 18173then : 18174 xorg_cv_cc_flag_unused_command_line_argument=yes 18175else $as_nop 18176 xorg_cv_cc_flag_unused_command_line_argument=no 18177fi 18178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18179fi 18180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18183 CFLAGS="$xorg_testset_save_CFLAGS" 18184fi 18185 18186found="no" 18187 18188 if test $found = "no" ; then 18189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18191 fi 18192 18193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18195 fi 18196 18197 CFLAGS="$CFLAGS -Wtrigraphs" 18198 18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18200printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18201 cacheid=xorg_cv_cc_flag__Wtrigraphs 18202 if eval test \${$cacheid+y} 18203then : 18204 printf %s "(cached) " >&6 18205else $as_nop 18206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18207/* end confdefs.h. */ 18208int i; 18209int 18210main (void) 18211{ 18212 18213 ; 18214 return 0; 18215} 18216_ACEOF 18217if ac_fn_c_try_link "$LINENO" 18218then : 18219 eval $cacheid=yes 18220else $as_nop 18221 eval $cacheid=no 18222fi 18223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18224 conftest$ac_exeext conftest.$ac_ext 18225fi 18226 18227 18228 CFLAGS="$xorg_testset_save_CFLAGS" 18229 18230 eval supported=\$$cacheid 18231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18232printf "%s\n" "$supported" >&6; } 18233 if test "$supported" = "yes" ; then 18234 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18235 found="yes" 18236 fi 18237 fi 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253xorg_testset_save_CFLAGS="$CFLAGS" 18254 18255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18260then : 18261 printf %s "(cached) " >&6 18262else $as_nop 18263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18264/* end confdefs.h. */ 18265int i; 18266_ACEOF 18267if ac_fn_c_try_compile "$LINENO" 18268then : 18269 xorg_cv_cc_flag_unknown_warning_option=yes 18270else $as_nop 18271 xorg_cv_cc_flag_unknown_warning_option=no 18272fi 18273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18274fi 18275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18278 CFLAGS="$xorg_testset_save_CFLAGS" 18279fi 18280 18281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18284 fi 18285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18288if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18289then : 18290 printf %s "(cached) " >&6 18291else $as_nop 18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18293/* end confdefs.h. */ 18294int i; 18295_ACEOF 18296if ac_fn_c_try_compile "$LINENO" 18297then : 18298 xorg_cv_cc_flag_unused_command_line_argument=yes 18299else $as_nop 18300 xorg_cv_cc_flag_unused_command_line_argument=no 18301fi 18302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18303fi 18304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18307 CFLAGS="$xorg_testset_save_CFLAGS" 18308fi 18309 18310found="no" 18311 18312 if test $found = "no" ; then 18313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18315 fi 18316 18317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18319 fi 18320 18321 CFLAGS="$CFLAGS -Warray-bounds" 18322 18323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18324printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18325 cacheid=xorg_cv_cc_flag__Warray_bounds 18326 if eval test \${$cacheid+y} 18327then : 18328 printf %s "(cached) " >&6 18329else $as_nop 18330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18331/* end confdefs.h. */ 18332int i; 18333int 18334main (void) 18335{ 18336 18337 ; 18338 return 0; 18339} 18340_ACEOF 18341if ac_fn_c_try_link "$LINENO" 18342then : 18343 eval $cacheid=yes 18344else $as_nop 18345 eval $cacheid=no 18346fi 18347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18348 conftest$ac_exeext conftest.$ac_ext 18349fi 18350 18351 18352 CFLAGS="$xorg_testset_save_CFLAGS" 18353 18354 eval supported=\$$cacheid 18355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18356printf "%s\n" "$supported" >&6; } 18357 if test "$supported" = "yes" ; then 18358 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18359 found="yes" 18360 fi 18361 fi 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377xorg_testset_save_CFLAGS="$CFLAGS" 18378 18379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18384then : 18385 printf %s "(cached) " >&6 18386else $as_nop 18387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18388/* end confdefs.h. */ 18389int i; 18390_ACEOF 18391if ac_fn_c_try_compile "$LINENO" 18392then : 18393 xorg_cv_cc_flag_unknown_warning_option=yes 18394else $as_nop 18395 xorg_cv_cc_flag_unknown_warning_option=no 18396fi 18397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18398fi 18399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18402 CFLAGS="$xorg_testset_save_CFLAGS" 18403fi 18404 18405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18408 fi 18409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18413then : 18414 printf %s "(cached) " >&6 18415else $as_nop 18416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18417/* end confdefs.h. */ 18418int i; 18419_ACEOF 18420if ac_fn_c_try_compile "$LINENO" 18421then : 18422 xorg_cv_cc_flag_unused_command_line_argument=yes 18423else $as_nop 18424 xorg_cv_cc_flag_unused_command_line_argument=no 18425fi 18426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18427fi 18428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18431 CFLAGS="$xorg_testset_save_CFLAGS" 18432fi 18433 18434found="no" 18435 18436 if test $found = "no" ; then 18437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18439 fi 18440 18441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18443 fi 18444 18445 CFLAGS="$CFLAGS -Wwrite-strings" 18446 18447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18448printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18449 cacheid=xorg_cv_cc_flag__Wwrite_strings 18450 if eval test \${$cacheid+y} 18451then : 18452 printf %s "(cached) " >&6 18453else $as_nop 18454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18455/* end confdefs.h. */ 18456int i; 18457int 18458main (void) 18459{ 18460 18461 ; 18462 return 0; 18463} 18464_ACEOF 18465if ac_fn_c_try_link "$LINENO" 18466then : 18467 eval $cacheid=yes 18468else $as_nop 18469 eval $cacheid=no 18470fi 18471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18472 conftest$ac_exeext conftest.$ac_ext 18473fi 18474 18475 18476 CFLAGS="$xorg_testset_save_CFLAGS" 18477 18478 eval supported=\$$cacheid 18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18480printf "%s\n" "$supported" >&6; } 18481 if test "$supported" = "yes" ; then 18482 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18483 found="yes" 18484 fi 18485 fi 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501xorg_testset_save_CFLAGS="$CFLAGS" 18502 18503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18507if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18508then : 18509 printf %s "(cached) " >&6 18510else $as_nop 18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18512/* end confdefs.h. */ 18513int i; 18514_ACEOF 18515if ac_fn_c_try_compile "$LINENO" 18516then : 18517 xorg_cv_cc_flag_unknown_warning_option=yes 18518else $as_nop 18519 xorg_cv_cc_flag_unknown_warning_option=no 18520fi 18521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18522fi 18523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18526 CFLAGS="$xorg_testset_save_CFLAGS" 18527fi 18528 18529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18532 fi 18533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18537then : 18538 printf %s "(cached) " >&6 18539else $as_nop 18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18541/* end confdefs.h. */ 18542int i; 18543_ACEOF 18544if ac_fn_c_try_compile "$LINENO" 18545then : 18546 xorg_cv_cc_flag_unused_command_line_argument=yes 18547else $as_nop 18548 xorg_cv_cc_flag_unused_command_line_argument=no 18549fi 18550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18551fi 18552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18555 CFLAGS="$xorg_testset_save_CFLAGS" 18556fi 18557 18558found="no" 18559 18560 if test $found = "no" ; then 18561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18563 fi 18564 18565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18567 fi 18568 18569 CFLAGS="$CFLAGS -Waddress" 18570 18571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18572printf %s "checking if $CC supports -Waddress... " >&6; } 18573 cacheid=xorg_cv_cc_flag__Waddress 18574 if eval test \${$cacheid+y} 18575then : 18576 printf %s "(cached) " >&6 18577else $as_nop 18578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18579/* end confdefs.h. */ 18580int i; 18581int 18582main (void) 18583{ 18584 18585 ; 18586 return 0; 18587} 18588_ACEOF 18589if ac_fn_c_try_link "$LINENO" 18590then : 18591 eval $cacheid=yes 18592else $as_nop 18593 eval $cacheid=no 18594fi 18595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18596 conftest$ac_exeext conftest.$ac_ext 18597fi 18598 18599 18600 CFLAGS="$xorg_testset_save_CFLAGS" 18601 18602 eval supported=\$$cacheid 18603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18604printf "%s\n" "$supported" >&6; } 18605 if test "$supported" = "yes" ; then 18606 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18607 found="yes" 18608 fi 18609 fi 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625xorg_testset_save_CFLAGS="$CFLAGS" 18626 18627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18632then : 18633 printf %s "(cached) " >&6 18634else $as_nop 18635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636/* end confdefs.h. */ 18637int i; 18638_ACEOF 18639if ac_fn_c_try_compile "$LINENO" 18640then : 18641 xorg_cv_cc_flag_unknown_warning_option=yes 18642else $as_nop 18643 xorg_cv_cc_flag_unknown_warning_option=no 18644fi 18645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18646fi 18647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18650 CFLAGS="$xorg_testset_save_CFLAGS" 18651fi 18652 18653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18656 fi 18657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18661then : 18662 printf %s "(cached) " >&6 18663else $as_nop 18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18665/* end confdefs.h. */ 18666int i; 18667_ACEOF 18668if ac_fn_c_try_compile "$LINENO" 18669then : 18670 xorg_cv_cc_flag_unused_command_line_argument=yes 18671else $as_nop 18672 xorg_cv_cc_flag_unused_command_line_argument=no 18673fi 18674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18675fi 18676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18679 CFLAGS="$xorg_testset_save_CFLAGS" 18680fi 18681 18682found="no" 18683 18684 if test $found = "no" ; then 18685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18687 fi 18688 18689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18691 fi 18692 18693 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18694 18695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18696printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18697 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18698 if eval test \${$cacheid+y} 18699then : 18700 printf %s "(cached) " >&6 18701else $as_nop 18702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18703/* end confdefs.h. */ 18704int i; 18705int 18706main (void) 18707{ 18708 18709 ; 18710 return 0; 18711} 18712_ACEOF 18713if ac_fn_c_try_link "$LINENO" 18714then : 18715 eval $cacheid=yes 18716else $as_nop 18717 eval $cacheid=no 18718fi 18719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18720 conftest$ac_exeext conftest.$ac_ext 18721fi 18722 18723 18724 CFLAGS="$xorg_testset_save_CFLAGS" 18725 18726 eval supported=\$$cacheid 18727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18728printf "%s\n" "$supported" >&6; } 18729 if test "$supported" = "yes" ; then 18730 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18731 found="yes" 18732 fi 18733 fi 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749xorg_testset_save_CFLAGS="$CFLAGS" 18750 18751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18756then : 18757 printf %s "(cached) " >&6 18758else $as_nop 18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18760/* end confdefs.h. */ 18761int i; 18762_ACEOF 18763if ac_fn_c_try_compile "$LINENO" 18764then : 18765 xorg_cv_cc_flag_unknown_warning_option=yes 18766else $as_nop 18767 xorg_cv_cc_flag_unknown_warning_option=no 18768fi 18769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18770fi 18771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18774 CFLAGS="$xorg_testset_save_CFLAGS" 18775fi 18776 18777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18780 fi 18781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18784if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18785then : 18786 printf %s "(cached) " >&6 18787else $as_nop 18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18789/* end confdefs.h. */ 18790int i; 18791_ACEOF 18792if ac_fn_c_try_compile "$LINENO" 18793then : 18794 xorg_cv_cc_flag_unused_command_line_argument=yes 18795else $as_nop 18796 xorg_cv_cc_flag_unused_command_line_argument=no 18797fi 18798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18799fi 18800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18803 CFLAGS="$xorg_testset_save_CFLAGS" 18804fi 18805 18806found="no" 18807 18808 if test $found = "no" ; then 18809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18811 fi 18812 18813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18815 fi 18816 18817 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18818 18819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18820printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18821 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18822 if eval test \${$cacheid+y} 18823then : 18824 printf %s "(cached) " >&6 18825else $as_nop 18826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18827/* end confdefs.h. */ 18828int i; 18829int 18830main (void) 18831{ 18832 18833 ; 18834 return 0; 18835} 18836_ACEOF 18837if ac_fn_c_try_link "$LINENO" 18838then : 18839 eval $cacheid=yes 18840else $as_nop 18841 eval $cacheid=no 18842fi 18843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18844 conftest$ac_exeext conftest.$ac_ext 18845fi 18846 18847 18848 CFLAGS="$xorg_testset_save_CFLAGS" 18849 18850 eval supported=\$$cacheid 18851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18852printf "%s\n" "$supported" >&6; } 18853 if test "$supported" = "yes" ; then 18854 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18855 found="yes" 18856 fi 18857 fi 18858 18859 18860fi 18861 18862 18863 18864 18865 18866 18867 18868 CWARNFLAGS="$BASE_CFLAGS" 18869 if test "x$GCC" = xyes ; then 18870 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18871 fi 18872 18873 18874 18875 18876 18877 18878 18879 18880# Check whether --enable-strict-compilation was given. 18881if test ${enable_strict_compilation+y} 18882then : 18883 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18884else $as_nop 18885 STRICT_COMPILE=no 18886fi 18887 18888 18889 18890 18891 18892 18893STRICT_CFLAGS="" 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907xorg_testset_save_CFLAGS="$CFLAGS" 18908 18909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18912printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18913if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18914then : 18915 printf %s "(cached) " >&6 18916else $as_nop 18917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18918/* end confdefs.h. */ 18919int i; 18920_ACEOF 18921if ac_fn_c_try_compile "$LINENO" 18922then : 18923 xorg_cv_cc_flag_unknown_warning_option=yes 18924else $as_nop 18925 xorg_cv_cc_flag_unknown_warning_option=no 18926fi 18927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18928fi 18929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18930printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18932 CFLAGS="$xorg_testset_save_CFLAGS" 18933fi 18934 18935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18938 fi 18939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18941printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18942if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18943then : 18944 printf %s "(cached) " >&6 18945else $as_nop 18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18947/* end confdefs.h. */ 18948int i; 18949_ACEOF 18950if ac_fn_c_try_compile "$LINENO" 18951then : 18952 xorg_cv_cc_flag_unused_command_line_argument=yes 18953else $as_nop 18954 xorg_cv_cc_flag_unused_command_line_argument=no 18955fi 18956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18957fi 18958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18961 CFLAGS="$xorg_testset_save_CFLAGS" 18962fi 18963 18964found="no" 18965 18966 if test $found = "no" ; then 18967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18969 fi 18970 18971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18973 fi 18974 18975 CFLAGS="$CFLAGS -pedantic" 18976 18977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18978printf %s "checking if $CC supports -pedantic... " >&6; } 18979 cacheid=xorg_cv_cc_flag__pedantic 18980 if eval test \${$cacheid+y} 18981then : 18982 printf %s "(cached) " >&6 18983else $as_nop 18984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18985/* end confdefs.h. */ 18986int i; 18987int 18988main (void) 18989{ 18990 18991 ; 18992 return 0; 18993} 18994_ACEOF 18995if ac_fn_c_try_link "$LINENO" 18996then : 18997 eval $cacheid=yes 18998else $as_nop 18999 eval $cacheid=no 19000fi 19001rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19002 conftest$ac_exeext conftest.$ac_ext 19003fi 19004 19005 19006 CFLAGS="$xorg_testset_save_CFLAGS" 19007 19008 eval supported=\$$cacheid 19009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19010printf "%s\n" "$supported" >&6; } 19011 if test "$supported" = "yes" ; then 19012 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19013 found="yes" 19014 fi 19015 fi 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031xorg_testset_save_CFLAGS="$CFLAGS" 19032 19033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19037if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19038then : 19039 printf %s "(cached) " >&6 19040else $as_nop 19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19042/* end confdefs.h. */ 19043int i; 19044_ACEOF 19045if ac_fn_c_try_compile "$LINENO" 19046then : 19047 xorg_cv_cc_flag_unknown_warning_option=yes 19048else $as_nop 19049 xorg_cv_cc_flag_unknown_warning_option=no 19050fi 19051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19052fi 19053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19054printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19056 CFLAGS="$xorg_testset_save_CFLAGS" 19057fi 19058 19059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19062 fi 19063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19065printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19066if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19067then : 19068 printf %s "(cached) " >&6 19069else $as_nop 19070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19071/* end confdefs.h. */ 19072int i; 19073_ACEOF 19074if ac_fn_c_try_compile "$LINENO" 19075then : 19076 xorg_cv_cc_flag_unused_command_line_argument=yes 19077else $as_nop 19078 xorg_cv_cc_flag_unused_command_line_argument=no 19079fi 19080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19081fi 19082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19083printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19085 CFLAGS="$xorg_testset_save_CFLAGS" 19086fi 19087 19088found="no" 19089 19090 if test $found = "no" ; then 19091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19093 fi 19094 19095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19097 fi 19098 19099 CFLAGS="$CFLAGS -Werror" 19100 19101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19102printf %s "checking if $CC supports -Werror... " >&6; } 19103 cacheid=xorg_cv_cc_flag__Werror 19104 if eval test \${$cacheid+y} 19105then : 19106 printf %s "(cached) " >&6 19107else $as_nop 19108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19109/* end confdefs.h. */ 19110int i; 19111int 19112main (void) 19113{ 19114 19115 ; 19116 return 0; 19117} 19118_ACEOF 19119if ac_fn_c_try_link "$LINENO" 19120then : 19121 eval $cacheid=yes 19122else $as_nop 19123 eval $cacheid=no 19124fi 19125rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19126 conftest$ac_exeext conftest.$ac_ext 19127fi 19128 19129 19130 CFLAGS="$xorg_testset_save_CFLAGS" 19131 19132 eval supported=\$$cacheid 19133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19134printf "%s\n" "$supported" >&6; } 19135 if test "$supported" = "yes" ; then 19136 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19137 found="yes" 19138 fi 19139 fi 19140 19141 if test $found = "no" ; then 19142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19144 fi 19145 19146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19148 fi 19149 19150 CFLAGS="$CFLAGS -errwarn" 19151 19152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19153printf %s "checking if $CC supports -errwarn... " >&6; } 19154 cacheid=xorg_cv_cc_flag__errwarn 19155 if eval test \${$cacheid+y} 19156then : 19157 printf %s "(cached) " >&6 19158else $as_nop 19159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19160/* end confdefs.h. */ 19161int i; 19162int 19163main (void) 19164{ 19165 19166 ; 19167 return 0; 19168} 19169_ACEOF 19170if ac_fn_c_try_link "$LINENO" 19171then : 19172 eval $cacheid=yes 19173else $as_nop 19174 eval $cacheid=no 19175fi 19176rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19177 conftest$ac_exeext conftest.$ac_ext 19178fi 19179 19180 19181 CFLAGS="$xorg_testset_save_CFLAGS" 19182 19183 eval supported=\$$cacheid 19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19185printf "%s\n" "$supported" >&6; } 19186 if test "$supported" = "yes" ; then 19187 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19188 found="yes" 19189 fi 19190 fi 19191 19192 19193 19194# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19195# activate it with -Werror, so we add it here explicitly. 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209xorg_testset_save_CFLAGS="$CFLAGS" 19210 19211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19212 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19214printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19215if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19216then : 19217 printf %s "(cached) " >&6 19218else $as_nop 19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19220/* end confdefs.h. */ 19221int i; 19222_ACEOF 19223if ac_fn_c_try_compile "$LINENO" 19224then : 19225 xorg_cv_cc_flag_unknown_warning_option=yes 19226else $as_nop 19227 xorg_cv_cc_flag_unknown_warning_option=no 19228fi 19229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19230fi 19231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19232printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19234 CFLAGS="$xorg_testset_save_CFLAGS" 19235fi 19236 19237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19240 fi 19241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19243printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19244if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19245then : 19246 printf %s "(cached) " >&6 19247else $as_nop 19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19249/* end confdefs.h. */ 19250int i; 19251_ACEOF 19252if ac_fn_c_try_compile "$LINENO" 19253then : 19254 xorg_cv_cc_flag_unused_command_line_argument=yes 19255else $as_nop 19256 xorg_cv_cc_flag_unused_command_line_argument=no 19257fi 19258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19259fi 19260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19261printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19263 CFLAGS="$xorg_testset_save_CFLAGS" 19264fi 19265 19266found="no" 19267 19268 if test $found = "no" ; then 19269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19271 fi 19272 19273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19275 fi 19276 19277 CFLAGS="$CFLAGS -Werror=attributes" 19278 19279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19280printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19281 cacheid=xorg_cv_cc_flag__Werror_attributes 19282 if eval test \${$cacheid+y} 19283then : 19284 printf %s "(cached) " >&6 19285else $as_nop 19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19287/* end confdefs.h. */ 19288int i; 19289int 19290main (void) 19291{ 19292 19293 ; 19294 return 0; 19295} 19296_ACEOF 19297if ac_fn_c_try_link "$LINENO" 19298then : 19299 eval $cacheid=yes 19300else $as_nop 19301 eval $cacheid=no 19302fi 19303rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19304 conftest$ac_exeext conftest.$ac_ext 19305fi 19306 19307 19308 CFLAGS="$xorg_testset_save_CFLAGS" 19309 19310 eval supported=\$$cacheid 19311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19312printf "%s\n" "$supported" >&6; } 19313 if test "$supported" = "yes" ; then 19314 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19315 found="yes" 19316 fi 19317 fi 19318 19319 19320 19321if test "x$STRICT_COMPILE" = "xyes"; then 19322 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19323 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19324fi 19325 19326 19327 19328 19329 19330 19331cat >>confdefs.h <<_ACEOF 19332#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19333_ACEOF 19334 19335 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19336 if test "x$PVM" = "x"; then 19337 PVM="0" 19338 fi 19339 19340printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19341 19342 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19343 if test "x$PVP" = "x"; then 19344 PVP="0" 19345 fi 19346 19347printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19348 19349 19350 19351CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19352mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19353|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19354touch \$(top_srcdir)/ChangeLog; \ 19355echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19356 19357 19358 19359 19360macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19361INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19362mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19363|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19364touch \$(top_srcdir)/INSTALL; \ 19365echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19366 19367 19368 19369 19370 19371 19372case $host_os in 19373 solaris*) 19374 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19375 # check for a man page file found in later versions that use 19376 # traditional section numbers instead 19377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19378printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19379if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19380then : 19381 printf %s "(cached) " >&6 19382else $as_nop 19383 test "$cross_compiling" = yes && 19384 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19385if test -r "/usr/share/man/man7/attributes.7"; then 19386 ac_cv_file__usr_share_man_man7_attributes_7=yes 19387else 19388 ac_cv_file__usr_share_man_man7_attributes_7=no 19389fi 19390fi 19391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19392printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19393if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19394then : 19395 SYSV_MAN_SECTIONS=false 19396else $as_nop 19397 SYSV_MAN_SECTIONS=true 19398fi 19399 19400 ;; 19401 *) SYSV_MAN_SECTIONS=false ;; 19402esac 19403 19404if test x$APP_MAN_SUFFIX = x ; then 19405 APP_MAN_SUFFIX=1 19406fi 19407if test x$APP_MAN_DIR = x ; then 19408 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19409fi 19410 19411if test x$LIB_MAN_SUFFIX = x ; then 19412 LIB_MAN_SUFFIX=3 19413fi 19414if test x$LIB_MAN_DIR = x ; then 19415 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19416fi 19417 19418if test x$FILE_MAN_SUFFIX = x ; then 19419 case $SYSV_MAN_SECTIONS in 19420 true) FILE_MAN_SUFFIX=4 ;; 19421 *) FILE_MAN_SUFFIX=5 ;; 19422 esac 19423fi 19424if test x$FILE_MAN_DIR = x ; then 19425 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19426fi 19427 19428if test x$MISC_MAN_SUFFIX = x ; then 19429 case $SYSV_MAN_SECTIONS in 19430 true) MISC_MAN_SUFFIX=5 ;; 19431 *) MISC_MAN_SUFFIX=7 ;; 19432 esac 19433fi 19434if test x$MISC_MAN_DIR = x ; then 19435 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19436fi 19437 19438if test x$DRIVER_MAN_SUFFIX = x ; then 19439 case $SYSV_MAN_SECTIONS in 19440 true) DRIVER_MAN_SUFFIX=7 ;; 19441 *) DRIVER_MAN_SUFFIX=4 ;; 19442 esac 19443fi 19444if test x$DRIVER_MAN_DIR = x ; then 19445 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19446fi 19447 19448if test x$ADMIN_MAN_SUFFIX = x ; then 19449 case $SYSV_MAN_SECTIONS in 19450 true) ADMIN_MAN_SUFFIX=1m ;; 19451 *) ADMIN_MAN_SUFFIX=8 ;; 19452 esac 19453fi 19454if test x$ADMIN_MAN_DIR = x ; then 19455 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19456fi 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472XORG_MAN_PAGE="X Version 11" 19473 19474MAN_SUBSTS="\ 19475 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19476 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19477 -e 's|__xservername__|Xorg|g' \ 19478 -e 's|__xconfigfile__|xorg.conf|g' \ 19479 -e 's|__projectroot__|\$(prefix)|g' \ 19480 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19481 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19482 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19483 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19484 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19485 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19486 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19487 19488 19489 19490# Check whether --enable-silent-rules was given. 19491if test ${enable_silent_rules+y} 19492then : 19493 enableval=$enable_silent_rules; 19494fi 19495 19496case $enable_silent_rules in # ((( 19497 yes) AM_DEFAULT_VERBOSITY=0;; 19498 no) AM_DEFAULT_VERBOSITY=1;; 19499 *) AM_DEFAULT_VERBOSITY=0;; 19500esac 19501am_make=${MAKE-make} 19502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19503printf %s "checking whether $am_make supports nested variables... " >&6; } 19504if test ${am_cv_make_support_nested_variables+y} 19505then : 19506 printf %s "(cached) " >&6 19507else $as_nop 19508 if printf "%s\n" 'TRUE=$(BAR$(V)) 19509BAR0=false 19510BAR1=true 19511V=1 19512am__doit: 19513 @$(TRUE) 19514.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19515 am_cv_make_support_nested_variables=yes 19516else 19517 am_cv_make_support_nested_variables=no 19518fi 19519fi 19520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19521printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19522if test $am_cv_make_support_nested_variables = yes; then 19523 AM_V='$(V)' 19524 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19525else 19526 AM_V=$AM_DEFAULT_VERBOSITY 19527 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19528fi 19529AM_BACKSLASH='\' 19530 19531 19532 19533# Check whether --enable-malloc0returnsnull was given. 19534if test ${enable_malloc0returnsnull+y} 19535then : 19536 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19537else $as_nop 19538 MALLOC_ZERO_RETURNS_NULL=auto 19539fi 19540 19541 19542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 19543printf %s "checking whether malloc(0) returns NULL... " >&6; } 19544if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19545if test ${xorg_cv_malloc0_returns_null+y} 19546then : 19547 printf %s "(cached) " >&6 19548else $as_nop 19549 if test "$cross_compiling" = yes 19550then : 19551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19552printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19553as_fn_error $? "cannot run test program while cross compiling 19554See \`config.log' for more details" "$LINENO" 5; } 19555else $as_nop 19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19557/* end confdefs.h. */ 19558 19559#include <stdlib.h> 19560 19561int 19562main (void) 19563{ 19564 19565 char *m0, *r0, *c0, *p; 19566 m0 = malloc(0); 19567 p = malloc(10); 19568 r0 = realloc(p,0); 19569 c0 = calloc(0,10); 19570 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 19571 19572 ; 19573 return 0; 19574} 19575_ACEOF 19576if ac_fn_c_try_run "$LINENO" 19577then : 19578 xorg_cv_malloc0_returns_null=yes 19579else $as_nop 19580 xorg_cv_malloc0_returns_null=no 19581fi 19582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19583 conftest.$ac_objext conftest.beam conftest.$ac_ext 19584fi 19585 19586fi 19587 19588MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 19589fi 19590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19591printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 19592 19593if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19594 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19595 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19596 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19597else 19598 MALLOC_ZERO_CFLAGS="" 19599 XMALLOC_ZERO_CFLAGS="" 19600 XTMALLOC_ZERO_CFLAGS="" 19601fi 19602 19603 19604 19605 19606 19607 19608# Obtain compiler/linker options for dependencies 19609 19610pkg_failed=no 19611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FS" >&5 19612printf %s "checking for FS... " >&6; } 19613 19614if test -n "$FS_CFLAGS"; then 19615 pkg_cv_FS_CFLAGS="$FS_CFLAGS" 19616 elif test -n "$PKG_CONFIG"; then 19617 if test -n "$PKG_CONFIG" && \ 19618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5 19619 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5 19620 ac_status=$? 19621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19622 test $ac_status = 0; }; then 19623 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null` 19624 test "x$?" != "x0" && pkg_failed=yes 19625else 19626 pkg_failed=yes 19627fi 19628 else 19629 pkg_failed=untried 19630fi 19631if test -n "$FS_LIBS"; then 19632 pkg_cv_FS_LIBS="$FS_LIBS" 19633 elif test -n "$PKG_CONFIG"; then 19634 if test -n "$PKG_CONFIG" && \ 19635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5 19636 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5 19637 ac_status=$? 19638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19639 test $ac_status = 0; }; then 19640 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null` 19641 test "x$?" != "x0" && pkg_failed=yes 19642else 19643 pkg_failed=yes 19644fi 19645 else 19646 pkg_failed=untried 19647fi 19648 19649 19650 19651if test $pkg_failed = yes; then 19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19653printf "%s\n" "no" >&6; } 19654 19655if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19656 _pkg_short_errors_supported=yes 19657else 19658 _pkg_short_errors_supported=no 19659fi 19660 if test $_pkg_short_errors_supported = yes; then 19661 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 fontsproto xtrans" 2>&1` 19662 else 19663 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 fontsproto xtrans" 2>&1` 19664 fi 19665 # Put the nasty error message in config.log where it belongs 19666 echo "$FS_PKG_ERRORS" >&5 19667 19668 as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met: 19669 19670$FS_PKG_ERRORS 19671 19672Consider adjusting the PKG_CONFIG_PATH environment variable if you 19673installed software in a non-standard prefix. 19674 19675Alternatively, you may set the environment variables FS_CFLAGS 19676and FS_LIBS to avoid the need to call pkg-config. 19677See the pkg-config man page for more details." "$LINENO" 5 19678elif test $pkg_failed = untried; then 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19680printf "%s\n" "no" >&6; } 19681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19682printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19683as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19684is in your PATH or set the PKG_CONFIG environment variable to the full 19685path to pkg-config. 19686 19687Alternatively, you may set the environment variables FS_CFLAGS 19688and FS_LIBS to avoid the need to call pkg-config. 19689See the pkg-config man page for more details. 19690 19691To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19692See \`config.log' for more details" "$LINENO" 5; } 19693else 19694 FS_CFLAGS=$pkg_cv_FS_CFLAGS 19695 FS_LIBS=$pkg_cv_FS_LIBS 19696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19697printf "%s\n" "yes" >&6; } 19698 19699fi 19700 19701# Find needed libraries for TCP sockets (pre-pended in $LIBS) 19702 19703 19704 case $host_os in 19705 mingw*) unixdef="no" ;; 19706 *) unixdef="yes" ;; 19707 esac 19708 # Check whether --enable-unix-transport was given. 19709if test ${enable_unix_transport+y} 19710then : 19711 enableval=$enable_unix_transport; UNIXCONN=$enableval 19712else $as_nop 19713 UNIXCONN=$unixdef 19714fi 19715 19716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 19717printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 19718 if test "$UNIXCONN" = "yes"; then 19719 19720printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 19721 19722 fi 19723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 19724printf "%s\n" "$UNIXCONN" >&6; } 19725 # Check whether --enable-tcp-transport was given. 19726if test ${enable_tcp_transport+y} 19727then : 19728 enableval=$enable_tcp_transport; TCPCONN=$enableval 19729else $as_nop 19730 TCPCONN=yes 19731fi 19732 19733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 19734printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 19735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 19736printf "%s\n" "$TCPCONN" >&6; } 19737 if test "$TCPCONN" = "yes"; then 19738 19739printf "%s\n" "#define TCPCONN 1" >>confdefs.h 19740 19741 19742 # SVR4 hides these in libraries other than libc 19743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19744printf %s "checking for library containing socket... " >&6; } 19745if test ${ac_cv_search_socket+y} 19746then : 19747 printf %s "(cached) " >&6 19748else $as_nop 19749 ac_func_search_save_LIBS=$LIBS 19750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19751/* end confdefs.h. */ 19752 19753/* Override any GCC internal prototype to avoid an error. 19754 Use char because int might match the return type of a GCC 19755 builtin and then its argument prototype would still apply. */ 19756char socket (); 19757int 19758main (void) 19759{ 19760return socket (); 19761 ; 19762 return 0; 19763} 19764_ACEOF 19765for ac_lib in '' socket 19766do 19767 if test -z "$ac_lib"; then 19768 ac_res="none required" 19769 else 19770 ac_res=-l$ac_lib 19771 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19772 fi 19773 if ac_fn_c_try_link "$LINENO" 19774then : 19775 ac_cv_search_socket=$ac_res 19776fi 19777rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19778 conftest$ac_exeext 19779 if test ${ac_cv_search_socket+y} 19780then : 19781 break 19782fi 19783done 19784if test ${ac_cv_search_socket+y} 19785then : 19786 19787else $as_nop 19788 ac_cv_search_socket=no 19789fi 19790rm conftest.$ac_ext 19791LIBS=$ac_func_search_save_LIBS 19792fi 19793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19794printf "%s\n" "$ac_cv_search_socket" >&6; } 19795ac_res=$ac_cv_search_socket 19796if test "$ac_res" != no 19797then : 19798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19799 19800fi 19801 19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19803printf %s "checking for library containing gethostbyname... " >&6; } 19804if test ${ac_cv_search_gethostbyname+y} 19805then : 19806 printf %s "(cached) " >&6 19807else $as_nop 19808 ac_func_search_save_LIBS=$LIBS 19809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19810/* end confdefs.h. */ 19811 19812/* Override any GCC internal prototype to avoid an error. 19813 Use char because int might match the return type of a GCC 19814 builtin and then its argument prototype would still apply. */ 19815char gethostbyname (); 19816int 19817main (void) 19818{ 19819return gethostbyname (); 19820 ; 19821 return 0; 19822} 19823_ACEOF 19824for ac_lib in '' nsl 19825do 19826 if test -z "$ac_lib"; then 19827 ac_res="none required" 19828 else 19829 ac_res=-l$ac_lib 19830 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19831 fi 19832 if ac_fn_c_try_link "$LINENO" 19833then : 19834 ac_cv_search_gethostbyname=$ac_res 19835fi 19836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19837 conftest$ac_exeext 19838 if test ${ac_cv_search_gethostbyname+y} 19839then : 19840 break 19841fi 19842done 19843if test ${ac_cv_search_gethostbyname+y} 19844then : 19845 19846else $as_nop 19847 ac_cv_search_gethostbyname=no 19848fi 19849rm conftest.$ac_ext 19850LIBS=$ac_func_search_save_LIBS 19851fi 19852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19853printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 19854ac_res=$ac_cv_search_gethostbyname 19855if test "$ac_res" != no 19856then : 19857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19858 19859fi 19860 19861 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 19862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19863printf %s "checking for main in -lws2_32... " >&6; } 19864if test ${ac_cv_lib_ws2_32_main+y} 19865then : 19866 printf %s "(cached) " >&6 19867else $as_nop 19868 ac_check_lib_save_LIBS=$LIBS 19869LIBS="-lws2_32 $LIBS" 19870cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19871/* end confdefs.h. */ 19872 19873 19874int 19875main (void) 19876{ 19877return main (); 19878 ; 19879 return 0; 19880} 19881_ACEOF 19882if ac_fn_c_try_link "$LINENO" 19883then : 19884 ac_cv_lib_ws2_32_main=yes 19885else $as_nop 19886 ac_cv_lib_ws2_32_main=no 19887fi 19888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19889 conftest$ac_exeext conftest.$ac_ext 19890LIBS=$ac_check_lib_save_LIBS 19891fi 19892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19893printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 19894if test "x$ac_cv_lib_ws2_32_main" = xyes 19895then : 19896 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 19897 19898 LIBS="-lws2_32 $LIBS" 19899 19900fi 19901 19902 fi 19903 19904 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 19905 # Check whether --enable-ipv6 was given. 19906if test ${enable_ipv6+y} 19907then : 19908 enableval=$enable_ipv6; IPV6CONN=$enableval 19909else $as_nop 19910 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19911if test "x$ac_cv_func_getaddrinfo" = xyes 19912then : 19913 IPV6CONN=yes 19914else $as_nop 19915 IPV6CONN=no 19916fi 19917 19918fi 19919 19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 19921printf %s "checking if IPv6 support should be built... " >&6; } 19922 if test "$IPV6CONN" = "yes"; then 19923 19924printf "%s\n" "#define IPv6 1" >>confdefs.h 19925 19926 fi 19927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 19928printf "%s\n" "$IPV6CONN" >&6; } 19929 19930 # 4.3BSD-Reno added a new member to struct sockaddr_in 19931 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 19932#include <sys/types.h> 19933#include <sys/socket.h> 19934#include <netinet/in.h> 19935 19936" 19937if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 19938then : 19939 19940printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 19941 19942fi 19943 19944 19945 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 19946 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 19947$ac_includes_default 19948#include <sys/socket.h> 19949" 19950if test "x$ac_cv_type_socklen_t" = xyes 19951then : 19952 19953printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 19954 19955 19956fi 19957 19958 19959 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 19960 # _XOPEN_SOURCE to get it (such as on Solaris) 19961 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19962$ac_includes_default 19963#include <sys/socket.h> 19964 19965" 19966if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 19967then : 19968 19969fi 19970 19971 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 19972 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19973 unset ac_cv_member_struct_msghdr_msg_control 19974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 19975printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 19976 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19977#define _XOPEN_SOURCE 600 19978$ac_includes_default 19979#include <sys/socket.h> 19980 19981" 19982if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 19983then : 19984 19985printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 19986 19987 19988fi 19989 19990 fi 19991 # If that didn't work, fall back to XPG5/UNIX98 with C89 19992 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19993 unset ac_cv_member_struct_msghdr_msg_control 19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 19995printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 19996 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19997#define _XOPEN_SOURCE 500 19998$ac_includes_default 19999#include <sys/socket.h> 20000 20001" 20002if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 20003then : 20004 20005printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 20006 20007 20008fi 20009 20010 fi 20011 20012 20013 20014 fi 20015 case $host_os in 20016 solaris*) localdef="yes" ;; 20017 *) localdef="no" ;; 20018 esac 20019 # Check whether --enable-local-transport was given. 20020if test ${enable_local_transport+y} 20021then : 20022 enableval=$enable_local_transport; LOCALCONN=$enableval 20023else $as_nop 20024 LOCALCONN=$localdef 20025fi 20026 20027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 20028printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 20029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 20030printf "%s\n" "$LOCALCONN" >&6; } 20031 if test "$LOCALCONN" = "yes"; then 20032 20033printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 20034 20035 fi 20036 20037 # Other functions Xtrans may need 20038 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 20039if test "x$ac_cv_func_strcasecmp" = xyes 20040then : 20041 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 20042 20043fi 20044ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20045if test "x$ac_cv_func_strlcpy" = xyes 20046then : 20047 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20048 20049fi 20050 20051 20052 20053 20054# Checks for library functions. 20055ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20056if test "x$ac_cv_func_strlcpy" = xyes 20057then : 20058 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20059 20060fi 20061ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 20062if test "x$ac_cv_func_strnlen" = xyes 20063then : 20064 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 20065 20066fi 20067 20068ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20069if test "x$ac_cv_func_reallocarray" = xyes 20070then : 20071 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20072 20073else $as_nop 20074 case " $LIBOBJS " in 20075 *" reallocarray.$ac_objext "* ) ;; 20076 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20077 ;; 20078esac 20079 20080fi 20081 20082 20083# Allow checking code with lint, sparse, etc. 20084 20085 20086 20087 20088 20089# Check whether --with-lint was given. 20090if test ${with_lint+y} 20091then : 20092 withval=$with_lint; use_lint=$withval 20093else $as_nop 20094 use_lint=no 20095fi 20096 20097 20098# Obtain platform specific info like program name and options 20099# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20100case $host_os in 20101 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20102 lint_name=splint 20103 lint_options="-badflag" 20104 ;; 20105 *freebsd* | *netbsd*) 20106 lint_name=lint 20107 lint_options="-u -b" 20108 ;; 20109 *solaris*) 20110 lint_name=lint 20111 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20112 ;; 20113esac 20114 20115# Test for the presence of the program (either guessed by the code or spelled out by the user) 20116if test "x$use_lint" = x"yes" ; then 20117 # Extract the first word of "$lint_name", so it can be a program name with args. 20118set dummy $lint_name; ac_word=$2 20119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20120printf %s "checking for $ac_word... " >&6; } 20121if test ${ac_cv_path_LINT+y} 20122then : 20123 printf %s "(cached) " >&6 20124else $as_nop 20125 case $LINT in 20126 [\\/]* | ?:[\\/]*) 20127 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20128 ;; 20129 *) 20130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20131for as_dir in $PATH 20132do 20133 IFS=$as_save_IFS 20134 case $as_dir in #((( 20135 '') as_dir=./ ;; 20136 */) ;; 20137 *) as_dir=$as_dir/ ;; 20138 esac 20139 for ac_exec_ext in '' $ac_executable_extensions; do 20140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20141 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20143 break 2 20144 fi 20145done 20146 done 20147IFS=$as_save_IFS 20148 20149 ;; 20150esac 20151fi 20152LINT=$ac_cv_path_LINT 20153if test -n "$LINT"; then 20154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20155printf "%s\n" "$LINT" >&6; } 20156else 20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20158printf "%s\n" "no" >&6; } 20159fi 20160 20161 20162 if test "x$LINT" = "x"; then 20163 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20164 fi 20165elif test "x$use_lint" = x"no" ; then 20166 if test "x$LINT" != "x"; then 20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20168printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20169 fi 20170else 20171 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20172fi 20173 20174# User supplied flags override default flags 20175if test "x$LINT_FLAGS" != "x"; then 20176 lint_options=$LINT_FLAGS 20177fi 20178 20179LINT_FLAGS=$lint_options 20180 20181 if test "x$LINT" != x; then 20182 LINT_TRUE= 20183 LINT_FALSE='#' 20184else 20185 LINT_TRUE='#' 20186 LINT_FALSE= 20187fi 20188 20189 20190 20191 20192 20193# Check whether --enable-lint-library was given. 20194if test ${enable_lint_library+y} 20195then : 20196 enableval=$enable_lint_library; make_lint_lib=$enableval 20197else $as_nop 20198 make_lint_lib=no 20199fi 20200 20201 20202if test "x$make_lint_lib" = x"yes" ; then 20203 LINTLIB=llib-lFS.ln 20204 if test "x$LINT" = "x"; then 20205 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20206 fi 20207elif test "x$make_lint_lib" != x"no" ; then 20208 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20209fi 20210 20211 20212 if test x$make_lint_lib != xno; then 20213 MAKE_LINT_LIB_TRUE= 20214 MAKE_LINT_LIB_FALSE='#' 20215else 20216 MAKE_LINT_LIB_TRUE='#' 20217 MAKE_LINT_LIB_FALSE= 20218fi 20219 20220 20221 20222 20223ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc" 20224 20225cat >confcache <<\_ACEOF 20226# This file is a shell script that caches the results of configure 20227# tests run on this system so they can be shared between configure 20228# scripts and configure runs, see configure's option --config-cache. 20229# It is not useful on other systems. If it contains results you don't 20230# want to keep, you may remove or edit it. 20231# 20232# config.status only pays attention to the cache file if you give it 20233# the --recheck option to rerun configure. 20234# 20235# `ac_cv_env_foo' variables (set or unset) will be overridden when 20236# loading this file, other *unset* `ac_cv_foo' will be assigned the 20237# following values. 20238 20239_ACEOF 20240 20241# The following way of writing the cache mishandles newlines in values, 20242# but we know of no workaround that is simple, portable, and efficient. 20243# So, we kill variables containing newlines. 20244# Ultrix sh set writes to stderr and can't be redirected directly, 20245# and sets the high bit in the cache file unless we assign to the vars. 20246( 20247 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20248 eval ac_val=\$$ac_var 20249 case $ac_val in #( 20250 *${as_nl}*) 20251 case $ac_var in #( 20252 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20253printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20254 esac 20255 case $ac_var in #( 20256 _ | IFS | as_nl) ;; #( 20257 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20258 *) { eval $ac_var=; unset $ac_var;} ;; 20259 esac ;; 20260 esac 20261 done 20262 20263 (set) 2>&1 | 20264 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20265 *${as_nl}ac_space=\ *) 20266 # `set' does not quote correctly, so add quotes: double-quote 20267 # substitution turns \\\\ into \\, and sed turns \\ into \. 20268 sed -n \ 20269 "s/'/'\\\\''/g; 20270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20271 ;; #( 20272 *) 20273 # `set' quotes correctly as required by POSIX, so do not add quotes. 20274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20275 ;; 20276 esac | 20277 sort 20278) | 20279 sed ' 20280 /^ac_cv_env_/b end 20281 t clear 20282 :clear 20283 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20284 t end 20285 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20286 :end' >>confcache 20287if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20288 if test -w "$cache_file"; then 20289 if test "x$cache_file" != "x/dev/null"; then 20290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20291printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20292 if test ! -f "$cache_file" || test -h "$cache_file"; then 20293 cat confcache >"$cache_file" 20294 else 20295 case $cache_file in #( 20296 */* | ?:*) 20297 mv -f confcache "$cache_file"$$ && 20298 mv -f "$cache_file"$$ "$cache_file" ;; #( 20299 *) 20300 mv -f confcache "$cache_file" ;; 20301 esac 20302 fi 20303 fi 20304 else 20305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20306printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20307 fi 20308fi 20309rm -f confcache 20310 20311test "x$prefix" = xNONE && prefix=$ac_default_prefix 20312# Let make expand exec_prefix. 20313test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20314 20315DEFS=-DHAVE_CONFIG_H 20316 20317ac_libobjs= 20318ac_ltlibobjs= 20319U= 20320for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20321 # 1. Remove the extension, and $U if already installed. 20322 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20323 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20324 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20325 # will be set to the directory where LIBOBJS objects are built. 20326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20328done 20329LIBOBJS=$ac_libobjs 20330 20331LTLIBOBJS=$ac_ltlibobjs 20332 20333 20334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20335printf %s "checking that generated files are newer than configure... " >&6; } 20336 if test -n "$am_sleep_pid"; then 20337 # Hide warnings about reused PIDs. 20338 wait $am_sleep_pid 2>/dev/null 20339 fi 20340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20341printf "%s\n" "done" >&6; } 20342 if test -n "$EXEEXT"; then 20343 am__EXEEXT_TRUE= 20344 am__EXEEXT_FALSE='#' 20345else 20346 am__EXEEXT_TRUE='#' 20347 am__EXEEXT_FALSE= 20348fi 20349 20350if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20351 as_fn_error $? "conditional \"AMDEP\" was never defined. 20352Usually this means the macro was only invoked conditionally." "$LINENO" 5 20353fi 20354if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20355 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20356Usually this means the macro was only invoked conditionally." "$LINENO" 5 20357fi 20358if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20359 as_fn_error $? "conditional \"LINT\" was never defined. 20360Usually this means the macro was only invoked conditionally." "$LINENO" 5 20361fi 20362if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 20363 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 20364Usually this means the macro was only invoked conditionally." "$LINENO" 5 20365fi 20366 20367: "${CONFIG_STATUS=./config.status}" 20368ac_write_fail=0 20369ac_clean_files_save=$ac_clean_files 20370ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20372printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20373as_write_fail=0 20374cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20375#! $SHELL 20376# Generated by $as_me. 20377# Run this file to recreate the current configuration. 20378# Compiler output produced by configure, useful for debugging 20379# configure, is in config.log if it exists. 20380 20381debug=false 20382ac_cs_recheck=false 20383ac_cs_silent=false 20384 20385SHELL=\${CONFIG_SHELL-$SHELL} 20386export SHELL 20387_ASEOF 20388cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20389## -------------------- ## 20390## M4sh Initialization. ## 20391## -------------------- ## 20392 20393# Be more Bourne compatible 20394DUALCASE=1; export DUALCASE # for MKS sh 20395as_nop=: 20396if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20397then : 20398 emulate sh 20399 NULLCMD=: 20400 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20401 # is contrary to our usage. Disable this feature. 20402 alias -g '${1+"$@"}'='"$@"' 20403 setopt NO_GLOB_SUBST 20404else $as_nop 20405 case `(set -o) 2>/dev/null` in #( 20406 *posix*) : 20407 set -o posix ;; #( 20408 *) : 20409 ;; 20410esac 20411fi 20412 20413 20414 20415# Reset variables that may have inherited troublesome values from 20416# the environment. 20417 20418# IFS needs to be set, to space, tab, and newline, in precisely that order. 20419# (If _AS_PATH_WALK were called with IFS unset, it would have the 20420# side effect of setting IFS to empty, thus disabling word splitting.) 20421# Quoting is to prevent editors from complaining about space-tab. 20422as_nl=' 20423' 20424export as_nl 20425IFS=" "" $as_nl" 20426 20427PS1='$ ' 20428PS2='> ' 20429PS4='+ ' 20430 20431# Ensure predictable behavior from utilities with locale-dependent output. 20432LC_ALL=C 20433export LC_ALL 20434LANGUAGE=C 20435export LANGUAGE 20436 20437# We cannot yet rely on "unset" to work, but we need these variables 20438# to be unset--not just set to an empty or harmless value--now, to 20439# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20440# also avoids known problems related to "unset" and subshell syntax 20441# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20442for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20443do eval test \${$as_var+y} \ 20444 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20445done 20446 20447# Ensure that fds 0, 1, and 2 are open. 20448if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20449if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20450if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20451 20452# The user is always right. 20453if ${PATH_SEPARATOR+false} :; then 20454 PATH_SEPARATOR=: 20455 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20456 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20457 PATH_SEPARATOR=';' 20458 } 20459fi 20460 20461 20462# Find who we are. Look in the path if we contain no directory separator. 20463as_myself= 20464case $0 in #(( 20465 *[\\/]* ) as_myself=$0 ;; 20466 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20467for as_dir in $PATH 20468do 20469 IFS=$as_save_IFS 20470 case $as_dir in #((( 20471 '') as_dir=./ ;; 20472 */) ;; 20473 *) as_dir=$as_dir/ ;; 20474 esac 20475 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20476 done 20477IFS=$as_save_IFS 20478 20479 ;; 20480esac 20481# We did not find ourselves, most probably we were run as `sh COMMAND' 20482# in which case we are not to be found in the path. 20483if test "x$as_myself" = x; then 20484 as_myself=$0 20485fi 20486if test ! -f "$as_myself"; then 20487 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20488 exit 1 20489fi 20490 20491 20492 20493# as_fn_error STATUS ERROR [LINENO LOG_FD] 20494# ---------------------------------------- 20495# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20496# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20497# script with STATUS, using 1 if that was 0. 20498as_fn_error () 20499{ 20500 as_status=$1; test $as_status -eq 0 && as_status=1 20501 if test "$4"; then 20502 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20504 fi 20505 printf "%s\n" "$as_me: error: $2" >&2 20506 as_fn_exit $as_status 20507} # as_fn_error 20508 20509 20510 20511# as_fn_set_status STATUS 20512# ----------------------- 20513# Set $? to STATUS, without forking. 20514as_fn_set_status () 20515{ 20516 return $1 20517} # as_fn_set_status 20518 20519# as_fn_exit STATUS 20520# ----------------- 20521# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20522as_fn_exit () 20523{ 20524 set +e 20525 as_fn_set_status $1 20526 exit $1 20527} # as_fn_exit 20528 20529# as_fn_unset VAR 20530# --------------- 20531# Portably unset VAR. 20532as_fn_unset () 20533{ 20534 { eval $1=; unset $1;} 20535} 20536as_unset=as_fn_unset 20537 20538# as_fn_append VAR VALUE 20539# ---------------------- 20540# Append the text in VALUE to the end of the definition contained in VAR. Take 20541# advantage of any shell optimizations that allow amortized linear growth over 20542# repeated appends, instead of the typical quadratic growth present in naive 20543# implementations. 20544if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20545then : 20546 eval 'as_fn_append () 20547 { 20548 eval $1+=\$2 20549 }' 20550else $as_nop 20551 as_fn_append () 20552 { 20553 eval $1=\$$1\$2 20554 } 20555fi # as_fn_append 20556 20557# as_fn_arith ARG... 20558# ------------------ 20559# Perform arithmetic evaluation on the ARGs, and store the result in the 20560# global $as_val. Take advantage of shells that can avoid forks. The arguments 20561# must be portable across $(()) and expr. 20562if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20563then : 20564 eval 'as_fn_arith () 20565 { 20566 as_val=$(( $* )) 20567 }' 20568else $as_nop 20569 as_fn_arith () 20570 { 20571 as_val=`expr "$@" || test $? -eq 1` 20572 } 20573fi # as_fn_arith 20574 20575 20576if expr a : '\(a\)' >/dev/null 2>&1 && 20577 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20578 as_expr=expr 20579else 20580 as_expr=false 20581fi 20582 20583if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20584 as_basename=basename 20585else 20586 as_basename=false 20587fi 20588 20589if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20590 as_dirname=dirname 20591else 20592 as_dirname=false 20593fi 20594 20595as_me=`$as_basename -- "$0" || 20596$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20597 X"$0" : 'X\(//\)$' \| \ 20598 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20599printf "%s\n" X/"$0" | 20600 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20601 s//\1/ 20602 q 20603 } 20604 /^X\/\(\/\/\)$/{ 20605 s//\1/ 20606 q 20607 } 20608 /^X\/\(\/\).*/{ 20609 s//\1/ 20610 q 20611 } 20612 s/.*/./; q'` 20613 20614# Avoid depending upon Character Ranges. 20615as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20616as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20617as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20618as_cr_digits='0123456789' 20619as_cr_alnum=$as_cr_Letters$as_cr_digits 20620 20621 20622# Determine whether it's possible to make 'echo' print without a newline. 20623# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20624# for compatibility with existing Makefiles. 20625ECHO_C= ECHO_N= ECHO_T= 20626case `echo -n x` in #((((( 20627-n*) 20628 case `echo 'xy\c'` in 20629 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20630 xy) ECHO_C='\c';; 20631 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20632 ECHO_T=' ';; 20633 esac;; 20634*) 20635 ECHO_N='-n';; 20636esac 20637 20638# For backward compatibility with old third-party macros, we provide 20639# the shell variables $as_echo and $as_echo_n. New code should use 20640# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20641as_echo='printf %s\n' 20642as_echo_n='printf %s' 20643 20644rm -f conf$$ conf$$.exe conf$$.file 20645if test -d conf$$.dir; then 20646 rm -f conf$$.dir/conf$$.file 20647else 20648 rm -f conf$$.dir 20649 mkdir conf$$.dir 2>/dev/null 20650fi 20651if (echo >conf$$.file) 2>/dev/null; then 20652 if ln -s conf$$.file conf$$ 2>/dev/null; then 20653 as_ln_s='ln -s' 20654 # ... but there are two gotchas: 20655 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20656 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20657 # In both cases, we have to default to `cp -pR'. 20658 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20659 as_ln_s='cp -pR' 20660 elif ln conf$$.file conf$$ 2>/dev/null; then 20661 as_ln_s=ln 20662 else 20663 as_ln_s='cp -pR' 20664 fi 20665else 20666 as_ln_s='cp -pR' 20667fi 20668rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20669rmdir conf$$.dir 2>/dev/null 20670 20671 20672# as_fn_mkdir_p 20673# ------------- 20674# Create "$as_dir" as a directory, including parents if necessary. 20675as_fn_mkdir_p () 20676{ 20677 20678 case $as_dir in #( 20679 -*) as_dir=./$as_dir;; 20680 esac 20681 test -d "$as_dir" || eval $as_mkdir_p || { 20682 as_dirs= 20683 while :; do 20684 case $as_dir in #( 20685 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20686 *) as_qdir=$as_dir;; 20687 esac 20688 as_dirs="'$as_qdir' $as_dirs" 20689 as_dir=`$as_dirname -- "$as_dir" || 20690$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20691 X"$as_dir" : 'X\(//\)[^/]' \| \ 20692 X"$as_dir" : 'X\(//\)$' \| \ 20693 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20694printf "%s\n" X"$as_dir" | 20695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20696 s//\1/ 20697 q 20698 } 20699 /^X\(\/\/\)[^/].*/{ 20700 s//\1/ 20701 q 20702 } 20703 /^X\(\/\/\)$/{ 20704 s//\1/ 20705 q 20706 } 20707 /^X\(\/\).*/{ 20708 s//\1/ 20709 q 20710 } 20711 s/.*/./; q'` 20712 test -d "$as_dir" && break 20713 done 20714 test -z "$as_dirs" || eval "mkdir $as_dirs" 20715 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20716 20717 20718} # as_fn_mkdir_p 20719if mkdir -p . 2>/dev/null; then 20720 as_mkdir_p='mkdir -p "$as_dir"' 20721else 20722 test -d ./-p && rmdir ./-p 20723 as_mkdir_p=false 20724fi 20725 20726 20727# as_fn_executable_p FILE 20728# ----------------------- 20729# Test if FILE is an executable regular file. 20730as_fn_executable_p () 20731{ 20732 test -f "$1" && test -x "$1" 20733} # as_fn_executable_p 20734as_test_x='test -x' 20735as_executable_p=as_fn_executable_p 20736 20737# Sed expression to map a string onto a valid CPP name. 20738as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20739 20740# Sed expression to map a string onto a valid variable name. 20741as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20742 20743 20744exec 6>&1 20745## ----------------------------------- ## 20746## Main body of $CONFIG_STATUS script. ## 20747## ----------------------------------- ## 20748_ASEOF 20749test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20750 20751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20752# Save the log message, to keep $0 and so on meaningful, and to 20753# report actual input values of CONFIG_FILES etc. instead of their 20754# values after options handling. 20755ac_log=" 20756This file was extended by libFS $as_me 1.0.9, which was 20757generated by GNU Autoconf 2.71. Invocation command line was 20758 20759 CONFIG_FILES = $CONFIG_FILES 20760 CONFIG_HEADERS = $CONFIG_HEADERS 20761 CONFIG_LINKS = $CONFIG_LINKS 20762 CONFIG_COMMANDS = $CONFIG_COMMANDS 20763 $ $0 $@ 20764 20765on `(hostname || uname -n) 2>/dev/null | sed 1q` 20766" 20767 20768_ACEOF 20769 20770case $ac_config_files in *" 20771"*) set x $ac_config_files; shift; ac_config_files=$*;; 20772esac 20773 20774case $ac_config_headers in *" 20775"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20776esac 20777 20778 20779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20780# Files that config.status was made for. 20781config_files="$ac_config_files" 20782config_headers="$ac_config_headers" 20783config_commands="$ac_config_commands" 20784 20785_ACEOF 20786 20787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20788ac_cs_usage="\ 20789\`$as_me' instantiates files and other configuration actions 20790from templates according to the current configuration. Unless the files 20791and actions are specified as TAGs, all are instantiated by default. 20792 20793Usage: $0 [OPTION]... [TAG]... 20794 20795 -h, --help print this help, then exit 20796 -V, --version print version number and configuration settings, then exit 20797 --config print configuration, then exit 20798 -q, --quiet, --silent 20799 do not print progress messages 20800 -d, --debug don't remove temporary files 20801 --recheck update $as_me by reconfiguring in the same conditions 20802 --file=FILE[:TEMPLATE] 20803 instantiate the configuration file FILE 20804 --header=FILE[:TEMPLATE] 20805 instantiate the configuration header FILE 20806 20807Configuration files: 20808$config_files 20809 20810Configuration headers: 20811$config_headers 20812 20813Configuration commands: 20814$config_commands 20815 20816Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>." 20817 20818_ACEOF 20819ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20820ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20822ac_cs_config='$ac_cs_config_escaped' 20823ac_cs_version="\\ 20824libFS config.status 1.0.9 20825configured by $0, generated by GNU Autoconf 2.71, 20826 with options \\"\$ac_cs_config\\" 20827 20828Copyright (C) 2021 Free Software Foundation, Inc. 20829This config.status script is free software; the Free Software Foundation 20830gives unlimited permission to copy, distribute and modify it." 20831 20832ac_pwd='$ac_pwd' 20833srcdir='$srcdir' 20834INSTALL='$INSTALL' 20835MKDIR_P='$MKDIR_P' 20836AWK='$AWK' 20837test -n "\$AWK" || AWK=awk 20838_ACEOF 20839 20840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20841# The default lists apply if the user does not specify any file. 20842ac_need_defaults=: 20843while test $# != 0 20844do 20845 case $1 in 20846 --*=?*) 20847 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20848 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20849 ac_shift=: 20850 ;; 20851 --*=) 20852 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20853 ac_optarg= 20854 ac_shift=: 20855 ;; 20856 *) 20857 ac_option=$1 20858 ac_optarg=$2 20859 ac_shift=shift 20860 ;; 20861 esac 20862 20863 case $ac_option in 20864 # Handling of the options. 20865 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20866 ac_cs_recheck=: ;; 20867 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20868 printf "%s\n" "$ac_cs_version"; exit ;; 20869 --config | --confi | --conf | --con | --co | --c ) 20870 printf "%s\n" "$ac_cs_config"; exit ;; 20871 --debug | --debu | --deb | --de | --d | -d ) 20872 debug=: ;; 20873 --file | --fil | --fi | --f ) 20874 $ac_shift 20875 case $ac_optarg in 20876 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20877 '') as_fn_error $? "missing file argument" ;; 20878 esac 20879 as_fn_append CONFIG_FILES " '$ac_optarg'" 20880 ac_need_defaults=false;; 20881 --header | --heade | --head | --hea ) 20882 $ac_shift 20883 case $ac_optarg in 20884 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20885 esac 20886 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20887 ac_need_defaults=false;; 20888 --he | --h) 20889 # Conflict between --help and --header 20890 as_fn_error $? "ambiguous option: \`$1' 20891Try \`$0 --help' for more information.";; 20892 --help | --hel | -h ) 20893 printf "%s\n" "$ac_cs_usage"; exit ;; 20894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20895 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20896 ac_cs_silent=: ;; 20897 20898 # This is an error. 20899 -*) as_fn_error $? "unrecognized option: \`$1' 20900Try \`$0 --help' for more information." ;; 20901 20902 *) as_fn_append ac_config_targets " $1" 20903 ac_need_defaults=false ;; 20904 20905 esac 20906 shift 20907done 20908 20909ac_configure_extra_args= 20910 20911if $ac_cs_silent; then 20912 exec 6>/dev/null 20913 ac_configure_extra_args="$ac_configure_extra_args --silent" 20914fi 20915 20916_ACEOF 20917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20918if \$ac_cs_recheck; then 20919 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20920 shift 20921 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20922 CONFIG_SHELL='$SHELL' 20923 export CONFIG_SHELL 20924 exec "\$@" 20925fi 20926 20927_ACEOF 20928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20929exec 5>>config.log 20930{ 20931 echo 20932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20933## Running $as_me. ## 20934_ASBOX 20935 printf "%s\n" "$ac_log" 20936} >&5 20937 20938_ACEOF 20939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20940# 20941# INIT-COMMANDS 20942# 20943AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20944 20945 20946# The HP-UX ksh and POSIX shell print the target directory to stdout 20947# if CDPATH is set. 20948(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20949 20950sed_quote_subst='$sed_quote_subst' 20951double_quote_subst='$double_quote_subst' 20952delay_variable_subst='$delay_variable_subst' 20953macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20954macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20955enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20956enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20957pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20958enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20959shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20960SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20961ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20962PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20963host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20964host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20965host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20966build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20967build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20968build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20969SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20970Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20971GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20972EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20973FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20974LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20975NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20976LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20977max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20978ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20979exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20980lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20981lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20982lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20983lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20984lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20985reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20986reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20987FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20988OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20989deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20990file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20991file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20992want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20993DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20994sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20995AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20996lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20997AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20998archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20999STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21000RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21001old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21002old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21003old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21004lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21005CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21006CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21007compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21008GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21009lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21010lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21011lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21012lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21013lt_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"`' 21014lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21015nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21016lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21017lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21018objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21019MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21020lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21021lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21022lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21023lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21024lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21025need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21026MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21027DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21028NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21029LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21030OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21031OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21032libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21033shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21034extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21035archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21036enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21037export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21038whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21039compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21040old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21041old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21042archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21043archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21044module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21045module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21046with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21047allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21048no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21049hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21050hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21051hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21052hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21053hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21054hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21055hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21056inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21057link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21058always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21059export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21060exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21061include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21062prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21063postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21064file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21065variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21066need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21067need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21068version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21069runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21070shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21071shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21072libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21073library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21074soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21075install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21076postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21077postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21078finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21079finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21080hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21081sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21082configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21083configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21084hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21085enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21086enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21087enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21088old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21089striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21090 21091LTCC='$LTCC' 21092LTCFLAGS='$LTCFLAGS' 21093compiler='$compiler_DEFAULT' 21094 21095# A function that is used when there is no print builtin or printf. 21096func_fallback_echo () 21097{ 21098 eval 'cat <<_LTECHO_EOF 21099\$1 21100_LTECHO_EOF' 21101} 21102 21103# Quote evaled strings. 21104for var in SHELL \ 21105ECHO \ 21106PATH_SEPARATOR \ 21107SED \ 21108GREP \ 21109EGREP \ 21110FGREP \ 21111LD \ 21112NM \ 21113LN_S \ 21114lt_SP2NL \ 21115lt_NL2SP \ 21116reload_flag \ 21117FILECMD \ 21118OBJDUMP \ 21119deplibs_check_method \ 21120file_magic_cmd \ 21121file_magic_glob \ 21122want_nocaseglob \ 21123DLLTOOL \ 21124sharedlib_from_linklib_cmd \ 21125AR \ 21126archiver_list_spec \ 21127STRIP \ 21128RANLIB \ 21129CC \ 21130CFLAGS \ 21131compiler \ 21132lt_cv_sys_global_symbol_pipe \ 21133lt_cv_sys_global_symbol_to_cdecl \ 21134lt_cv_sys_global_symbol_to_import \ 21135lt_cv_sys_global_symbol_to_c_name_address \ 21136lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21137lt_cv_nm_interface \ 21138nm_file_list_spec \ 21139lt_cv_truncate_bin \ 21140lt_prog_compiler_no_builtin_flag \ 21141lt_prog_compiler_pic \ 21142lt_prog_compiler_wl \ 21143lt_prog_compiler_static \ 21144lt_cv_prog_compiler_c_o \ 21145need_locks \ 21146MANIFEST_TOOL \ 21147DSYMUTIL \ 21148NMEDIT \ 21149LIPO \ 21150OTOOL \ 21151OTOOL64 \ 21152shrext_cmds \ 21153export_dynamic_flag_spec \ 21154whole_archive_flag_spec \ 21155compiler_needs_object \ 21156with_gnu_ld \ 21157allow_undefined_flag \ 21158no_undefined_flag \ 21159hardcode_libdir_flag_spec \ 21160hardcode_libdir_separator \ 21161exclude_expsyms \ 21162include_expsyms \ 21163file_list_spec \ 21164variables_saved_for_relink \ 21165libname_spec \ 21166library_names_spec \ 21167soname_spec \ 21168install_override_mode \ 21169finish_eval \ 21170old_striplib \ 21171striplib; do 21172 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21173 *[\\\\\\\`\\"\\\$]*) 21174 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21175 ;; 21176 *) 21177 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21178 ;; 21179 esac 21180done 21181 21182# Double-quote double-evaled strings. 21183for var in reload_cmds \ 21184old_postinstall_cmds \ 21185old_postuninstall_cmds \ 21186old_archive_cmds \ 21187extract_expsyms_cmds \ 21188old_archive_from_new_cmds \ 21189old_archive_from_expsyms_cmds \ 21190archive_cmds \ 21191archive_expsym_cmds \ 21192module_cmds \ 21193module_expsym_cmds \ 21194export_symbols_cmds \ 21195prelink_cmds \ 21196postlink_cmds \ 21197postinstall_cmds \ 21198postuninstall_cmds \ 21199finish_cmds \ 21200sys_lib_search_path_spec \ 21201configure_time_dlsearch_path \ 21202configure_time_lt_sys_library_path; do 21203 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21204 *[\\\\\\\`\\"\\\$]*) 21205 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21206 ;; 21207 *) 21208 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21209 ;; 21210 esac 21211done 21212 21213ac_aux_dir='$ac_aux_dir' 21214 21215# See if we are running on zsh, and set the options that allow our 21216# commands through without removal of \ escapes INIT. 21217if test -n "\${ZSH_VERSION+set}"; then 21218 setopt NO_GLOB_SUBST 21219fi 21220 21221 21222 PACKAGE='$PACKAGE' 21223 VERSION='$VERSION' 21224 RM='$RM' 21225 ofile='$ofile' 21226 21227 21228 21229 21230_ACEOF 21231 21232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21233 21234# Handling of arguments. 21235for ac_config_target in $ac_config_targets 21236do 21237 case $ac_config_target in 21238 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21239 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21240 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21241 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21242 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21243 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21244 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;; 21245 21246 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21247 esac 21248done 21249 21250 21251# If the user did not use the arguments to specify the items to instantiate, 21252# then the envvar interface is used. Set only those that are not. 21253# We use the long form for the default assignment because of an extremely 21254# bizarre bug on SunOS 4.1.3. 21255if $ac_need_defaults; then 21256 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21257 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21258 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21259fi 21260 21261# Have a temporary directory for convenience. Make it in the build tree 21262# simply because there is no reason against having it here, and in addition, 21263# creating and moving files from /tmp can sometimes cause problems. 21264# Hook for its removal unless debugging. 21265# Note that there is a small window in which the directory will not be cleaned: 21266# after its creation but before its name has been assigned to `$tmp'. 21267$debug || 21268{ 21269 tmp= ac_tmp= 21270 trap 'exit_status=$? 21271 : "${ac_tmp:=$tmp}" 21272 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21273' 0 21274 trap 'as_fn_exit 1' 1 2 13 15 21275} 21276# Create a (secure) tmp directory for tmp files. 21277 21278{ 21279 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21280 test -d "$tmp" 21281} || 21282{ 21283 tmp=./conf$$-$RANDOM 21284 (umask 077 && mkdir "$tmp") 21285} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21286ac_tmp=$tmp 21287 21288# Set up the scripts for CONFIG_FILES section. 21289# No need to generate them if there are no CONFIG_FILES. 21290# This happens for instance with `./config.status config.h'. 21291if test -n "$CONFIG_FILES"; then 21292 21293 21294ac_cr=`echo X | tr X '\015'` 21295# On cygwin, bash can eat \r inside `` if the user requested igncr. 21296# But we know of no other shell where ac_cr would be empty at this 21297# point, so we can use a bashism as a fallback. 21298if test "x$ac_cr" = x; then 21299 eval ac_cr=\$\'\\r\' 21300fi 21301ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21302if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21303 ac_cs_awk_cr='\\r' 21304else 21305 ac_cs_awk_cr=$ac_cr 21306fi 21307 21308echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21309_ACEOF 21310 21311 21312{ 21313 echo "cat >conf$$subs.awk <<_ACEOF" && 21314 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21315 echo "_ACEOF" 21316} >conf$$subs.sh || 21317 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21318ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21319ac_delim='%!_!# ' 21320for ac_last_try in false false false false false :; do 21321 . ./conf$$subs.sh || 21322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21323 21324 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21325 if test $ac_delim_n = $ac_delim_num; then 21326 break 21327 elif $ac_last_try; then 21328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21329 else 21330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21331 fi 21332done 21333rm -f conf$$subs.sh 21334 21335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21336cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21337_ACEOF 21338sed -n ' 21339h 21340s/^/S["/; s/!.*/"]=/ 21341p 21342g 21343s/^[^!]*!// 21344:repl 21345t repl 21346s/'"$ac_delim"'$// 21347t delim 21348:nl 21349h 21350s/\(.\{148\}\)..*/\1/ 21351t more1 21352s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21353p 21354n 21355b repl 21356:more1 21357s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21358p 21359g 21360s/.\{148\}// 21361t nl 21362:delim 21363h 21364s/\(.\{148\}\)..*/\1/ 21365t more2 21366s/["\\]/\\&/g; s/^/"/; s/$/"/ 21367p 21368b 21369:more2 21370s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21371p 21372g 21373s/.\{148\}// 21374t delim 21375' <conf$$subs.awk | sed ' 21376/^[^""]/{ 21377 N 21378 s/\n// 21379} 21380' >>$CONFIG_STATUS || ac_write_fail=1 21381rm -f conf$$subs.awk 21382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21383_ACAWK 21384cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21385 for (key in S) S_is_set[key] = 1 21386 FS = "" 21387 21388} 21389{ 21390 line = $ 0 21391 nfields = split(line, field, "@") 21392 substed = 0 21393 len = length(field[1]) 21394 for (i = 2; i < nfields; i++) { 21395 key = field[i] 21396 keylen = length(key) 21397 if (S_is_set[key]) { 21398 value = S[key] 21399 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21400 len += length(value) + length(field[++i]) 21401 substed = 1 21402 } else 21403 len += 1 + keylen 21404 } 21405 21406 print line 21407} 21408 21409_ACAWK 21410_ACEOF 21411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21412if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21413 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21414else 21415 cat 21416fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21417 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21418_ACEOF 21419 21420# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21421# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21422# trailing colons and then remove the whole line if VPATH becomes empty 21423# (actually we leave an empty line to preserve line numbers). 21424if test "x$srcdir" = x.; then 21425 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21426h 21427s/// 21428s/^/:/ 21429s/[ ]*$/:/ 21430s/:\$(srcdir):/:/g 21431s/:\${srcdir}:/:/g 21432s/:@srcdir@:/:/g 21433s/^:*// 21434s/:*$// 21435x 21436s/\(=[ ]*\).*/\1/ 21437G 21438s/\n// 21439s/^[^=]*=[ ]*$// 21440}' 21441fi 21442 21443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21444fi # test -n "$CONFIG_FILES" 21445 21446# Set up the scripts for CONFIG_HEADERS section. 21447# No need to generate them if there are no CONFIG_HEADERS. 21448# This happens for instance with `./config.status Makefile'. 21449if test -n "$CONFIG_HEADERS"; then 21450cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21451BEGIN { 21452_ACEOF 21453 21454# Transform confdefs.h into an awk script `defines.awk', embedded as 21455# here-document in config.status, that substitutes the proper values into 21456# config.h.in to produce config.h. 21457 21458# Create a delimiter string that does not exist in confdefs.h, to ease 21459# handling of long lines. 21460ac_delim='%!_!# ' 21461for ac_last_try in false false :; do 21462 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21463 if test -z "$ac_tt"; then 21464 break 21465 elif $ac_last_try; then 21466 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21467 else 21468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21469 fi 21470done 21471 21472# For the awk script, D is an array of macro values keyed by name, 21473# likewise P contains macro parameters if any. Preserve backslash 21474# newline sequences. 21475 21476ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21477sed -n ' 21478s/.\{148\}/&'"$ac_delim"'/g 21479t rset 21480:rset 21481s/^[ ]*#[ ]*define[ ][ ]*/ / 21482t def 21483d 21484:def 21485s/\\$// 21486t bsnl 21487s/["\\]/\\&/g 21488s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21489D["\1"]=" \3"/p 21490s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21491d 21492:bsnl 21493s/["\\]/\\&/g 21494s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21495D["\1"]=" \3\\\\\\n"\\/p 21496t cont 21497s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21498t cont 21499d 21500:cont 21501n 21502s/.\{148\}/&'"$ac_delim"'/g 21503t clear 21504:clear 21505s/\\$// 21506t bsnlc 21507s/["\\]/\\&/g; s/^/"/; s/$/"/p 21508d 21509:bsnlc 21510s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21511b cont 21512' <confdefs.h | sed ' 21513s/'"$ac_delim"'/"\\\ 21514"/g' >>$CONFIG_STATUS || ac_write_fail=1 21515 21516cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21517 for (key in D) D_is_set[key] = 1 21518 FS = "" 21519} 21520/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21521 line = \$ 0 21522 split(line, arg, " ") 21523 if (arg[1] == "#") { 21524 defundef = arg[2] 21525 mac1 = arg[3] 21526 } else { 21527 defundef = substr(arg[1], 2) 21528 mac1 = arg[2] 21529 } 21530 split(mac1, mac2, "(") #) 21531 macro = mac2[1] 21532 prefix = substr(line, 1, index(line, defundef) - 1) 21533 if (D_is_set[macro]) { 21534 # Preserve the white space surrounding the "#". 21535 print prefix "define", macro P[macro] D[macro] 21536 next 21537 } else { 21538 # Replace #undef with comments. This is necessary, for example, 21539 # in the case of _POSIX_SOURCE, which is predefined and required 21540 # on some systems where configure will not decide to define it. 21541 if (defundef == "undef") { 21542 print "/*", prefix defundef, macro, "*/" 21543 next 21544 } 21545 } 21546} 21547{ print } 21548_ACAWK 21549_ACEOF 21550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21551 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21552fi # test -n "$CONFIG_HEADERS" 21553 21554 21555eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21556shift 21557for ac_tag 21558do 21559 case $ac_tag in 21560 :[FHLC]) ac_mode=$ac_tag; continue;; 21561 esac 21562 case $ac_mode$ac_tag in 21563 :[FHL]*:*);; 21564 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21565 :[FH]-) ac_tag=-:-;; 21566 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21567 esac 21568 ac_save_IFS=$IFS 21569 IFS=: 21570 set x $ac_tag 21571 IFS=$ac_save_IFS 21572 shift 21573 ac_file=$1 21574 shift 21575 21576 case $ac_mode in 21577 :L) ac_source=$1;; 21578 :[FH]) 21579 ac_file_inputs= 21580 for ac_f 21581 do 21582 case $ac_f in 21583 -) ac_f="$ac_tmp/stdin";; 21584 *) # Look for the file first in the build tree, then in the source tree 21585 # (if the path is not absolute). The absolute path cannot be DOS-style, 21586 # because $ac_f cannot contain `:'. 21587 test -f "$ac_f" || 21588 case $ac_f in 21589 [\\/$]*) false;; 21590 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21591 esac || 21592 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21593 esac 21594 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21595 as_fn_append ac_file_inputs " '$ac_f'" 21596 done 21597 21598 # Let's still pretend it is `configure' which instantiates (i.e., don't 21599 # use $as_me), people would be surprised to read: 21600 # /* config.h. Generated by config.status. */ 21601 configure_input='Generated from '` 21602 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21603 `' by configure.' 21604 if test x"$ac_file" != x-; then 21605 configure_input="$ac_file. $configure_input" 21606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21607printf "%s\n" "$as_me: creating $ac_file" >&6;} 21608 fi 21609 # Neutralize special characters interpreted by sed in replacement strings. 21610 case $configure_input in #( 21611 *\&* | *\|* | *\\* ) 21612 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21613 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21614 *) ac_sed_conf_input=$configure_input;; 21615 esac 21616 21617 case $ac_tag in 21618 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21619 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21620 esac 21621 ;; 21622 esac 21623 21624 ac_dir=`$as_dirname -- "$ac_file" || 21625$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21626 X"$ac_file" : 'X\(//\)[^/]' \| \ 21627 X"$ac_file" : 'X\(//\)$' \| \ 21628 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21629printf "%s\n" X"$ac_file" | 21630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21631 s//\1/ 21632 q 21633 } 21634 /^X\(\/\/\)[^/].*/{ 21635 s//\1/ 21636 q 21637 } 21638 /^X\(\/\/\)$/{ 21639 s//\1/ 21640 q 21641 } 21642 /^X\(\/\).*/{ 21643 s//\1/ 21644 q 21645 } 21646 s/.*/./; q'` 21647 as_dir="$ac_dir"; as_fn_mkdir_p 21648 ac_builddir=. 21649 21650case "$ac_dir" in 21651.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21652*) 21653 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21654 # A ".." for each directory in $ac_dir_suffix. 21655 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21656 case $ac_top_builddir_sub in 21657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21659 esac ;; 21660esac 21661ac_abs_top_builddir=$ac_pwd 21662ac_abs_builddir=$ac_pwd$ac_dir_suffix 21663# for backward compatibility: 21664ac_top_builddir=$ac_top_build_prefix 21665 21666case $srcdir in 21667 .) # We are building in place. 21668 ac_srcdir=. 21669 ac_top_srcdir=$ac_top_builddir_sub 21670 ac_abs_top_srcdir=$ac_pwd ;; 21671 [\\/]* | ?:[\\/]* ) # Absolute name. 21672 ac_srcdir=$srcdir$ac_dir_suffix; 21673 ac_top_srcdir=$srcdir 21674 ac_abs_top_srcdir=$srcdir ;; 21675 *) # Relative name. 21676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21677 ac_top_srcdir=$ac_top_build_prefix$srcdir 21678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21679esac 21680ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21681 21682 21683 case $ac_mode in 21684 :F) 21685 # 21686 # CONFIG_FILE 21687 # 21688 21689 case $INSTALL in 21690 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21691 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21692 esac 21693 ac_MKDIR_P=$MKDIR_P 21694 case $MKDIR_P in 21695 [\\/$]* | ?:[\\/]* ) ;; 21696 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21697 esac 21698_ACEOF 21699 21700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21701# If the template does not know about datarootdir, expand it. 21702# FIXME: This hack should be removed a few years after 2.60. 21703ac_datarootdir_hack=; ac_datarootdir_seen= 21704ac_sed_dataroot=' 21705/datarootdir/ { 21706 p 21707 q 21708} 21709/@datadir@/p 21710/@docdir@/p 21711/@infodir@/p 21712/@localedir@/p 21713/@mandir@/p' 21714case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21715*datarootdir*) ac_datarootdir_seen=yes;; 21716*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21718printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21719_ACEOF 21720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21721 ac_datarootdir_hack=' 21722 s&@datadir@&$datadir&g 21723 s&@docdir@&$docdir&g 21724 s&@infodir@&$infodir&g 21725 s&@localedir@&$localedir&g 21726 s&@mandir@&$mandir&g 21727 s&\\\${datarootdir}&$datarootdir&g' ;; 21728esac 21729_ACEOF 21730 21731# Neutralize VPATH when `$srcdir' = `.'. 21732# Shell code in configure.ac might set extrasub. 21733# FIXME: do we really want to maintain this feature? 21734cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21735ac_sed_extra="$ac_vpsub 21736$extrasub 21737_ACEOF 21738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21739:t 21740/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21741s|@configure_input@|$ac_sed_conf_input|;t t 21742s&@top_builddir@&$ac_top_builddir_sub&;t t 21743s&@top_build_prefix@&$ac_top_build_prefix&;t t 21744s&@srcdir@&$ac_srcdir&;t t 21745s&@abs_srcdir@&$ac_abs_srcdir&;t t 21746s&@top_srcdir@&$ac_top_srcdir&;t t 21747s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21748s&@builddir@&$ac_builddir&;t t 21749s&@abs_builddir@&$ac_abs_builddir&;t t 21750s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21751s&@INSTALL@&$ac_INSTALL&;t t 21752s&@MKDIR_P@&$ac_MKDIR_P&;t t 21753$ac_datarootdir_hack 21754" 21755eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21756 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21757 21758test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21759 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21760 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21761 "$ac_tmp/out"`; test -z "$ac_out"; } && 21762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21763which seems to be undefined. Please make sure it is defined" >&5 21764printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21765which seems to be undefined. Please make sure it is defined" >&2;} 21766 21767 rm -f "$ac_tmp/stdin" 21768 case $ac_file in 21769 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21770 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21771 esac \ 21772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21773 ;; 21774 :H) 21775 # 21776 # CONFIG_HEADER 21777 # 21778 if test x"$ac_file" != x-; then 21779 { 21780 printf "%s\n" "/* $configure_input */" >&1 \ 21781 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21782 } >"$ac_tmp/config.h" \ 21783 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21784 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21786printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21787 else 21788 rm -f "$ac_file" 21789 mv "$ac_tmp/config.h" "$ac_file" \ 21790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21791 fi 21792 else 21793 printf "%s\n" "/* $configure_input */" >&1 \ 21794 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21795 || as_fn_error $? "could not create -" "$LINENO" 5 21796 fi 21797# Compute "$ac_file"'s index in $config_headers. 21798_am_arg="$ac_file" 21799_am_stamp_count=1 21800for _am_header in $config_headers :; do 21801 case $_am_header in 21802 $_am_arg | $_am_arg:* ) 21803 break ;; 21804 * ) 21805 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21806 esac 21807done 21808echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21809$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21810 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21811 X"$_am_arg" : 'X\(//\)$' \| \ 21812 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21813printf "%s\n" X"$_am_arg" | 21814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21815 s//\1/ 21816 q 21817 } 21818 /^X\(\/\/\)[^/].*/{ 21819 s//\1/ 21820 q 21821 } 21822 /^X\(\/\/\)$/{ 21823 s//\1/ 21824 q 21825 } 21826 /^X\(\/\).*/{ 21827 s//\1/ 21828 q 21829 } 21830 s/.*/./; q'`/stamp-h$_am_stamp_count 21831 ;; 21832 21833 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21834printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21835 ;; 21836 esac 21837 21838 21839 case $ac_file$ac_mode in 21840 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21841 # Older Autoconf quotes --file arguments for eval, but not when files 21842 # are listed without --file. Let's play safe and only enable the eval 21843 # if we detect the quoting. 21844 # TODO: see whether this extra hack can be removed once we start 21845 # requiring Autoconf 2.70 or later. 21846 case $CONFIG_FILES in #( 21847 *\'*) : 21848 eval set x "$CONFIG_FILES" ;; #( 21849 *) : 21850 set x $CONFIG_FILES ;; #( 21851 *) : 21852 ;; 21853esac 21854 shift 21855 # Used to flag and report bootstrapping failures. 21856 am_rc=0 21857 for am_mf 21858 do 21859 # Strip MF so we end up with the name of the file. 21860 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21861 # Check whether this is an Automake generated Makefile which includes 21862 # dependency-tracking related rules and includes. 21863 # Grep'ing the whole file directly is not great: AIX grep has a line 21864 # limit of 2048, but all sed's we know have understand at least 4000. 21865 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21866 || continue 21867 am_dirpart=`$as_dirname -- "$am_mf" || 21868$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21869 X"$am_mf" : 'X\(//\)[^/]' \| \ 21870 X"$am_mf" : 'X\(//\)$' \| \ 21871 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21872printf "%s\n" X"$am_mf" | 21873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21874 s//\1/ 21875 q 21876 } 21877 /^X\(\/\/\)[^/].*/{ 21878 s//\1/ 21879 q 21880 } 21881 /^X\(\/\/\)$/{ 21882 s//\1/ 21883 q 21884 } 21885 /^X\(\/\).*/{ 21886 s//\1/ 21887 q 21888 } 21889 s/.*/./; q'` 21890 am_filepart=`$as_basename -- "$am_mf" || 21891$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21892 X"$am_mf" : 'X\(//\)$' \| \ 21893 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21894printf "%s\n" X/"$am_mf" | 21895 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21896 s//\1/ 21897 q 21898 } 21899 /^X\/\(\/\/\)$/{ 21900 s//\1/ 21901 q 21902 } 21903 /^X\/\(\/\).*/{ 21904 s//\1/ 21905 q 21906 } 21907 s/.*/./; q'` 21908 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21909 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21910 | $MAKE -f - am--depfiles" >&5 21911 (cd "$am_dirpart" \ 21912 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21913 | $MAKE -f - am--depfiles) >&5 2>&5 21914 ac_status=$? 21915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21916 (exit $ac_status); } || am_rc=$? 21917 done 21918 if test $am_rc -ne 0; then 21919 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21920printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21921as_fn_error $? "Something went wrong bootstrapping makefile fragments 21922 for automatic dependency tracking. If GNU make was not used, consider 21923 re-running the configure script with MAKE=\"gmake\" (or whatever is 21924 necessary). You can also try re-running configure with the 21925 '--disable-dependency-tracking' option to at least be able to build 21926 the package (albeit without support for automatic dependency tracking). 21927See \`config.log' for more details" "$LINENO" 5; } 21928 fi 21929 { am_dirpart=; unset am_dirpart;} 21930 { am_filepart=; unset am_filepart;} 21931 { am_mf=; unset am_mf;} 21932 { am_rc=; unset am_rc;} 21933 rm -f conftest-deps.mk 21934} 21935 ;; 21936 "libtool":C) 21937 21938 # See if we are running on zsh, and set the options that allow our 21939 # commands through without removal of \ escapes. 21940 if test -n "${ZSH_VERSION+set}"; then 21941 setopt NO_GLOB_SUBST 21942 fi 21943 21944 cfgfile=${ofile}T 21945 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21946 $RM "$cfgfile" 21947 21948 cat <<_LT_EOF >> "$cfgfile" 21949#! $SHELL 21950# Generated automatically by $as_me ($PACKAGE) $VERSION 21951# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21952# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21953 21954# Provide generalized library-building support services. 21955# Written by Gordon Matzigkeit, 1996 21956 21957# Copyright (C) 2014 Free Software Foundation, Inc. 21958# This is free software; see the source for copying conditions. There is NO 21959# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21960 21961# GNU Libtool is free software; you can redistribute it and/or modify 21962# it under the terms of the GNU General Public License as published by 21963# the Free Software Foundation; either version 2 of of the License, or 21964# (at your option) any later version. 21965# 21966# As a special exception to the GNU General Public License, if you 21967# distribute this file as part of a program or library that is built 21968# using GNU Libtool, you may include this file under the same 21969# distribution terms that you use for the rest of that program. 21970# 21971# GNU Libtool is distributed in the hope that it will be useful, but 21972# WITHOUT ANY WARRANTY; without even the implied warranty of 21973# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21974# GNU General Public License for more details. 21975# 21976# You should have received a copy of the GNU General Public License 21977# along with this program. If not, see <http://www.gnu.org/licenses/>. 21978 21979 21980# The names of the tagged configurations supported by this script. 21981available_tags='' 21982 21983# Configured defaults for sys_lib_dlsearch_path munging. 21984: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21985 21986# ### BEGIN LIBTOOL CONFIG 21987 21988# Which release of libtool.m4 was used? 21989macro_version=$macro_version 21990macro_revision=$macro_revision 21991 21992# Whether or not to build shared libraries. 21993build_libtool_libs=$enable_shared 21994 21995# Whether or not to build static libraries. 21996build_old_libs=$enable_static 21997 21998# What type of objects to build. 21999pic_mode=$pic_mode 22000 22001# Whether or not to optimize for fast installation. 22002fast_install=$enable_fast_install 22003 22004# Shared archive member basename,for filename based shared library versioning on AIX. 22005shared_archive_member_spec=$shared_archive_member_spec 22006 22007# Shell to use when invoking shell scripts. 22008SHELL=$lt_SHELL 22009 22010# An echo program that protects backslashes. 22011ECHO=$lt_ECHO 22012 22013# The PATH separator for the build system. 22014PATH_SEPARATOR=$lt_PATH_SEPARATOR 22015 22016# The host system. 22017host_alias=$host_alias 22018host=$host 22019host_os=$host_os 22020 22021# The build system. 22022build_alias=$build_alias 22023build=$build 22024build_os=$build_os 22025 22026# A sed program that does not truncate output. 22027SED=$lt_SED 22028 22029# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22030Xsed="\$SED -e 1s/^X//" 22031 22032# A grep program that handles long lines. 22033GREP=$lt_GREP 22034 22035# An ERE matcher. 22036EGREP=$lt_EGREP 22037 22038# A literal string matcher. 22039FGREP=$lt_FGREP 22040 22041# A BSD- or MS-compatible name lister. 22042NM=$lt_NM 22043 22044# Whether we need soft or hard links. 22045LN_S=$lt_LN_S 22046 22047# What is the maximum length of a command? 22048max_cmd_len=$max_cmd_len 22049 22050# Object file suffix (normally "o"). 22051objext=$ac_objext 22052 22053# Executable file suffix (normally ""). 22054exeext=$exeext 22055 22056# whether the shell understands "unset". 22057lt_unset=$lt_unset 22058 22059# turn spaces into newlines. 22060SP2NL=$lt_lt_SP2NL 22061 22062# turn newlines into spaces. 22063NL2SP=$lt_lt_NL2SP 22064 22065# convert \$build file names to \$host format. 22066to_host_file_cmd=$lt_cv_to_host_file_cmd 22067 22068# convert \$build files to toolchain format. 22069to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22070 22071# A file(cmd) program that detects file types. 22072FILECMD=$lt_FILECMD 22073 22074# An object symbol dumper. 22075OBJDUMP=$lt_OBJDUMP 22076 22077# Method to check whether dependent libraries are shared objects. 22078deplibs_check_method=$lt_deplibs_check_method 22079 22080# Command to use when deplibs_check_method = "file_magic". 22081file_magic_cmd=$lt_file_magic_cmd 22082 22083# How to find potential files when deplibs_check_method = "file_magic". 22084file_magic_glob=$lt_file_magic_glob 22085 22086# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22087want_nocaseglob=$lt_want_nocaseglob 22088 22089# DLL creation program. 22090DLLTOOL=$lt_DLLTOOL 22091 22092# Command to associate shared and link libraries. 22093sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22094 22095# The archiver. 22096AR=$lt_AR 22097 22098# Flags to create an archive (by configure). 22099lt_ar_flags=$lt_ar_flags 22100 22101# Flags to create an archive. 22102AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22103 22104# How to feed a file listing to the archiver. 22105archiver_list_spec=$lt_archiver_list_spec 22106 22107# A symbol stripping program. 22108STRIP=$lt_STRIP 22109 22110# Commands used to install an old-style archive. 22111RANLIB=$lt_RANLIB 22112old_postinstall_cmds=$lt_old_postinstall_cmds 22113old_postuninstall_cmds=$lt_old_postuninstall_cmds 22114 22115# Whether to use a lock for old archive extraction. 22116lock_old_archive_extraction=$lock_old_archive_extraction 22117 22118# A C compiler. 22119LTCC=$lt_CC 22120 22121# LTCC compiler flags. 22122LTCFLAGS=$lt_CFLAGS 22123 22124# Take the output of nm and produce a listing of raw symbols and C names. 22125global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22126 22127# Transform the output of nm in a proper C declaration. 22128global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22129 22130# Transform the output of nm into a list of symbols to manually relocate. 22131global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22132 22133# Transform the output of nm in a C name address pair. 22134global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22135 22136# Transform the output of nm in a C name address pair when lib prefix is needed. 22137global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22138 22139# The name lister interface. 22140nm_interface=$lt_lt_cv_nm_interface 22141 22142# Specify filename containing input files for \$NM. 22143nm_file_list_spec=$lt_nm_file_list_spec 22144 22145# The root where to search for dependent libraries,and where our libraries should be installed. 22146lt_sysroot=$lt_sysroot 22147 22148# Command to truncate a binary pipe. 22149lt_truncate_bin=$lt_lt_cv_truncate_bin 22150 22151# The name of the directory that contains temporary libtool files. 22152objdir=$objdir 22153 22154# Used to examine libraries when file_magic_cmd begins with "file". 22155MAGIC_CMD=$MAGIC_CMD 22156 22157# Must we lock files when doing compilation? 22158need_locks=$lt_need_locks 22159 22160# Manifest tool. 22161MANIFEST_TOOL=$lt_MANIFEST_TOOL 22162 22163# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22164DSYMUTIL=$lt_DSYMUTIL 22165 22166# Tool to change global to local symbols on Mac OS X. 22167NMEDIT=$lt_NMEDIT 22168 22169# Tool to manipulate fat objects and archives on Mac OS X. 22170LIPO=$lt_LIPO 22171 22172# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22173OTOOL=$lt_OTOOL 22174 22175# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22176OTOOL64=$lt_OTOOL64 22177 22178# Old archive suffix (normally "a"). 22179libext=$libext 22180 22181# Shared library suffix (normally ".so"). 22182shrext_cmds=$lt_shrext_cmds 22183 22184# The commands to extract the exported symbol list from a shared archive. 22185extract_expsyms_cmds=$lt_extract_expsyms_cmds 22186 22187# Variables whose values should be saved in libtool wrapper scripts and 22188# restored at link time. 22189variables_saved_for_relink=$lt_variables_saved_for_relink 22190 22191# Do we need the "lib" prefix for modules? 22192need_lib_prefix=$need_lib_prefix 22193 22194# Do we need a version for libraries? 22195need_version=$need_version 22196 22197# Library versioning type. 22198version_type=$version_type 22199 22200# Shared library runtime path variable. 22201runpath_var=$runpath_var 22202 22203# Shared library path variable. 22204shlibpath_var=$shlibpath_var 22205 22206# Is shlibpath searched before the hard-coded library search path? 22207shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22208 22209# Format of library name prefix. 22210libname_spec=$lt_libname_spec 22211 22212# List of archive names. First name is the real one, the rest are links. 22213# The last name is the one that the linker finds with -lNAME 22214library_names_spec=$lt_library_names_spec 22215 22216# The coded name of the library, if different from the real name. 22217soname_spec=$lt_soname_spec 22218 22219# Permission mode override for installation of shared libraries. 22220install_override_mode=$lt_install_override_mode 22221 22222# Command to use after installation of a shared archive. 22223postinstall_cmds=$lt_postinstall_cmds 22224 22225# Command to use after uninstallation of a shared archive. 22226postuninstall_cmds=$lt_postuninstall_cmds 22227 22228# Commands used to finish a libtool library installation in a directory. 22229finish_cmds=$lt_finish_cmds 22230 22231# As "finish_cmds", except a single script fragment to be evaled but 22232# not shown. 22233finish_eval=$lt_finish_eval 22234 22235# Whether we should hardcode library paths into libraries. 22236hardcode_into_libs=$hardcode_into_libs 22237 22238# Compile-time system search path for libraries. 22239sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22240 22241# Detected run-time system search path for libraries. 22242sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22243 22244# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22245configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22246 22247# Whether dlopen is supported. 22248dlopen_support=$enable_dlopen 22249 22250# Whether dlopen of programs is supported. 22251dlopen_self=$enable_dlopen_self 22252 22253# Whether dlopen of statically linked programs is supported. 22254dlopen_self_static=$enable_dlopen_self_static 22255 22256# Commands to strip libraries. 22257old_striplib=$lt_old_striplib 22258striplib=$lt_striplib 22259 22260 22261# The linker used to build libraries. 22262LD=$lt_LD 22263 22264# How to create reloadable object files. 22265reload_flag=$lt_reload_flag 22266reload_cmds=$lt_reload_cmds 22267 22268# Commands used to build an old-style archive. 22269old_archive_cmds=$lt_old_archive_cmds 22270 22271# A language specific compiler. 22272CC=$lt_compiler 22273 22274# Is the compiler the GNU compiler? 22275with_gcc=$GCC 22276 22277# Compiler flag to turn off builtin functions. 22278no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22279 22280# Additional compiler flags for building library objects. 22281pic_flag=$lt_lt_prog_compiler_pic 22282 22283# How to pass a linker flag through the compiler. 22284wl=$lt_lt_prog_compiler_wl 22285 22286# Compiler flag to prevent dynamic linking. 22287link_static_flag=$lt_lt_prog_compiler_static 22288 22289# Does compiler simultaneously support -c and -o options? 22290compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22291 22292# Whether or not to add -lc for building shared libraries. 22293build_libtool_need_lc=$archive_cmds_need_lc 22294 22295# Whether or not to disallow shared libs when runtime libs are static. 22296allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22297 22298# Compiler flag to allow reflexive dlopens. 22299export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22300 22301# Compiler flag to generate shared objects directly from archives. 22302whole_archive_flag_spec=$lt_whole_archive_flag_spec 22303 22304# Whether the compiler copes with passing no objects directly. 22305compiler_needs_object=$lt_compiler_needs_object 22306 22307# Create an old-style archive from a shared archive. 22308old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22309 22310# Create a temporary old-style archive to link instead of a shared archive. 22311old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22312 22313# Commands used to build a shared archive. 22314archive_cmds=$lt_archive_cmds 22315archive_expsym_cmds=$lt_archive_expsym_cmds 22316 22317# Commands used to build a loadable module if different from building 22318# a shared archive. 22319module_cmds=$lt_module_cmds 22320module_expsym_cmds=$lt_module_expsym_cmds 22321 22322# Whether we are building with GNU ld or not. 22323with_gnu_ld=$lt_with_gnu_ld 22324 22325# Flag that allows shared libraries with undefined symbols to be built. 22326allow_undefined_flag=$lt_allow_undefined_flag 22327 22328# Flag that enforces no undefined symbols. 22329no_undefined_flag=$lt_no_undefined_flag 22330 22331# Flag to hardcode \$libdir into a binary during linking. 22332# This must work even if \$libdir does not exist 22333hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22334 22335# Whether we need a single "-rpath" flag with a separated argument. 22336hardcode_libdir_separator=$lt_hardcode_libdir_separator 22337 22338# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22339# DIR into the resulting binary. 22340hardcode_direct=$hardcode_direct 22341 22342# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22343# DIR into the resulting binary and the resulting library dependency is 22344# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22345# library is relocated. 22346hardcode_direct_absolute=$hardcode_direct_absolute 22347 22348# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22349# into the resulting binary. 22350hardcode_minus_L=$hardcode_minus_L 22351 22352# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22353# into the resulting binary. 22354hardcode_shlibpath_var=$hardcode_shlibpath_var 22355 22356# Set to "yes" if building a shared library automatically hardcodes DIR 22357# into the library and all subsequent libraries and executables linked 22358# against it. 22359hardcode_automatic=$hardcode_automatic 22360 22361# Set to yes if linker adds runtime paths of dependent libraries 22362# to runtime path list. 22363inherit_rpath=$inherit_rpath 22364 22365# Whether libtool must link a program against all its dependency libraries. 22366link_all_deplibs=$link_all_deplibs 22367 22368# Set to "yes" if exported symbols are required. 22369always_export_symbols=$always_export_symbols 22370 22371# The commands to list exported symbols. 22372export_symbols_cmds=$lt_export_symbols_cmds 22373 22374# Symbols that should not be listed in the preloaded symbols. 22375exclude_expsyms=$lt_exclude_expsyms 22376 22377# Symbols that must always be exported. 22378include_expsyms=$lt_include_expsyms 22379 22380# Commands necessary for linking programs (against libraries) with templates. 22381prelink_cmds=$lt_prelink_cmds 22382 22383# Commands necessary for finishing linking programs. 22384postlink_cmds=$lt_postlink_cmds 22385 22386# Specify filename containing input files. 22387file_list_spec=$lt_file_list_spec 22388 22389# How to hardcode a shared library path into an executable. 22390hardcode_action=$hardcode_action 22391 22392# ### END LIBTOOL CONFIG 22393 22394_LT_EOF 22395 22396 cat <<'_LT_EOF' >> "$cfgfile" 22397 22398# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22399 22400# func_munge_path_list VARIABLE PATH 22401# ----------------------------------- 22402# VARIABLE is name of variable containing _space_ separated list of 22403# directories to be munged by the contents of PATH, which is string 22404# having a format: 22405# "DIR[:DIR]:" 22406# string "DIR[ DIR]" will be prepended to VARIABLE 22407# ":DIR[:DIR]" 22408# string "DIR[ DIR]" will be appended to VARIABLE 22409# "DIRP[:DIRP]::[DIRA:]DIRA" 22410# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22411# "DIRA[ DIRA]" will be appended to VARIABLE 22412# "DIR[:DIR]" 22413# VARIABLE will be replaced by "DIR[ DIR]" 22414func_munge_path_list () 22415{ 22416 case x$2 in 22417 x) 22418 ;; 22419 *:) 22420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22421 ;; 22422 x:*) 22423 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22424 ;; 22425 *::*) 22426 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22427 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22428 ;; 22429 *) 22430 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22431 ;; 22432 esac 22433} 22434 22435 22436# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22437func_cc_basename () 22438{ 22439 for cc_temp in $*""; do 22440 case $cc_temp in 22441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22443 \-*) ;; 22444 *) break;; 22445 esac 22446 done 22447 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22448} 22449 22450 22451# ### END FUNCTIONS SHARED WITH CONFIGURE 22452 22453_LT_EOF 22454 22455 case $host_os in 22456 aix3*) 22457 cat <<\_LT_EOF >> "$cfgfile" 22458# AIX sometimes has problems with the GCC collect2 program. For some 22459# reason, if we set the COLLECT_NAMES environment variable, the problems 22460# vanish in a puff of smoke. 22461if test set != "${COLLECT_NAMES+set}"; then 22462 COLLECT_NAMES= 22463 export COLLECT_NAMES 22464fi 22465_LT_EOF 22466 ;; 22467 esac 22468 22469 22470 22471ltmain=$ac_aux_dir/ltmain.sh 22472 22473 22474 # We use sed instead of cat because bash on DJGPP gets confused if 22475 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22476 # text mode, it properly converts lines to CR/LF. This bash problem 22477 # is reportedly fixed, but why not run on old versions too? 22478 $SED '$q' "$ltmain" >> "$cfgfile" \ 22479 || (rm -f "$cfgfile"; exit 1) 22480 22481 mv -f "$cfgfile" "$ofile" || 22482 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22483 chmod +x "$ofile" 22484 22485 ;; 22486 22487 esac 22488done # for ac_tag 22489 22490 22491as_fn_exit 0 22492_ACEOF 22493ac_clean_files=$ac_clean_files_save 22494 22495test $ac_write_fail = 0 || 22496 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22497 22498 22499# configure is writing to config.log, and then calls config.status. 22500# config.status does its own redirection, appending to config.log. 22501# Unfortunately, on DOS this fails, as config.log is still kept open 22502# by configure, so config.status won't be able to write to it; its 22503# output is simply discarded. So we exec the FD to /dev/null, 22504# effectively closing config.log, so it can be properly (re)opened and 22505# appended to by config.status. When coming back to configure, we 22506# need to make the FD available again. 22507if test "$no_create" != yes; then 22508 ac_cs_success=: 22509 ac_config_status_args= 22510 test "$silent" = yes && 22511 ac_config_status_args="$ac_config_status_args --quiet" 22512 exec 5>/dev/null 22513 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22514 exec 5>>config.log 22515 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22516 # would make configure fail if this is the last instruction. 22517 $ac_cs_success || as_fn_exit 1 22518fi 22519if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22521printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22522fi 22523 22524 22525