configure revision 630e437a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXau 1.0.11. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/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/libxau/-/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='libXau' 624PACKAGE_TARNAME='libXau' 625PACKAGE_VERSION='1.0.11' 626PACKAGE_STRING='libXau 1.0.11' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues' 628PACKAGE_URL='' 629 630ac_unique_file="Makefile.am" 631# Factoring default headers for most tests. 632ac_includes_default="\ 633#include <stddef.h> 634#ifdef HAVE_STDIO_H 635# include <stdio.h> 636#endif 637#ifdef HAVE_STDLIB_H 638# include <stdlib.h> 639#endif 640#ifdef HAVE_STRING_H 641# include <string.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_STRINGS_H 650# include <strings.h> 651#endif 652#ifdef HAVE_SYS_TYPES_H 653# include <sys/types.h> 654#endif 655#ifdef HAVE_SYS_STAT_H 656# include <sys/stat.h> 657#endif 658#ifdef HAVE_UNISTD_H 659# include <unistd.h> 660#endif" 661 662ac_header_c_list= 663ac_subst_vars='am__EXEEXT_FALSE 664am__EXEEXT_TRUE 665LTLIBOBJS 666LIBOBJS 667MAKE_LINT_LIB_FALSE 668MAKE_LINT_LIB_TRUE 669LINTLIB 670LINT_FALSE 671LINT_TRUE 672LINT_FLAGS 673LINT 674XAU_LIBS 675XAU_CFLAGS 676MAN_SUBSTS 677XORG_MAN_PAGE 678ADMIN_MAN_DIR 679DRIVER_MAN_DIR 680MISC_MAN_DIR 681FILE_MAN_DIR 682LIB_MAN_DIR 683APP_MAN_DIR 684ADMIN_MAN_SUFFIX 685DRIVER_MAN_SUFFIX 686MISC_MAN_SUFFIX 687FILE_MAN_SUFFIX 688LIB_MAN_SUFFIX 689APP_MAN_SUFFIX 690INSTALL_CMD 691PKG_CONFIG_LIBDIR 692PKG_CONFIG_PATH 693PKG_CONFIG 694CHANGELOG_CMD 695STRICT_CFLAGS 696CWARNFLAGS 697BASE_CFLAGS 698LT_SYS_LIBRARY_PATH 699OTOOL64 700OTOOL 701LIPO 702NMEDIT 703DSYMUTIL 704MANIFEST_TOOL 705RANLIB 706ac_ct_AR 707AR 708FILECMD 709LN_S 710NM 711ac_ct_DUMPBIN 712DUMPBIN 713LD 714FGREP 715EGREP 716GREP 717SED 718LIBTOOL 719OBJDUMP 720DLLTOOL 721AS 722host_os 723host_vendor 724host_cpu 725host 726build_os 727build_vendor 728build_cpu 729build 730AM_BACKSLASH 731AM_DEFAULT_VERBOSITY 732AM_DEFAULT_V 733AM_V 734CSCOPE 735ETAGS 736CTAGS 737am__fastdepCC_FALSE 738am__fastdepCC_TRUE 739CCDEPMODE 740am__nodep 741AMDEPBACKSLASH 742AMDEP_FALSE 743AMDEP_TRUE 744am__include 745DEPDIR 746am__untar 747am__tar 748AMTAR 749am__leading_dot 750SET_MAKE 751AWK 752mkdir_p 753MKDIR_P 754INSTALL_STRIP_PROGRAM 755STRIP 756install_sh 757MAKEINFO 758AUTOHEADER 759AUTOMAKE 760AUTOCONF 761ACLOCAL 762VERSION 763PACKAGE 764CYGPATH_W 765am__isrc 766INSTALL_DATA 767INSTALL_SCRIPT 768INSTALL_PROGRAM 769OBJEXT 770EXEEXT 771ac_ct_CC 772CPPFLAGS 773LDFLAGS 774CFLAGS 775CC 776target_alias 777host_alias 778build_alias 779LIBS 780ECHO_T 781ECHO_N 782ECHO_C 783DEFS 784mandir 785localedir 786libdir 787psdir 788pdfdir 789dvidir 790htmldir 791infodir 792docdir 793oldincludedir 794includedir 795runstatedir 796localstatedir 797sharedstatedir 798sysconfdir 799datadir 800datarootdir 801libexecdir 802sbindir 803bindir 804program_transform_name 805prefix 806exec_prefix 807PACKAGE_URL 808PACKAGE_BUGREPORT 809PACKAGE_STRING 810PACKAGE_VERSION 811PACKAGE_TARNAME 812PACKAGE_NAME 813PATH_SEPARATOR 814SHELL 815am__quote' 816ac_subst_files='' 817ac_user_opts=' 818enable_option_checking 819enable_dependency_tracking 820enable_silent_rules 821enable_shared 822enable_static 823with_pic 824enable_fast_install 825with_aix_soname 826with_gnu_ld 827with_sysroot 828enable_libtool_lock 829enable_selective_werror 830enable_strict_compilation 831enable_largefile 832enable_xthreads 833with_lint 834enable_lint_library 835' 836 ac_precious_vars='build_alias 837host_alias 838target_alias 839CC 840CFLAGS 841LDFLAGS 842LIBS 843CPPFLAGS 844LT_SYS_LIBRARY_PATH 845PKG_CONFIG 846PKG_CONFIG_PATH 847PKG_CONFIG_LIBDIR 848XAU_CFLAGS 849XAU_LIBS 850LINT 851LINT_FLAGS' 852 853 854# Initialize some variables set by options. 855ac_init_help= 856ac_init_version=false 857ac_unrecognized_opts= 858ac_unrecognized_sep= 859# The variables have the same names as the options, with 860# dashes changed to underlines. 861cache_file=/dev/null 862exec_prefix=NONE 863no_create= 864no_recursion= 865prefix=NONE 866program_prefix=NONE 867program_suffix=NONE 868program_transform_name=s,x,x, 869silent= 870site= 871srcdir= 872verbose= 873x_includes=NONE 874x_libraries=NONE 875 876# Installation directory options. 877# These are left unexpanded so users can "make install exec_prefix=/foo" 878# and all the variables that are supposed to be based on exec_prefix 879# by default will actually change. 880# Use braces instead of parens because sh, perl, etc. also accept them. 881# (The list follows the same order as the GNU Coding Standards.) 882bindir='${exec_prefix}/bin' 883sbindir='${exec_prefix}/sbin' 884libexecdir='${exec_prefix}/libexec' 885datarootdir='${prefix}/share' 886datadir='${datarootdir}' 887sysconfdir='${prefix}/etc' 888sharedstatedir='${prefix}/com' 889localstatedir='${prefix}/var' 890runstatedir='${localstatedir}/run' 891includedir='${prefix}/include' 892oldincludedir='/usr/include' 893docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 894infodir='${datarootdir}/info' 895htmldir='${docdir}' 896dvidir='${docdir}' 897pdfdir='${docdir}' 898psdir='${docdir}' 899libdir='${exec_prefix}/lib' 900localedir='${datarootdir}/locale' 901mandir='${datarootdir}/man' 902 903ac_prev= 904ac_dashdash= 905for ac_option 906do 907 # If the previous option needs an argument, assign it. 908 if test -n "$ac_prev"; then 909 eval $ac_prev=\$ac_option 910 ac_prev= 911 continue 912 fi 913 914 case $ac_option in 915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 916 *=) ac_optarg= ;; 917 *) ac_optarg=yes ;; 918 esac 919 920 case $ac_dashdash$ac_option in 921 --) 922 ac_dashdash=yes ;; 923 924 -bindir | --bindir | --bindi | --bind | --bin | --bi) 925 ac_prev=bindir ;; 926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 927 bindir=$ac_optarg ;; 928 929 -build | --build | --buil | --bui | --bu) 930 ac_prev=build_alias ;; 931 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 932 build_alias=$ac_optarg ;; 933 934 -cache-file | --cache-file | --cache-fil | --cache-fi \ 935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 936 ac_prev=cache_file ;; 937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 939 cache_file=$ac_optarg ;; 940 941 --config-cache | -C) 942 cache_file=config.cache ;; 943 944 -datadir | --datadir | --datadi | --datad) 945 ac_prev=datadir ;; 946 -datadir=* | --datadir=* | --datadi=* | --datad=*) 947 datadir=$ac_optarg ;; 948 949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 950 | --dataroo | --dataro | --datar) 951 ac_prev=datarootdir ;; 952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 954 datarootdir=$ac_optarg ;; 955 956 -disable-* | --disable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: \`$ac_useropt'" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=no ;; 971 972 -docdir | --docdir | --docdi | --doc | --do) 973 ac_prev=docdir ;; 974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 975 docdir=$ac_optarg ;; 976 977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 978 ac_prev=dvidir ;; 979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 980 dvidir=$ac_optarg ;; 981 982 -enable-* | --enable-*) 983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 984 # Reject names that are not valid shell variable names. 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 986 as_fn_error $? "invalid feature name: \`$ac_useropt'" 987 ac_useropt_orig=$ac_useropt 988 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 989 case $ac_user_opts in 990 *" 991"enable_$ac_useropt" 992"*) ;; 993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 994 ac_unrecognized_sep=', ';; 995 esac 996 eval enable_$ac_useropt=\$ac_optarg ;; 997 998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1000 | --exec | --exe | --ex) 1001 ac_prev=exec_prefix ;; 1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1004 | --exec=* | --exe=* | --ex=*) 1005 exec_prefix=$ac_optarg ;; 1006 1007 -gas | --gas | --ga | --g) 1008 # Obsolete; use --with-gas. 1009 with_gas=yes ;; 1010 1011 -help | --help | --hel | --he | -h) 1012 ac_init_help=long ;; 1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1014 ac_init_help=recursive ;; 1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1016 ac_init_help=short ;; 1017 1018 -host | --host | --hos | --ho) 1019 ac_prev=host_alias ;; 1020 -host=* | --host=* | --hos=* | --ho=*) 1021 host_alias=$ac_optarg ;; 1022 1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1024 ac_prev=htmldir ;; 1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1026 | --ht=*) 1027 htmldir=$ac_optarg ;; 1028 1029 -includedir | --includedir | --includedi | --included | --include \ 1030 | --includ | --inclu | --incl | --inc) 1031 ac_prev=includedir ;; 1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1033 | --includ=* | --inclu=* | --incl=* | --inc=*) 1034 includedir=$ac_optarg ;; 1035 1036 -infodir | --infodir | --infodi | --infod | --info | --inf) 1037 ac_prev=infodir ;; 1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1039 infodir=$ac_optarg ;; 1040 1041 -libdir | --libdir | --libdi | --libd) 1042 ac_prev=libdir ;; 1043 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1044 libdir=$ac_optarg ;; 1045 1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1047 | --libexe | --libex | --libe) 1048 ac_prev=libexecdir ;; 1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1050 | --libexe=* | --libex=* | --libe=*) 1051 libexecdir=$ac_optarg ;; 1052 1053 -localedir | --localedir | --localedi | --localed | --locale) 1054 ac_prev=localedir ;; 1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1056 localedir=$ac_optarg ;; 1057 1058 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1059 | --localstate | --localstat | --localsta | --localst | --locals) 1060 ac_prev=localstatedir ;; 1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1063 localstatedir=$ac_optarg ;; 1064 1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1066 ac_prev=mandir ;; 1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1068 mandir=$ac_optarg ;; 1069 1070 -nfp | --nfp | --nf) 1071 # Obsolete; use --without-fp. 1072 with_fp=no ;; 1073 1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1075 | --no-cr | --no-c | -n) 1076 no_create=yes ;; 1077 1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1080 no_recursion=yes ;; 1081 1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1084 | --oldin | --oldi | --old | --ol | --o) 1085 ac_prev=oldincludedir ;; 1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1089 oldincludedir=$ac_optarg ;; 1090 1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1092 ac_prev=prefix ;; 1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1094 prefix=$ac_optarg ;; 1095 1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1097 | --program-pre | --program-pr | --program-p) 1098 ac_prev=program_prefix ;; 1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1101 program_prefix=$ac_optarg ;; 1102 1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1104 | --program-suf | --program-su | --program-s) 1105 ac_prev=program_suffix ;; 1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1108 program_suffix=$ac_optarg ;; 1109 1110 -program-transform-name | --program-transform-name \ 1111 | --program-transform-nam | --program-transform-na \ 1112 | --program-transform-n | --program-transform- \ 1113 | --program-transform | --program-transfor \ 1114 | --program-transfo | --program-transf \ 1115 | --program-trans | --program-tran \ 1116 | --progr-tra | --program-tr | --program-t) 1117 ac_prev=program_transform_name ;; 1118 -program-transform-name=* | --program-transform-name=* \ 1119 | --program-transform-nam=* | --program-transform-na=* \ 1120 | --program-transform-n=* | --program-transform-=* \ 1121 | --program-transform=* | --program-transfor=* \ 1122 | --program-transfo=* | --program-transf=* \ 1123 | --program-trans=* | --program-tran=* \ 1124 | --progr-tra=* | --program-tr=* | --program-t=*) 1125 program_transform_name=$ac_optarg ;; 1126 1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1128 ac_prev=pdfdir ;; 1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1130 pdfdir=$ac_optarg ;; 1131 1132 -psdir | --psdir | --psdi | --psd | --ps) 1133 ac_prev=psdir ;; 1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1135 psdir=$ac_optarg ;; 1136 1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1138 | -silent | --silent | --silen | --sile | --sil) 1139 silent=yes ;; 1140 1141 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1142 | --runstate | --runstat | --runsta | --runst | --runs \ 1143 | --run | --ru | --r) 1144 ac_prev=runstatedir ;; 1145 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1146 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1147 | --run=* | --ru=* | --r=*) 1148 runstatedir=$ac_optarg ;; 1149 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1151 ac_prev=sbindir ;; 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1153 | --sbi=* | --sb=*) 1154 sbindir=$ac_optarg ;; 1155 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1158 | --sharedst | --shareds | --shared | --share | --shar \ 1159 | --sha | --sh) 1160 ac_prev=sharedstatedir ;; 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1164 | --sha=* | --sh=*) 1165 sharedstatedir=$ac_optarg ;; 1166 1167 -site | --site | --sit) 1168 ac_prev=site ;; 1169 -site=* | --site=* | --sit=*) 1170 site=$ac_optarg ;; 1171 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1173 ac_prev=srcdir ;; 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1175 srcdir=$ac_optarg ;; 1176 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1178 | --syscon | --sysco | --sysc | --sys | --sy) 1179 ac_prev=sysconfdir ;; 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1182 sysconfdir=$ac_optarg ;; 1183 1184 -target | --target | --targe | --targ | --tar | --ta | --t) 1185 ac_prev=target_alias ;; 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1187 target_alias=$ac_optarg ;; 1188 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1190 verbose=yes ;; 1191 1192 -version | --version | --versio | --versi | --vers | -V) 1193 ac_init_version=: ;; 1194 1195 -with-* | --with-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: \`$ac_useropt'" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=\$ac_optarg ;; 1210 1211 -without-* | --without-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: \`$ac_useropt'" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=no ;; 1226 1227 --x) 1228 # Obsolete; use --with-x. 1229 with_x=yes ;; 1230 1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1232 | --x-incl | --x-inc | --x-in | --x-i) 1233 ac_prev=x_includes ;; 1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1236 x_includes=$ac_optarg ;; 1237 1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1240 ac_prev=x_libraries ;; 1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1243 x_libraries=$ac_optarg ;; 1244 1245 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1246Try \`$0 --help' for more information" 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 case $ac_envvar in #( 1253 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1255 esac 1256 eval $ac_envvar=\$ac_optarg 1257 export $ac_envvar ;; 1258 1259 *) 1260 # FIXME: should be removed in autoconf 3.0. 1261 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1265 ;; 1266 1267 esac 1268done 1269 1270if test -n "$ac_prev"; then 1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1272 as_fn_error $? "missing argument to $ac_option" 1273fi 1274 1275if test -n "$ac_unrecognized_opts"; then 1276 case $enable_option_checking in 1277 no) ;; 1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1279 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1280 esac 1281fi 1282 1283# Check all directory arguments for consistency. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir runstatedir 1288do 1289 eval ac_val=\$$ac_var 1290 # Remove trailing slashes. 1291 case $ac_val in 1292 */ ) 1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1294 eval $ac_var=\$ac_val;; 1295 esac 1296 # Be sure to have absolute directory names. 1297 case $ac_val in 1298 [\\/$]* | ?:[\\/]* ) continue;; 1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1300 esac 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1302done 1303 1304# There might be people who depend on the old broken behavior: `$host' 1305# used to hold the argument of --host etc. 1306# FIXME: To remove some day. 1307build=$build_alias 1308host=$host_alias 1309target=$target_alias 1310 1311# FIXME: To remove some day. 1312if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 elif test "x$build_alias" != "x$host_alias"; then 1316 cross_compiling=yes 1317 fi 1318fi 1319 1320ac_tool_prefix= 1321test -n "$host_alias" && ac_tool_prefix=$host_alias- 1322 1323test "$silent" = yes && exec 6>/dev/null 1324 1325 1326ac_pwd=`pwd` && test -n "$ac_pwd" && 1327ac_ls_di=`ls -di .` && 1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1329 as_fn_error $? "working directory cannot be determined" 1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1331 as_fn_error $? "pwd does not report name of working directory" 1332 1333 1334# Find the source files, if location was not specified. 1335if test -z "$srcdir"; then 1336 ac_srcdir_defaulted=yes 1337 # Try the directory containing this script, then the parent directory. 1338 ac_confdir=`$as_dirname -- "$as_myself" || 1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1340 X"$as_myself" : 'X\(//\)[^/]' \| \ 1341 X"$as_myself" : 'X\(//\)$' \| \ 1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1343printf "%s\n" X"$as_myself" | 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)[^/].*/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\).*/{ 1357 s//\1/ 1358 q 1359 } 1360 s/.*/./; q'` 1361 srcdir=$ac_confdir 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 srcdir=.. 1364 fi 1365else 1366 ac_srcdir_defaulted=no 1367fi 1368if test ! -r "$srcdir/$ac_unique_file"; then 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1371fi 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1373ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1375 pwd)` 1376# When building in place, set srcdir=. 1377if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379fi 1380# Remove unnecessary trailing slashes from srcdir. 1381# Double slashes in file names in object file debugging info 1382# mess up M-x gdb in Emacs. 1383case $srcdir in 1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385esac 1386for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391done 1392 1393# 1394# Report the --help message. 1395# 1396if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400\`configure' configures libXau 1.0.11 to adapt to many kinds of systems. 1401 1402Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407Defaults for the options are specified in brackets. 1408 1409Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print \`checking ...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for \`--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1419 1420Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426By default, \`make install' will install all the files in 1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1428an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1429for instance \`--prefix=\$HOME'. 1430 1431For better control, use the options below. 1432 1433Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1441 --libdir=DIR object code libraries [EPREFIX/lib] 1442 --includedir=DIR C header files [PREFIX/include] 1443 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1446 --infodir=DIR info documentation [DATAROOTDIR/info] 1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1448 --mandir=DIR man documentation [DATAROOTDIR/man] 1449 --docdir=DIR documentation root [DATAROOTDIR/doc/libXau] 1450 --htmldir=DIR html documentation [DOCDIR] 1451 --dvidir=DIR dvi documentation [DOCDIR] 1452 --pdfdir=DIR pdf documentation [DOCDIR] 1453 --psdir=DIR ps documentation [DOCDIR] 1454_ACEOF 1455 1456 cat <<\_ACEOF 1457 1458Program names: 1459 --program-prefix=PREFIX prepend PREFIX to installed program names 1460 --program-suffix=SUFFIX append SUFFIX to installed program names 1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1462 1463System types: 1464 --build=BUILD configure for building on BUILD [guessed] 1465 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1466_ACEOF 1467fi 1468 1469if test -n "$ac_init_help"; then 1470 case $ac_init_help in 1471 short | recursive ) echo "Configuration of libXau 1.0.11:";; 1472 esac 1473 cat <<\_ACEOF 1474 1475Optional Features: 1476 --disable-option-checking ignore unrecognized --enable/--with options 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --enable-dependency-tracking 1480 do not reject slow dependency extractors 1481 --disable-dependency-tracking 1482 speeds up one-time build 1483 --enable-silent-rules less verbose build output (undo: "make V=1") 1484 --disable-silent-rules verbose build output (undo: "make V=0") 1485 --enable-shared[=PKGS] build shared libraries [default=yes] 1486 --enable-static[=PKGS] build static libraries [default=yes] 1487 --enable-fast-install[=PKGS] 1488 optimize for fast installation [default=yes] 1489 --disable-libtool-lock avoid locking (might break parallel builds) 1490 --disable-selective-werror 1491 Turn off selective compiler errors. (default: 1492 enabled) 1493 --enable-strict-compilation 1494 Enable all warnings from compiler and make them 1495 errors (default: disabled) 1496 --disable-largefile omit support for large files 1497 --disable-xthreads Disable libXau support for Multithreading 1498 --enable-lint-library Create lint library (default: disabled) 1499 1500Optional Packages: 1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1504 both] 1505 --with-aix-soname=aix|svr4|both 1506 shared library versioning (aka "SONAME") variant to 1507 provide on AIX, [default=aix]. 1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1510 compiler's sysroot if not specified). 1511 --with-lint Use a lint-style source code checker (default: 1512 disabled) 1513 1514Some influential environment variables: 1515 CC C compiler command 1516 CFLAGS C compiler flags 1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1518 nonstandard directory <lib dir> 1519 LIBS libraries to pass to the linker, e.g. -l<library> 1520 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1521 you have headers in a nonstandard directory <include dir> 1522 LT_SYS_LIBRARY_PATH 1523 User-defined run-time library search path. 1524 PKG_CONFIG path to pkg-config utility 1525 PKG_CONFIG_PATH 1526 directories to add to pkg-config's search path 1527 PKG_CONFIG_LIBDIR 1528 path overriding pkg-config's built-in search path 1529 XAU_CFLAGS C compiler flags for XAU, overriding pkg-config 1530 XAU_LIBS linker flags for XAU, overriding pkg-config 1531 LINT Path to a lint-style command 1532 LINT_FLAGS Flags for the lint-style command 1533 1534Use these variables to override the choices made by `configure' or to help 1535it to find libraries and programs with nonstandard names/locations. 1536 1537Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>. 1538_ACEOF 1539ac_status=$? 1540fi 1541 1542if test "$ac_init_help" = "recursive"; then 1543 # If there are subdirs, report their specific --help. 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1545 test -d "$ac_dir" || 1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1547 continue 1548 ac_builddir=. 1549 1550case "$ac_dir" in 1551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1552*) 1553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1554 # A ".." for each directory in $ac_dir_suffix. 1555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1556 case $ac_top_builddir_sub in 1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1559 esac ;; 1560esac 1561ac_abs_top_builddir=$ac_pwd 1562ac_abs_builddir=$ac_pwd$ac_dir_suffix 1563# for backward compatibility: 1564ac_top_builddir=$ac_top_build_prefix 1565 1566case $srcdir in 1567 .) # We are building in place. 1568 ac_srcdir=. 1569 ac_top_srcdir=$ac_top_builddir_sub 1570 ac_abs_top_srcdir=$ac_pwd ;; 1571 [\\/]* | ?:[\\/]* ) # Absolute name. 1572 ac_srcdir=$srcdir$ac_dir_suffix; 1573 ac_top_srcdir=$srcdir 1574 ac_abs_top_srcdir=$srcdir ;; 1575 *) # Relative name. 1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1577 ac_top_srcdir=$ac_top_build_prefix$srcdir 1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1579esac 1580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1581 1582 cd "$ac_dir" || { ac_status=$?; continue; } 1583 # Check for configure.gnu first; this name is used for a wrapper for 1584 # Metaconfig's "Configure" on case-insensitive file systems. 1585 if test -f "$ac_srcdir/configure.gnu"; then 1586 echo && 1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1588 elif test -f "$ac_srcdir/configure"; then 1589 echo && 1590 $SHELL "$ac_srcdir/configure" --help=recursive 1591 else 1592 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1593 fi || ac_status=$? 1594 cd "$ac_pwd" || { ac_status=$?; break; } 1595 done 1596fi 1597 1598test -n "$ac_init_help" && exit $ac_status 1599if $ac_init_version; then 1600 cat <<\_ACEOF 1601libXau configure 1.0.11 1602generated by GNU Autoconf 2.71 1603 1604Copyright (C) 2021 Free Software Foundation, Inc. 1605This configure script is free software; the Free Software Foundation 1606gives unlimited permission to copy, distribute and modify it. 1607_ACEOF 1608 exit 1609fi 1610 1611## ------------------------ ## 1612## Autoconf initialization. ## 1613## ------------------------ ## 1614 1615# ac_fn_c_try_compile LINENO 1616# -------------------------- 1617# Try to compile conftest.$ac_ext, and return whether this succeeded. 1618ac_fn_c_try_compile () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 rm -f conftest.$ac_objext conftest.beam 1622 if { { ac_try="$ac_compile" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628printf "%s\n" "$ac_try_echo"; } >&5 1629 (eval "$ac_compile") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } && { 1638 test -z "$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 } && test -s conftest.$ac_objext 1641then : 1642 ac_retval=0 1643else $as_nop 1644 printf "%s\n" "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=1 1648fi 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652} # ac_fn_c_try_compile 1653 1654# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1655# ------------------------------------------------------- 1656# Tests whether HEADER exists and can be compiled using the include files in 1657# INCLUDES, setting the cache variable VAR accordingly. 1658ac_fn_c_check_header_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662printf %s "checking for $2... " >&6; } 1663if eval test \${$3+y} 1664then : 1665 printf %s "(cached) " >&6 1666else $as_nop 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1668/* end confdefs.h. */ 1669$4 1670#include <$2> 1671_ACEOF 1672if ac_fn_c_try_compile "$LINENO" 1673then : 1674 eval "$3=yes" 1675else $as_nop 1676 eval "$3=no" 1677fi 1678rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1679fi 1680eval ac_res=\$$3 1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1682printf "%s\n" "$ac_res" >&6; } 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 1685} # ac_fn_c_check_header_compile 1686 1687# ac_fn_c_try_link LINENO 1688# ----------------------- 1689# Try to link conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_c_try_link () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1694 if { { ac_try="$ac_link" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700printf "%s\n" "$ac_try_echo"; } >&5 1701 (eval "$ac_link") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest$ac_exeext && { 1713 test "$cross_compiling" = yes || 1714 test -x conftest$ac_exeext 1715 } 1716then : 1717 ac_retval=0 1718else $as_nop 1719 printf "%s\n" "$as_me: failed program was:" >&5 1720sed 's/^/| /' conftest.$ac_ext >&5 1721 1722 ac_retval=1 1723fi 1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1726 # interfere with the next link command; also delete a directory that is 1727 # left behind by Apple's compiler. We do this before executing the actions. 1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_link 1733 1734# ac_fn_c_check_func LINENO FUNC VAR 1735# ---------------------------------- 1736# Tests whether FUNC exists, setting the cache variable VAR accordingly 1737ac_fn_c_check_func () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1741printf %s "checking for $2... " >&6; } 1742if eval test \${$3+y} 1743then : 1744 printf %s "(cached) " >&6 1745else $as_nop 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750#define $2 innocuous_$2 1751 1752/* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (void); below. */ 1754 1755#include <limits.h> 1756#undef $2 1757 1758/* Override any GCC internal prototype to avoid an error. 1759 Use char because int might match the return type of a GCC 1760 builtin and then its argument prototype would still apply. */ 1761#ifdef __cplusplus 1762extern "C" 1763#endif 1764char $2 (void); 1765/* The GNU C library defines this for functions which it implements 1766 to always fail with ENOSYS. Some functions are actually named 1767 something starting with __ and the normal name is an alias. */ 1768#if defined __stub_$2 || defined __stub___$2 1769choke me 1770#endif 1771 1772int 1773main (void) 1774{ 1775return $2 (); 1776 ; 1777 return 0; 1778} 1779_ACEOF 1780if ac_fn_c_try_link "$LINENO" 1781then : 1782 eval "$3=yes" 1783else $as_nop 1784 eval "$3=no" 1785fi 1786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1787 conftest$ac_exeext conftest.$ac_ext 1788fi 1789eval ac_res=\$$3 1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791printf "%s\n" "$ac_res" >&6; } 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 1794} # ac_fn_c_check_func 1795 1796# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1797# ------------------------------------------------------------------ 1798# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1799# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1800ac_fn_check_decl () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 as_decl_name=`echo $2|sed 's/ *(.*//'` 1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1805printf %s "checking whether $as_decl_name is declared... " >&6; } 1806if eval test \${$3+y} 1807then : 1808 printf %s "(cached) " >&6 1809else $as_nop 1810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1811 eval ac_save_FLAGS=\$$6 1812 as_fn_append $6 " $5" 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816int 1817main (void) 1818{ 1819#ifndef $as_decl_name 1820#ifdef __cplusplus 1821 (void) $as_decl_use; 1822#else 1823 (void) $as_decl_name; 1824#endif 1825#endif 1826 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO" 1832then : 1833 eval "$3=yes" 1834else $as_nop 1835 eval "$3=no" 1836fi 1837rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1838 eval $6=\$ac_save_FLAGS 1839 1840fi 1841eval ac_res=\$$3 1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843printf "%s\n" "$ac_res" >&6; } 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 1846} # ac_fn_check_decl 1847ac_configure_args_raw= 1848for ac_arg 1849do 1850 case $ac_arg in 1851 *\'*) 1852 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1853 esac 1854 as_fn_append ac_configure_args_raw " '$ac_arg'" 1855done 1856 1857case $ac_configure_args_raw in 1858 *$as_nl*) 1859 ac_safe_unquote= ;; 1860 *) 1861 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1862 ac_unsafe_a="$ac_unsafe_z#~" 1863 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1864 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1865esac 1866 1867cat >config.log <<_ACEOF 1868This file contains any messages produced by compilers while 1869running configure, to aid debugging if configure makes a mistake. 1870 1871It was created by libXau $as_me 1.0.11, which was 1872generated by GNU Autoconf 2.71. Invocation command line was 1873 1874 $ $0$ac_configure_args_raw 1875 1876_ACEOF 1877exec 5>>config.log 1878{ 1879cat <<_ASUNAME 1880## --------- ## 1881## Platform. ## 1882## --------- ## 1883 1884hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1885uname -m = `(uname -m) 2>/dev/null || echo unknown` 1886uname -r = `(uname -r) 2>/dev/null || echo unknown` 1887uname -s = `(uname -s) 2>/dev/null || echo unknown` 1888uname -v = `(uname -v) 2>/dev/null || echo unknown` 1889 1890/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1891/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1892 1893/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1894/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1895/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1896/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1897/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1898/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1899/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1900 1901_ASUNAME 1902 1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1904for as_dir in $PATH 1905do 1906 IFS=$as_save_IFS 1907 case $as_dir in #((( 1908 '') as_dir=./ ;; 1909 */) ;; 1910 *) as_dir=$as_dir/ ;; 1911 esac 1912 printf "%s\n" "PATH: $as_dir" 1913 done 1914IFS=$as_save_IFS 1915 1916} >&5 1917 1918cat >&5 <<_ACEOF 1919 1920 1921## ----------- ## 1922## Core tests. ## 1923## ----------- ## 1924 1925_ACEOF 1926 1927 1928# Keep a trace of the command line. 1929# Strip out --no-create and --no-recursion so they do not pile up. 1930# Strip out --silent because we don't want to record it for future runs. 1931# Also quote any args containing shell meta-characters. 1932# Make two passes to allow for proper duplicate-argument suppression. 1933ac_configure_args= 1934ac_configure_args0= 1935ac_configure_args1= 1936ac_must_keep_next=false 1937for ac_pass in 1 2 1938do 1939 for ac_arg 1940 do 1941 case $ac_arg in 1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1944 | -silent | --silent | --silen | --sile | --sil) 1945 continue ;; 1946 *\'*) 1947 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1948 esac 1949 case $ac_pass in 1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1951 2) 1952 as_fn_append ac_configure_args1 " '$ac_arg'" 1953 if test $ac_must_keep_next = true; then 1954 ac_must_keep_next=false # Got value, back to normal. 1955 else 1956 case $ac_arg in 1957 *=* | --config-cache | -C | -disable-* | --disable-* \ 1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1960 | -with-* | --with-* | -without-* | --without-* | --x) 1961 case "$ac_configure_args0 " in 1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1963 esac 1964 ;; 1965 -* ) ac_must_keep_next=true ;; 1966 esac 1967 fi 1968 as_fn_append ac_configure_args " '$ac_arg'" 1969 ;; 1970 esac 1971 done 1972done 1973{ ac_configure_args0=; unset ac_configure_args0;} 1974{ ac_configure_args1=; unset ac_configure_args1;} 1975 1976# When interrupted or exit'd, cleanup temporary files, and complete 1977# config.log. We remove comments because anyway the quotes in there 1978# would cause problems or look ugly. 1979# WARNING: Use '\'' to represent an apostrophe within the trap. 1980# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1981trap 'exit_status=$? 1982 # Sanitize IFS. 1983 IFS=" "" $as_nl" 1984 # Save into config.log some information that might help in debugging. 1985 { 1986 echo 1987 1988 printf "%s\n" "## ---------------- ## 1989## Cache variables. ## 1990## ---------------- ##" 1991 echo 1992 # The following way of writing the cache mishandles newlines in values, 1993( 1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in #( 1997 *${as_nl}*) 1998 case $ac_var in #( 1999 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2000printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2001 esac 2002 case $ac_var in #( 2003 _ | IFS | as_nl) ;; #( 2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2005 *) { eval $ac_var=; unset $ac_var;} ;; 2006 esac ;; 2007 esac 2008 done 2009 (set) 2>&1 | 2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2011 *${as_nl}ac_space=\ *) 2012 sed -n \ 2013 "s/'\''/'\''\\\\'\'''\''/g; 2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2015 ;; #( 2016 *) 2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2018 ;; 2019 esac | 2020 sort 2021) 2022 echo 2023 2024 printf "%s\n" "## ----------------- ## 2025## Output variables. ## 2026## ----------------- ##" 2027 echo 2028 for ac_var in $ac_subst_vars 2029 do 2030 eval ac_val=\$$ac_var 2031 case $ac_val in 2032 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2033 esac 2034 printf "%s\n" "$ac_var='\''$ac_val'\''" 2035 done | sort 2036 echo 2037 2038 if test -n "$ac_subst_files"; then 2039 printf "%s\n" "## ------------------- ## 2040## File substitutions. ## 2041## ------------------- ##" 2042 echo 2043 for ac_var in $ac_subst_files 2044 do 2045 eval ac_val=\$$ac_var 2046 case $ac_val in 2047 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2048 esac 2049 printf "%s\n" "$ac_var='\''$ac_val'\''" 2050 done | sort 2051 echo 2052 fi 2053 2054 if test -s confdefs.h; then 2055 printf "%s\n" "## ----------- ## 2056## confdefs.h. ## 2057## ----------- ##" 2058 echo 2059 cat confdefs.h 2060 echo 2061 fi 2062 test "$ac_signal" != 0 && 2063 printf "%s\n" "$as_me: caught signal $ac_signal" 2064 printf "%s\n" "$as_me: exit $exit_status" 2065 } >&5 2066 rm -f core *.core core.conftest.* && 2067 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2068 exit $exit_status 2069' 0 2070for ac_signal in 1 2 13 15; do 2071 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2072done 2073ac_signal=0 2074 2075# confdefs.h avoids OS command line length limits that DEFS can exceed. 2076rm -f -r conftest* confdefs.h 2077 2078printf "%s\n" "/* confdefs.h */" > confdefs.h 2079 2080# Predefined preprocessor variables. 2081 2082printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2083 2084printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2085 2086printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2087 2088printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2089 2090printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2091 2092printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2093 2094 2095# Let the site file select an alternate cache file if it wants to. 2096# Prefer an explicitly selected file to automatically selected ones. 2097if test -n "$CONFIG_SITE"; then 2098 ac_site_files="$CONFIG_SITE" 2099elif test "x$prefix" != xNONE; then 2100 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2101else 2102 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2103fi 2104 2105for ac_site_file in $ac_site_files 2106do 2107 case $ac_site_file in #( 2108 */*) : 2109 ;; #( 2110 *) : 2111 ac_site_file=./$ac_site_file ;; 2112esac 2113 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2115printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2116 sed 's/^/| /' "$ac_site_file" >&5 2117 . "$ac_site_file" \ 2118 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2119printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2120as_fn_error $? "failed to load site script $ac_site_file 2121See \`config.log' for more details" "$LINENO" 5; } 2122 fi 2123done 2124 2125if test -r "$cache_file"; then 2126 # Some versions of bash will fail to source /dev/null (special files 2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2128 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2130printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2131 case $cache_file in 2132 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2133 *) . "./$cache_file";; 2134 esac 2135 fi 2136else 2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2138printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2139 >$cache_file 2140fi 2141 2142as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2143# Test code for whether the C compiler supports C89 (global declarations) 2144ac_c_conftest_c89_globals=' 2145/* Does the compiler advertise C89 conformance? 2146 Do not test the value of __STDC__, because some compilers set it to 0 2147 while being otherwise adequately conformant. */ 2148#if !defined __STDC__ 2149# error "Compiler does not advertise C89 conformance" 2150#endif 2151 2152#include <stddef.h> 2153#include <stdarg.h> 2154struct stat; 2155/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2156struct buf { int x; }; 2157struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2158static char *e (char **p, int i) 2159{ 2160 return p[i]; 2161} 2162static char *f (char * (*g) (char **, int), char **p, ...) 2163{ 2164 char *s; 2165 va_list v; 2166 va_start (v,p); 2167 s = g (p, va_arg (v,int)); 2168 va_end (v); 2169 return s; 2170} 2171 2172/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2173 function prototypes and stuff, but not \xHH hex character constants. 2174 These do not provoke an error unfortunately, instead are silently treated 2175 as an "x". The following induces an error, until -std is added to get 2176 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2177 array size at least. It is necessary to write \x00 == 0 to get something 2178 that is true only with -std. */ 2179int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2180 2181/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2182 inside strings and character constants. */ 2183#define FOO(x) '\''x'\'' 2184int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2185 2186int test (int i, double x); 2187struct s1 {int (*f) (int a);}; 2188struct s2 {int (*f) (double a);}; 2189int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2190 int, int);' 2191 2192# Test code for whether the C compiler supports C89 (body of main). 2193ac_c_conftest_c89_main=' 2194ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2195' 2196 2197# Test code for whether the C compiler supports C99 (global declarations) 2198ac_c_conftest_c99_globals=' 2199// Does the compiler advertise C99 conformance? 2200#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2201# error "Compiler does not advertise C99 conformance" 2202#endif 2203 2204#include <stdbool.h> 2205extern int puts (const char *); 2206extern int printf (const char *, ...); 2207extern int dprintf (int, const char *, ...); 2208extern void *malloc (size_t); 2209extern void free (void *); 2210 2211// Check varargs macros. These examples are taken from C99 6.10.3.5. 2212// dprintf is used instead of fprintf to avoid needing to declare 2213// FILE and stderr. 2214#define debug(...) dprintf (2, __VA_ARGS__) 2215#define showlist(...) puts (#__VA_ARGS__) 2216#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2217static void 2218test_varargs_macros (void) 2219{ 2220 int x = 1234; 2221 int y = 5678; 2222 debug ("Flag"); 2223 debug ("X = %d\n", x); 2224 showlist (The first, second, and third items.); 2225 report (x>y, "x is %d but y is %d", x, y); 2226} 2227 2228// Check long long types. 2229#define BIG64 18446744073709551615ull 2230#define BIG32 4294967295ul 2231#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2232#if !BIG_OK 2233 #error "your preprocessor is broken" 2234#endif 2235#if BIG_OK 2236#else 2237 #error "your preprocessor is broken" 2238#endif 2239static long long int bignum = -9223372036854775807LL; 2240static unsigned long long int ubignum = BIG64; 2241 2242struct incomplete_array 2243{ 2244 int datasize; 2245 double data[]; 2246}; 2247 2248struct named_init { 2249 int number; 2250 const wchar_t *name; 2251 double average; 2252}; 2253 2254typedef const char *ccp; 2255 2256static inline int 2257test_restrict (ccp restrict text) 2258{ 2259 // See if C++-style comments work. 2260 // Iterate through items via the restricted pointer. 2261 // Also check for declarations in for loops. 2262 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2263 continue; 2264 return 0; 2265} 2266 2267// Check varargs and va_copy. 2268static bool 2269test_varargs (const char *format, ...) 2270{ 2271 va_list args; 2272 va_start (args, format); 2273 va_list args_copy; 2274 va_copy (args_copy, args); 2275 2276 const char *str = ""; 2277 int number = 0; 2278 float fnumber = 0; 2279 2280 while (*format) 2281 { 2282 switch (*format++) 2283 { 2284 case '\''s'\'': // string 2285 str = va_arg (args_copy, const char *); 2286 break; 2287 case '\''d'\'': // int 2288 number = va_arg (args_copy, int); 2289 break; 2290 case '\''f'\'': // float 2291 fnumber = va_arg (args_copy, double); 2292 break; 2293 default: 2294 break; 2295 } 2296 } 2297 va_end (args_copy); 2298 va_end (args); 2299 2300 return *str && number && fnumber; 2301} 2302' 2303 2304# Test code for whether the C compiler supports C99 (body of main). 2305ac_c_conftest_c99_main=' 2306 // Check bool. 2307 _Bool success = false; 2308 success |= (argc != 0); 2309 2310 // Check restrict. 2311 if (test_restrict ("String literal") == 0) 2312 success = true; 2313 char *restrict newvar = "Another string"; 2314 2315 // Check varargs. 2316 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2317 test_varargs_macros (); 2318 2319 // Check flexible array members. 2320 struct incomplete_array *ia = 2321 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2322 ia->datasize = 10; 2323 for (int i = 0; i < ia->datasize; ++i) 2324 ia->data[i] = i * 1.234; 2325 2326 // Check named initializers. 2327 struct named_init ni = { 2328 .number = 34, 2329 .name = L"Test wide string", 2330 .average = 543.34343, 2331 }; 2332 2333 ni.number = 58; 2334 2335 int dynamic_array[ni.number]; 2336 dynamic_array[0] = argv[0][0]; 2337 dynamic_array[ni.number - 1] = 543; 2338 2339 // work around unused variable warnings 2340 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2341 || dynamic_array[ni.number - 1] != 543); 2342' 2343 2344# Test code for whether the C compiler supports C11 (global declarations) 2345ac_c_conftest_c11_globals=' 2346// Does the compiler advertise C11 conformance? 2347#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2348# error "Compiler does not advertise C11 conformance" 2349#endif 2350 2351// Check _Alignas. 2352char _Alignas (double) aligned_as_double; 2353char _Alignas (0) no_special_alignment; 2354extern char aligned_as_int; 2355char _Alignas (0) _Alignas (int) aligned_as_int; 2356 2357// Check _Alignof. 2358enum 2359{ 2360 int_alignment = _Alignof (int), 2361 int_array_alignment = _Alignof (int[100]), 2362 char_alignment = _Alignof (char) 2363}; 2364_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2365 2366// Check _Noreturn. 2367int _Noreturn does_not_return (void) { for (;;) continue; } 2368 2369// Check _Static_assert. 2370struct test_static_assert 2371{ 2372 int x; 2373 _Static_assert (sizeof (int) <= sizeof (long int), 2374 "_Static_assert does not work in struct"); 2375 long int y; 2376}; 2377 2378// Check UTF-8 literals. 2379#define u8 syntax error! 2380char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2381 2382// Check duplicate typedefs. 2383typedef long *long_ptr; 2384typedef long int *long_ptr; 2385typedef long_ptr long_ptr; 2386 2387// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2388struct anonymous 2389{ 2390 union { 2391 struct { int i; int j; }; 2392 struct { int k; long int l; } w; 2393 }; 2394 int m; 2395} v1; 2396' 2397 2398# Test code for whether the C compiler supports C11 (body of main). 2399ac_c_conftest_c11_main=' 2400 _Static_assert ((offsetof (struct anonymous, i) 2401 == offsetof (struct anonymous, w.k)), 2402 "Anonymous union alignment botch"); 2403 v1.i = 2; 2404 v1.w.k = 5; 2405 ok |= v1.i != 5; 2406' 2407 2408# Test code for whether the C compiler supports C11 (complete). 2409ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2410${ac_c_conftest_c99_globals} 2411${ac_c_conftest_c11_globals} 2412 2413int 2414main (int argc, char **argv) 2415{ 2416 int ok = 0; 2417 ${ac_c_conftest_c89_main} 2418 ${ac_c_conftest_c99_main} 2419 ${ac_c_conftest_c11_main} 2420 return ok; 2421} 2422" 2423 2424# Test code for whether the C compiler supports C99 (complete). 2425ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2426${ac_c_conftest_c99_globals} 2427 2428int 2429main (int argc, char **argv) 2430{ 2431 int ok = 0; 2432 ${ac_c_conftest_c89_main} 2433 ${ac_c_conftest_c99_main} 2434 return ok; 2435} 2436" 2437 2438# Test code for whether the C compiler supports C89 (complete). 2439ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2440 2441int 2442main (int argc, char **argv) 2443{ 2444 int ok = 0; 2445 ${ac_c_conftest_c89_main} 2446 return ok; 2447} 2448" 2449 2450as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2451as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2452as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2453as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2454as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2455as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2456as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2457as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2458as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2459as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2460 2461# Auxiliary files required by this configure script. 2462ac_aux_files="ltmain.sh config.guess config.sub missing install-sh compile" 2463 2464# Locations in which to look for auxiliary files. 2465ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2466 2467# Search for a directory containing all of the required auxiliary files, 2468# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2469# If we don't find one directory that contains all the files we need, 2470# we report the set of missing files from the *first* directory in 2471# $ac_aux_dir_candidates and give up. 2472ac_missing_aux_files="" 2473ac_first_candidate=: 2474printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476as_found=false 2477for as_dir in $ac_aux_dir_candidates 2478do 2479 IFS=$as_save_IFS 2480 case $as_dir in #((( 2481 '') as_dir=./ ;; 2482 */) ;; 2483 *) as_dir=$as_dir/ ;; 2484 esac 2485 as_found=: 2486 2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2488 ac_aux_dir_found=yes 2489 ac_install_sh= 2490 for ac_aux in $ac_aux_files 2491 do 2492 # As a special case, if "install-sh" is required, that requirement 2493 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2494 # and $ac_install_sh is set appropriately for whichever one is found. 2495 if test x"$ac_aux" = x"install-sh" 2496 then 2497 if test -f "${as_dir}install-sh"; then 2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2499 ac_install_sh="${as_dir}install-sh -c" 2500 elif test -f "${as_dir}install.sh"; then 2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2502 ac_install_sh="${as_dir}install.sh -c" 2503 elif test -f "${as_dir}shtool"; then 2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2505 ac_install_sh="${as_dir}shtool install -c" 2506 else 2507 ac_aux_dir_found=no 2508 if $ac_first_candidate; then 2509 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2510 else 2511 break 2512 fi 2513 fi 2514 else 2515 if test -f "${as_dir}${ac_aux}"; then 2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2517 else 2518 ac_aux_dir_found=no 2519 if $ac_first_candidate; then 2520 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2521 else 2522 break 2523 fi 2524 fi 2525 fi 2526 done 2527 if test "$ac_aux_dir_found" = yes; then 2528 ac_aux_dir="$as_dir" 2529 break 2530 fi 2531 ac_first_candidate=false 2532 2533 as_found=false 2534done 2535IFS=$as_save_IFS 2536if $as_found 2537then : 2538 2539else $as_nop 2540 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2541fi 2542 2543 2544# These three variables are undocumented and unsupported, 2545# and are intended to be withdrawn in a future Autoconf release. 2546# They can cause serious problems if a builder's source tree is in a directory 2547# whose full name contains unusual characters. 2548if test -f "${ac_aux_dir}config.guess"; then 2549 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2550fi 2551if test -f "${ac_aux_dir}config.sub"; then 2552 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2553fi 2554if test -f "$ac_aux_dir/configure"; then 2555 ac_configure="$SHELL ${ac_aux_dir}configure" 2556fi 2557 2558# Check that the precious variables saved in the cache have kept the same 2559# value. 2560ac_cache_corrupted=false 2561for ac_var in $ac_precious_vars; do 2562 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2563 eval ac_new_set=\$ac_env_${ac_var}_set 2564 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2565 eval ac_new_val=\$ac_env_${ac_var}_value 2566 case $ac_old_set,$ac_new_set in 2567 set,) 2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2569printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2570 ac_cache_corrupted=: ;; 2571 ,set) 2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2573printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2574 ac_cache_corrupted=: ;; 2575 ,);; 2576 *) 2577 if test "x$ac_old_val" != "x$ac_new_val"; then 2578 # differences in whitespace do not lead to failure. 2579 ac_old_val_w=`echo x $ac_old_val` 2580 ac_new_val_w=`echo x $ac_new_val` 2581 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2583printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2584 ac_cache_corrupted=: 2585 else 2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2587printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2588 eval $ac_var=\$ac_old_val 2589 fi 2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2591printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2593printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2594 fi;; 2595 esac 2596 # Pass precious variables to config.status. 2597 if test "$ac_new_set" = set; then 2598 case $ac_new_val in 2599 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2600 *) ac_arg=$ac_var=$ac_new_val ;; 2601 esac 2602 case " $ac_configure_args " in 2603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2604 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2605 esac 2606 fi 2607done 2608if $ac_cache_corrupted; then 2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2610printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2612printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2613 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2614 and start over" "$LINENO" 5 2615fi 2616## -------------------- ## 2617## Main body of script. ## 2618## -------------------- ## 2619 2620ac_ext=c 2621ac_cpp='$CPP $CPPFLAGS' 2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2624ac_compiler_gnu=$ac_cv_c_compiler_gnu 2625 2626 2627 2628ac_config_headers="$ac_config_headers config.h" 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641# Expand $ac_aux_dir to an absolute path. 2642am_aux_dir=`cd "$ac_aux_dir" && pwd` 2643 2644ac_ext=c 2645ac_cpp='$CPP $CPPFLAGS' 2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2648ac_compiler_gnu=$ac_cv_c_compiler_gnu 2649if test -n "$ac_tool_prefix"; then 2650 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2651set dummy ${ac_tool_prefix}gcc; ac_word=$2 2652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2653printf %s "checking for $ac_word... " >&6; } 2654if test ${ac_cv_prog_CC+y} 2655then : 2656 printf %s "(cached) " >&6 2657else $as_nop 2658 if test -n "$CC"; then 2659 ac_cv_prog_CC="$CC" # Let the user override the test. 2660else 2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2662for as_dir in $PATH 2663do 2664 IFS=$as_save_IFS 2665 case $as_dir in #((( 2666 '') as_dir=./ ;; 2667 */) ;; 2668 *) as_dir=$as_dir/ ;; 2669 esac 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2672 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2674 break 2 2675 fi 2676done 2677 done 2678IFS=$as_save_IFS 2679 2680fi 2681fi 2682CC=$ac_cv_prog_CC 2683if test -n "$CC"; then 2684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2685printf "%s\n" "$CC" >&6; } 2686else 2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2688printf "%s\n" "no" >&6; } 2689fi 2690 2691 2692fi 2693if test -z "$ac_cv_prog_CC"; then 2694 ac_ct_CC=$CC 2695 # Extract the first word of "gcc", so it can be a program name with args. 2696set dummy gcc; ac_word=$2 2697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2698printf %s "checking for $ac_word... " >&6; } 2699if test ${ac_cv_prog_ac_ct_CC+y} 2700then : 2701 printf %s "(cached) " >&6 2702else $as_nop 2703 if test -n "$ac_ct_CC"; then 2704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 case $as_dir in #((( 2711 '') as_dir=./ ;; 2712 */) ;; 2713 *) as_dir=$as_dir/ ;; 2714 esac 2715 for ac_exec_ext in '' $ac_executable_extensions; do 2716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2717 ac_cv_prog_ac_ct_CC="gcc" 2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2719 break 2 2720 fi 2721done 2722 done 2723IFS=$as_save_IFS 2724 2725fi 2726fi 2727ac_ct_CC=$ac_cv_prog_ac_ct_CC 2728if test -n "$ac_ct_CC"; then 2729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2730printf "%s\n" "$ac_ct_CC" >&6; } 2731else 2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2733printf "%s\n" "no" >&6; } 2734fi 2735 2736 if test "x$ac_ct_CC" = x; then 2737 CC="" 2738 else 2739 case $cross_compiling:$ac_tool_warned in 2740yes:) 2741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2742printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2743ac_tool_warned=yes ;; 2744esac 2745 CC=$ac_ct_CC 2746 fi 2747else 2748 CC="$ac_cv_prog_CC" 2749fi 2750 2751if test -z "$CC"; then 2752 if test -n "$ac_tool_prefix"; then 2753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2754set dummy ${ac_tool_prefix}cc; ac_word=$2 2755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2756printf %s "checking for $ac_word... " >&6; } 2757if test ${ac_cv_prog_CC+y} 2758then : 2759 printf %s "(cached) " >&6 2760else $as_nop 2761 if test -n "$CC"; then 2762 ac_cv_prog_CC="$CC" # Let the user override the test. 2763else 2764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2765for as_dir in $PATH 2766do 2767 IFS=$as_save_IFS 2768 case $as_dir in #((( 2769 '') as_dir=./ ;; 2770 */) ;; 2771 *) as_dir=$as_dir/ ;; 2772 esac 2773 for ac_exec_ext in '' $ac_executable_extensions; do 2774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2775 ac_cv_prog_CC="${ac_tool_prefix}cc" 2776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2777 break 2 2778 fi 2779done 2780 done 2781IFS=$as_save_IFS 2782 2783fi 2784fi 2785CC=$ac_cv_prog_CC 2786if test -n "$CC"; then 2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2788printf "%s\n" "$CC" >&6; } 2789else 2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2791printf "%s\n" "no" >&6; } 2792fi 2793 2794 2795 fi 2796fi 2797if test -z "$CC"; then 2798 # Extract the first word of "cc", so it can be a program name with args. 2799set dummy cc; ac_word=$2 2800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2801printf %s "checking for $ac_word... " >&6; } 2802if test ${ac_cv_prog_CC+y} 2803then : 2804 printf %s "(cached) " >&6 2805else $as_nop 2806 if test -n "$CC"; then 2807 ac_cv_prog_CC="$CC" # Let the user override the test. 2808else 2809 ac_prog_rejected=no 2810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2811for as_dir in $PATH 2812do 2813 IFS=$as_save_IFS 2814 case $as_dir in #((( 2815 '') as_dir=./ ;; 2816 */) ;; 2817 *) as_dir=$as_dir/ ;; 2818 esac 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2821 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2822 ac_prog_rejected=yes 2823 continue 2824 fi 2825 ac_cv_prog_CC="cc" 2826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2827 break 2 2828 fi 2829done 2830 done 2831IFS=$as_save_IFS 2832 2833if test $ac_prog_rejected = yes; then 2834 # We found a bogon in the path, so make sure we never use it. 2835 set dummy $ac_cv_prog_CC 2836 shift 2837 if test $# != 0; then 2838 # We chose a different compiler from the bogus one. 2839 # However, it has the same basename, so the bogon will be chosen 2840 # first if we set CC to just the basename; use the full file name. 2841 shift 2842 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2843 fi 2844fi 2845fi 2846fi 2847CC=$ac_cv_prog_CC 2848if test -n "$CC"; then 2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2850printf "%s\n" "$CC" >&6; } 2851else 2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2853printf "%s\n" "no" >&6; } 2854fi 2855 2856 2857fi 2858if test -z "$CC"; then 2859 if test -n "$ac_tool_prefix"; then 2860 for ac_prog in cl.exe 2861 do 2862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2863set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2865printf %s "checking for $ac_word... " >&6; } 2866if test ${ac_cv_prog_CC+y} 2867then : 2868 printf %s "(cached) " >&6 2869else $as_nop 2870 if test -n "$CC"; then 2871 ac_cv_prog_CC="$CC" # Let the user override the test. 2872else 2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2874for as_dir in $PATH 2875do 2876 IFS=$as_save_IFS 2877 case $as_dir in #((( 2878 '') as_dir=./ ;; 2879 */) ;; 2880 *) as_dir=$as_dir/ ;; 2881 esac 2882 for ac_exec_ext in '' $ac_executable_extensions; do 2883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2886 break 2 2887 fi 2888done 2889 done 2890IFS=$as_save_IFS 2891 2892fi 2893fi 2894CC=$ac_cv_prog_CC 2895if test -n "$CC"; then 2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2897printf "%s\n" "$CC" >&6; } 2898else 2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2900printf "%s\n" "no" >&6; } 2901fi 2902 2903 2904 test -n "$CC" && break 2905 done 2906fi 2907if test -z "$CC"; then 2908 ac_ct_CC=$CC 2909 for ac_prog in cl.exe 2910do 2911 # Extract the first word of "$ac_prog", so it can be a program name with args. 2912set dummy $ac_prog; ac_word=$2 2913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2914printf %s "checking for $ac_word... " >&6; } 2915if test ${ac_cv_prog_ac_ct_CC+y} 2916then : 2917 printf %s "(cached) " >&6 2918else $as_nop 2919 if test -n "$ac_ct_CC"; then 2920 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2921else 2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2923for as_dir in $PATH 2924do 2925 IFS=$as_save_IFS 2926 case $as_dir in #((( 2927 '') as_dir=./ ;; 2928 */) ;; 2929 *) as_dir=$as_dir/ ;; 2930 esac 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2933 ac_cv_prog_ac_ct_CC="$ac_prog" 2934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2935 break 2 2936 fi 2937done 2938 done 2939IFS=$as_save_IFS 2940 2941fi 2942fi 2943ac_ct_CC=$ac_cv_prog_ac_ct_CC 2944if test -n "$ac_ct_CC"; then 2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2946printf "%s\n" "$ac_ct_CC" >&6; } 2947else 2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949printf "%s\n" "no" >&6; } 2950fi 2951 2952 2953 test -n "$ac_ct_CC" && break 2954done 2955 2956 if test "x$ac_ct_CC" = x; then 2957 CC="" 2958 else 2959 case $cross_compiling:$ac_tool_warned in 2960yes:) 2961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2962printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2963ac_tool_warned=yes ;; 2964esac 2965 CC=$ac_ct_CC 2966 fi 2967fi 2968 2969fi 2970if test -z "$CC"; then 2971 if test -n "$ac_tool_prefix"; then 2972 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2973set dummy ${ac_tool_prefix}clang; ac_word=$2 2974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2975printf %s "checking for $ac_word... " >&6; } 2976if test ${ac_cv_prog_CC+y} 2977then : 2978 printf %s "(cached) " >&6 2979else $as_nop 2980 if test -n "$CC"; then 2981 ac_cv_prog_CC="$CC" # Let the user override the test. 2982else 2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2984for as_dir in $PATH 2985do 2986 IFS=$as_save_IFS 2987 case $as_dir in #((( 2988 '') as_dir=./ ;; 2989 */) ;; 2990 *) as_dir=$as_dir/ ;; 2991 esac 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2994 ac_cv_prog_CC="${ac_tool_prefix}clang" 2995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2996 break 2 2997 fi 2998done 2999 done 3000IFS=$as_save_IFS 3001 3002fi 3003fi 3004CC=$ac_cv_prog_CC 3005if test -n "$CC"; then 3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3007printf "%s\n" "$CC" >&6; } 3008else 3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3010printf "%s\n" "no" >&6; } 3011fi 3012 3013 3014fi 3015if test -z "$ac_cv_prog_CC"; then 3016 ac_ct_CC=$CC 3017 # Extract the first word of "clang", so it can be a program name with args. 3018set dummy clang; ac_word=$2 3019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3020printf %s "checking for $ac_word... " >&6; } 3021if test ${ac_cv_prog_ac_ct_CC+y} 3022then : 3023 printf %s "(cached) " >&6 3024else $as_nop 3025 if test -n "$ac_ct_CC"; then 3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3027else 3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029for as_dir in $PATH 3030do 3031 IFS=$as_save_IFS 3032 case $as_dir in #((( 3033 '') as_dir=./ ;; 3034 */) ;; 3035 *) as_dir=$as_dir/ ;; 3036 esac 3037 for ac_exec_ext in '' $ac_executable_extensions; do 3038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3039 ac_cv_prog_ac_ct_CC="clang" 3040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3041 break 2 3042 fi 3043done 3044 done 3045IFS=$as_save_IFS 3046 3047fi 3048fi 3049ac_ct_CC=$ac_cv_prog_ac_ct_CC 3050if test -n "$ac_ct_CC"; then 3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3052printf "%s\n" "$ac_ct_CC" >&6; } 3053else 3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3055printf "%s\n" "no" >&6; } 3056fi 3057 3058 if test "x$ac_ct_CC" = x; then 3059 CC="" 3060 else 3061 case $cross_compiling:$ac_tool_warned in 3062yes:) 3063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3064printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3065ac_tool_warned=yes ;; 3066esac 3067 CC=$ac_ct_CC 3068 fi 3069else 3070 CC="$ac_cv_prog_CC" 3071fi 3072 3073fi 3074 3075 3076test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3077printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3078as_fn_error $? "no acceptable C compiler found in \$PATH 3079See \`config.log' for more details" "$LINENO" 5; } 3080 3081# Provide some information about the compiler. 3082printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3083set X $ac_compile 3084ac_compiler=$2 3085for ac_option in --version -v -V -qversion -version; do 3086 { { ac_try="$ac_compiler $ac_option >&5" 3087case "(($ac_try" in 3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3089 *) ac_try_echo=$ac_try;; 3090esac 3091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3092printf "%s\n" "$ac_try_echo"; } >&5 3093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3094 ac_status=$? 3095 if test -s conftest.err; then 3096 sed '10a\ 3097... rest of stderr output deleted ... 3098 10q' conftest.err >conftest.er1 3099 cat conftest.er1 >&5 3100 fi 3101 rm -f conftest.er1 conftest.err 3102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3103 test $ac_status = 0; } 3104done 3105 3106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3107/* end confdefs.h. */ 3108 3109int 3110main (void) 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117ac_clean_files_save=$ac_clean_files 3118ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3119# Try to create an executable without -o first, disregard a.out. 3120# It will help us diagnose broken compilers, and finding out an intuition 3121# of exeext. 3122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3123printf %s "checking whether the C compiler works... " >&6; } 3124ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3125 3126# The possible output files: 3127ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3128 3129ac_rmfiles= 3130for ac_file in $ac_files 3131do 3132 case $ac_file in 3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3134 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3135 esac 3136done 3137rm -f $ac_rmfiles 3138 3139if { { ac_try="$ac_link_default" 3140case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3145printf "%s\n" "$ac_try_echo"; } >&5 3146 (eval "$ac_link_default") 2>&5 3147 ac_status=$? 3148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3149 test $ac_status = 0; } 3150then : 3151 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3152# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3153# in a Makefile. We should not override ac_cv_exeext if it was cached, 3154# so that the user can short-circuit this test for compilers unknown to 3155# Autoconf. 3156for ac_file in $ac_files '' 3157do 3158 test -f "$ac_file" || continue 3159 case $ac_file in 3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3161 ;; 3162 [ab].out ) 3163 # We found the default executable, but exeext='' is most 3164 # certainly right. 3165 break;; 3166 *.* ) 3167 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3168 then :; else 3169 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3170 fi 3171 # We set ac_cv_exeext here because the later test for it is not 3172 # safe: cross compilers may not add the suffix if given an `-o' 3173 # argument, so we may need to know it at that point already. 3174 # Even if this section looks crufty: it has the advantage of 3175 # actually working. 3176 break;; 3177 * ) 3178 break;; 3179 esac 3180done 3181test "$ac_cv_exeext" = no && ac_cv_exeext= 3182 3183else $as_nop 3184 ac_file='' 3185fi 3186if test -z "$ac_file" 3187then : 3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189printf "%s\n" "no" >&6; } 3190printf "%s\n" "$as_me: failed program was:" >&5 3191sed 's/^/| /' conftest.$ac_ext >&5 3192 3193{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3194printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3195as_fn_error 77 "C compiler cannot create executables 3196See \`config.log' for more details" "$LINENO" 5; } 3197else $as_nop 3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3199printf "%s\n" "yes" >&6; } 3200fi 3201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3202printf %s "checking for C compiler default output file name... " >&6; } 3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3204printf "%s\n" "$ac_file" >&6; } 3205ac_exeext=$ac_cv_exeext 3206 3207rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3208ac_clean_files=$ac_clean_files_save 3209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3210printf %s "checking for suffix of executables... " >&6; } 3211if { { ac_try="$ac_link" 3212case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3217printf "%s\n" "$ac_try_echo"; } >&5 3218 (eval "$ac_link") 2>&5 3219 ac_status=$? 3220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3221 test $ac_status = 0; } 3222then : 3223 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3224# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3225# work properly (i.e., refer to `conftest.exe'), while it won't with 3226# `rm'. 3227for ac_file in conftest.exe conftest conftest.*; do 3228 test -f "$ac_file" || continue 3229 case $ac_file in 3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3232 break;; 3233 * ) break;; 3234 esac 3235done 3236else $as_nop 3237 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3238printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3239as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3240See \`config.log' for more details" "$LINENO" 5; } 3241fi 3242rm -f conftest conftest$ac_cv_exeext 3243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3244printf "%s\n" "$ac_cv_exeext" >&6; } 3245 3246rm -f conftest.$ac_ext 3247EXEEXT=$ac_cv_exeext 3248ac_exeext=$EXEEXT 3249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3250/* end confdefs.h. */ 3251#include <stdio.h> 3252int 3253main (void) 3254{ 3255FILE *f = fopen ("conftest.out", "w"); 3256 return ferror (f) || fclose (f) != 0; 3257 3258 ; 3259 return 0; 3260} 3261_ACEOF 3262ac_clean_files="$ac_clean_files conftest.out" 3263# Check that the compiler produces executables we can run. If not, either 3264# the compiler is broken, or we cross compile. 3265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3266printf %s "checking whether we are cross compiling... " >&6; } 3267if test "$cross_compiling" != yes; then 3268 { { ac_try="$ac_link" 3269case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272esac 3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3274printf "%s\n" "$ac_try_echo"; } >&5 3275 (eval "$ac_link") 2>&5 3276 ac_status=$? 3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3278 test $ac_status = 0; } 3279 if { ac_try='./conftest$ac_cv_exeext' 3280 { { case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3285printf "%s\n" "$ac_try_echo"; } >&5 3286 (eval "$ac_try") 2>&5 3287 ac_status=$? 3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3289 test $ac_status = 0; }; }; then 3290 cross_compiling=no 3291 else 3292 if test "$cross_compiling" = maybe; then 3293 cross_compiling=yes 3294 else 3295 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3296printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3297as_fn_error 77 "cannot run C compiled programs. 3298If you meant to cross compile, use \`--host'. 3299See \`config.log' for more details" "$LINENO" 5; } 3300 fi 3301 fi 3302fi 3303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3304printf "%s\n" "$cross_compiling" >&6; } 3305 3306rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3307ac_clean_files=$ac_clean_files_save 3308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3309printf %s "checking for suffix of object files... " >&6; } 3310if test ${ac_cv_objext+y} 3311then : 3312 printf %s "(cached) " >&6 3313else $as_nop 3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316 3317int 3318main (void) 3319{ 3320 3321 ; 3322 return 0; 3323} 3324_ACEOF 3325rm -f conftest.o conftest.obj 3326if { { ac_try="$ac_compile" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3332printf "%s\n" "$ac_try_echo"; } >&5 3333 (eval "$ac_compile") 2>&5 3334 ac_status=$? 3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3336 test $ac_status = 0; } 3337then : 3338 for ac_file in conftest.o conftest.obj conftest.*; do 3339 test -f "$ac_file" || continue; 3340 case $ac_file in 3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3342 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3343 break;; 3344 esac 3345done 3346else $as_nop 3347 printf "%s\n" "$as_me: failed program was:" >&5 3348sed 's/^/| /' conftest.$ac_ext >&5 3349 3350{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3351printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3352as_fn_error $? "cannot compute suffix of object files: cannot compile 3353See \`config.log' for more details" "$LINENO" 5; } 3354fi 3355rm -f conftest.$ac_cv_objext conftest.$ac_ext 3356fi 3357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3358printf "%s\n" "$ac_cv_objext" >&6; } 3359OBJEXT=$ac_cv_objext 3360ac_objext=$OBJEXT 3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3362printf %s "checking whether the compiler supports GNU C... " >&6; } 3363if test ${ac_cv_c_compiler_gnu+y} 3364then : 3365 printf %s "(cached) " >&6 3366else $as_nop 3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3368/* end confdefs.h. */ 3369 3370int 3371main (void) 3372{ 3373#ifndef __GNUC__ 3374 choke me 3375#endif 3376 3377 ; 3378 return 0; 3379} 3380_ACEOF 3381if ac_fn_c_try_compile "$LINENO" 3382then : 3383 ac_compiler_gnu=yes 3384else $as_nop 3385 ac_compiler_gnu=no 3386fi 3387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3388ac_cv_c_compiler_gnu=$ac_compiler_gnu 3389 3390fi 3391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3392printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3393ac_compiler_gnu=$ac_cv_c_compiler_gnu 3394 3395if test $ac_compiler_gnu = yes; then 3396 GCC=yes 3397else 3398 GCC= 3399fi 3400ac_test_CFLAGS=${CFLAGS+y} 3401ac_save_CFLAGS=$CFLAGS 3402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3403printf %s "checking whether $CC accepts -g... " >&6; } 3404if test ${ac_cv_prog_cc_g+y} 3405then : 3406 printf %s "(cached) " >&6 3407else $as_nop 3408 ac_save_c_werror_flag=$ac_c_werror_flag 3409 ac_c_werror_flag=yes 3410 ac_cv_prog_cc_g=no 3411 CFLAGS="-g" 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413/* end confdefs.h. */ 3414 3415int 3416main (void) 3417{ 3418 3419 ; 3420 return 0; 3421} 3422_ACEOF 3423if ac_fn_c_try_compile "$LINENO" 3424then : 3425 ac_cv_prog_cc_g=yes 3426else $as_nop 3427 CFLAGS="" 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430 3431int 3432main (void) 3433{ 3434 3435 ; 3436 return 0; 3437} 3438_ACEOF 3439if ac_fn_c_try_compile "$LINENO" 3440then : 3441 3442else $as_nop 3443 ac_c_werror_flag=$ac_save_c_werror_flag 3444 CFLAGS="-g" 3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3446/* end confdefs.h. */ 3447 3448int 3449main (void) 3450{ 3451 3452 ; 3453 return 0; 3454} 3455_ACEOF 3456if ac_fn_c_try_compile "$LINENO" 3457then : 3458 ac_cv_prog_cc_g=yes 3459fi 3460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3461fi 3462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3463fi 3464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3465 ac_c_werror_flag=$ac_save_c_werror_flag 3466fi 3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3468printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3469if test $ac_test_CFLAGS; then 3470 CFLAGS=$ac_save_CFLAGS 3471elif test $ac_cv_prog_cc_g = yes; then 3472 if test "$GCC" = yes; then 3473 CFLAGS="-g -O2" 3474 else 3475 CFLAGS="-g" 3476 fi 3477else 3478 if test "$GCC" = yes; then 3479 CFLAGS="-O2" 3480 else 3481 CFLAGS= 3482 fi 3483fi 3484ac_prog_cc_stdc=no 3485if test x$ac_prog_cc_stdc = xno 3486then : 3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3488printf %s "checking for $CC option to enable C11 features... " >&6; } 3489if test ${ac_cv_prog_cc_c11+y} 3490then : 3491 printf %s "(cached) " >&6 3492else $as_nop 3493 ac_cv_prog_cc_c11=no 3494ac_save_CC=$CC 3495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496/* end confdefs.h. */ 3497$ac_c_conftest_c11_program 3498_ACEOF 3499for ac_arg in '' -std=gnu11 3500do 3501 CC="$ac_save_CC $ac_arg" 3502 if ac_fn_c_try_compile "$LINENO" 3503then : 3504 ac_cv_prog_cc_c11=$ac_arg 3505fi 3506rm -f core conftest.err conftest.$ac_objext conftest.beam 3507 test "x$ac_cv_prog_cc_c11" != "xno" && break 3508done 3509rm -f conftest.$ac_ext 3510CC=$ac_save_CC 3511fi 3512 3513if test "x$ac_cv_prog_cc_c11" = xno 3514then : 3515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3516printf "%s\n" "unsupported" >&6; } 3517else $as_nop 3518 if test "x$ac_cv_prog_cc_c11" = x 3519then : 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3521printf "%s\n" "none needed" >&6; } 3522else $as_nop 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3524printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3525 CC="$CC $ac_cv_prog_cc_c11" 3526fi 3527 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3528 ac_prog_cc_stdc=c11 3529fi 3530fi 3531if test x$ac_prog_cc_stdc = xno 3532then : 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3534printf %s "checking for $CC option to enable C99 features... " >&6; } 3535if test ${ac_cv_prog_cc_c99+y} 3536then : 3537 printf %s "(cached) " >&6 3538else $as_nop 3539 ac_cv_prog_cc_c99=no 3540ac_save_CC=$CC 3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543$ac_c_conftest_c99_program 3544_ACEOF 3545for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3546do 3547 CC="$ac_save_CC $ac_arg" 3548 if ac_fn_c_try_compile "$LINENO" 3549then : 3550 ac_cv_prog_cc_c99=$ac_arg 3551fi 3552rm -f core conftest.err conftest.$ac_objext conftest.beam 3553 test "x$ac_cv_prog_cc_c99" != "xno" && break 3554done 3555rm -f conftest.$ac_ext 3556CC=$ac_save_CC 3557fi 3558 3559if test "x$ac_cv_prog_cc_c99" = xno 3560then : 3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3562printf "%s\n" "unsupported" >&6; } 3563else $as_nop 3564 if test "x$ac_cv_prog_cc_c99" = x 3565then : 3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3567printf "%s\n" "none needed" >&6; } 3568else $as_nop 3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3570printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3571 CC="$CC $ac_cv_prog_cc_c99" 3572fi 3573 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3574 ac_prog_cc_stdc=c99 3575fi 3576fi 3577if test x$ac_prog_cc_stdc = xno 3578then : 3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3580printf %s "checking for $CC option to enable C89 features... " >&6; } 3581if test ${ac_cv_prog_cc_c89+y} 3582then : 3583 printf %s "(cached) " >&6 3584else $as_nop 3585 ac_cv_prog_cc_c89=no 3586ac_save_CC=$CC 3587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3588/* end confdefs.h. */ 3589$ac_c_conftest_c89_program 3590_ACEOF 3591for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3592do 3593 CC="$ac_save_CC $ac_arg" 3594 if ac_fn_c_try_compile "$LINENO" 3595then : 3596 ac_cv_prog_cc_c89=$ac_arg 3597fi 3598rm -f core conftest.err conftest.$ac_objext conftest.beam 3599 test "x$ac_cv_prog_cc_c89" != "xno" && break 3600done 3601rm -f conftest.$ac_ext 3602CC=$ac_save_CC 3603fi 3604 3605if test "x$ac_cv_prog_cc_c89" = xno 3606then : 3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3608printf "%s\n" "unsupported" >&6; } 3609else $as_nop 3610 if test "x$ac_cv_prog_cc_c89" = x 3611then : 3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3613printf "%s\n" "none needed" >&6; } 3614else $as_nop 3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3616printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3617 CC="$CC $ac_cv_prog_cc_c89" 3618fi 3619 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3620 ac_prog_cc_stdc=c89 3621fi 3622fi 3623 3624ac_ext=c 3625ac_cpp='$CPP $CPPFLAGS' 3626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3628ac_compiler_gnu=$ac_cv_c_compiler_gnu 3629 3630 3631 ac_ext=c 3632ac_cpp='$CPP $CPPFLAGS' 3633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3635ac_compiler_gnu=$ac_cv_c_compiler_gnu 3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3637printf %s "checking whether $CC understands -c and -o together... " >&6; } 3638if test ${am_cv_prog_cc_c_o+y} 3639then : 3640 printf %s "(cached) " >&6 3641else $as_nop 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644 3645int 3646main (void) 3647{ 3648 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653 # Make sure it works both with $CC and with simple cc. 3654 # Following AC_PROG_CC_C_O, we do the test twice because some 3655 # compilers refuse to overwrite an existing .o file with -o, 3656 # though they will create one. 3657 am_cv_prog_cc_c_o=yes 3658 for am_i in 1 2; do 3659 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3660 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3661 ac_status=$? 3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3663 (exit $ac_status); } \ 3664 && test -f conftest2.$ac_objext; then 3665 : OK 3666 else 3667 am_cv_prog_cc_c_o=no 3668 break 3669 fi 3670 done 3671 rm -f core conftest* 3672 unset am_i 3673fi 3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3675printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3676if test "$am_cv_prog_cc_c_o" != yes; then 3677 # Losing compiler, so override with the script. 3678 # FIXME: It is wrong to rewrite CC. 3679 # But if we don't then we get into trouble of one sort or another. 3680 # A longer-term fix would be to have automake use am__CC in this case, 3681 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3682 CC="$am_aux_dir/compile $CC" 3683fi 3684ac_ext=c 3685ac_cpp='$CPP $CPPFLAGS' 3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3688ac_compiler_gnu=$ac_cv_c_compiler_gnu 3689 3690 3691 3692ac_header= ac_cache= 3693for ac_item in $ac_header_c_list 3694do 3695 if test $ac_cache; then 3696 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3697 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3698 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3699 fi 3700 ac_header= ac_cache= 3701 elif test $ac_header; then 3702 ac_cache=$ac_item 3703 else 3704 ac_header=$ac_item 3705 fi 3706done 3707 3708 3709 3710 3711 3712 3713 3714 3715if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3716then : 3717 3718printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3719 3720fi 3721 3722 3723 3724 3725 3726 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3728printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3729if test ${ac_cv_safe_to_define___extensions__+y} 3730then : 3731 printf %s "(cached) " >&6 3732else $as_nop 3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734/* end confdefs.h. */ 3735 3736# define __EXTENSIONS__ 1 3737 $ac_includes_default 3738int 3739main (void) 3740{ 3741 3742 ; 3743 return 0; 3744} 3745_ACEOF 3746if ac_fn_c_try_compile "$LINENO" 3747then : 3748 ac_cv_safe_to_define___extensions__=yes 3749else $as_nop 3750 ac_cv_safe_to_define___extensions__=no 3751fi 3752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3753fi 3754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3755printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3756 3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3758printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3759if test ${ac_cv_should_define__xopen_source+y} 3760then : 3761 printf %s "(cached) " >&6 3762else $as_nop 3763 ac_cv_should_define__xopen_source=no 3764 if test $ac_cv_header_wchar_h = yes 3765then : 3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3767/* end confdefs.h. */ 3768 3769 #include <wchar.h> 3770 mbstate_t x; 3771int 3772main (void) 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779if ac_fn_c_try_compile "$LINENO" 3780then : 3781 3782else $as_nop 3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3784/* end confdefs.h. */ 3785 3786 #define _XOPEN_SOURCE 500 3787 #include <wchar.h> 3788 mbstate_t x; 3789int 3790main (void) 3791{ 3792 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797if ac_fn_c_try_compile "$LINENO" 3798then : 3799 ac_cv_should_define__xopen_source=yes 3800fi 3801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3802fi 3803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3804fi 3805fi 3806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3807printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3808 3809 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3810 3811 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3812 3813 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3814 3815 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3816 3817 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3818 3819 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3820 3821 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3822 3823 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3824 3825 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3826 3827 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3828 3829 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3830 3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3832 3833 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3834 3835 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3836 3837 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3838 3839 if test $ac_cv_header_minix_config_h = yes 3840then : 3841 MINIX=yes 3842 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3843 3844 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3845 3846 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3847 3848else $as_nop 3849 MINIX= 3850fi 3851 if test $ac_cv_safe_to_define___extensions__ = yes 3852then : 3853 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3854 3855fi 3856 if test $ac_cv_should_define__xopen_source = yes 3857then : 3858 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3859 3860fi 3861 3862 3863# Initialize Automake 3864am__api_version='1.16' 3865 3866 3867 # Find a good install program. We prefer a C program (faster), 3868# so one script is as good as another. But avoid the broken or 3869# incompatible versions: 3870# SysV /etc/install, /usr/sbin/install 3871# SunOS /usr/etc/install 3872# IRIX /sbin/install 3873# AIX /bin/install 3874# AmigaOS /C/install, which installs bootblocks on floppy discs 3875# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3876# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3877# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3878# OS/2's system install, which has a completely different semantic 3879# ./install, which can be erroneously created by make from ./install.sh. 3880# Reject install programs that cannot install multiple files. 3881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3882printf %s "checking for a BSD-compatible install... " >&6; } 3883if test -z "$INSTALL"; then 3884if test ${ac_cv_path_install+y} 3885then : 3886 printf %s "(cached) " >&6 3887else $as_nop 3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3889for as_dir in $PATH 3890do 3891 IFS=$as_save_IFS 3892 case $as_dir in #((( 3893 '') as_dir=./ ;; 3894 */) ;; 3895 *) as_dir=$as_dir/ ;; 3896 esac 3897 # Account for fact that we put trailing slashes in our PATH walk. 3898case $as_dir in #(( 3899 ./ | /[cC]/* | \ 3900 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3901 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3902 /usr/ucb/* ) ;; 3903 *) 3904 # OSF1 and SCO ODT 3.0 have their own names for install. 3905 # Don't use installbsd from OSF since it installs stuff as root 3906 # by default. 3907 for ac_prog in ginstall scoinst install; do 3908 for ac_exec_ext in '' $ac_executable_extensions; do 3909 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3910 if test $ac_prog = install && 3911 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3912 # AIX install. It has an incompatible calling convention. 3913 : 3914 elif test $ac_prog = install && 3915 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3916 # program-specific install script used by HP pwplus--don't use. 3917 : 3918 else 3919 rm -rf conftest.one conftest.two conftest.dir 3920 echo one > conftest.one 3921 echo two > conftest.two 3922 mkdir conftest.dir 3923 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3924 test -s conftest.one && test -s conftest.two && 3925 test -s conftest.dir/conftest.one && 3926 test -s conftest.dir/conftest.two 3927 then 3928 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3929 break 3 3930 fi 3931 fi 3932 fi 3933 done 3934 done 3935 ;; 3936esac 3937 3938 done 3939IFS=$as_save_IFS 3940 3941rm -rf conftest.one conftest.two conftest.dir 3942 3943fi 3944 if test ${ac_cv_path_install+y}; then 3945 INSTALL=$ac_cv_path_install 3946 else 3947 # As a last resort, use the slow shell script. Don't cache a 3948 # value for INSTALL within a source directory, because that will 3949 # break other packages using the cache if that directory is 3950 # removed, or if the value is a relative name. 3951 INSTALL=$ac_install_sh 3952 fi 3953fi 3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3955printf "%s\n" "$INSTALL" >&6; } 3956 3957# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3958# It thinks the first close brace ends the variable substitution. 3959test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3960 3961test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3962 3963test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3964 3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3966printf %s "checking whether build environment is sane... " >&6; } 3967# Reject unsafe characters in $srcdir or the absolute working directory 3968# name. Accept space and tab only in the latter. 3969am_lf=' 3970' 3971case `pwd` in 3972 *[\\\"\#\$\&\'\`$am_lf]*) 3973 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3974esac 3975case $srcdir in 3976 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3977 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3978esac 3979 3980# Do 'set' in a subshell so we don't clobber the current shell's 3981# arguments. Must try -L first in case configure is actually a 3982# symlink; some systems play weird games with the mod time of symlinks 3983# (eg FreeBSD returns the mod time of the symlink's containing 3984# directory). 3985if ( 3986 am_has_slept=no 3987 for am_try in 1 2; do 3988 echo "timestamp, slept: $am_has_slept" > conftest.file 3989 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3990 if test "$*" = "X"; then 3991 # -L didn't work. 3992 set X `ls -t "$srcdir/configure" conftest.file` 3993 fi 3994 if test "$*" != "X $srcdir/configure conftest.file" \ 3995 && test "$*" != "X conftest.file $srcdir/configure"; then 3996 3997 # If neither matched, then we have a broken ls. This can happen 3998 # if, for instance, CONFIG_SHELL is bash and it inherits a 3999 # broken ls alias from the environment. This has actually 4000 # happened. Such a system could not be considered "sane". 4001 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4002 alias in your environment" "$LINENO" 5 4003 fi 4004 if test "$2" = conftest.file || test $am_try -eq 2; then 4005 break 4006 fi 4007 # Just in case. 4008 sleep 1 4009 am_has_slept=yes 4010 done 4011 test "$2" = conftest.file 4012 ) 4013then 4014 # Ok. 4015 : 4016else 4017 as_fn_error $? "newly created file is older than distributed files! 4018Check your system clock" "$LINENO" 5 4019fi 4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4021printf "%s\n" "yes" >&6; } 4022# If we didn't sleep, we still need to ensure time stamps of config.status and 4023# generated files are strictly newer. 4024am_sleep_pid= 4025if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4026 ( sleep 1 ) & 4027 am_sleep_pid=$! 4028fi 4029 4030rm -f conftest.file 4031 4032test "$program_prefix" != NONE && 4033 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4034# Use a double $ so make ignores it. 4035test "$program_suffix" != NONE && 4036 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4037# Double any \ or $. 4038# By default was `s,x,x', remove it if useless. 4039ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4040program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4041 4042 4043 if test x"${MISSING+set}" != xset; then 4044 MISSING="\${SHELL} '$am_aux_dir/missing'" 4045fi 4046# Use eval to expand $SHELL 4047if eval "$MISSING --is-lightweight"; then 4048 am_missing_run="$MISSING " 4049else 4050 am_missing_run= 4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4052printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4053fi 4054 4055if test x"${install_sh+set}" != xset; then 4056 case $am_aux_dir in 4057 *\ * | *\ *) 4058 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4059 *) 4060 install_sh="\${SHELL} $am_aux_dir/install-sh" 4061 esac 4062fi 4063 4064# Installed binaries are usually stripped using 'strip' when the user 4065# run "make install-strip". However 'strip' might not be the right 4066# tool to use in cross-compilation environments, therefore Automake 4067# will honor the 'STRIP' environment variable to overrule this program. 4068if test "$cross_compiling" != no; then 4069 if test -n "$ac_tool_prefix"; then 4070 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4071set dummy ${ac_tool_prefix}strip; ac_word=$2 4072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4073printf %s "checking for $ac_word... " >&6; } 4074if test ${ac_cv_prog_STRIP+y} 4075then : 4076 printf %s "(cached) " >&6 4077else $as_nop 4078 if test -n "$STRIP"; then 4079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4080else 4081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4082for as_dir in $PATH 4083do 4084 IFS=$as_save_IFS 4085 case $as_dir in #((( 4086 '') as_dir=./ ;; 4087 */) ;; 4088 *) as_dir=$as_dir/ ;; 4089 esac 4090 for ac_exec_ext in '' $ac_executable_extensions; do 4091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4092 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4094 break 2 4095 fi 4096done 4097 done 4098IFS=$as_save_IFS 4099 4100fi 4101fi 4102STRIP=$ac_cv_prog_STRIP 4103if test -n "$STRIP"; then 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4105printf "%s\n" "$STRIP" >&6; } 4106else 4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4108printf "%s\n" "no" >&6; } 4109fi 4110 4111 4112fi 4113if test -z "$ac_cv_prog_STRIP"; then 4114 ac_ct_STRIP=$STRIP 4115 # Extract the first word of "strip", so it can be a program name with args. 4116set dummy strip; ac_word=$2 4117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4118printf %s "checking for $ac_word... " >&6; } 4119if test ${ac_cv_prog_ac_ct_STRIP+y} 4120then : 4121 printf %s "(cached) " >&6 4122else $as_nop 4123 if test -n "$ac_ct_STRIP"; then 4124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4125else 4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4127for as_dir in $PATH 4128do 4129 IFS=$as_save_IFS 4130 case $as_dir in #((( 4131 '') as_dir=./ ;; 4132 */) ;; 4133 *) as_dir=$as_dir/ ;; 4134 esac 4135 for ac_exec_ext in '' $ac_executable_extensions; do 4136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4137 ac_cv_prog_ac_ct_STRIP="strip" 4138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4139 break 2 4140 fi 4141done 4142 done 4143IFS=$as_save_IFS 4144 4145fi 4146fi 4147ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4148if test -n "$ac_ct_STRIP"; then 4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4150printf "%s\n" "$ac_ct_STRIP" >&6; } 4151else 4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4153printf "%s\n" "no" >&6; } 4154fi 4155 4156 if test "x$ac_ct_STRIP" = x; then 4157 STRIP=":" 4158 else 4159 case $cross_compiling:$ac_tool_warned in 4160yes:) 4161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4162printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4163ac_tool_warned=yes ;; 4164esac 4165 STRIP=$ac_ct_STRIP 4166 fi 4167else 4168 STRIP="$ac_cv_prog_STRIP" 4169fi 4170 4171fi 4172INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4173 4174 4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4176printf %s "checking for a race-free mkdir -p... " >&6; } 4177if test -z "$MKDIR_P"; then 4178 if test ${ac_cv_path_mkdir+y} 4179then : 4180 printf %s "(cached) " >&6 4181else $as_nop 4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4183for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4184do 4185 IFS=$as_save_IFS 4186 case $as_dir in #((( 4187 '') as_dir=./ ;; 4188 */) ;; 4189 *) as_dir=$as_dir/ ;; 4190 esac 4191 for ac_prog in mkdir gmkdir; do 4192 for ac_exec_ext in '' $ac_executable_extensions; do 4193 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4194 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4195 'mkdir ('*'coreutils) '* | \ 4196 'BusyBox '* | \ 4197 'mkdir (fileutils) '4.1*) 4198 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4199 break 3;; 4200 esac 4201 done 4202 done 4203 done 4204IFS=$as_save_IFS 4205 4206fi 4207 4208 test -d ./--version && rmdir ./--version 4209 if test ${ac_cv_path_mkdir+y}; then 4210 MKDIR_P="$ac_cv_path_mkdir -p" 4211 else 4212 # As a last resort, use the slow shell script. Don't cache a 4213 # value for MKDIR_P within a source directory, because that will 4214 # break other packages using the cache if that directory is 4215 # removed, or if the value is a relative name. 4216 MKDIR_P="$ac_install_sh -d" 4217 fi 4218fi 4219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4220printf "%s\n" "$MKDIR_P" >&6; } 4221 4222for ac_prog in gawk mawk nawk awk 4223do 4224 # Extract the first word of "$ac_prog", so it can be a program name with args. 4225set dummy $ac_prog; ac_word=$2 4226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4227printf %s "checking for $ac_word... " >&6; } 4228if test ${ac_cv_prog_AWK+y} 4229then : 4230 printf %s "(cached) " >&6 4231else $as_nop 4232 if test -n "$AWK"; then 4233 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4234else 4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4236for as_dir in $PATH 4237do 4238 IFS=$as_save_IFS 4239 case $as_dir in #((( 4240 '') as_dir=./ ;; 4241 */) ;; 4242 *) as_dir=$as_dir/ ;; 4243 esac 4244 for ac_exec_ext in '' $ac_executable_extensions; do 4245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4246 ac_cv_prog_AWK="$ac_prog" 4247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4248 break 2 4249 fi 4250done 4251 done 4252IFS=$as_save_IFS 4253 4254fi 4255fi 4256AWK=$ac_cv_prog_AWK 4257if test -n "$AWK"; then 4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4259printf "%s\n" "$AWK" >&6; } 4260else 4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4262printf "%s\n" "no" >&6; } 4263fi 4264 4265 4266 test -n "$AWK" && break 4267done 4268 4269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4270printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4271set x ${MAKE-make} 4272ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4273if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4274then : 4275 printf %s "(cached) " >&6 4276else $as_nop 4277 cat >conftest.make <<\_ACEOF 4278SHELL = /bin/sh 4279all: 4280 @echo '@@@%%%=$(MAKE)=@@@%%%' 4281_ACEOF 4282# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4283case `${MAKE-make} -f conftest.make 2>/dev/null` in 4284 *@@@%%%=?*=@@@%%%*) 4285 eval ac_cv_prog_make_${ac_make}_set=yes;; 4286 *) 4287 eval ac_cv_prog_make_${ac_make}_set=no;; 4288esac 4289rm -f conftest.make 4290fi 4291if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4293printf "%s\n" "yes" >&6; } 4294 SET_MAKE= 4295else 4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4297printf "%s\n" "no" >&6; } 4298 SET_MAKE="MAKE=${MAKE-make}" 4299fi 4300 4301rm -rf .tst 2>/dev/null 4302mkdir .tst 2>/dev/null 4303if test -d .tst; then 4304 am__leading_dot=. 4305else 4306 am__leading_dot=_ 4307fi 4308rmdir .tst 2>/dev/null 4309 4310DEPDIR="${am__leading_dot}deps" 4311 4312ac_config_commands="$ac_config_commands depfiles" 4313 4314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4315printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4316cat > confinc.mk << 'END' 4317am__doit: 4318 @echo this is the am__doit target >confinc.out 4319.PHONY: am__doit 4320END 4321am__include="#" 4322am__quote= 4323# BSD make does it like this. 4324echo '.include "confinc.mk" # ignored' > confmf.BSD 4325# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4326echo 'include confinc.mk # ignored' > confmf.GNU 4327_am_result=no 4328for s in GNU BSD; do 4329 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4330 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4331 ac_status=$? 4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4333 (exit $ac_status); } 4334 case $?:`cat confinc.out 2>/dev/null` in #( 4335 '0:this is the am__doit target') : 4336 case $s in #( 4337 BSD) : 4338 am__include='.include' am__quote='"' ;; #( 4339 *) : 4340 am__include='include' am__quote='' ;; 4341esac ;; #( 4342 *) : 4343 ;; 4344esac 4345 if test "$am__include" != "#"; then 4346 _am_result="yes ($s style)" 4347 break 4348 fi 4349done 4350rm -f confinc.* confmf.* 4351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4352printf "%s\n" "${_am_result}" >&6; } 4353 4354# Check whether --enable-dependency-tracking was given. 4355if test ${enable_dependency_tracking+y} 4356then : 4357 enableval=$enable_dependency_tracking; 4358fi 4359 4360if test "x$enable_dependency_tracking" != xno; then 4361 am_depcomp="$ac_aux_dir/depcomp" 4362 AMDEPBACKSLASH='\' 4363 am__nodep='_no' 4364fi 4365 if test "x$enable_dependency_tracking" != xno; then 4366 AMDEP_TRUE= 4367 AMDEP_FALSE='#' 4368else 4369 AMDEP_TRUE='#' 4370 AMDEP_FALSE= 4371fi 4372 4373 4374# Check whether --enable-silent-rules was given. 4375if test ${enable_silent_rules+y} 4376then : 4377 enableval=$enable_silent_rules; 4378fi 4379 4380case $enable_silent_rules in # ((( 4381 yes) AM_DEFAULT_VERBOSITY=0;; 4382 no) AM_DEFAULT_VERBOSITY=1;; 4383 *) AM_DEFAULT_VERBOSITY=1;; 4384esac 4385am_make=${MAKE-make} 4386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4387printf %s "checking whether $am_make supports nested variables... " >&6; } 4388if test ${am_cv_make_support_nested_variables+y} 4389then : 4390 printf %s "(cached) " >&6 4391else $as_nop 4392 if printf "%s\n" 'TRUE=$(BAR$(V)) 4393BAR0=false 4394BAR1=true 4395V=1 4396am__doit: 4397 @$(TRUE) 4398.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4399 am_cv_make_support_nested_variables=yes 4400else 4401 am_cv_make_support_nested_variables=no 4402fi 4403fi 4404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4405printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4406if test $am_cv_make_support_nested_variables = yes; then 4407 AM_V='$(V)' 4408 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4409else 4410 AM_V=$AM_DEFAULT_VERBOSITY 4411 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4412fi 4413AM_BACKSLASH='\' 4414 4415if test "`cd $srcdir && pwd`" != "`pwd`"; then 4416 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4417 # is not polluted with repeated "-I." 4418 am__isrc=' -I$(srcdir)' 4419 # test to see if srcdir already configured 4420 if test -f $srcdir/config.status; then 4421 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4422 fi 4423fi 4424 4425# test whether we have cygpath 4426if test -z "$CYGPATH_W"; then 4427 if (cygpath --version) >/dev/null 2>/dev/null; then 4428 CYGPATH_W='cygpath -w' 4429 else 4430 CYGPATH_W=echo 4431 fi 4432fi 4433 4434 4435# Define the identity of the package. 4436 PACKAGE='libXau' 4437 VERSION='1.0.11' 4438 4439 4440printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4441 4442 4443printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4444 4445# Some tools Automake needs. 4446 4447ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4448 4449 4450AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4451 4452 4453AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4454 4455 4456AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4457 4458 4459MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4460 4461# For better backward compatibility. To be removed once Automake 1.9.x 4462# dies out for good. For more background, see: 4463# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4464# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4465mkdir_p='$(MKDIR_P)' 4466 4467# We need awk for the "check" target (and possibly the TAP driver). The 4468# system "awk" is bad on some platforms. 4469# Always define AMTAR for backward compatibility. Yes, it's still used 4470# in the wild :-( We should find a proper way to deprecate it ... 4471AMTAR='$${TAR-tar}' 4472 4473 4474# We'll loop over all known methods to create a tar archive until one works. 4475_am_tools='gnutar pax cpio none' 4476 4477am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4478 4479 4480 4481 4482 4483depcc="$CC" am_compiler_list= 4484 4485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4486printf %s "checking dependency style of $depcc... " >&6; } 4487if test ${am_cv_CC_dependencies_compiler_type+y} 4488then : 4489 printf %s "(cached) " >&6 4490else $as_nop 4491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4492 # We make a subdir and do the tests there. Otherwise we can end up 4493 # making bogus files that we don't know about and never remove. For 4494 # instance it was reported that on HP-UX the gcc test will end up 4495 # making a dummy file named 'D' -- because '-MD' means "put the output 4496 # in D". 4497 rm -rf conftest.dir 4498 mkdir conftest.dir 4499 # Copy depcomp to subdir because otherwise we won't find it if we're 4500 # using a relative directory. 4501 cp "$am_depcomp" conftest.dir 4502 cd conftest.dir 4503 # We will build objects and dependencies in a subdirectory because 4504 # it helps to detect inapplicable dependency modes. For instance 4505 # both Tru64's cc and ICC support -MD to output dependencies as a 4506 # side effect of compilation, but ICC will put the dependencies in 4507 # the current directory while Tru64 will put them in the object 4508 # directory. 4509 mkdir sub 4510 4511 am_cv_CC_dependencies_compiler_type=none 4512 if test "$am_compiler_list" = ""; then 4513 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4514 fi 4515 am__universal=false 4516 case " $depcc " in #( 4517 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4518 esac 4519 4520 for depmode in $am_compiler_list; do 4521 # Setup a source with many dependencies, because some compilers 4522 # like to wrap large dependency lists on column 80 (with \), and 4523 # we should not choose a depcomp mode which is confused by this. 4524 # 4525 # We need to recreate these files for each test, as the compiler may 4526 # overwrite some of them when testing with obscure command lines. 4527 # This happens at least with the AIX C compiler. 4528 : > sub/conftest.c 4529 for i in 1 2 3 4 5 6; do 4530 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4531 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4532 # Solaris 10 /bin/sh. 4533 echo '/* dummy */' > sub/conftst$i.h 4534 done 4535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4536 4537 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4538 # mode. It turns out that the SunPro C++ compiler does not properly 4539 # handle '-M -o', and we need to detect this. Also, some Intel 4540 # versions had trouble with output in subdirs. 4541 am__obj=sub/conftest.${OBJEXT-o} 4542 am__minus_obj="-o $am__obj" 4543 case $depmode in 4544 gcc) 4545 # This depmode causes a compiler race in universal mode. 4546 test "$am__universal" = false || continue 4547 ;; 4548 nosideeffect) 4549 # After this tag, mechanisms are not by side-effect, so they'll 4550 # only be used when explicitly requested. 4551 if test "x$enable_dependency_tracking" = xyes; then 4552 continue 4553 else 4554 break 4555 fi 4556 ;; 4557 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4558 # This compiler won't grok '-c -o', but also, the minuso test has 4559 # not run yet. These depmodes are late enough in the game, and 4560 # so weak that their functioning should not be impacted. 4561 am__obj=conftest.${OBJEXT-o} 4562 am__minus_obj= 4563 ;; 4564 none) break ;; 4565 esac 4566 if depmode=$depmode \ 4567 source=sub/conftest.c object=$am__obj \ 4568 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4569 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4570 >/dev/null 2>conftest.err && 4571 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4572 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4573 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4574 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4575 # icc doesn't choke on unknown options, it will just issue warnings 4576 # or remarks (even with -Werror). So we grep stderr for any message 4577 # that says an option was ignored or not supported. 4578 # When given -MP, icc 7.0 and 7.1 complain thusly: 4579 # icc: Command line warning: ignoring option '-M'; no argument required 4580 # The diagnosis changed in icc 8.0: 4581 # icc: Command line remark: option '-MP' not supported 4582 if (grep 'ignoring option' conftest.err || 4583 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4584 am_cv_CC_dependencies_compiler_type=$depmode 4585 break 4586 fi 4587 fi 4588 done 4589 4590 cd .. 4591 rm -rf conftest.dir 4592else 4593 am_cv_CC_dependencies_compiler_type=none 4594fi 4595 4596fi 4597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4598printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4599CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4600 4601 if 4602 test "x$enable_dependency_tracking" != xno \ 4603 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4604 am__fastdepCC_TRUE= 4605 am__fastdepCC_FALSE='#' 4606else 4607 am__fastdepCC_TRUE='#' 4608 am__fastdepCC_FALSE= 4609fi 4610 4611 4612# Variables for tags utilities; see am/tags.am 4613if test -z "$CTAGS"; then 4614 CTAGS=ctags 4615fi 4616 4617if test -z "$ETAGS"; then 4618 ETAGS=etags 4619fi 4620 4621if test -z "$CSCOPE"; then 4622 CSCOPE=cscope 4623fi 4624 4625 4626 4627# POSIX will say in a future version that running "rm -f" with no argument 4628# is OK; and we want to be able to make that assumption in our Makefile 4629# recipes. So use an aggressive probe to check that the usage we want is 4630# actually supported "in the wild" to an acceptable degree. 4631# See automake bug#10828. 4632# To make any issue more visible, cause the running configure to be aborted 4633# by default if the 'rm' program in use doesn't match our expectations; the 4634# user can still override this though. 4635if rm -f && rm -fr && rm -rf; then : OK; else 4636 cat >&2 <<'END' 4637Oops! 4638 4639Your 'rm' program seems unable to run without file operands specified 4640on the command line, even when the '-f' option is present. This is contrary 4641to the behaviour of most rm programs out there, and not conforming with 4642the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4643 4644Please tell bug-automake@gnu.org about your system, including the value 4645of your $PATH and any error possibly output before this message. This 4646can help us improve future automake versions. 4647 4648END 4649 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4650 echo 'Configuration will proceed anyway, since you have set the' >&2 4651 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4652 echo >&2 4653 else 4654 cat >&2 <<'END' 4655Aborting the configuration process, to ensure you take notice of the issue. 4656 4657You can download and install GNU coreutils to get an 'rm' implementation 4658that behaves properly: <https://www.gnu.org/software/coreutils/>. 4659 4660If you want to complete the configuration process using your problematic 4661'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4662to "yes", and re-run configure. 4663 4664END 4665 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4666 fi 4667fi 4668 4669 4670# Initialize libtool 4671 4672 4673 # Make sure we can run config.sub. 4674$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4675 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4676 4677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4678printf %s "checking build system type... " >&6; } 4679if test ${ac_cv_build+y} 4680then : 4681 printf %s "(cached) " >&6 4682else $as_nop 4683 ac_build_alias=$build_alias 4684test "x$ac_build_alias" = x && 4685 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4686test "x$ac_build_alias" = x && 4687 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4688ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4689 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4690 4691fi 4692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4693printf "%s\n" "$ac_cv_build" >&6; } 4694case $ac_cv_build in 4695*-*-*) ;; 4696*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4697esac 4698build=$ac_cv_build 4699ac_save_IFS=$IFS; IFS='-' 4700set x $ac_cv_build 4701shift 4702build_cpu=$1 4703build_vendor=$2 4704shift; shift 4705# Remember, the first character of IFS is used to create $*, 4706# except with old shells: 4707build_os=$* 4708IFS=$ac_save_IFS 4709case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4710 4711 4712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4713printf %s "checking host system type... " >&6; } 4714if test ${ac_cv_host+y} 4715then : 4716 printf %s "(cached) " >&6 4717else $as_nop 4718 if test "x$host_alias" = x; then 4719 ac_cv_host=$ac_cv_build 4720else 4721 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4722 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4723fi 4724 4725fi 4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4727printf "%s\n" "$ac_cv_host" >&6; } 4728case $ac_cv_host in 4729*-*-*) ;; 4730*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4731esac 4732host=$ac_cv_host 4733ac_save_IFS=$IFS; IFS='-' 4734set x $ac_cv_host 4735shift 4736host_cpu=$1 4737host_vendor=$2 4738shift; shift 4739# Remember, the first character of IFS is used to create $*, 4740# except with old shells: 4741host_os=$* 4742IFS=$ac_save_IFS 4743case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4744 4745 4746enable_win32_dll=yes 4747 4748case $host in 4749*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4750 if test -n "$ac_tool_prefix"; then 4751 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4752set dummy ${ac_tool_prefix}as; ac_word=$2 4753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4754printf %s "checking for $ac_word... " >&6; } 4755if test ${ac_cv_prog_AS+y} 4756then : 4757 printf %s "(cached) " >&6 4758else $as_nop 4759 if test -n "$AS"; then 4760 ac_cv_prog_AS="$AS" # Let the user override the test. 4761else 4762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4763for as_dir in $PATH 4764do 4765 IFS=$as_save_IFS 4766 case $as_dir in #((( 4767 '') as_dir=./ ;; 4768 */) ;; 4769 *) as_dir=$as_dir/ ;; 4770 esac 4771 for ac_exec_ext in '' $ac_executable_extensions; do 4772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4773 ac_cv_prog_AS="${ac_tool_prefix}as" 4774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4775 break 2 4776 fi 4777done 4778 done 4779IFS=$as_save_IFS 4780 4781fi 4782fi 4783AS=$ac_cv_prog_AS 4784if test -n "$AS"; then 4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4786printf "%s\n" "$AS" >&6; } 4787else 4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4789printf "%s\n" "no" >&6; } 4790fi 4791 4792 4793fi 4794if test -z "$ac_cv_prog_AS"; then 4795 ac_ct_AS=$AS 4796 # Extract the first word of "as", so it can be a program name with args. 4797set dummy as; ac_word=$2 4798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4799printf %s "checking for $ac_word... " >&6; } 4800if test ${ac_cv_prog_ac_ct_AS+y} 4801then : 4802 printf %s "(cached) " >&6 4803else $as_nop 4804 if test -n "$ac_ct_AS"; then 4805 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4806else 4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4808for as_dir in $PATH 4809do 4810 IFS=$as_save_IFS 4811 case $as_dir in #((( 4812 '') as_dir=./ ;; 4813 */) ;; 4814 *) as_dir=$as_dir/ ;; 4815 esac 4816 for ac_exec_ext in '' $ac_executable_extensions; do 4817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4818 ac_cv_prog_ac_ct_AS="as" 4819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4820 break 2 4821 fi 4822done 4823 done 4824IFS=$as_save_IFS 4825 4826fi 4827fi 4828ac_ct_AS=$ac_cv_prog_ac_ct_AS 4829if test -n "$ac_ct_AS"; then 4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4831printf "%s\n" "$ac_ct_AS" >&6; } 4832else 4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4834printf "%s\n" "no" >&6; } 4835fi 4836 4837 if test "x$ac_ct_AS" = x; then 4838 AS="false" 4839 else 4840 case $cross_compiling:$ac_tool_warned in 4841yes:) 4842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4843printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4844ac_tool_warned=yes ;; 4845esac 4846 AS=$ac_ct_AS 4847 fi 4848else 4849 AS="$ac_cv_prog_AS" 4850fi 4851 4852 if test -n "$ac_tool_prefix"; then 4853 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4854set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4856printf %s "checking for $ac_word... " >&6; } 4857if test ${ac_cv_prog_DLLTOOL+y} 4858then : 4859 printf %s "(cached) " >&6 4860else $as_nop 4861 if test -n "$DLLTOOL"; then 4862 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4863else 4864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865for as_dir in $PATH 4866do 4867 IFS=$as_save_IFS 4868 case $as_dir in #((( 4869 '') as_dir=./ ;; 4870 */) ;; 4871 *) as_dir=$as_dir/ ;; 4872 esac 4873 for ac_exec_ext in '' $ac_executable_extensions; do 4874 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4875 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4877 break 2 4878 fi 4879done 4880 done 4881IFS=$as_save_IFS 4882 4883fi 4884fi 4885DLLTOOL=$ac_cv_prog_DLLTOOL 4886if test -n "$DLLTOOL"; then 4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4888printf "%s\n" "$DLLTOOL" >&6; } 4889else 4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4891printf "%s\n" "no" >&6; } 4892fi 4893 4894 4895fi 4896if test -z "$ac_cv_prog_DLLTOOL"; then 4897 ac_ct_DLLTOOL=$DLLTOOL 4898 # Extract the first word of "dlltool", so it can be a program name with args. 4899set dummy dlltool; ac_word=$2 4900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4901printf %s "checking for $ac_word... " >&6; } 4902if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 4903then : 4904 printf %s "(cached) " >&6 4905else $as_nop 4906 if test -n "$ac_ct_DLLTOOL"; then 4907 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4908else 4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4910for as_dir in $PATH 4911do 4912 IFS=$as_save_IFS 4913 case $as_dir in #((( 4914 '') as_dir=./ ;; 4915 */) ;; 4916 *) as_dir=$as_dir/ ;; 4917 esac 4918 for ac_exec_ext in '' $ac_executable_extensions; do 4919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4920 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4922 break 2 4923 fi 4924done 4925 done 4926IFS=$as_save_IFS 4927 4928fi 4929fi 4930ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4931if test -n "$ac_ct_DLLTOOL"; then 4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4933printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 4934else 4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4936printf "%s\n" "no" >&6; } 4937fi 4938 4939 if test "x$ac_ct_DLLTOOL" = x; then 4940 DLLTOOL="false" 4941 else 4942 case $cross_compiling:$ac_tool_warned in 4943yes:) 4944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4945printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4946ac_tool_warned=yes ;; 4947esac 4948 DLLTOOL=$ac_ct_DLLTOOL 4949 fi 4950else 4951 DLLTOOL="$ac_cv_prog_DLLTOOL" 4952fi 4953 4954 if test -n "$ac_tool_prefix"; then 4955 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4956set dummy ${ac_tool_prefix}objdump; ac_word=$2 4957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958printf %s "checking for $ac_word... " >&6; } 4959if test ${ac_cv_prog_OBJDUMP+y} 4960then : 4961 printf %s "(cached) " >&6 4962else $as_nop 4963 if test -n "$OBJDUMP"; then 4964 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4965else 4966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4967for as_dir in $PATH 4968do 4969 IFS=$as_save_IFS 4970 case $as_dir in #((( 4971 '') as_dir=./ ;; 4972 */) ;; 4973 *) as_dir=$as_dir/ ;; 4974 esac 4975 for ac_exec_ext in '' $ac_executable_extensions; do 4976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4977 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4979 break 2 4980 fi 4981done 4982 done 4983IFS=$as_save_IFS 4984 4985fi 4986fi 4987OBJDUMP=$ac_cv_prog_OBJDUMP 4988if test -n "$OBJDUMP"; then 4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4990printf "%s\n" "$OBJDUMP" >&6; } 4991else 4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4993printf "%s\n" "no" >&6; } 4994fi 4995 4996 4997fi 4998if test -z "$ac_cv_prog_OBJDUMP"; then 4999 ac_ct_OBJDUMP=$OBJDUMP 5000 # Extract the first word of "objdump", so it can be a program name with args. 5001set dummy objdump; ac_word=$2 5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5003printf %s "checking for $ac_word... " >&6; } 5004if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5005then : 5006 printf %s "(cached) " >&6 5007else $as_nop 5008 if test -n "$ac_ct_OBJDUMP"; then 5009 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5010else 5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5012for as_dir in $PATH 5013do 5014 IFS=$as_save_IFS 5015 case $as_dir in #((( 5016 '') as_dir=./ ;; 5017 */) ;; 5018 *) as_dir=$as_dir/ ;; 5019 esac 5020 for ac_exec_ext in '' $ac_executable_extensions; do 5021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5022 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5024 break 2 5025 fi 5026done 5027 done 5028IFS=$as_save_IFS 5029 5030fi 5031fi 5032ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5033if test -n "$ac_ct_OBJDUMP"; then 5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5035printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5036else 5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5038printf "%s\n" "no" >&6; } 5039fi 5040 5041 if test "x$ac_ct_OBJDUMP" = x; then 5042 OBJDUMP="false" 5043 else 5044 case $cross_compiling:$ac_tool_warned in 5045yes:) 5046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5047printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5048ac_tool_warned=yes ;; 5049esac 5050 OBJDUMP=$ac_ct_OBJDUMP 5051 fi 5052else 5053 OBJDUMP="$ac_cv_prog_OBJDUMP" 5054fi 5055 5056 ;; 5057esac 5058 5059test -z "$AS" && AS=as 5060 5061 5062 5063 5064 5065test -z "$DLLTOOL" && DLLTOOL=dlltool 5066 5067 5068 5069 5070 5071test -z "$OBJDUMP" && OBJDUMP=objdump 5072 5073 5074 5075 5076 5077 5078 5079case `pwd` in 5080 *\ * | *\ *) 5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5082printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5083esac 5084 5085 5086 5087macro_version='2.4.7' 5088macro_revision='2.4.7' 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103ltmain=$ac_aux_dir/ltmain.sh 5104 5105# Backslashify metacharacters that are still active within 5106# double-quoted strings. 5107sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5108 5109# Same as above, but do not quote variable references. 5110double_quote_subst='s/\(["`\\]\)/\\\1/g' 5111 5112# Sed substitution to delay expansion of an escaped shell variable in a 5113# double_quote_subst'ed string. 5114delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5115 5116# Sed substitution to delay expansion of an escaped single quote. 5117delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5118 5119# Sed substitution to avoid accidental globbing in evaled expressions 5120no_glob_subst='s/\*/\\\*/g' 5121 5122ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5123ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5124ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5125 5126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5127printf %s "checking how to print strings... " >&6; } 5128# Test print first, because it will be a builtin if present. 5129if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5130 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5131 ECHO='print -r --' 5132elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5133 ECHO='printf %s\n' 5134else 5135 # Use this function as a fallback that always works. 5136 func_fallback_echo () 5137 { 5138 eval 'cat <<_LTECHO_EOF 5139$1 5140_LTECHO_EOF' 5141 } 5142 ECHO='func_fallback_echo' 5143fi 5144 5145# func_echo_all arg... 5146# Invoke $ECHO with all args, space-separated. 5147func_echo_all () 5148{ 5149 $ECHO "" 5150} 5151 5152case $ECHO in 5153 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5154printf "%s\n" "printf" >&6; } ;; 5155 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5156printf "%s\n" "print -r" >&6; } ;; 5157 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5158printf "%s\n" "cat" >&6; } ;; 5159esac 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5175printf %s "checking for a sed that does not truncate output... " >&6; } 5176if test ${ac_cv_path_SED+y} 5177then : 5178 printf %s "(cached) " >&6 5179else $as_nop 5180 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5181 for ac_i in 1 2 3 4 5 6 7; do 5182 ac_script="$ac_script$as_nl$ac_script" 5183 done 5184 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5185 { ac_script=; unset ac_script;} 5186 if test -z "$SED"; then 5187 ac_path_SED_found=false 5188 # Loop through the user's path and test for each of PROGNAME-LIST 5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5190for as_dir in $PATH 5191do 5192 IFS=$as_save_IFS 5193 case $as_dir in #((( 5194 '') as_dir=./ ;; 5195 */) ;; 5196 *) as_dir=$as_dir/ ;; 5197 esac 5198 for ac_prog in sed gsed 5199 do 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5202 as_fn_executable_p "$ac_path_SED" || continue 5203# Check for GNU ac_path_SED and select it if it is found. 5204 # Check for GNU $ac_path_SED 5205case `"$ac_path_SED" --version 2>&1` in 5206*GNU*) 5207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5208*) 5209 ac_count=0 5210 printf %s 0123456789 >"conftest.in" 5211 while : 5212 do 5213 cat "conftest.in" "conftest.in" >"conftest.tmp" 5214 mv "conftest.tmp" "conftest.in" 5215 cp "conftest.in" "conftest.nl" 5216 printf "%s\n" '' >> "conftest.nl" 5217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5219 as_fn_arith $ac_count + 1 && ac_count=$as_val 5220 if test $ac_count -gt ${ac_path_SED_max-0}; then 5221 # Best one so far, save it but keep looking for a better one 5222 ac_cv_path_SED="$ac_path_SED" 5223 ac_path_SED_max=$ac_count 5224 fi 5225 # 10*(2^10) chars as input seems more than enough 5226 test $ac_count -gt 10 && break 5227 done 5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5229esac 5230 5231 $ac_path_SED_found && break 3 5232 done 5233 done 5234 done 5235IFS=$as_save_IFS 5236 if test -z "$ac_cv_path_SED"; then 5237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5238 fi 5239else 5240 ac_cv_path_SED=$SED 5241fi 5242 5243fi 5244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5245printf "%s\n" "$ac_cv_path_SED" >&6; } 5246 SED="$ac_cv_path_SED" 5247 rm -f conftest.sed 5248 5249test -z "$SED" && SED=sed 5250Xsed="$SED -e 1s/^X//" 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5263printf %s "checking for grep that handles long lines and -e... " >&6; } 5264if test ${ac_cv_path_GREP+y} 5265then : 5266 printf %s "(cached) " >&6 5267else $as_nop 5268 if test -z "$GREP"; then 5269 ac_path_GREP_found=false 5270 # Loop through the user's path and test for each of PROGNAME-LIST 5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5272for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5273do 5274 IFS=$as_save_IFS 5275 case $as_dir in #((( 5276 '') as_dir=./ ;; 5277 */) ;; 5278 *) as_dir=$as_dir/ ;; 5279 esac 5280 for ac_prog in grep ggrep 5281 do 5282 for ac_exec_ext in '' $ac_executable_extensions; do 5283 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5284 as_fn_executable_p "$ac_path_GREP" || continue 5285# Check for GNU ac_path_GREP and select it if it is found. 5286 # Check for GNU $ac_path_GREP 5287case `"$ac_path_GREP" --version 2>&1` in 5288*GNU*) 5289 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5290*) 5291 ac_count=0 5292 printf %s 0123456789 >"conftest.in" 5293 while : 5294 do 5295 cat "conftest.in" "conftest.in" >"conftest.tmp" 5296 mv "conftest.tmp" "conftest.in" 5297 cp "conftest.in" "conftest.nl" 5298 printf "%s\n" 'GREP' >> "conftest.nl" 5299 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5301 as_fn_arith $ac_count + 1 && ac_count=$as_val 5302 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5303 # Best one so far, save it but keep looking for a better one 5304 ac_cv_path_GREP="$ac_path_GREP" 5305 ac_path_GREP_max=$ac_count 5306 fi 5307 # 10*(2^10) chars as input seems more than enough 5308 test $ac_count -gt 10 && break 5309 done 5310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5311esac 5312 5313 $ac_path_GREP_found && break 3 5314 done 5315 done 5316 done 5317IFS=$as_save_IFS 5318 if test -z "$ac_cv_path_GREP"; then 5319 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5320 fi 5321else 5322 ac_cv_path_GREP=$GREP 5323fi 5324 5325fi 5326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5327printf "%s\n" "$ac_cv_path_GREP" >&6; } 5328 GREP="$ac_cv_path_GREP" 5329 5330 5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5332printf %s "checking for egrep... " >&6; } 5333if test ${ac_cv_path_EGREP+y} 5334then : 5335 printf %s "(cached) " >&6 5336else $as_nop 5337 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5338 then ac_cv_path_EGREP="$GREP -E" 5339 else 5340 if test -z "$EGREP"; then 5341 ac_path_EGREP_found=false 5342 # Loop through the user's path and test for each of PROGNAME-LIST 5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5344for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5345do 5346 IFS=$as_save_IFS 5347 case $as_dir in #((( 5348 '') as_dir=./ ;; 5349 */) ;; 5350 *) as_dir=$as_dir/ ;; 5351 esac 5352 for ac_prog in egrep 5353 do 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5356 as_fn_executable_p "$ac_path_EGREP" || continue 5357# Check for GNU ac_path_EGREP and select it if it is found. 5358 # Check for GNU $ac_path_EGREP 5359case `"$ac_path_EGREP" --version 2>&1` in 5360*GNU*) 5361 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5362*) 5363 ac_count=0 5364 printf %s 0123456789 >"conftest.in" 5365 while : 5366 do 5367 cat "conftest.in" "conftest.in" >"conftest.tmp" 5368 mv "conftest.tmp" "conftest.in" 5369 cp "conftest.in" "conftest.nl" 5370 printf "%s\n" 'EGREP' >> "conftest.nl" 5371 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5373 as_fn_arith $ac_count + 1 && ac_count=$as_val 5374 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5375 # Best one so far, save it but keep looking for a better one 5376 ac_cv_path_EGREP="$ac_path_EGREP" 5377 ac_path_EGREP_max=$ac_count 5378 fi 5379 # 10*(2^10) chars as input seems more than enough 5380 test $ac_count -gt 10 && break 5381 done 5382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5383esac 5384 5385 $ac_path_EGREP_found && break 3 5386 done 5387 done 5388 done 5389IFS=$as_save_IFS 5390 if test -z "$ac_cv_path_EGREP"; then 5391 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5392 fi 5393else 5394 ac_cv_path_EGREP=$EGREP 5395fi 5396 5397 fi 5398fi 5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5400printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5401 EGREP="$ac_cv_path_EGREP" 5402 5403 5404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5405printf %s "checking for fgrep... " >&6; } 5406if test ${ac_cv_path_FGREP+y} 5407then : 5408 printf %s "(cached) " >&6 5409else $as_nop 5410 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5411 then ac_cv_path_FGREP="$GREP -F" 5412 else 5413 if test -z "$FGREP"; then 5414 ac_path_FGREP_found=false 5415 # Loop through the user's path and test for each of PROGNAME-LIST 5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5417for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5418do 5419 IFS=$as_save_IFS 5420 case $as_dir in #((( 5421 '') as_dir=./ ;; 5422 */) ;; 5423 *) as_dir=$as_dir/ ;; 5424 esac 5425 for ac_prog in fgrep 5426 do 5427 for ac_exec_ext in '' $ac_executable_extensions; do 5428 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5429 as_fn_executable_p "$ac_path_FGREP" || continue 5430# Check for GNU ac_path_FGREP and select it if it is found. 5431 # Check for GNU $ac_path_FGREP 5432case `"$ac_path_FGREP" --version 2>&1` in 5433*GNU*) 5434 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5435*) 5436 ac_count=0 5437 printf %s 0123456789 >"conftest.in" 5438 while : 5439 do 5440 cat "conftest.in" "conftest.in" >"conftest.tmp" 5441 mv "conftest.tmp" "conftest.in" 5442 cp "conftest.in" "conftest.nl" 5443 printf "%s\n" 'FGREP' >> "conftest.nl" 5444 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5446 as_fn_arith $ac_count + 1 && ac_count=$as_val 5447 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5448 # Best one so far, save it but keep looking for a better one 5449 ac_cv_path_FGREP="$ac_path_FGREP" 5450 ac_path_FGREP_max=$ac_count 5451 fi 5452 # 10*(2^10) chars as input seems more than enough 5453 test $ac_count -gt 10 && break 5454 done 5455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5456esac 5457 5458 $ac_path_FGREP_found && break 3 5459 done 5460 done 5461 done 5462IFS=$as_save_IFS 5463 if test -z "$ac_cv_path_FGREP"; then 5464 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5465 fi 5466else 5467 ac_cv_path_FGREP=$FGREP 5468fi 5469 5470 fi 5471fi 5472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5473printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5474 FGREP="$ac_cv_path_FGREP" 5475 5476 5477test -z "$GREP" && GREP=grep 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497# Check whether --with-gnu-ld was given. 5498if test ${with_gnu_ld+y} 5499then : 5500 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5501else $as_nop 5502 with_gnu_ld=no 5503fi 5504 5505ac_prog=ld 5506if test yes = "$GCC"; then 5507 # Check if gcc -print-prog-name=ld gives a path. 5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5509printf %s "checking for ld used by $CC... " >&6; } 5510 case $host in 5511 *-*-mingw*) 5512 # gcc leaves a trailing carriage return, which upsets mingw 5513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5514 *) 5515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5516 esac 5517 case $ac_prog in 5518 # Accept absolute paths. 5519 [\\/]* | ?:[\\/]*) 5520 re_direlt='/[^/][^/]*/\.\./' 5521 # Canonicalize the pathname of ld 5522 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5523 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5524 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5525 done 5526 test -z "$LD" && LD=$ac_prog 5527 ;; 5528 "") 5529 # If it fails, then pretend we aren't using GCC. 5530 ac_prog=ld 5531 ;; 5532 *) 5533 # If it is relative, then search for the first ld in PATH. 5534 with_gnu_ld=unknown 5535 ;; 5536 esac 5537elif test yes = "$with_gnu_ld"; then 5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5539printf %s "checking for GNU ld... " >&6; } 5540else 5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5542printf %s "checking for non-GNU ld... " >&6; } 5543fi 5544if test ${lt_cv_path_LD+y} 5545then : 5546 printf %s "(cached) " >&6 5547else $as_nop 5548 if test -z "$LD"; then 5549 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5550 for ac_dir in $PATH; do 5551 IFS=$lt_save_ifs 5552 test -z "$ac_dir" && ac_dir=. 5553 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5554 lt_cv_path_LD=$ac_dir/$ac_prog 5555 # Check to see if the program is GNU ld. I'd rather use --version, 5556 # but apparently some variants of GNU ld only accept -v. 5557 # Break only if it was the GNU/non-GNU ld that we prefer. 5558 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5559 *GNU* | *'with BFD'*) 5560 test no != "$with_gnu_ld" && break 5561 ;; 5562 *) 5563 test yes != "$with_gnu_ld" && break 5564 ;; 5565 esac 5566 fi 5567 done 5568 IFS=$lt_save_ifs 5569else 5570 lt_cv_path_LD=$LD # Let the user override the test with a path. 5571fi 5572fi 5573 5574LD=$lt_cv_path_LD 5575if test -n "$LD"; then 5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5577printf "%s\n" "$LD" >&6; } 5578else 5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5580printf "%s\n" "no" >&6; } 5581fi 5582test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5584printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5585if test ${lt_cv_prog_gnu_ld+y} 5586then : 5587 printf %s "(cached) " >&6 5588else $as_nop 5589 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5590case `$LD -v 2>&1 </dev/null` in 5591*GNU* | *'with BFD'*) 5592 lt_cv_prog_gnu_ld=yes 5593 ;; 5594*) 5595 lt_cv_prog_gnu_ld=no 5596 ;; 5597esac 5598fi 5599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5600printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5601with_gnu_ld=$lt_cv_prog_gnu_ld 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5612printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5613if test ${lt_cv_path_NM+y} 5614then : 5615 printf %s "(cached) " >&6 5616else $as_nop 5617 if test -n "$NM"; then 5618 # Let the user override the test. 5619 lt_cv_path_NM=$NM 5620else 5621 lt_nm_to_check=${ac_tool_prefix}nm 5622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5623 lt_nm_to_check="$lt_nm_to_check nm" 5624 fi 5625 for lt_tmp_nm in $lt_nm_to_check; do 5626 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5628 IFS=$lt_save_ifs 5629 test -z "$ac_dir" && ac_dir=. 5630 tmp_nm=$ac_dir/$lt_tmp_nm 5631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5632 # Check to see if the nm accepts a BSD-compat flag. 5633 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5634 # nm: unknown option "B" ignored 5635 # Tru64's nm complains that /dev/null is an invalid object file 5636 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5637 case $build_os in 5638 mingw*) lt_bad_file=conftest.nm/nofile ;; 5639 *) lt_bad_file=/dev/null ;; 5640 esac 5641 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5642 *$lt_bad_file* | *'Invalid file or object type'*) 5643 lt_cv_path_NM="$tmp_nm -B" 5644 break 2 5645 ;; 5646 *) 5647 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5648 */dev/null*) 5649 lt_cv_path_NM="$tmp_nm -p" 5650 break 2 5651 ;; 5652 *) 5653 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5654 continue # so that we can try to find one that supports BSD flags 5655 ;; 5656 esac 5657 ;; 5658 esac 5659 fi 5660 done 5661 IFS=$lt_save_ifs 5662 done 5663 : ${lt_cv_path_NM=no} 5664fi 5665fi 5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5667printf "%s\n" "$lt_cv_path_NM" >&6; } 5668if test no != "$lt_cv_path_NM"; then 5669 NM=$lt_cv_path_NM 5670else 5671 # Didn't find any BSD compatible name lister, look for dumpbin. 5672 if test -n "$DUMPBIN"; then : 5673 # Let the user override the test. 5674 else 5675 if test -n "$ac_tool_prefix"; then 5676 for ac_prog in dumpbin "link -dump" 5677 do 5678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5679set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5681printf %s "checking for $ac_word... " >&6; } 5682if test ${ac_cv_prog_DUMPBIN+y} 5683then : 5684 printf %s "(cached) " >&6 5685else $as_nop 5686 if test -n "$DUMPBIN"; then 5687 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5688else 5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5690for as_dir in $PATH 5691do 5692 IFS=$as_save_IFS 5693 case $as_dir in #((( 5694 '') as_dir=./ ;; 5695 */) ;; 5696 *) as_dir=$as_dir/ ;; 5697 esac 5698 for ac_exec_ext in '' $ac_executable_extensions; do 5699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5700 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5702 break 2 5703 fi 5704done 5705 done 5706IFS=$as_save_IFS 5707 5708fi 5709fi 5710DUMPBIN=$ac_cv_prog_DUMPBIN 5711if test -n "$DUMPBIN"; then 5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5713printf "%s\n" "$DUMPBIN" >&6; } 5714else 5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5716printf "%s\n" "no" >&6; } 5717fi 5718 5719 5720 test -n "$DUMPBIN" && break 5721 done 5722fi 5723if test -z "$DUMPBIN"; then 5724 ac_ct_DUMPBIN=$DUMPBIN 5725 for ac_prog in dumpbin "link -dump" 5726do 5727 # Extract the first word of "$ac_prog", so it can be a program name with args. 5728set dummy $ac_prog; ac_word=$2 5729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5730printf %s "checking for $ac_word... " >&6; } 5731if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5732then : 5733 printf %s "(cached) " >&6 5734else $as_nop 5735 if test -n "$ac_ct_DUMPBIN"; then 5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 case $as_dir in #((( 5743 '') as_dir=./ ;; 5744 */) ;; 5745 *) as_dir=$as_dir/ ;; 5746 esac 5747 for ac_exec_ext in '' $ac_executable_extensions; do 5748 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5749 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5751 break 2 5752 fi 5753done 5754 done 5755IFS=$as_save_IFS 5756 5757fi 5758fi 5759ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5760if test -n "$ac_ct_DUMPBIN"; then 5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5762printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5763else 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5765printf "%s\n" "no" >&6; } 5766fi 5767 5768 5769 test -n "$ac_ct_DUMPBIN" && break 5770done 5771 5772 if test "x$ac_ct_DUMPBIN" = x; then 5773 DUMPBIN=":" 5774 else 5775 case $cross_compiling:$ac_tool_warned in 5776yes:) 5777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5778printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5779ac_tool_warned=yes ;; 5780esac 5781 DUMPBIN=$ac_ct_DUMPBIN 5782 fi 5783fi 5784 5785 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5786 *COFF*) 5787 DUMPBIN="$DUMPBIN -symbols -headers" 5788 ;; 5789 *) 5790 DUMPBIN=: 5791 ;; 5792 esac 5793 fi 5794 5795 if test : != "$DUMPBIN"; then 5796 NM=$DUMPBIN 5797 fi 5798fi 5799test -z "$NM" && NM=nm 5800 5801 5802 5803 5804 5805 5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5807printf %s "checking the name lister ($NM) interface... " >&6; } 5808if test ${lt_cv_nm_interface+y} 5809then : 5810 printf %s "(cached) " >&6 5811else $as_nop 5812 lt_cv_nm_interface="BSD nm" 5813 echo "int some_variable = 0;" > conftest.$ac_ext 5814 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5815 (eval "$ac_compile" 2>conftest.err) 5816 cat conftest.err >&5 5817 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5818 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5819 cat conftest.err >&5 5820 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5821 cat conftest.out >&5 5822 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5823 lt_cv_nm_interface="MS dumpbin" 5824 fi 5825 rm -f conftest* 5826fi 5827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5828printf "%s\n" "$lt_cv_nm_interface" >&6; } 5829 5830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5831printf %s "checking whether ln -s works... " >&6; } 5832LN_S=$as_ln_s 5833if test "$LN_S" = "ln -s"; then 5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5835printf "%s\n" "yes" >&6; } 5836else 5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5838printf "%s\n" "no, using $LN_S" >&6; } 5839fi 5840 5841# find the maximum length of command line arguments 5842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5843printf %s "checking the maximum length of command line arguments... " >&6; } 5844if test ${lt_cv_sys_max_cmd_len+y} 5845then : 5846 printf %s "(cached) " >&6 5847else $as_nop 5848 i=0 5849 teststring=ABCD 5850 5851 case $build_os in 5852 msdosdjgpp*) 5853 # On DJGPP, this test can blow up pretty badly due to problems in libc 5854 # (any single argument exceeding 2000 bytes causes a buffer overrun 5855 # during glob expansion). Even if it were fixed, the result of this 5856 # check would be larger than it should be. 5857 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5858 ;; 5859 5860 gnu*) 5861 # Under GNU Hurd, this test is not required because there is 5862 # no limit to the length of command line arguments. 5863 # Libtool will interpret -1 as no limit whatsoever 5864 lt_cv_sys_max_cmd_len=-1; 5865 ;; 5866 5867 cygwin* | mingw* | cegcc*) 5868 # On Win9x/ME, this test blows up -- it succeeds, but takes 5869 # about 5 minutes as the teststring grows exponentially. 5870 # Worse, since 9x/ME are not pre-emptively multitasking, 5871 # you end up with a "frozen" computer, even though with patience 5872 # the test eventually succeeds (with a max line length of 256k). 5873 # Instead, let's just punt: use the minimum linelength reported by 5874 # all of the supported platforms: 8192 (on NT/2K/XP). 5875 lt_cv_sys_max_cmd_len=8192; 5876 ;; 5877 5878 mint*) 5879 # On MiNT this can take a long time and run out of memory. 5880 lt_cv_sys_max_cmd_len=8192; 5881 ;; 5882 5883 mint*) 5884 # On MiNT this can take a long time and run out of memory. 5885 lt_cv_sys_max_cmd_len=8192; 5886 ;; 5887 5888 amigaos*) 5889 # On AmigaOS with pdksh, this test takes hours, literally. 5890 # So we just punt and use a minimum line length of 8192. 5891 lt_cv_sys_max_cmd_len=8192; 5892 ;; 5893 5894 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5895 # This has been around since 386BSD, at least. Likely further. 5896 if test -x /sbin/sysctl; then 5897 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5898 elif test -x /usr/sbin/sysctl; then 5899 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5900 else 5901 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5902 fi 5903 # And add a safety zone 5904 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5906 ;; 5907 5908 interix*) 5909 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5910 lt_cv_sys_max_cmd_len=196608 5911 ;; 5912 5913 os2*) 5914 # The test takes a long time on OS/2. 5915 lt_cv_sys_max_cmd_len=8192 5916 ;; 5917 5918 osf*) 5919 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5920 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5921 # nice to cause kernel panics so lets avoid the loop below. 5922 # First set a reasonable default. 5923 lt_cv_sys_max_cmd_len=16384 5924 # 5925 if test -x /sbin/sysconfig; then 5926 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5927 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5928 esac 5929 fi 5930 ;; 5931 sco3.2v5*) 5932 lt_cv_sys_max_cmd_len=102400 5933 ;; 5934 sysv5* | sco5v6* | sysv4.2uw2*) 5935 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5936 if test -n "$kargmax"; then 5937 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5938 else 5939 lt_cv_sys_max_cmd_len=32768 5940 fi 5941 ;; 5942 *) 5943 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5944 if test -n "$lt_cv_sys_max_cmd_len" && \ 5945 test undefined != "$lt_cv_sys_max_cmd_len"; then 5946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5948 else 5949 # Make teststring a little bigger before we do anything with it. 5950 # a 1K string should be a reasonable start. 5951 for i in 1 2 3 4 5 6 7 8; do 5952 teststring=$teststring$teststring 5953 done 5954 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5955 # If test is not a shell built-in, we'll probably end up computing a 5956 # maximum length that is only half of the actual maximum length, but 5957 # we can't tell. 5958 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5959 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5960 test 17 != "$i" # 1/2 MB should be enough 5961 do 5962 i=`expr $i + 1` 5963 teststring=$teststring$teststring 5964 done 5965 # Only check the string length outside the loop. 5966 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5967 teststring= 5968 # Add a significant safety factor because C++ compilers can tack on 5969 # massive amounts of additional arguments before passing them to the 5970 # linker. It appears as though 1/2 is a usable value. 5971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5972 fi 5973 ;; 5974 esac 5975 5976fi 5977 5978if test -n "$lt_cv_sys_max_cmd_len"; then 5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5980printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5981else 5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5983printf "%s\n" "none" >&6; } 5984fi 5985max_cmd_len=$lt_cv_sys_max_cmd_len 5986 5987 5988 5989 5990 5991 5992: ${CP="cp -f"} 5993: ${MV="mv -f"} 5994: ${RM="rm -f"} 5995 5996if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5997 lt_unset=unset 5998else 5999 lt_unset=false 6000fi 6001 6002 6003 6004 6005 6006# test EBCDIC or ASCII 6007case `echo X|tr X '\101'` in 6008 A) # ASCII based system 6009 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6010 lt_SP2NL='tr \040 \012' 6011 lt_NL2SP='tr \015\012 \040\040' 6012 ;; 6013 *) # EBCDIC based system 6014 lt_SP2NL='tr \100 \n' 6015 lt_NL2SP='tr \r\n \100\100' 6016 ;; 6017esac 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6028printf %s "checking how to convert $build file names to $host format... " >&6; } 6029if test ${lt_cv_to_host_file_cmd+y} 6030then : 6031 printf %s "(cached) " >&6 6032else $as_nop 6033 case $host in 6034 *-*-mingw* ) 6035 case $build in 6036 *-*-mingw* ) # actually msys 6037 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6038 ;; 6039 *-*-cygwin* ) 6040 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6041 ;; 6042 * ) # otherwise, assume *nix 6043 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6044 ;; 6045 esac 6046 ;; 6047 *-*-cygwin* ) 6048 case $build in 6049 *-*-mingw* ) # actually msys 6050 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6051 ;; 6052 *-*-cygwin* ) 6053 lt_cv_to_host_file_cmd=func_convert_file_noop 6054 ;; 6055 * ) # otherwise, assume *nix 6056 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6057 ;; 6058 esac 6059 ;; 6060 * ) # unhandled hosts (and "normal" native builds) 6061 lt_cv_to_host_file_cmd=func_convert_file_noop 6062 ;; 6063esac 6064 6065fi 6066 6067to_host_file_cmd=$lt_cv_to_host_file_cmd 6068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6069printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6070 6071 6072 6073 6074 6075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6076printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6077if test ${lt_cv_to_tool_file_cmd+y} 6078then : 6079 printf %s "(cached) " >&6 6080else $as_nop 6081 #assume ordinary cross tools, or native build. 6082lt_cv_to_tool_file_cmd=func_convert_file_noop 6083case $host in 6084 *-*-mingw* ) 6085 case $build in 6086 *-*-mingw* ) # actually msys 6087 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6088 ;; 6089 esac 6090 ;; 6091esac 6092 6093fi 6094 6095to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6097printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6098 6099 6100 6101 6102 6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6104printf %s "checking for $LD option to reload object files... " >&6; } 6105if test ${lt_cv_ld_reload_flag+y} 6106then : 6107 printf %s "(cached) " >&6 6108else $as_nop 6109 lt_cv_ld_reload_flag='-r' 6110fi 6111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6112printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6113reload_flag=$lt_cv_ld_reload_flag 6114case $reload_flag in 6115"" | " "*) ;; 6116*) reload_flag=" $reload_flag" ;; 6117esac 6118reload_cmds='$LD$reload_flag -o $output$reload_objs' 6119case $host_os in 6120 cygwin* | mingw* | pw32* | cegcc*) 6121 if test yes != "$GCC"; then 6122 reload_cmds=false 6123 fi 6124 ;; 6125 darwin*) 6126 if test yes = "$GCC"; then 6127 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6128 else 6129 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6130 fi 6131 ;; 6132esac 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142if test -n "$ac_tool_prefix"; then 6143 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6144set dummy ${ac_tool_prefix}file; ac_word=$2 6145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6146printf %s "checking for $ac_word... " >&6; } 6147if test ${ac_cv_prog_FILECMD+y} 6148then : 6149 printf %s "(cached) " >&6 6150else $as_nop 6151 if test -n "$FILECMD"; then 6152 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6153else 6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6155for as_dir in $PATH 6156do 6157 IFS=$as_save_IFS 6158 case $as_dir in #((( 6159 '') as_dir=./ ;; 6160 */) ;; 6161 *) as_dir=$as_dir/ ;; 6162 esac 6163 for ac_exec_ext in '' $ac_executable_extensions; do 6164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6165 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6167 break 2 6168 fi 6169done 6170 done 6171IFS=$as_save_IFS 6172 6173fi 6174fi 6175FILECMD=$ac_cv_prog_FILECMD 6176if test -n "$FILECMD"; then 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6178printf "%s\n" "$FILECMD" >&6; } 6179else 6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6181printf "%s\n" "no" >&6; } 6182fi 6183 6184 6185fi 6186if test -z "$ac_cv_prog_FILECMD"; then 6187 ac_ct_FILECMD=$FILECMD 6188 # Extract the first word of "file", so it can be a program name with args. 6189set dummy file; ac_word=$2 6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6191printf %s "checking for $ac_word... " >&6; } 6192if test ${ac_cv_prog_ac_ct_FILECMD+y} 6193then : 6194 printf %s "(cached) " >&6 6195else $as_nop 6196 if test -n "$ac_ct_FILECMD"; then 6197 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6198else 6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6200for as_dir in $PATH 6201do 6202 IFS=$as_save_IFS 6203 case $as_dir in #((( 6204 '') as_dir=./ ;; 6205 */) ;; 6206 *) as_dir=$as_dir/ ;; 6207 esac 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6210 ac_cv_prog_ac_ct_FILECMD="file" 6211 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214done 6215 done 6216IFS=$as_save_IFS 6217 6218fi 6219fi 6220ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6221if test -n "$ac_ct_FILECMD"; then 6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6223printf "%s\n" "$ac_ct_FILECMD" >&6; } 6224else 6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6226printf "%s\n" "no" >&6; } 6227fi 6228 6229 if test "x$ac_ct_FILECMD" = x; then 6230 FILECMD=":" 6231 else 6232 case $cross_compiling:$ac_tool_warned in 6233yes:) 6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6235printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6236ac_tool_warned=yes ;; 6237esac 6238 FILECMD=$ac_ct_FILECMD 6239 fi 6240else 6241 FILECMD="$ac_cv_prog_FILECMD" 6242fi 6243 6244 6245 6246 6247 6248 6249 6250if test -n "$ac_tool_prefix"; then 6251 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6252set dummy ${ac_tool_prefix}objdump; ac_word=$2 6253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6254printf %s "checking for $ac_word... " >&6; } 6255if test ${ac_cv_prog_OBJDUMP+y} 6256then : 6257 printf %s "(cached) " >&6 6258else $as_nop 6259 if test -n "$OBJDUMP"; then 6260 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6261else 6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6263for as_dir in $PATH 6264do 6265 IFS=$as_save_IFS 6266 case $as_dir in #((( 6267 '') as_dir=./ ;; 6268 */) ;; 6269 *) as_dir=$as_dir/ ;; 6270 esac 6271 for ac_exec_ext in '' $ac_executable_extensions; do 6272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6273 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6275 break 2 6276 fi 6277done 6278 done 6279IFS=$as_save_IFS 6280 6281fi 6282fi 6283OBJDUMP=$ac_cv_prog_OBJDUMP 6284if test -n "$OBJDUMP"; then 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6286printf "%s\n" "$OBJDUMP" >&6; } 6287else 6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6289printf "%s\n" "no" >&6; } 6290fi 6291 6292 6293fi 6294if test -z "$ac_cv_prog_OBJDUMP"; then 6295 ac_ct_OBJDUMP=$OBJDUMP 6296 # Extract the first word of "objdump", so it can be a program name with args. 6297set dummy objdump; ac_word=$2 6298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6299printf %s "checking for $ac_word... " >&6; } 6300if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6301then : 6302 printf %s "(cached) " >&6 6303else $as_nop 6304 if test -n "$ac_ct_OBJDUMP"; then 6305 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6306else 6307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6308for as_dir in $PATH 6309do 6310 IFS=$as_save_IFS 6311 case $as_dir in #((( 6312 '') as_dir=./ ;; 6313 */) ;; 6314 *) as_dir=$as_dir/ ;; 6315 esac 6316 for ac_exec_ext in '' $ac_executable_extensions; do 6317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6318 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6320 break 2 6321 fi 6322done 6323 done 6324IFS=$as_save_IFS 6325 6326fi 6327fi 6328ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6329if test -n "$ac_ct_OBJDUMP"; then 6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6331printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6332else 6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6334printf "%s\n" "no" >&6; } 6335fi 6336 6337 if test "x$ac_ct_OBJDUMP" = x; then 6338 OBJDUMP="false" 6339 else 6340 case $cross_compiling:$ac_tool_warned in 6341yes:) 6342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6343printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6344ac_tool_warned=yes ;; 6345esac 6346 OBJDUMP=$ac_ct_OBJDUMP 6347 fi 6348else 6349 OBJDUMP="$ac_cv_prog_OBJDUMP" 6350fi 6351 6352test -z "$OBJDUMP" && OBJDUMP=objdump 6353 6354 6355 6356 6357 6358 6359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6360printf %s "checking how to recognize dependent libraries... " >&6; } 6361if test ${lt_cv_deplibs_check_method+y} 6362then : 6363 printf %s "(cached) " >&6 6364else $as_nop 6365 lt_cv_file_magic_cmd='$MAGIC_CMD' 6366lt_cv_file_magic_test_file= 6367lt_cv_deplibs_check_method='unknown' 6368# Need to set the preceding variable on all platforms that support 6369# interlibrary dependencies. 6370# 'none' -- dependencies not supported. 6371# 'unknown' -- same as none, but documents that we really don't know. 6372# 'pass_all' -- all dependencies passed with no checks. 6373# 'test_compile' -- check by making test program. 6374# 'file_magic [[regex]]' -- check by looking for files in library path 6375# that responds to the $file_magic_cmd with a given extended regex. 6376# If you have 'file' or equivalent on your system and you're not sure 6377# whether 'pass_all' will *always* work, you probably want this one. 6378 6379case $host_os in 6380aix[4-9]*) 6381 lt_cv_deplibs_check_method=pass_all 6382 ;; 6383 6384beos*) 6385 lt_cv_deplibs_check_method=pass_all 6386 ;; 6387 6388bsdi[45]*) 6389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6390 lt_cv_file_magic_cmd='$FILECMD -L' 6391 lt_cv_file_magic_test_file=/shlib/libc.so 6392 ;; 6393 6394cygwin*) 6395 # func_win32_libid is a shell function defined in ltmain.sh 6396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6397 lt_cv_file_magic_cmd='func_win32_libid' 6398 ;; 6399 6400mingw* | pw32*) 6401 # Base MSYS/MinGW do not provide the 'file' command needed by 6402 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6403 # unless we find 'file', for example because we are cross-compiling. 6404 if ( file / ) >/dev/null 2>&1; then 6405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6406 lt_cv_file_magic_cmd='func_win32_libid' 6407 else 6408 # Keep this pattern in sync with the one in func_win32_libid. 6409 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6410 lt_cv_file_magic_cmd='$OBJDUMP -f' 6411 fi 6412 ;; 6413 6414cegcc*) 6415 # use the weaker test based on 'objdump'. See mingw*. 6416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6417 lt_cv_file_magic_cmd='$OBJDUMP -f' 6418 ;; 6419 6420darwin* | rhapsody*) 6421 lt_cv_deplibs_check_method=pass_all 6422 ;; 6423 6424freebsd* | dragonfly* | midnightbsd*) 6425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6426 case $host_cpu in 6427 i*86 ) 6428 # Not sure whether the presence of OpenBSD here was a mistake. 6429 # Let's accept both of them until this is cleared up. 6430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6431 lt_cv_file_magic_cmd=$FILECMD 6432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6433 ;; 6434 esac 6435 else 6436 lt_cv_deplibs_check_method=pass_all 6437 fi 6438 ;; 6439 6440haiku*) 6441 lt_cv_deplibs_check_method=pass_all 6442 ;; 6443 6444hpux10.20* | hpux11*) 6445 lt_cv_file_magic_cmd=$FILECMD 6446 case $host_cpu in 6447 ia64*) 6448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6449 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6450 ;; 6451 hppa*64*) 6452 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]' 6453 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6454 ;; 6455 *) 6456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6457 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6458 ;; 6459 esac 6460 ;; 6461 6462interix[3-9]*) 6463 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6465 ;; 6466 6467irix5* | irix6* | nonstopux*) 6468 case $LD in 6469 *-32|*"-32 ") libmagic=32-bit;; 6470 *-n32|*"-n32 ") libmagic=N32;; 6471 *-64|*"-64 ") libmagic=64-bit;; 6472 *) libmagic=never-match;; 6473 esac 6474 lt_cv_deplibs_check_method=pass_all 6475 ;; 6476 6477# This must be glibc/ELF. 6478linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6479 lt_cv_deplibs_check_method=pass_all 6480 ;; 6481 6482netbsd*) 6483 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6485 else 6486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6487 fi 6488 ;; 6489 6490newos6*) 6491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6492 lt_cv_file_magic_cmd=$FILECMD 6493 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6494 ;; 6495 6496*nto* | *qnx*) 6497 lt_cv_deplibs_check_method=pass_all 6498 ;; 6499 6500openbsd* | bitrig*) 6501 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6503 else 6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6505 fi 6506 ;; 6507 6508osf3* | osf4* | osf5*) 6509 lt_cv_deplibs_check_method=pass_all 6510 ;; 6511 6512rdos*) 6513 lt_cv_deplibs_check_method=pass_all 6514 ;; 6515 6516solaris*) 6517 lt_cv_deplibs_check_method=pass_all 6518 ;; 6519 6520sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6521 lt_cv_deplibs_check_method=pass_all 6522 ;; 6523 6524sysv4 | sysv4.3*) 6525 case $host_vendor in 6526 motorola) 6527 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]' 6528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6529 ;; 6530 ncr) 6531 lt_cv_deplibs_check_method=pass_all 6532 ;; 6533 sequent) 6534 lt_cv_file_magic_cmd='/bin/file' 6535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6536 ;; 6537 sni) 6538 lt_cv_file_magic_cmd='/bin/file' 6539 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6540 lt_cv_file_magic_test_file=/lib/libc.so 6541 ;; 6542 siemens) 6543 lt_cv_deplibs_check_method=pass_all 6544 ;; 6545 pc) 6546 lt_cv_deplibs_check_method=pass_all 6547 ;; 6548 esac 6549 ;; 6550 6551tpf*) 6552 lt_cv_deplibs_check_method=pass_all 6553 ;; 6554os2*) 6555 lt_cv_deplibs_check_method=pass_all 6556 ;; 6557esac 6558 6559fi 6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6561printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6562 6563file_magic_glob= 6564want_nocaseglob=no 6565if test "$build" = "$host"; then 6566 case $host_os in 6567 mingw* | pw32*) 6568 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6569 want_nocaseglob=yes 6570 else 6571 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6572 fi 6573 ;; 6574 esac 6575fi 6576 6577file_magic_cmd=$lt_cv_file_magic_cmd 6578deplibs_check_method=$lt_cv_deplibs_check_method 6579test -z "$deplibs_check_method" && deplibs_check_method=unknown 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602if test -n "$ac_tool_prefix"; then 6603 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6604set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606printf %s "checking for $ac_word... " >&6; } 6607if test ${ac_cv_prog_DLLTOOL+y} 6608then : 6609 printf %s "(cached) " >&6 6610else $as_nop 6611 if test -n "$DLLTOOL"; then 6612 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6613else 6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615for as_dir in $PATH 6616do 6617 IFS=$as_save_IFS 6618 case $as_dir in #((( 6619 '') as_dir=./ ;; 6620 */) ;; 6621 *) as_dir=$as_dir/ ;; 6622 esac 6623 for ac_exec_ext in '' $ac_executable_extensions; do 6624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6625 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6627 break 2 6628 fi 6629done 6630 done 6631IFS=$as_save_IFS 6632 6633fi 6634fi 6635DLLTOOL=$ac_cv_prog_DLLTOOL 6636if test -n "$DLLTOOL"; then 6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6638printf "%s\n" "$DLLTOOL" >&6; } 6639else 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6641printf "%s\n" "no" >&6; } 6642fi 6643 6644 6645fi 6646if test -z "$ac_cv_prog_DLLTOOL"; then 6647 ac_ct_DLLTOOL=$DLLTOOL 6648 # Extract the first word of "dlltool", so it can be a program name with args. 6649set dummy dlltool; ac_word=$2 6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6651printf %s "checking for $ac_word... " >&6; } 6652if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6653then : 6654 printf %s "(cached) " >&6 6655else $as_nop 6656 if test -n "$ac_ct_DLLTOOL"; then 6657 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6658else 6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6660for as_dir in $PATH 6661do 6662 IFS=$as_save_IFS 6663 case $as_dir in #((( 6664 '') as_dir=./ ;; 6665 */) ;; 6666 *) as_dir=$as_dir/ ;; 6667 esac 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6670 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6681if test -n "$ac_ct_DLLTOOL"; then 6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6683printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6684else 6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686printf "%s\n" "no" >&6; } 6687fi 6688 6689 if test "x$ac_ct_DLLTOOL" = x; then 6690 DLLTOOL="false" 6691 else 6692 case $cross_compiling:$ac_tool_warned in 6693yes:) 6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6695printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6696ac_tool_warned=yes ;; 6697esac 6698 DLLTOOL=$ac_ct_DLLTOOL 6699 fi 6700else 6701 DLLTOOL="$ac_cv_prog_DLLTOOL" 6702fi 6703 6704test -z "$DLLTOOL" && DLLTOOL=dlltool 6705 6706 6707 6708 6709 6710 6711 6712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6713printf %s "checking how to associate runtime and link libraries... " >&6; } 6714if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6715then : 6716 printf %s "(cached) " >&6 6717else $as_nop 6718 lt_cv_sharedlib_from_linklib_cmd='unknown' 6719 6720case $host_os in 6721cygwin* | mingw* | pw32* | cegcc*) 6722 # two different shell functions defined in ltmain.sh; 6723 # decide which one to use based on capabilities of $DLLTOOL 6724 case `$DLLTOOL --help 2>&1` in 6725 *--identify-strict*) 6726 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6727 ;; 6728 *) 6729 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6730 ;; 6731 esac 6732 ;; 6733*) 6734 # fallback: assume linklib IS sharedlib 6735 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6736 ;; 6737esac 6738 6739fi 6740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6741printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6742sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6743test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6744 6745 6746 6747 6748 6749 6750 6751if test -n "$ac_tool_prefix"; then 6752 for ac_prog in ar 6753 do 6754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6755set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6757printf %s "checking for $ac_word... " >&6; } 6758if test ${ac_cv_prog_AR+y} 6759then : 6760 printf %s "(cached) " >&6 6761else $as_nop 6762 if test -n "$AR"; then 6763 ac_cv_prog_AR="$AR" # Let the user override the test. 6764else 6765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6766for as_dir in $PATH 6767do 6768 IFS=$as_save_IFS 6769 case $as_dir in #((( 6770 '') as_dir=./ ;; 6771 */) ;; 6772 *) as_dir=$as_dir/ ;; 6773 esac 6774 for ac_exec_ext in '' $ac_executable_extensions; do 6775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6776 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6778 break 2 6779 fi 6780done 6781 done 6782IFS=$as_save_IFS 6783 6784fi 6785fi 6786AR=$ac_cv_prog_AR 6787if test -n "$AR"; then 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6789printf "%s\n" "$AR" >&6; } 6790else 6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6792printf "%s\n" "no" >&6; } 6793fi 6794 6795 6796 test -n "$AR" && break 6797 done 6798fi 6799if test -z "$AR"; then 6800 ac_ct_AR=$AR 6801 for ac_prog in ar 6802do 6803 # Extract the first word of "$ac_prog", so it can be a program name with args. 6804set dummy $ac_prog; ac_word=$2 6805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6806printf %s "checking for $ac_word... " >&6; } 6807if test ${ac_cv_prog_ac_ct_AR+y} 6808then : 6809 printf %s "(cached) " >&6 6810else $as_nop 6811 if test -n "$ac_ct_AR"; then 6812 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6813else 6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6815for as_dir in $PATH 6816do 6817 IFS=$as_save_IFS 6818 case $as_dir in #((( 6819 '') as_dir=./ ;; 6820 */) ;; 6821 *) as_dir=$as_dir/ ;; 6822 esac 6823 for ac_exec_ext in '' $ac_executable_extensions; do 6824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6825 ac_cv_prog_ac_ct_AR="$ac_prog" 6826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6827 break 2 6828 fi 6829done 6830 done 6831IFS=$as_save_IFS 6832 6833fi 6834fi 6835ac_ct_AR=$ac_cv_prog_ac_ct_AR 6836if test -n "$ac_ct_AR"; then 6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6838printf "%s\n" "$ac_ct_AR" >&6; } 6839else 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6841printf "%s\n" "no" >&6; } 6842fi 6843 6844 6845 test -n "$ac_ct_AR" && break 6846done 6847 6848 if test "x$ac_ct_AR" = x; then 6849 AR="false" 6850 else 6851 case $cross_compiling:$ac_tool_warned in 6852yes:) 6853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6854printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6855ac_tool_warned=yes ;; 6856esac 6857 AR=$ac_ct_AR 6858 fi 6859fi 6860 6861: ${AR=ar} 6862 6863 6864 6865 6866 6867 6868# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6869# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6870# higher priority because thats what people were doing historically (setting 6871# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6872# variable obsoleted/removed. 6873 6874test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6875lt_ar_flags=$AR_FLAGS 6876 6877 6878 6879 6880 6881 6882# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6883# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6884 6885 6886 6887 6888 6889 6890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6891printf %s "checking for archiver @FILE support... " >&6; } 6892if test ${lt_cv_ar_at_file+y} 6893then : 6894 printf %s "(cached) " >&6 6895else $as_nop 6896 lt_cv_ar_at_file=no 6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6898/* end confdefs.h. */ 6899 6900int 6901main (void) 6902{ 6903 6904 ; 6905 return 0; 6906} 6907_ACEOF 6908if ac_fn_c_try_compile "$LINENO" 6909then : 6910 echo conftest.$ac_objext > conftest.lst 6911 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6913 (eval $lt_ar_try) 2>&5 6914 ac_status=$? 6915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6916 test $ac_status = 0; } 6917 if test 0 -eq "$ac_status"; then 6918 # Ensure the archiver fails upon bogus file names. 6919 rm -f conftest.$ac_objext libconftest.a 6920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6921 (eval $lt_ar_try) 2>&5 6922 ac_status=$? 6923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6924 test $ac_status = 0; } 6925 if test 0 -ne "$ac_status"; then 6926 lt_cv_ar_at_file=@ 6927 fi 6928 fi 6929 rm -f conftest.* libconftest.a 6930 6931fi 6932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6933 6934fi 6935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6936printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6937 6938if test no = "$lt_cv_ar_at_file"; then 6939 archiver_list_spec= 6940else 6941 archiver_list_spec=$lt_cv_ar_at_file 6942fi 6943 6944 6945 6946 6947 6948 6949 6950if test -n "$ac_tool_prefix"; then 6951 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6952set dummy ${ac_tool_prefix}strip; ac_word=$2 6953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6954printf %s "checking for $ac_word... " >&6; } 6955if test ${ac_cv_prog_STRIP+y} 6956then : 6957 printf %s "(cached) " >&6 6958else $as_nop 6959 if test -n "$STRIP"; then 6960 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6961else 6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6963for as_dir in $PATH 6964do 6965 IFS=$as_save_IFS 6966 case $as_dir in #((( 6967 '') as_dir=./ ;; 6968 */) ;; 6969 *) as_dir=$as_dir/ ;; 6970 esac 6971 for ac_exec_ext in '' $ac_executable_extensions; do 6972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6973 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6975 break 2 6976 fi 6977done 6978 done 6979IFS=$as_save_IFS 6980 6981fi 6982fi 6983STRIP=$ac_cv_prog_STRIP 6984if test -n "$STRIP"; then 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6986printf "%s\n" "$STRIP" >&6; } 6987else 6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6989printf "%s\n" "no" >&6; } 6990fi 6991 6992 6993fi 6994if test -z "$ac_cv_prog_STRIP"; then 6995 ac_ct_STRIP=$STRIP 6996 # Extract the first word of "strip", so it can be a program name with args. 6997set dummy strip; ac_word=$2 6998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6999printf %s "checking for $ac_word... " >&6; } 7000if test ${ac_cv_prog_ac_ct_STRIP+y} 7001then : 7002 printf %s "(cached) " >&6 7003else $as_nop 7004 if test -n "$ac_ct_STRIP"; then 7005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7006else 7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7008for as_dir in $PATH 7009do 7010 IFS=$as_save_IFS 7011 case $as_dir in #((( 7012 '') as_dir=./ ;; 7013 */) ;; 7014 *) as_dir=$as_dir/ ;; 7015 esac 7016 for ac_exec_ext in '' $ac_executable_extensions; do 7017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7018 ac_cv_prog_ac_ct_STRIP="strip" 7019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7020 break 2 7021 fi 7022done 7023 done 7024IFS=$as_save_IFS 7025 7026fi 7027fi 7028ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7029if test -n "$ac_ct_STRIP"; then 7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7031printf "%s\n" "$ac_ct_STRIP" >&6; } 7032else 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7034printf "%s\n" "no" >&6; } 7035fi 7036 7037 if test "x$ac_ct_STRIP" = x; then 7038 STRIP=":" 7039 else 7040 case $cross_compiling:$ac_tool_warned in 7041yes:) 7042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7043printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7044ac_tool_warned=yes ;; 7045esac 7046 STRIP=$ac_ct_STRIP 7047 fi 7048else 7049 STRIP="$ac_cv_prog_STRIP" 7050fi 7051 7052test -z "$STRIP" && STRIP=: 7053 7054 7055 7056 7057 7058 7059if test -n "$ac_tool_prefix"; then 7060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7061set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7063printf %s "checking for $ac_word... " >&6; } 7064if test ${ac_cv_prog_RANLIB+y} 7065then : 7066 printf %s "(cached) " >&6 7067else $as_nop 7068 if test -n "$RANLIB"; then 7069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7070else 7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7072for as_dir in $PATH 7073do 7074 IFS=$as_save_IFS 7075 case $as_dir in #((( 7076 '') as_dir=./ ;; 7077 */) ;; 7078 *) as_dir=$as_dir/ ;; 7079 esac 7080 for ac_exec_ext in '' $ac_executable_extensions; do 7081 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7084 break 2 7085 fi 7086done 7087 done 7088IFS=$as_save_IFS 7089 7090fi 7091fi 7092RANLIB=$ac_cv_prog_RANLIB 7093if test -n "$RANLIB"; then 7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7095printf "%s\n" "$RANLIB" >&6; } 7096else 7097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7098printf "%s\n" "no" >&6; } 7099fi 7100 7101 7102fi 7103if test -z "$ac_cv_prog_RANLIB"; then 7104 ac_ct_RANLIB=$RANLIB 7105 # Extract the first word of "ranlib", so it can be a program name with args. 7106set dummy ranlib; ac_word=$2 7107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7108printf %s "checking for $ac_word... " >&6; } 7109if test ${ac_cv_prog_ac_ct_RANLIB+y} 7110then : 7111 printf %s "(cached) " >&6 7112else $as_nop 7113 if test -n "$ac_ct_RANLIB"; then 7114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7115else 7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117for as_dir in $PATH 7118do 7119 IFS=$as_save_IFS 7120 case $as_dir in #((( 7121 '') as_dir=./ ;; 7122 */) ;; 7123 *) as_dir=$as_dir/ ;; 7124 esac 7125 for ac_exec_ext in '' $ac_executable_extensions; do 7126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7127 ac_cv_prog_ac_ct_RANLIB="ranlib" 7128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7129 break 2 7130 fi 7131done 7132 done 7133IFS=$as_save_IFS 7134 7135fi 7136fi 7137ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7138if test -n "$ac_ct_RANLIB"; then 7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7140printf "%s\n" "$ac_ct_RANLIB" >&6; } 7141else 7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7143printf "%s\n" "no" >&6; } 7144fi 7145 7146 if test "x$ac_ct_RANLIB" = x; then 7147 RANLIB=":" 7148 else 7149 case $cross_compiling:$ac_tool_warned in 7150yes:) 7151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7152printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7153ac_tool_warned=yes ;; 7154esac 7155 RANLIB=$ac_ct_RANLIB 7156 fi 7157else 7158 RANLIB="$ac_cv_prog_RANLIB" 7159fi 7160 7161test -z "$RANLIB" && RANLIB=: 7162 7163 7164 7165 7166 7167 7168# Determine commands to create old-style static archives. 7169old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7170old_postinstall_cmds='chmod 644 $oldlib' 7171old_postuninstall_cmds= 7172 7173if test -n "$RANLIB"; then 7174 case $host_os in 7175 bitrig* | openbsd*) 7176 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7177 ;; 7178 *) 7179 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7180 ;; 7181 esac 7182 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7183fi 7184 7185case $host_os in 7186 darwin*) 7187 lock_old_archive_extraction=yes ;; 7188 *) 7189 lock_old_archive_extraction=no ;; 7190esac 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230# If no C compiler was specified, use CC. 7231LTCC=${LTCC-"$CC"} 7232 7233# If no C compiler flags were specified, use CFLAGS. 7234LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7235 7236# Allow CC to be a program name with arguments. 7237compiler=$CC 7238 7239 7240# Check for command to grab the raw symbol name followed by C symbol from nm. 7241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7242printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7243if test ${lt_cv_sys_global_symbol_pipe+y} 7244then : 7245 printf %s "(cached) " >&6 7246else $as_nop 7247 7248# These are sane defaults that work on at least a few old systems. 7249# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7250 7251# Character class describing NM global symbol codes. 7252symcode='[BCDEGRST]' 7253 7254# Regexp to match symbols that can be accessed directly from C. 7255sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7256 7257# Define system-specific variables. 7258case $host_os in 7259aix*) 7260 symcode='[BCDT]' 7261 ;; 7262cygwin* | mingw* | pw32* | cegcc*) 7263 symcode='[ABCDGISTW]' 7264 ;; 7265hpux*) 7266 if test ia64 = "$host_cpu"; then 7267 symcode='[ABCDEGRST]' 7268 fi 7269 ;; 7270irix* | nonstopux*) 7271 symcode='[BCDEGRST]' 7272 ;; 7273osf*) 7274 symcode='[BCDEGQRST]' 7275 ;; 7276solaris*) 7277 symcode='[BDRT]' 7278 ;; 7279sco3.2v5*) 7280 symcode='[DT]' 7281 ;; 7282sysv4.2uw2*) 7283 symcode='[DT]' 7284 ;; 7285sysv5* | sco5v6* | unixware* | OpenUNIX*) 7286 symcode='[ABDT]' 7287 ;; 7288sysv4) 7289 symcode='[DFNSTU]' 7290 ;; 7291esac 7292 7293# If we're using GNU nm, then use its standard symbol codes. 7294case `$NM -V 2>&1` in 7295*GNU* | *'with BFD'*) 7296 symcode='[ABCDGIRSTW]' ;; 7297esac 7298 7299if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7300 # Gets list of data symbols to import. 7301 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7302 # Adjust the below global symbol transforms to fixup imported variables. 7303 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7304 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7305 lt_c_name_lib_hook="\ 7306 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7307 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7308else 7309 # Disable hooks by default. 7310 lt_cv_sys_global_symbol_to_import= 7311 lt_cdecl_hook= 7312 lt_c_name_hook= 7313 lt_c_name_lib_hook= 7314fi 7315 7316# Transform an extracted symbol line into a proper C declaration. 7317# Some systems (esp. on ia64) link data and code symbols differently, 7318# so use this general approach. 7319lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7320$lt_cdecl_hook\ 7321" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7322" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7323 7324# Transform an extracted symbol line into symbol name and symbol address 7325lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7326$lt_c_name_hook\ 7327" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7328" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7329 7330# Transform an extracted symbol line into symbol name with lib prefix and 7331# symbol address. 7332lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7333$lt_c_name_lib_hook\ 7334" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7335" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7336" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7337 7338# Handle CRLF in mingw tool chain 7339opt_cr= 7340case $build_os in 7341mingw*) 7342 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7343 ;; 7344esac 7345 7346# Try without a prefix underscore, then with it. 7347for ac_symprfx in "" "_"; do 7348 7349 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7350 symxfrm="\\1 $ac_symprfx\\2 \\2" 7351 7352 # Write the raw and C identifiers. 7353 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7354 # Fake it for dumpbin and say T for any non-static function, 7355 # D for any global variable and I for any imported variable. 7356 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7357 # which start with @ or ?. 7358 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7359" {last_section=section; section=\$ 3};"\ 7360" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7361" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7362" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7363" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7364" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7365" \$ 0!~/External *\|/{next};"\ 7366" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7367" {if(hide[section]) next};"\ 7368" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7369" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7370" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7371" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7372" ' prfx=^$ac_symprfx" 7373 else 7374 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7375 fi 7376 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7377 7378 # Check to see that the pipe works correctly. 7379 pipe_works=no 7380 7381 rm -f conftest* 7382 cat > conftest.$ac_ext <<_LT_EOF 7383#ifdef __cplusplus 7384extern "C" { 7385#endif 7386char nm_test_var; 7387void nm_test_func(void); 7388void nm_test_func(void){} 7389#ifdef __cplusplus 7390} 7391#endif 7392int main(){nm_test_var='a';nm_test_func();return(0);} 7393_LT_EOF 7394 7395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7396 (eval $ac_compile) 2>&5 7397 ac_status=$? 7398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7399 test $ac_status = 0; }; then 7400 # Now try to grab the symbols. 7401 nlist=conftest.nm 7402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7403 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7404 ac_status=$? 7405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7406 test $ac_status = 0; } && test -s "$nlist"; then 7407 # Try sorting and uniquifying the output. 7408 if sort "$nlist" | uniq > "$nlist"T; then 7409 mv -f "$nlist"T "$nlist" 7410 else 7411 rm -f "$nlist"T 7412 fi 7413 7414 # Make sure that we snagged all the symbols we need. 7415 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7416 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7417 cat <<_LT_EOF > conftest.$ac_ext 7418/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7419#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7420/* DATA imports from DLLs on WIN32 can't be const, because runtime 7421 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7422# define LT_DLSYM_CONST 7423#elif defined __osf__ 7424/* This system does not cope well with relocations in const data. */ 7425# define LT_DLSYM_CONST 7426#else 7427# define LT_DLSYM_CONST const 7428#endif 7429 7430#ifdef __cplusplus 7431extern "C" { 7432#endif 7433 7434_LT_EOF 7435 # Now generate the symbol file. 7436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7437 7438 cat <<_LT_EOF >> conftest.$ac_ext 7439 7440/* The mapping between symbol names and symbols. */ 7441LT_DLSYM_CONST struct { 7442 const char *name; 7443 void *address; 7444} 7445lt__PROGRAM__LTX_preloaded_symbols[] = 7446{ 7447 { "@PROGRAM@", (void *) 0 }, 7448_LT_EOF 7449 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7450 cat <<\_LT_EOF >> conftest.$ac_ext 7451 {0, (void *) 0} 7452}; 7453 7454/* This works around a problem in FreeBSD linker */ 7455#ifdef FREEBSD_WORKAROUND 7456static const void *lt_preloaded_setup() { 7457 return lt__PROGRAM__LTX_preloaded_symbols; 7458} 7459#endif 7460 7461#ifdef __cplusplus 7462} 7463#endif 7464_LT_EOF 7465 # Now try linking the two files. 7466 mv conftest.$ac_objext conftstm.$ac_objext 7467 lt_globsym_save_LIBS=$LIBS 7468 lt_globsym_save_CFLAGS=$CFLAGS 7469 LIBS=conftstm.$ac_objext 7470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7472 (eval $ac_link) 2>&5 7473 ac_status=$? 7474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7475 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7476 pipe_works=yes 7477 fi 7478 LIBS=$lt_globsym_save_LIBS 7479 CFLAGS=$lt_globsym_save_CFLAGS 7480 else 7481 echo "cannot find nm_test_func in $nlist" >&5 7482 fi 7483 else 7484 echo "cannot find nm_test_var in $nlist" >&5 7485 fi 7486 else 7487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7488 fi 7489 else 7490 echo "$progname: failed program was:" >&5 7491 cat conftest.$ac_ext >&5 7492 fi 7493 rm -rf conftest* conftst* 7494 7495 # Do not use the global_symbol_pipe unless it works. 7496 if test yes = "$pipe_works"; then 7497 break 7498 else 7499 lt_cv_sys_global_symbol_pipe= 7500 fi 7501done 7502 7503fi 7504 7505if test -z "$lt_cv_sys_global_symbol_pipe"; then 7506 lt_cv_sys_global_symbol_to_cdecl= 7507fi 7508if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7510printf "%s\n" "failed" >&6; } 7511else 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7513printf "%s\n" "ok" >&6; } 7514fi 7515 7516# Response file support. 7517if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7518 nm_file_list_spec='@' 7519elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7520 nm_file_list_spec='@' 7521fi 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7560printf %s "checking for sysroot... " >&6; } 7561 7562# Check whether --with-sysroot was given. 7563if test ${with_sysroot+y} 7564then : 7565 withval=$with_sysroot; 7566else $as_nop 7567 with_sysroot=no 7568fi 7569 7570 7571lt_sysroot= 7572case $with_sysroot in #( 7573 yes) 7574 if test yes = "$GCC"; then 7575 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7576 fi 7577 ;; #( 7578 /*) 7579 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7580 ;; #( 7581 no|'') 7582 ;; #( 7583 *) 7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7585printf "%s\n" "$with_sysroot" >&6; } 7586 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7587 ;; 7588esac 7589 7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7591printf "%s\n" "${lt_sysroot:-no}" >&6; } 7592 7593 7594 7595 7596 7597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7598printf %s "checking for a working dd... " >&6; } 7599if test ${ac_cv_path_lt_DD+y} 7600then : 7601 printf %s "(cached) " >&6 7602else $as_nop 7603 printf 0123456789abcdef0123456789abcdef >conftest.i 7604cat conftest.i conftest.i >conftest2.i 7605: ${lt_DD:=$DD} 7606if test -z "$lt_DD"; then 7607 ac_path_lt_DD_found=false 7608 # Loop through the user's path and test for each of PROGNAME-LIST 7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7610for as_dir in $PATH 7611do 7612 IFS=$as_save_IFS 7613 case $as_dir in #((( 7614 '') as_dir=./ ;; 7615 */) ;; 7616 *) as_dir=$as_dir/ ;; 7617 esac 7618 for ac_prog in dd 7619 do 7620 for ac_exec_ext in '' $ac_executable_extensions; do 7621 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7622 as_fn_executable_p "$ac_path_lt_DD" || continue 7623if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7624 cmp -s conftest.i conftest.out \ 7625 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7626fi 7627 $ac_path_lt_DD_found && break 3 7628 done 7629 done 7630 done 7631IFS=$as_save_IFS 7632 if test -z "$ac_cv_path_lt_DD"; then 7633 : 7634 fi 7635else 7636 ac_cv_path_lt_DD=$lt_DD 7637fi 7638 7639rm -f conftest.i conftest2.i conftest.out 7640fi 7641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7642printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7643 7644 7645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7646printf %s "checking how to truncate binary pipes... " >&6; } 7647if test ${lt_cv_truncate_bin+y} 7648then : 7649 printf %s "(cached) " >&6 7650else $as_nop 7651 printf 0123456789abcdef0123456789abcdef >conftest.i 7652cat conftest.i conftest.i >conftest2.i 7653lt_cv_truncate_bin= 7654if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7655 cmp -s conftest.i conftest.out \ 7656 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7657fi 7658rm -f conftest.i conftest2.i conftest.out 7659test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7660fi 7661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7662printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7663 7664 7665 7666 7667 7668 7669 7670# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7671func_cc_basename () 7672{ 7673 for cc_temp in $*""; do 7674 case $cc_temp in 7675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7677 \-*) ;; 7678 *) break;; 7679 esac 7680 done 7681 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7682} 7683 7684# Check whether --enable-libtool-lock was given. 7685if test ${enable_libtool_lock+y} 7686then : 7687 enableval=$enable_libtool_lock; 7688fi 7689 7690test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7691 7692# Some flags need to be propagated to the compiler or linker for good 7693# libtool support. 7694case $host in 7695ia64-*-hpux*) 7696 # Find out what ABI is being produced by ac_compile, and set mode 7697 # options accordingly. 7698 echo 'int i;' > conftest.$ac_ext 7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7700 (eval $ac_compile) 2>&5 7701 ac_status=$? 7702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7703 test $ac_status = 0; }; then 7704 case `$FILECMD conftest.$ac_objext` in 7705 *ELF-32*) 7706 HPUX_IA64_MODE=32 7707 ;; 7708 *ELF-64*) 7709 HPUX_IA64_MODE=64 7710 ;; 7711 esac 7712 fi 7713 rm -rf conftest* 7714 ;; 7715*-*-irix6*) 7716 # Find out what ABI is being produced by ac_compile, and set linker 7717 # options accordingly. 7718 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7720 (eval $ac_compile) 2>&5 7721 ac_status=$? 7722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7723 test $ac_status = 0; }; then 7724 if test yes = "$lt_cv_prog_gnu_ld"; then 7725 case `$FILECMD conftest.$ac_objext` in 7726 *32-bit*) 7727 LD="${LD-ld} -melf32bsmip" 7728 ;; 7729 *N32*) 7730 LD="${LD-ld} -melf32bmipn32" 7731 ;; 7732 *64-bit*) 7733 LD="${LD-ld} -melf64bmip" 7734 ;; 7735 esac 7736 else 7737 case `$FILECMD conftest.$ac_objext` in 7738 *32-bit*) 7739 LD="${LD-ld} -32" 7740 ;; 7741 *N32*) 7742 LD="${LD-ld} -n32" 7743 ;; 7744 *64-bit*) 7745 LD="${LD-ld} -64" 7746 ;; 7747 esac 7748 fi 7749 fi 7750 rm -rf conftest* 7751 ;; 7752 7753mips64*-*linux*) 7754 # Find out what ABI is being produced by ac_compile, and set linker 7755 # options accordingly. 7756 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7758 (eval $ac_compile) 2>&5 7759 ac_status=$? 7760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7761 test $ac_status = 0; }; then 7762 emul=elf 7763 case `$FILECMD conftest.$ac_objext` in 7764 *32-bit*) 7765 emul="${emul}32" 7766 ;; 7767 *64-bit*) 7768 emul="${emul}64" 7769 ;; 7770 esac 7771 case `$FILECMD conftest.$ac_objext` in 7772 *MSB*) 7773 emul="${emul}btsmip" 7774 ;; 7775 *LSB*) 7776 emul="${emul}ltsmip" 7777 ;; 7778 esac 7779 case `$FILECMD conftest.$ac_objext` in 7780 *N32*) 7781 emul="${emul}n32" 7782 ;; 7783 esac 7784 LD="${LD-ld} -m $emul" 7785 fi 7786 rm -rf conftest* 7787 ;; 7788 7789x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7790s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7791 # Find out what ABI is being produced by ac_compile, and set linker 7792 # options accordingly. Note that the listed cases only cover the 7793 # situations where additional linker options are needed (such as when 7794 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7795 # vice versa); the common cases where no linker options are needed do 7796 # not appear in the list. 7797 echo 'int i;' > conftest.$ac_ext 7798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7799 (eval $ac_compile) 2>&5 7800 ac_status=$? 7801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7802 test $ac_status = 0; }; then 7803 case `$FILECMD conftest.o` in 7804 *32-bit*) 7805 case $host in 7806 x86_64-*kfreebsd*-gnu) 7807 LD="${LD-ld} -m elf_i386_fbsd" 7808 ;; 7809 x86_64-*linux*) 7810 case `$FILECMD conftest.o` in 7811 *x86-64*) 7812 LD="${LD-ld} -m elf32_x86_64" 7813 ;; 7814 *) 7815 LD="${LD-ld} -m elf_i386" 7816 ;; 7817 esac 7818 ;; 7819 powerpc64le-*linux*) 7820 LD="${LD-ld} -m elf32lppclinux" 7821 ;; 7822 powerpc64-*linux*) 7823 LD="${LD-ld} -m elf32ppclinux" 7824 ;; 7825 s390x-*linux*) 7826 LD="${LD-ld} -m elf_s390" 7827 ;; 7828 sparc64-*linux*) 7829 LD="${LD-ld} -m elf32_sparc" 7830 ;; 7831 esac 7832 ;; 7833 *64-bit*) 7834 case $host in 7835 x86_64-*kfreebsd*-gnu) 7836 LD="${LD-ld} -m elf_x86_64_fbsd" 7837 ;; 7838 x86_64-*linux*) 7839 LD="${LD-ld} -m elf_x86_64" 7840 ;; 7841 powerpcle-*linux*|powerpc64le-*linux*) 7842 LD="${LD-ld} -m elf64lppc" 7843 ;; 7844 powerpc-*linux*|powerpc64-*linux*) 7845 LD="${LD-ld} -m elf64ppc" 7846 ;; 7847 s390*-*linux*|s390*-*tpf*) 7848 LD="${LD-ld} -m elf64_s390" 7849 ;; 7850 sparc*-*linux*) 7851 LD="${LD-ld} -m elf64_sparc" 7852 ;; 7853 esac 7854 ;; 7855 esac 7856 fi 7857 rm -rf conftest* 7858 ;; 7859 7860*-*-sco3.2v5*) 7861 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7862 SAVE_CFLAGS=$CFLAGS 7863 CFLAGS="$CFLAGS -belf" 7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7865printf %s "checking whether the C compiler needs -belf... " >&6; } 7866if test ${lt_cv_cc_needs_belf+y} 7867then : 7868 printf %s "(cached) " >&6 7869else $as_nop 7870 ac_ext=c 7871ac_cpp='$CPP $CPPFLAGS' 7872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7874ac_compiler_gnu=$ac_cv_c_compiler_gnu 7875 7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7877/* end confdefs.h. */ 7878 7879int 7880main (void) 7881{ 7882 7883 ; 7884 return 0; 7885} 7886_ACEOF 7887if ac_fn_c_try_link "$LINENO" 7888then : 7889 lt_cv_cc_needs_belf=yes 7890else $as_nop 7891 lt_cv_cc_needs_belf=no 7892fi 7893rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7894 conftest$ac_exeext conftest.$ac_ext 7895 ac_ext=c 7896ac_cpp='$CPP $CPPFLAGS' 7897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7899ac_compiler_gnu=$ac_cv_c_compiler_gnu 7900 7901fi 7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7903printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7904 if test yes != "$lt_cv_cc_needs_belf"; then 7905 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7906 CFLAGS=$SAVE_CFLAGS 7907 fi 7908 ;; 7909*-*solaris*) 7910 # Find out what ABI is being produced by ac_compile, and set linker 7911 # options accordingly. 7912 echo 'int i;' > conftest.$ac_ext 7913 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7914 (eval $ac_compile) 2>&5 7915 ac_status=$? 7916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7917 test $ac_status = 0; }; then 7918 case `$FILECMD conftest.o` in 7919 *64-bit*) 7920 case $lt_cv_prog_gnu_ld in 7921 yes*) 7922 case $host in 7923 i?86-*-solaris*|x86_64-*-solaris*) 7924 LD="${LD-ld} -m elf_x86_64" 7925 ;; 7926 sparc*-*-solaris*) 7927 LD="${LD-ld} -m elf64_sparc" 7928 ;; 7929 esac 7930 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7931 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7932 LD=${LD-ld}_sol2 7933 fi 7934 ;; 7935 *) 7936 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7937 LD="${LD-ld} -64" 7938 fi 7939 ;; 7940 esac 7941 ;; 7942 esac 7943 fi 7944 rm -rf conftest* 7945 ;; 7946esac 7947 7948need_locks=$enable_libtool_lock 7949 7950if test -n "$ac_tool_prefix"; then 7951 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7952set dummy ${ac_tool_prefix}mt; ac_word=$2 7953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7954printf %s "checking for $ac_word... " >&6; } 7955if test ${ac_cv_prog_MANIFEST_TOOL+y} 7956then : 7957 printf %s "(cached) " >&6 7958else $as_nop 7959 if test -n "$MANIFEST_TOOL"; then 7960 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7961else 7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7963for as_dir in $PATH 7964do 7965 IFS=$as_save_IFS 7966 case $as_dir in #((( 7967 '') as_dir=./ ;; 7968 */) ;; 7969 *) as_dir=$as_dir/ ;; 7970 esac 7971 for ac_exec_ext in '' $ac_executable_extensions; do 7972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7973 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7975 break 2 7976 fi 7977done 7978 done 7979IFS=$as_save_IFS 7980 7981fi 7982fi 7983MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7984if test -n "$MANIFEST_TOOL"; then 7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7986printf "%s\n" "$MANIFEST_TOOL" >&6; } 7987else 7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989printf "%s\n" "no" >&6; } 7990fi 7991 7992 7993fi 7994if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7995 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7996 # Extract the first word of "mt", so it can be a program name with args. 7997set dummy mt; ac_word=$2 7998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7999printf %s "checking for $ac_word... " >&6; } 8000if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8001then : 8002 printf %s "(cached) " >&6 8003else $as_nop 8004 if test -n "$ac_ct_MANIFEST_TOOL"; then 8005 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8006else 8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8008for as_dir in $PATH 8009do 8010 IFS=$as_save_IFS 8011 case $as_dir in #((( 8012 '') as_dir=./ ;; 8013 */) ;; 8014 *) as_dir=$as_dir/ ;; 8015 esac 8016 for ac_exec_ext in '' $ac_executable_extensions; do 8017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8018 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8020 break 2 8021 fi 8022done 8023 done 8024IFS=$as_save_IFS 8025 8026fi 8027fi 8028ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8029if test -n "$ac_ct_MANIFEST_TOOL"; then 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8031printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8032else 8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8034printf "%s\n" "no" >&6; } 8035fi 8036 8037 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8038 MANIFEST_TOOL=":" 8039 else 8040 case $cross_compiling:$ac_tool_warned in 8041yes:) 8042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8043printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8044ac_tool_warned=yes ;; 8045esac 8046 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8047 fi 8048else 8049 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8050fi 8051 8052test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8054printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8055if test ${lt_cv_path_mainfest_tool+y} 8056then : 8057 printf %s "(cached) " >&6 8058else $as_nop 8059 lt_cv_path_mainfest_tool=no 8060 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8061 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8062 cat conftest.err >&5 8063 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8064 lt_cv_path_mainfest_tool=yes 8065 fi 8066 rm -f conftest* 8067fi 8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8069printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8070if test yes != "$lt_cv_path_mainfest_tool"; then 8071 MANIFEST_TOOL=: 8072fi 8073 8074 8075 8076 8077 8078 8079 case $host_os in 8080 rhapsody* | darwin*) 8081 if test -n "$ac_tool_prefix"; then 8082 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8083set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8085printf %s "checking for $ac_word... " >&6; } 8086if test ${ac_cv_prog_DSYMUTIL+y} 8087then : 8088 printf %s "(cached) " >&6 8089else $as_nop 8090 if test -n "$DSYMUTIL"; then 8091 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8092else 8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8094for as_dir in $PATH 8095do 8096 IFS=$as_save_IFS 8097 case $as_dir in #((( 8098 '') as_dir=./ ;; 8099 */) ;; 8100 *) as_dir=$as_dir/ ;; 8101 esac 8102 for ac_exec_ext in '' $ac_executable_extensions; do 8103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8104 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8106 break 2 8107 fi 8108done 8109 done 8110IFS=$as_save_IFS 8111 8112fi 8113fi 8114DSYMUTIL=$ac_cv_prog_DSYMUTIL 8115if test -n "$DSYMUTIL"; then 8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8117printf "%s\n" "$DSYMUTIL" >&6; } 8118else 8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8120printf "%s\n" "no" >&6; } 8121fi 8122 8123 8124fi 8125if test -z "$ac_cv_prog_DSYMUTIL"; then 8126 ac_ct_DSYMUTIL=$DSYMUTIL 8127 # Extract the first word of "dsymutil", so it can be a program name with args. 8128set dummy dsymutil; ac_word=$2 8129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8130printf %s "checking for $ac_word... " >&6; } 8131if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8132then : 8133 printf %s "(cached) " >&6 8134else $as_nop 8135 if test -n "$ac_ct_DSYMUTIL"; then 8136 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8137else 8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8139for as_dir in $PATH 8140do 8141 IFS=$as_save_IFS 8142 case $as_dir in #((( 8143 '') as_dir=./ ;; 8144 */) ;; 8145 *) as_dir=$as_dir/ ;; 8146 esac 8147 for ac_exec_ext in '' $ac_executable_extensions; do 8148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8149 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8151 break 2 8152 fi 8153done 8154 done 8155IFS=$as_save_IFS 8156 8157fi 8158fi 8159ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8160if test -n "$ac_ct_DSYMUTIL"; then 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8162printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8163else 8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8165printf "%s\n" "no" >&6; } 8166fi 8167 8168 if test "x$ac_ct_DSYMUTIL" = x; then 8169 DSYMUTIL=":" 8170 else 8171 case $cross_compiling:$ac_tool_warned in 8172yes:) 8173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8174printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8175ac_tool_warned=yes ;; 8176esac 8177 DSYMUTIL=$ac_ct_DSYMUTIL 8178 fi 8179else 8180 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8181fi 8182 8183 if test -n "$ac_tool_prefix"; then 8184 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8185set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8187printf %s "checking for $ac_word... " >&6; } 8188if test ${ac_cv_prog_NMEDIT+y} 8189then : 8190 printf %s "(cached) " >&6 8191else $as_nop 8192 if test -n "$NMEDIT"; then 8193 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8194else 8195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8196for as_dir in $PATH 8197do 8198 IFS=$as_save_IFS 8199 case $as_dir in #((( 8200 '') as_dir=./ ;; 8201 */) ;; 8202 *) as_dir=$as_dir/ ;; 8203 esac 8204 for ac_exec_ext in '' $ac_executable_extensions; do 8205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8206 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8208 break 2 8209 fi 8210done 8211 done 8212IFS=$as_save_IFS 8213 8214fi 8215fi 8216NMEDIT=$ac_cv_prog_NMEDIT 8217if test -n "$NMEDIT"; then 8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8219printf "%s\n" "$NMEDIT" >&6; } 8220else 8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8222printf "%s\n" "no" >&6; } 8223fi 8224 8225 8226fi 8227if test -z "$ac_cv_prog_NMEDIT"; then 8228 ac_ct_NMEDIT=$NMEDIT 8229 # Extract the first word of "nmedit", so it can be a program name with args. 8230set dummy nmedit; ac_word=$2 8231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8232printf %s "checking for $ac_word... " >&6; } 8233if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8234then : 8235 printf %s "(cached) " >&6 8236else $as_nop 8237 if test -n "$ac_ct_NMEDIT"; then 8238 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8239else 8240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8241for as_dir in $PATH 8242do 8243 IFS=$as_save_IFS 8244 case $as_dir in #((( 8245 '') as_dir=./ ;; 8246 */) ;; 8247 *) as_dir=$as_dir/ ;; 8248 esac 8249 for ac_exec_ext in '' $ac_executable_extensions; do 8250 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8251 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8253 break 2 8254 fi 8255done 8256 done 8257IFS=$as_save_IFS 8258 8259fi 8260fi 8261ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8262if test -n "$ac_ct_NMEDIT"; then 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8264printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8265else 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8267printf "%s\n" "no" >&6; } 8268fi 8269 8270 if test "x$ac_ct_NMEDIT" = x; then 8271 NMEDIT=":" 8272 else 8273 case $cross_compiling:$ac_tool_warned in 8274yes:) 8275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8276printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8277ac_tool_warned=yes ;; 8278esac 8279 NMEDIT=$ac_ct_NMEDIT 8280 fi 8281else 8282 NMEDIT="$ac_cv_prog_NMEDIT" 8283fi 8284 8285 if test -n "$ac_tool_prefix"; then 8286 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8287set dummy ${ac_tool_prefix}lipo; ac_word=$2 8288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8289printf %s "checking for $ac_word... " >&6; } 8290if test ${ac_cv_prog_LIPO+y} 8291then : 8292 printf %s "(cached) " >&6 8293else $as_nop 8294 if test -n "$LIPO"; then 8295 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8296else 8297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8298for as_dir in $PATH 8299do 8300 IFS=$as_save_IFS 8301 case $as_dir in #((( 8302 '') as_dir=./ ;; 8303 */) ;; 8304 *) as_dir=$as_dir/ ;; 8305 esac 8306 for ac_exec_ext in '' $ac_executable_extensions; do 8307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8308 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8310 break 2 8311 fi 8312done 8313 done 8314IFS=$as_save_IFS 8315 8316fi 8317fi 8318LIPO=$ac_cv_prog_LIPO 8319if test -n "$LIPO"; then 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8321printf "%s\n" "$LIPO" >&6; } 8322else 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8324printf "%s\n" "no" >&6; } 8325fi 8326 8327 8328fi 8329if test -z "$ac_cv_prog_LIPO"; then 8330 ac_ct_LIPO=$LIPO 8331 # Extract the first word of "lipo", so it can be a program name with args. 8332set dummy lipo; ac_word=$2 8333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8334printf %s "checking for $ac_word... " >&6; } 8335if test ${ac_cv_prog_ac_ct_LIPO+y} 8336then : 8337 printf %s "(cached) " >&6 8338else $as_nop 8339 if test -n "$ac_ct_LIPO"; then 8340 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8341else 8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8343for as_dir in $PATH 8344do 8345 IFS=$as_save_IFS 8346 case $as_dir in #((( 8347 '') as_dir=./ ;; 8348 */) ;; 8349 *) as_dir=$as_dir/ ;; 8350 esac 8351 for ac_exec_ext in '' $ac_executable_extensions; do 8352 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8353 ac_cv_prog_ac_ct_LIPO="lipo" 8354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8355 break 2 8356 fi 8357done 8358 done 8359IFS=$as_save_IFS 8360 8361fi 8362fi 8363ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8364if test -n "$ac_ct_LIPO"; then 8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8366printf "%s\n" "$ac_ct_LIPO" >&6; } 8367else 8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8369printf "%s\n" "no" >&6; } 8370fi 8371 8372 if test "x$ac_ct_LIPO" = x; then 8373 LIPO=":" 8374 else 8375 case $cross_compiling:$ac_tool_warned in 8376yes:) 8377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8378printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8379ac_tool_warned=yes ;; 8380esac 8381 LIPO=$ac_ct_LIPO 8382 fi 8383else 8384 LIPO="$ac_cv_prog_LIPO" 8385fi 8386 8387 if test -n "$ac_tool_prefix"; then 8388 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8389set dummy ${ac_tool_prefix}otool; ac_word=$2 8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8391printf %s "checking for $ac_word... " >&6; } 8392if test ${ac_cv_prog_OTOOL+y} 8393then : 8394 printf %s "(cached) " >&6 8395else $as_nop 8396 if test -n "$OTOOL"; then 8397 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8398else 8399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8400for as_dir in $PATH 8401do 8402 IFS=$as_save_IFS 8403 case $as_dir in #((( 8404 '') as_dir=./ ;; 8405 */) ;; 8406 *) as_dir=$as_dir/ ;; 8407 esac 8408 for ac_exec_ext in '' $ac_executable_extensions; do 8409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8410 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8412 break 2 8413 fi 8414done 8415 done 8416IFS=$as_save_IFS 8417 8418fi 8419fi 8420OTOOL=$ac_cv_prog_OTOOL 8421if test -n "$OTOOL"; then 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8423printf "%s\n" "$OTOOL" >&6; } 8424else 8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8426printf "%s\n" "no" >&6; } 8427fi 8428 8429 8430fi 8431if test -z "$ac_cv_prog_OTOOL"; then 8432 ac_ct_OTOOL=$OTOOL 8433 # Extract the first word of "otool", so it can be a program name with args. 8434set dummy otool; ac_word=$2 8435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8436printf %s "checking for $ac_word... " >&6; } 8437if test ${ac_cv_prog_ac_ct_OTOOL+y} 8438then : 8439 printf %s "(cached) " >&6 8440else $as_nop 8441 if test -n "$ac_ct_OTOOL"; then 8442 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8443else 8444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8445for as_dir in $PATH 8446do 8447 IFS=$as_save_IFS 8448 case $as_dir in #((( 8449 '') as_dir=./ ;; 8450 */) ;; 8451 *) as_dir=$as_dir/ ;; 8452 esac 8453 for ac_exec_ext in '' $ac_executable_extensions; do 8454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8455 ac_cv_prog_ac_ct_OTOOL="otool" 8456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8457 break 2 8458 fi 8459done 8460 done 8461IFS=$as_save_IFS 8462 8463fi 8464fi 8465ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8466if test -n "$ac_ct_OTOOL"; then 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8468printf "%s\n" "$ac_ct_OTOOL" >&6; } 8469else 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8471printf "%s\n" "no" >&6; } 8472fi 8473 8474 if test "x$ac_ct_OTOOL" = x; then 8475 OTOOL=":" 8476 else 8477 case $cross_compiling:$ac_tool_warned in 8478yes:) 8479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8480printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8481ac_tool_warned=yes ;; 8482esac 8483 OTOOL=$ac_ct_OTOOL 8484 fi 8485else 8486 OTOOL="$ac_cv_prog_OTOOL" 8487fi 8488 8489 if test -n "$ac_tool_prefix"; then 8490 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8491set dummy ${ac_tool_prefix}otool64; ac_word=$2 8492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8493printf %s "checking for $ac_word... " >&6; } 8494if test ${ac_cv_prog_OTOOL64+y} 8495then : 8496 printf %s "(cached) " >&6 8497else $as_nop 8498 if test -n "$OTOOL64"; then 8499 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8500else 8501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8502for as_dir in $PATH 8503do 8504 IFS=$as_save_IFS 8505 case $as_dir in #((( 8506 '') as_dir=./ ;; 8507 */) ;; 8508 *) as_dir=$as_dir/ ;; 8509 esac 8510 for ac_exec_ext in '' $ac_executable_extensions; do 8511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8512 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8514 break 2 8515 fi 8516done 8517 done 8518IFS=$as_save_IFS 8519 8520fi 8521fi 8522OTOOL64=$ac_cv_prog_OTOOL64 8523if test -n "$OTOOL64"; then 8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8525printf "%s\n" "$OTOOL64" >&6; } 8526else 8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8528printf "%s\n" "no" >&6; } 8529fi 8530 8531 8532fi 8533if test -z "$ac_cv_prog_OTOOL64"; then 8534 ac_ct_OTOOL64=$OTOOL64 8535 # Extract the first word of "otool64", so it can be a program name with args. 8536set dummy otool64; ac_word=$2 8537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8538printf %s "checking for $ac_word... " >&6; } 8539if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8540then : 8541 printf %s "(cached) " >&6 8542else $as_nop 8543 if test -n "$ac_ct_OTOOL64"; then 8544 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8545else 8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8547for as_dir in $PATH 8548do 8549 IFS=$as_save_IFS 8550 case $as_dir in #((( 8551 '') as_dir=./ ;; 8552 */) ;; 8553 *) as_dir=$as_dir/ ;; 8554 esac 8555 for ac_exec_ext in '' $ac_executable_extensions; do 8556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8557 ac_cv_prog_ac_ct_OTOOL64="otool64" 8558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8559 break 2 8560 fi 8561done 8562 done 8563IFS=$as_save_IFS 8564 8565fi 8566fi 8567ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8568if test -n "$ac_ct_OTOOL64"; then 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8570printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8571else 8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8573printf "%s\n" "no" >&6; } 8574fi 8575 8576 if test "x$ac_ct_OTOOL64" = x; then 8577 OTOOL64=":" 8578 else 8579 case $cross_compiling:$ac_tool_warned in 8580yes:) 8581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8582printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8583ac_tool_warned=yes ;; 8584esac 8585 OTOOL64=$ac_ct_OTOOL64 8586 fi 8587else 8588 OTOOL64="$ac_cv_prog_OTOOL64" 8589fi 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8618printf %s "checking for -single_module linker flag... " >&6; } 8619if test ${lt_cv_apple_cc_single_mod+y} 8620then : 8621 printf %s "(cached) " >&6 8622else $as_nop 8623 lt_cv_apple_cc_single_mod=no 8624 if test -z "$LT_MULTI_MODULE"; then 8625 # By default we will add the -single_module flag. You can override 8626 # by either setting the environment variable LT_MULTI_MODULE 8627 # non-empty at configure time, or by adding -multi_module to the 8628 # link flags. 8629 rm -rf libconftest.dylib* 8630 echo "int foo(void){return 1;}" > conftest.c 8631 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8632-dynamiclib -Wl,-single_module conftest.c" >&5 8633 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8634 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8635 _lt_result=$? 8636 # If there is a non-empty error log, and "single_module" 8637 # appears in it, assume the flag caused a linker warning 8638 if test -s conftest.err && $GREP single_module conftest.err; then 8639 cat conftest.err >&5 8640 # Otherwise, if the output was created with a 0 exit code from 8641 # the compiler, it worked. 8642 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8643 lt_cv_apple_cc_single_mod=yes 8644 else 8645 cat conftest.err >&5 8646 fi 8647 rm -rf libconftest.dylib* 8648 rm -f conftest.* 8649 fi 8650fi 8651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8652printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8653 8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8655printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8656if test ${lt_cv_ld_exported_symbols_list+y} 8657then : 8658 printf %s "(cached) " >&6 8659else $as_nop 8660 lt_cv_ld_exported_symbols_list=no 8661 save_LDFLAGS=$LDFLAGS 8662 echo "_main" > conftest.sym 8663 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8665/* end confdefs.h. */ 8666 8667int 8668main (void) 8669{ 8670 8671 ; 8672 return 0; 8673} 8674_ACEOF 8675if ac_fn_c_try_link "$LINENO" 8676then : 8677 lt_cv_ld_exported_symbols_list=yes 8678else $as_nop 8679 lt_cv_ld_exported_symbols_list=no 8680fi 8681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8682 conftest$ac_exeext conftest.$ac_ext 8683 LDFLAGS=$save_LDFLAGS 8684 8685fi 8686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8687printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8688 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8690printf %s "checking for -force_load linker flag... " >&6; } 8691if test ${lt_cv_ld_force_load+y} 8692then : 8693 printf %s "(cached) " >&6 8694else $as_nop 8695 lt_cv_ld_force_load=no 8696 cat > conftest.c << _LT_EOF 8697int forced_loaded() { return 2;} 8698_LT_EOF 8699 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8700 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8701 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8702 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8703 echo "$RANLIB libconftest.a" >&5 8704 $RANLIB libconftest.a 2>&5 8705 cat > conftest.c << _LT_EOF 8706int main() { return 0;} 8707_LT_EOF 8708 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8709 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8710 _lt_result=$? 8711 if test -s conftest.err && $GREP force_load conftest.err; then 8712 cat conftest.err >&5 8713 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8714 lt_cv_ld_force_load=yes 8715 else 8716 cat conftest.err >&5 8717 fi 8718 rm -f conftest.err libconftest.a conftest conftest.c 8719 rm -rf conftest.dSYM 8720 8721fi 8722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8723printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8724 case $host_os in 8725 rhapsody* | darwin1.[012]) 8726 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8727 darwin1.*) 8728 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8729 darwin*) 8730 case $MACOSX_DEPLOYMENT_TARGET,$host in 8731 10.[012],*|,*powerpc*-darwin[5-8]*) 8732 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8733 *) 8734 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8735 esac 8736 ;; 8737 esac 8738 if test yes = "$lt_cv_apple_cc_single_mod"; then 8739 _lt_dar_single_mod='$single_module' 8740 fi 8741 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8742 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8743 else 8744 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8745 fi 8746 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8747 _lt_dsymutil='~$DSYMUTIL $lib || :' 8748 else 8749 _lt_dsymutil= 8750 fi 8751 ;; 8752 esac 8753 8754# func_munge_path_list VARIABLE PATH 8755# ----------------------------------- 8756# VARIABLE is name of variable containing _space_ separated list of 8757# directories to be munged by the contents of PATH, which is string 8758# having a format: 8759# "DIR[:DIR]:" 8760# string "DIR[ DIR]" will be prepended to VARIABLE 8761# ":DIR[:DIR]" 8762# string "DIR[ DIR]" will be appended to VARIABLE 8763# "DIRP[:DIRP]::[DIRA:]DIRA" 8764# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8765# "DIRA[ DIRA]" will be appended to VARIABLE 8766# "DIR[:DIR]" 8767# VARIABLE will be replaced by "DIR[ DIR]" 8768func_munge_path_list () 8769{ 8770 case x$2 in 8771 x) 8772 ;; 8773 *:) 8774 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8775 ;; 8776 x:*) 8777 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8778 ;; 8779 *::*) 8780 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8781 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8782 ;; 8783 *) 8784 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8785 ;; 8786 esac 8787} 8788 8789ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8790" 8791if test "x$ac_cv_header_dlfcn_h" = xyes 8792then : 8793 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8794 8795fi 8796 8797 8798 8799 8800 8801# Set options 8802 8803 8804 8805 enable_dlopen=no 8806 8807 8808 8809 # Check whether --enable-shared was given. 8810if test ${enable_shared+y} 8811then : 8812 enableval=$enable_shared; p=${PACKAGE-default} 8813 case $enableval in 8814 yes) enable_shared=yes ;; 8815 no) enable_shared=no ;; 8816 *) 8817 enable_shared=no 8818 # Look at the argument we got. We use all the common list separators. 8819 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8820 for pkg in $enableval; do 8821 IFS=$lt_save_ifs 8822 if test "X$pkg" = "X$p"; then 8823 enable_shared=yes 8824 fi 8825 done 8826 IFS=$lt_save_ifs 8827 ;; 8828 esac 8829else $as_nop 8830 enable_shared=yes 8831fi 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 # Check whether --enable-static was given. 8842if test ${enable_static+y} 8843then : 8844 enableval=$enable_static; p=${PACKAGE-default} 8845 case $enableval in 8846 yes) enable_static=yes ;; 8847 no) enable_static=no ;; 8848 *) 8849 enable_static=no 8850 # Look at the argument we got. We use all the common list separators. 8851 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8852 for pkg in $enableval; do 8853 IFS=$lt_save_ifs 8854 if test "X$pkg" = "X$p"; then 8855 enable_static=yes 8856 fi 8857 done 8858 IFS=$lt_save_ifs 8859 ;; 8860 esac 8861else $as_nop 8862 enable_static=yes 8863fi 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874# Check whether --with-pic was given. 8875if test ${with_pic+y} 8876then : 8877 withval=$with_pic; lt_p=${PACKAGE-default} 8878 case $withval in 8879 yes|no) pic_mode=$withval ;; 8880 *) 8881 pic_mode=default 8882 # Look at the argument we got. We use all the common list separators. 8883 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8884 for lt_pkg in $withval; do 8885 IFS=$lt_save_ifs 8886 if test "X$lt_pkg" = "X$lt_p"; then 8887 pic_mode=yes 8888 fi 8889 done 8890 IFS=$lt_save_ifs 8891 ;; 8892 esac 8893else $as_nop 8894 pic_mode=default 8895fi 8896 8897 8898 8899 8900 8901 8902 8903 8904 # Check whether --enable-fast-install was given. 8905if test ${enable_fast_install+y} 8906then : 8907 enableval=$enable_fast_install; p=${PACKAGE-default} 8908 case $enableval in 8909 yes) enable_fast_install=yes ;; 8910 no) enable_fast_install=no ;; 8911 *) 8912 enable_fast_install=no 8913 # Look at the argument we got. We use all the common list separators. 8914 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8915 for pkg in $enableval; do 8916 IFS=$lt_save_ifs 8917 if test "X$pkg" = "X$p"; then 8918 enable_fast_install=yes 8919 fi 8920 done 8921 IFS=$lt_save_ifs 8922 ;; 8923 esac 8924else $as_nop 8925 enable_fast_install=yes 8926fi 8927 8928 8929 8930 8931 8932 8933 8934 8935 shared_archive_member_spec= 8936case $host,$enable_shared in 8937power*-*-aix[5-9]*,yes) 8938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8939printf %s "checking which variant of shared library versioning to provide... " >&6; } 8940 8941# Check whether --with-aix-soname was given. 8942if test ${with_aix_soname+y} 8943then : 8944 withval=$with_aix_soname; case $withval in 8945 aix|svr4|both) 8946 ;; 8947 *) 8948 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8949 ;; 8950 esac 8951 lt_cv_with_aix_soname=$with_aix_soname 8952else $as_nop 8953 if test ${lt_cv_with_aix_soname+y} 8954then : 8955 printf %s "(cached) " >&6 8956else $as_nop 8957 lt_cv_with_aix_soname=aix 8958fi 8959 8960 with_aix_soname=$lt_cv_with_aix_soname 8961fi 8962 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8964printf "%s\n" "$with_aix_soname" >&6; } 8965 if test aix != "$with_aix_soname"; then 8966 # For the AIX way of multilib, we name the shared archive member 8967 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8968 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8969 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8970 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8971 if test 64 = "${OBJECT_MODE-32}"; then 8972 shared_archive_member_spec=shr_64 8973 else 8974 shared_archive_member_spec=shr 8975 fi 8976 fi 8977 ;; 8978*) 8979 with_aix_soname=aix 8980 ;; 8981esac 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992# This can be used to rebuild libtool when needed 8993LIBTOOL_DEPS=$ltmain 8994 8995# Always use our own libtool. 8996LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027test -z "$LN_S" && LN_S="ln -s" 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042if test -n "${ZSH_VERSION+set}"; then 9043 setopt NO_GLOB_SUBST 9044fi 9045 9046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9047printf %s "checking for objdir... " >&6; } 9048if test ${lt_cv_objdir+y} 9049then : 9050 printf %s "(cached) " >&6 9051else $as_nop 9052 rm -f .libs 2>/dev/null 9053mkdir .libs 2>/dev/null 9054if test -d .libs; then 9055 lt_cv_objdir=.libs 9056else 9057 # MS-DOS does not allow filenames that begin with a dot. 9058 lt_cv_objdir=_libs 9059fi 9060rmdir .libs 2>/dev/null 9061fi 9062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9063printf "%s\n" "$lt_cv_objdir" >&6; } 9064objdir=$lt_cv_objdir 9065 9066 9067 9068 9069 9070printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9071 9072 9073 9074 9075case $host_os in 9076aix3*) 9077 # AIX sometimes has problems with the GCC collect2 program. For some 9078 # reason, if we set the COLLECT_NAMES environment variable, the problems 9079 # vanish in a puff of smoke. 9080 if test set != "${COLLECT_NAMES+set}"; then 9081 COLLECT_NAMES= 9082 export COLLECT_NAMES 9083 fi 9084 ;; 9085esac 9086 9087# Global variables: 9088ofile=libtool 9089can_build_shared=yes 9090 9091# All known linkers require a '.a' archive for static linking (except MSVC and 9092# ICC, which need '.lib'). 9093libext=a 9094 9095with_gnu_ld=$lt_cv_prog_gnu_ld 9096 9097old_CC=$CC 9098old_CFLAGS=$CFLAGS 9099 9100# Set sane defaults for various variables 9101test -z "$CC" && CC=cc 9102test -z "$LTCC" && LTCC=$CC 9103test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9104test -z "$LD" && LD=ld 9105test -z "$ac_objext" && ac_objext=o 9106 9107func_cc_basename $compiler 9108cc_basename=$func_cc_basename_result 9109 9110 9111# Only perform the check for file, if the check method requires it 9112test -z "$MAGIC_CMD" && MAGIC_CMD=file 9113case $deplibs_check_method in 9114file_magic*) 9115 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9117printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9118if test ${lt_cv_path_MAGIC_CMD+y} 9119then : 9120 printf %s "(cached) " >&6 9121else $as_nop 9122 case $MAGIC_CMD in 9123[\\/*] | ?:[\\/]*) 9124 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9125 ;; 9126*) 9127 lt_save_MAGIC_CMD=$MAGIC_CMD 9128 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9129 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9130 for ac_dir in $ac_dummy; do 9131 IFS=$lt_save_ifs 9132 test -z "$ac_dir" && ac_dir=. 9133 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9134 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9135 if test -n "$file_magic_test_file"; then 9136 case $deplibs_check_method in 9137 "file_magic "*) 9138 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9139 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9140 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9141 $EGREP "$file_magic_regex" > /dev/null; then 9142 : 9143 else 9144 cat <<_LT_EOF 1>&2 9145 9146*** Warning: the command libtool uses to detect shared libraries, 9147*** $file_magic_cmd, produces output that libtool cannot recognize. 9148*** The result is that libtool may fail to recognize shared libraries 9149*** as such. This will affect the creation of libtool libraries that 9150*** depend on shared libraries, but programs linked with such libtool 9151*** libraries will work regardless of this problem. Nevertheless, you 9152*** may want to report the problem to your system manager and/or to 9153*** bug-libtool@gnu.org 9154 9155_LT_EOF 9156 fi ;; 9157 esac 9158 fi 9159 break 9160 fi 9161 done 9162 IFS=$lt_save_ifs 9163 MAGIC_CMD=$lt_save_MAGIC_CMD 9164 ;; 9165esac 9166fi 9167 9168MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9169if test -n "$MAGIC_CMD"; then 9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9171printf "%s\n" "$MAGIC_CMD" >&6; } 9172else 9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9174printf "%s\n" "no" >&6; } 9175fi 9176 9177 9178 9179 9180 9181if test -z "$lt_cv_path_MAGIC_CMD"; then 9182 if test -n "$ac_tool_prefix"; then 9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9184printf %s "checking for file... " >&6; } 9185if test ${lt_cv_path_MAGIC_CMD+y} 9186then : 9187 printf %s "(cached) " >&6 9188else $as_nop 9189 case $MAGIC_CMD in 9190[\\/*] | ?:[\\/]*) 9191 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9192 ;; 9193*) 9194 lt_save_MAGIC_CMD=$MAGIC_CMD 9195 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9196 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9197 for ac_dir in $ac_dummy; do 9198 IFS=$lt_save_ifs 9199 test -z "$ac_dir" && ac_dir=. 9200 if test -f "$ac_dir/file"; then 9201 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9202 if test -n "$file_magic_test_file"; then 9203 case $deplibs_check_method in 9204 "file_magic "*) 9205 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9206 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9207 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9208 $EGREP "$file_magic_regex" > /dev/null; then 9209 : 9210 else 9211 cat <<_LT_EOF 1>&2 9212 9213*** Warning: the command libtool uses to detect shared libraries, 9214*** $file_magic_cmd, produces output that libtool cannot recognize. 9215*** The result is that libtool may fail to recognize shared libraries 9216*** as such. This will affect the creation of libtool libraries that 9217*** depend on shared libraries, but programs linked with such libtool 9218*** libraries will work regardless of this problem. Nevertheless, you 9219*** may want to report the problem to your system manager and/or to 9220*** bug-libtool@gnu.org 9221 9222_LT_EOF 9223 fi ;; 9224 esac 9225 fi 9226 break 9227 fi 9228 done 9229 IFS=$lt_save_ifs 9230 MAGIC_CMD=$lt_save_MAGIC_CMD 9231 ;; 9232esac 9233fi 9234 9235MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9236if test -n "$MAGIC_CMD"; then 9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9238printf "%s\n" "$MAGIC_CMD" >&6; } 9239else 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9241printf "%s\n" "no" >&6; } 9242fi 9243 9244 9245 else 9246 MAGIC_CMD=: 9247 fi 9248fi 9249 9250 fi 9251 ;; 9252esac 9253 9254# Use C for the default configuration in the libtool script 9255 9256lt_save_CC=$CC 9257ac_ext=c 9258ac_cpp='$CPP $CPPFLAGS' 9259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9261ac_compiler_gnu=$ac_cv_c_compiler_gnu 9262 9263 9264# Source file extension for C test sources. 9265ac_ext=c 9266 9267# Object file extension for compiled C test sources. 9268objext=o 9269objext=$objext 9270 9271# Code to be used in simple compile tests 9272lt_simple_compile_test_code="int some_variable = 0;" 9273 9274# Code to be used in simple link tests 9275lt_simple_link_test_code='int main(){return(0);}' 9276 9277 9278 9279 9280 9281 9282 9283# If no C compiler was specified, use CC. 9284LTCC=${LTCC-"$CC"} 9285 9286# If no C compiler flags were specified, use CFLAGS. 9287LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9288 9289# Allow CC to be a program name with arguments. 9290compiler=$CC 9291 9292# Save the default compiler, since it gets overwritten when the other 9293# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9294compiler_DEFAULT=$CC 9295 9296# save warnings/boilerplate of simple test code 9297ac_outfile=conftest.$ac_objext 9298echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9299eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9300_lt_compiler_boilerplate=`cat conftest.err` 9301$RM conftest* 9302 9303ac_outfile=conftest.$ac_objext 9304echo "$lt_simple_link_test_code" >conftest.$ac_ext 9305eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9306_lt_linker_boilerplate=`cat conftest.err` 9307$RM -r conftest* 9308 9309 9310if test -n "$compiler"; then 9311 9312lt_prog_compiler_no_builtin_flag= 9313 9314if test yes = "$GCC"; then 9315 case $cc_basename in 9316 nvcc*) 9317 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9318 *) 9319 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9320 esac 9321 9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9323printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9324if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9325then : 9326 printf %s "(cached) " >&6 9327else $as_nop 9328 lt_cv_prog_compiler_rtti_exceptions=no 9329 ac_outfile=conftest.$ac_objext 9330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9331 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9332 # Insert the option either (1) after the last *FLAGS variable, or 9333 # (2) before a word containing "conftest.", or (3) at the end. 9334 # Note that $ac_compile itself does not contain backslashes and begins 9335 # with a dollar sign (not a hyphen), so the echo should work correctly. 9336 # The option is referenced via a variable to avoid confusing sed. 9337 lt_compile=`echo "$ac_compile" | $SED \ 9338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9340 -e 's:$: $lt_compiler_flag:'` 9341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9342 (eval "$lt_compile" 2>conftest.err) 9343 ac_status=$? 9344 cat conftest.err >&5 9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 if (exit $ac_status) && test -s "$ac_outfile"; then 9347 # The compiler can only warn and ignore the option if not recognized 9348 # So say no if there are warnings other than the usual output. 9349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9352 lt_cv_prog_compiler_rtti_exceptions=yes 9353 fi 9354 fi 9355 $RM conftest* 9356 9357fi 9358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9359printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9360 9361if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9362 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9363else 9364 : 9365fi 9366 9367fi 9368 9369 9370 9371 9372 9373 9374 lt_prog_compiler_wl= 9375lt_prog_compiler_pic= 9376lt_prog_compiler_static= 9377 9378 9379 if test yes = "$GCC"; then 9380 lt_prog_compiler_wl='-Wl,' 9381 lt_prog_compiler_static='-static' 9382 9383 case $host_os in 9384 aix*) 9385 # All AIX code is PIC. 9386 if test ia64 = "$host_cpu"; then 9387 # AIX 5 now supports IA64 processor 9388 lt_prog_compiler_static='-Bstatic' 9389 fi 9390 lt_prog_compiler_pic='-fPIC' 9391 ;; 9392 9393 amigaos*) 9394 case $host_cpu in 9395 powerpc) 9396 # see comment about AmigaOS4 .so support 9397 lt_prog_compiler_pic='-fPIC' 9398 ;; 9399 m68k) 9400 # FIXME: we need at least 68020 code to build shared libraries, but 9401 # adding the '-m68020' flag to GCC prevents building anything better, 9402 # like '-m68040'. 9403 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9404 ;; 9405 esac 9406 ;; 9407 9408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9409 # PIC is the default for these OSes. 9410 ;; 9411 9412 mingw* | cygwin* | pw32* | os2* | cegcc*) 9413 # This hack is so that the source file can tell whether it is being 9414 # built for inclusion in a dll (and should export symbols for example). 9415 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9416 # (--disable-auto-import) libraries 9417 lt_prog_compiler_pic='-DDLL_EXPORT' 9418 case $host_os in 9419 os2*) 9420 lt_prog_compiler_static='$wl-static' 9421 ;; 9422 esac 9423 ;; 9424 9425 darwin* | rhapsody*) 9426 # PIC is the default on this platform 9427 # Common symbols not allowed in MH_DYLIB files 9428 lt_prog_compiler_pic='-fno-common' 9429 ;; 9430 9431 haiku*) 9432 # PIC is the default for Haiku. 9433 # The "-static" flag exists, but is broken. 9434 lt_prog_compiler_static= 9435 ;; 9436 9437 hpux*) 9438 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9439 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9440 # sets the default TLS model and affects inlining. 9441 case $host_cpu in 9442 hppa*64*) 9443 # +Z the default 9444 ;; 9445 *) 9446 lt_prog_compiler_pic='-fPIC' 9447 ;; 9448 esac 9449 ;; 9450 9451 interix[3-9]*) 9452 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9453 # Instead, we relocate shared libraries at runtime. 9454 ;; 9455 9456 msdosdjgpp*) 9457 # Just because we use GCC doesn't mean we suddenly get shared libraries 9458 # on systems that don't support them. 9459 lt_prog_compiler_can_build_shared=no 9460 enable_shared=no 9461 ;; 9462 9463 *nto* | *qnx*) 9464 # QNX uses GNU C++, but need to define -shared option too, otherwise 9465 # it will coredump. 9466 lt_prog_compiler_pic='-fPIC -shared' 9467 ;; 9468 9469 sysv4*MP*) 9470 if test -d /usr/nec; then 9471 lt_prog_compiler_pic=-Kconform_pic 9472 fi 9473 ;; 9474 9475 *) 9476 lt_prog_compiler_pic='-fPIC' 9477 ;; 9478 esac 9479 9480 case $cc_basename in 9481 nvcc*) # Cuda Compiler Driver 2.2 9482 lt_prog_compiler_wl='-Xlinker ' 9483 if test -n "$lt_prog_compiler_pic"; then 9484 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9485 fi 9486 ;; 9487 esac 9488 else 9489 # PORTME Check for flag to pass linker flags through the system compiler. 9490 case $host_os in 9491 aix*) 9492 lt_prog_compiler_wl='-Wl,' 9493 if test ia64 = "$host_cpu"; then 9494 # AIX 5 now supports IA64 processor 9495 lt_prog_compiler_static='-Bstatic' 9496 else 9497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9498 fi 9499 ;; 9500 9501 darwin* | rhapsody*) 9502 # PIC is the default on this platform 9503 # Common symbols not allowed in MH_DYLIB files 9504 lt_prog_compiler_pic='-fno-common' 9505 case $cc_basename in 9506 nagfor*) 9507 # NAG Fortran compiler 9508 lt_prog_compiler_wl='-Wl,-Wl,,' 9509 lt_prog_compiler_pic='-PIC' 9510 lt_prog_compiler_static='-Bstatic' 9511 ;; 9512 esac 9513 ;; 9514 9515 mingw* | cygwin* | pw32* | os2* | cegcc*) 9516 # This hack is so that the source file can tell whether it is being 9517 # built for inclusion in a dll (and should export symbols for example). 9518 lt_prog_compiler_pic='-DDLL_EXPORT' 9519 case $host_os in 9520 os2*) 9521 lt_prog_compiler_static='$wl-static' 9522 ;; 9523 esac 9524 ;; 9525 9526 hpux9* | hpux10* | hpux11*) 9527 lt_prog_compiler_wl='-Wl,' 9528 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9529 # not for PA HP-UX. 9530 case $host_cpu in 9531 hppa*64*|ia64*) 9532 # +Z the default 9533 ;; 9534 *) 9535 lt_prog_compiler_pic='+Z' 9536 ;; 9537 esac 9538 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9539 lt_prog_compiler_static='$wl-a ${wl}archive' 9540 ;; 9541 9542 irix5* | irix6* | nonstopux*) 9543 lt_prog_compiler_wl='-Wl,' 9544 # PIC (with -KPIC) is the default. 9545 lt_prog_compiler_static='-non_shared' 9546 ;; 9547 9548 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9549 case $cc_basename in 9550 # old Intel for x86_64, which still supported -KPIC. 9551 ecc*) 9552 lt_prog_compiler_wl='-Wl,' 9553 lt_prog_compiler_pic='-KPIC' 9554 lt_prog_compiler_static='-static' 9555 ;; 9556 # icc used to be incompatible with GCC. 9557 # ICC 10 doesn't accept -KPIC any more. 9558 icc* | ifort*) 9559 lt_prog_compiler_wl='-Wl,' 9560 lt_prog_compiler_pic='-fPIC' 9561 lt_prog_compiler_static='-static' 9562 ;; 9563 # Lahey Fortran 8.1. 9564 lf95*) 9565 lt_prog_compiler_wl='-Wl,' 9566 lt_prog_compiler_pic='--shared' 9567 lt_prog_compiler_static='--static' 9568 ;; 9569 nagfor*) 9570 # NAG Fortran compiler 9571 lt_prog_compiler_wl='-Wl,-Wl,,' 9572 lt_prog_compiler_pic='-PIC' 9573 lt_prog_compiler_static='-Bstatic' 9574 ;; 9575 tcc*) 9576 # Fabrice Bellard et al's Tiny C Compiler 9577 lt_prog_compiler_wl='-Wl,' 9578 lt_prog_compiler_pic='-fPIC' 9579 lt_prog_compiler_static='-static' 9580 ;; 9581 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9582 # Portland Group compilers (*not* the Pentium gcc compiler, 9583 # which looks to be a dead project) 9584 lt_prog_compiler_wl='-Wl,' 9585 lt_prog_compiler_pic='-fpic' 9586 lt_prog_compiler_static='-Bstatic' 9587 ;; 9588 ccc*) 9589 lt_prog_compiler_wl='-Wl,' 9590 # All Alpha code is PIC. 9591 lt_prog_compiler_static='-non_shared' 9592 ;; 9593 xl* | bgxl* | bgf* | mpixl*) 9594 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9595 lt_prog_compiler_wl='-Wl,' 9596 lt_prog_compiler_pic='-qpic' 9597 lt_prog_compiler_static='-qstaticlink' 9598 ;; 9599 *) 9600 case `$CC -V 2>&1 | $SED 5q` in 9601 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9602 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9603 lt_prog_compiler_pic='-KPIC' 9604 lt_prog_compiler_static='-Bstatic' 9605 lt_prog_compiler_wl='' 9606 ;; 9607 *Sun\ F* | *Sun*Fortran*) 9608 lt_prog_compiler_pic='-KPIC' 9609 lt_prog_compiler_static='-Bstatic' 9610 lt_prog_compiler_wl='-Qoption ld ' 9611 ;; 9612 *Sun\ C*) 9613 # Sun C 5.9 9614 lt_prog_compiler_pic='-KPIC' 9615 lt_prog_compiler_static='-Bstatic' 9616 lt_prog_compiler_wl='-Wl,' 9617 ;; 9618 *Intel*\ [CF]*Compiler*) 9619 lt_prog_compiler_wl='-Wl,' 9620 lt_prog_compiler_pic='-fPIC' 9621 lt_prog_compiler_static='-static' 9622 ;; 9623 *Portland\ Group*) 9624 lt_prog_compiler_wl='-Wl,' 9625 lt_prog_compiler_pic='-fpic' 9626 lt_prog_compiler_static='-Bstatic' 9627 ;; 9628 esac 9629 ;; 9630 esac 9631 ;; 9632 9633 newsos6) 9634 lt_prog_compiler_pic='-KPIC' 9635 lt_prog_compiler_static='-Bstatic' 9636 ;; 9637 9638 *nto* | *qnx*) 9639 # QNX uses GNU C++, but need to define -shared option too, otherwise 9640 # it will coredump. 9641 lt_prog_compiler_pic='-fPIC -shared' 9642 ;; 9643 9644 osf3* | osf4* | osf5*) 9645 lt_prog_compiler_wl='-Wl,' 9646 # All OSF/1 code is PIC. 9647 lt_prog_compiler_static='-non_shared' 9648 ;; 9649 9650 rdos*) 9651 lt_prog_compiler_static='-non_shared' 9652 ;; 9653 9654 solaris*) 9655 lt_prog_compiler_pic='-KPIC' 9656 lt_prog_compiler_static='-Bstatic' 9657 case $cc_basename in 9658 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9659 lt_prog_compiler_wl='-Qoption ld ';; 9660 *) 9661 lt_prog_compiler_wl='-Wl,';; 9662 esac 9663 ;; 9664 9665 sunos4*) 9666 lt_prog_compiler_wl='-Qoption ld ' 9667 lt_prog_compiler_pic='-PIC' 9668 lt_prog_compiler_static='-Bstatic' 9669 ;; 9670 9671 sysv4 | sysv4.2uw2* | sysv4.3*) 9672 lt_prog_compiler_wl='-Wl,' 9673 lt_prog_compiler_pic='-KPIC' 9674 lt_prog_compiler_static='-Bstatic' 9675 ;; 9676 9677 sysv4*MP*) 9678 if test -d /usr/nec; then 9679 lt_prog_compiler_pic='-Kconform_pic' 9680 lt_prog_compiler_static='-Bstatic' 9681 fi 9682 ;; 9683 9684 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9685 lt_prog_compiler_wl='-Wl,' 9686 lt_prog_compiler_pic='-KPIC' 9687 lt_prog_compiler_static='-Bstatic' 9688 ;; 9689 9690 unicos*) 9691 lt_prog_compiler_wl='-Wl,' 9692 lt_prog_compiler_can_build_shared=no 9693 ;; 9694 9695 uts4*) 9696 lt_prog_compiler_pic='-pic' 9697 lt_prog_compiler_static='-Bstatic' 9698 ;; 9699 9700 *) 9701 lt_prog_compiler_can_build_shared=no 9702 ;; 9703 esac 9704 fi 9705 9706case $host_os in 9707 # For platforms that do not support PIC, -DPIC is meaningless: 9708 *djgpp*) 9709 lt_prog_compiler_pic= 9710 ;; 9711 *) 9712 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9713 ;; 9714esac 9715 9716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9717printf %s "checking for $compiler option to produce PIC... " >&6; } 9718if test ${lt_cv_prog_compiler_pic+y} 9719then : 9720 printf %s "(cached) " >&6 9721else $as_nop 9722 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9723fi 9724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9725printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9726lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9727 9728# 9729# Check to make sure the PIC flag actually works. 9730# 9731if test -n "$lt_prog_compiler_pic"; then 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9733printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9734if test ${lt_cv_prog_compiler_pic_works+y} 9735then : 9736 printf %s "(cached) " >&6 9737else $as_nop 9738 lt_cv_prog_compiler_pic_works=no 9739 ac_outfile=conftest.$ac_objext 9740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9741 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9742 # Insert the option either (1) after the last *FLAGS variable, or 9743 # (2) before a word containing "conftest.", or (3) at the end. 9744 # Note that $ac_compile itself does not contain backslashes and begins 9745 # with a dollar sign (not a hyphen), so the echo should work correctly. 9746 # The option is referenced via a variable to avoid confusing sed. 9747 lt_compile=`echo "$ac_compile" | $SED \ 9748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9750 -e 's:$: $lt_compiler_flag:'` 9751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9752 (eval "$lt_compile" 2>conftest.err) 9753 ac_status=$? 9754 cat conftest.err >&5 9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9756 if (exit $ac_status) && test -s "$ac_outfile"; then 9757 # The compiler can only warn and ignore the option if not recognized 9758 # So say no if there are warnings other than the usual output. 9759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9761 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9762 lt_cv_prog_compiler_pic_works=yes 9763 fi 9764 fi 9765 $RM conftest* 9766 9767fi 9768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9769printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9770 9771if test yes = "$lt_cv_prog_compiler_pic_works"; then 9772 case $lt_prog_compiler_pic in 9773 "" | " "*) ;; 9774 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9775 esac 9776else 9777 lt_prog_compiler_pic= 9778 lt_prog_compiler_can_build_shared=no 9779fi 9780 9781fi 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793# 9794# Check to make sure the static flag actually works. 9795# 9796wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9798printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9799if test ${lt_cv_prog_compiler_static_works+y} 9800then : 9801 printf %s "(cached) " >&6 9802else $as_nop 9803 lt_cv_prog_compiler_static_works=no 9804 save_LDFLAGS=$LDFLAGS 9805 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9806 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9807 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9808 # The linker can only warn and ignore the option if not recognized 9809 # So say no if there are warnings 9810 if test -s conftest.err; then 9811 # Append any errors to the config.log. 9812 cat conftest.err 1>&5 9813 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9815 if diff conftest.exp conftest.er2 >/dev/null; then 9816 lt_cv_prog_compiler_static_works=yes 9817 fi 9818 else 9819 lt_cv_prog_compiler_static_works=yes 9820 fi 9821 fi 9822 $RM -r conftest* 9823 LDFLAGS=$save_LDFLAGS 9824 9825fi 9826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9827printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9828 9829if test yes = "$lt_cv_prog_compiler_static_works"; then 9830 : 9831else 9832 lt_prog_compiler_static= 9833fi 9834 9835 9836 9837 9838 9839 9840 9841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9842printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9843if test ${lt_cv_prog_compiler_c_o+y} 9844then : 9845 printf %s "(cached) " >&6 9846else $as_nop 9847 lt_cv_prog_compiler_c_o=no 9848 $RM -r conftest 2>/dev/null 9849 mkdir conftest 9850 cd conftest 9851 mkdir out 9852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9853 9854 lt_compiler_flag="-o out/conftest2.$ac_objext" 9855 # Insert the option either (1) after the last *FLAGS variable, or 9856 # (2) before a word containing "conftest.", or (3) at the end. 9857 # Note that $ac_compile itself does not contain backslashes and begins 9858 # with a dollar sign (not a hyphen), so the echo should work correctly. 9859 lt_compile=`echo "$ac_compile" | $SED \ 9860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9862 -e 's:$: $lt_compiler_flag:'` 9863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9864 (eval "$lt_compile" 2>out/conftest.err) 9865 ac_status=$? 9866 cat out/conftest.err >&5 9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9868 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9869 then 9870 # The compiler can only warn and ignore the option if not recognized 9871 # So say no if there are warnings 9872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9875 lt_cv_prog_compiler_c_o=yes 9876 fi 9877 fi 9878 chmod u+w . 2>&5 9879 $RM conftest* 9880 # SGI C++ compiler will create directory out/ii_files/ for 9881 # template instantiation 9882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9883 $RM out/* && rmdir out 9884 cd .. 9885 $RM -r conftest 9886 $RM conftest* 9887 9888fi 9889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9890printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9891 9892 9893 9894 9895 9896 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9898printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9899if test ${lt_cv_prog_compiler_c_o+y} 9900then : 9901 printf %s "(cached) " >&6 9902else $as_nop 9903 lt_cv_prog_compiler_c_o=no 9904 $RM -r conftest 2>/dev/null 9905 mkdir conftest 9906 cd conftest 9907 mkdir out 9908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9909 9910 lt_compiler_flag="-o out/conftest2.$ac_objext" 9911 # Insert the option either (1) after the last *FLAGS variable, or 9912 # (2) before a word containing "conftest.", or (3) at the end. 9913 # Note that $ac_compile itself does not contain backslashes and begins 9914 # with a dollar sign (not a hyphen), so the echo should work correctly. 9915 lt_compile=`echo "$ac_compile" | $SED \ 9916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9918 -e 's:$: $lt_compiler_flag:'` 9919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9920 (eval "$lt_compile" 2>out/conftest.err) 9921 ac_status=$? 9922 cat out/conftest.err >&5 9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9924 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9925 then 9926 # The compiler can only warn and ignore the option if not recognized 9927 # So say no if there are warnings 9928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9931 lt_cv_prog_compiler_c_o=yes 9932 fi 9933 fi 9934 chmod u+w . 2>&5 9935 $RM conftest* 9936 # SGI C++ compiler will create directory out/ii_files/ for 9937 # template instantiation 9938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9939 $RM out/* && rmdir out 9940 cd .. 9941 $RM -r conftest 9942 $RM conftest* 9943 9944fi 9945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9946printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9947 9948 9949 9950 9951hard_links=nottested 9952if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9953 # do not overwrite the value of need_locks provided by the user 9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9955printf %s "checking if we can lock with hard links... " >&6; } 9956 hard_links=yes 9957 $RM conftest* 9958 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9959 touch conftest.a 9960 ln conftest.a conftest.b 2>&5 || hard_links=no 9961 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9963printf "%s\n" "$hard_links" >&6; } 9964 if test no = "$hard_links"; then 9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9966printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9967 need_locks=warn 9968 fi 9969else 9970 need_locks=no 9971fi 9972 9973 9974 9975 9976 9977 9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9979printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9980 9981 runpath_var= 9982 allow_undefined_flag= 9983 always_export_symbols=no 9984 archive_cmds= 9985 archive_expsym_cmds= 9986 compiler_needs_object=no 9987 enable_shared_with_static_runtimes=no 9988 export_dynamic_flag_spec= 9989 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9990 hardcode_automatic=no 9991 hardcode_direct=no 9992 hardcode_direct_absolute=no 9993 hardcode_libdir_flag_spec= 9994 hardcode_libdir_separator= 9995 hardcode_minus_L=no 9996 hardcode_shlibpath_var=unsupported 9997 inherit_rpath=no 9998 link_all_deplibs=unknown 9999 module_cmds= 10000 module_expsym_cmds= 10001 old_archive_from_new_cmds= 10002 old_archive_from_expsyms_cmds= 10003 thread_safe_flag_spec= 10004 whole_archive_flag_spec= 10005 # include_expsyms should be a list of space-separated symbols to be *always* 10006 # included in the symbol list 10007 include_expsyms= 10008 # exclude_expsyms can be an extended regexp of symbols to exclude 10009 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10010 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10011 # as well as any symbol that contains 'd'. 10012 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10014 # platforms (ab)use it in PIC code, but their linkers get confused if 10015 # the symbol is explicitly referenced. Since portable code cannot 10016 # rely on this symbol name, it's probably fine to never include it in 10017 # preloaded symbol tables. 10018 # Exclude shared library initialization/finalization symbols. 10019 extract_expsyms_cmds= 10020 10021 case $host_os in 10022 cygwin* | mingw* | pw32* | cegcc*) 10023 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10024 # When not using gcc, we currently assume that we are using 10025 # Microsoft Visual C++ or Intel C++ Compiler. 10026 if test yes != "$GCC"; then 10027 with_gnu_ld=no 10028 fi 10029 ;; 10030 interix*) 10031 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10032 with_gnu_ld=yes 10033 ;; 10034 openbsd* | bitrig*) 10035 with_gnu_ld=no 10036 ;; 10037 esac 10038 10039 ld_shlibs=yes 10040 10041 # On some targets, GNU ld is compatible enough with the native linker 10042 # that we're better off using the native interface for both. 10043 lt_use_gnu_ld_interface=no 10044 if test yes = "$with_gnu_ld"; then 10045 case $host_os in 10046 aix*) 10047 # The AIX port of GNU ld has always aspired to compatibility 10048 # with the native linker. However, as the warning in the GNU ld 10049 # block says, versions before 2.19.5* couldn't really create working 10050 # shared libraries, regardless of the interface used. 10051 case `$LD -v 2>&1` in 10052 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10053 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10054 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10055 *) 10056 lt_use_gnu_ld_interface=yes 10057 ;; 10058 esac 10059 ;; 10060 *) 10061 lt_use_gnu_ld_interface=yes 10062 ;; 10063 esac 10064 fi 10065 10066 if test yes = "$lt_use_gnu_ld_interface"; then 10067 # If archive_cmds runs LD, not CC, wlarc should be empty 10068 wlarc='$wl' 10069 10070 # Set some defaults for GNU ld with shared library support. These 10071 # are reset later if shared libraries are not supported. Putting them 10072 # here allows them to be overridden if necessary. 10073 runpath_var=LD_RUN_PATH 10074 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10075 export_dynamic_flag_spec='$wl--export-dynamic' 10076 # ancient GNU ld didn't support --whole-archive et. al. 10077 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10078 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10079 else 10080 whole_archive_flag_spec= 10081 fi 10082 supports_anon_versioning=no 10083 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10084 *GNU\ gold*) supports_anon_versioning=yes ;; 10085 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10088 *\ 2.11.*) ;; # other 2.11 versions 10089 *) supports_anon_versioning=yes ;; 10090 esac 10091 10092 # See if GNU ld supports shared libraries. 10093 case $host_os in 10094 aix[3-9]*) 10095 # On AIX/PPC, the GNU linker is very broken 10096 if test ia64 != "$host_cpu"; then 10097 ld_shlibs=no 10098 cat <<_LT_EOF 1>&2 10099 10100*** Warning: the GNU linker, at least up to release 2.19, is reported 10101*** to be unable to reliably create shared libraries on AIX. 10102*** Therefore, libtool is disabling shared libraries support. If you 10103*** really care for shared libraries, you may want to install binutils 10104*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10105*** You will then need to restart the configuration process. 10106 10107_LT_EOF 10108 fi 10109 ;; 10110 10111 amigaos*) 10112 case $host_cpu in 10113 powerpc) 10114 # see comment about AmigaOS4 .so support 10115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10116 archive_expsym_cmds='' 10117 ;; 10118 m68k) 10119 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)' 10120 hardcode_libdir_flag_spec='-L$libdir' 10121 hardcode_minus_L=yes 10122 ;; 10123 esac 10124 ;; 10125 10126 beos*) 10127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10128 allow_undefined_flag=unsupported 10129 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10130 # support --undefined. This deserves some investigation. FIXME 10131 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10132 else 10133 ld_shlibs=no 10134 fi 10135 ;; 10136 10137 cygwin* | mingw* | pw32* | cegcc*) 10138 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10139 # as there is no search path for DLLs. 10140 hardcode_libdir_flag_spec='-L$libdir' 10141 export_dynamic_flag_spec='$wl--export-all-symbols' 10142 allow_undefined_flag=unsupported 10143 always_export_symbols=no 10144 enable_shared_with_static_runtimes=yes 10145 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' 10146 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10147 10148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10150 # If the export-symbols file already is a .def file, use it as 10151 # is; otherwise, prepend EXPORTS... 10152 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10153 cp $export_symbols $output_objdir/$soname.def; 10154 else 10155 echo EXPORTS > $output_objdir/$soname.def; 10156 cat $export_symbols >> $output_objdir/$soname.def; 10157 fi~ 10158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10159 else 10160 ld_shlibs=no 10161 fi 10162 ;; 10163 10164 haiku*) 10165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10166 link_all_deplibs=yes 10167 ;; 10168 10169 os2*) 10170 hardcode_libdir_flag_spec='-L$libdir' 10171 hardcode_minus_L=yes 10172 allow_undefined_flag=unsupported 10173 shrext_cmds=.dll 10174 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10175 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10176 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10177 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10178 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10179 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10180 emximp -o $lib $output_objdir/$libname.def' 10181 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10184 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10185 prefix_cmds="$SED"~ 10186 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10187 prefix_cmds="$prefix_cmds -e 1d"; 10188 fi~ 10189 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10190 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10191 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10192 emximp -o $lib $output_objdir/$libname.def' 10193 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10194 enable_shared_with_static_runtimes=yes 10195 file_list_spec='@' 10196 ;; 10197 10198 interix[3-9]*) 10199 hardcode_direct=no 10200 hardcode_shlibpath_var=no 10201 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10202 export_dynamic_flag_spec='$wl-E' 10203 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10204 # Instead, shared libraries are loaded at an image base (0x10000000 by 10205 # default) and relocated if they conflict, which is a slow very memory 10206 # consuming and fragmenting process. To avoid this, we pick a random, 10207 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10208 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10210 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' 10211 ;; 10212 10213 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10214 tmp_diet=no 10215 if test linux-dietlibc = "$host_os"; then 10216 case $cc_basename in 10217 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10218 esac 10219 fi 10220 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10221 && test no = "$tmp_diet" 10222 then 10223 tmp_addflag=' $pic_flag' 10224 tmp_sharedflag='-shared' 10225 case $cc_basename,$host_cpu in 10226 pgcc*) # Portland Group C compiler 10227 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' 10228 tmp_addflag=' $pic_flag' 10229 ;; 10230 pgf77* | pgf90* | pgf95* | pgfortran*) 10231 # Portland Group f77 and f90 compilers 10232 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' 10233 tmp_addflag=' $pic_flag -Mnomain' ;; 10234 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10235 tmp_addflag=' -i_dynamic' ;; 10236 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10237 tmp_addflag=' -i_dynamic -nofor_main' ;; 10238 ifc* | ifort*) # Intel Fortran compiler 10239 tmp_addflag=' -nofor_main' ;; 10240 lf95*) # Lahey Fortran 8.1 10241 whole_archive_flag_spec= 10242 tmp_sharedflag='--shared' ;; 10243 nagfor*) # NAGFOR 5.3 10244 tmp_sharedflag='-Wl,-shared' ;; 10245 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10246 tmp_sharedflag='-qmkshrobj' 10247 tmp_addflag= ;; 10248 nvcc*) # Cuda Compiler Driver 2.2 10249 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' 10250 compiler_needs_object=yes 10251 ;; 10252 esac 10253 case `$CC -V 2>&1 | $SED 5q` in 10254 *Sun\ C*) # Sun C 5.9 10255 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' 10256 compiler_needs_object=yes 10257 tmp_sharedflag='-G' ;; 10258 *Sun\ F*) # Sun Fortran 8.3 10259 tmp_sharedflag='-G' ;; 10260 esac 10261 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10262 10263 if test yes = "$supports_anon_versioning"; then 10264 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10265 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10266 echo "local: *; };" >> $output_objdir/$libname.ver~ 10267 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10268 fi 10269 10270 case $cc_basename in 10271 tcc*) 10272 export_dynamic_flag_spec='-rdynamic' 10273 ;; 10274 xlf* | bgf* | bgxlf* | mpixlf*) 10275 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10276 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10277 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10278 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10279 if test yes = "$supports_anon_versioning"; then 10280 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10281 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10282 echo "local: *; };" >> $output_objdir/$libname.ver~ 10283 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10284 fi 10285 ;; 10286 esac 10287 else 10288 ld_shlibs=no 10289 fi 10290 ;; 10291 10292 netbsd*) 10293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10295 wlarc= 10296 else 10297 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10298 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10299 fi 10300 ;; 10301 10302 solaris*) 10303 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10304 ld_shlibs=no 10305 cat <<_LT_EOF 1>&2 10306 10307*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10308*** create shared libraries on Solaris systems. Therefore, libtool 10309*** is disabling shared libraries support. We urge you to upgrade GNU 10310*** binutils to release 2.9.1 or newer. Another option is to modify 10311*** your PATH or compiler configuration so that the native linker is 10312*** used, and then restart. 10313 10314_LT_EOF 10315 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10316 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10317 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10318 else 10319 ld_shlibs=no 10320 fi 10321 ;; 10322 10323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10324 case `$LD -v 2>&1` in 10325 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10326 ld_shlibs=no 10327 cat <<_LT_EOF 1>&2 10328 10329*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10330*** reliably create shared libraries on SCO systems. Therefore, libtool 10331*** is disabling shared libraries support. We urge you to upgrade GNU 10332*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10333*** your PATH or compiler configuration so that the native linker is 10334*** used, and then restart. 10335 10336_LT_EOF 10337 ;; 10338 *) 10339 # For security reasons, it is highly recommended that you always 10340 # use absolute paths for naming shared libraries, and exclude the 10341 # DT_RUNPATH tag from executables and libraries. But doing so 10342 # requires that you compile everything twice, which is a pain. 10343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10347 else 10348 ld_shlibs=no 10349 fi 10350 ;; 10351 esac 10352 ;; 10353 10354 sunos4*) 10355 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10356 wlarc= 10357 hardcode_direct=yes 10358 hardcode_shlibpath_var=no 10359 ;; 10360 10361 *) 10362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10363 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10364 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10365 else 10366 ld_shlibs=no 10367 fi 10368 ;; 10369 esac 10370 10371 if test no = "$ld_shlibs"; then 10372 runpath_var= 10373 hardcode_libdir_flag_spec= 10374 export_dynamic_flag_spec= 10375 whole_archive_flag_spec= 10376 fi 10377 else 10378 # PORTME fill in a description of your system's linker (not GNU ld) 10379 case $host_os in 10380 aix3*) 10381 allow_undefined_flag=unsupported 10382 always_export_symbols=yes 10383 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' 10384 # Note: this linker hardcodes the directories in LIBPATH if there 10385 # are no directories specified by -L. 10386 hardcode_minus_L=yes 10387 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10388 # Neither direct hardcoding nor static linking is supported with a 10389 # broken collect2. 10390 hardcode_direct=unsupported 10391 fi 10392 ;; 10393 10394 aix[4-9]*) 10395 if test ia64 = "$host_cpu"; then 10396 # On IA64, the linker does run time linking by default, so we don't 10397 # have to do anything special. 10398 aix_use_runtimelinking=no 10399 exp_sym_flag='-Bexport' 10400 no_entry_flag= 10401 else 10402 # If we're using GNU nm, then we don't want the "-C" option. 10403 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10404 # Without the "-l" option, or with the "-B" option, AIX nm treats 10405 # weak defined symbols like other global defined symbols, whereas 10406 # GNU nm marks them as "W". 10407 # While the 'weak' keyword is ignored in the Export File, we need 10408 # it in the Import File for the 'aix-soname' feature, so we have 10409 # to replace the "-B" option with "-P" for AIX nm. 10410 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10411 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' 10412 else 10413 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' 10414 fi 10415 aix_use_runtimelinking=no 10416 10417 # Test if we are trying to use run time linking or normal 10418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10419 # have runtime linking enabled, and use it for executables. 10420 # For shared libraries, we enable/disable runtime linking 10421 # depending on the kind of the shared library created - 10422 # when "with_aix_soname,aix_use_runtimelinking" is: 10423 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10424 # "aix,yes" lib.so shared, rtl:yes, for executables 10425 # lib.a static archive 10426 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10427 # lib.a(lib.so.V) shared, rtl:no, for executables 10428 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10429 # lib.a(lib.so.V) shared, rtl:no 10430 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10431 # lib.a static archive 10432 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10433 for ld_flag in $LDFLAGS; do 10434 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10435 aix_use_runtimelinking=yes 10436 break 10437 fi 10438 done 10439 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10440 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10441 # so we don't have lib.a shared libs to link our executables. 10442 # We have to force runtime linking in this case. 10443 aix_use_runtimelinking=yes 10444 LDFLAGS="$LDFLAGS -Wl,-brtl" 10445 fi 10446 ;; 10447 esac 10448 10449 exp_sym_flag='-bexport' 10450 no_entry_flag='-bnoentry' 10451 fi 10452 10453 # When large executables or shared objects are built, AIX ld can 10454 # have problems creating the table of contents. If linking a library 10455 # or program results in "error TOC overflow" add -mminimal-toc to 10456 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10457 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10458 10459 archive_cmds='' 10460 hardcode_direct=yes 10461 hardcode_direct_absolute=yes 10462 hardcode_libdir_separator=':' 10463 link_all_deplibs=yes 10464 file_list_spec='$wl-f,' 10465 case $with_aix_soname,$aix_use_runtimelinking in 10466 aix,*) ;; # traditional, no import file 10467 svr4,* | *,yes) # use import file 10468 # The Import File defines what to hardcode. 10469 hardcode_direct=no 10470 hardcode_direct_absolute=no 10471 ;; 10472 esac 10473 10474 if test yes = "$GCC"; then 10475 case $host_os in aix4.[012]|aix4.[012].*) 10476 # We only want to do this on AIX 4.2 and lower, the check 10477 # below for broken collect2 doesn't work under 4.3+ 10478 collect2name=`$CC -print-prog-name=collect2` 10479 if test -f "$collect2name" && 10480 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10481 then 10482 # We have reworked collect2 10483 : 10484 else 10485 # We have old collect2 10486 hardcode_direct=unsupported 10487 # It fails to find uninstalled libraries when the uninstalled 10488 # path is not listed in the libpath. Setting hardcode_minus_L 10489 # to unsupported forces relinking 10490 hardcode_minus_L=yes 10491 hardcode_libdir_flag_spec='-L$libdir' 10492 hardcode_libdir_separator= 10493 fi 10494 ;; 10495 esac 10496 shared_flag='-shared' 10497 if test yes = "$aix_use_runtimelinking"; then 10498 shared_flag="$shared_flag "'$wl-G' 10499 fi 10500 # Need to ensure runtime linking is disabled for the traditional 10501 # shared library, or the linker may eventually find shared libraries 10502 # /with/ Import File - we do not want to mix them. 10503 shared_flag_aix='-shared' 10504 shared_flag_svr4='-shared $wl-G' 10505 else 10506 # not using gcc 10507 if test ia64 = "$host_cpu"; then 10508 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10509 # chokes on -Wl,-G. The following line is correct: 10510 shared_flag='-G' 10511 else 10512 if test yes = "$aix_use_runtimelinking"; then 10513 shared_flag='$wl-G' 10514 else 10515 shared_flag='$wl-bM:SRE' 10516 fi 10517 shared_flag_aix='$wl-bM:SRE' 10518 shared_flag_svr4='$wl-G' 10519 fi 10520 fi 10521 10522 export_dynamic_flag_spec='$wl-bexpall' 10523 # It seems that -bexpall does not export symbols beginning with 10524 # underscore (_), so it is better to generate a list of symbols to export. 10525 always_export_symbols=yes 10526 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10527 # Warning - without using the other runtime loading flags (-brtl), 10528 # -berok will link without error, but may produce a broken library. 10529 allow_undefined_flag='-berok' 10530 # Determine the default libpath from the value encoded in an 10531 # empty executable. 10532 if test set = "${lt_cv_aix_libpath+set}"; then 10533 aix_libpath=$lt_cv_aix_libpath 10534else 10535 if test ${lt_cv_aix_libpath_+y} 10536then : 10537 printf %s "(cached) " >&6 10538else $as_nop 10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10540/* end confdefs.h. */ 10541 10542int 10543main (void) 10544{ 10545 10546 ; 10547 return 0; 10548} 10549_ACEOF 10550if ac_fn_c_try_link "$LINENO" 10551then : 10552 10553 lt_aix_libpath_sed=' 10554 /Import File Strings/,/^$/ { 10555 /^0/ { 10556 s/^0 *\([^ ]*\) *$/\1/ 10557 p 10558 } 10559 }' 10560 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10561 # Check for a 64-bit object if we didn't find anything. 10562 if test -z "$lt_cv_aix_libpath_"; then 10563 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10564 fi 10565fi 10566rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10567 conftest$ac_exeext conftest.$ac_ext 10568 if test -z "$lt_cv_aix_libpath_"; then 10569 lt_cv_aix_libpath_=/usr/lib:/lib 10570 fi 10571 10572fi 10573 10574 aix_libpath=$lt_cv_aix_libpath_ 10575fi 10576 10577 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10578 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 10579 else 10580 if test ia64 = "$host_cpu"; then 10581 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10582 allow_undefined_flag="-z nodefs" 10583 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" 10584 else 10585 # Determine the default libpath from the value encoded in an 10586 # empty executable. 10587 if test set = "${lt_cv_aix_libpath+set}"; then 10588 aix_libpath=$lt_cv_aix_libpath 10589else 10590 if test ${lt_cv_aix_libpath_+y} 10591then : 10592 printf %s "(cached) " >&6 10593else $as_nop 10594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10595/* end confdefs.h. */ 10596 10597int 10598main (void) 10599{ 10600 10601 ; 10602 return 0; 10603} 10604_ACEOF 10605if ac_fn_c_try_link "$LINENO" 10606then : 10607 10608 lt_aix_libpath_sed=' 10609 /Import File Strings/,/^$/ { 10610 /^0/ { 10611 s/^0 *\([^ ]*\) *$/\1/ 10612 p 10613 } 10614 }' 10615 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10616 # Check for a 64-bit object if we didn't find anything. 10617 if test -z "$lt_cv_aix_libpath_"; then 10618 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10619 fi 10620fi 10621rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10622 conftest$ac_exeext conftest.$ac_ext 10623 if test -z "$lt_cv_aix_libpath_"; then 10624 lt_cv_aix_libpath_=/usr/lib:/lib 10625 fi 10626 10627fi 10628 10629 aix_libpath=$lt_cv_aix_libpath_ 10630fi 10631 10632 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10633 # Warning - without using the other run time loading flags, 10634 # -berok will link without error, but may produce a broken library. 10635 no_undefined_flag=' $wl-bernotok' 10636 allow_undefined_flag=' $wl-berok' 10637 if test yes = "$with_gnu_ld"; then 10638 # We only use this code for GNU lds that support --whole-archive. 10639 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10640 else 10641 # Exported symbols can be pulled into shared objects from archives 10642 whole_archive_flag_spec='$convenience' 10643 fi 10644 archive_cmds_need_lc=yes 10645 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10646 # -brtl affects multiple linker settings, -berok does not and is overridden later 10647 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10648 if test svr4 != "$with_aix_soname"; then 10649 # This is similar to how AIX traditionally builds its shared libraries. 10650 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' 10651 fi 10652 if test aix != "$with_aix_soname"; then 10653 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' 10654 else 10655 # used by -dlpreopen to get the symbols 10656 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10657 fi 10658 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10659 fi 10660 fi 10661 ;; 10662 10663 amigaos*) 10664 case $host_cpu in 10665 powerpc) 10666 # see comment about AmigaOS4 .so support 10667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10668 archive_expsym_cmds='' 10669 ;; 10670 m68k) 10671 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)' 10672 hardcode_libdir_flag_spec='-L$libdir' 10673 hardcode_minus_L=yes 10674 ;; 10675 esac 10676 ;; 10677 10678 bsdi[45]*) 10679 export_dynamic_flag_spec=-rdynamic 10680 ;; 10681 10682 cygwin* | mingw* | pw32* | cegcc*) 10683 # When not using gcc, we currently assume that we are using 10684 # Microsoft Visual C++ or Intel C++ Compiler. 10685 # hardcode_libdir_flag_spec is actually meaningless, as there is 10686 # no search path for DLLs. 10687 case $cc_basename in 10688 cl* | icl*) 10689 # Native MSVC or ICC 10690 hardcode_libdir_flag_spec=' ' 10691 allow_undefined_flag=unsupported 10692 always_export_symbols=yes 10693 file_list_spec='@' 10694 # Tell ltmain to make .lib files, not .a files. 10695 libext=lib 10696 # Tell ltmain to make .dll files, not .so files. 10697 shrext_cmds=.dll 10698 # FIXME: Setting linknames here is a bad hack. 10699 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10700 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10701 cp "$export_symbols" "$output_objdir/$soname.def"; 10702 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10703 else 10704 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10705 fi~ 10706 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10707 linknames=' 10708 # The linker will not automatically build a static lib if we build a DLL. 10709 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10710 enable_shared_with_static_runtimes=yes 10711 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10712 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10713 # Don't use ranlib 10714 old_postinstall_cmds='chmod 644 $oldlib' 10715 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10716 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10717 case $lt_outputfile in 10718 *.exe|*.EXE) ;; 10719 *) 10720 lt_outputfile=$lt_outputfile.exe 10721 lt_tool_outputfile=$lt_tool_outputfile.exe 10722 ;; 10723 esac~ 10724 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10725 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10726 $RM "$lt_outputfile.manifest"; 10727 fi' 10728 ;; 10729 *) 10730 # Assume MSVC and ICC wrapper 10731 hardcode_libdir_flag_spec=' ' 10732 allow_undefined_flag=unsupported 10733 # Tell ltmain to make .lib files, not .a files. 10734 libext=lib 10735 # Tell ltmain to make .dll files, not .so files. 10736 shrext_cmds=.dll 10737 # FIXME: Setting linknames here is a bad hack. 10738 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10739 # The linker will automatically build a .lib file if we build a DLL. 10740 old_archive_from_new_cmds='true' 10741 # FIXME: Should let the user specify the lib program. 10742 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10743 enable_shared_with_static_runtimes=yes 10744 ;; 10745 esac 10746 ;; 10747 10748 darwin* | rhapsody*) 10749 10750 10751 archive_cmds_need_lc=no 10752 hardcode_direct=no 10753 hardcode_automatic=yes 10754 hardcode_shlibpath_var=unsupported 10755 if test yes = "$lt_cv_ld_force_load"; then 10756 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\"`' 10757 10758 else 10759 whole_archive_flag_spec='' 10760 fi 10761 link_all_deplibs=yes 10762 allow_undefined_flag=$_lt_dar_allow_undefined 10763 case $cc_basename in 10764 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10765 *) _lt_dar_can_shared=$GCC ;; 10766 esac 10767 if test yes = "$_lt_dar_can_shared"; then 10768 output_verbose_link_cmd=func_echo_all 10769 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10770 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10771 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" 10772 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" 10773 10774 else 10775 ld_shlibs=no 10776 fi 10777 10778 ;; 10779 10780 dgux*) 10781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10782 hardcode_libdir_flag_spec='-L$libdir' 10783 hardcode_shlibpath_var=no 10784 ;; 10785 10786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10787 # support. Future versions do this automatically, but an explicit c++rt0.o 10788 # does not break anything, and helps significantly (at the cost of a little 10789 # extra space). 10790 freebsd2.2*) 10791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10792 hardcode_libdir_flag_spec='-R$libdir' 10793 hardcode_direct=yes 10794 hardcode_shlibpath_var=no 10795 ;; 10796 10797 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10798 freebsd2.*) 10799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10800 hardcode_direct=yes 10801 hardcode_minus_L=yes 10802 hardcode_shlibpath_var=no 10803 ;; 10804 10805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10806 freebsd* | dragonfly* | midnightbsd*) 10807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10808 hardcode_libdir_flag_spec='-R$libdir' 10809 hardcode_direct=yes 10810 hardcode_shlibpath_var=no 10811 ;; 10812 10813 hpux9*) 10814 if test yes = "$GCC"; then 10815 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' 10816 else 10817 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' 10818 fi 10819 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10820 hardcode_libdir_separator=: 10821 hardcode_direct=yes 10822 10823 # hardcode_minus_L: Not really in the search PATH, 10824 # but as the default location of the library. 10825 hardcode_minus_L=yes 10826 export_dynamic_flag_spec='$wl-E' 10827 ;; 10828 10829 hpux10*) 10830 if test yes,no = "$GCC,$with_gnu_ld"; then 10831 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10832 else 10833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10834 fi 10835 if test no = "$with_gnu_ld"; then 10836 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10837 hardcode_libdir_separator=: 10838 hardcode_direct=yes 10839 hardcode_direct_absolute=yes 10840 export_dynamic_flag_spec='$wl-E' 10841 # hardcode_minus_L: Not really in the search PATH, 10842 # but as the default location of the library. 10843 hardcode_minus_L=yes 10844 fi 10845 ;; 10846 10847 hpux11*) 10848 if test yes,no = "$GCC,$with_gnu_ld"; then 10849 case $host_cpu in 10850 hppa*64*) 10851 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10852 ;; 10853 ia64*) 10854 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10855 ;; 10856 *) 10857 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10858 ;; 10859 esac 10860 else 10861 case $host_cpu in 10862 hppa*64*) 10863 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10864 ;; 10865 ia64*) 10866 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10867 ;; 10868 *) 10869 10870 # Older versions of the 11.00 compiler do not understand -b yet 10871 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10873printf %s "checking if $CC understands -b... " >&6; } 10874if test ${lt_cv_prog_compiler__b+y} 10875then : 10876 printf %s "(cached) " >&6 10877else $as_nop 10878 lt_cv_prog_compiler__b=no 10879 save_LDFLAGS=$LDFLAGS 10880 LDFLAGS="$LDFLAGS -b" 10881 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10883 # The linker can only warn and ignore the option if not recognized 10884 # So say no if there are warnings 10885 if test -s conftest.err; then 10886 # Append any errors to the config.log. 10887 cat conftest.err 1>&5 10888 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10890 if diff conftest.exp conftest.er2 >/dev/null; then 10891 lt_cv_prog_compiler__b=yes 10892 fi 10893 else 10894 lt_cv_prog_compiler__b=yes 10895 fi 10896 fi 10897 $RM -r conftest* 10898 LDFLAGS=$save_LDFLAGS 10899 10900fi 10901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10902printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10903 10904if test yes = "$lt_cv_prog_compiler__b"; then 10905 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10906else 10907 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10908fi 10909 10910 ;; 10911 esac 10912 fi 10913 if test no = "$with_gnu_ld"; then 10914 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10915 hardcode_libdir_separator=: 10916 10917 case $host_cpu in 10918 hppa*64*|ia64*) 10919 hardcode_direct=no 10920 hardcode_shlibpath_var=no 10921 ;; 10922 *) 10923 hardcode_direct=yes 10924 hardcode_direct_absolute=yes 10925 export_dynamic_flag_spec='$wl-E' 10926 10927 # hardcode_minus_L: Not really in the search PATH, 10928 # but as the default location of the library. 10929 hardcode_minus_L=yes 10930 ;; 10931 esac 10932 fi 10933 ;; 10934 10935 irix5* | irix6* | nonstopux*) 10936 if test yes = "$GCC"; then 10937 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' 10938 # Try to use the -exported_symbol ld option, if it does not 10939 # work, assume that -exports_file does not work either and 10940 # implicitly export all symbols. 10941 # This should be the same for all languages, so no per-tag cache variable. 10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10943printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10944if test ${lt_cv_irix_exported_symbol+y} 10945then : 10946 printf %s "(cached) " >&6 10947else $as_nop 10948 save_LDFLAGS=$LDFLAGS 10949 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10951/* end confdefs.h. */ 10952int foo (void) { return 0; } 10953_ACEOF 10954if ac_fn_c_try_link "$LINENO" 10955then : 10956 lt_cv_irix_exported_symbol=yes 10957else $as_nop 10958 lt_cv_irix_exported_symbol=no 10959fi 10960rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10961 conftest$ac_exeext conftest.$ac_ext 10962 LDFLAGS=$save_LDFLAGS 10963fi 10964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10965printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10966 if test yes = "$lt_cv_irix_exported_symbol"; then 10967 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' 10968 fi 10969 else 10970 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' 10971 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' 10972 fi 10973 archive_cmds_need_lc='no' 10974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10975 hardcode_libdir_separator=: 10976 inherit_rpath=yes 10977 link_all_deplibs=yes 10978 ;; 10979 10980 linux*) 10981 case $cc_basename in 10982 tcc*) 10983 # Fabrice Bellard et al's Tiny C Compiler 10984 ld_shlibs=yes 10985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10986 ;; 10987 esac 10988 ;; 10989 10990 netbsd*) 10991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10993 else 10994 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10995 fi 10996 hardcode_libdir_flag_spec='-R$libdir' 10997 hardcode_direct=yes 10998 hardcode_shlibpath_var=no 10999 ;; 11000 11001 newsos6) 11002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11003 hardcode_direct=yes 11004 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11005 hardcode_libdir_separator=: 11006 hardcode_shlibpath_var=no 11007 ;; 11008 11009 *nto* | *qnx*) 11010 ;; 11011 11012 openbsd* | bitrig*) 11013 if test -f /usr/libexec/ld.so; then 11014 hardcode_direct=yes 11015 hardcode_shlibpath_var=no 11016 hardcode_direct_absolute=yes 11017 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11018 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11019 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11020 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11021 export_dynamic_flag_spec='$wl-E' 11022 else 11023 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11024 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11025 fi 11026 else 11027 ld_shlibs=no 11028 fi 11029 ;; 11030 11031 os2*) 11032 hardcode_libdir_flag_spec='-L$libdir' 11033 hardcode_minus_L=yes 11034 allow_undefined_flag=unsupported 11035 shrext_cmds=.dll 11036 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11037 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11038 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11039 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11040 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11041 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11042 emximp -o $lib $output_objdir/$libname.def' 11043 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11044 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11045 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11046 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11047 prefix_cmds="$SED"~ 11048 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11049 prefix_cmds="$prefix_cmds -e 1d"; 11050 fi~ 11051 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11052 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11053 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11054 emximp -o $lib $output_objdir/$libname.def' 11055 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11056 enable_shared_with_static_runtimes=yes 11057 file_list_spec='@' 11058 ;; 11059 11060 osf3*) 11061 if test yes = "$GCC"; then 11062 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11063 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' 11064 else 11065 allow_undefined_flag=' -expect_unresolved \*' 11066 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' 11067 fi 11068 archive_cmds_need_lc='no' 11069 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11070 hardcode_libdir_separator=: 11071 ;; 11072 11073 osf4* | osf5*) # as osf3* with the addition of -msym flag 11074 if test yes = "$GCC"; then 11075 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11076 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' 11077 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11078 else 11079 allow_undefined_flag=' -expect_unresolved \*' 11080 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' 11081 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~ 11082 $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' 11083 11084 # Both c and cxx compiler support -rpath directly 11085 hardcode_libdir_flag_spec='-rpath $libdir' 11086 fi 11087 archive_cmds_need_lc='no' 11088 hardcode_libdir_separator=: 11089 ;; 11090 11091 solaris*) 11092 no_undefined_flag=' -z defs' 11093 if test yes = "$GCC"; then 11094 wlarc='$wl' 11095 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11096 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11097 $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' 11098 else 11099 case `$CC -V 2>&1` in 11100 *"Compilers 5.0"*) 11101 wlarc='' 11102 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11103 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11104 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11105 ;; 11106 *) 11107 wlarc='$wl' 11108 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11109 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11110 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11111 ;; 11112 esac 11113 fi 11114 hardcode_libdir_flag_spec='-R$libdir' 11115 hardcode_shlibpath_var=no 11116 case $host_os in 11117 solaris2.[0-5] | solaris2.[0-5].*) ;; 11118 *) 11119 # The compiler driver will combine and reorder linker options, 11120 # but understands '-z linker_flag'. GCC discards it without '$wl', 11121 # but is careful enough not to reorder. 11122 # Supported since Solaris 2.6 (maybe 2.5.1?) 11123 if test yes = "$GCC"; then 11124 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11125 else 11126 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11127 fi 11128 ;; 11129 esac 11130 link_all_deplibs=yes 11131 ;; 11132 11133 sunos4*) 11134 if test sequent = "$host_vendor"; then 11135 # Use $CC to link under sequent, because it throws in some extra .o 11136 # files that make .init and .fini sections work. 11137 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11138 else 11139 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11140 fi 11141 hardcode_libdir_flag_spec='-L$libdir' 11142 hardcode_direct=yes 11143 hardcode_minus_L=yes 11144 hardcode_shlibpath_var=no 11145 ;; 11146 11147 sysv4) 11148 case $host_vendor in 11149 sni) 11150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11151 hardcode_direct=yes # is this really true??? 11152 ;; 11153 siemens) 11154 ## LD is ld it makes a PLAMLIB 11155 ## CC just makes a GrossModule. 11156 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11157 reload_cmds='$CC -r -o $output$reload_objs' 11158 hardcode_direct=no 11159 ;; 11160 motorola) 11161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11162 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11163 ;; 11164 esac 11165 runpath_var='LD_RUN_PATH' 11166 hardcode_shlibpath_var=no 11167 ;; 11168 11169 sysv4.3*) 11170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11171 hardcode_shlibpath_var=no 11172 export_dynamic_flag_spec='-Bexport' 11173 ;; 11174 11175 sysv4*MP*) 11176 if test -d /usr/nec; then 11177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11178 hardcode_shlibpath_var=no 11179 runpath_var=LD_RUN_PATH 11180 hardcode_runpath_var=yes 11181 ld_shlibs=yes 11182 fi 11183 ;; 11184 11185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11186 no_undefined_flag='$wl-z,text' 11187 archive_cmds_need_lc=no 11188 hardcode_shlibpath_var=no 11189 runpath_var='LD_RUN_PATH' 11190 11191 if test yes = "$GCC"; then 11192 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11193 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11194 else 11195 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11196 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11197 fi 11198 ;; 11199 11200 sysv5* | sco3.2v5* | sco5v6*) 11201 # Note: We CANNOT use -z defs as we might desire, because we do not 11202 # link with -lc, and that would cause any symbols used from libc to 11203 # always be unresolved, which means just about no library would 11204 # ever link correctly. If we're not using GNU ld we use -z text 11205 # though, which does catch some bad symbols but isn't as heavy-handed 11206 # as -z defs. 11207 no_undefined_flag='$wl-z,text' 11208 allow_undefined_flag='$wl-z,nodefs' 11209 archive_cmds_need_lc=no 11210 hardcode_shlibpath_var=no 11211 hardcode_libdir_flag_spec='$wl-R,$libdir' 11212 hardcode_libdir_separator=':' 11213 link_all_deplibs=yes 11214 export_dynamic_flag_spec='$wl-Bexport' 11215 runpath_var='LD_RUN_PATH' 11216 11217 if test yes = "$GCC"; then 11218 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11219 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11220 else 11221 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11222 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11223 fi 11224 ;; 11225 11226 uts4*) 11227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11228 hardcode_libdir_flag_spec='-L$libdir' 11229 hardcode_shlibpath_var=no 11230 ;; 11231 11232 *) 11233 ld_shlibs=no 11234 ;; 11235 esac 11236 11237 if test sni = "$host_vendor"; then 11238 case $host in 11239 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11240 export_dynamic_flag_spec='$wl-Blargedynsym' 11241 ;; 11242 esac 11243 fi 11244 fi 11245 11246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11247printf "%s\n" "$ld_shlibs" >&6; } 11248test no = "$ld_shlibs" && can_build_shared=no 11249 11250with_gnu_ld=$with_gnu_ld 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266# 11267# Do we need to explicitly link libc? 11268# 11269case "x$archive_cmds_need_lc" in 11270x|xyes) 11271 # Assume -lc should be added 11272 archive_cmds_need_lc=yes 11273 11274 if test yes,yes = "$GCC,$enable_shared"; then 11275 case $archive_cmds in 11276 *'~'*) 11277 # FIXME: we may have to deal with multi-command sequences. 11278 ;; 11279 '$CC '*) 11280 # Test whether the compiler implicitly links with -lc since on some 11281 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11282 # to ld, don't add -lc before -lgcc. 11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11284printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11285if test ${lt_cv_archive_cmds_need_lc+y} 11286then : 11287 printf %s "(cached) " >&6 11288else $as_nop 11289 $RM conftest* 11290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11291 11292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11293 (eval $ac_compile) 2>&5 11294 ac_status=$? 11295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11296 test $ac_status = 0; } 2>conftest.err; then 11297 soname=conftest 11298 lib=conftest 11299 libobjs=conftest.$ac_objext 11300 deplibs= 11301 wl=$lt_prog_compiler_wl 11302 pic_flag=$lt_prog_compiler_pic 11303 compiler_flags=-v 11304 linker_flags=-v 11305 verstring= 11306 output_objdir=. 11307 libname=conftest 11308 lt_save_allow_undefined_flag=$allow_undefined_flag 11309 allow_undefined_flag= 11310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11311 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11312 ac_status=$? 11313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11314 test $ac_status = 0; } 11315 then 11316 lt_cv_archive_cmds_need_lc=no 11317 else 11318 lt_cv_archive_cmds_need_lc=yes 11319 fi 11320 allow_undefined_flag=$lt_save_allow_undefined_flag 11321 else 11322 cat conftest.err 1>&5 11323 fi 11324 $RM conftest* 11325 11326fi 11327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11328printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11329 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11330 ;; 11331 esac 11332 fi 11333 ;; 11334esac 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11488printf %s "checking dynamic linker characteristics... " >&6; } 11489 11490if test yes = "$GCC"; then 11491 case $host_os in 11492 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11493 *) lt_awk_arg='/^libraries:/' ;; 11494 esac 11495 case $host_os in 11496 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11497 *) lt_sed_strip_eq='s|=/|/|g' ;; 11498 esac 11499 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11500 case $lt_search_path_spec in 11501 *\;*) 11502 # if the path contains ";" then we assume it to be the separator 11503 # otherwise default to the standard path separator (i.e. ":") - it is 11504 # assumed that no part of a normal pathname contains ";" but that should 11505 # okay in the real world where ";" in dirpaths is itself problematic. 11506 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11507 ;; 11508 *) 11509 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11510 ;; 11511 esac 11512 # Ok, now we have the path, separated by spaces, we can step through it 11513 # and add multilib dir if necessary... 11514 lt_tmp_lt_search_path_spec= 11515 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11516 # ...but if some path component already ends with the multilib dir we assume 11517 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11518 case "$lt_multi_os_dir; $lt_search_path_spec " in 11519 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11520 lt_multi_os_dir= 11521 ;; 11522 esac 11523 for lt_sys_path in $lt_search_path_spec; do 11524 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11525 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11526 elif test -n "$lt_multi_os_dir"; then 11527 test -d "$lt_sys_path" && \ 11528 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11529 fi 11530 done 11531 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11532BEGIN {RS = " "; FS = "/|\n";} { 11533 lt_foo = ""; 11534 lt_count = 0; 11535 for (lt_i = NF; lt_i > 0; lt_i--) { 11536 if ($lt_i != "" && $lt_i != ".") { 11537 if ($lt_i == "..") { 11538 lt_count++; 11539 } else { 11540 if (lt_count == 0) { 11541 lt_foo = "/" $lt_i lt_foo; 11542 } else { 11543 lt_count--; 11544 } 11545 } 11546 } 11547 } 11548 if (lt_foo != "") { lt_freq[lt_foo]++; } 11549 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11550}'` 11551 # AWK program above erroneously prepends '/' to C:/dos/paths 11552 # for these hosts. 11553 case $host_os in 11554 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11555 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11556 esac 11557 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11558else 11559 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11560fi 11561library_names_spec= 11562libname_spec='lib$name' 11563soname_spec= 11564shrext_cmds=.so 11565postinstall_cmds= 11566postuninstall_cmds= 11567finish_cmds= 11568finish_eval= 11569shlibpath_var= 11570shlibpath_overrides_runpath=unknown 11571version_type=none 11572dynamic_linker="$host_os ld.so" 11573sys_lib_dlsearch_path_spec="/lib /usr/lib" 11574need_lib_prefix=unknown 11575hardcode_into_libs=no 11576 11577# when you set need_version to no, make sure it does not cause -set_version 11578# flags to be left without arguments 11579need_version=unknown 11580 11581 11582 11583case $host_os in 11584aix3*) 11585 version_type=linux # correct to gnu/linux during the next big refactor 11586 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11587 shlibpath_var=LIBPATH 11588 11589 # AIX 3 has no versioning support, so we append a major version to the name. 11590 soname_spec='$libname$release$shared_ext$major' 11591 ;; 11592 11593aix[4-9]*) 11594 version_type=linux # correct to gnu/linux during the next big refactor 11595 need_lib_prefix=no 11596 need_version=no 11597 hardcode_into_libs=yes 11598 if test ia64 = "$host_cpu"; then 11599 # AIX 5 supports IA64 11600 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11601 shlibpath_var=LD_LIBRARY_PATH 11602 else 11603 # With GCC up to 2.95.x, collect2 would create an import file 11604 # for dependence libraries. The import file would start with 11605 # the line '#! .'. This would cause the generated library to 11606 # depend on '.', always an invalid library. This was fixed in 11607 # development snapshots of GCC prior to 3.0. 11608 case $host_os in 11609 aix4 | aix4.[01] | aix4.[01].*) 11610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11611 echo ' yes ' 11612 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11613 : 11614 else 11615 can_build_shared=no 11616 fi 11617 ;; 11618 esac 11619 # Using Import Files as archive members, it is possible to support 11620 # filename-based versioning of shared library archives on AIX. While 11621 # this would work for both with and without runtime linking, it will 11622 # prevent static linking of such archives. So we do filename-based 11623 # shared library versioning with .so extension only, which is used 11624 # when both runtime linking and shared linking is enabled. 11625 # Unfortunately, runtime linking may impact performance, so we do 11626 # not want this to be the default eventually. Also, we use the 11627 # versioned .so libs for executables only if there is the -brtl 11628 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11629 # To allow for filename-based versioning support, we need to create 11630 # libNAME.so.V as an archive file, containing: 11631 # *) an Import File, referring to the versioned filename of the 11632 # archive as well as the shared archive member, telling the 11633 # bitwidth (32 or 64) of that shared object, and providing the 11634 # list of exported symbols of that shared object, eventually 11635 # decorated with the 'weak' keyword 11636 # *) the shared object with the F_LOADONLY flag set, to really avoid 11637 # it being seen by the linker. 11638 # At run time we better use the real file rather than another symlink, 11639 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11640 11641 case $with_aix_soname,$aix_use_runtimelinking in 11642 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11643 # soname into executable. Probably we can add versioning support to 11644 # collect2, so additional links can be useful in future. 11645 aix,yes) # traditional libtool 11646 dynamic_linker='AIX unversionable lib.so' 11647 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11648 # instead of lib<name>.a to let people know that these are not 11649 # typical AIX shared libraries. 11650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11651 ;; 11652 aix,no) # traditional AIX only 11653 dynamic_linker='AIX lib.a(lib.so.V)' 11654 # We preserve .a as extension for shared libraries through AIX4.2 11655 # and later when we are not doing run time linking. 11656 library_names_spec='$libname$release.a $libname.a' 11657 soname_spec='$libname$release$shared_ext$major' 11658 ;; 11659 svr4,*) # full svr4 only 11660 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11661 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11662 # We do not specify a path in Import Files, so LIBPATH fires. 11663 shlibpath_overrides_runpath=yes 11664 ;; 11665 *,yes) # both, prefer svr4 11666 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11667 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11668 # unpreferred sharedlib libNAME.a needs extra handling 11669 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"' 11670 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"' 11671 # We do not specify a path in Import Files, so LIBPATH fires. 11672 shlibpath_overrides_runpath=yes 11673 ;; 11674 *,no) # both, prefer aix 11675 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11676 library_names_spec='$libname$release.a $libname.a' 11677 soname_spec='$libname$release$shared_ext$major' 11678 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11679 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)' 11680 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"' 11681 ;; 11682 esac 11683 shlibpath_var=LIBPATH 11684 fi 11685 ;; 11686 11687amigaos*) 11688 case $host_cpu in 11689 powerpc) 11690 # Since July 2007 AmigaOS4 officially supports .so libraries. 11691 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11693 ;; 11694 m68k) 11695 library_names_spec='$libname.ixlibrary $libname.a' 11696 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11697 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' 11698 ;; 11699 esac 11700 ;; 11701 11702beos*) 11703 library_names_spec='$libname$shared_ext' 11704 dynamic_linker="$host_os ld.so" 11705 shlibpath_var=LIBRARY_PATH 11706 ;; 11707 11708bsdi[45]*) 11709 version_type=linux # correct to gnu/linux during the next big refactor 11710 need_version=no 11711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11712 soname_spec='$libname$release$shared_ext$major' 11713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11714 shlibpath_var=LD_LIBRARY_PATH 11715 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11716 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11717 # the default ld.so.conf also contains /usr/contrib/lib and 11718 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11719 # libtool to hard-code these into programs 11720 ;; 11721 11722cygwin* | mingw* | pw32* | cegcc*) 11723 version_type=windows 11724 shrext_cmds=.dll 11725 need_version=no 11726 need_lib_prefix=no 11727 11728 case $GCC,$cc_basename in 11729 yes,*) 11730 # gcc 11731 library_names_spec='$libname.dll.a' 11732 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11733 postinstall_cmds='base_file=`basename \$file`~ 11734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11735 dldir=$destdir/`dirname \$dlpath`~ 11736 test -d \$dldir || mkdir -p \$dldir~ 11737 $install_prog $dir/$dlname \$dldir/$dlname~ 11738 chmod a+x \$dldir/$dlname~ 11739 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11740 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11741 fi' 11742 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11743 dlpath=$dir/\$dldll~ 11744 $RM \$dlpath' 11745 shlibpath_overrides_runpath=yes 11746 11747 case $host_os in 11748 cygwin*) 11749 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11750 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11751 11752 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11753 ;; 11754 mingw* | cegcc*) 11755 # MinGW DLLs use traditional 'lib' prefix 11756 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11757 ;; 11758 pw32*) 11759 # pw32 DLLs use 'pw' prefix rather than 'lib' 11760 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11761 ;; 11762 esac 11763 dynamic_linker='Win32 ld.exe' 11764 ;; 11765 11766 *,cl* | *,icl*) 11767 # Native MSVC or ICC 11768 libname_spec='$name' 11769 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11770 library_names_spec='$libname.dll.lib' 11771 11772 case $build_os in 11773 mingw*) 11774 sys_lib_search_path_spec= 11775 lt_save_ifs=$IFS 11776 IFS=';' 11777 for lt_path in $LIB 11778 do 11779 IFS=$lt_save_ifs 11780 # Let DOS variable expansion print the short 8.3 style file name. 11781 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11782 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11783 done 11784 IFS=$lt_save_ifs 11785 # Convert to MSYS style. 11786 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11787 ;; 11788 cygwin*) 11789 # Convert to unix form, then to dos form, then back to unix form 11790 # but this time dos style (no spaces!) so that the unix form looks 11791 # like /cygdrive/c/PROGRA~1:/cygdr... 11792 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11793 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11794 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11795 ;; 11796 *) 11797 sys_lib_search_path_spec=$LIB 11798 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11799 # It is most probably a Windows format PATH. 11800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11801 else 11802 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11803 fi 11804 # FIXME: find the short name or the path components, as spaces are 11805 # common. (e.g. "Program Files" -> "PROGRA~1") 11806 ;; 11807 esac 11808 11809 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11810 postinstall_cmds='base_file=`basename \$file`~ 11811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11812 dldir=$destdir/`dirname \$dlpath`~ 11813 test -d \$dldir || mkdir -p \$dldir~ 11814 $install_prog $dir/$dlname \$dldir/$dlname' 11815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11816 dlpath=$dir/\$dldll~ 11817 $RM \$dlpath' 11818 shlibpath_overrides_runpath=yes 11819 dynamic_linker='Win32 link.exe' 11820 ;; 11821 11822 *) 11823 # Assume MSVC and ICC wrapper 11824 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11825 dynamic_linker='Win32 ld.exe' 11826 ;; 11827 esac 11828 # FIXME: first we should search . and the directory the executable is in 11829 shlibpath_var=PATH 11830 ;; 11831 11832darwin* | rhapsody*) 11833 dynamic_linker="$host_os dyld" 11834 version_type=darwin 11835 need_lib_prefix=no 11836 need_version=no 11837 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 11838 soname_spec='$libname$release$major$shared_ext' 11839 shlibpath_overrides_runpath=yes 11840 shlibpath_var=DYLD_LIBRARY_PATH 11841 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 11842 11843 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11845 ;; 11846 11847dgux*) 11848 version_type=linux # correct to gnu/linux during the next big refactor 11849 need_lib_prefix=no 11850 need_version=no 11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11852 soname_spec='$libname$release$shared_ext$major' 11853 shlibpath_var=LD_LIBRARY_PATH 11854 ;; 11855 11856freebsd* | dragonfly* | midnightbsd*) 11857 # DragonFly does not have aout. When/if they implement a new 11858 # versioning mechanism, adjust this. 11859 if test -x /usr/bin/objformat; then 11860 objformat=`/usr/bin/objformat` 11861 else 11862 case $host_os in 11863 freebsd[23].*) objformat=aout ;; 11864 *) objformat=elf ;; 11865 esac 11866 fi 11867 # Handle Gentoo/FreeBSD as it was Linux 11868 case $host_vendor in 11869 gentoo) 11870 version_type=linux ;; 11871 *) 11872 version_type=freebsd-$objformat ;; 11873 esac 11874 11875 case $version_type in 11876 freebsd-elf*) 11877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11878 soname_spec='$libname$release$shared_ext$major' 11879 need_version=no 11880 need_lib_prefix=no 11881 ;; 11882 freebsd-*) 11883 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11884 need_version=yes 11885 ;; 11886 linux) 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 need_lib_prefix=no 11890 need_version=no 11891 ;; 11892 esac 11893 shlibpath_var=LD_LIBRARY_PATH 11894 case $host_os in 11895 freebsd2.*) 11896 shlibpath_overrides_runpath=yes 11897 ;; 11898 freebsd3.[01]* | freebsdelf3.[01]*) 11899 shlibpath_overrides_runpath=yes 11900 hardcode_into_libs=yes 11901 ;; 11902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11904 shlibpath_overrides_runpath=no 11905 hardcode_into_libs=yes 11906 ;; 11907 *) # from 4.6 on, and DragonFly 11908 shlibpath_overrides_runpath=yes 11909 hardcode_into_libs=yes 11910 ;; 11911 esac 11912 ;; 11913 11914haiku*) 11915 version_type=linux # correct to gnu/linux during the next big refactor 11916 need_lib_prefix=no 11917 need_version=no 11918 dynamic_linker="$host_os runtime_loader" 11919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11920 soname_spec='$libname$release$shared_ext$major' 11921 shlibpath_var=LIBRARY_PATH 11922 shlibpath_overrides_runpath=no 11923 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11924 hardcode_into_libs=yes 11925 ;; 11926 11927hpux9* | hpux10* | hpux11*) 11928 # Give a soname corresponding to the major version so that dld.sl refuses to 11929 # link against other versions. 11930 version_type=sunos 11931 need_lib_prefix=no 11932 need_version=no 11933 case $host_cpu in 11934 ia64*) 11935 shrext_cmds='.so' 11936 hardcode_into_libs=yes 11937 dynamic_linker="$host_os dld.so" 11938 shlibpath_var=LD_LIBRARY_PATH 11939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11941 soname_spec='$libname$release$shared_ext$major' 11942 if test 32 = "$HPUX_IA64_MODE"; then 11943 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11944 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11945 else 11946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11947 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11948 fi 11949 ;; 11950 hppa*64*) 11951 shrext_cmds='.sl' 11952 hardcode_into_libs=yes 11953 dynamic_linker="$host_os dld.sl" 11954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11957 soname_spec='$libname$release$shared_ext$major' 11958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11960 ;; 11961 *) 11962 shrext_cmds='.sl' 11963 dynamic_linker="$host_os dld.sl" 11964 shlibpath_var=SHLIB_PATH 11965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11967 soname_spec='$libname$release$shared_ext$major' 11968 ;; 11969 esac 11970 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11971 postinstall_cmds='chmod 555 $lib' 11972 # or fails outright, so override atomically: 11973 install_override_mode=555 11974 ;; 11975 11976interix[3-9]*) 11977 version_type=linux # correct to gnu/linux during the next big refactor 11978 need_lib_prefix=no 11979 need_version=no 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 soname_spec='$libname$release$shared_ext$major' 11982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11983 shlibpath_var=LD_LIBRARY_PATH 11984 shlibpath_overrides_runpath=no 11985 hardcode_into_libs=yes 11986 ;; 11987 11988irix5* | irix6* | nonstopux*) 11989 case $host_os in 11990 nonstopux*) version_type=nonstopux ;; 11991 *) 11992 if test yes = "$lt_cv_prog_gnu_ld"; then 11993 version_type=linux # correct to gnu/linux during the next big refactor 11994 else 11995 version_type=irix 11996 fi ;; 11997 esac 11998 need_lib_prefix=no 11999 need_version=no 12000 soname_spec='$libname$release$shared_ext$major' 12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12002 case $host_os in 12003 irix5* | nonstopux*) 12004 libsuff= shlibsuff= 12005 ;; 12006 *) 12007 case $LD in # libtool.m4 will add one of these switches to LD 12008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12009 libsuff= shlibsuff= libmagic=32-bit;; 12010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12011 libsuff=32 shlibsuff=N32 libmagic=N32;; 12012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12013 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12014 *) libsuff= shlibsuff= libmagic=never-match;; 12015 esac 12016 ;; 12017 esac 12018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12019 shlibpath_overrides_runpath=no 12020 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12021 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12022 hardcode_into_libs=yes 12023 ;; 12024 12025# No shared lib support for Linux oldld, aout, or coff. 12026linux*oldld* | linux*aout* | linux*coff*) 12027 dynamic_linker=no 12028 ;; 12029 12030linux*android*) 12031 version_type=none # Android doesn't support versioned libraries. 12032 need_lib_prefix=no 12033 need_version=no 12034 library_names_spec='$libname$release$shared_ext' 12035 soname_spec='$libname$release$shared_ext' 12036 finish_cmds= 12037 shlibpath_var=LD_LIBRARY_PATH 12038 shlibpath_overrides_runpath=yes 12039 12040 # This implies no fast_install, which is unacceptable. 12041 # Some rework will be needed to allow for fast_install 12042 # before this can be enabled. 12043 hardcode_into_libs=yes 12044 12045 dynamic_linker='Android linker' 12046 # Don't embed -rpath directories since the linker doesn't support them. 12047 hardcode_libdir_flag_spec='-L$libdir' 12048 ;; 12049 12050# This must be glibc/ELF. 12051linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12052 version_type=linux # correct to gnu/linux during the next big refactor 12053 need_lib_prefix=no 12054 need_version=no 12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12056 soname_spec='$libname$release$shared_ext$major' 12057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12058 shlibpath_var=LD_LIBRARY_PATH 12059 shlibpath_overrides_runpath=no 12060 12061 # Some binutils ld are patched to set DT_RUNPATH 12062 if test ${lt_cv_shlibpath_overrides_runpath+y} 12063then : 12064 printf %s "(cached) " >&6 12065else $as_nop 12066 lt_cv_shlibpath_overrides_runpath=no 12067 save_LDFLAGS=$LDFLAGS 12068 save_libdir=$libdir 12069 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12070 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12072/* end confdefs.h. */ 12073 12074int 12075main (void) 12076{ 12077 12078 ; 12079 return 0; 12080} 12081_ACEOF 12082if ac_fn_c_try_link "$LINENO" 12083then : 12084 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12085then : 12086 lt_cv_shlibpath_overrides_runpath=yes 12087fi 12088fi 12089rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12090 conftest$ac_exeext conftest.$ac_ext 12091 LDFLAGS=$save_LDFLAGS 12092 libdir=$save_libdir 12093 12094fi 12095 12096 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12097 12098 # This implies no fast_install, which is unacceptable. 12099 # Some rework will be needed to allow for fast_install 12100 # before this can be enabled. 12101 hardcode_into_libs=yes 12102 12103 # Ideally, we could use ldconfig to report *all* directores which are 12104 # searched for libraries, however this is still not possible. Aside from not 12105 # being certain /sbin/ldconfig is available, command 12106 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12107 # even though it is searched at run-time. Try to do the best guess by 12108 # appending ld.so.conf contents (and includes) to the search path. 12109 if test -f /etc/ld.so.conf; then 12110 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' ' '` 12111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12112 fi 12113 12114 # We used to test for /lib/ld.so.1 and disable shared libraries on 12115 # powerpc, because MkLinux only supported shared libraries with the 12116 # GNU dynamic linker. Since this was broken with cross compilers, 12117 # most powerpc-linux boxes support dynamic linking these days and 12118 # people can always --disable-shared, the test was removed, and we 12119 # assume the GNU/Linux dynamic linker is in use. 12120 dynamic_linker='GNU/Linux ld.so' 12121 ;; 12122 12123netbsd*) 12124 version_type=sunos 12125 need_lib_prefix=no 12126 need_version=no 12127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12128 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12130 dynamic_linker='NetBSD (a.out) ld.so' 12131 else 12132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12133 soname_spec='$libname$release$shared_ext$major' 12134 dynamic_linker='NetBSD ld.elf_so' 12135 fi 12136 shlibpath_var=LD_LIBRARY_PATH 12137 shlibpath_overrides_runpath=yes 12138 hardcode_into_libs=yes 12139 ;; 12140 12141newsos6) 12142 version_type=linux # correct to gnu/linux during the next big refactor 12143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12144 shlibpath_var=LD_LIBRARY_PATH 12145 shlibpath_overrides_runpath=yes 12146 ;; 12147 12148*nto* | *qnx*) 12149 version_type=qnx 12150 need_lib_prefix=no 12151 need_version=no 12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12153 soname_spec='$libname$release$shared_ext$major' 12154 shlibpath_var=LD_LIBRARY_PATH 12155 shlibpath_overrides_runpath=no 12156 hardcode_into_libs=yes 12157 dynamic_linker='ldqnx.so' 12158 ;; 12159 12160openbsd* | bitrig*) 12161 version_type=sunos 12162 sys_lib_dlsearch_path_spec=/usr/lib 12163 need_lib_prefix=no 12164 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12165 need_version=no 12166 else 12167 need_version=yes 12168 fi 12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12171 shlibpath_var=LD_LIBRARY_PATH 12172 shlibpath_overrides_runpath=yes 12173 ;; 12174 12175os2*) 12176 libname_spec='$name' 12177 version_type=windows 12178 shrext_cmds=.dll 12179 need_version=no 12180 need_lib_prefix=no 12181 # OS/2 can only load a DLL with a base name of 8 characters or less. 12182 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12183 v=$($ECHO $release$versuffix | tr -d .-); 12184 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12185 $ECHO $n$v`$shared_ext' 12186 library_names_spec='${libname}_dll.$libext' 12187 dynamic_linker='OS/2 ld.exe' 12188 shlibpath_var=BEGINLIBPATH 12189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12191 postinstall_cmds='base_file=`basename \$file`~ 12192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12193 dldir=$destdir/`dirname \$dlpath`~ 12194 test -d \$dldir || mkdir -p \$dldir~ 12195 $install_prog $dir/$dlname \$dldir/$dlname~ 12196 chmod a+x \$dldir/$dlname~ 12197 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12198 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12199 fi' 12200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12201 dlpath=$dir/\$dldll~ 12202 $RM \$dlpath' 12203 ;; 12204 12205osf3* | osf4* | osf5*) 12206 version_type=osf 12207 need_lib_prefix=no 12208 need_version=no 12209 soname_spec='$libname$release$shared_ext$major' 12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12211 shlibpath_var=LD_LIBRARY_PATH 12212 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12213 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12214 ;; 12215 12216rdos*) 12217 dynamic_linker=no 12218 ;; 12219 12220solaris*) 12221 version_type=linux # correct to gnu/linux during the next big refactor 12222 need_lib_prefix=no 12223 need_version=no 12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12225 soname_spec='$libname$release$shared_ext$major' 12226 shlibpath_var=LD_LIBRARY_PATH 12227 shlibpath_overrides_runpath=yes 12228 hardcode_into_libs=yes 12229 # ldd complains unless libraries are executable 12230 postinstall_cmds='chmod +x $lib' 12231 ;; 12232 12233sunos4*) 12234 version_type=sunos 12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12237 shlibpath_var=LD_LIBRARY_PATH 12238 shlibpath_overrides_runpath=yes 12239 if test yes = "$with_gnu_ld"; then 12240 need_lib_prefix=no 12241 fi 12242 need_version=yes 12243 ;; 12244 12245sysv4 | sysv4.3*) 12246 version_type=linux # correct to gnu/linux during the next big refactor 12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12248 soname_spec='$libname$release$shared_ext$major' 12249 shlibpath_var=LD_LIBRARY_PATH 12250 case $host_vendor in 12251 sni) 12252 shlibpath_overrides_runpath=no 12253 need_lib_prefix=no 12254 runpath_var=LD_RUN_PATH 12255 ;; 12256 siemens) 12257 need_lib_prefix=no 12258 ;; 12259 motorola) 12260 need_lib_prefix=no 12261 need_version=no 12262 shlibpath_overrides_runpath=no 12263 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12264 ;; 12265 esac 12266 ;; 12267 12268sysv4*MP*) 12269 if test -d /usr/nec; then 12270 version_type=linux # correct to gnu/linux during the next big refactor 12271 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12272 soname_spec='$libname$shared_ext.$major' 12273 shlibpath_var=LD_LIBRARY_PATH 12274 fi 12275 ;; 12276 12277sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12278 version_type=sco 12279 need_lib_prefix=no 12280 need_version=no 12281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12282 soname_spec='$libname$release$shared_ext$major' 12283 shlibpath_var=LD_LIBRARY_PATH 12284 shlibpath_overrides_runpath=yes 12285 hardcode_into_libs=yes 12286 if test yes = "$with_gnu_ld"; then 12287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12288 else 12289 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12290 case $host_os in 12291 sco3.2v5*) 12292 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12293 ;; 12294 esac 12295 fi 12296 sys_lib_dlsearch_path_spec='/usr/lib' 12297 ;; 12298 12299tpf*) 12300 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12301 version_type=linux # correct to gnu/linux during the next big refactor 12302 need_lib_prefix=no 12303 need_version=no 12304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12305 shlibpath_var=LD_LIBRARY_PATH 12306 shlibpath_overrides_runpath=no 12307 hardcode_into_libs=yes 12308 ;; 12309 12310uts4*) 12311 version_type=linux # correct to gnu/linux during the next big refactor 12312 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12313 soname_spec='$libname$release$shared_ext$major' 12314 shlibpath_var=LD_LIBRARY_PATH 12315 ;; 12316 12317*) 12318 dynamic_linker=no 12319 ;; 12320esac 12321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12322printf "%s\n" "$dynamic_linker" >&6; } 12323test no = "$dynamic_linker" && can_build_shared=no 12324 12325variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12326if test yes = "$GCC"; then 12327 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12328fi 12329 12330if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12331 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12332fi 12333 12334if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12335 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12336fi 12337 12338# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12339configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12340 12341# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12342func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12343 12344# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12345configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12444printf %s "checking how to hardcode library paths into programs... " >&6; } 12445hardcode_action= 12446if test -n "$hardcode_libdir_flag_spec" || 12447 test -n "$runpath_var" || 12448 test yes = "$hardcode_automatic"; then 12449 12450 # We can hardcode non-existent directories. 12451 if test no != "$hardcode_direct" && 12452 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12453 # have to relink, otherwise we might link with an installed library 12454 # when we should be linking with a yet-to-be-installed one 12455 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12456 test no != "$hardcode_minus_L"; then 12457 # Linking always hardcodes the temporary library directory. 12458 hardcode_action=relink 12459 else 12460 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12461 hardcode_action=immediate 12462 fi 12463else 12464 # We cannot hardcode anything, or else we can only hardcode existing 12465 # directories. 12466 hardcode_action=unsupported 12467fi 12468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12469printf "%s\n" "$hardcode_action" >&6; } 12470 12471if test relink = "$hardcode_action" || 12472 test yes = "$inherit_rpath"; then 12473 # Fast installation is not supported 12474 enable_fast_install=no 12475elif test yes = "$shlibpath_overrides_runpath" || 12476 test no = "$enable_shared"; then 12477 # Fast installation is not necessary 12478 enable_fast_install=needless 12479fi 12480 12481 12482 12483 12484 12485 12486 if test yes != "$enable_dlopen"; then 12487 enable_dlopen=unknown 12488 enable_dlopen_self=unknown 12489 enable_dlopen_self_static=unknown 12490else 12491 lt_cv_dlopen=no 12492 lt_cv_dlopen_libs= 12493 12494 case $host_os in 12495 beos*) 12496 lt_cv_dlopen=load_add_on 12497 lt_cv_dlopen_libs= 12498 lt_cv_dlopen_self=yes 12499 ;; 12500 12501 mingw* | pw32* | cegcc*) 12502 lt_cv_dlopen=LoadLibrary 12503 lt_cv_dlopen_libs= 12504 ;; 12505 12506 cygwin*) 12507 lt_cv_dlopen=dlopen 12508 lt_cv_dlopen_libs= 12509 ;; 12510 12511 darwin*) 12512 # if libdl is installed we need to link against it 12513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12514printf %s "checking for dlopen in -ldl... " >&6; } 12515if test ${ac_cv_lib_dl_dlopen+y} 12516then : 12517 printf %s "(cached) " >&6 12518else $as_nop 12519 ac_check_lib_save_LIBS=$LIBS 12520LIBS="-ldl $LIBS" 12521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12522/* end confdefs.h. */ 12523 12524/* Override any GCC internal prototype to avoid an error. 12525 Use char because int might match the return type of a GCC 12526 builtin and then its argument prototype would still apply. 12527 The 'extern "C"' is for builds by C++ compilers; 12528 although this is not generally supported in C code supporting it here 12529 has little cost and some practical benefit (sr 110532). */ 12530#ifdef __cplusplus 12531extern "C" 12532#endif 12533char dlopen (void); 12534int 12535main (void) 12536{ 12537return dlopen (); 12538 ; 12539 return 0; 12540} 12541_ACEOF 12542if ac_fn_c_try_link "$LINENO" 12543then : 12544 ac_cv_lib_dl_dlopen=yes 12545else $as_nop 12546 ac_cv_lib_dl_dlopen=no 12547fi 12548rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12549 conftest$ac_exeext conftest.$ac_ext 12550LIBS=$ac_check_lib_save_LIBS 12551fi 12552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12553printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12554if test "x$ac_cv_lib_dl_dlopen" = xyes 12555then : 12556 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12557else $as_nop 12558 12559 lt_cv_dlopen=dyld 12560 lt_cv_dlopen_libs= 12561 lt_cv_dlopen_self=yes 12562 12563fi 12564 12565 ;; 12566 12567 tpf*) 12568 # Don't try to run any link tests for TPF. We know it's impossible 12569 # because TPF is a cross-compiler, and we know how we open DSOs. 12570 lt_cv_dlopen=dlopen 12571 lt_cv_dlopen_libs= 12572 lt_cv_dlopen_self=no 12573 ;; 12574 12575 *) 12576 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12577if test "x$ac_cv_func_shl_load" = xyes 12578then : 12579 lt_cv_dlopen=shl_load 12580else $as_nop 12581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12582printf %s "checking for shl_load in -ldld... " >&6; } 12583if test ${ac_cv_lib_dld_shl_load+y} 12584then : 12585 printf %s "(cached) " >&6 12586else $as_nop 12587 ac_check_lib_save_LIBS=$LIBS 12588LIBS="-ldld $LIBS" 12589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12590/* end confdefs.h. */ 12591 12592/* Override any GCC internal prototype to avoid an error. 12593 Use char because int might match the return type of a GCC 12594 builtin and then its argument prototype would still apply. 12595 The 'extern "C"' is for builds by C++ compilers; 12596 although this is not generally supported in C code supporting it here 12597 has little cost and some practical benefit (sr 110532). */ 12598#ifdef __cplusplus 12599extern "C" 12600#endif 12601char shl_load (void); 12602int 12603main (void) 12604{ 12605return shl_load (); 12606 ; 12607 return 0; 12608} 12609_ACEOF 12610if ac_fn_c_try_link "$LINENO" 12611then : 12612 ac_cv_lib_dld_shl_load=yes 12613else $as_nop 12614 ac_cv_lib_dld_shl_load=no 12615fi 12616rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12617 conftest$ac_exeext conftest.$ac_ext 12618LIBS=$ac_check_lib_save_LIBS 12619fi 12620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12621printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12622if test "x$ac_cv_lib_dld_shl_load" = xyes 12623then : 12624 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12625else $as_nop 12626 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12627if test "x$ac_cv_func_dlopen" = xyes 12628then : 12629 lt_cv_dlopen=dlopen 12630else $as_nop 12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12632printf %s "checking for dlopen in -ldl... " >&6; } 12633if test ${ac_cv_lib_dl_dlopen+y} 12634then : 12635 printf %s "(cached) " >&6 12636else $as_nop 12637 ac_check_lib_save_LIBS=$LIBS 12638LIBS="-ldl $LIBS" 12639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12640/* end confdefs.h. */ 12641 12642/* Override any GCC internal prototype to avoid an error. 12643 Use char because int might match the return type of a GCC 12644 builtin and then its argument prototype would still apply. 12645 The 'extern "C"' is for builds by C++ compilers; 12646 although this is not generally supported in C code supporting it here 12647 has little cost and some practical benefit (sr 110532). */ 12648#ifdef __cplusplus 12649extern "C" 12650#endif 12651char dlopen (void); 12652int 12653main (void) 12654{ 12655return dlopen (); 12656 ; 12657 return 0; 12658} 12659_ACEOF 12660if ac_fn_c_try_link "$LINENO" 12661then : 12662 ac_cv_lib_dl_dlopen=yes 12663else $as_nop 12664 ac_cv_lib_dl_dlopen=no 12665fi 12666rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12667 conftest$ac_exeext conftest.$ac_ext 12668LIBS=$ac_check_lib_save_LIBS 12669fi 12670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12671printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12672if test "x$ac_cv_lib_dl_dlopen" = xyes 12673then : 12674 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12675else $as_nop 12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12677printf %s "checking for dlopen in -lsvld... " >&6; } 12678if test ${ac_cv_lib_svld_dlopen+y} 12679then : 12680 printf %s "(cached) " >&6 12681else $as_nop 12682 ac_check_lib_save_LIBS=$LIBS 12683LIBS="-lsvld $LIBS" 12684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685/* end confdefs.h. */ 12686 12687/* Override any GCC internal prototype to avoid an error. 12688 Use char because int might match the return type of a GCC 12689 builtin and then its argument prototype would still apply. 12690 The 'extern "C"' is for builds by C++ compilers; 12691 although this is not generally supported in C code supporting it here 12692 has little cost and some practical benefit (sr 110532). */ 12693#ifdef __cplusplus 12694extern "C" 12695#endif 12696char dlopen (void); 12697int 12698main (void) 12699{ 12700return dlopen (); 12701 ; 12702 return 0; 12703} 12704_ACEOF 12705if ac_fn_c_try_link "$LINENO" 12706then : 12707 ac_cv_lib_svld_dlopen=yes 12708else $as_nop 12709 ac_cv_lib_svld_dlopen=no 12710fi 12711rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12712 conftest$ac_exeext conftest.$ac_ext 12713LIBS=$ac_check_lib_save_LIBS 12714fi 12715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12716printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12717if test "x$ac_cv_lib_svld_dlopen" = xyes 12718then : 12719 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12720else $as_nop 12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12722printf %s "checking for dld_link in -ldld... " >&6; } 12723if test ${ac_cv_lib_dld_dld_link+y} 12724then : 12725 printf %s "(cached) " >&6 12726else $as_nop 12727 ac_check_lib_save_LIBS=$LIBS 12728LIBS="-ldld $LIBS" 12729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12730/* end confdefs.h. */ 12731 12732/* Override any GCC internal prototype to avoid an error. 12733 Use char because int might match the return type of a GCC 12734 builtin and then its argument prototype would still apply. 12735 The 'extern "C"' is for builds by C++ compilers; 12736 although this is not generally supported in C code supporting it here 12737 has little cost and some practical benefit (sr 110532). */ 12738#ifdef __cplusplus 12739extern "C" 12740#endif 12741char dld_link (void); 12742int 12743main (void) 12744{ 12745return dld_link (); 12746 ; 12747 return 0; 12748} 12749_ACEOF 12750if ac_fn_c_try_link "$LINENO" 12751then : 12752 ac_cv_lib_dld_dld_link=yes 12753else $as_nop 12754 ac_cv_lib_dld_dld_link=no 12755fi 12756rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12757 conftest$ac_exeext conftest.$ac_ext 12758LIBS=$ac_check_lib_save_LIBS 12759fi 12760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12761printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12762if test "x$ac_cv_lib_dld_dld_link" = xyes 12763then : 12764 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12765fi 12766 12767 12768fi 12769 12770 12771fi 12772 12773 12774fi 12775 12776 12777fi 12778 12779 12780fi 12781 12782 ;; 12783 esac 12784 12785 if test no = "$lt_cv_dlopen"; then 12786 enable_dlopen=no 12787 else 12788 enable_dlopen=yes 12789 fi 12790 12791 case $lt_cv_dlopen in 12792 dlopen) 12793 save_CPPFLAGS=$CPPFLAGS 12794 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12795 12796 save_LDFLAGS=$LDFLAGS 12797 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12798 12799 save_LIBS=$LIBS 12800 LIBS="$lt_cv_dlopen_libs $LIBS" 12801 12802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12803printf %s "checking whether a program can dlopen itself... " >&6; } 12804if test ${lt_cv_dlopen_self+y} 12805then : 12806 printf %s "(cached) " >&6 12807else $as_nop 12808 if test yes = "$cross_compiling"; then : 12809 lt_cv_dlopen_self=cross 12810else 12811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12812 lt_status=$lt_dlunknown 12813 cat > conftest.$ac_ext <<_LT_EOF 12814#line $LINENO "configure" 12815#include "confdefs.h" 12816 12817#if HAVE_DLFCN_H 12818#include <dlfcn.h> 12819#endif 12820 12821#include <stdio.h> 12822 12823#ifdef RTLD_GLOBAL 12824# define LT_DLGLOBAL RTLD_GLOBAL 12825#else 12826# ifdef DL_GLOBAL 12827# define LT_DLGLOBAL DL_GLOBAL 12828# else 12829# define LT_DLGLOBAL 0 12830# endif 12831#endif 12832 12833/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12834 find out it does not work in some platform. */ 12835#ifndef LT_DLLAZY_OR_NOW 12836# ifdef RTLD_LAZY 12837# define LT_DLLAZY_OR_NOW RTLD_LAZY 12838# else 12839# ifdef DL_LAZY 12840# define LT_DLLAZY_OR_NOW DL_LAZY 12841# else 12842# ifdef RTLD_NOW 12843# define LT_DLLAZY_OR_NOW RTLD_NOW 12844# else 12845# ifdef DL_NOW 12846# define LT_DLLAZY_OR_NOW DL_NOW 12847# else 12848# define LT_DLLAZY_OR_NOW 0 12849# endif 12850# endif 12851# endif 12852# endif 12853#endif 12854 12855/* When -fvisibility=hidden is used, assume the code has been annotated 12856 correspondingly for the symbols needed. */ 12857#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12858int fnord () __attribute__((visibility("default"))); 12859#endif 12860 12861int fnord () { return 42; } 12862int main () 12863{ 12864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12865 int status = $lt_dlunknown; 12866 12867 if (self) 12868 { 12869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12870 else 12871 { 12872 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12873 else puts (dlerror ()); 12874 } 12875 /* dlclose (self); */ 12876 } 12877 else 12878 puts (dlerror ()); 12879 12880 return status; 12881} 12882_LT_EOF 12883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12884 (eval $ac_link) 2>&5 12885 ac_status=$? 12886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12887 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12888 (./conftest; exit; ) >&5 2>/dev/null 12889 lt_status=$? 12890 case x$lt_status in 12891 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12892 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12893 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12894 esac 12895 else : 12896 # compilation failed 12897 lt_cv_dlopen_self=no 12898 fi 12899fi 12900rm -fr conftest* 12901 12902 12903fi 12904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12905printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12906 12907 if test yes = "$lt_cv_dlopen_self"; then 12908 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12910printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12911if test ${lt_cv_dlopen_self_static+y} 12912then : 12913 printf %s "(cached) " >&6 12914else $as_nop 12915 if test yes = "$cross_compiling"; then : 12916 lt_cv_dlopen_self_static=cross 12917else 12918 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12919 lt_status=$lt_dlunknown 12920 cat > conftest.$ac_ext <<_LT_EOF 12921#line $LINENO "configure" 12922#include "confdefs.h" 12923 12924#if HAVE_DLFCN_H 12925#include <dlfcn.h> 12926#endif 12927 12928#include <stdio.h> 12929 12930#ifdef RTLD_GLOBAL 12931# define LT_DLGLOBAL RTLD_GLOBAL 12932#else 12933# ifdef DL_GLOBAL 12934# define LT_DLGLOBAL DL_GLOBAL 12935# else 12936# define LT_DLGLOBAL 0 12937# endif 12938#endif 12939 12940/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12941 find out it does not work in some platform. */ 12942#ifndef LT_DLLAZY_OR_NOW 12943# ifdef RTLD_LAZY 12944# define LT_DLLAZY_OR_NOW RTLD_LAZY 12945# else 12946# ifdef DL_LAZY 12947# define LT_DLLAZY_OR_NOW DL_LAZY 12948# else 12949# ifdef RTLD_NOW 12950# define LT_DLLAZY_OR_NOW RTLD_NOW 12951# else 12952# ifdef DL_NOW 12953# define LT_DLLAZY_OR_NOW DL_NOW 12954# else 12955# define LT_DLLAZY_OR_NOW 0 12956# endif 12957# endif 12958# endif 12959# endif 12960#endif 12961 12962/* When -fvisibility=hidden is used, assume the code has been annotated 12963 correspondingly for the symbols needed. */ 12964#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12965int fnord () __attribute__((visibility("default"))); 12966#endif 12967 12968int fnord () { return 42; } 12969int main () 12970{ 12971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12972 int status = $lt_dlunknown; 12973 12974 if (self) 12975 { 12976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12977 else 12978 { 12979 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12980 else puts (dlerror ()); 12981 } 12982 /* dlclose (self); */ 12983 } 12984 else 12985 puts (dlerror ()); 12986 12987 return status; 12988} 12989_LT_EOF 12990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12991 (eval $ac_link) 2>&5 12992 ac_status=$? 12993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12994 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12995 (./conftest; exit; ) >&5 2>/dev/null 12996 lt_status=$? 12997 case x$lt_status in 12998 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12999 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13000 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13001 esac 13002 else : 13003 # compilation failed 13004 lt_cv_dlopen_self_static=no 13005 fi 13006fi 13007rm -fr conftest* 13008 13009 13010fi 13011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13012printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13013 fi 13014 13015 CPPFLAGS=$save_CPPFLAGS 13016 LDFLAGS=$save_LDFLAGS 13017 LIBS=$save_LIBS 13018 ;; 13019 esac 13020 13021 case $lt_cv_dlopen_self in 13022 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13023 *) enable_dlopen_self=unknown ;; 13024 esac 13025 13026 case $lt_cv_dlopen_self_static in 13027 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13028 *) enable_dlopen_self_static=unknown ;; 13029 esac 13030fi 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048striplib= 13049old_striplib= 13050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13051printf %s "checking whether stripping libraries is possible... " >&6; } 13052if test -z "$STRIP"; then 13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13054printf "%s\n" "no" >&6; } 13055else 13056 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13057 old_striplib="$STRIP --strip-debug" 13058 striplib="$STRIP --strip-unneeded" 13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13060printf "%s\n" "yes" >&6; } 13061 else 13062 case $host_os in 13063 darwin*) 13064 # FIXME - insert some real tests, host_os isn't really good enough 13065 striplib="$STRIP -x" 13066 old_striplib="$STRIP -S" 13067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13068printf "%s\n" "yes" >&6; } 13069 ;; 13070 freebsd*) 13071 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13072 old_striplib="$STRIP --strip-debug" 13073 striplib="$STRIP --strip-unneeded" 13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13075printf "%s\n" "yes" >&6; } 13076 else 13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13078printf "%s\n" "no" >&6; } 13079 fi 13080 ;; 13081 *) 13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13083printf "%s\n" "no" >&6; } 13084 ;; 13085 esac 13086 fi 13087fi 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 # Report what library types will actually be built 13101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13102printf %s "checking if libtool supports shared libraries... " >&6; } 13103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13104printf "%s\n" "$can_build_shared" >&6; } 13105 13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13107printf %s "checking whether to build shared libraries... " >&6; } 13108 test no = "$can_build_shared" && enable_shared=no 13109 13110 # On AIX, shared libraries and static libraries use the same namespace, and 13111 # are all built from PIC. 13112 case $host_os in 13113 aix3*) 13114 test yes = "$enable_shared" && enable_static=no 13115 if test -n "$RANLIB"; then 13116 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13117 postinstall_cmds='$RANLIB $lib' 13118 fi 13119 ;; 13120 13121 aix[4-9]*) 13122 if test ia64 != "$host_cpu"; then 13123 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13124 yes,aix,yes) ;; # shared object as lib.so file only 13125 yes,svr4,*) ;; # shared object as lib.so archive member only 13126 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13127 esac 13128 fi 13129 ;; 13130 esac 13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13132printf "%s\n" "$enable_shared" >&6; } 13133 13134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13135printf %s "checking whether to build static libraries... " >&6; } 13136 # Make sure either enable_shared or enable_static is yes. 13137 test yes = "$enable_shared" || enable_static=yes 13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13139printf "%s\n" "$enable_static" >&6; } 13140 13141 13142 13143 13144fi 13145ac_ext=c 13146ac_cpp='$CPP $CPPFLAGS' 13147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13149ac_compiler_gnu=$ac_cv_c_compiler_gnu 13150 13151CC=$lt_save_CC 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 ac_config_commands="$ac_config_commands libtool" 13168 13169 13170 13171 13172# Only expand once: 13173 13174 13175 13176# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13190printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13191if test ${ac_cv_c_undeclared_builtin_options+y} 13192then : 13193 printf %s "(cached) " >&6 13194else $as_nop 13195 ac_save_CFLAGS=$CFLAGS 13196 ac_cv_c_undeclared_builtin_options='cannot detect' 13197 for ac_arg in '' -fno-builtin; do 13198 CFLAGS="$ac_save_CFLAGS $ac_arg" 13199 # This test program should *not* compile successfully. 13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13201/* end confdefs.h. */ 13202 13203int 13204main (void) 13205{ 13206(void) strchr; 13207 ; 13208 return 0; 13209} 13210_ACEOF 13211if ac_fn_c_try_compile "$LINENO" 13212then : 13213 13214else $as_nop 13215 # This test program should compile successfully. 13216 # No library function is consistently available on 13217 # freestanding implementations, so test against a dummy 13218 # declaration. Include always-available headers on the 13219 # off chance that they somehow elicit warnings. 13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13221/* end confdefs.h. */ 13222#include <float.h> 13223#include <limits.h> 13224#include <stdarg.h> 13225#include <stddef.h> 13226extern void ac_decl (int, char *); 13227 13228int 13229main (void) 13230{ 13231(void) ac_decl (0, (char *) 0); 13232 (void) ac_decl; 13233 13234 ; 13235 return 0; 13236} 13237_ACEOF 13238if ac_fn_c_try_compile "$LINENO" 13239then : 13240 if test x"$ac_arg" = x 13241then : 13242 ac_cv_c_undeclared_builtin_options='none needed' 13243else $as_nop 13244 ac_cv_c_undeclared_builtin_options=$ac_arg 13245fi 13246 break 13247fi 13248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13249fi 13250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13251 done 13252 CFLAGS=$ac_save_CFLAGS 13253 13254fi 13255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13256printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13257 case $ac_cv_c_undeclared_builtin_options in #( 13258 'cannot detect') : 13259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13260printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13261as_fn_error $? "cannot make $CC report undeclared builtins 13262See \`config.log' for more details" "$LINENO" 5; } ;; #( 13263 'none needed') : 13264 ac_c_undeclared_builtin_options='' ;; #( 13265 *) : 13266 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13267esac 13268 13269 13270 13271 13272 13273ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13274if test "x$ac_cv_have_decl___clang__" = xyes 13275then : 13276 CLANGCC="yes" 13277else $as_nop 13278 CLANGCC="no" 13279fi 13280ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13281if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13282then : 13283 INTELCC="yes" 13284else $as_nop 13285 INTELCC="no" 13286fi 13287ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13288if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13289then : 13290 SUNCC="yes" 13291else $as_nop 13292 SUNCC="no" 13293fi 13294 13295 13296 13297 13298 13299 13300 13301 13302if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13303 if test -n "$ac_tool_prefix"; then 13304 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13305set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13307printf %s "checking for $ac_word... " >&6; } 13308if test ${ac_cv_path_PKG_CONFIG+y} 13309then : 13310 printf %s "(cached) " >&6 13311else $as_nop 13312 case $PKG_CONFIG in 13313 [\\/]* | ?:[\\/]*) 13314 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13315 ;; 13316 *) 13317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13318for as_dir in $PATH 13319do 13320 IFS=$as_save_IFS 13321 case $as_dir in #((( 13322 '') as_dir=./ ;; 13323 */) ;; 13324 *) as_dir=$as_dir/ ;; 13325 esac 13326 for ac_exec_ext in '' $ac_executable_extensions; do 13327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13328 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13330 break 2 13331 fi 13332done 13333 done 13334IFS=$as_save_IFS 13335 13336 ;; 13337esac 13338fi 13339PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13340if test -n "$PKG_CONFIG"; then 13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13342printf "%s\n" "$PKG_CONFIG" >&6; } 13343else 13344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13345printf "%s\n" "no" >&6; } 13346fi 13347 13348 13349fi 13350if test -z "$ac_cv_path_PKG_CONFIG"; then 13351 ac_pt_PKG_CONFIG=$PKG_CONFIG 13352 # Extract the first word of "pkg-config", so it can be a program name with args. 13353set dummy pkg-config; ac_word=$2 13354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13355printf %s "checking for $ac_word... " >&6; } 13356if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13357then : 13358 printf %s "(cached) " >&6 13359else $as_nop 13360 case $ac_pt_PKG_CONFIG in 13361 [\\/]* | ?:[\\/]*) 13362 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13363 ;; 13364 *) 13365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13366for as_dir in $PATH 13367do 13368 IFS=$as_save_IFS 13369 case $as_dir in #((( 13370 '') as_dir=./ ;; 13371 */) ;; 13372 *) as_dir=$as_dir/ ;; 13373 esac 13374 for ac_exec_ext in '' $ac_executable_extensions; do 13375 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13376 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13378 break 2 13379 fi 13380done 13381 done 13382IFS=$as_save_IFS 13383 13384 ;; 13385esac 13386fi 13387ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13388if test -n "$ac_pt_PKG_CONFIG"; then 13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13390printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13391else 13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13393printf "%s\n" "no" >&6; } 13394fi 13395 13396 if test "x$ac_pt_PKG_CONFIG" = x; then 13397 PKG_CONFIG="" 13398 else 13399 case $cross_compiling:$ac_tool_warned in 13400yes:) 13401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13402printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13403ac_tool_warned=yes ;; 13404esac 13405 PKG_CONFIG=$ac_pt_PKG_CONFIG 13406 fi 13407else 13408 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13409fi 13410 13411fi 13412if test -n "$PKG_CONFIG"; then 13413 _pkg_min_version=0.9.0 13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13415printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13416 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13418printf "%s\n" "yes" >&6; } 13419 else 13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13421printf "%s\n" "no" >&6; } 13422 PKG_CONFIG="" 13423 fi 13424fi 13425 13426 13427 13428 13429 13430# Check whether --enable-selective-werror was given. 13431if test ${enable_selective_werror+y} 13432then : 13433 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13434else $as_nop 13435 SELECTIVE_WERROR=yes 13436fi 13437 13438 13439 13440 13441 13442# -v is too short to test reliably with XORG_TESTSET_CFLAG 13443if test "x$SUNCC" = "xyes"; then 13444 BASE_CFLAGS="-v" 13445else 13446 BASE_CFLAGS="" 13447fi 13448 13449# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463xorg_testset_save_CFLAGS="$CFLAGS" 13464 13465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13468printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13469if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13470then : 13471 printf %s "(cached) " >&6 13472else $as_nop 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474/* end confdefs.h. */ 13475int i; 13476_ACEOF 13477if ac_fn_c_try_compile "$LINENO" 13478then : 13479 xorg_cv_cc_flag_unknown_warning_option=yes 13480else $as_nop 13481 xorg_cv_cc_flag_unknown_warning_option=no 13482fi 13483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13484fi 13485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13486printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13488 CFLAGS="$xorg_testset_save_CFLAGS" 13489fi 13490 13491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13494 fi 13495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13497printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13498if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13499then : 13500 printf %s "(cached) " >&6 13501else $as_nop 13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13503/* end confdefs.h. */ 13504int i; 13505_ACEOF 13506if ac_fn_c_try_compile "$LINENO" 13507then : 13508 xorg_cv_cc_flag_unused_command_line_argument=yes 13509else $as_nop 13510 xorg_cv_cc_flag_unused_command_line_argument=no 13511fi 13512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13513fi 13514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13517 CFLAGS="$xorg_testset_save_CFLAGS" 13518fi 13519 13520found="no" 13521 13522 if test $found = "no" ; then 13523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13525 fi 13526 13527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13529 fi 13530 13531 CFLAGS="$CFLAGS -Wall" 13532 13533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13534printf %s "checking if $CC supports -Wall... " >&6; } 13535 cacheid=xorg_cv_cc_flag__Wall 13536 if eval test \${$cacheid+y} 13537then : 13538 printf %s "(cached) " >&6 13539else $as_nop 13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13541/* end confdefs.h. */ 13542int i; 13543int 13544main (void) 13545{ 13546 13547 ; 13548 return 0; 13549} 13550_ACEOF 13551if ac_fn_c_try_link "$LINENO" 13552then : 13553 eval $cacheid=yes 13554else $as_nop 13555 eval $cacheid=no 13556fi 13557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13558 conftest$ac_exeext conftest.$ac_ext 13559fi 13560 13561 13562 CFLAGS="$xorg_testset_save_CFLAGS" 13563 13564 eval supported=\$$cacheid 13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13566printf "%s\n" "$supported" >&6; } 13567 if test "$supported" = "yes" ; then 13568 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13569 found="yes" 13570 fi 13571 fi 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587xorg_testset_save_CFLAGS="$CFLAGS" 13588 13589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13593if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13594then : 13595 printf %s "(cached) " >&6 13596else $as_nop 13597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13598/* end confdefs.h. */ 13599int i; 13600_ACEOF 13601if ac_fn_c_try_compile "$LINENO" 13602then : 13603 xorg_cv_cc_flag_unknown_warning_option=yes 13604else $as_nop 13605 xorg_cv_cc_flag_unknown_warning_option=no 13606fi 13607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13608fi 13609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13612 CFLAGS="$xorg_testset_save_CFLAGS" 13613fi 13614 13615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13618 fi 13619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13622if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13623then : 13624 printf %s "(cached) " >&6 13625else $as_nop 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627/* end confdefs.h. */ 13628int i; 13629_ACEOF 13630if ac_fn_c_try_compile "$LINENO" 13631then : 13632 xorg_cv_cc_flag_unused_command_line_argument=yes 13633else $as_nop 13634 xorg_cv_cc_flag_unused_command_line_argument=no 13635fi 13636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13637fi 13638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13641 CFLAGS="$xorg_testset_save_CFLAGS" 13642fi 13643 13644found="no" 13645 13646 if test $found = "no" ; then 13647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13649 fi 13650 13651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13653 fi 13654 13655 CFLAGS="$CFLAGS -Wpointer-arith" 13656 13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13658printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13659 cacheid=xorg_cv_cc_flag__Wpointer_arith 13660 if eval test \${$cacheid+y} 13661then : 13662 printf %s "(cached) " >&6 13663else $as_nop 13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13665/* end confdefs.h. */ 13666int i; 13667int 13668main (void) 13669{ 13670 13671 ; 13672 return 0; 13673} 13674_ACEOF 13675if ac_fn_c_try_link "$LINENO" 13676then : 13677 eval $cacheid=yes 13678else $as_nop 13679 eval $cacheid=no 13680fi 13681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13682 conftest$ac_exeext conftest.$ac_ext 13683fi 13684 13685 13686 CFLAGS="$xorg_testset_save_CFLAGS" 13687 13688 eval supported=\$$cacheid 13689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13690printf "%s\n" "$supported" >&6; } 13691 if test "$supported" = "yes" ; then 13692 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13693 found="yes" 13694 fi 13695 fi 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711xorg_testset_save_CFLAGS="$CFLAGS" 13712 13713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13717if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13718then : 13719 printf %s "(cached) " >&6 13720else $as_nop 13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13722/* end confdefs.h. */ 13723int i; 13724_ACEOF 13725if ac_fn_c_try_compile "$LINENO" 13726then : 13727 xorg_cv_cc_flag_unknown_warning_option=yes 13728else $as_nop 13729 xorg_cv_cc_flag_unknown_warning_option=no 13730fi 13731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13732fi 13733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13736 CFLAGS="$xorg_testset_save_CFLAGS" 13737fi 13738 13739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13742 fi 13743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13746if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13747then : 13748 printf %s "(cached) " >&6 13749else $as_nop 13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13751/* end confdefs.h. */ 13752int i; 13753_ACEOF 13754if ac_fn_c_try_compile "$LINENO" 13755then : 13756 xorg_cv_cc_flag_unused_command_line_argument=yes 13757else $as_nop 13758 xorg_cv_cc_flag_unused_command_line_argument=no 13759fi 13760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13761fi 13762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13765 CFLAGS="$xorg_testset_save_CFLAGS" 13766fi 13767 13768found="no" 13769 13770 if test $found = "no" ; then 13771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13773 fi 13774 13775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13777 fi 13778 13779 CFLAGS="$CFLAGS -Wmissing-declarations" 13780 13781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13782printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13783 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13784 if eval test \${$cacheid+y} 13785then : 13786 printf %s "(cached) " >&6 13787else $as_nop 13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13789/* end confdefs.h. */ 13790int i; 13791int 13792main (void) 13793{ 13794 13795 ; 13796 return 0; 13797} 13798_ACEOF 13799if ac_fn_c_try_link "$LINENO" 13800then : 13801 eval $cacheid=yes 13802else $as_nop 13803 eval $cacheid=no 13804fi 13805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13806 conftest$ac_exeext conftest.$ac_ext 13807fi 13808 13809 13810 CFLAGS="$xorg_testset_save_CFLAGS" 13811 13812 eval supported=\$$cacheid 13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13814printf "%s\n" "$supported" >&6; } 13815 if test "$supported" = "yes" ; then 13816 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13817 found="yes" 13818 fi 13819 fi 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835xorg_testset_save_CFLAGS="$CFLAGS" 13836 13837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13841if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13842then : 13843 printf %s "(cached) " >&6 13844else $as_nop 13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13846/* end confdefs.h. */ 13847int i; 13848_ACEOF 13849if ac_fn_c_try_compile "$LINENO" 13850then : 13851 xorg_cv_cc_flag_unknown_warning_option=yes 13852else $as_nop 13853 xorg_cv_cc_flag_unknown_warning_option=no 13854fi 13855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13856fi 13857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13860 CFLAGS="$xorg_testset_save_CFLAGS" 13861fi 13862 13863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13866 fi 13867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13871then : 13872 printf %s "(cached) " >&6 13873else $as_nop 13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875/* end confdefs.h. */ 13876int i; 13877_ACEOF 13878if ac_fn_c_try_compile "$LINENO" 13879then : 13880 xorg_cv_cc_flag_unused_command_line_argument=yes 13881else $as_nop 13882 xorg_cv_cc_flag_unused_command_line_argument=no 13883fi 13884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13885fi 13886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13889 CFLAGS="$xorg_testset_save_CFLAGS" 13890fi 13891 13892found="no" 13893 13894 if test $found = "no" ; then 13895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13897 fi 13898 13899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13901 fi 13902 13903 CFLAGS="$CFLAGS -Wformat=2" 13904 13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13906printf %s "checking if $CC supports -Wformat=2... " >&6; } 13907 cacheid=xorg_cv_cc_flag__Wformat_2 13908 if eval test \${$cacheid+y} 13909then : 13910 printf %s "(cached) " >&6 13911else $as_nop 13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13913/* end confdefs.h. */ 13914int i; 13915int 13916main (void) 13917{ 13918 13919 ; 13920 return 0; 13921} 13922_ACEOF 13923if ac_fn_c_try_link "$LINENO" 13924then : 13925 eval $cacheid=yes 13926else $as_nop 13927 eval $cacheid=no 13928fi 13929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13930 conftest$ac_exeext conftest.$ac_ext 13931fi 13932 13933 13934 CFLAGS="$xorg_testset_save_CFLAGS" 13935 13936 eval supported=\$$cacheid 13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13938printf "%s\n" "$supported" >&6; } 13939 if test "$supported" = "yes" ; then 13940 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13941 found="yes" 13942 fi 13943 fi 13944 13945 if test $found = "no" ; then 13946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13948 fi 13949 13950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13952 fi 13953 13954 CFLAGS="$CFLAGS -Wformat" 13955 13956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13957printf %s "checking if $CC supports -Wformat... " >&6; } 13958 cacheid=xorg_cv_cc_flag__Wformat 13959 if eval test \${$cacheid+y} 13960then : 13961 printf %s "(cached) " >&6 13962else $as_nop 13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13964/* end confdefs.h. */ 13965int i; 13966int 13967main (void) 13968{ 13969 13970 ; 13971 return 0; 13972} 13973_ACEOF 13974if ac_fn_c_try_link "$LINENO" 13975then : 13976 eval $cacheid=yes 13977else $as_nop 13978 eval $cacheid=no 13979fi 13980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13981 conftest$ac_exeext conftest.$ac_ext 13982fi 13983 13984 13985 CFLAGS="$xorg_testset_save_CFLAGS" 13986 13987 eval supported=\$$cacheid 13988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13989printf "%s\n" "$supported" >&6; } 13990 if test "$supported" = "yes" ; then 13991 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13992 found="yes" 13993 fi 13994 fi 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012xorg_testset_save_CFLAGS="$CFLAGS" 14013 14014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14018if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14019then : 14020 printf %s "(cached) " >&6 14021else $as_nop 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023/* end confdefs.h. */ 14024int i; 14025_ACEOF 14026if ac_fn_c_try_compile "$LINENO" 14027then : 14028 xorg_cv_cc_flag_unknown_warning_option=yes 14029else $as_nop 14030 xorg_cv_cc_flag_unknown_warning_option=no 14031fi 14032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14033fi 14034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14036 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14037 CFLAGS="$xorg_testset_save_CFLAGS" 14038fi 14039 14040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14041 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14042 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14043 fi 14044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14047if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14048then : 14049 printf %s "(cached) " >&6 14050else $as_nop 14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14052/* end confdefs.h. */ 14053int i; 14054_ACEOF 14055if ac_fn_c_try_compile "$LINENO" 14056then : 14057 xorg_cv_cc_flag_unused_command_line_argument=yes 14058else $as_nop 14059 xorg_cv_cc_flag_unused_command_line_argument=no 14060fi 14061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14062fi 14063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14066 CFLAGS="$xorg_testset_save_CFLAGS" 14067fi 14068 14069found="no" 14070 14071 if test $found = "no" ; then 14072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14074 fi 14075 14076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14078 fi 14079 14080 CFLAGS="$CFLAGS -Wstrict-prototypes" 14081 14082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14083printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14084 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14085 if eval test \${$cacheid+y} 14086then : 14087 printf %s "(cached) " >&6 14088else $as_nop 14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14090/* end confdefs.h. */ 14091int i; 14092int 14093main (void) 14094{ 14095 14096 ; 14097 return 0; 14098} 14099_ACEOF 14100if ac_fn_c_try_link "$LINENO" 14101then : 14102 eval $cacheid=yes 14103else $as_nop 14104 eval $cacheid=no 14105fi 14106rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14107 conftest$ac_exeext conftest.$ac_ext 14108fi 14109 14110 14111 CFLAGS="$xorg_testset_save_CFLAGS" 14112 14113 eval supported=\$$cacheid 14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14115printf "%s\n" "$supported" >&6; } 14116 if test "$supported" = "yes" ; then 14117 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14118 found="yes" 14119 fi 14120 fi 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136xorg_testset_save_CFLAGS="$CFLAGS" 14137 14138if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14141printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14142if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14143then : 14144 printf %s "(cached) " >&6 14145else $as_nop 14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14147/* end confdefs.h. */ 14148int i; 14149_ACEOF 14150if ac_fn_c_try_compile "$LINENO" 14151then : 14152 xorg_cv_cc_flag_unknown_warning_option=yes 14153else $as_nop 14154 xorg_cv_cc_flag_unknown_warning_option=no 14155fi 14156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14157fi 14158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14159printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14161 CFLAGS="$xorg_testset_save_CFLAGS" 14162fi 14163 14164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14167 fi 14168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14170printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14171if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14172then : 14173 printf %s "(cached) " >&6 14174else $as_nop 14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14176/* end confdefs.h. */ 14177int i; 14178_ACEOF 14179if ac_fn_c_try_compile "$LINENO" 14180then : 14181 xorg_cv_cc_flag_unused_command_line_argument=yes 14182else $as_nop 14183 xorg_cv_cc_flag_unused_command_line_argument=no 14184fi 14185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14186fi 14187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14190 CFLAGS="$xorg_testset_save_CFLAGS" 14191fi 14192 14193found="no" 14194 14195 if test $found = "no" ; then 14196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14198 fi 14199 14200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14202 fi 14203 14204 CFLAGS="$CFLAGS -Wmissing-prototypes" 14205 14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14207printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14208 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14209 if eval test \${$cacheid+y} 14210then : 14211 printf %s "(cached) " >&6 14212else $as_nop 14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215int i; 14216int 14217main (void) 14218{ 14219 14220 ; 14221 return 0; 14222} 14223_ACEOF 14224if ac_fn_c_try_link "$LINENO" 14225then : 14226 eval $cacheid=yes 14227else $as_nop 14228 eval $cacheid=no 14229fi 14230rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14231 conftest$ac_exeext conftest.$ac_ext 14232fi 14233 14234 14235 CFLAGS="$xorg_testset_save_CFLAGS" 14236 14237 eval supported=\$$cacheid 14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14239printf "%s\n" "$supported" >&6; } 14240 if test "$supported" = "yes" ; then 14241 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14242 found="yes" 14243 fi 14244 fi 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260xorg_testset_save_CFLAGS="$CFLAGS" 14261 14262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14265printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14266if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14267then : 14268 printf %s "(cached) " >&6 14269else $as_nop 14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14271/* end confdefs.h. */ 14272int i; 14273_ACEOF 14274if ac_fn_c_try_compile "$LINENO" 14275then : 14276 xorg_cv_cc_flag_unknown_warning_option=yes 14277else $as_nop 14278 xorg_cv_cc_flag_unknown_warning_option=no 14279fi 14280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14281fi 14282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14283printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14285 CFLAGS="$xorg_testset_save_CFLAGS" 14286fi 14287 14288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14291 fi 14292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14294printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14295if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14296then : 14297 printf %s "(cached) " >&6 14298else $as_nop 14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14300/* end confdefs.h. */ 14301int i; 14302_ACEOF 14303if ac_fn_c_try_compile "$LINENO" 14304then : 14305 xorg_cv_cc_flag_unused_command_line_argument=yes 14306else $as_nop 14307 xorg_cv_cc_flag_unused_command_line_argument=no 14308fi 14309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14310fi 14311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14312printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14314 CFLAGS="$xorg_testset_save_CFLAGS" 14315fi 14316 14317found="no" 14318 14319 if test $found = "no" ; then 14320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14322 fi 14323 14324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14326 fi 14327 14328 CFLAGS="$CFLAGS -Wnested-externs" 14329 14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14331printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14332 cacheid=xorg_cv_cc_flag__Wnested_externs 14333 if eval test \${$cacheid+y} 14334then : 14335 printf %s "(cached) " >&6 14336else $as_nop 14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14338/* end confdefs.h. */ 14339int i; 14340int 14341main (void) 14342{ 14343 14344 ; 14345 return 0; 14346} 14347_ACEOF 14348if ac_fn_c_try_link "$LINENO" 14349then : 14350 eval $cacheid=yes 14351else $as_nop 14352 eval $cacheid=no 14353fi 14354rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14355 conftest$ac_exeext conftest.$ac_ext 14356fi 14357 14358 14359 CFLAGS="$xorg_testset_save_CFLAGS" 14360 14361 eval supported=\$$cacheid 14362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14363printf "%s\n" "$supported" >&6; } 14364 if test "$supported" = "yes" ; then 14365 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14366 found="yes" 14367 fi 14368 fi 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384xorg_testset_save_CFLAGS="$CFLAGS" 14385 14386if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14389printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14390if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14391then : 14392 printf %s "(cached) " >&6 14393else $as_nop 14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14395/* end confdefs.h. */ 14396int i; 14397_ACEOF 14398if ac_fn_c_try_compile "$LINENO" 14399then : 14400 xorg_cv_cc_flag_unknown_warning_option=yes 14401else $as_nop 14402 xorg_cv_cc_flag_unknown_warning_option=no 14403fi 14404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14405fi 14406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14407printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14409 CFLAGS="$xorg_testset_save_CFLAGS" 14410fi 14411 14412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14415 fi 14416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14418printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14419if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14420then : 14421 printf %s "(cached) " >&6 14422else $as_nop 14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14424/* end confdefs.h. */ 14425int i; 14426_ACEOF 14427if ac_fn_c_try_compile "$LINENO" 14428then : 14429 xorg_cv_cc_flag_unused_command_line_argument=yes 14430else $as_nop 14431 xorg_cv_cc_flag_unused_command_line_argument=no 14432fi 14433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14434fi 14435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14436printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14438 CFLAGS="$xorg_testset_save_CFLAGS" 14439fi 14440 14441found="no" 14442 14443 if test $found = "no" ; then 14444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14446 fi 14447 14448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14450 fi 14451 14452 CFLAGS="$CFLAGS -Wbad-function-cast" 14453 14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14455printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14456 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14457 if eval test \${$cacheid+y} 14458then : 14459 printf %s "(cached) " >&6 14460else $as_nop 14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14462/* end confdefs.h. */ 14463int i; 14464int 14465main (void) 14466{ 14467 14468 ; 14469 return 0; 14470} 14471_ACEOF 14472if ac_fn_c_try_link "$LINENO" 14473then : 14474 eval $cacheid=yes 14475else $as_nop 14476 eval $cacheid=no 14477fi 14478rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14479 conftest$ac_exeext conftest.$ac_ext 14480fi 14481 14482 14483 CFLAGS="$xorg_testset_save_CFLAGS" 14484 14485 eval supported=\$$cacheid 14486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14487printf "%s\n" "$supported" >&6; } 14488 if test "$supported" = "yes" ; then 14489 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14490 found="yes" 14491 fi 14492 fi 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508xorg_testset_save_CFLAGS="$CFLAGS" 14509 14510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14513printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14514if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14515then : 14516 printf %s "(cached) " >&6 14517else $as_nop 14518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14519/* end confdefs.h. */ 14520int i; 14521_ACEOF 14522if ac_fn_c_try_compile "$LINENO" 14523then : 14524 xorg_cv_cc_flag_unknown_warning_option=yes 14525else $as_nop 14526 xorg_cv_cc_flag_unknown_warning_option=no 14527fi 14528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14529fi 14530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14531printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14533 CFLAGS="$xorg_testset_save_CFLAGS" 14534fi 14535 14536if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14539 fi 14540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14542printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14543if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14544then : 14545 printf %s "(cached) " >&6 14546else $as_nop 14547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14548/* end confdefs.h. */ 14549int i; 14550_ACEOF 14551if ac_fn_c_try_compile "$LINENO" 14552then : 14553 xorg_cv_cc_flag_unused_command_line_argument=yes 14554else $as_nop 14555 xorg_cv_cc_flag_unused_command_line_argument=no 14556fi 14557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14558fi 14559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14560printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14562 CFLAGS="$xorg_testset_save_CFLAGS" 14563fi 14564 14565found="no" 14566 14567 if test $found = "no" ; then 14568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14570 fi 14571 14572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14574 fi 14575 14576 CFLAGS="$CFLAGS -Wold-style-definition" 14577 14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14579printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14580 cacheid=xorg_cv_cc_flag__Wold_style_definition 14581 if eval test \${$cacheid+y} 14582then : 14583 printf %s "(cached) " >&6 14584else $as_nop 14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14586/* end confdefs.h. */ 14587int i; 14588int 14589main (void) 14590{ 14591 14592 ; 14593 return 0; 14594} 14595_ACEOF 14596if ac_fn_c_try_link "$LINENO" 14597then : 14598 eval $cacheid=yes 14599else $as_nop 14600 eval $cacheid=no 14601fi 14602rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14603 conftest$ac_exeext conftest.$ac_ext 14604fi 14605 14606 14607 CFLAGS="$xorg_testset_save_CFLAGS" 14608 14609 eval supported=\$$cacheid 14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14611printf "%s\n" "$supported" >&6; } 14612 if test "$supported" = "yes" ; then 14613 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14614 found="yes" 14615 fi 14616 fi 14617 14618 if test $found = "no" ; then 14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14621 fi 14622 14623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14625 fi 14626 14627 CFLAGS="$CFLAGS -fd" 14628 14629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14630printf %s "checking if $CC supports -fd... " >&6; } 14631 cacheid=xorg_cv_cc_flag__fd 14632 if eval test \${$cacheid+y} 14633then : 14634 printf %s "(cached) " >&6 14635else $as_nop 14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14637/* end confdefs.h. */ 14638int i; 14639int 14640main (void) 14641{ 14642 14643 ; 14644 return 0; 14645} 14646_ACEOF 14647if ac_fn_c_try_link "$LINENO" 14648then : 14649 eval $cacheid=yes 14650else $as_nop 14651 eval $cacheid=no 14652fi 14653rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14654 conftest$ac_exeext conftest.$ac_ext 14655fi 14656 14657 14658 CFLAGS="$xorg_testset_save_CFLAGS" 14659 14660 eval supported=\$$cacheid 14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14662printf "%s\n" "$supported" >&6; } 14663 if test "$supported" = "yes" ; then 14664 BASE_CFLAGS="$BASE_CFLAGS -fd" 14665 found="yes" 14666 fi 14667 fi 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683xorg_testset_save_CFLAGS="$CFLAGS" 14684 14685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14689if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14690then : 14691 printf %s "(cached) " >&6 14692else $as_nop 14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14694/* end confdefs.h. */ 14695int i; 14696_ACEOF 14697if ac_fn_c_try_compile "$LINENO" 14698then : 14699 xorg_cv_cc_flag_unknown_warning_option=yes 14700else $as_nop 14701 xorg_cv_cc_flag_unknown_warning_option=no 14702fi 14703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14704fi 14705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14708 CFLAGS="$xorg_testset_save_CFLAGS" 14709fi 14710 14711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14714 fi 14715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14718if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14719then : 14720 printf %s "(cached) " >&6 14721else $as_nop 14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14723/* end confdefs.h. */ 14724int i; 14725_ACEOF 14726if ac_fn_c_try_compile "$LINENO" 14727then : 14728 xorg_cv_cc_flag_unused_command_line_argument=yes 14729else $as_nop 14730 xorg_cv_cc_flag_unused_command_line_argument=no 14731fi 14732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14733fi 14734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14737 CFLAGS="$xorg_testset_save_CFLAGS" 14738fi 14739 14740found="no" 14741 14742 if test $found = "no" ; then 14743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14745 fi 14746 14747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14749 fi 14750 14751 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14752 14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14754printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14755 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14756 if eval test \${$cacheid+y} 14757then : 14758 printf %s "(cached) " >&6 14759else $as_nop 14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14761/* end confdefs.h. */ 14762int i; 14763int 14764main (void) 14765{ 14766 14767 ; 14768 return 0; 14769} 14770_ACEOF 14771if ac_fn_c_try_link "$LINENO" 14772then : 14773 eval $cacheid=yes 14774else $as_nop 14775 eval $cacheid=no 14776fi 14777rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14778 conftest$ac_exeext conftest.$ac_ext 14779fi 14780 14781 14782 CFLAGS="$xorg_testset_save_CFLAGS" 14783 14784 eval supported=\$$cacheid 14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14786printf "%s\n" "$supported" >&6; } 14787 if test "$supported" = "yes" ; then 14788 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14789 found="yes" 14790 fi 14791 fi 14792 14793 14794 14795 14796 14797# This chunk adds additional warnings that could catch undesired effects. 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811xorg_testset_save_CFLAGS="$CFLAGS" 14812 14813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14817if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14818then : 14819 printf %s "(cached) " >&6 14820else $as_nop 14821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14822/* end confdefs.h. */ 14823int i; 14824_ACEOF 14825if ac_fn_c_try_compile "$LINENO" 14826then : 14827 xorg_cv_cc_flag_unknown_warning_option=yes 14828else $as_nop 14829 xorg_cv_cc_flag_unknown_warning_option=no 14830fi 14831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14832fi 14833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14836 CFLAGS="$xorg_testset_save_CFLAGS" 14837fi 14838 14839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14842 fi 14843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14846if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14847then : 14848 printf %s "(cached) " >&6 14849else $as_nop 14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14851/* end confdefs.h. */ 14852int i; 14853_ACEOF 14854if ac_fn_c_try_compile "$LINENO" 14855then : 14856 xorg_cv_cc_flag_unused_command_line_argument=yes 14857else $as_nop 14858 xorg_cv_cc_flag_unused_command_line_argument=no 14859fi 14860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14861fi 14862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14864 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14865 CFLAGS="$xorg_testset_save_CFLAGS" 14866fi 14867 14868found="no" 14869 14870 if test $found = "no" ; then 14871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14873 fi 14874 14875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14877 fi 14878 14879 CFLAGS="$CFLAGS -Wunused" 14880 14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14882printf %s "checking if $CC supports -Wunused... " >&6; } 14883 cacheid=xorg_cv_cc_flag__Wunused 14884 if eval test \${$cacheid+y} 14885then : 14886 printf %s "(cached) " >&6 14887else $as_nop 14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889/* end confdefs.h. */ 14890int i; 14891int 14892main (void) 14893{ 14894 14895 ; 14896 return 0; 14897} 14898_ACEOF 14899if ac_fn_c_try_link "$LINENO" 14900then : 14901 eval $cacheid=yes 14902else $as_nop 14903 eval $cacheid=no 14904fi 14905rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14906 conftest$ac_exeext conftest.$ac_ext 14907fi 14908 14909 14910 CFLAGS="$xorg_testset_save_CFLAGS" 14911 14912 eval supported=\$$cacheid 14913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14914printf "%s\n" "$supported" >&6; } 14915 if test "$supported" = "yes" ; then 14916 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14917 found="yes" 14918 fi 14919 fi 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935xorg_testset_save_CFLAGS="$CFLAGS" 14936 14937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14941if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14942then : 14943 printf %s "(cached) " >&6 14944else $as_nop 14945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14946/* end confdefs.h. */ 14947int i; 14948_ACEOF 14949if ac_fn_c_try_compile "$LINENO" 14950then : 14951 xorg_cv_cc_flag_unknown_warning_option=yes 14952else $as_nop 14953 xorg_cv_cc_flag_unknown_warning_option=no 14954fi 14955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14956fi 14957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14959 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14960 CFLAGS="$xorg_testset_save_CFLAGS" 14961fi 14962 14963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14966 fi 14967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14970if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14971then : 14972 printf %s "(cached) " >&6 14973else $as_nop 14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14975/* end confdefs.h. */ 14976int i; 14977_ACEOF 14978if ac_fn_c_try_compile "$LINENO" 14979then : 14980 xorg_cv_cc_flag_unused_command_line_argument=yes 14981else $as_nop 14982 xorg_cv_cc_flag_unused_command_line_argument=no 14983fi 14984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14985fi 14986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14988 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14989 CFLAGS="$xorg_testset_save_CFLAGS" 14990fi 14991 14992found="no" 14993 14994 if test $found = "no" ; then 14995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14997 fi 14998 14999 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15001 fi 15002 15003 CFLAGS="$CFLAGS -Wuninitialized" 15004 15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15006printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15007 cacheid=xorg_cv_cc_flag__Wuninitialized 15008 if eval test \${$cacheid+y} 15009then : 15010 printf %s "(cached) " >&6 15011else $as_nop 15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013/* end confdefs.h. */ 15014int i; 15015int 15016main (void) 15017{ 15018 15019 ; 15020 return 0; 15021} 15022_ACEOF 15023if ac_fn_c_try_link "$LINENO" 15024then : 15025 eval $cacheid=yes 15026else $as_nop 15027 eval $cacheid=no 15028fi 15029rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15030 conftest$ac_exeext conftest.$ac_ext 15031fi 15032 15033 15034 CFLAGS="$xorg_testset_save_CFLAGS" 15035 15036 eval supported=\$$cacheid 15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15038printf "%s\n" "$supported" >&6; } 15039 if test "$supported" = "yes" ; then 15040 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15041 found="yes" 15042 fi 15043 fi 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059xorg_testset_save_CFLAGS="$CFLAGS" 15060 15061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15065if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15066then : 15067 printf %s "(cached) " >&6 15068else $as_nop 15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15070/* end confdefs.h. */ 15071int i; 15072_ACEOF 15073if ac_fn_c_try_compile "$LINENO" 15074then : 15075 xorg_cv_cc_flag_unknown_warning_option=yes 15076else $as_nop 15077 xorg_cv_cc_flag_unknown_warning_option=no 15078fi 15079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15080fi 15081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15083 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15084 CFLAGS="$xorg_testset_save_CFLAGS" 15085fi 15086 15087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15090 fi 15091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15094if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15095then : 15096 printf %s "(cached) " >&6 15097else $as_nop 15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15099/* end confdefs.h. */ 15100int i; 15101_ACEOF 15102if ac_fn_c_try_compile "$LINENO" 15103then : 15104 xorg_cv_cc_flag_unused_command_line_argument=yes 15105else $as_nop 15106 xorg_cv_cc_flag_unused_command_line_argument=no 15107fi 15108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15109fi 15110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15113 CFLAGS="$xorg_testset_save_CFLAGS" 15114fi 15115 15116found="no" 15117 15118 if test $found = "no" ; then 15119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15121 fi 15122 15123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15125 fi 15126 15127 CFLAGS="$CFLAGS -Wshadow" 15128 15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15130printf %s "checking if $CC supports -Wshadow... " >&6; } 15131 cacheid=xorg_cv_cc_flag__Wshadow 15132 if eval test \${$cacheid+y} 15133then : 15134 printf %s "(cached) " >&6 15135else $as_nop 15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15137/* end confdefs.h. */ 15138int i; 15139int 15140main (void) 15141{ 15142 15143 ; 15144 return 0; 15145} 15146_ACEOF 15147if ac_fn_c_try_link "$LINENO" 15148then : 15149 eval $cacheid=yes 15150else $as_nop 15151 eval $cacheid=no 15152fi 15153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15154 conftest$ac_exeext conftest.$ac_ext 15155fi 15156 15157 15158 CFLAGS="$xorg_testset_save_CFLAGS" 15159 15160 eval supported=\$$cacheid 15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15162printf "%s\n" "$supported" >&6; } 15163 if test "$supported" = "yes" ; then 15164 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15165 found="yes" 15166 fi 15167 fi 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183xorg_testset_save_CFLAGS="$CFLAGS" 15184 15185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15189if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15190then : 15191 printf %s "(cached) " >&6 15192else $as_nop 15193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15194/* end confdefs.h. */ 15195int i; 15196_ACEOF 15197if ac_fn_c_try_compile "$LINENO" 15198then : 15199 xorg_cv_cc_flag_unknown_warning_option=yes 15200else $as_nop 15201 xorg_cv_cc_flag_unknown_warning_option=no 15202fi 15203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15204fi 15205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15208 CFLAGS="$xorg_testset_save_CFLAGS" 15209fi 15210 15211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15214 fi 15215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15218if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15219then : 15220 printf %s "(cached) " >&6 15221else $as_nop 15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15223/* end confdefs.h. */ 15224int i; 15225_ACEOF 15226if ac_fn_c_try_compile "$LINENO" 15227then : 15228 xorg_cv_cc_flag_unused_command_line_argument=yes 15229else $as_nop 15230 xorg_cv_cc_flag_unused_command_line_argument=no 15231fi 15232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15233fi 15234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15237 CFLAGS="$xorg_testset_save_CFLAGS" 15238fi 15239 15240found="no" 15241 15242 if test $found = "no" ; then 15243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15245 fi 15246 15247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15249 fi 15250 15251 CFLAGS="$CFLAGS -Wmissing-noreturn" 15252 15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15254printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15255 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15256 if eval test \${$cacheid+y} 15257then : 15258 printf %s "(cached) " >&6 15259else $as_nop 15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15261/* end confdefs.h. */ 15262int i; 15263int 15264main (void) 15265{ 15266 15267 ; 15268 return 0; 15269} 15270_ACEOF 15271if ac_fn_c_try_link "$LINENO" 15272then : 15273 eval $cacheid=yes 15274else $as_nop 15275 eval $cacheid=no 15276fi 15277rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15278 conftest$ac_exeext conftest.$ac_ext 15279fi 15280 15281 15282 CFLAGS="$xorg_testset_save_CFLAGS" 15283 15284 eval supported=\$$cacheid 15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15286printf "%s\n" "$supported" >&6; } 15287 if test "$supported" = "yes" ; then 15288 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15289 found="yes" 15290 fi 15291 fi 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307xorg_testset_save_CFLAGS="$CFLAGS" 15308 15309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15312printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15313if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15314then : 15315 printf %s "(cached) " >&6 15316else $as_nop 15317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15318/* end confdefs.h. */ 15319int i; 15320_ACEOF 15321if ac_fn_c_try_compile "$LINENO" 15322then : 15323 xorg_cv_cc_flag_unknown_warning_option=yes 15324else $as_nop 15325 xorg_cv_cc_flag_unknown_warning_option=no 15326fi 15327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15328fi 15329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15330printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15332 CFLAGS="$xorg_testset_save_CFLAGS" 15333fi 15334 15335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15338 fi 15339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15341printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15342if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15343then : 15344 printf %s "(cached) " >&6 15345else $as_nop 15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15347/* end confdefs.h. */ 15348int i; 15349_ACEOF 15350if ac_fn_c_try_compile "$LINENO" 15351then : 15352 xorg_cv_cc_flag_unused_command_line_argument=yes 15353else $as_nop 15354 xorg_cv_cc_flag_unused_command_line_argument=no 15355fi 15356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15357fi 15358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15359printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15361 CFLAGS="$xorg_testset_save_CFLAGS" 15362fi 15363 15364found="no" 15365 15366 if test $found = "no" ; then 15367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15369 fi 15370 15371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15373 fi 15374 15375 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15376 15377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15378printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15379 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15380 if eval test \${$cacheid+y} 15381then : 15382 printf %s "(cached) " >&6 15383else $as_nop 15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15385/* end confdefs.h. */ 15386int i; 15387int 15388main (void) 15389{ 15390 15391 ; 15392 return 0; 15393} 15394_ACEOF 15395if ac_fn_c_try_link "$LINENO" 15396then : 15397 eval $cacheid=yes 15398else $as_nop 15399 eval $cacheid=no 15400fi 15401rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15402 conftest$ac_exeext conftest.$ac_ext 15403fi 15404 15405 15406 CFLAGS="$xorg_testset_save_CFLAGS" 15407 15408 eval supported=\$$cacheid 15409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15410printf "%s\n" "$supported" >&6; } 15411 if test "$supported" = "yes" ; then 15412 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15413 found="yes" 15414 fi 15415 fi 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431xorg_testset_save_CFLAGS="$CFLAGS" 15432 15433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15436printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15437if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15438then : 15439 printf %s "(cached) " >&6 15440else $as_nop 15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15442/* end confdefs.h. */ 15443int i; 15444_ACEOF 15445if ac_fn_c_try_compile "$LINENO" 15446then : 15447 xorg_cv_cc_flag_unknown_warning_option=yes 15448else $as_nop 15449 xorg_cv_cc_flag_unknown_warning_option=no 15450fi 15451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15452fi 15453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15454printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15456 CFLAGS="$xorg_testset_save_CFLAGS" 15457fi 15458 15459if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15462 fi 15463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15465printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15466if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15467then : 15468 printf %s "(cached) " >&6 15469else $as_nop 15470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15471/* end confdefs.h. */ 15472int i; 15473_ACEOF 15474if ac_fn_c_try_compile "$LINENO" 15475then : 15476 xorg_cv_cc_flag_unused_command_line_argument=yes 15477else $as_nop 15478 xorg_cv_cc_flag_unused_command_line_argument=no 15479fi 15480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15481fi 15482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15483printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15484 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15485 CFLAGS="$xorg_testset_save_CFLAGS" 15486fi 15487 15488found="no" 15489 15490 if test $found = "no" ; then 15491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15493 fi 15494 15495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15497 fi 15498 15499 CFLAGS="$CFLAGS -Wredundant-decls" 15500 15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15502printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15503 cacheid=xorg_cv_cc_flag__Wredundant_decls 15504 if eval test \${$cacheid+y} 15505then : 15506 printf %s "(cached) " >&6 15507else $as_nop 15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15509/* end confdefs.h. */ 15510int i; 15511int 15512main (void) 15513{ 15514 15515 ; 15516 return 0; 15517} 15518_ACEOF 15519if ac_fn_c_try_link "$LINENO" 15520then : 15521 eval $cacheid=yes 15522else $as_nop 15523 eval $cacheid=no 15524fi 15525rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15526 conftest$ac_exeext conftest.$ac_ext 15527fi 15528 15529 15530 CFLAGS="$xorg_testset_save_CFLAGS" 15531 15532 eval supported=\$$cacheid 15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15534printf "%s\n" "$supported" >&6; } 15535 if test "$supported" = "yes" ; then 15536 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15537 found="yes" 15538 fi 15539 fi 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555xorg_testset_save_CFLAGS="$CFLAGS" 15556 15557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15560printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15561if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15562then : 15563 printf %s "(cached) " >&6 15564else $as_nop 15565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15566/* end confdefs.h. */ 15567int i; 15568_ACEOF 15569if ac_fn_c_try_compile "$LINENO" 15570then : 15571 xorg_cv_cc_flag_unknown_warning_option=yes 15572else $as_nop 15573 xorg_cv_cc_flag_unknown_warning_option=no 15574fi 15575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15576fi 15577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15578printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15580 CFLAGS="$xorg_testset_save_CFLAGS" 15581fi 15582 15583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15586 fi 15587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15589printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15590if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15591then : 15592 printf %s "(cached) " >&6 15593else $as_nop 15594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15595/* end confdefs.h. */ 15596int i; 15597_ACEOF 15598if ac_fn_c_try_compile "$LINENO" 15599then : 15600 xorg_cv_cc_flag_unused_command_line_argument=yes 15601else $as_nop 15602 xorg_cv_cc_flag_unused_command_line_argument=no 15603fi 15604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15605fi 15606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15607printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15609 CFLAGS="$xorg_testset_save_CFLAGS" 15610fi 15611 15612found="no" 15613 15614 if test $found = "no" ; then 15615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15617 fi 15618 15619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15621 fi 15622 15623 CFLAGS="$CFLAGS -Wlogical-op" 15624 15625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15626printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15627 cacheid=xorg_cv_cc_flag__Wlogical_op 15628 if eval test \${$cacheid+y} 15629then : 15630 printf %s "(cached) " >&6 15631else $as_nop 15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15633/* end confdefs.h. */ 15634int i; 15635int 15636main (void) 15637{ 15638 15639 ; 15640 return 0; 15641} 15642_ACEOF 15643if ac_fn_c_try_link "$LINENO" 15644then : 15645 eval $cacheid=yes 15646else $as_nop 15647 eval $cacheid=no 15648fi 15649rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15650 conftest$ac_exeext conftest.$ac_ext 15651fi 15652 15653 15654 CFLAGS="$xorg_testset_save_CFLAGS" 15655 15656 eval supported=\$$cacheid 15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15658printf "%s\n" "$supported" >&6; } 15659 if test "$supported" = "yes" ; then 15660 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15661 found="yes" 15662 fi 15663 fi 15664 15665 15666 15667# These are currently disabled because they are noisy. They will be enabled 15668# in the future once the codebase is sufficiently modernized to silence 15669# them. For now, I don't want them to drown out the other warnings. 15670# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15671# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15672# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15673 15674# Turn some warnings into errors, so we don't accidently get successful builds 15675# when there are problems that should be fixed. 15676 15677if test "x$SELECTIVE_WERROR" = "xyes" ; then 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691xorg_testset_save_CFLAGS="$CFLAGS" 15692 15693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15697if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15698then : 15699 printf %s "(cached) " >&6 15700else $as_nop 15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15702/* end confdefs.h. */ 15703int i; 15704_ACEOF 15705if ac_fn_c_try_compile "$LINENO" 15706then : 15707 xorg_cv_cc_flag_unknown_warning_option=yes 15708else $as_nop 15709 xorg_cv_cc_flag_unknown_warning_option=no 15710fi 15711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15712fi 15713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15716 CFLAGS="$xorg_testset_save_CFLAGS" 15717fi 15718 15719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15722 fi 15723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15726if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15727then : 15728 printf %s "(cached) " >&6 15729else $as_nop 15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15731/* end confdefs.h. */ 15732int i; 15733_ACEOF 15734if ac_fn_c_try_compile "$LINENO" 15735then : 15736 xorg_cv_cc_flag_unused_command_line_argument=yes 15737else $as_nop 15738 xorg_cv_cc_flag_unused_command_line_argument=no 15739fi 15740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15741fi 15742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15745 CFLAGS="$xorg_testset_save_CFLAGS" 15746fi 15747 15748found="no" 15749 15750 if test $found = "no" ; then 15751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15753 fi 15754 15755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15757 fi 15758 15759 CFLAGS="$CFLAGS -Werror=implicit" 15760 15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15762printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15763 cacheid=xorg_cv_cc_flag__Werror_implicit 15764 if eval test \${$cacheid+y} 15765then : 15766 printf %s "(cached) " >&6 15767else $as_nop 15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15769/* end confdefs.h. */ 15770int i; 15771int 15772main (void) 15773{ 15774 15775 ; 15776 return 0; 15777} 15778_ACEOF 15779if ac_fn_c_try_link "$LINENO" 15780then : 15781 eval $cacheid=yes 15782else $as_nop 15783 eval $cacheid=no 15784fi 15785rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15786 conftest$ac_exeext conftest.$ac_ext 15787fi 15788 15789 15790 CFLAGS="$xorg_testset_save_CFLAGS" 15791 15792 eval supported=\$$cacheid 15793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15794printf "%s\n" "$supported" >&6; } 15795 if test "$supported" = "yes" ; then 15796 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15797 found="yes" 15798 fi 15799 fi 15800 15801 if test $found = "no" ; then 15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15804 fi 15805 15806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15808 fi 15809 15810 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15811 15812 { 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 15813printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15814 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15815 if eval test \${$cacheid+y} 15816then : 15817 printf %s "(cached) " >&6 15818else $as_nop 15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15820/* end confdefs.h. */ 15821int i; 15822int 15823main (void) 15824{ 15825 15826 ; 15827 return 0; 15828} 15829_ACEOF 15830if ac_fn_c_try_link "$LINENO" 15831then : 15832 eval $cacheid=yes 15833else $as_nop 15834 eval $cacheid=no 15835fi 15836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15837 conftest$ac_exeext conftest.$ac_ext 15838fi 15839 15840 15841 CFLAGS="$xorg_testset_save_CFLAGS" 15842 15843 eval supported=\$$cacheid 15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15845printf "%s\n" "$supported" >&6; } 15846 if test "$supported" = "yes" ; then 15847 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15848 found="yes" 15849 fi 15850 fi 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866xorg_testset_save_CFLAGS="$CFLAGS" 15867 15868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15872if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15873then : 15874 printf %s "(cached) " >&6 15875else $as_nop 15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15877/* end confdefs.h. */ 15878int i; 15879_ACEOF 15880if ac_fn_c_try_compile "$LINENO" 15881then : 15882 xorg_cv_cc_flag_unknown_warning_option=yes 15883else $as_nop 15884 xorg_cv_cc_flag_unknown_warning_option=no 15885fi 15886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15887fi 15888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15891 CFLAGS="$xorg_testset_save_CFLAGS" 15892fi 15893 15894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15897 fi 15898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15901if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15902then : 15903 printf %s "(cached) " >&6 15904else $as_nop 15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15906/* end confdefs.h. */ 15907int i; 15908_ACEOF 15909if ac_fn_c_try_compile "$LINENO" 15910then : 15911 xorg_cv_cc_flag_unused_command_line_argument=yes 15912else $as_nop 15913 xorg_cv_cc_flag_unused_command_line_argument=no 15914fi 15915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15916fi 15917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15920 CFLAGS="$xorg_testset_save_CFLAGS" 15921fi 15922 15923found="no" 15924 15925 if test $found = "no" ; then 15926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15928 fi 15929 15930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15932 fi 15933 15934 CFLAGS="$CFLAGS -Werror=nonnull" 15935 15936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15937printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15938 cacheid=xorg_cv_cc_flag__Werror_nonnull 15939 if eval test \${$cacheid+y} 15940then : 15941 printf %s "(cached) " >&6 15942else $as_nop 15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15944/* end confdefs.h. */ 15945int i; 15946int 15947main (void) 15948{ 15949 15950 ; 15951 return 0; 15952} 15953_ACEOF 15954if ac_fn_c_try_link "$LINENO" 15955then : 15956 eval $cacheid=yes 15957else $as_nop 15958 eval $cacheid=no 15959fi 15960rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15961 conftest$ac_exeext conftest.$ac_ext 15962fi 15963 15964 15965 CFLAGS="$xorg_testset_save_CFLAGS" 15966 15967 eval supported=\$$cacheid 15968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15969printf "%s\n" "$supported" >&6; } 15970 if test "$supported" = "yes" ; then 15971 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15972 found="yes" 15973 fi 15974 fi 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990xorg_testset_save_CFLAGS="$CFLAGS" 15991 15992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15996if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15997then : 15998 printf %s "(cached) " >&6 15999else $as_nop 16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16001/* end confdefs.h. */ 16002int i; 16003_ACEOF 16004if ac_fn_c_try_compile "$LINENO" 16005then : 16006 xorg_cv_cc_flag_unknown_warning_option=yes 16007else $as_nop 16008 xorg_cv_cc_flag_unknown_warning_option=no 16009fi 16010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16011fi 16012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16015 CFLAGS="$xorg_testset_save_CFLAGS" 16016fi 16017 16018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16021 fi 16022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16025if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16026then : 16027 printf %s "(cached) " >&6 16028else $as_nop 16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16030/* end confdefs.h. */ 16031int i; 16032_ACEOF 16033if ac_fn_c_try_compile "$LINENO" 16034then : 16035 xorg_cv_cc_flag_unused_command_line_argument=yes 16036else $as_nop 16037 xorg_cv_cc_flag_unused_command_line_argument=no 16038fi 16039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16040fi 16041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16044 CFLAGS="$xorg_testset_save_CFLAGS" 16045fi 16046 16047found="no" 16048 16049 if test $found = "no" ; then 16050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16052 fi 16053 16054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16056 fi 16057 16058 CFLAGS="$CFLAGS -Werror=init-self" 16059 16060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16061printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16062 cacheid=xorg_cv_cc_flag__Werror_init_self 16063 if eval test \${$cacheid+y} 16064then : 16065 printf %s "(cached) " >&6 16066else $as_nop 16067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16068/* end confdefs.h. */ 16069int i; 16070int 16071main (void) 16072{ 16073 16074 ; 16075 return 0; 16076} 16077_ACEOF 16078if ac_fn_c_try_link "$LINENO" 16079then : 16080 eval $cacheid=yes 16081else $as_nop 16082 eval $cacheid=no 16083fi 16084rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16085 conftest$ac_exeext conftest.$ac_ext 16086fi 16087 16088 16089 CFLAGS="$xorg_testset_save_CFLAGS" 16090 16091 eval supported=\$$cacheid 16092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16093printf "%s\n" "$supported" >&6; } 16094 if test "$supported" = "yes" ; then 16095 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16096 found="yes" 16097 fi 16098 fi 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114xorg_testset_save_CFLAGS="$CFLAGS" 16115 16116if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16119printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16120if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16121then : 16122 printf %s "(cached) " >&6 16123else $as_nop 16124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16125/* end confdefs.h. */ 16126int i; 16127_ACEOF 16128if ac_fn_c_try_compile "$LINENO" 16129then : 16130 xorg_cv_cc_flag_unknown_warning_option=yes 16131else $as_nop 16132 xorg_cv_cc_flag_unknown_warning_option=no 16133fi 16134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16135fi 16136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16137printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16138 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16139 CFLAGS="$xorg_testset_save_CFLAGS" 16140fi 16141 16142if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16145 fi 16146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16148printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16149if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16150then : 16151 printf %s "(cached) " >&6 16152else $as_nop 16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16154/* end confdefs.h. */ 16155int i; 16156_ACEOF 16157if ac_fn_c_try_compile "$LINENO" 16158then : 16159 xorg_cv_cc_flag_unused_command_line_argument=yes 16160else $as_nop 16161 xorg_cv_cc_flag_unused_command_line_argument=no 16162fi 16163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16164fi 16165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16166printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16168 CFLAGS="$xorg_testset_save_CFLAGS" 16169fi 16170 16171found="no" 16172 16173 if test $found = "no" ; then 16174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16176 fi 16177 16178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16180 fi 16181 16182 CFLAGS="$CFLAGS -Werror=main" 16183 16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16185printf %s "checking if $CC supports -Werror=main... " >&6; } 16186 cacheid=xorg_cv_cc_flag__Werror_main 16187 if eval test \${$cacheid+y} 16188then : 16189 printf %s "(cached) " >&6 16190else $as_nop 16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16192/* end confdefs.h. */ 16193int i; 16194int 16195main (void) 16196{ 16197 16198 ; 16199 return 0; 16200} 16201_ACEOF 16202if ac_fn_c_try_link "$LINENO" 16203then : 16204 eval $cacheid=yes 16205else $as_nop 16206 eval $cacheid=no 16207fi 16208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16209 conftest$ac_exeext conftest.$ac_ext 16210fi 16211 16212 16213 CFLAGS="$xorg_testset_save_CFLAGS" 16214 16215 eval supported=\$$cacheid 16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16217printf "%s\n" "$supported" >&6; } 16218 if test "$supported" = "yes" ; then 16219 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16220 found="yes" 16221 fi 16222 fi 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238xorg_testset_save_CFLAGS="$CFLAGS" 16239 16240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16243printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16244if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16245then : 16246 printf %s "(cached) " >&6 16247else $as_nop 16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16249/* end confdefs.h. */ 16250int i; 16251_ACEOF 16252if ac_fn_c_try_compile "$LINENO" 16253then : 16254 xorg_cv_cc_flag_unknown_warning_option=yes 16255else $as_nop 16256 xorg_cv_cc_flag_unknown_warning_option=no 16257fi 16258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16259fi 16260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16261printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16263 CFLAGS="$xorg_testset_save_CFLAGS" 16264fi 16265 16266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16269 fi 16270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16272printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16273if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16274then : 16275 printf %s "(cached) " >&6 16276else $as_nop 16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16278/* end confdefs.h. */ 16279int i; 16280_ACEOF 16281if ac_fn_c_try_compile "$LINENO" 16282then : 16283 xorg_cv_cc_flag_unused_command_line_argument=yes 16284else $as_nop 16285 xorg_cv_cc_flag_unused_command_line_argument=no 16286fi 16287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16288fi 16289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16292 CFLAGS="$xorg_testset_save_CFLAGS" 16293fi 16294 16295found="no" 16296 16297 if test $found = "no" ; then 16298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16300 fi 16301 16302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16304 fi 16305 16306 CFLAGS="$CFLAGS -Werror=missing-braces" 16307 16308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16309printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16310 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16311 if eval test \${$cacheid+y} 16312then : 16313 printf %s "(cached) " >&6 16314else $as_nop 16315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16316/* end confdefs.h. */ 16317int i; 16318int 16319main (void) 16320{ 16321 16322 ; 16323 return 0; 16324} 16325_ACEOF 16326if ac_fn_c_try_link "$LINENO" 16327then : 16328 eval $cacheid=yes 16329else $as_nop 16330 eval $cacheid=no 16331fi 16332rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16333 conftest$ac_exeext conftest.$ac_ext 16334fi 16335 16336 16337 CFLAGS="$xorg_testset_save_CFLAGS" 16338 16339 eval supported=\$$cacheid 16340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16341printf "%s\n" "$supported" >&6; } 16342 if test "$supported" = "yes" ; then 16343 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16344 found="yes" 16345 fi 16346 fi 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362xorg_testset_save_CFLAGS="$CFLAGS" 16363 16364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16367printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16368if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16369then : 16370 printf %s "(cached) " >&6 16371else $as_nop 16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16373/* end confdefs.h. */ 16374int i; 16375_ACEOF 16376if ac_fn_c_try_compile "$LINENO" 16377then : 16378 xorg_cv_cc_flag_unknown_warning_option=yes 16379else $as_nop 16380 xorg_cv_cc_flag_unknown_warning_option=no 16381fi 16382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16383fi 16384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16385printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16387 CFLAGS="$xorg_testset_save_CFLAGS" 16388fi 16389 16390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16393 fi 16394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16396printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16397if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16398then : 16399 printf %s "(cached) " >&6 16400else $as_nop 16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16402/* end confdefs.h. */ 16403int i; 16404_ACEOF 16405if ac_fn_c_try_compile "$LINENO" 16406then : 16407 xorg_cv_cc_flag_unused_command_line_argument=yes 16408else $as_nop 16409 xorg_cv_cc_flag_unused_command_line_argument=no 16410fi 16411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16412fi 16413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16414printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16416 CFLAGS="$xorg_testset_save_CFLAGS" 16417fi 16418 16419found="no" 16420 16421 if test $found = "no" ; then 16422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16424 fi 16425 16426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16428 fi 16429 16430 CFLAGS="$CFLAGS -Werror=sequence-point" 16431 16432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16433printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16434 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16435 if eval test \${$cacheid+y} 16436then : 16437 printf %s "(cached) " >&6 16438else $as_nop 16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16440/* end confdefs.h. */ 16441int i; 16442int 16443main (void) 16444{ 16445 16446 ; 16447 return 0; 16448} 16449_ACEOF 16450if ac_fn_c_try_link "$LINENO" 16451then : 16452 eval $cacheid=yes 16453else $as_nop 16454 eval $cacheid=no 16455fi 16456rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16457 conftest$ac_exeext conftest.$ac_ext 16458fi 16459 16460 16461 CFLAGS="$xorg_testset_save_CFLAGS" 16462 16463 eval supported=\$$cacheid 16464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16465printf "%s\n" "$supported" >&6; } 16466 if test "$supported" = "yes" ; then 16467 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16468 found="yes" 16469 fi 16470 fi 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486xorg_testset_save_CFLAGS="$CFLAGS" 16487 16488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16492if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16493then : 16494 printf %s "(cached) " >&6 16495else $as_nop 16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16497/* end confdefs.h. */ 16498int i; 16499_ACEOF 16500if ac_fn_c_try_compile "$LINENO" 16501then : 16502 xorg_cv_cc_flag_unknown_warning_option=yes 16503else $as_nop 16504 xorg_cv_cc_flag_unknown_warning_option=no 16505fi 16506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16507fi 16508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16511 CFLAGS="$xorg_testset_save_CFLAGS" 16512fi 16513 16514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16517 fi 16518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16521if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16522then : 16523 printf %s "(cached) " >&6 16524else $as_nop 16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16526/* end confdefs.h. */ 16527int i; 16528_ACEOF 16529if ac_fn_c_try_compile "$LINENO" 16530then : 16531 xorg_cv_cc_flag_unused_command_line_argument=yes 16532else $as_nop 16533 xorg_cv_cc_flag_unused_command_line_argument=no 16534fi 16535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16536fi 16537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16540 CFLAGS="$xorg_testset_save_CFLAGS" 16541fi 16542 16543found="no" 16544 16545 if test $found = "no" ; then 16546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16548 fi 16549 16550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16552 fi 16553 16554 CFLAGS="$CFLAGS -Werror=return-type" 16555 16556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16557printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16558 cacheid=xorg_cv_cc_flag__Werror_return_type 16559 if eval test \${$cacheid+y} 16560then : 16561 printf %s "(cached) " >&6 16562else $as_nop 16563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16564/* end confdefs.h. */ 16565int i; 16566int 16567main (void) 16568{ 16569 16570 ; 16571 return 0; 16572} 16573_ACEOF 16574if ac_fn_c_try_link "$LINENO" 16575then : 16576 eval $cacheid=yes 16577else $as_nop 16578 eval $cacheid=no 16579fi 16580rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16581 conftest$ac_exeext conftest.$ac_ext 16582fi 16583 16584 16585 CFLAGS="$xorg_testset_save_CFLAGS" 16586 16587 eval supported=\$$cacheid 16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16589printf "%s\n" "$supported" >&6; } 16590 if test "$supported" = "yes" ; then 16591 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16592 found="yes" 16593 fi 16594 fi 16595 16596 if test $found = "no" ; then 16597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16599 fi 16600 16601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16603 fi 16604 16605 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16606 16607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16608printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16609 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16610 if eval test \${$cacheid+y} 16611then : 16612 printf %s "(cached) " >&6 16613else $as_nop 16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16615/* end confdefs.h. */ 16616int i; 16617int 16618main (void) 16619{ 16620 16621 ; 16622 return 0; 16623} 16624_ACEOF 16625if ac_fn_c_try_link "$LINENO" 16626then : 16627 eval $cacheid=yes 16628else $as_nop 16629 eval $cacheid=no 16630fi 16631rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16632 conftest$ac_exeext conftest.$ac_ext 16633fi 16634 16635 16636 CFLAGS="$xorg_testset_save_CFLAGS" 16637 16638 eval supported=\$$cacheid 16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16640printf "%s\n" "$supported" >&6; } 16641 if test "$supported" = "yes" ; then 16642 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16643 found="yes" 16644 fi 16645 fi 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661xorg_testset_save_CFLAGS="$CFLAGS" 16662 16663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16667if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16668then : 16669 printf %s "(cached) " >&6 16670else $as_nop 16671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16672/* end confdefs.h. */ 16673int i; 16674_ACEOF 16675if ac_fn_c_try_compile "$LINENO" 16676then : 16677 xorg_cv_cc_flag_unknown_warning_option=yes 16678else $as_nop 16679 xorg_cv_cc_flag_unknown_warning_option=no 16680fi 16681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16682fi 16683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16686 CFLAGS="$xorg_testset_save_CFLAGS" 16687fi 16688 16689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16692 fi 16693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16696if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16697then : 16698 printf %s "(cached) " >&6 16699else $as_nop 16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16701/* end confdefs.h. */ 16702int i; 16703_ACEOF 16704if ac_fn_c_try_compile "$LINENO" 16705then : 16706 xorg_cv_cc_flag_unused_command_line_argument=yes 16707else $as_nop 16708 xorg_cv_cc_flag_unused_command_line_argument=no 16709fi 16710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16711fi 16712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16713printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16714 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16715 CFLAGS="$xorg_testset_save_CFLAGS" 16716fi 16717 16718found="no" 16719 16720 if test $found = "no" ; then 16721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16723 fi 16724 16725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16727 fi 16728 16729 CFLAGS="$CFLAGS -Werror=trigraphs" 16730 16731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16732printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16733 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16734 if eval test \${$cacheid+y} 16735then : 16736 printf %s "(cached) " >&6 16737else $as_nop 16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740int i; 16741int 16742main (void) 16743{ 16744 16745 ; 16746 return 0; 16747} 16748_ACEOF 16749if ac_fn_c_try_link "$LINENO" 16750then : 16751 eval $cacheid=yes 16752else $as_nop 16753 eval $cacheid=no 16754fi 16755rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16756 conftest$ac_exeext conftest.$ac_ext 16757fi 16758 16759 16760 CFLAGS="$xorg_testset_save_CFLAGS" 16761 16762 eval supported=\$$cacheid 16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16764printf "%s\n" "$supported" >&6; } 16765 if test "$supported" = "yes" ; then 16766 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16767 found="yes" 16768 fi 16769 fi 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785xorg_testset_save_CFLAGS="$CFLAGS" 16786 16787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16791if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16792then : 16793 printf %s "(cached) " >&6 16794else $as_nop 16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16796/* end confdefs.h. */ 16797int i; 16798_ACEOF 16799if ac_fn_c_try_compile "$LINENO" 16800then : 16801 xorg_cv_cc_flag_unknown_warning_option=yes 16802else $as_nop 16803 xorg_cv_cc_flag_unknown_warning_option=no 16804fi 16805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16806fi 16807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16810 CFLAGS="$xorg_testset_save_CFLAGS" 16811fi 16812 16813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16816 fi 16817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16820if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16821then : 16822 printf %s "(cached) " >&6 16823else $as_nop 16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16825/* end confdefs.h. */ 16826int i; 16827_ACEOF 16828if ac_fn_c_try_compile "$LINENO" 16829then : 16830 xorg_cv_cc_flag_unused_command_line_argument=yes 16831else $as_nop 16832 xorg_cv_cc_flag_unused_command_line_argument=no 16833fi 16834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16835fi 16836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16837printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16838 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16839 CFLAGS="$xorg_testset_save_CFLAGS" 16840fi 16841 16842found="no" 16843 16844 if test $found = "no" ; then 16845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16847 fi 16848 16849 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16851 fi 16852 16853 CFLAGS="$CFLAGS -Werror=array-bounds" 16854 16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16856printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16857 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16858 if eval test \${$cacheid+y} 16859then : 16860 printf %s "(cached) " >&6 16861else $as_nop 16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16863/* end confdefs.h. */ 16864int i; 16865int 16866main (void) 16867{ 16868 16869 ; 16870 return 0; 16871} 16872_ACEOF 16873if ac_fn_c_try_link "$LINENO" 16874then : 16875 eval $cacheid=yes 16876else $as_nop 16877 eval $cacheid=no 16878fi 16879rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16880 conftest$ac_exeext conftest.$ac_ext 16881fi 16882 16883 16884 CFLAGS="$xorg_testset_save_CFLAGS" 16885 16886 eval supported=\$$cacheid 16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16888printf "%s\n" "$supported" >&6; } 16889 if test "$supported" = "yes" ; then 16890 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16891 found="yes" 16892 fi 16893 fi 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909xorg_testset_save_CFLAGS="$CFLAGS" 16910 16911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16914printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16915if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16916then : 16917 printf %s "(cached) " >&6 16918else $as_nop 16919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16920/* end confdefs.h. */ 16921int i; 16922_ACEOF 16923if ac_fn_c_try_compile "$LINENO" 16924then : 16925 xorg_cv_cc_flag_unknown_warning_option=yes 16926else $as_nop 16927 xorg_cv_cc_flag_unknown_warning_option=no 16928fi 16929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16930fi 16931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16932printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16934 CFLAGS="$xorg_testset_save_CFLAGS" 16935fi 16936 16937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16940 fi 16941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16943printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16944if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16945then : 16946 printf %s "(cached) " >&6 16947else $as_nop 16948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16949/* end confdefs.h. */ 16950int i; 16951_ACEOF 16952if ac_fn_c_try_compile "$LINENO" 16953then : 16954 xorg_cv_cc_flag_unused_command_line_argument=yes 16955else $as_nop 16956 xorg_cv_cc_flag_unused_command_line_argument=no 16957fi 16958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16959fi 16960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16961printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16963 CFLAGS="$xorg_testset_save_CFLAGS" 16964fi 16965 16966found="no" 16967 16968 if test $found = "no" ; then 16969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16971 fi 16972 16973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16975 fi 16976 16977 CFLAGS="$CFLAGS -Werror=write-strings" 16978 16979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16980printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16981 cacheid=xorg_cv_cc_flag__Werror_write_strings 16982 if eval test \${$cacheid+y} 16983then : 16984 printf %s "(cached) " >&6 16985else $as_nop 16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16987/* end confdefs.h. */ 16988int i; 16989int 16990main (void) 16991{ 16992 16993 ; 16994 return 0; 16995} 16996_ACEOF 16997if ac_fn_c_try_link "$LINENO" 16998then : 16999 eval $cacheid=yes 17000else $as_nop 17001 eval $cacheid=no 17002fi 17003rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17004 conftest$ac_exeext conftest.$ac_ext 17005fi 17006 17007 17008 CFLAGS="$xorg_testset_save_CFLAGS" 17009 17010 eval supported=\$$cacheid 17011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17012printf "%s\n" "$supported" >&6; } 17013 if test "$supported" = "yes" ; then 17014 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17015 found="yes" 17016 fi 17017 fi 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033xorg_testset_save_CFLAGS="$CFLAGS" 17034 17035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17038printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17039if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17040then : 17041 printf %s "(cached) " >&6 17042else $as_nop 17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17044/* end confdefs.h. */ 17045int i; 17046_ACEOF 17047if ac_fn_c_try_compile "$LINENO" 17048then : 17049 xorg_cv_cc_flag_unknown_warning_option=yes 17050else $as_nop 17051 xorg_cv_cc_flag_unknown_warning_option=no 17052fi 17053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17054fi 17055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17058 CFLAGS="$xorg_testset_save_CFLAGS" 17059fi 17060 17061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17064 fi 17065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17068if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17069then : 17070 printf %s "(cached) " >&6 17071else $as_nop 17072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17073/* end confdefs.h. */ 17074int i; 17075_ACEOF 17076if ac_fn_c_try_compile "$LINENO" 17077then : 17078 xorg_cv_cc_flag_unused_command_line_argument=yes 17079else $as_nop 17080 xorg_cv_cc_flag_unused_command_line_argument=no 17081fi 17082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17083fi 17084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17086 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17087 CFLAGS="$xorg_testset_save_CFLAGS" 17088fi 17089 17090found="no" 17091 17092 if test $found = "no" ; then 17093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17095 fi 17096 17097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17099 fi 17100 17101 CFLAGS="$CFLAGS -Werror=address" 17102 17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17104printf %s "checking if $CC supports -Werror=address... " >&6; } 17105 cacheid=xorg_cv_cc_flag__Werror_address 17106 if eval test \${$cacheid+y} 17107then : 17108 printf %s "(cached) " >&6 17109else $as_nop 17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17111/* end confdefs.h. */ 17112int i; 17113int 17114main (void) 17115{ 17116 17117 ; 17118 return 0; 17119} 17120_ACEOF 17121if ac_fn_c_try_link "$LINENO" 17122then : 17123 eval $cacheid=yes 17124else $as_nop 17125 eval $cacheid=no 17126fi 17127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17128 conftest$ac_exeext conftest.$ac_ext 17129fi 17130 17131 17132 CFLAGS="$xorg_testset_save_CFLAGS" 17133 17134 eval supported=\$$cacheid 17135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17136printf "%s\n" "$supported" >&6; } 17137 if test "$supported" = "yes" ; then 17138 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17139 found="yes" 17140 fi 17141 fi 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157xorg_testset_save_CFLAGS="$CFLAGS" 17158 17159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17164then : 17165 printf %s "(cached) " >&6 17166else $as_nop 17167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17168/* end confdefs.h. */ 17169int i; 17170_ACEOF 17171if ac_fn_c_try_compile "$LINENO" 17172then : 17173 xorg_cv_cc_flag_unknown_warning_option=yes 17174else $as_nop 17175 xorg_cv_cc_flag_unknown_warning_option=no 17176fi 17177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17178fi 17179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17182 CFLAGS="$xorg_testset_save_CFLAGS" 17183fi 17184 17185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17188 fi 17189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17192if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17193then : 17194 printf %s "(cached) " >&6 17195else $as_nop 17196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17197/* end confdefs.h. */ 17198int i; 17199_ACEOF 17200if ac_fn_c_try_compile "$LINENO" 17201then : 17202 xorg_cv_cc_flag_unused_command_line_argument=yes 17203else $as_nop 17204 xorg_cv_cc_flag_unused_command_line_argument=no 17205fi 17206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17207fi 17208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17211 CFLAGS="$xorg_testset_save_CFLAGS" 17212fi 17213 17214found="no" 17215 17216 if test $found = "no" ; then 17217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17219 fi 17220 17221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17223 fi 17224 17225 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17226 17227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17228printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17229 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17230 if eval test \${$cacheid+y} 17231then : 17232 printf %s "(cached) " >&6 17233else $as_nop 17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17235/* end confdefs.h. */ 17236int i; 17237int 17238main (void) 17239{ 17240 17241 ; 17242 return 0; 17243} 17244_ACEOF 17245if ac_fn_c_try_link "$LINENO" 17246then : 17247 eval $cacheid=yes 17248else $as_nop 17249 eval $cacheid=no 17250fi 17251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17252 conftest$ac_exeext conftest.$ac_ext 17253fi 17254 17255 17256 CFLAGS="$xorg_testset_save_CFLAGS" 17257 17258 eval supported=\$$cacheid 17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17260printf "%s\n" "$supported" >&6; } 17261 if test "$supported" = "yes" ; then 17262 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17263 found="yes" 17264 fi 17265 fi 17266 17267 if test $found = "no" ; then 17268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17270 fi 17271 17272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17274 fi 17275 17276 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17277 17278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17279printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17280 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17281 if eval test \${$cacheid+y} 17282then : 17283 printf %s "(cached) " >&6 17284else $as_nop 17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17286/* end confdefs.h. */ 17287int i; 17288int 17289main (void) 17290{ 17291 17292 ; 17293 return 0; 17294} 17295_ACEOF 17296if ac_fn_c_try_link "$LINENO" 17297then : 17298 eval $cacheid=yes 17299else $as_nop 17300 eval $cacheid=no 17301fi 17302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17303 conftest$ac_exeext conftest.$ac_ext 17304fi 17305 17306 17307 CFLAGS="$xorg_testset_save_CFLAGS" 17308 17309 eval supported=\$$cacheid 17310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17311printf "%s\n" "$supported" >&6; } 17312 if test "$supported" = "yes" ; then 17313 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17314 found="yes" 17315 fi 17316 fi 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332xorg_testset_save_CFLAGS="$CFLAGS" 17333 17334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17338if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17339then : 17340 printf %s "(cached) " >&6 17341else $as_nop 17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17343/* end confdefs.h. */ 17344int i; 17345_ACEOF 17346if ac_fn_c_try_compile "$LINENO" 17347then : 17348 xorg_cv_cc_flag_unknown_warning_option=yes 17349else $as_nop 17350 xorg_cv_cc_flag_unknown_warning_option=no 17351fi 17352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17353fi 17354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17355printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17357 CFLAGS="$xorg_testset_save_CFLAGS" 17358fi 17359 17360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17363 fi 17364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17366printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17367if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17368then : 17369 printf %s "(cached) " >&6 17370else $as_nop 17371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17372/* end confdefs.h. */ 17373int i; 17374_ACEOF 17375if ac_fn_c_try_compile "$LINENO" 17376then : 17377 xorg_cv_cc_flag_unused_command_line_argument=yes 17378else $as_nop 17379 xorg_cv_cc_flag_unused_command_line_argument=no 17380fi 17381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17382fi 17383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17386 CFLAGS="$xorg_testset_save_CFLAGS" 17387fi 17388 17389found="no" 17390 17391 if test $found = "no" ; then 17392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17394 fi 17395 17396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17398 fi 17399 17400 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17401 17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17403printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17404 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17405 if eval test \${$cacheid+y} 17406then : 17407 printf %s "(cached) " >&6 17408else $as_nop 17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17410/* end confdefs.h. */ 17411int i; 17412int 17413main (void) 17414{ 17415 17416 ; 17417 return 0; 17418} 17419_ACEOF 17420if ac_fn_c_try_link "$LINENO" 17421then : 17422 eval $cacheid=yes 17423else $as_nop 17424 eval $cacheid=no 17425fi 17426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17427 conftest$ac_exeext conftest.$ac_ext 17428fi 17429 17430 17431 CFLAGS="$xorg_testset_save_CFLAGS" 17432 17433 eval supported=\$$cacheid 17434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17435printf "%s\n" "$supported" >&6; } 17436 if test "$supported" = "yes" ; then 17437 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17438 found="yes" 17439 fi 17440 fi 17441 17442 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17443else 17444{ 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 17445printf "%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;} 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459xorg_testset_save_CFLAGS="$CFLAGS" 17460 17461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17465if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17466then : 17467 printf %s "(cached) " >&6 17468else $as_nop 17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17470/* end confdefs.h. */ 17471int i; 17472_ACEOF 17473if ac_fn_c_try_compile "$LINENO" 17474then : 17475 xorg_cv_cc_flag_unknown_warning_option=yes 17476else $as_nop 17477 xorg_cv_cc_flag_unknown_warning_option=no 17478fi 17479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17480fi 17481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17484 CFLAGS="$xorg_testset_save_CFLAGS" 17485fi 17486 17487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17490 fi 17491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17494if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17495then : 17496 printf %s "(cached) " >&6 17497else $as_nop 17498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17499/* end confdefs.h. */ 17500int i; 17501_ACEOF 17502if ac_fn_c_try_compile "$LINENO" 17503then : 17504 xorg_cv_cc_flag_unused_command_line_argument=yes 17505else $as_nop 17506 xorg_cv_cc_flag_unused_command_line_argument=no 17507fi 17508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17509fi 17510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17513 CFLAGS="$xorg_testset_save_CFLAGS" 17514fi 17515 17516found="no" 17517 17518 if test $found = "no" ; then 17519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17521 fi 17522 17523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17525 fi 17526 17527 CFLAGS="$CFLAGS -Wimplicit" 17528 17529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17530printf %s "checking if $CC supports -Wimplicit... " >&6; } 17531 cacheid=xorg_cv_cc_flag__Wimplicit 17532 if eval test \${$cacheid+y} 17533then : 17534 printf %s "(cached) " >&6 17535else $as_nop 17536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17537/* end confdefs.h. */ 17538int i; 17539int 17540main (void) 17541{ 17542 17543 ; 17544 return 0; 17545} 17546_ACEOF 17547if ac_fn_c_try_link "$LINENO" 17548then : 17549 eval $cacheid=yes 17550else $as_nop 17551 eval $cacheid=no 17552fi 17553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17554 conftest$ac_exeext conftest.$ac_ext 17555fi 17556 17557 17558 CFLAGS="$xorg_testset_save_CFLAGS" 17559 17560 eval supported=\$$cacheid 17561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17562printf "%s\n" "$supported" >&6; } 17563 if test "$supported" = "yes" ; then 17564 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17565 found="yes" 17566 fi 17567 fi 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583xorg_testset_save_CFLAGS="$CFLAGS" 17584 17585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17589if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17590then : 17591 printf %s "(cached) " >&6 17592else $as_nop 17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17594/* end confdefs.h. */ 17595int i; 17596_ACEOF 17597if ac_fn_c_try_compile "$LINENO" 17598then : 17599 xorg_cv_cc_flag_unknown_warning_option=yes 17600else $as_nop 17601 xorg_cv_cc_flag_unknown_warning_option=no 17602fi 17603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17604fi 17605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17608 CFLAGS="$xorg_testset_save_CFLAGS" 17609fi 17610 17611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17614 fi 17615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17618if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17619then : 17620 printf %s "(cached) " >&6 17621else $as_nop 17622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17623/* end confdefs.h. */ 17624int i; 17625_ACEOF 17626if ac_fn_c_try_compile "$LINENO" 17627then : 17628 xorg_cv_cc_flag_unused_command_line_argument=yes 17629else $as_nop 17630 xorg_cv_cc_flag_unused_command_line_argument=no 17631fi 17632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17633fi 17634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17637 CFLAGS="$xorg_testset_save_CFLAGS" 17638fi 17639 17640found="no" 17641 17642 if test $found = "no" ; then 17643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17645 fi 17646 17647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17649 fi 17650 17651 CFLAGS="$CFLAGS -Wnonnull" 17652 17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17654printf %s "checking if $CC supports -Wnonnull... " >&6; } 17655 cacheid=xorg_cv_cc_flag__Wnonnull 17656 if eval test \${$cacheid+y} 17657then : 17658 printf %s "(cached) " >&6 17659else $as_nop 17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17661/* end confdefs.h. */ 17662int i; 17663int 17664main (void) 17665{ 17666 17667 ; 17668 return 0; 17669} 17670_ACEOF 17671if ac_fn_c_try_link "$LINENO" 17672then : 17673 eval $cacheid=yes 17674else $as_nop 17675 eval $cacheid=no 17676fi 17677rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17678 conftest$ac_exeext conftest.$ac_ext 17679fi 17680 17681 17682 CFLAGS="$xorg_testset_save_CFLAGS" 17683 17684 eval supported=\$$cacheid 17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17686printf "%s\n" "$supported" >&6; } 17687 if test "$supported" = "yes" ; then 17688 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17689 found="yes" 17690 fi 17691 fi 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707xorg_testset_save_CFLAGS="$CFLAGS" 17708 17709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17713if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17714then : 17715 printf %s "(cached) " >&6 17716else $as_nop 17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17718/* end confdefs.h. */ 17719int i; 17720_ACEOF 17721if ac_fn_c_try_compile "$LINENO" 17722then : 17723 xorg_cv_cc_flag_unknown_warning_option=yes 17724else $as_nop 17725 xorg_cv_cc_flag_unknown_warning_option=no 17726fi 17727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17728fi 17729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17730printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17732 CFLAGS="$xorg_testset_save_CFLAGS" 17733fi 17734 17735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17738 fi 17739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17741printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17742if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17743then : 17744 printf %s "(cached) " >&6 17745else $as_nop 17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17747/* end confdefs.h. */ 17748int i; 17749_ACEOF 17750if ac_fn_c_try_compile "$LINENO" 17751then : 17752 xorg_cv_cc_flag_unused_command_line_argument=yes 17753else $as_nop 17754 xorg_cv_cc_flag_unused_command_line_argument=no 17755fi 17756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17757fi 17758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17761 CFLAGS="$xorg_testset_save_CFLAGS" 17762fi 17763 17764found="no" 17765 17766 if test $found = "no" ; then 17767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17769 fi 17770 17771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17773 fi 17774 17775 CFLAGS="$CFLAGS -Winit-self" 17776 17777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17778printf %s "checking if $CC supports -Winit-self... " >&6; } 17779 cacheid=xorg_cv_cc_flag__Winit_self 17780 if eval test \${$cacheid+y} 17781then : 17782 printf %s "(cached) " >&6 17783else $as_nop 17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17785/* end confdefs.h. */ 17786int i; 17787int 17788main (void) 17789{ 17790 17791 ; 17792 return 0; 17793} 17794_ACEOF 17795if ac_fn_c_try_link "$LINENO" 17796then : 17797 eval $cacheid=yes 17798else $as_nop 17799 eval $cacheid=no 17800fi 17801rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17802 conftest$ac_exeext conftest.$ac_ext 17803fi 17804 17805 17806 CFLAGS="$xorg_testset_save_CFLAGS" 17807 17808 eval supported=\$$cacheid 17809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17810printf "%s\n" "$supported" >&6; } 17811 if test "$supported" = "yes" ; then 17812 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17813 found="yes" 17814 fi 17815 fi 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831xorg_testset_save_CFLAGS="$CFLAGS" 17832 17833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17837if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17838then : 17839 printf %s "(cached) " >&6 17840else $as_nop 17841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17842/* end confdefs.h. */ 17843int i; 17844_ACEOF 17845if ac_fn_c_try_compile "$LINENO" 17846then : 17847 xorg_cv_cc_flag_unknown_warning_option=yes 17848else $as_nop 17849 xorg_cv_cc_flag_unknown_warning_option=no 17850fi 17851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17852fi 17853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17856 CFLAGS="$xorg_testset_save_CFLAGS" 17857fi 17858 17859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17862 fi 17863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17866if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17867then : 17868 printf %s "(cached) " >&6 17869else $as_nop 17870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17871/* end confdefs.h. */ 17872int i; 17873_ACEOF 17874if ac_fn_c_try_compile "$LINENO" 17875then : 17876 xorg_cv_cc_flag_unused_command_line_argument=yes 17877else $as_nop 17878 xorg_cv_cc_flag_unused_command_line_argument=no 17879fi 17880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17881fi 17882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17885 CFLAGS="$xorg_testset_save_CFLAGS" 17886fi 17887 17888found="no" 17889 17890 if test $found = "no" ; then 17891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17893 fi 17894 17895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17897 fi 17898 17899 CFLAGS="$CFLAGS -Wmain" 17900 17901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17902printf %s "checking if $CC supports -Wmain... " >&6; } 17903 cacheid=xorg_cv_cc_flag__Wmain 17904 if eval test \${$cacheid+y} 17905then : 17906 printf %s "(cached) " >&6 17907else $as_nop 17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17909/* end confdefs.h. */ 17910int i; 17911int 17912main (void) 17913{ 17914 17915 ; 17916 return 0; 17917} 17918_ACEOF 17919if ac_fn_c_try_link "$LINENO" 17920then : 17921 eval $cacheid=yes 17922else $as_nop 17923 eval $cacheid=no 17924fi 17925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17926 conftest$ac_exeext conftest.$ac_ext 17927fi 17928 17929 17930 CFLAGS="$xorg_testset_save_CFLAGS" 17931 17932 eval supported=\$$cacheid 17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17934printf "%s\n" "$supported" >&6; } 17935 if test "$supported" = "yes" ; then 17936 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17937 found="yes" 17938 fi 17939 fi 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955xorg_testset_save_CFLAGS="$CFLAGS" 17956 17957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17961if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17962then : 17963 printf %s "(cached) " >&6 17964else $as_nop 17965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17966/* end confdefs.h. */ 17967int i; 17968_ACEOF 17969if ac_fn_c_try_compile "$LINENO" 17970then : 17971 xorg_cv_cc_flag_unknown_warning_option=yes 17972else $as_nop 17973 xorg_cv_cc_flag_unknown_warning_option=no 17974fi 17975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17976fi 17977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17980 CFLAGS="$xorg_testset_save_CFLAGS" 17981fi 17982 17983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17986 fi 17987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17990if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17991then : 17992 printf %s "(cached) " >&6 17993else $as_nop 17994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17995/* end confdefs.h. */ 17996int i; 17997_ACEOF 17998if ac_fn_c_try_compile "$LINENO" 17999then : 18000 xorg_cv_cc_flag_unused_command_line_argument=yes 18001else $as_nop 18002 xorg_cv_cc_flag_unused_command_line_argument=no 18003fi 18004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18005fi 18006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18009 CFLAGS="$xorg_testset_save_CFLAGS" 18010fi 18011 18012found="no" 18013 18014 if test $found = "no" ; then 18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18017 fi 18018 18019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18021 fi 18022 18023 CFLAGS="$CFLAGS -Wmissing-braces" 18024 18025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18026printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18027 cacheid=xorg_cv_cc_flag__Wmissing_braces 18028 if eval test \${$cacheid+y} 18029then : 18030 printf %s "(cached) " >&6 18031else $as_nop 18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18033/* end confdefs.h. */ 18034int i; 18035int 18036main (void) 18037{ 18038 18039 ; 18040 return 0; 18041} 18042_ACEOF 18043if ac_fn_c_try_link "$LINENO" 18044then : 18045 eval $cacheid=yes 18046else $as_nop 18047 eval $cacheid=no 18048fi 18049rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18050 conftest$ac_exeext conftest.$ac_ext 18051fi 18052 18053 18054 CFLAGS="$xorg_testset_save_CFLAGS" 18055 18056 eval supported=\$$cacheid 18057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18058printf "%s\n" "$supported" >&6; } 18059 if test "$supported" = "yes" ; then 18060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18061 found="yes" 18062 fi 18063 fi 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079xorg_testset_save_CFLAGS="$CFLAGS" 18080 18081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18085if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18086then : 18087 printf %s "(cached) " >&6 18088else $as_nop 18089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18090/* end confdefs.h. */ 18091int i; 18092_ACEOF 18093if ac_fn_c_try_compile "$LINENO" 18094then : 18095 xorg_cv_cc_flag_unknown_warning_option=yes 18096else $as_nop 18097 xorg_cv_cc_flag_unknown_warning_option=no 18098fi 18099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18100fi 18101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18102printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18104 CFLAGS="$xorg_testset_save_CFLAGS" 18105fi 18106 18107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18110 fi 18111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18113printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18114if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18115then : 18116 printf %s "(cached) " >&6 18117else $as_nop 18118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18119/* end confdefs.h. */ 18120int i; 18121_ACEOF 18122if ac_fn_c_try_compile "$LINENO" 18123then : 18124 xorg_cv_cc_flag_unused_command_line_argument=yes 18125else $as_nop 18126 xorg_cv_cc_flag_unused_command_line_argument=no 18127fi 18128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18129fi 18130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18133 CFLAGS="$xorg_testset_save_CFLAGS" 18134fi 18135 18136found="no" 18137 18138 if test $found = "no" ; then 18139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18141 fi 18142 18143 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18145 fi 18146 18147 CFLAGS="$CFLAGS -Wsequence-point" 18148 18149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18150printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18151 cacheid=xorg_cv_cc_flag__Wsequence_point 18152 if eval test \${$cacheid+y} 18153then : 18154 printf %s "(cached) " >&6 18155else $as_nop 18156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18157/* end confdefs.h. */ 18158int i; 18159int 18160main (void) 18161{ 18162 18163 ; 18164 return 0; 18165} 18166_ACEOF 18167if ac_fn_c_try_link "$LINENO" 18168then : 18169 eval $cacheid=yes 18170else $as_nop 18171 eval $cacheid=no 18172fi 18173rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18174 conftest$ac_exeext conftest.$ac_ext 18175fi 18176 18177 18178 CFLAGS="$xorg_testset_save_CFLAGS" 18179 18180 eval supported=\$$cacheid 18181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18182printf "%s\n" "$supported" >&6; } 18183 if test "$supported" = "yes" ; then 18184 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18185 found="yes" 18186 fi 18187 fi 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203xorg_testset_save_CFLAGS="$CFLAGS" 18204 18205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18208printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18209if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18210then : 18211 printf %s "(cached) " >&6 18212else $as_nop 18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18214/* end confdefs.h. */ 18215int i; 18216_ACEOF 18217if ac_fn_c_try_compile "$LINENO" 18218then : 18219 xorg_cv_cc_flag_unknown_warning_option=yes 18220else $as_nop 18221 xorg_cv_cc_flag_unknown_warning_option=no 18222fi 18223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18224fi 18225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18226printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18228 CFLAGS="$xorg_testset_save_CFLAGS" 18229fi 18230 18231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18234 fi 18235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18237printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18238if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18239then : 18240 printf %s "(cached) " >&6 18241else $as_nop 18242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18243/* end confdefs.h. */ 18244int i; 18245_ACEOF 18246if ac_fn_c_try_compile "$LINENO" 18247then : 18248 xorg_cv_cc_flag_unused_command_line_argument=yes 18249else $as_nop 18250 xorg_cv_cc_flag_unused_command_line_argument=no 18251fi 18252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18253fi 18254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18257 CFLAGS="$xorg_testset_save_CFLAGS" 18258fi 18259 18260found="no" 18261 18262 if test $found = "no" ; then 18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18265 fi 18266 18267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18269 fi 18270 18271 CFLAGS="$CFLAGS -Wreturn-type" 18272 18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18274printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18275 cacheid=xorg_cv_cc_flag__Wreturn_type 18276 if eval test \${$cacheid+y} 18277then : 18278 printf %s "(cached) " >&6 18279else $as_nop 18280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18281/* end confdefs.h. */ 18282int i; 18283int 18284main (void) 18285{ 18286 18287 ; 18288 return 0; 18289} 18290_ACEOF 18291if ac_fn_c_try_link "$LINENO" 18292then : 18293 eval $cacheid=yes 18294else $as_nop 18295 eval $cacheid=no 18296fi 18297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18298 conftest$ac_exeext conftest.$ac_ext 18299fi 18300 18301 18302 CFLAGS="$xorg_testset_save_CFLAGS" 18303 18304 eval supported=\$$cacheid 18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18306printf "%s\n" "$supported" >&6; } 18307 if test "$supported" = "yes" ; then 18308 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18309 found="yes" 18310 fi 18311 fi 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327xorg_testset_save_CFLAGS="$CFLAGS" 18328 18329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18332printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18333if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18334then : 18335 printf %s "(cached) " >&6 18336else $as_nop 18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18338/* end confdefs.h. */ 18339int i; 18340_ACEOF 18341if ac_fn_c_try_compile "$LINENO" 18342then : 18343 xorg_cv_cc_flag_unknown_warning_option=yes 18344else $as_nop 18345 xorg_cv_cc_flag_unknown_warning_option=no 18346fi 18347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18348fi 18349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18352 CFLAGS="$xorg_testset_save_CFLAGS" 18353fi 18354 18355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18358 fi 18359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18362if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18363then : 18364 printf %s "(cached) " >&6 18365else $as_nop 18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18367/* end confdefs.h. */ 18368int i; 18369_ACEOF 18370if ac_fn_c_try_compile "$LINENO" 18371then : 18372 xorg_cv_cc_flag_unused_command_line_argument=yes 18373else $as_nop 18374 xorg_cv_cc_flag_unused_command_line_argument=no 18375fi 18376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18377fi 18378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18381 CFLAGS="$xorg_testset_save_CFLAGS" 18382fi 18383 18384found="no" 18385 18386 if test $found = "no" ; then 18387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18389 fi 18390 18391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18393 fi 18394 18395 CFLAGS="$CFLAGS -Wtrigraphs" 18396 18397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18398printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18399 cacheid=xorg_cv_cc_flag__Wtrigraphs 18400 if eval test \${$cacheid+y} 18401then : 18402 printf %s "(cached) " >&6 18403else $as_nop 18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18405/* end confdefs.h. */ 18406int i; 18407int 18408main (void) 18409{ 18410 18411 ; 18412 return 0; 18413} 18414_ACEOF 18415if ac_fn_c_try_link "$LINENO" 18416then : 18417 eval $cacheid=yes 18418else $as_nop 18419 eval $cacheid=no 18420fi 18421rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18422 conftest$ac_exeext conftest.$ac_ext 18423fi 18424 18425 18426 CFLAGS="$xorg_testset_save_CFLAGS" 18427 18428 eval supported=\$$cacheid 18429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18430printf "%s\n" "$supported" >&6; } 18431 if test "$supported" = "yes" ; then 18432 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18433 found="yes" 18434 fi 18435 fi 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451xorg_testset_save_CFLAGS="$CFLAGS" 18452 18453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18457if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18458then : 18459 printf %s "(cached) " >&6 18460else $as_nop 18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18462/* end confdefs.h. */ 18463int i; 18464_ACEOF 18465if ac_fn_c_try_compile "$LINENO" 18466then : 18467 xorg_cv_cc_flag_unknown_warning_option=yes 18468else $as_nop 18469 xorg_cv_cc_flag_unknown_warning_option=no 18470fi 18471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18472fi 18473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18476 CFLAGS="$xorg_testset_save_CFLAGS" 18477fi 18478 18479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18482 fi 18483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18486if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18487then : 18488 printf %s "(cached) " >&6 18489else $as_nop 18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18491/* end confdefs.h. */ 18492int i; 18493_ACEOF 18494if ac_fn_c_try_compile "$LINENO" 18495then : 18496 xorg_cv_cc_flag_unused_command_line_argument=yes 18497else $as_nop 18498 xorg_cv_cc_flag_unused_command_line_argument=no 18499fi 18500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18501fi 18502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18505 CFLAGS="$xorg_testset_save_CFLAGS" 18506fi 18507 18508found="no" 18509 18510 if test $found = "no" ; then 18511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18513 fi 18514 18515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18517 fi 18518 18519 CFLAGS="$CFLAGS -Warray-bounds" 18520 18521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18522printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18523 cacheid=xorg_cv_cc_flag__Warray_bounds 18524 if eval test \${$cacheid+y} 18525then : 18526 printf %s "(cached) " >&6 18527else $as_nop 18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18529/* end confdefs.h. */ 18530int i; 18531int 18532main (void) 18533{ 18534 18535 ; 18536 return 0; 18537} 18538_ACEOF 18539if ac_fn_c_try_link "$LINENO" 18540then : 18541 eval $cacheid=yes 18542else $as_nop 18543 eval $cacheid=no 18544fi 18545rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18546 conftest$ac_exeext conftest.$ac_ext 18547fi 18548 18549 18550 CFLAGS="$xorg_testset_save_CFLAGS" 18551 18552 eval supported=\$$cacheid 18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18554printf "%s\n" "$supported" >&6; } 18555 if test "$supported" = "yes" ; then 18556 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18557 found="yes" 18558 fi 18559 fi 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575xorg_testset_save_CFLAGS="$CFLAGS" 18576 18577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18580printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18581if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18582then : 18583 printf %s "(cached) " >&6 18584else $as_nop 18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18586/* end confdefs.h. */ 18587int i; 18588_ACEOF 18589if ac_fn_c_try_compile "$LINENO" 18590then : 18591 xorg_cv_cc_flag_unknown_warning_option=yes 18592else $as_nop 18593 xorg_cv_cc_flag_unknown_warning_option=no 18594fi 18595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18596fi 18597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18598printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18600 CFLAGS="$xorg_testset_save_CFLAGS" 18601fi 18602 18603if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18606 fi 18607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18609printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18610if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18611then : 18612 printf %s "(cached) " >&6 18613else $as_nop 18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18615/* end confdefs.h. */ 18616int i; 18617_ACEOF 18618if ac_fn_c_try_compile "$LINENO" 18619then : 18620 xorg_cv_cc_flag_unused_command_line_argument=yes 18621else $as_nop 18622 xorg_cv_cc_flag_unused_command_line_argument=no 18623fi 18624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18625fi 18626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18627printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18629 CFLAGS="$xorg_testset_save_CFLAGS" 18630fi 18631 18632found="no" 18633 18634 if test $found = "no" ; then 18635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18637 fi 18638 18639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18641 fi 18642 18643 CFLAGS="$CFLAGS -Wwrite-strings" 18644 18645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18646printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18647 cacheid=xorg_cv_cc_flag__Wwrite_strings 18648 if eval test \${$cacheid+y} 18649then : 18650 printf %s "(cached) " >&6 18651else $as_nop 18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18653/* end confdefs.h. */ 18654int i; 18655int 18656main (void) 18657{ 18658 18659 ; 18660 return 0; 18661} 18662_ACEOF 18663if ac_fn_c_try_link "$LINENO" 18664then : 18665 eval $cacheid=yes 18666else $as_nop 18667 eval $cacheid=no 18668fi 18669rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18670 conftest$ac_exeext conftest.$ac_ext 18671fi 18672 18673 18674 CFLAGS="$xorg_testset_save_CFLAGS" 18675 18676 eval supported=\$$cacheid 18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18678printf "%s\n" "$supported" >&6; } 18679 if test "$supported" = "yes" ; then 18680 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18681 found="yes" 18682 fi 18683 fi 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699xorg_testset_save_CFLAGS="$CFLAGS" 18700 18701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18704printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18705if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18706then : 18707 printf %s "(cached) " >&6 18708else $as_nop 18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18710/* end confdefs.h. */ 18711int i; 18712_ACEOF 18713if ac_fn_c_try_compile "$LINENO" 18714then : 18715 xorg_cv_cc_flag_unknown_warning_option=yes 18716else $as_nop 18717 xorg_cv_cc_flag_unknown_warning_option=no 18718fi 18719rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18720fi 18721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18722printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18724 CFLAGS="$xorg_testset_save_CFLAGS" 18725fi 18726 18727if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18730 fi 18731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18733printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18734if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18735then : 18736 printf %s "(cached) " >&6 18737else $as_nop 18738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18739/* end confdefs.h. */ 18740int i; 18741_ACEOF 18742if ac_fn_c_try_compile "$LINENO" 18743then : 18744 xorg_cv_cc_flag_unused_command_line_argument=yes 18745else $as_nop 18746 xorg_cv_cc_flag_unused_command_line_argument=no 18747fi 18748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18749fi 18750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18751printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18753 CFLAGS="$xorg_testset_save_CFLAGS" 18754fi 18755 18756found="no" 18757 18758 if test $found = "no" ; then 18759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18761 fi 18762 18763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18765 fi 18766 18767 CFLAGS="$CFLAGS -Waddress" 18768 18769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18770printf %s "checking if $CC supports -Waddress... " >&6; } 18771 cacheid=xorg_cv_cc_flag__Waddress 18772 if eval test \${$cacheid+y} 18773then : 18774 printf %s "(cached) " >&6 18775else $as_nop 18776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18777/* end confdefs.h. */ 18778int i; 18779int 18780main (void) 18781{ 18782 18783 ; 18784 return 0; 18785} 18786_ACEOF 18787if ac_fn_c_try_link "$LINENO" 18788then : 18789 eval $cacheid=yes 18790else $as_nop 18791 eval $cacheid=no 18792fi 18793rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18794 conftest$ac_exeext conftest.$ac_ext 18795fi 18796 18797 18798 CFLAGS="$xorg_testset_save_CFLAGS" 18799 18800 eval supported=\$$cacheid 18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18802printf "%s\n" "$supported" >&6; } 18803 if test "$supported" = "yes" ; then 18804 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18805 found="yes" 18806 fi 18807 fi 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823xorg_testset_save_CFLAGS="$CFLAGS" 18824 18825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18828printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18829if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18830then : 18831 printf %s "(cached) " >&6 18832else $as_nop 18833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18834/* end confdefs.h. */ 18835int i; 18836_ACEOF 18837if ac_fn_c_try_compile "$LINENO" 18838then : 18839 xorg_cv_cc_flag_unknown_warning_option=yes 18840else $as_nop 18841 xorg_cv_cc_flag_unknown_warning_option=no 18842fi 18843rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18844fi 18845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18848 CFLAGS="$xorg_testset_save_CFLAGS" 18849fi 18850 18851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18854 fi 18855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18858if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18859then : 18860 printf %s "(cached) " >&6 18861else $as_nop 18862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18863/* end confdefs.h. */ 18864int i; 18865_ACEOF 18866if ac_fn_c_try_compile "$LINENO" 18867then : 18868 xorg_cv_cc_flag_unused_command_line_argument=yes 18869else $as_nop 18870 xorg_cv_cc_flag_unused_command_line_argument=no 18871fi 18872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18873fi 18874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18875printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18877 CFLAGS="$xorg_testset_save_CFLAGS" 18878fi 18879 18880found="no" 18881 18882 if test $found = "no" ; then 18883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18885 fi 18886 18887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18889 fi 18890 18891 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18892 18893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18894printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18895 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18896 if eval test \${$cacheid+y} 18897then : 18898 printf %s "(cached) " >&6 18899else $as_nop 18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18901/* end confdefs.h. */ 18902int i; 18903int 18904main (void) 18905{ 18906 18907 ; 18908 return 0; 18909} 18910_ACEOF 18911if ac_fn_c_try_link "$LINENO" 18912then : 18913 eval $cacheid=yes 18914else $as_nop 18915 eval $cacheid=no 18916fi 18917rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18918 conftest$ac_exeext conftest.$ac_ext 18919fi 18920 18921 18922 CFLAGS="$xorg_testset_save_CFLAGS" 18923 18924 eval supported=\$$cacheid 18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18926printf "%s\n" "$supported" >&6; } 18927 if test "$supported" = "yes" ; then 18928 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18929 found="yes" 18930 fi 18931 fi 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947xorg_testset_save_CFLAGS="$CFLAGS" 18948 18949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18952printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18953if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18954then : 18955 printf %s "(cached) " >&6 18956else $as_nop 18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18958/* end confdefs.h. */ 18959int i; 18960_ACEOF 18961if ac_fn_c_try_compile "$LINENO" 18962then : 18963 xorg_cv_cc_flag_unknown_warning_option=yes 18964else $as_nop 18965 xorg_cv_cc_flag_unknown_warning_option=no 18966fi 18967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18968fi 18969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18970printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18972 CFLAGS="$xorg_testset_save_CFLAGS" 18973fi 18974 18975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18978 fi 18979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18981printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18982if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18983then : 18984 printf %s "(cached) " >&6 18985else $as_nop 18986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18987/* end confdefs.h. */ 18988int i; 18989_ACEOF 18990if ac_fn_c_try_compile "$LINENO" 18991then : 18992 xorg_cv_cc_flag_unused_command_line_argument=yes 18993else $as_nop 18994 xorg_cv_cc_flag_unused_command_line_argument=no 18995fi 18996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18997fi 18998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18999printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19001 CFLAGS="$xorg_testset_save_CFLAGS" 19002fi 19003 19004found="no" 19005 19006 if test $found = "no" ; then 19007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19009 fi 19010 19011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19013 fi 19014 19015 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19016 19017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19018printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19019 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19020 if eval test \${$cacheid+y} 19021then : 19022 printf %s "(cached) " >&6 19023else $as_nop 19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19025/* end confdefs.h. */ 19026int i; 19027int 19028main (void) 19029{ 19030 19031 ; 19032 return 0; 19033} 19034_ACEOF 19035if ac_fn_c_try_link "$LINENO" 19036then : 19037 eval $cacheid=yes 19038else $as_nop 19039 eval $cacheid=no 19040fi 19041rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19042 conftest$ac_exeext conftest.$ac_ext 19043fi 19044 19045 19046 CFLAGS="$xorg_testset_save_CFLAGS" 19047 19048 eval supported=\$$cacheid 19049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19050printf "%s\n" "$supported" >&6; } 19051 if test "$supported" = "yes" ; then 19052 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19053 found="yes" 19054 fi 19055 fi 19056 19057 19058fi 19059 19060 19061 19062 19063 19064 19065 19066 CWARNFLAGS="$BASE_CFLAGS" 19067 if test "x$GCC" = xyes ; then 19068 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19069 fi 19070 19071 19072 19073 19074 19075 19076 19077 19078# Check whether --enable-strict-compilation was given. 19079if test ${enable_strict_compilation+y} 19080then : 19081 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19082else $as_nop 19083 STRICT_COMPILE=no 19084fi 19085 19086 19087 19088 19089 19090 19091STRICT_CFLAGS="" 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105xorg_testset_save_CFLAGS="$CFLAGS" 19106 19107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19111if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19112then : 19113 printf %s "(cached) " >&6 19114else $as_nop 19115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19116/* end confdefs.h. */ 19117int i; 19118_ACEOF 19119if ac_fn_c_try_compile "$LINENO" 19120then : 19121 xorg_cv_cc_flag_unknown_warning_option=yes 19122else $as_nop 19123 xorg_cv_cc_flag_unknown_warning_option=no 19124fi 19125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19126fi 19127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19130 CFLAGS="$xorg_testset_save_CFLAGS" 19131fi 19132 19133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19136 fi 19137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19140if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19141then : 19142 printf %s "(cached) " >&6 19143else $as_nop 19144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19145/* end confdefs.h. */ 19146int i; 19147_ACEOF 19148if ac_fn_c_try_compile "$LINENO" 19149then : 19150 xorg_cv_cc_flag_unused_command_line_argument=yes 19151else $as_nop 19152 xorg_cv_cc_flag_unused_command_line_argument=no 19153fi 19154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19155fi 19156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19157printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19159 CFLAGS="$xorg_testset_save_CFLAGS" 19160fi 19161 19162found="no" 19163 19164 if test $found = "no" ; then 19165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19167 fi 19168 19169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19171 fi 19172 19173 CFLAGS="$CFLAGS -pedantic" 19174 19175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19176printf %s "checking if $CC supports -pedantic... " >&6; } 19177 cacheid=xorg_cv_cc_flag__pedantic 19178 if eval test \${$cacheid+y} 19179then : 19180 printf %s "(cached) " >&6 19181else $as_nop 19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19183/* end confdefs.h. */ 19184int i; 19185int 19186main (void) 19187{ 19188 19189 ; 19190 return 0; 19191} 19192_ACEOF 19193if ac_fn_c_try_link "$LINENO" 19194then : 19195 eval $cacheid=yes 19196else $as_nop 19197 eval $cacheid=no 19198fi 19199rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19200 conftest$ac_exeext conftest.$ac_ext 19201fi 19202 19203 19204 CFLAGS="$xorg_testset_save_CFLAGS" 19205 19206 eval supported=\$$cacheid 19207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19208printf "%s\n" "$supported" >&6; } 19209 if test "$supported" = "yes" ; then 19210 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19211 found="yes" 19212 fi 19213 fi 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229xorg_testset_save_CFLAGS="$CFLAGS" 19230 19231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19235if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19236then : 19237 printf %s "(cached) " >&6 19238else $as_nop 19239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19240/* end confdefs.h. */ 19241int i; 19242_ACEOF 19243if ac_fn_c_try_compile "$LINENO" 19244then : 19245 xorg_cv_cc_flag_unknown_warning_option=yes 19246else $as_nop 19247 xorg_cv_cc_flag_unknown_warning_option=no 19248fi 19249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19250fi 19251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19252printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19253 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19254 CFLAGS="$xorg_testset_save_CFLAGS" 19255fi 19256 19257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19260 fi 19261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19263printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19264if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19265then : 19266 printf %s "(cached) " >&6 19267else $as_nop 19268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19269/* end confdefs.h. */ 19270int i; 19271_ACEOF 19272if ac_fn_c_try_compile "$LINENO" 19273then : 19274 xorg_cv_cc_flag_unused_command_line_argument=yes 19275else $as_nop 19276 xorg_cv_cc_flag_unused_command_line_argument=no 19277fi 19278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19279fi 19280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19281printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19283 CFLAGS="$xorg_testset_save_CFLAGS" 19284fi 19285 19286found="no" 19287 19288 if test $found = "no" ; then 19289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19291 fi 19292 19293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19295 fi 19296 19297 CFLAGS="$CFLAGS -Werror" 19298 19299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19300printf %s "checking if $CC supports -Werror... " >&6; } 19301 cacheid=xorg_cv_cc_flag__Werror 19302 if eval test \${$cacheid+y} 19303then : 19304 printf %s "(cached) " >&6 19305else $as_nop 19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19307/* end confdefs.h. */ 19308int i; 19309int 19310main (void) 19311{ 19312 19313 ; 19314 return 0; 19315} 19316_ACEOF 19317if ac_fn_c_try_link "$LINENO" 19318then : 19319 eval $cacheid=yes 19320else $as_nop 19321 eval $cacheid=no 19322fi 19323rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19324 conftest$ac_exeext conftest.$ac_ext 19325fi 19326 19327 19328 CFLAGS="$xorg_testset_save_CFLAGS" 19329 19330 eval supported=\$$cacheid 19331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19332printf "%s\n" "$supported" >&6; } 19333 if test "$supported" = "yes" ; then 19334 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19335 found="yes" 19336 fi 19337 fi 19338 19339 if test $found = "no" ; then 19340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19342 fi 19343 19344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19346 fi 19347 19348 CFLAGS="$CFLAGS -errwarn" 19349 19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19351printf %s "checking if $CC supports -errwarn... " >&6; } 19352 cacheid=xorg_cv_cc_flag__errwarn 19353 if eval test \${$cacheid+y} 19354then : 19355 printf %s "(cached) " >&6 19356else $as_nop 19357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19358/* end confdefs.h. */ 19359int i; 19360int 19361main (void) 19362{ 19363 19364 ; 19365 return 0; 19366} 19367_ACEOF 19368if ac_fn_c_try_link "$LINENO" 19369then : 19370 eval $cacheid=yes 19371else $as_nop 19372 eval $cacheid=no 19373fi 19374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19375 conftest$ac_exeext conftest.$ac_ext 19376fi 19377 19378 19379 CFLAGS="$xorg_testset_save_CFLAGS" 19380 19381 eval supported=\$$cacheid 19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19383printf "%s\n" "$supported" >&6; } 19384 if test "$supported" = "yes" ; then 19385 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19386 found="yes" 19387 fi 19388 fi 19389 19390 19391 19392# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19393# activate it with -Werror, so we add it here explicitly. 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407xorg_testset_save_CFLAGS="$CFLAGS" 19408 19409if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19410 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19412printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19413if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19414then : 19415 printf %s "(cached) " >&6 19416else $as_nop 19417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19418/* end confdefs.h. */ 19419int i; 19420_ACEOF 19421if ac_fn_c_try_compile "$LINENO" 19422then : 19423 xorg_cv_cc_flag_unknown_warning_option=yes 19424else $as_nop 19425 xorg_cv_cc_flag_unknown_warning_option=no 19426fi 19427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19428fi 19429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19430printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19432 CFLAGS="$xorg_testset_save_CFLAGS" 19433fi 19434 19435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19438 fi 19439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19441printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19442if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19443then : 19444 printf %s "(cached) " >&6 19445else $as_nop 19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19447/* end confdefs.h. */ 19448int i; 19449_ACEOF 19450if ac_fn_c_try_compile "$LINENO" 19451then : 19452 xorg_cv_cc_flag_unused_command_line_argument=yes 19453else $as_nop 19454 xorg_cv_cc_flag_unused_command_line_argument=no 19455fi 19456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19457fi 19458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19459printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19461 CFLAGS="$xorg_testset_save_CFLAGS" 19462fi 19463 19464found="no" 19465 19466 if test $found = "no" ; then 19467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19469 fi 19470 19471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19473 fi 19474 19475 CFLAGS="$CFLAGS -Werror=attributes" 19476 19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19478printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19479 cacheid=xorg_cv_cc_flag__Werror_attributes 19480 if eval test \${$cacheid+y} 19481then : 19482 printf %s "(cached) " >&6 19483else $as_nop 19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19485/* end confdefs.h. */ 19486int i; 19487int 19488main (void) 19489{ 19490 19491 ; 19492 return 0; 19493} 19494_ACEOF 19495if ac_fn_c_try_link "$LINENO" 19496then : 19497 eval $cacheid=yes 19498else $as_nop 19499 eval $cacheid=no 19500fi 19501rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19502 conftest$ac_exeext conftest.$ac_ext 19503fi 19504 19505 19506 CFLAGS="$xorg_testset_save_CFLAGS" 19507 19508 eval supported=\$$cacheid 19509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19510printf "%s\n" "$supported" >&6; } 19511 if test "$supported" = "yes" ; then 19512 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19513 found="yes" 19514 fi 19515 fi 19516 19517 19518 19519if test "x$STRICT_COMPILE" = "xyes"; then 19520 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19521 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19522fi 19523 19524 19525 19526 19527 19528 19529cat >>confdefs.h <<_ACEOF 19530#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19531_ACEOF 19532 19533 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19534 if test "x$PVM" = "x"; then 19535 PVM="0" 19536 fi 19537 19538printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19539 19540 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19541 if test "x$PVP" = "x"; then 19542 PVP="0" 19543 fi 19544 19545printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19546 19547 19548 19549CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19550mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19551|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19552touch \$(top_srcdir)/ChangeLog; \ 19553echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19554 19555 19556 19557 19558macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19559INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19560mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19561|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19562touch \$(top_srcdir)/INSTALL; \ 19563echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19564 19565 19566 19567 19568 19569 19570case $host_os in 19571 solaris*) 19572 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19573 # check for a man page file found in later versions that use 19574 # traditional section numbers instead 19575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19576printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19577if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19578then : 19579 printf %s "(cached) " >&6 19580else $as_nop 19581 test "$cross_compiling" = yes && 19582 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19583if test -r "/usr/share/man/man7/attributes.7"; then 19584 ac_cv_file__usr_share_man_man7_attributes_7=yes 19585else 19586 ac_cv_file__usr_share_man_man7_attributes_7=no 19587fi 19588fi 19589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19590printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19591if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19592then : 19593 SYSV_MAN_SECTIONS=false 19594else $as_nop 19595 SYSV_MAN_SECTIONS=true 19596fi 19597 19598 ;; 19599 *) SYSV_MAN_SECTIONS=false ;; 19600esac 19601 19602if test x$APP_MAN_SUFFIX = x ; then 19603 APP_MAN_SUFFIX=1 19604fi 19605if test x$APP_MAN_DIR = x ; then 19606 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19607fi 19608 19609if test x$LIB_MAN_SUFFIX = x ; then 19610 LIB_MAN_SUFFIX=3 19611fi 19612if test x$LIB_MAN_DIR = x ; then 19613 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19614fi 19615 19616if test x$FILE_MAN_SUFFIX = x ; then 19617 case $SYSV_MAN_SECTIONS in 19618 true) FILE_MAN_SUFFIX=4 ;; 19619 *) FILE_MAN_SUFFIX=5 ;; 19620 esac 19621fi 19622if test x$FILE_MAN_DIR = x ; then 19623 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19624fi 19625 19626if test x$MISC_MAN_SUFFIX = x ; then 19627 case $SYSV_MAN_SECTIONS in 19628 true) MISC_MAN_SUFFIX=5 ;; 19629 *) MISC_MAN_SUFFIX=7 ;; 19630 esac 19631fi 19632if test x$MISC_MAN_DIR = x ; then 19633 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19634fi 19635 19636if test x$DRIVER_MAN_SUFFIX = x ; then 19637 case $SYSV_MAN_SECTIONS in 19638 true) DRIVER_MAN_SUFFIX=7 ;; 19639 *) DRIVER_MAN_SUFFIX=4 ;; 19640 esac 19641fi 19642if test x$DRIVER_MAN_DIR = x ; then 19643 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19644fi 19645 19646if test x$ADMIN_MAN_SUFFIX = x ; then 19647 case $SYSV_MAN_SECTIONS in 19648 true) ADMIN_MAN_SUFFIX=1m ;; 19649 *) ADMIN_MAN_SUFFIX=8 ;; 19650 esac 19651fi 19652if test x$ADMIN_MAN_DIR = x ; then 19653 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19654fi 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670XORG_MAN_PAGE="X Version 11" 19671 19672MAN_SUBSTS="\ 19673 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19674 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19675 -e 's|__xservername__|Xorg|g' \ 19676 -e 's|__xconfigfile__|xorg.conf|g' \ 19677 -e 's|__projectroot__|\$(prefix)|g' \ 19678 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19679 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19680 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19681 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19682 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19683 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19684 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19685 19686 19687 19688# Check whether --enable-silent-rules was given. 19689if test ${enable_silent_rules+y} 19690then : 19691 enableval=$enable_silent_rules; 19692fi 19693 19694case $enable_silent_rules in # ((( 19695 yes) AM_DEFAULT_VERBOSITY=0;; 19696 no) AM_DEFAULT_VERBOSITY=1;; 19697 *) AM_DEFAULT_VERBOSITY=0;; 19698esac 19699am_make=${MAKE-make} 19700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19701printf %s "checking whether $am_make supports nested variables... " >&6; } 19702if test ${am_cv_make_support_nested_variables+y} 19703then : 19704 printf %s "(cached) " >&6 19705else $as_nop 19706 if printf "%s\n" 'TRUE=$(BAR$(V)) 19707BAR0=false 19708BAR1=true 19709V=1 19710am__doit: 19711 @$(TRUE) 19712.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19713 am_cv_make_support_nested_variables=yes 19714else 19715 am_cv_make_support_nested_variables=no 19716fi 19717fi 19718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19719printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19720if test $am_cv_make_support_nested_variables = yes; then 19721 AM_V='$(V)' 19722 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19723else 19724 AM_V=$AM_DEFAULT_VERBOSITY 19725 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19726fi 19727AM_BACKSLASH='\' 19728 19729 19730 19731# Checks for programs. 19732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 19733printf %s "checking whether ln -s works... " >&6; } 19734LN_S=$as_ln_s 19735if test "$LN_S" = "ln -s"; then 19736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19737printf "%s\n" "yes" >&6; } 19738else 19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 19740printf "%s\n" "no, using $LN_S" >&6; } 19741fi 19742 19743 19744# Checks for library functions. 19745ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 19746if test "x$ac_cv_func_explicit_bzero" = xyes 19747then : 19748 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 19749 19750fi 19751ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" 19752if test "x$ac_cv_func_pathconf" = xyes 19753then : 19754 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h 19755 19756fi 19757 19758 19759# Obtain compiler/linker options for dependencies 19760 19761pkg_failed=no 19762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XAU" >&5 19763printf %s "checking for XAU... " >&6; } 19764 19765if test -n "$XAU_CFLAGS"; then 19766 pkg_cv_XAU_CFLAGS="$XAU_CFLAGS" 19767 elif test -n "$PKG_CONFIG"; then 19768 if test -n "$PKG_CONFIG" && \ 19769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 19770 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 19771 ac_status=$? 19772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19773 test $ac_status = 0; }; then 19774 pkg_cv_XAU_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 19775 test "x$?" != "x0" && pkg_failed=yes 19776else 19777 pkg_failed=yes 19778fi 19779 else 19780 pkg_failed=untried 19781fi 19782if test -n "$XAU_LIBS"; then 19783 pkg_cv_XAU_LIBS="$XAU_LIBS" 19784 elif test -n "$PKG_CONFIG"; then 19785 if test -n "$PKG_CONFIG" && \ 19786 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 19787 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 19788 ac_status=$? 19789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19790 test $ac_status = 0; }; then 19791 pkg_cv_XAU_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 19792 test "x$?" != "x0" && pkg_failed=yes 19793else 19794 pkg_failed=yes 19795fi 19796 else 19797 pkg_failed=untried 19798fi 19799 19800 19801 19802if test $pkg_failed = yes; then 19803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19804printf "%s\n" "no" >&6; } 19805 19806if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19807 _pkg_short_errors_supported=yes 19808else 19809 _pkg_short_errors_supported=no 19810fi 19811 if test $_pkg_short_errors_supported = yes; then 19812 XAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1` 19813 else 19814 XAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1` 19815 fi 19816 # Put the nasty error message in config.log where it belongs 19817 echo "$XAU_PKG_ERRORS" >&5 19818 19819 as_fn_error $? "Package requirements (xproto) were not met: 19820 19821$XAU_PKG_ERRORS 19822 19823Consider adjusting the PKG_CONFIG_PATH environment variable if you 19824installed software in a non-standard prefix. 19825 19826Alternatively, you may set the environment variables XAU_CFLAGS 19827and XAU_LIBS to avoid the need to call pkg-config. 19828See the pkg-config man page for more details." "$LINENO" 5 19829elif test $pkg_failed = untried; then 19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19831printf "%s\n" "no" >&6; } 19832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19833printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19834as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19835is in your PATH or set the PKG_CONFIG environment variable to the full 19836path to pkg-config. 19837 19838Alternatively, you may set the environment variables XAU_CFLAGS 19839and XAU_LIBS to avoid the need to call pkg-config. 19840See the pkg-config man page for more details. 19841 19842To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19843See \`config.log' for more details" "$LINENO" 5; } 19844else 19845 XAU_CFLAGS=$pkg_cv_XAU_CFLAGS 19846 XAU_LIBS=$pkg_cv_XAU_LIBS 19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19848printf "%s\n" "yes" >&6; } 19849 19850fi 19851 19852# Checks for typedefs, structures, and compiler characteristics. 19853# Check whether --enable-largefile was given. 19854if test ${enable_largefile+y} 19855then : 19856 enableval=$enable_largefile; 19857fi 19858 19859if test "$enable_largefile" != no; then 19860 19861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 19862printf %s "checking for special C compiler options needed for large files... " >&6; } 19863if test ${ac_cv_sys_largefile_CC+y} 19864then : 19865 printf %s "(cached) " >&6 19866else $as_nop 19867 ac_cv_sys_largefile_CC=no 19868 if test "$GCC" != yes; then 19869 ac_save_CC=$CC 19870 while :; do 19871 # IRIX 6.2 and later do not support large files by default, 19872 # so use the C compiler's -n32 option if that helps. 19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19874/* end confdefs.h. */ 19875#include <sys/types.h> 19876 /* Check that off_t can represent 2**63 - 1 correctly. 19877 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19878 since some C++ compilers masquerading as C compilers 19879 incorrectly reject 9223372036854775807. */ 19880#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19882 && LARGE_OFF_T % 2147483647 == 1) 19883 ? 1 : -1]; 19884int 19885main (void) 19886{ 19887 19888 ; 19889 return 0; 19890} 19891_ACEOF 19892 if ac_fn_c_try_compile "$LINENO" 19893then : 19894 break 19895fi 19896rm -f core conftest.err conftest.$ac_objext conftest.beam 19897 CC="$CC -n32" 19898 if ac_fn_c_try_compile "$LINENO" 19899then : 19900 ac_cv_sys_largefile_CC=' -n32'; break 19901fi 19902rm -f core conftest.err conftest.$ac_objext conftest.beam 19903 break 19904 done 19905 CC=$ac_save_CC 19906 rm -f conftest.$ac_ext 19907 fi 19908fi 19909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 19910printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 19911 if test "$ac_cv_sys_largefile_CC" != no; then 19912 CC=$CC$ac_cv_sys_largefile_CC 19913 fi 19914 19915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 19916printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 19917if test ${ac_cv_sys_file_offset_bits+y} 19918then : 19919 printf %s "(cached) " >&6 19920else $as_nop 19921 while :; do 19922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19923/* end confdefs.h. */ 19924#include <sys/types.h> 19925 /* Check that off_t can represent 2**63 - 1 correctly. 19926 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19927 since some C++ compilers masquerading as C compilers 19928 incorrectly reject 9223372036854775807. */ 19929#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19930 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19931 && LARGE_OFF_T % 2147483647 == 1) 19932 ? 1 : -1]; 19933int 19934main (void) 19935{ 19936 19937 ; 19938 return 0; 19939} 19940_ACEOF 19941if ac_fn_c_try_compile "$LINENO" 19942then : 19943 ac_cv_sys_file_offset_bits=no; break 19944fi 19945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19947/* end confdefs.h. */ 19948#define _FILE_OFFSET_BITS 64 19949#include <sys/types.h> 19950 /* Check that off_t can represent 2**63 - 1 correctly. 19951 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19952 since some C++ compilers masquerading as C compilers 19953 incorrectly reject 9223372036854775807. */ 19954#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 19955 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 19956 && LARGE_OFF_T % 2147483647 == 1) 19957 ? 1 : -1]; 19958int 19959main (void) 19960{ 19961 19962 ; 19963 return 0; 19964} 19965_ACEOF 19966if ac_fn_c_try_compile "$LINENO" 19967then : 19968 ac_cv_sys_file_offset_bits=64; break 19969fi 19970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19971 ac_cv_sys_file_offset_bits=unknown 19972 break 19973done 19974fi 19975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 19976printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 19977case $ac_cv_sys_file_offset_bits in #( 19978 no | unknown) ;; 19979 *) 19980printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 19981;; 19982esac 19983rm -rf conftest* 19984 if test $ac_cv_sys_file_offset_bits = unknown; then 19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 19986printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 19987if test ${ac_cv_sys_large_files+y} 19988then : 19989 printf %s "(cached) " >&6 19990else $as_nop 19991 while :; do 19992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19993/* end confdefs.h. */ 19994#include <sys/types.h> 19995 /* Check that off_t can represent 2**63 - 1 correctly. 19996 We can't simply define LARGE_OFF_T to be 9223372036854775807, 19997 since some C++ compilers masquerading as C compilers 19998 incorrectly reject 9223372036854775807. */ 19999#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 20000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20001 && LARGE_OFF_T % 2147483647 == 1) 20002 ? 1 : -1]; 20003int 20004main (void) 20005{ 20006 20007 ; 20008 return 0; 20009} 20010_ACEOF 20011if ac_fn_c_try_compile "$LINENO" 20012then : 20013 ac_cv_sys_large_files=no; break 20014fi 20015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20017/* end confdefs.h. */ 20018#define _LARGE_FILES 1 20019#include <sys/types.h> 20020 /* Check that off_t can represent 2**63 - 1 correctly. 20021 We can't simply define LARGE_OFF_T to be 9223372036854775807, 20022 since some C++ compilers masquerading as C compilers 20023 incorrectly reject 9223372036854775807. */ 20024#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 20025 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 20026 && LARGE_OFF_T % 2147483647 == 1) 20027 ? 1 : -1]; 20028int 20029main (void) 20030{ 20031 20032 ; 20033 return 0; 20034} 20035_ACEOF 20036if ac_fn_c_try_compile "$LINENO" 20037then : 20038 ac_cv_sys_large_files=1; break 20039fi 20040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20041 ac_cv_sys_large_files=unknown 20042 break 20043done 20044fi 20045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 20046printf "%s\n" "$ac_cv_sys_large_files" >&6; } 20047case $ac_cv_sys_large_files in #( 20048 no | unknown) ;; 20049 *) 20050printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 20051;; 20052esac 20053rm -rf conftest* 20054 fi 20055fi 20056 20057 20058# Check whether --enable-xthreads was given. 20059if test ${enable_xthreads+y} 20060then : 20061 enableval=$enable_xthreads; xthreads=$enableval 20062else $as_nop 20063 xthreads=yes 20064fi 20065 20066 20067if test "x$xthreads" = "xyes" ; then 20068 20069printf "%s\n" "#define XTHREADS 1" >>confdefs.h 20070 20071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lc" >&5 20072printf %s "checking for gethostbyname_r in -lc... " >&6; } 20073if test ${ac_cv_lib_c_gethostbyname_r+y} 20074then : 20075 printf %s "(cached) " >&6 20076else $as_nop 20077 ac_check_lib_save_LIBS=$LIBS 20078LIBS="-lc $LIBS" 20079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20080/* end confdefs.h. */ 20081 20082/* Override any GCC internal prototype to avoid an error. 20083 Use char because int might match the return type of a GCC 20084 builtin and then its argument prototype would still apply. 20085 The 'extern "C"' is for builds by C++ compilers; 20086 although this is not generally supported in C code supporting it here 20087 has little cost and some practical benefit (sr 110532). */ 20088#ifdef __cplusplus 20089extern "C" 20090#endif 20091char gethostbyname_r (void); 20092int 20093main (void) 20094{ 20095return gethostbyname_r (); 20096 ; 20097 return 0; 20098} 20099_ACEOF 20100if ac_fn_c_try_link "$LINENO" 20101then : 20102 ac_cv_lib_c_gethostbyname_r=yes 20103else $as_nop 20104 ac_cv_lib_c_gethostbyname_r=no 20105fi 20106rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20107 conftest$ac_exeext conftest.$ac_ext 20108LIBS=$ac_check_lib_save_LIBS 20109fi 20110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gethostbyname_r" >&5 20111printf "%s\n" "$ac_cv_lib_c_gethostbyname_r" >&6; } 20112if test "x$ac_cv_lib_c_gethostbyname_r" = xyes 20113then : 20114 mtsafe=yes 20115fi 20116 20117 if test "x$mtsafe" = "x" ; then 20118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5 20119printf %s "checking for gethostbyname_r in -lnsl... " >&6; } 20120if test ${ac_cv_lib_nsl_gethostbyname_r+y} 20121then : 20122 printf %s "(cached) " >&6 20123else $as_nop 20124 ac_check_lib_save_LIBS=$LIBS 20125LIBS="-lnsl $LIBS" 20126cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20127/* end confdefs.h. */ 20128 20129/* Override any GCC internal prototype to avoid an error. 20130 Use char because int might match the return type of a GCC 20131 builtin and then its argument prototype would still apply. 20132 The 'extern "C"' is for builds by C++ compilers; 20133 although this is not generally supported in C code supporting it here 20134 has little cost and some practical benefit (sr 110532). */ 20135#ifdef __cplusplus 20136extern "C" 20137#endif 20138char gethostbyname_r (void); 20139int 20140main (void) 20141{ 20142return gethostbyname_r (); 20143 ; 20144 return 0; 20145} 20146_ACEOF 20147if ac_fn_c_try_link "$LINENO" 20148then : 20149 ac_cv_lib_nsl_gethostbyname_r=yes 20150else $as_nop 20151 ac_cv_lib_nsl_gethostbyname_r=no 20152fi 20153rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20154 conftest$ac_exeext conftest.$ac_ext 20155LIBS=$ac_check_lib_save_LIBS 20156fi 20157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5 20158printf "%s\n" "$ac_cv_lib_nsl_gethostbyname_r" >&6; } 20159if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes 20160then : 20161 mtsafe=yes 20162fi 20163 20164 fi 20165 if test "x$mtsafe" = "xyes" ; then 20166 20167printf "%s\n" "#define XUSE_MTSAFE_API 1" >>confdefs.h 20168 20169 fi 20170 20171# XXX incomplete, please fill this in 20172 case $host_os in 20173 solaris*) 20174 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 20175 esac 20176 XAU_CFLAGS="$XAU_CFLAGS $XTHREAD_CFLAGS" 20177fi 20178 20179# Allow checking code with lint, sparse, etc. 20180 20181 20182 20183 20184 20185# Check whether --with-lint was given. 20186if test ${with_lint+y} 20187then : 20188 withval=$with_lint; use_lint=$withval 20189else $as_nop 20190 use_lint=no 20191fi 20192 20193 20194# Obtain platform specific info like program name and options 20195# The lint program on FreeBSD and NetBSD is different from the one on Solaris 20196case $host_os in 20197 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20198 lint_name=splint 20199 lint_options="-badflag" 20200 ;; 20201 *freebsd* | *netbsd*) 20202 lint_name=lint 20203 lint_options="-u -b" 20204 ;; 20205 *solaris*) 20206 lint_name=lint 20207 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20208 ;; 20209esac 20210 20211# Test for the presence of the program (either guessed by the code or spelled out by the user) 20212if test "x$use_lint" = x"yes" ; then 20213 # Extract the first word of "$lint_name", so it can be a program name with args. 20214set dummy $lint_name; ac_word=$2 20215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20216printf %s "checking for $ac_word... " >&6; } 20217if test ${ac_cv_path_LINT+y} 20218then : 20219 printf %s "(cached) " >&6 20220else $as_nop 20221 case $LINT in 20222 [\\/]* | ?:[\\/]*) 20223 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20224 ;; 20225 *) 20226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20227for as_dir in $PATH 20228do 20229 IFS=$as_save_IFS 20230 case $as_dir in #((( 20231 '') as_dir=./ ;; 20232 */) ;; 20233 *) as_dir=$as_dir/ ;; 20234 esac 20235 for ac_exec_ext in '' $ac_executable_extensions; do 20236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20237 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20239 break 2 20240 fi 20241done 20242 done 20243IFS=$as_save_IFS 20244 20245 ;; 20246esac 20247fi 20248LINT=$ac_cv_path_LINT 20249if test -n "$LINT"; then 20250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20251printf "%s\n" "$LINT" >&6; } 20252else 20253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20254printf "%s\n" "no" >&6; } 20255fi 20256 20257 20258 if test "x$LINT" = "x"; then 20259 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20260 fi 20261elif test "x$use_lint" = x"no" ; then 20262 if test "x$LINT" != "x"; then 20263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20264printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20265 fi 20266else 20267 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20268fi 20269 20270# User supplied flags override default flags 20271if test "x$LINT_FLAGS" != "x"; then 20272 lint_options=$LINT_FLAGS 20273fi 20274 20275LINT_FLAGS=$lint_options 20276 20277 if test "x$LINT" != x; then 20278 LINT_TRUE= 20279 LINT_FALSE='#' 20280else 20281 LINT_TRUE='#' 20282 LINT_FALSE= 20283fi 20284 20285 20286 20287 20288 20289# Check whether --enable-lint-library was given. 20290if test ${enable_lint_library+y} 20291then : 20292 enableval=$enable_lint_library; make_lint_lib=$enableval 20293else $as_nop 20294 make_lint_lib=no 20295fi 20296 20297 20298if test "x$make_lint_lib" = x"yes" ; then 20299 LINTLIB=llib-lXau.ln 20300 if test "x$LINT" = "x"; then 20301 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20302 fi 20303elif test "x$make_lint_lib" != x"no" ; then 20304 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20305fi 20306 20307 20308 if test x$make_lint_lib != xno; then 20309 MAKE_LINT_LIB_TRUE= 20310 MAKE_LINT_LIB_FALSE='#' 20311else 20312 MAKE_LINT_LIB_TRUE='#' 20313 MAKE_LINT_LIB_FALSE= 20314fi 20315 20316 20317 20318LINT_FLAGS="${LINT_FLAGS} ${XAU_CFLAGS}" 20319 20320ac_config_files="$ac_config_files Makefile man/Makefile xau.pc" 20321 20322cat >confcache <<\_ACEOF 20323# This file is a shell script that caches the results of configure 20324# tests run on this system so they can be shared between configure 20325# scripts and configure runs, see configure's option --config-cache. 20326# It is not useful on other systems. If it contains results you don't 20327# want to keep, you may remove or edit it. 20328# 20329# config.status only pays attention to the cache file if you give it 20330# the --recheck option to rerun configure. 20331# 20332# `ac_cv_env_foo' variables (set or unset) will be overridden when 20333# loading this file, other *unset* `ac_cv_foo' will be assigned the 20334# following values. 20335 20336_ACEOF 20337 20338# The following way of writing the cache mishandles newlines in values, 20339# but we know of no workaround that is simple, portable, and efficient. 20340# So, we kill variables containing newlines. 20341# Ultrix sh set writes to stderr and can't be redirected directly, 20342# and sets the high bit in the cache file unless we assign to the vars. 20343( 20344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20345 eval ac_val=\$$ac_var 20346 case $ac_val in #( 20347 *${as_nl}*) 20348 case $ac_var in #( 20349 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20350printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20351 esac 20352 case $ac_var in #( 20353 _ | IFS | as_nl) ;; #( 20354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20355 *) { eval $ac_var=; unset $ac_var;} ;; 20356 esac ;; 20357 esac 20358 done 20359 20360 (set) 2>&1 | 20361 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20362 *${as_nl}ac_space=\ *) 20363 # `set' does not quote correctly, so add quotes: double-quote 20364 # substitution turns \\\\ into \\, and sed turns \\ into \. 20365 sed -n \ 20366 "s/'/'\\\\''/g; 20367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20368 ;; #( 20369 *) 20370 # `set' quotes correctly as required by POSIX, so do not add quotes. 20371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20372 ;; 20373 esac | 20374 sort 20375) | 20376 sed ' 20377 /^ac_cv_env_/b end 20378 t clear 20379 :clear 20380 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20381 t end 20382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20383 :end' >>confcache 20384if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20385 if test -w "$cache_file"; then 20386 if test "x$cache_file" != "x/dev/null"; then 20387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20388printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20389 if test ! -f "$cache_file" || test -h "$cache_file"; then 20390 cat confcache >"$cache_file" 20391 else 20392 case $cache_file in #( 20393 */* | ?:*) 20394 mv -f confcache "$cache_file"$$ && 20395 mv -f "$cache_file"$$ "$cache_file" ;; #( 20396 *) 20397 mv -f confcache "$cache_file" ;; 20398 esac 20399 fi 20400 fi 20401 else 20402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20403printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20404 fi 20405fi 20406rm -f confcache 20407 20408test "x$prefix" = xNONE && prefix=$ac_default_prefix 20409# Let make expand exec_prefix. 20410test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20411 20412DEFS=-DHAVE_CONFIG_H 20413 20414ac_libobjs= 20415ac_ltlibobjs= 20416U= 20417for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20418 # 1. Remove the extension, and $U if already installed. 20419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20420 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20422 # will be set to the directory where LIBOBJS objects are built. 20423 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20424 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20425done 20426LIBOBJS=$ac_libobjs 20427 20428LTLIBOBJS=$ac_ltlibobjs 20429 20430 20431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20432printf %s "checking that generated files are newer than configure... " >&6; } 20433 if test -n "$am_sleep_pid"; then 20434 # Hide warnings about reused PIDs. 20435 wait $am_sleep_pid 2>/dev/null 20436 fi 20437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20438printf "%s\n" "done" >&6; } 20439if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20440 as_fn_error $? "conditional \"AMDEP\" was never defined. 20441Usually this means the macro was only invoked conditionally." "$LINENO" 5 20442fi 20443if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20444 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20445Usually this means the macro was only invoked conditionally." "$LINENO" 5 20446fi 20447 if test -n "$EXEEXT"; then 20448 am__EXEEXT_TRUE= 20449 am__EXEEXT_FALSE='#' 20450else 20451 am__EXEEXT_TRUE='#' 20452 am__EXEEXT_FALSE= 20453fi 20454 20455if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20456 as_fn_error $? "conditional \"LINT\" was never defined. 20457Usually this means the macro was only invoked conditionally." "$LINENO" 5 20458fi 20459if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 20460 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 20461Usually this means the macro was only invoked conditionally." "$LINENO" 5 20462fi 20463 20464: "${CONFIG_STATUS=./config.status}" 20465ac_write_fail=0 20466ac_clean_files_save=$ac_clean_files 20467ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20469printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20470as_write_fail=0 20471cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20472#! $SHELL 20473# Generated by $as_me. 20474# Run this file to recreate the current configuration. 20475# Compiler output produced by configure, useful for debugging 20476# configure, is in config.log if it exists. 20477 20478debug=false 20479ac_cs_recheck=false 20480ac_cs_silent=false 20481 20482SHELL=\${CONFIG_SHELL-$SHELL} 20483export SHELL 20484_ASEOF 20485cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20486## -------------------- ## 20487## M4sh Initialization. ## 20488## -------------------- ## 20489 20490# Be more Bourne compatible 20491DUALCASE=1; export DUALCASE # for MKS sh 20492as_nop=: 20493if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20494then : 20495 emulate sh 20496 NULLCMD=: 20497 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20498 # is contrary to our usage. Disable this feature. 20499 alias -g '${1+"$@"}'='"$@"' 20500 setopt NO_GLOB_SUBST 20501else $as_nop 20502 case `(set -o) 2>/dev/null` in #( 20503 *posix*) : 20504 set -o posix ;; #( 20505 *) : 20506 ;; 20507esac 20508fi 20509 20510 20511 20512# Reset variables that may have inherited troublesome values from 20513# the environment. 20514 20515# IFS needs to be set, to space, tab, and newline, in precisely that order. 20516# (If _AS_PATH_WALK were called with IFS unset, it would have the 20517# side effect of setting IFS to empty, thus disabling word splitting.) 20518# Quoting is to prevent editors from complaining about space-tab. 20519as_nl=' 20520' 20521export as_nl 20522IFS=" "" $as_nl" 20523 20524PS1='$ ' 20525PS2='> ' 20526PS4='+ ' 20527 20528# Ensure predictable behavior from utilities with locale-dependent output. 20529LC_ALL=C 20530export LC_ALL 20531LANGUAGE=C 20532export LANGUAGE 20533 20534# We cannot yet rely on "unset" to work, but we need these variables 20535# to be unset--not just set to an empty or harmless value--now, to 20536# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20537# also avoids known problems related to "unset" and subshell syntax 20538# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20539for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20540do eval test \${$as_var+y} \ 20541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20542done 20543 20544# Ensure that fds 0, 1, and 2 are open. 20545if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20546if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20547if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20548 20549# The user is always right. 20550if ${PATH_SEPARATOR+false} :; then 20551 PATH_SEPARATOR=: 20552 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20553 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20554 PATH_SEPARATOR=';' 20555 } 20556fi 20557 20558 20559# Find who we are. Look in the path if we contain no directory separator. 20560as_myself= 20561case $0 in #(( 20562 *[\\/]* ) as_myself=$0 ;; 20563 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20564for as_dir in $PATH 20565do 20566 IFS=$as_save_IFS 20567 case $as_dir in #((( 20568 '') as_dir=./ ;; 20569 */) ;; 20570 *) as_dir=$as_dir/ ;; 20571 esac 20572 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20573 done 20574IFS=$as_save_IFS 20575 20576 ;; 20577esac 20578# We did not find ourselves, most probably we were run as `sh COMMAND' 20579# in which case we are not to be found in the path. 20580if test "x$as_myself" = x; then 20581 as_myself=$0 20582fi 20583if test ! -f "$as_myself"; then 20584 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20585 exit 1 20586fi 20587 20588 20589 20590# as_fn_error STATUS ERROR [LINENO LOG_FD] 20591# ---------------------------------------- 20592# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20593# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20594# script with STATUS, using 1 if that was 0. 20595as_fn_error () 20596{ 20597 as_status=$1; test $as_status -eq 0 && as_status=1 20598 if test "$4"; then 20599 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20601 fi 20602 printf "%s\n" "$as_me: error: $2" >&2 20603 as_fn_exit $as_status 20604} # as_fn_error 20605 20606 20607 20608# as_fn_set_status STATUS 20609# ----------------------- 20610# Set $? to STATUS, without forking. 20611as_fn_set_status () 20612{ 20613 return $1 20614} # as_fn_set_status 20615 20616# as_fn_exit STATUS 20617# ----------------- 20618# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20619as_fn_exit () 20620{ 20621 set +e 20622 as_fn_set_status $1 20623 exit $1 20624} # as_fn_exit 20625 20626# as_fn_unset VAR 20627# --------------- 20628# Portably unset VAR. 20629as_fn_unset () 20630{ 20631 { eval $1=; unset $1;} 20632} 20633as_unset=as_fn_unset 20634 20635# as_fn_append VAR VALUE 20636# ---------------------- 20637# Append the text in VALUE to the end of the definition contained in VAR. Take 20638# advantage of any shell optimizations that allow amortized linear growth over 20639# repeated appends, instead of the typical quadratic growth present in naive 20640# implementations. 20641if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20642then : 20643 eval 'as_fn_append () 20644 { 20645 eval $1+=\$2 20646 }' 20647else $as_nop 20648 as_fn_append () 20649 { 20650 eval $1=\$$1\$2 20651 } 20652fi # as_fn_append 20653 20654# as_fn_arith ARG... 20655# ------------------ 20656# Perform arithmetic evaluation on the ARGs, and store the result in the 20657# global $as_val. Take advantage of shells that can avoid forks. The arguments 20658# must be portable across $(()) and expr. 20659if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20660then : 20661 eval 'as_fn_arith () 20662 { 20663 as_val=$(( $* )) 20664 }' 20665else $as_nop 20666 as_fn_arith () 20667 { 20668 as_val=`expr "$@" || test $? -eq 1` 20669 } 20670fi # as_fn_arith 20671 20672 20673if expr a : '\(a\)' >/dev/null 2>&1 && 20674 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20675 as_expr=expr 20676else 20677 as_expr=false 20678fi 20679 20680if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20681 as_basename=basename 20682else 20683 as_basename=false 20684fi 20685 20686if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20687 as_dirname=dirname 20688else 20689 as_dirname=false 20690fi 20691 20692as_me=`$as_basename -- "$0" || 20693$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20694 X"$0" : 'X\(//\)$' \| \ 20695 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20696printf "%s\n" X/"$0" | 20697 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20698 s//\1/ 20699 q 20700 } 20701 /^X\/\(\/\/\)$/{ 20702 s//\1/ 20703 q 20704 } 20705 /^X\/\(\/\).*/{ 20706 s//\1/ 20707 q 20708 } 20709 s/.*/./; q'` 20710 20711# Avoid depending upon Character Ranges. 20712as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20713as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20714as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20715as_cr_digits='0123456789' 20716as_cr_alnum=$as_cr_Letters$as_cr_digits 20717 20718 20719# Determine whether it's possible to make 'echo' print without a newline. 20720# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20721# for compatibility with existing Makefiles. 20722ECHO_C= ECHO_N= ECHO_T= 20723case `echo -n x` in #((((( 20724-n*) 20725 case `echo 'xy\c'` in 20726 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20727 xy) ECHO_C='\c';; 20728 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20729 ECHO_T=' ';; 20730 esac;; 20731*) 20732 ECHO_N='-n';; 20733esac 20734 20735# For backward compatibility with old third-party macros, we provide 20736# the shell variables $as_echo and $as_echo_n. New code should use 20737# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20738as_echo='printf %s\n' 20739as_echo_n='printf %s' 20740 20741rm -f conf$$ conf$$.exe conf$$.file 20742if test -d conf$$.dir; then 20743 rm -f conf$$.dir/conf$$.file 20744else 20745 rm -f conf$$.dir 20746 mkdir conf$$.dir 2>/dev/null 20747fi 20748if (echo >conf$$.file) 2>/dev/null; then 20749 if ln -s conf$$.file conf$$ 2>/dev/null; then 20750 as_ln_s='ln -s' 20751 # ... but there are two gotchas: 20752 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20753 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20754 # In both cases, we have to default to `cp -pR'. 20755 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20756 as_ln_s='cp -pR' 20757 elif ln conf$$.file conf$$ 2>/dev/null; then 20758 as_ln_s=ln 20759 else 20760 as_ln_s='cp -pR' 20761 fi 20762else 20763 as_ln_s='cp -pR' 20764fi 20765rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20766rmdir conf$$.dir 2>/dev/null 20767 20768 20769# as_fn_mkdir_p 20770# ------------- 20771# Create "$as_dir" as a directory, including parents if necessary. 20772as_fn_mkdir_p () 20773{ 20774 20775 case $as_dir in #( 20776 -*) as_dir=./$as_dir;; 20777 esac 20778 test -d "$as_dir" || eval $as_mkdir_p || { 20779 as_dirs= 20780 while :; do 20781 case $as_dir in #( 20782 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20783 *) as_qdir=$as_dir;; 20784 esac 20785 as_dirs="'$as_qdir' $as_dirs" 20786 as_dir=`$as_dirname -- "$as_dir" || 20787$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20788 X"$as_dir" : 'X\(//\)[^/]' \| \ 20789 X"$as_dir" : 'X\(//\)$' \| \ 20790 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20791printf "%s\n" X"$as_dir" | 20792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20793 s//\1/ 20794 q 20795 } 20796 /^X\(\/\/\)[^/].*/{ 20797 s//\1/ 20798 q 20799 } 20800 /^X\(\/\/\)$/{ 20801 s//\1/ 20802 q 20803 } 20804 /^X\(\/\).*/{ 20805 s//\1/ 20806 q 20807 } 20808 s/.*/./; q'` 20809 test -d "$as_dir" && break 20810 done 20811 test -z "$as_dirs" || eval "mkdir $as_dirs" 20812 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20813 20814 20815} # as_fn_mkdir_p 20816if mkdir -p . 2>/dev/null; then 20817 as_mkdir_p='mkdir -p "$as_dir"' 20818else 20819 test -d ./-p && rmdir ./-p 20820 as_mkdir_p=false 20821fi 20822 20823 20824# as_fn_executable_p FILE 20825# ----------------------- 20826# Test if FILE is an executable regular file. 20827as_fn_executable_p () 20828{ 20829 test -f "$1" && test -x "$1" 20830} # as_fn_executable_p 20831as_test_x='test -x' 20832as_executable_p=as_fn_executable_p 20833 20834# Sed expression to map a string onto a valid CPP name. 20835as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20836 20837# Sed expression to map a string onto a valid variable name. 20838as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20839 20840 20841exec 6>&1 20842## ----------------------------------- ## 20843## Main body of $CONFIG_STATUS script. ## 20844## ----------------------------------- ## 20845_ASEOF 20846test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20847 20848cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20849# Save the log message, to keep $0 and so on meaningful, and to 20850# report actual input values of CONFIG_FILES etc. instead of their 20851# values after options handling. 20852ac_log=" 20853This file was extended by libXau $as_me 1.0.11, which was 20854generated by GNU Autoconf 2.71. Invocation command line was 20855 20856 CONFIG_FILES = $CONFIG_FILES 20857 CONFIG_HEADERS = $CONFIG_HEADERS 20858 CONFIG_LINKS = $CONFIG_LINKS 20859 CONFIG_COMMANDS = $CONFIG_COMMANDS 20860 $ $0 $@ 20861 20862on `(hostname || uname -n) 2>/dev/null | sed 1q` 20863" 20864 20865_ACEOF 20866 20867case $ac_config_files in *" 20868"*) set x $ac_config_files; shift; ac_config_files=$*;; 20869esac 20870 20871case $ac_config_headers in *" 20872"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20873esac 20874 20875 20876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20877# Files that config.status was made for. 20878config_files="$ac_config_files" 20879config_headers="$ac_config_headers" 20880config_commands="$ac_config_commands" 20881 20882_ACEOF 20883 20884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20885ac_cs_usage="\ 20886\`$as_me' instantiates files and other configuration actions 20887from templates according to the current configuration. Unless the files 20888and actions are specified as TAGs, all are instantiated by default. 20889 20890Usage: $0 [OPTION]... [TAG]... 20891 20892 -h, --help print this help, then exit 20893 -V, --version print version number and configuration settings, then exit 20894 --config print configuration, then exit 20895 -q, --quiet, --silent 20896 do not print progress messages 20897 -d, --debug don't remove temporary files 20898 --recheck update $as_me by reconfiguring in the same conditions 20899 --file=FILE[:TEMPLATE] 20900 instantiate the configuration file FILE 20901 --header=FILE[:TEMPLATE] 20902 instantiate the configuration header FILE 20903 20904Configuration files: 20905$config_files 20906 20907Configuration headers: 20908$config_headers 20909 20910Configuration commands: 20911$config_commands 20912 20913Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxau/-/issues>." 20914 20915_ACEOF 20916ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20917ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20919ac_cs_config='$ac_cs_config_escaped' 20920ac_cs_version="\\ 20921libXau config.status 1.0.11 20922configured by $0, generated by GNU Autoconf 2.71, 20923 with options \\"\$ac_cs_config\\" 20924 20925Copyright (C) 2021 Free Software Foundation, Inc. 20926This config.status script is free software; the Free Software Foundation 20927gives unlimited permission to copy, distribute and modify it." 20928 20929ac_pwd='$ac_pwd' 20930srcdir='$srcdir' 20931INSTALL='$INSTALL' 20932MKDIR_P='$MKDIR_P' 20933AWK='$AWK' 20934test -n "\$AWK" || AWK=awk 20935_ACEOF 20936 20937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20938# The default lists apply if the user does not specify any file. 20939ac_need_defaults=: 20940while test $# != 0 20941do 20942 case $1 in 20943 --*=?*) 20944 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20945 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20946 ac_shift=: 20947 ;; 20948 --*=) 20949 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20950 ac_optarg= 20951 ac_shift=: 20952 ;; 20953 *) 20954 ac_option=$1 20955 ac_optarg=$2 20956 ac_shift=shift 20957 ;; 20958 esac 20959 20960 case $ac_option in 20961 # Handling of the options. 20962 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20963 ac_cs_recheck=: ;; 20964 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20965 printf "%s\n" "$ac_cs_version"; exit ;; 20966 --config | --confi | --conf | --con | --co | --c ) 20967 printf "%s\n" "$ac_cs_config"; exit ;; 20968 --debug | --debu | --deb | --de | --d | -d ) 20969 debug=: ;; 20970 --file | --fil | --fi | --f ) 20971 $ac_shift 20972 case $ac_optarg in 20973 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20974 '') as_fn_error $? "missing file argument" ;; 20975 esac 20976 as_fn_append CONFIG_FILES " '$ac_optarg'" 20977 ac_need_defaults=false;; 20978 --header | --heade | --head | --hea ) 20979 $ac_shift 20980 case $ac_optarg in 20981 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20982 esac 20983 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20984 ac_need_defaults=false;; 20985 --he | --h) 20986 # Conflict between --help and --header 20987 as_fn_error $? "ambiguous option: \`$1' 20988Try \`$0 --help' for more information.";; 20989 --help | --hel | -h ) 20990 printf "%s\n" "$ac_cs_usage"; exit ;; 20991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20992 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20993 ac_cs_silent=: ;; 20994 20995 # This is an error. 20996 -*) as_fn_error $? "unrecognized option: \`$1' 20997Try \`$0 --help' for more information." ;; 20998 20999 *) as_fn_append ac_config_targets " $1" 21000 ac_need_defaults=false ;; 21001 21002 esac 21003 shift 21004done 21005 21006ac_configure_extra_args= 21007 21008if $ac_cs_silent; then 21009 exec 6>/dev/null 21010 ac_configure_extra_args="$ac_configure_extra_args --silent" 21011fi 21012 21013_ACEOF 21014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21015if \$ac_cs_recheck; then 21016 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21017 shift 21018 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21019 CONFIG_SHELL='$SHELL' 21020 export CONFIG_SHELL 21021 exec "\$@" 21022fi 21023 21024_ACEOF 21025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21026exec 5>>config.log 21027{ 21028 echo 21029 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21030## Running $as_me. ## 21031_ASBOX 21032 printf "%s\n" "$ac_log" 21033} >&5 21034 21035_ACEOF 21036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21037# 21038# INIT-COMMANDS 21039# 21040AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21041 21042 21043# The HP-UX ksh and POSIX shell print the target directory to stdout 21044# if CDPATH is set. 21045(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21046 21047sed_quote_subst='$sed_quote_subst' 21048double_quote_subst='$double_quote_subst' 21049delay_variable_subst='$delay_variable_subst' 21050AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21051DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21052OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21053macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21054macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21055enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21056enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21057pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21058enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21059shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21060SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21061ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21062PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21063host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21064host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21065host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21066build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21067build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21068build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21069SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21070Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21071GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21072EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21073FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21074LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21075NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21076LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21077max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21078ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21079exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21080lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21081lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21082lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21083lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21084lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21085reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21086reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21087FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21088deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21089file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21090file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21091want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21092sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21093AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21094lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21095AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21096archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21097STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21098RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21099old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21100old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21101old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21102lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21103CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21104CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21105compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21106GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21107lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21108lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21109lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21110lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21111lt_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"`' 21112lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21113nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21114lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21115lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21116objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21117MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21118lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21119lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21120lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21121lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21122lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21123need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21124MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21125DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21126NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21127LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21128OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21129OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21130libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21131shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21132extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21133archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21134enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21135export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21136whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21137compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21138old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21139old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21140archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21141archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21142module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21143module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21144with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21145allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21146no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21147hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21148hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21149hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21150hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21151hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21152hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21153hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21154inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21155link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21156always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21157export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21158exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21159include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21160prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21161postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21162file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21163variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21164need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21165need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21166version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21167runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21168shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21169shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21170libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21171library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21172soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21173install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21174postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21175postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21176finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21177finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21178hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21179sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21180configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21181configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21182hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21183enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21184enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21185enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21186old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21187striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21188 21189LTCC='$LTCC' 21190LTCFLAGS='$LTCFLAGS' 21191compiler='$compiler_DEFAULT' 21192 21193# A function that is used when there is no print builtin or printf. 21194func_fallback_echo () 21195{ 21196 eval 'cat <<_LTECHO_EOF 21197\$1 21198_LTECHO_EOF' 21199} 21200 21201# Quote evaled strings. 21202for var in AS \ 21203DLLTOOL \ 21204OBJDUMP \ 21205SHELL \ 21206ECHO \ 21207PATH_SEPARATOR \ 21208SED \ 21209GREP \ 21210EGREP \ 21211FGREP \ 21212LD \ 21213NM \ 21214LN_S \ 21215lt_SP2NL \ 21216lt_NL2SP \ 21217reload_flag \ 21218FILECMD \ 21219deplibs_check_method \ 21220file_magic_cmd \ 21221file_magic_glob \ 21222want_nocaseglob \ 21223sharedlib_from_linklib_cmd \ 21224AR \ 21225archiver_list_spec \ 21226STRIP \ 21227RANLIB \ 21228CC \ 21229CFLAGS \ 21230compiler \ 21231lt_cv_sys_global_symbol_pipe \ 21232lt_cv_sys_global_symbol_to_cdecl \ 21233lt_cv_sys_global_symbol_to_import \ 21234lt_cv_sys_global_symbol_to_c_name_address \ 21235lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21236lt_cv_nm_interface \ 21237nm_file_list_spec \ 21238lt_cv_truncate_bin \ 21239lt_prog_compiler_no_builtin_flag \ 21240lt_prog_compiler_pic \ 21241lt_prog_compiler_wl \ 21242lt_prog_compiler_static \ 21243lt_cv_prog_compiler_c_o \ 21244need_locks \ 21245MANIFEST_TOOL \ 21246DSYMUTIL \ 21247NMEDIT \ 21248LIPO \ 21249OTOOL \ 21250OTOOL64 \ 21251shrext_cmds \ 21252export_dynamic_flag_spec \ 21253whole_archive_flag_spec \ 21254compiler_needs_object \ 21255with_gnu_ld \ 21256allow_undefined_flag \ 21257no_undefined_flag \ 21258hardcode_libdir_flag_spec \ 21259hardcode_libdir_separator \ 21260exclude_expsyms \ 21261include_expsyms \ 21262file_list_spec \ 21263variables_saved_for_relink \ 21264libname_spec \ 21265library_names_spec \ 21266soname_spec \ 21267install_override_mode \ 21268finish_eval \ 21269old_striplib \ 21270striplib; do 21271 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21272 *[\\\\\\\`\\"\\\$]*) 21273 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21274 ;; 21275 *) 21276 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21277 ;; 21278 esac 21279done 21280 21281# Double-quote double-evaled strings. 21282for var in reload_cmds \ 21283old_postinstall_cmds \ 21284old_postuninstall_cmds \ 21285old_archive_cmds \ 21286extract_expsyms_cmds \ 21287old_archive_from_new_cmds \ 21288old_archive_from_expsyms_cmds \ 21289archive_cmds \ 21290archive_expsym_cmds \ 21291module_cmds \ 21292module_expsym_cmds \ 21293export_symbols_cmds \ 21294prelink_cmds \ 21295postlink_cmds \ 21296postinstall_cmds \ 21297postuninstall_cmds \ 21298finish_cmds \ 21299sys_lib_search_path_spec \ 21300configure_time_dlsearch_path \ 21301configure_time_lt_sys_library_path; do 21302 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21303 *[\\\\\\\`\\"\\\$]*) 21304 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21305 ;; 21306 *) 21307 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21308 ;; 21309 esac 21310done 21311 21312ac_aux_dir='$ac_aux_dir' 21313 21314# See if we are running on zsh, and set the options that allow our 21315# commands through without removal of \ escapes INIT. 21316if test -n "\${ZSH_VERSION+set}"; then 21317 setopt NO_GLOB_SUBST 21318fi 21319 21320 21321 PACKAGE='$PACKAGE' 21322 VERSION='$VERSION' 21323 RM='$RM' 21324 ofile='$ofile' 21325 21326 21327 21328 21329_ACEOF 21330 21331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21332 21333# Handling of arguments. 21334for ac_config_target in $ac_config_targets 21335do 21336 case $ac_config_target in 21337 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21338 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21339 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21340 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21341 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21342 "xau.pc") CONFIG_FILES="$CONFIG_FILES xau.pc" ;; 21343 21344 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21345 esac 21346done 21347 21348 21349# If the user did not use the arguments to specify the items to instantiate, 21350# then the envvar interface is used. Set only those that are not. 21351# We use the long form for the default assignment because of an extremely 21352# bizarre bug on SunOS 4.1.3. 21353if $ac_need_defaults; then 21354 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21355 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21356 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21357fi 21358 21359# Have a temporary directory for convenience. Make it in the build tree 21360# simply because there is no reason against having it here, and in addition, 21361# creating and moving files from /tmp can sometimes cause problems. 21362# Hook for its removal unless debugging. 21363# Note that there is a small window in which the directory will not be cleaned: 21364# after its creation but before its name has been assigned to `$tmp'. 21365$debug || 21366{ 21367 tmp= ac_tmp= 21368 trap 'exit_status=$? 21369 : "${ac_tmp:=$tmp}" 21370 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21371' 0 21372 trap 'as_fn_exit 1' 1 2 13 15 21373} 21374# Create a (secure) tmp directory for tmp files. 21375 21376{ 21377 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21378 test -d "$tmp" 21379} || 21380{ 21381 tmp=./conf$$-$RANDOM 21382 (umask 077 && mkdir "$tmp") 21383} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21384ac_tmp=$tmp 21385 21386# Set up the scripts for CONFIG_FILES section. 21387# No need to generate them if there are no CONFIG_FILES. 21388# This happens for instance with `./config.status config.h'. 21389if test -n "$CONFIG_FILES"; then 21390 21391 21392ac_cr=`echo X | tr X '\015'` 21393# On cygwin, bash can eat \r inside `` if the user requested igncr. 21394# But we know of no other shell where ac_cr would be empty at this 21395# point, so we can use a bashism as a fallback. 21396if test "x$ac_cr" = x; then 21397 eval ac_cr=\$\'\\r\' 21398fi 21399ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21400if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21401 ac_cs_awk_cr='\\r' 21402else 21403 ac_cs_awk_cr=$ac_cr 21404fi 21405 21406echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21407_ACEOF 21408 21409 21410{ 21411 echo "cat >conf$$subs.awk <<_ACEOF" && 21412 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21413 echo "_ACEOF" 21414} >conf$$subs.sh || 21415 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21416ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21417ac_delim='%!_!# ' 21418for ac_last_try in false false false false false :; do 21419 . ./conf$$subs.sh || 21420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21421 21422 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21423 if test $ac_delim_n = $ac_delim_num; then 21424 break 21425 elif $ac_last_try; then 21426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21427 else 21428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21429 fi 21430done 21431rm -f conf$$subs.sh 21432 21433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21434cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21435_ACEOF 21436sed -n ' 21437h 21438s/^/S["/; s/!.*/"]=/ 21439p 21440g 21441s/^[^!]*!// 21442:repl 21443t repl 21444s/'"$ac_delim"'$// 21445t delim 21446:nl 21447h 21448s/\(.\{148\}\)..*/\1/ 21449t more1 21450s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21451p 21452n 21453b repl 21454:more1 21455s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21456p 21457g 21458s/.\{148\}// 21459t nl 21460:delim 21461h 21462s/\(.\{148\}\)..*/\1/ 21463t more2 21464s/["\\]/\\&/g; s/^/"/; s/$/"/ 21465p 21466b 21467:more2 21468s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21469p 21470g 21471s/.\{148\}// 21472t delim 21473' <conf$$subs.awk | sed ' 21474/^[^""]/{ 21475 N 21476 s/\n// 21477} 21478' >>$CONFIG_STATUS || ac_write_fail=1 21479rm -f conf$$subs.awk 21480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21481_ACAWK 21482cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21483 for (key in S) S_is_set[key] = 1 21484 FS = "" 21485 21486} 21487{ 21488 line = $ 0 21489 nfields = split(line, field, "@") 21490 substed = 0 21491 len = length(field[1]) 21492 for (i = 2; i < nfields; i++) { 21493 key = field[i] 21494 keylen = length(key) 21495 if (S_is_set[key]) { 21496 value = S[key] 21497 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21498 len += length(value) + length(field[++i]) 21499 substed = 1 21500 } else 21501 len += 1 + keylen 21502 } 21503 21504 print line 21505} 21506 21507_ACAWK 21508_ACEOF 21509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21510if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21511 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21512else 21513 cat 21514fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21515 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21516_ACEOF 21517 21518# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21519# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21520# trailing colons and then remove the whole line if VPATH becomes empty 21521# (actually we leave an empty line to preserve line numbers). 21522if test "x$srcdir" = x.; then 21523 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21524h 21525s/// 21526s/^/:/ 21527s/[ ]*$/:/ 21528s/:\$(srcdir):/:/g 21529s/:\${srcdir}:/:/g 21530s/:@srcdir@:/:/g 21531s/^:*// 21532s/:*$// 21533x 21534s/\(=[ ]*\).*/\1/ 21535G 21536s/\n// 21537s/^[^=]*=[ ]*$// 21538}' 21539fi 21540 21541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21542fi # test -n "$CONFIG_FILES" 21543 21544# Set up the scripts for CONFIG_HEADERS section. 21545# No need to generate them if there are no CONFIG_HEADERS. 21546# This happens for instance with `./config.status Makefile'. 21547if test -n "$CONFIG_HEADERS"; then 21548cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21549BEGIN { 21550_ACEOF 21551 21552# Transform confdefs.h into an awk script `defines.awk', embedded as 21553# here-document in config.status, that substitutes the proper values into 21554# config.h.in to produce config.h. 21555 21556# Create a delimiter string that does not exist in confdefs.h, to ease 21557# handling of long lines. 21558ac_delim='%!_!# ' 21559for ac_last_try in false false :; do 21560 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21561 if test -z "$ac_tt"; then 21562 break 21563 elif $ac_last_try; then 21564 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21565 else 21566 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21567 fi 21568done 21569 21570# For the awk script, D is an array of macro values keyed by name, 21571# likewise P contains macro parameters if any. Preserve backslash 21572# newline sequences. 21573 21574ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21575sed -n ' 21576s/.\{148\}/&'"$ac_delim"'/g 21577t rset 21578:rset 21579s/^[ ]*#[ ]*define[ ][ ]*/ / 21580t def 21581d 21582:def 21583s/\\$// 21584t bsnl 21585s/["\\]/\\&/g 21586s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21587D["\1"]=" \3"/p 21588s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21589d 21590:bsnl 21591s/["\\]/\\&/g 21592s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21593D["\1"]=" \3\\\\\\n"\\/p 21594t cont 21595s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21596t cont 21597d 21598:cont 21599n 21600s/.\{148\}/&'"$ac_delim"'/g 21601t clear 21602:clear 21603s/\\$// 21604t bsnlc 21605s/["\\]/\\&/g; s/^/"/; s/$/"/p 21606d 21607:bsnlc 21608s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21609b cont 21610' <confdefs.h | sed ' 21611s/'"$ac_delim"'/"\\\ 21612"/g' >>$CONFIG_STATUS || ac_write_fail=1 21613 21614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21615 for (key in D) D_is_set[key] = 1 21616 FS = "" 21617} 21618/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21619 line = \$ 0 21620 split(line, arg, " ") 21621 if (arg[1] == "#") { 21622 defundef = arg[2] 21623 mac1 = arg[3] 21624 } else { 21625 defundef = substr(arg[1], 2) 21626 mac1 = arg[2] 21627 } 21628 split(mac1, mac2, "(") #) 21629 macro = mac2[1] 21630 prefix = substr(line, 1, index(line, defundef) - 1) 21631 if (D_is_set[macro]) { 21632 # Preserve the white space surrounding the "#". 21633 print prefix "define", macro P[macro] D[macro] 21634 next 21635 } else { 21636 # Replace #undef with comments. This is necessary, for example, 21637 # in the case of _POSIX_SOURCE, which is predefined and required 21638 # on some systems where configure will not decide to define it. 21639 if (defundef == "undef") { 21640 print "/*", prefix defundef, macro, "*/" 21641 next 21642 } 21643 } 21644} 21645{ print } 21646_ACAWK 21647_ACEOF 21648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21649 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21650fi # test -n "$CONFIG_HEADERS" 21651 21652 21653eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21654shift 21655for ac_tag 21656do 21657 case $ac_tag in 21658 :[FHLC]) ac_mode=$ac_tag; continue;; 21659 esac 21660 case $ac_mode$ac_tag in 21661 :[FHL]*:*);; 21662 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21663 :[FH]-) ac_tag=-:-;; 21664 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21665 esac 21666 ac_save_IFS=$IFS 21667 IFS=: 21668 set x $ac_tag 21669 IFS=$ac_save_IFS 21670 shift 21671 ac_file=$1 21672 shift 21673 21674 case $ac_mode in 21675 :L) ac_source=$1;; 21676 :[FH]) 21677 ac_file_inputs= 21678 for ac_f 21679 do 21680 case $ac_f in 21681 -) ac_f="$ac_tmp/stdin";; 21682 *) # Look for the file first in the build tree, then in the source tree 21683 # (if the path is not absolute). The absolute path cannot be DOS-style, 21684 # because $ac_f cannot contain `:'. 21685 test -f "$ac_f" || 21686 case $ac_f in 21687 [\\/$]*) false;; 21688 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21689 esac || 21690 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21691 esac 21692 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21693 as_fn_append ac_file_inputs " '$ac_f'" 21694 done 21695 21696 # Let's still pretend it is `configure' which instantiates (i.e., don't 21697 # use $as_me), people would be surprised to read: 21698 # /* config.h. Generated by config.status. */ 21699 configure_input='Generated from '` 21700 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21701 `' by configure.' 21702 if test x"$ac_file" != x-; then 21703 configure_input="$ac_file. $configure_input" 21704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21705printf "%s\n" "$as_me: creating $ac_file" >&6;} 21706 fi 21707 # Neutralize special characters interpreted by sed in replacement strings. 21708 case $configure_input in #( 21709 *\&* | *\|* | *\\* ) 21710 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21711 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21712 *) ac_sed_conf_input=$configure_input;; 21713 esac 21714 21715 case $ac_tag in 21716 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21718 esac 21719 ;; 21720 esac 21721 21722 ac_dir=`$as_dirname -- "$ac_file" || 21723$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21724 X"$ac_file" : 'X\(//\)[^/]' \| \ 21725 X"$ac_file" : 'X\(//\)$' \| \ 21726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21727printf "%s\n" X"$ac_file" | 21728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21729 s//\1/ 21730 q 21731 } 21732 /^X\(\/\/\)[^/].*/{ 21733 s//\1/ 21734 q 21735 } 21736 /^X\(\/\/\)$/{ 21737 s//\1/ 21738 q 21739 } 21740 /^X\(\/\).*/{ 21741 s//\1/ 21742 q 21743 } 21744 s/.*/./; q'` 21745 as_dir="$ac_dir"; as_fn_mkdir_p 21746 ac_builddir=. 21747 21748case "$ac_dir" in 21749.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21750*) 21751 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21752 # A ".." for each directory in $ac_dir_suffix. 21753 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21754 case $ac_top_builddir_sub in 21755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21757 esac ;; 21758esac 21759ac_abs_top_builddir=$ac_pwd 21760ac_abs_builddir=$ac_pwd$ac_dir_suffix 21761# for backward compatibility: 21762ac_top_builddir=$ac_top_build_prefix 21763 21764case $srcdir in 21765 .) # We are building in place. 21766 ac_srcdir=. 21767 ac_top_srcdir=$ac_top_builddir_sub 21768 ac_abs_top_srcdir=$ac_pwd ;; 21769 [\\/]* | ?:[\\/]* ) # Absolute name. 21770 ac_srcdir=$srcdir$ac_dir_suffix; 21771 ac_top_srcdir=$srcdir 21772 ac_abs_top_srcdir=$srcdir ;; 21773 *) # Relative name. 21774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21775 ac_top_srcdir=$ac_top_build_prefix$srcdir 21776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21777esac 21778ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21779 21780 21781 case $ac_mode in 21782 :F) 21783 # 21784 # CONFIG_FILE 21785 # 21786 21787 case $INSTALL in 21788 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21789 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21790 esac 21791 ac_MKDIR_P=$MKDIR_P 21792 case $MKDIR_P in 21793 [\\/$]* | ?:[\\/]* ) ;; 21794 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21795 esac 21796_ACEOF 21797 21798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21799# If the template does not know about datarootdir, expand it. 21800# FIXME: This hack should be removed a few years after 2.60. 21801ac_datarootdir_hack=; ac_datarootdir_seen= 21802ac_sed_dataroot=' 21803/datarootdir/ { 21804 p 21805 q 21806} 21807/@datadir@/p 21808/@docdir@/p 21809/@infodir@/p 21810/@localedir@/p 21811/@mandir@/p' 21812case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21813*datarootdir*) ac_datarootdir_seen=yes;; 21814*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21816printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21817_ACEOF 21818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21819 ac_datarootdir_hack=' 21820 s&@datadir@&$datadir&g 21821 s&@docdir@&$docdir&g 21822 s&@infodir@&$infodir&g 21823 s&@localedir@&$localedir&g 21824 s&@mandir@&$mandir&g 21825 s&\\\${datarootdir}&$datarootdir&g' ;; 21826esac 21827_ACEOF 21828 21829# Neutralize VPATH when `$srcdir' = `.'. 21830# Shell code in configure.ac might set extrasub. 21831# FIXME: do we really want to maintain this feature? 21832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21833ac_sed_extra="$ac_vpsub 21834$extrasub 21835_ACEOF 21836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21837:t 21838/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21839s|@configure_input@|$ac_sed_conf_input|;t t 21840s&@top_builddir@&$ac_top_builddir_sub&;t t 21841s&@top_build_prefix@&$ac_top_build_prefix&;t t 21842s&@srcdir@&$ac_srcdir&;t t 21843s&@abs_srcdir@&$ac_abs_srcdir&;t t 21844s&@top_srcdir@&$ac_top_srcdir&;t t 21845s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21846s&@builddir@&$ac_builddir&;t t 21847s&@abs_builddir@&$ac_abs_builddir&;t t 21848s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21849s&@INSTALL@&$ac_INSTALL&;t t 21850s&@MKDIR_P@&$ac_MKDIR_P&;t t 21851$ac_datarootdir_hack 21852" 21853eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21854 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21855 21856test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21857 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21858 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21859 "$ac_tmp/out"`; test -z "$ac_out"; } && 21860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21861which seems to be undefined. Please make sure it is defined" >&5 21862printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21863which seems to be undefined. Please make sure it is defined" >&2;} 21864 21865 rm -f "$ac_tmp/stdin" 21866 case $ac_file in 21867 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21868 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21869 esac \ 21870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21871 ;; 21872 :H) 21873 # 21874 # CONFIG_HEADER 21875 # 21876 if test x"$ac_file" != x-; then 21877 { 21878 printf "%s\n" "/* $configure_input */" >&1 \ 21879 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21880 } >"$ac_tmp/config.h" \ 21881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21882 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21884printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21885 else 21886 rm -f "$ac_file" 21887 mv "$ac_tmp/config.h" "$ac_file" \ 21888 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21889 fi 21890 else 21891 printf "%s\n" "/* $configure_input */" >&1 \ 21892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21893 || as_fn_error $? "could not create -" "$LINENO" 5 21894 fi 21895# Compute "$ac_file"'s index in $config_headers. 21896_am_arg="$ac_file" 21897_am_stamp_count=1 21898for _am_header in $config_headers :; do 21899 case $_am_header in 21900 $_am_arg | $_am_arg:* ) 21901 break ;; 21902 * ) 21903 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21904 esac 21905done 21906echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21907$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21908 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21909 X"$_am_arg" : 'X\(//\)$' \| \ 21910 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21911printf "%s\n" X"$_am_arg" | 21912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21913 s//\1/ 21914 q 21915 } 21916 /^X\(\/\/\)[^/].*/{ 21917 s//\1/ 21918 q 21919 } 21920 /^X\(\/\/\)$/{ 21921 s//\1/ 21922 q 21923 } 21924 /^X\(\/\).*/{ 21925 s//\1/ 21926 q 21927 } 21928 s/.*/./; q'`/stamp-h$_am_stamp_count 21929 ;; 21930 21931 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21932printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21933 ;; 21934 esac 21935 21936 21937 case $ac_file$ac_mode in 21938 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21939 # Older Autoconf quotes --file arguments for eval, but not when files 21940 # are listed without --file. Let's play safe and only enable the eval 21941 # if we detect the quoting. 21942 # TODO: see whether this extra hack can be removed once we start 21943 # requiring Autoconf 2.70 or later. 21944 case $CONFIG_FILES in #( 21945 *\'*) : 21946 eval set x "$CONFIG_FILES" ;; #( 21947 *) : 21948 set x $CONFIG_FILES ;; #( 21949 *) : 21950 ;; 21951esac 21952 shift 21953 # Used to flag and report bootstrapping failures. 21954 am_rc=0 21955 for am_mf 21956 do 21957 # Strip MF so we end up with the name of the file. 21958 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21959 # Check whether this is an Automake generated Makefile which includes 21960 # dependency-tracking related rules and includes. 21961 # Grep'ing the whole file directly is not great: AIX grep has a line 21962 # limit of 2048, but all sed's we know have understand at least 4000. 21963 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21964 || continue 21965 am_dirpart=`$as_dirname -- "$am_mf" || 21966$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21967 X"$am_mf" : 'X\(//\)[^/]' \| \ 21968 X"$am_mf" : 'X\(//\)$' \| \ 21969 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21970printf "%s\n" X"$am_mf" | 21971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21972 s//\1/ 21973 q 21974 } 21975 /^X\(\/\/\)[^/].*/{ 21976 s//\1/ 21977 q 21978 } 21979 /^X\(\/\/\)$/{ 21980 s//\1/ 21981 q 21982 } 21983 /^X\(\/\).*/{ 21984 s//\1/ 21985 q 21986 } 21987 s/.*/./; q'` 21988 am_filepart=`$as_basename -- "$am_mf" || 21989$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21990 X"$am_mf" : 'X\(//\)$' \| \ 21991 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21992printf "%s\n" X/"$am_mf" | 21993 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21994 s//\1/ 21995 q 21996 } 21997 /^X\/\(\/\/\)$/{ 21998 s//\1/ 21999 q 22000 } 22001 /^X\/\(\/\).*/{ 22002 s//\1/ 22003 q 22004 } 22005 s/.*/./; q'` 22006 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22007 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22008 | $MAKE -f - am--depfiles" >&5 22009 (cd "$am_dirpart" \ 22010 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22011 | $MAKE -f - am--depfiles) >&5 2>&5 22012 ac_status=$? 22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22014 (exit $ac_status); } || am_rc=$? 22015 done 22016 if test $am_rc -ne 0; then 22017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22018printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 22019as_fn_error $? "Something went wrong bootstrapping makefile fragments 22020 for automatic dependency tracking. If GNU make was not used, consider 22021 re-running the configure script with MAKE=\"gmake\" (or whatever is 22022 necessary). You can also try re-running configure with the 22023 '--disable-dependency-tracking' option to at least be able to build 22024 the package (albeit without support for automatic dependency tracking). 22025See \`config.log' for more details" "$LINENO" 5; } 22026 fi 22027 { am_dirpart=; unset am_dirpart;} 22028 { am_filepart=; unset am_filepart;} 22029 { am_mf=; unset am_mf;} 22030 { am_rc=; unset am_rc;} 22031 rm -f conftest-deps.mk 22032} 22033 ;; 22034 "libtool":C) 22035 22036 # See if we are running on zsh, and set the options that allow our 22037 # commands through without removal of \ escapes. 22038 if test -n "${ZSH_VERSION+set}"; then 22039 setopt NO_GLOB_SUBST 22040 fi 22041 22042 cfgfile=${ofile}T 22043 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22044 $RM "$cfgfile" 22045 22046 cat <<_LT_EOF >> "$cfgfile" 22047#! $SHELL 22048# Generated automatically by $as_me ($PACKAGE) $VERSION 22049# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22050# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22051 22052# Provide generalized library-building support services. 22053# Written by Gordon Matzigkeit, 1996 22054 22055# Copyright (C) 2014 Free Software Foundation, Inc. 22056# This is free software; see the source for copying conditions. There is NO 22057# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22058 22059# GNU Libtool is free software; you can redistribute it and/or modify 22060# it under the terms of the GNU General Public License as published by 22061# the Free Software Foundation; either version 2 of of the License, or 22062# (at your option) any later version. 22063# 22064# As a special exception to the GNU General Public License, if you 22065# distribute this file as part of a program or library that is built 22066# using GNU Libtool, you may include this file under the same 22067# distribution terms that you use for the rest of that program. 22068# 22069# GNU Libtool is distributed in the hope that it will be useful, but 22070# WITHOUT ANY WARRANTY; without even the implied warranty of 22071# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22072# GNU General Public License for more details. 22073# 22074# You should have received a copy of the GNU General Public License 22075# along with this program. If not, see <http://www.gnu.org/licenses/>. 22076 22077 22078# The names of the tagged configurations supported by this script. 22079available_tags='' 22080 22081# Configured defaults for sys_lib_dlsearch_path munging. 22082: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22083 22084# ### BEGIN LIBTOOL CONFIG 22085 22086# Assembler program. 22087AS=$lt_AS 22088 22089# DLL creation program. 22090DLLTOOL=$lt_DLLTOOL 22091 22092# Object dumper program. 22093OBJDUMP=$lt_OBJDUMP 22094 22095# Which release of libtool.m4 was used? 22096macro_version=$macro_version 22097macro_revision=$macro_revision 22098 22099# Whether or not to build shared libraries. 22100build_libtool_libs=$enable_shared 22101 22102# Whether or not to build static libraries. 22103build_old_libs=$enable_static 22104 22105# What type of objects to build. 22106pic_mode=$pic_mode 22107 22108# Whether or not to optimize for fast installation. 22109fast_install=$enable_fast_install 22110 22111# Shared archive member basename,for filename based shared library versioning on AIX. 22112shared_archive_member_spec=$shared_archive_member_spec 22113 22114# Shell to use when invoking shell scripts. 22115SHELL=$lt_SHELL 22116 22117# An echo program that protects backslashes. 22118ECHO=$lt_ECHO 22119 22120# The PATH separator for the build system. 22121PATH_SEPARATOR=$lt_PATH_SEPARATOR 22122 22123# The host system. 22124host_alias=$host_alias 22125host=$host 22126host_os=$host_os 22127 22128# The build system. 22129build_alias=$build_alias 22130build=$build 22131build_os=$build_os 22132 22133# A sed program that does not truncate output. 22134SED=$lt_SED 22135 22136# Sed that helps us avoid accidentally triggering echo(1) options like -n. 22137Xsed="\$SED -e 1s/^X//" 22138 22139# A grep program that handles long lines. 22140GREP=$lt_GREP 22141 22142# An ERE matcher. 22143EGREP=$lt_EGREP 22144 22145# A literal string matcher. 22146FGREP=$lt_FGREP 22147 22148# A BSD- or MS-compatible name lister. 22149NM=$lt_NM 22150 22151# Whether we need soft or hard links. 22152LN_S=$lt_LN_S 22153 22154# What is the maximum length of a command? 22155max_cmd_len=$max_cmd_len 22156 22157# Object file suffix (normally "o"). 22158objext=$ac_objext 22159 22160# Executable file suffix (normally ""). 22161exeext=$exeext 22162 22163# whether the shell understands "unset". 22164lt_unset=$lt_unset 22165 22166# turn spaces into newlines. 22167SP2NL=$lt_lt_SP2NL 22168 22169# turn newlines into spaces. 22170NL2SP=$lt_lt_NL2SP 22171 22172# convert \$build file names to \$host format. 22173to_host_file_cmd=$lt_cv_to_host_file_cmd 22174 22175# convert \$build files to toolchain format. 22176to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22177 22178# A file(cmd) program that detects file types. 22179FILECMD=$lt_FILECMD 22180 22181# Method to check whether dependent libraries are shared objects. 22182deplibs_check_method=$lt_deplibs_check_method 22183 22184# Command to use when deplibs_check_method = "file_magic". 22185file_magic_cmd=$lt_file_magic_cmd 22186 22187# How to find potential files when deplibs_check_method = "file_magic". 22188file_magic_glob=$lt_file_magic_glob 22189 22190# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22191want_nocaseglob=$lt_want_nocaseglob 22192 22193# Command to associate shared and link libraries. 22194sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22195 22196# The archiver. 22197AR=$lt_AR 22198 22199# Flags to create an archive (by configure). 22200lt_ar_flags=$lt_ar_flags 22201 22202# Flags to create an archive. 22203AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22204 22205# How to feed a file listing to the archiver. 22206archiver_list_spec=$lt_archiver_list_spec 22207 22208# A symbol stripping program. 22209STRIP=$lt_STRIP 22210 22211# Commands used to install an old-style archive. 22212RANLIB=$lt_RANLIB 22213old_postinstall_cmds=$lt_old_postinstall_cmds 22214old_postuninstall_cmds=$lt_old_postuninstall_cmds 22215 22216# Whether to use a lock for old archive extraction. 22217lock_old_archive_extraction=$lock_old_archive_extraction 22218 22219# A C compiler. 22220LTCC=$lt_CC 22221 22222# LTCC compiler flags. 22223LTCFLAGS=$lt_CFLAGS 22224 22225# Take the output of nm and produce a listing of raw symbols and C names. 22226global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22227 22228# Transform the output of nm in a proper C declaration. 22229global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22230 22231# Transform the output of nm into a list of symbols to manually relocate. 22232global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22233 22234# Transform the output of nm in a C name address pair. 22235global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22236 22237# Transform the output of nm in a C name address pair when lib prefix is needed. 22238global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22239 22240# The name lister interface. 22241nm_interface=$lt_lt_cv_nm_interface 22242 22243# Specify filename containing input files for \$NM. 22244nm_file_list_spec=$lt_nm_file_list_spec 22245 22246# The root where to search for dependent libraries,and where our libraries should be installed. 22247lt_sysroot=$lt_sysroot 22248 22249# Command to truncate a binary pipe. 22250lt_truncate_bin=$lt_lt_cv_truncate_bin 22251 22252# The name of the directory that contains temporary libtool files. 22253objdir=$objdir 22254 22255# Used to examine libraries when file_magic_cmd begins with "file". 22256MAGIC_CMD=$MAGIC_CMD 22257 22258# Must we lock files when doing compilation? 22259need_locks=$lt_need_locks 22260 22261# Manifest tool. 22262MANIFEST_TOOL=$lt_MANIFEST_TOOL 22263 22264# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22265DSYMUTIL=$lt_DSYMUTIL 22266 22267# Tool to change global to local symbols on Mac OS X. 22268NMEDIT=$lt_NMEDIT 22269 22270# Tool to manipulate fat objects and archives on Mac OS X. 22271LIPO=$lt_LIPO 22272 22273# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22274OTOOL=$lt_OTOOL 22275 22276# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22277OTOOL64=$lt_OTOOL64 22278 22279# Old archive suffix (normally "a"). 22280libext=$libext 22281 22282# Shared library suffix (normally ".so"). 22283shrext_cmds=$lt_shrext_cmds 22284 22285# The commands to extract the exported symbol list from a shared archive. 22286extract_expsyms_cmds=$lt_extract_expsyms_cmds 22287 22288# Variables whose values should be saved in libtool wrapper scripts and 22289# restored at link time. 22290variables_saved_for_relink=$lt_variables_saved_for_relink 22291 22292# Do we need the "lib" prefix for modules? 22293need_lib_prefix=$need_lib_prefix 22294 22295# Do we need a version for libraries? 22296need_version=$need_version 22297 22298# Library versioning type. 22299version_type=$version_type 22300 22301# Shared library runtime path variable. 22302runpath_var=$runpath_var 22303 22304# Shared library path variable. 22305shlibpath_var=$shlibpath_var 22306 22307# Is shlibpath searched before the hard-coded library search path? 22308shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22309 22310# Format of library name prefix. 22311libname_spec=$lt_libname_spec 22312 22313# List of archive names. First name is the real one, the rest are links. 22314# The last name is the one that the linker finds with -lNAME 22315library_names_spec=$lt_library_names_spec 22316 22317# The coded name of the library, if different from the real name. 22318soname_spec=$lt_soname_spec 22319 22320# Permission mode override for installation of shared libraries. 22321install_override_mode=$lt_install_override_mode 22322 22323# Command to use after installation of a shared archive. 22324postinstall_cmds=$lt_postinstall_cmds 22325 22326# Command to use after uninstallation of a shared archive. 22327postuninstall_cmds=$lt_postuninstall_cmds 22328 22329# Commands used to finish a libtool library installation in a directory. 22330finish_cmds=$lt_finish_cmds 22331 22332# As "finish_cmds", except a single script fragment to be evaled but 22333# not shown. 22334finish_eval=$lt_finish_eval 22335 22336# Whether we should hardcode library paths into libraries. 22337hardcode_into_libs=$hardcode_into_libs 22338 22339# Compile-time system search path for libraries. 22340sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22341 22342# Detected run-time system search path for libraries. 22343sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22344 22345# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22346configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22347 22348# Whether dlopen is supported. 22349dlopen_support=$enable_dlopen 22350 22351# Whether dlopen of programs is supported. 22352dlopen_self=$enable_dlopen_self 22353 22354# Whether dlopen of statically linked programs is supported. 22355dlopen_self_static=$enable_dlopen_self_static 22356 22357# Commands to strip libraries. 22358old_striplib=$lt_old_striplib 22359striplib=$lt_striplib 22360 22361 22362# The linker used to build libraries. 22363LD=$lt_LD 22364 22365# How to create reloadable object files. 22366reload_flag=$lt_reload_flag 22367reload_cmds=$lt_reload_cmds 22368 22369# Commands used to build an old-style archive. 22370old_archive_cmds=$lt_old_archive_cmds 22371 22372# A language specific compiler. 22373CC=$lt_compiler 22374 22375# Is the compiler the GNU compiler? 22376with_gcc=$GCC 22377 22378# Compiler flag to turn off builtin functions. 22379no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22380 22381# Additional compiler flags for building library objects. 22382pic_flag=$lt_lt_prog_compiler_pic 22383 22384# How to pass a linker flag through the compiler. 22385wl=$lt_lt_prog_compiler_wl 22386 22387# Compiler flag to prevent dynamic linking. 22388link_static_flag=$lt_lt_prog_compiler_static 22389 22390# Does compiler simultaneously support -c and -o options? 22391compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22392 22393# Whether or not to add -lc for building shared libraries. 22394build_libtool_need_lc=$archive_cmds_need_lc 22395 22396# Whether or not to disallow shared libs when runtime libs are static. 22397allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22398 22399# Compiler flag to allow reflexive dlopens. 22400export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22401 22402# Compiler flag to generate shared objects directly from archives. 22403whole_archive_flag_spec=$lt_whole_archive_flag_spec 22404 22405# Whether the compiler copes with passing no objects directly. 22406compiler_needs_object=$lt_compiler_needs_object 22407 22408# Create an old-style archive from a shared archive. 22409old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22410 22411# Create a temporary old-style archive to link instead of a shared archive. 22412old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22413 22414# Commands used to build a shared archive. 22415archive_cmds=$lt_archive_cmds 22416archive_expsym_cmds=$lt_archive_expsym_cmds 22417 22418# Commands used to build a loadable module if different from building 22419# a shared archive. 22420module_cmds=$lt_module_cmds 22421module_expsym_cmds=$lt_module_expsym_cmds 22422 22423# Whether we are building with GNU ld or not. 22424with_gnu_ld=$lt_with_gnu_ld 22425 22426# Flag that allows shared libraries with undefined symbols to be built. 22427allow_undefined_flag=$lt_allow_undefined_flag 22428 22429# Flag that enforces no undefined symbols. 22430no_undefined_flag=$lt_no_undefined_flag 22431 22432# Flag to hardcode \$libdir into a binary during linking. 22433# This must work even if \$libdir does not exist 22434hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22435 22436# Whether we need a single "-rpath" flag with a separated argument. 22437hardcode_libdir_separator=$lt_hardcode_libdir_separator 22438 22439# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22440# DIR into the resulting binary. 22441hardcode_direct=$hardcode_direct 22442 22443# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22444# DIR into the resulting binary and the resulting library dependency is 22445# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22446# library is relocated. 22447hardcode_direct_absolute=$hardcode_direct_absolute 22448 22449# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22450# into the resulting binary. 22451hardcode_minus_L=$hardcode_minus_L 22452 22453# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22454# into the resulting binary. 22455hardcode_shlibpath_var=$hardcode_shlibpath_var 22456 22457# Set to "yes" if building a shared library automatically hardcodes DIR 22458# into the library and all subsequent libraries and executables linked 22459# against it. 22460hardcode_automatic=$hardcode_automatic 22461 22462# Set to yes if linker adds runtime paths of dependent libraries 22463# to runtime path list. 22464inherit_rpath=$inherit_rpath 22465 22466# Whether libtool must link a program against all its dependency libraries. 22467link_all_deplibs=$link_all_deplibs 22468 22469# Set to "yes" if exported symbols are required. 22470always_export_symbols=$always_export_symbols 22471 22472# The commands to list exported symbols. 22473export_symbols_cmds=$lt_export_symbols_cmds 22474 22475# Symbols that should not be listed in the preloaded symbols. 22476exclude_expsyms=$lt_exclude_expsyms 22477 22478# Symbols that must always be exported. 22479include_expsyms=$lt_include_expsyms 22480 22481# Commands necessary for linking programs (against libraries) with templates. 22482prelink_cmds=$lt_prelink_cmds 22483 22484# Commands necessary for finishing linking programs. 22485postlink_cmds=$lt_postlink_cmds 22486 22487# Specify filename containing input files. 22488file_list_spec=$lt_file_list_spec 22489 22490# How to hardcode a shared library path into an executable. 22491hardcode_action=$hardcode_action 22492 22493# ### END LIBTOOL CONFIG 22494 22495_LT_EOF 22496 22497 cat <<'_LT_EOF' >> "$cfgfile" 22498 22499# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22500 22501# func_munge_path_list VARIABLE PATH 22502# ----------------------------------- 22503# VARIABLE is name of variable containing _space_ separated list of 22504# directories to be munged by the contents of PATH, which is string 22505# having a format: 22506# "DIR[:DIR]:" 22507# string "DIR[ DIR]" will be prepended to VARIABLE 22508# ":DIR[:DIR]" 22509# string "DIR[ DIR]" will be appended to VARIABLE 22510# "DIRP[:DIRP]::[DIRA:]DIRA" 22511# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22512# "DIRA[ DIRA]" will be appended to VARIABLE 22513# "DIR[:DIR]" 22514# VARIABLE will be replaced by "DIR[ DIR]" 22515func_munge_path_list () 22516{ 22517 case x$2 in 22518 x) 22519 ;; 22520 *:) 22521 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22522 ;; 22523 x:*) 22524 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22525 ;; 22526 *::*) 22527 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22528 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22529 ;; 22530 *) 22531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22532 ;; 22533 esac 22534} 22535 22536 22537# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22538func_cc_basename () 22539{ 22540 for cc_temp in $*""; do 22541 case $cc_temp in 22542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22544 \-*) ;; 22545 *) break;; 22546 esac 22547 done 22548 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22549} 22550 22551 22552# ### END FUNCTIONS SHARED WITH CONFIGURE 22553 22554_LT_EOF 22555 22556 case $host_os in 22557 aix3*) 22558 cat <<\_LT_EOF >> "$cfgfile" 22559# AIX sometimes has problems with the GCC collect2 program. For some 22560# reason, if we set the COLLECT_NAMES environment variable, the problems 22561# vanish in a puff of smoke. 22562if test set != "${COLLECT_NAMES+set}"; then 22563 COLLECT_NAMES= 22564 export COLLECT_NAMES 22565fi 22566_LT_EOF 22567 ;; 22568 esac 22569 22570 22571 22572ltmain=$ac_aux_dir/ltmain.sh 22573 22574 22575 # We use sed instead of cat because bash on DJGPP gets confused if 22576 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22577 # text mode, it properly converts lines to CR/LF. This bash problem 22578 # is reportedly fixed, but why not run on old versions too? 22579 $SED '$q' "$ltmain" >> "$cfgfile" \ 22580 || (rm -f "$cfgfile"; exit 1) 22581 22582 mv -f "$cfgfile" "$ofile" || 22583 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22584 chmod +x "$ofile" 22585 22586 ;; 22587 22588 esac 22589done # for ac_tag 22590 22591 22592as_fn_exit 0 22593_ACEOF 22594ac_clean_files=$ac_clean_files_save 22595 22596test $ac_write_fail = 0 || 22597 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22598 22599 22600# configure is writing to config.log, and then calls config.status. 22601# config.status does its own redirection, appending to config.log. 22602# Unfortunately, on DOS this fails, as config.log is still kept open 22603# by configure, so config.status won't be able to write to it; its 22604# output is simply discarded. So we exec the FD to /dev/null, 22605# effectively closing config.log, so it can be properly (re)opened and 22606# appended to by config.status. When coming back to configure, we 22607# need to make the FD available again. 22608if test "$no_create" != yes; then 22609 ac_cs_success=: 22610 ac_config_status_args= 22611 test "$silent" = yes && 22612 ac_config_status_args="$ac_config_status_args --quiet" 22613 exec 5>/dev/null 22614 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22615 exec 5>>config.log 22616 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22617 # would make configure fail if this is the last instruction. 22618 $ac_cs_success || as_fn_exit 1 22619fi 22620if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22622printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22623fi 22624 22625 22626