configure revision 19569120
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for libXpm 3.5.14. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/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/libxpm/-/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='libXpm' 624PACKAGE_TARNAME='libXpm' 625PACKAGE_VERSION='3.5.14' 626PACKAGE_STRING='libXpm 3.5.14' 627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxpm/-/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 667USE_GETTEXT_FALSE 668USE_GETTEXT_TRUE 669LOCALEDIR 670BUILD_SXPM_FALSE 671BUILD_SXPM_TRUE 672SXPM_LIBS 673SXPM_CFLAGS 674XPM_LIBS 675XPM_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 708DLLTOOL 709OBJDUMP 710FILECMD 711LN_S 712NM 713ac_ct_DUMPBIN 714DUMPBIN 715LD 716FGREP 717EGREP 718GREP 719SED 720am__fastdepCC_FALSE 721am__fastdepCC_TRUE 722CCDEPMODE 723am__nodep 724AMDEPBACKSLASH 725AMDEP_FALSE 726AMDEP_TRUE 727am__include 728DEPDIR 729OBJEXT 730EXEEXT 731ac_ct_CC 732CPPFLAGS 733LDFLAGS 734CFLAGS 735CC 736host_os 737host_vendor 738host_cpu 739host 740build_os 741build_vendor 742build_cpu 743build 744LIBTOOL 745AM_BACKSLASH 746AM_DEFAULT_VERBOSITY 747AM_DEFAULT_V 748AM_V 749CSCOPE 750ETAGS 751CTAGS 752am__untar 753am__tar 754AMTAR 755am__leading_dot 756SET_MAKE 757AWK 758mkdir_p 759MKDIR_P 760INSTALL_STRIP_PROGRAM 761STRIP 762install_sh 763MAKEINFO 764AUTOHEADER 765AUTOMAKE 766AUTOCONF 767ACLOCAL 768VERSION 769PACKAGE 770CYGPATH_W 771am__isrc 772INSTALL_DATA 773INSTALL_SCRIPT 774INSTALL_PROGRAM 775target_alias 776host_alias 777build_alias 778LIBS 779ECHO_T 780ECHO_N 781ECHO_C 782DEFS 783mandir 784localedir 785libdir 786psdir 787pdfdir 788dvidir 789htmldir 790infodir 791docdir 792oldincludedir 793includedir 794runstatedir 795localstatedir 796sharedstatedir 797sysconfdir 798datadir 799datarootdir 800libexecdir 801sbindir 802bindir 803program_transform_name 804prefix 805exec_prefix 806PACKAGE_URL 807PACKAGE_BUGREPORT 808PACKAGE_STRING 809PACKAGE_VERSION 810PACKAGE_TARNAME 811PACKAGE_NAME 812PATH_SEPARATOR 813SHELL 814am__quote' 815ac_subst_files='' 816ac_user_opts=' 817enable_option_checking 818enable_silent_rules 819enable_shared 820enable_static 821with_pic 822enable_fast_install 823with_aix_soname 824enable_dependency_tracking 825with_gnu_ld 826with_sysroot 827enable_libtool_lock 828enable_selective_werror 829enable_strict_compilation 830with_localedir 831enable_stat_zfile 832' 833 ac_precious_vars='build_alias 834host_alias 835target_alias 836CC 837CFLAGS 838LDFLAGS 839LIBS 840CPPFLAGS 841LT_SYS_LIBRARY_PATH 842PKG_CONFIG 843PKG_CONFIG_PATH 844PKG_CONFIG_LIBDIR 845XPM_CFLAGS 846XPM_LIBS 847SXPM_CFLAGS 848SXPM_LIBS' 849 850 851# Initialize some variables set by options. 852ac_init_help= 853ac_init_version=false 854ac_unrecognized_opts= 855ac_unrecognized_sep= 856# The variables have the same names as the options, with 857# dashes changed to underlines. 858cache_file=/dev/null 859exec_prefix=NONE 860no_create= 861no_recursion= 862prefix=NONE 863program_prefix=NONE 864program_suffix=NONE 865program_transform_name=s,x,x, 866silent= 867site= 868srcdir= 869verbose= 870x_includes=NONE 871x_libraries=NONE 872 873# Installation directory options. 874# These are left unexpanded so users can "make install exec_prefix=/foo" 875# and all the variables that are supposed to be based on exec_prefix 876# by default will actually change. 877# Use braces instead of parens because sh, perl, etc. also accept them. 878# (The list follows the same order as the GNU Coding Standards.) 879bindir='${exec_prefix}/bin' 880sbindir='${exec_prefix}/sbin' 881libexecdir='${exec_prefix}/libexec' 882datarootdir='${prefix}/share' 883datadir='${datarootdir}' 884sysconfdir='${prefix}/etc' 885sharedstatedir='${prefix}/com' 886localstatedir='${prefix}/var' 887runstatedir='${localstatedir}/run' 888includedir='${prefix}/include' 889oldincludedir='/usr/include' 890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 891infodir='${datarootdir}/info' 892htmldir='${docdir}' 893dvidir='${docdir}' 894pdfdir='${docdir}' 895psdir='${docdir}' 896libdir='${exec_prefix}/lib' 897localedir='${datarootdir}/locale' 898mandir='${datarootdir}/man' 899 900ac_prev= 901ac_dashdash= 902for ac_option 903do 904 # If the previous option needs an argument, assign it. 905 if test -n "$ac_prev"; then 906 eval $ac_prev=\$ac_option 907 ac_prev= 908 continue 909 fi 910 911 case $ac_option in 912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 913 *=) ac_optarg= ;; 914 *) ac_optarg=yes ;; 915 esac 916 917 case $ac_dashdash$ac_option in 918 --) 919 ac_dashdash=yes ;; 920 921 -bindir | --bindir | --bindi | --bind | --bin | --bi) 922 ac_prev=bindir ;; 923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 924 bindir=$ac_optarg ;; 925 926 -build | --build | --buil | --bui | --bu) 927 ac_prev=build_alias ;; 928 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 929 build_alias=$ac_optarg ;; 930 931 -cache-file | --cache-file | --cache-fil | --cache-fi \ 932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 933 ac_prev=cache_file ;; 934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 936 cache_file=$ac_optarg ;; 937 938 --config-cache | -C) 939 cache_file=config.cache ;; 940 941 -datadir | --datadir | --datadi | --datad) 942 ac_prev=datadir ;; 943 -datadir=* | --datadir=* | --datadi=* | --datad=*) 944 datadir=$ac_optarg ;; 945 946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 947 | --dataroo | --dataro | --datar) 948 ac_prev=datarootdir ;; 949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 951 datarootdir=$ac_optarg ;; 952 953 -disable-* | --disable-*) 954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 957 as_fn_error $? "invalid feature name: \`$ac_useropt'" 958 ac_useropt_orig=$ac_useropt 959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 960 case $ac_user_opts in 961 *" 962"enable_$ac_useropt" 963"*) ;; 964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 965 ac_unrecognized_sep=', ';; 966 esac 967 eval enable_$ac_useropt=no ;; 968 969 -docdir | --docdir | --docdi | --doc | --do) 970 ac_prev=docdir ;; 971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 972 docdir=$ac_optarg ;; 973 974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 975 ac_prev=dvidir ;; 976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 977 dvidir=$ac_optarg ;; 978 979 -enable-* | --enable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: \`$ac_useropt'" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988"enable_$ac_useropt" 989"*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=\$ac_optarg ;; 994 995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 997 | --exec | --exe | --ex) 998 ac_prev=exec_prefix ;; 999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1001 | --exec=* | --exe=* | --ex=*) 1002 exec_prefix=$ac_optarg ;; 1003 1004 -gas | --gas | --ga | --g) 1005 # Obsolete; use --with-gas. 1006 with_gas=yes ;; 1007 1008 -help | --help | --hel | --he | -h) 1009 ac_init_help=long ;; 1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1011 ac_init_help=recursive ;; 1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1013 ac_init_help=short ;; 1014 1015 -host | --host | --hos | --ho) 1016 ac_prev=host_alias ;; 1017 -host=* | --host=* | --hos=* | --ho=*) 1018 host_alias=$ac_optarg ;; 1019 1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1021 ac_prev=htmldir ;; 1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1023 | --ht=*) 1024 htmldir=$ac_optarg ;; 1025 1026 -includedir | --includedir | --includedi | --included | --include \ 1027 | --includ | --inclu | --incl | --inc) 1028 ac_prev=includedir ;; 1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1030 | --includ=* | --inclu=* | --incl=* | --inc=*) 1031 includedir=$ac_optarg ;; 1032 1033 -infodir | --infodir | --infodi | --infod | --info | --inf) 1034 ac_prev=infodir ;; 1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1036 infodir=$ac_optarg ;; 1037 1038 -libdir | --libdir | --libdi | --libd) 1039 ac_prev=libdir ;; 1040 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1041 libdir=$ac_optarg ;; 1042 1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1044 | --libexe | --libex | --libe) 1045 ac_prev=libexecdir ;; 1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1047 | --libexe=* | --libex=* | --libe=*) 1048 libexecdir=$ac_optarg ;; 1049 1050 -localedir | --localedir | --localedi | --localed | --locale) 1051 ac_prev=localedir ;; 1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1053 localedir=$ac_optarg ;; 1054 1055 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1056 | --localstate | --localstat | --localsta | --localst | --locals) 1057 ac_prev=localstatedir ;; 1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1060 localstatedir=$ac_optarg ;; 1061 1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1063 ac_prev=mandir ;; 1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1065 mandir=$ac_optarg ;; 1066 1067 -nfp | --nfp | --nf) 1068 # Obsolete; use --without-fp. 1069 with_fp=no ;; 1070 1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1072 | --no-cr | --no-c | -n) 1073 no_create=yes ;; 1074 1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1077 no_recursion=yes ;; 1078 1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1081 | --oldin | --oldi | --old | --ol | --o) 1082 ac_prev=oldincludedir ;; 1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1086 oldincludedir=$ac_optarg ;; 1087 1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1089 ac_prev=prefix ;; 1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1091 prefix=$ac_optarg ;; 1092 1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1094 | --program-pre | --program-pr | --program-p) 1095 ac_prev=program_prefix ;; 1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1098 program_prefix=$ac_optarg ;; 1099 1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1101 | --program-suf | --program-su | --program-s) 1102 ac_prev=program_suffix ;; 1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1105 program_suffix=$ac_optarg ;; 1106 1107 -program-transform-name | --program-transform-name \ 1108 | --program-transform-nam | --program-transform-na \ 1109 | --program-transform-n | --program-transform- \ 1110 | --program-transform | --program-transfor \ 1111 | --program-transfo | --program-transf \ 1112 | --program-trans | --program-tran \ 1113 | --progr-tra | --program-tr | --program-t) 1114 ac_prev=program_transform_name ;; 1115 -program-transform-name=* | --program-transform-name=* \ 1116 | --program-transform-nam=* | --program-transform-na=* \ 1117 | --program-transform-n=* | --program-transform-=* \ 1118 | --program-transform=* | --program-transfor=* \ 1119 | --program-transfo=* | --program-transf=* \ 1120 | --program-trans=* | --program-tran=* \ 1121 | --progr-tra=* | --program-tr=* | --program-t=*) 1122 program_transform_name=$ac_optarg ;; 1123 1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1125 ac_prev=pdfdir ;; 1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1127 pdfdir=$ac_optarg ;; 1128 1129 -psdir | --psdir | --psdi | --psd | --ps) 1130 ac_prev=psdir ;; 1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1132 psdir=$ac_optarg ;; 1133 1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1135 | -silent | --silent | --silen | --sile | --sil) 1136 silent=yes ;; 1137 1138 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1139 | --runstate | --runstat | --runsta | --runst | --runs \ 1140 | --run | --ru | --r) 1141 ac_prev=runstatedir ;; 1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1144 | --run=* | --ru=* | --r=*) 1145 runstatedir=$ac_optarg ;; 1146 1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1148 ac_prev=sbindir ;; 1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1150 | --sbi=* | --sb=*) 1151 sbindir=$ac_optarg ;; 1152 1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1155 | --sharedst | --shareds | --shared | --share | --shar \ 1156 | --sha | --sh) 1157 ac_prev=sharedstatedir ;; 1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1161 | --sha=* | --sh=*) 1162 sharedstatedir=$ac_optarg ;; 1163 1164 -site | --site | --sit) 1165 ac_prev=site ;; 1166 -site=* | --site=* | --sit=*) 1167 site=$ac_optarg ;; 1168 1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1170 ac_prev=srcdir ;; 1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1172 srcdir=$ac_optarg ;; 1173 1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1175 | --syscon | --sysco | --sysc | --sys | --sy) 1176 ac_prev=sysconfdir ;; 1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1179 sysconfdir=$ac_optarg ;; 1180 1181 -target | --target | --targe | --targ | --tar | --ta | --t) 1182 ac_prev=target_alias ;; 1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1184 target_alias=$ac_optarg ;; 1185 1186 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1187 verbose=yes ;; 1188 1189 -version | --version | --versio | --versi | --vers | -V) 1190 ac_init_version=: ;; 1191 1192 -with-* | --with-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: \`$ac_useropt'" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201"with_$ac_useropt" 1202"*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=\$ac_optarg ;; 1207 1208 -without-* | --without-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: \`$ac_useropt'" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217"with_$ac_useropt" 1218"*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=no ;; 1223 1224 --x) 1225 # Obsolete; use --with-x. 1226 with_x=yes ;; 1227 1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1229 | --x-incl | --x-inc | --x-in | --x-i) 1230 ac_prev=x_includes ;; 1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1233 x_includes=$ac_optarg ;; 1234 1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1237 ac_prev=x_libraries ;; 1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1240 x_libraries=$ac_optarg ;; 1241 1242 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1243Try \`$0 --help' for more information" 1244 ;; 1245 1246 *=*) 1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1248 # Reject names that are not valid shell variable names. 1249 case $ac_envvar in #( 1250 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1252 esac 1253 eval $ac_envvar=\$ac_optarg 1254 export $ac_envvar ;; 1255 1256 *) 1257 # FIXME: should be removed in autoconf 3.0. 1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1262 ;; 1263 1264 esac 1265done 1266 1267if test -n "$ac_prev"; then 1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1269 as_fn_error $? "missing argument to $ac_option" 1270fi 1271 1272if test -n "$ac_unrecognized_opts"; then 1273 case $enable_option_checking in 1274 no) ;; 1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1277 esac 1278fi 1279 1280# Check all directory arguments for consistency. 1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir runstatedir 1285do 1286 eval ac_val=\$$ac_var 1287 # Remove trailing slashes. 1288 case $ac_val in 1289 */ ) 1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1291 eval $ac_var=\$ac_val;; 1292 esac 1293 # Be sure to have absolute directory names. 1294 case $ac_val in 1295 [\\/$]* | ?:[\\/]* ) continue;; 1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1297 esac 1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1299done 1300 1301# There might be people who depend on the old broken behavior: `$host' 1302# used to hold the argument of --host etc. 1303# FIXME: To remove some day. 1304build=$build_alias 1305host=$host_alias 1306target=$target_alias 1307 1308# FIXME: To remove some day. 1309if test "x$host_alias" != x; then 1310 if test "x$build_alias" = x; then 1311 cross_compiling=maybe 1312 elif test "x$build_alias" != "x$host_alias"; then 1313 cross_compiling=yes 1314 fi 1315fi 1316 1317ac_tool_prefix= 1318test -n "$host_alias" && ac_tool_prefix=$host_alias- 1319 1320test "$silent" = yes && exec 6>/dev/null 1321 1322 1323ac_pwd=`pwd` && test -n "$ac_pwd" && 1324ac_ls_di=`ls -di .` && 1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1326 as_fn_error $? "working directory cannot be determined" 1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1328 as_fn_error $? "pwd does not report name of working directory" 1329 1330 1331# Find the source files, if location was not specified. 1332if test -z "$srcdir"; then 1333 ac_srcdir_defaulted=yes 1334 # Try the directory containing this script, then the parent directory. 1335 ac_confdir=`$as_dirname -- "$as_myself" || 1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1337 X"$as_myself" : 'X\(//\)[^/]' \| \ 1338 X"$as_myself" : 'X\(//\)$' \| \ 1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1340printf "%s\n" X"$as_myself" | 1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)[^/].*/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\).*/{ 1354 s//\1/ 1355 q 1356 } 1357 s/.*/./; q'` 1358 srcdir=$ac_confdir 1359 if test ! -r "$srcdir/$ac_unique_file"; then 1360 srcdir=.. 1361 fi 1362else 1363 ac_srcdir_defaulted=no 1364fi 1365if test ! -r "$srcdir/$ac_unique_file"; then 1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1368fi 1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1370ac_abs_confdir=`( 1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1372 pwd)` 1373# When building in place, set srcdir=. 1374if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376fi 1377# Remove unnecessary trailing slashes from srcdir. 1378# Double slashes in file names in object file debugging info 1379# mess up M-x gdb in Emacs. 1380case $srcdir in 1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382esac 1383for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388done 1389 1390# 1391# Report the --help message. 1392# 1393if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397\`configure' configures libXpm 3.5.14 to adapt to many kinds of systems. 1398 1399Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404Defaults for the options are specified in brackets. 1405 1406Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking ...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423By default, \`make install' will install all the files in 1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426for instance \`--prefix=\$HOME'. 1427 1428For better control, use the options below. 1429 1430Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1438 --libdir=DIR object code libraries [EPREFIX/lib] 1439 --includedir=DIR C header files [PREFIX/include] 1440 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1443 --infodir=DIR info documentation [DATAROOTDIR/info] 1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1445 --mandir=DIR man documentation [DATAROOTDIR/man] 1446 --docdir=DIR documentation root [DATAROOTDIR/doc/libXpm] 1447 --htmldir=DIR html documentation [DOCDIR] 1448 --dvidir=DIR dvi documentation [DOCDIR] 1449 --pdfdir=DIR pdf documentation [DOCDIR] 1450 --psdir=DIR ps documentation [DOCDIR] 1451_ACEOF 1452 1453 cat <<\_ACEOF 1454 1455Program names: 1456 --program-prefix=PREFIX prepend PREFIX to installed program names 1457 --program-suffix=SUFFIX append SUFFIX to installed program names 1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1459 1460System types: 1461 --build=BUILD configure for building on BUILD [guessed] 1462 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1463_ACEOF 1464fi 1465 1466if test -n "$ac_init_help"; then 1467 case $ac_init_help in 1468 short | recursive ) echo "Configuration of libXpm 3.5.14:";; 1469 esac 1470 cat <<\_ACEOF 1471 1472Optional Features: 1473 --disable-option-checking ignore unrecognized --enable/--with options 1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1476 --enable-silent-rules less verbose build output (undo: "make V=1") 1477 --disable-silent-rules verbose build output (undo: "make V=0") 1478 --enable-shared[=PKGS] build shared libraries [default=yes] 1479 --enable-static[=PKGS] build static libraries [default=yes] 1480 --enable-fast-install[=PKGS] 1481 optimize for fast installation [default=yes] 1482 --enable-dependency-tracking 1483 do not reject slow dependency extractors 1484 --disable-dependency-tracking 1485 speeds up one-time build 1486 --disable-libtool-lock avoid locking (might break parallel builds) 1487 --disable-selective-werror 1488 Turn off selective compiler errors. (default: 1489 enabled) 1490 --enable-strict-compilation 1491 Enable all warnings from compiler and make them 1492 errors (default: disabled) 1493 --enable-stat-zfile Search for files with .Z & .gz extensions 1494 automatically [default=yes] 1495 1496Optional Packages: 1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1500 both] 1501 --with-aix-soname=aix|svr4|both 1502 shared library versioning (aka "SONAME") variant to 1503 provide on AIX, [default=aix]. 1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1506 compiler's sysroot if not specified). 1507 --with-localedir=<path> Path to install message files in (default: 1508 datadir/locale) 1509 1510Some influential environment variables: 1511 CC C compiler command 1512 CFLAGS C compiler flags 1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1514 nonstandard directory <lib dir> 1515 LIBS libraries to pass to the linker, e.g. -l<library> 1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1517 you have headers in a nonstandard directory <include dir> 1518 LT_SYS_LIBRARY_PATH 1519 User-defined run-time library search path. 1520 PKG_CONFIG path to pkg-config utility 1521 PKG_CONFIG_PATH 1522 directories to add to pkg-config's search path 1523 PKG_CONFIG_LIBDIR 1524 path overriding pkg-config's built-in search path 1525 XPM_CFLAGS C compiler flags for XPM, overriding pkg-config 1526 XPM_LIBS linker flags for XPM, overriding pkg-config 1527 SXPM_CFLAGS C compiler flags for SXPM, overriding pkg-config 1528 SXPM_LIBS linker flags for SXPM, overriding pkg-config 1529 1530Use these variables to override the choices made by `configure' or to help 1531it to find libraries and programs with nonstandard names/locations. 1532 1533Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues>. 1534_ACEOF 1535ac_status=$? 1536fi 1537 1538if test "$ac_init_help" = "recursive"; then 1539 # If there are subdirs, report their specific --help. 1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1541 test -d "$ac_dir" || 1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1543 continue 1544 ac_builddir=. 1545 1546case "$ac_dir" in 1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548*) 1549 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1550 # A ".." for each directory in $ac_dir_suffix. 1551 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1552 case $ac_top_builddir_sub in 1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1555 esac ;; 1556esac 1557ac_abs_top_builddir=$ac_pwd 1558ac_abs_builddir=$ac_pwd$ac_dir_suffix 1559# for backward compatibility: 1560ac_top_builddir=$ac_top_build_prefix 1561 1562case $srcdir in 1563 .) # We are building in place. 1564 ac_srcdir=. 1565 ac_top_srcdir=$ac_top_builddir_sub 1566 ac_abs_top_srcdir=$ac_pwd ;; 1567 [\\/]* | ?:[\\/]* ) # Absolute name. 1568 ac_srcdir=$srcdir$ac_dir_suffix; 1569 ac_top_srcdir=$srcdir 1570 ac_abs_top_srcdir=$srcdir ;; 1571 *) # Relative name. 1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1573 ac_top_srcdir=$ac_top_build_prefix$srcdir 1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1575esac 1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1577 1578 cd "$ac_dir" || { ac_status=$?; continue; } 1579 # Check for configure.gnu first; this name is used for a wrapper for 1580 # Metaconfig's "Configure" on case-insensitive file systems. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597libXpm configure 3.5.14 1598generated by GNU Autoconf 2.71 1599 1600Copyright (C) 2021 Free Software Foundation, Inc. 1601This configure script is free software; the Free Software Foundation 1602gives unlimited permission to copy, distribute and modify it. 1603_ACEOF 1604 exit 1605fi 1606 1607## ------------------------ ## 1608## Autoconf initialization. ## 1609## ------------------------ ## 1610 1611# ac_fn_c_try_compile LINENO 1612# -------------------------- 1613# Try to compile conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_compile () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext conftest.beam 1618 if { { ac_try="$ac_compile" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624printf "%s\n" "$ac_try_echo"; } >&5 1625 (eval "$ac_compile") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest.$ac_objext 1637then : 1638 ac_retval=0 1639else $as_nop 1640 printf "%s\n" "$as_me: failed program was:" >&5 1641sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644fi 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 as_fn_set_status $ac_retval 1647 1648} # ac_fn_c_try_compile 1649 1650# ac_fn_c_try_link LINENO 1651# ----------------------- 1652# Try to link conftest.$ac_ext, and return whether this succeeded. 1653ac_fn_c_try_link () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1657 if { { ac_try="$ac_link" 1658case "(($ac_try" in 1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1660 *) ac_try_echo=$ac_try;; 1661esac 1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1663printf "%s\n" "$ac_try_echo"; } >&5 1664 (eval "$ac_link") 2>conftest.err 1665 ac_status=$? 1666 if test -s conftest.err; then 1667 grep -v '^ *+' conftest.err >conftest.er1 1668 cat conftest.er1 >&5 1669 mv -f conftest.er1 conftest.err 1670 fi 1671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672 test $ac_status = 0; } && { 1673 test -z "$ac_c_werror_flag" || 1674 test ! -s conftest.err 1675 } && test -s conftest$ac_exeext && { 1676 test "$cross_compiling" = yes || 1677 test -x conftest$ac_exeext 1678 } 1679then : 1680 ac_retval=0 1681else $as_nop 1682 printf "%s\n" "$as_me: failed program was:" >&5 1683sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=1 1686fi 1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1689 # interfere with the next link command; also delete a directory that is 1690 # left behind by Apple's compiler. We do this before executing the actions. 1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_link 1696 1697# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1698# ------------------------------------------------------- 1699# Tests whether HEADER exists and can be compiled using the include files in 1700# INCLUDES, setting the cache variable VAR accordingly. 1701ac_fn_c_check_header_compile () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1705printf %s "checking for $2... " >&6; } 1706if eval test \${$3+y} 1707then : 1708 printf %s "(cached) " >&6 1709else $as_nop 1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1711/* end confdefs.h. */ 1712$4 1713#include <$2> 1714_ACEOF 1715if ac_fn_c_try_compile "$LINENO" 1716then : 1717 eval "$3=yes" 1718else $as_nop 1719 eval "$3=no" 1720fi 1721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1722fi 1723eval ac_res=\$$3 1724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1725printf "%s\n" "$ac_res" >&6; } 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 1728} # ac_fn_c_check_header_compile 1729 1730# ac_fn_c_check_func LINENO FUNC VAR 1731# ---------------------------------- 1732# Tests whether FUNC exists, setting the cache variable VAR accordingly 1733ac_fn_c_check_func () 1734{ 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1737printf %s "checking for $2... " >&6; } 1738if eval test \${$3+y} 1739then : 1740 printf %s "(cached) " >&6 1741else $as_nop 1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743/* end confdefs.h. */ 1744/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1745 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1746#define $2 innocuous_$2 1747 1748/* System header to define __stub macros and hopefully few prototypes, 1749 which can conflict with char $2 (); below. */ 1750 1751#include <limits.h> 1752#undef $2 1753 1754/* Override any GCC internal prototype to avoid an error. 1755 Use char because int might match the return type of a GCC 1756 builtin and then its argument prototype would still apply. */ 1757#ifdef __cplusplus 1758extern "C" 1759#endif 1760char $2 (); 1761/* The GNU C library defines this for functions which it implements 1762 to always fail with ENOSYS. Some functions are actually named 1763 something starting with __ and the normal name is an alias. */ 1764#if defined __stub_$2 || defined __stub___$2 1765choke me 1766#endif 1767 1768int 1769main (void) 1770{ 1771return $2 (); 1772 ; 1773 return 0; 1774} 1775_ACEOF 1776if ac_fn_c_try_link "$LINENO" 1777then : 1778 eval "$3=yes" 1779else $as_nop 1780 eval "$3=no" 1781fi 1782rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1783 conftest$ac_exeext conftest.$ac_ext 1784fi 1785eval ac_res=\$$3 1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787printf "%s\n" "$ac_res" >&6; } 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 1790} # ac_fn_c_check_func 1791 1792# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1793# ------------------------------------------------------------------ 1794# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1795# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1796ac_fn_check_decl () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 as_decl_name=`echo $2|sed 's/ *(.*//'` 1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1801printf %s "checking whether $as_decl_name is declared... " >&6; } 1802if eval test \${$3+y} 1803then : 1804 printf %s "(cached) " >&6 1805else $as_nop 1806 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1807 eval ac_save_FLAGS=\$$6 1808 as_fn_append $6 " $5" 1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810/* end confdefs.h. */ 1811$4 1812int 1813main (void) 1814{ 1815#ifndef $as_decl_name 1816#ifdef __cplusplus 1817 (void) $as_decl_use; 1818#else 1819 (void) $as_decl_name; 1820#endif 1821#endif 1822 1823 ; 1824 return 0; 1825} 1826_ACEOF 1827if ac_fn_c_try_compile "$LINENO" 1828then : 1829 eval "$3=yes" 1830else $as_nop 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1834 eval $6=\$ac_save_FLAGS 1835 1836fi 1837eval ac_res=\$$3 1838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1839printf "%s\n" "$ac_res" >&6; } 1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1841 1842} # ac_fn_check_decl 1843ac_configure_args_raw= 1844for ac_arg 1845do 1846 case $ac_arg in 1847 *\'*) 1848 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1849 esac 1850 as_fn_append ac_configure_args_raw " '$ac_arg'" 1851done 1852 1853case $ac_configure_args_raw in 1854 *$as_nl*) 1855 ac_safe_unquote= ;; 1856 *) 1857 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1858 ac_unsafe_a="$ac_unsafe_z#~" 1859 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1860 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1861esac 1862 1863cat >config.log <<_ACEOF 1864This file contains any messages produced by compilers while 1865running configure, to aid debugging if configure makes a mistake. 1866 1867It was created by libXpm $as_me 3.5.14, which was 1868generated by GNU Autoconf 2.71. Invocation command line was 1869 1870 $ $0$ac_configure_args_raw 1871 1872_ACEOF 1873exec 5>>config.log 1874{ 1875cat <<_ASUNAME 1876## --------- ## 1877## Platform. ## 1878## --------- ## 1879 1880hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1881uname -m = `(uname -m) 2>/dev/null || echo unknown` 1882uname -r = `(uname -r) 2>/dev/null || echo unknown` 1883uname -s = `(uname -s) 2>/dev/null || echo unknown` 1884uname -v = `(uname -v) 2>/dev/null || echo unknown` 1885 1886/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1887/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1888 1889/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1890/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1891/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1892/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1893/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1894/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1895/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1896 1897_ASUNAME 1898 1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1900for as_dir in $PATH 1901do 1902 IFS=$as_save_IFS 1903 case $as_dir in #((( 1904 '') as_dir=./ ;; 1905 */) ;; 1906 *) as_dir=$as_dir/ ;; 1907 esac 1908 printf "%s\n" "PATH: $as_dir" 1909 done 1910IFS=$as_save_IFS 1911 1912} >&5 1913 1914cat >&5 <<_ACEOF 1915 1916 1917## ----------- ## 1918## Core tests. ## 1919## ----------- ## 1920 1921_ACEOF 1922 1923 1924# Keep a trace of the command line. 1925# Strip out --no-create and --no-recursion so they do not pile up. 1926# Strip out --silent because we don't want to record it for future runs. 1927# Also quote any args containing shell meta-characters. 1928# Make two passes to allow for proper duplicate-argument suppression. 1929ac_configure_args= 1930ac_configure_args0= 1931ac_configure_args1= 1932ac_must_keep_next=false 1933for ac_pass in 1 2 1934do 1935 for ac_arg 1936 do 1937 case $ac_arg in 1938 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1939 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1940 | -silent | --silent | --silen | --sile | --sil) 1941 continue ;; 1942 *\'*) 1943 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1944 esac 1945 case $ac_pass in 1946 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1947 2) 1948 as_fn_append ac_configure_args1 " '$ac_arg'" 1949 if test $ac_must_keep_next = true; then 1950 ac_must_keep_next=false # Got value, back to normal. 1951 else 1952 case $ac_arg in 1953 *=* | --config-cache | -C | -disable-* | --disable-* \ 1954 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1955 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1956 | -with-* | --with-* | -without-* | --without-* | --x) 1957 case "$ac_configure_args0 " in 1958 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1959 esac 1960 ;; 1961 -* ) ac_must_keep_next=true ;; 1962 esac 1963 fi 1964 as_fn_append ac_configure_args " '$ac_arg'" 1965 ;; 1966 esac 1967 done 1968done 1969{ ac_configure_args0=; unset ac_configure_args0;} 1970{ ac_configure_args1=; unset ac_configure_args1;} 1971 1972# When interrupted or exit'd, cleanup temporary files, and complete 1973# config.log. We remove comments because anyway the quotes in there 1974# would cause problems or look ugly. 1975# WARNING: Use '\'' to represent an apostrophe within the trap. 1976# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1977trap 'exit_status=$? 1978 # Sanitize IFS. 1979 IFS=" "" $as_nl" 1980 # Save into config.log some information that might help in debugging. 1981 { 1982 echo 1983 1984 printf "%s\n" "## ---------------- ## 1985## Cache variables. ## 1986## ---------------- ##" 1987 echo 1988 # The following way of writing the cache mishandles newlines in values, 1989( 1990 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in #( 1993 *${as_nl}*) 1994 case $ac_var in #( 1995 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1996printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1997 esac 1998 case $ac_var in #( 1999 _ | IFS | as_nl) ;; #( 2000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2001 *) { eval $ac_var=; unset $ac_var;} ;; 2002 esac ;; 2003 esac 2004 done 2005 (set) 2>&1 | 2006 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2007 *${as_nl}ac_space=\ *) 2008 sed -n \ 2009 "s/'\''/'\''\\\\'\'''\''/g; 2010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2011 ;; #( 2012 *) 2013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2014 ;; 2015 esac | 2016 sort 2017) 2018 echo 2019 2020 printf "%s\n" "## ----------------- ## 2021## Output variables. ## 2022## ----------------- ##" 2023 echo 2024 for ac_var in $ac_subst_vars 2025 do 2026 eval ac_val=\$$ac_var 2027 case $ac_val in 2028 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2029 esac 2030 printf "%s\n" "$ac_var='\''$ac_val'\''" 2031 done | sort 2032 echo 2033 2034 if test -n "$ac_subst_files"; then 2035 printf "%s\n" "## ------------------- ## 2036## File substitutions. ## 2037## ------------------- ##" 2038 echo 2039 for ac_var in $ac_subst_files 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 printf "%s\n" "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 fi 2049 2050 if test -s confdefs.h; then 2051 printf "%s\n" "## ----------- ## 2052## confdefs.h. ## 2053## ----------- ##" 2054 echo 2055 cat confdefs.h 2056 echo 2057 fi 2058 test "$ac_signal" != 0 && 2059 printf "%s\n" "$as_me: caught signal $ac_signal" 2060 printf "%s\n" "$as_me: exit $exit_status" 2061 } >&5 2062 rm -f core *.core core.conftest.* && 2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2064 exit $exit_status 2065' 0 2066for ac_signal in 1 2 13 15; do 2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2068done 2069ac_signal=0 2070 2071# confdefs.h avoids OS command line length limits that DEFS can exceed. 2072rm -f -r conftest* confdefs.h 2073 2074printf "%s\n" "/* confdefs.h */" > confdefs.h 2075 2076# Predefined preprocessor variables. 2077 2078printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2079 2080printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2081 2082printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2083 2084printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2085 2086printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2087 2088printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2089 2090 2091# Let the site file select an alternate cache file if it wants to. 2092# Prefer an explicitly selected file to automatically selected ones. 2093if test -n "$CONFIG_SITE"; then 2094 ac_site_files="$CONFIG_SITE" 2095elif test "x$prefix" != xNONE; then 2096 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2097else 2098 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2099fi 2100 2101for ac_site_file in $ac_site_files 2102do 2103 case $ac_site_file in #( 2104 */*) : 2105 ;; #( 2106 *) : 2107 ac_site_file=./$ac_site_file ;; 2108esac 2109 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2111printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2112 sed 's/^/| /' "$ac_site_file" >&5 2113 . "$ac_site_file" \ 2114 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2115printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2116as_fn_error $? "failed to load site script $ac_site_file 2117See \`config.log' for more details" "$LINENO" 5; } 2118 fi 2119done 2120 2121if test -r "$cache_file"; then 2122 # Some versions of bash will fail to source /dev/null (special files 2123 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2124 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2126printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2127 case $cache_file in 2128 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2129 *) . "./$cache_file";; 2130 esac 2131 fi 2132else 2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2134printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2135 >$cache_file 2136fi 2137 2138# Test code for whether the C compiler supports C89 (global declarations) 2139ac_c_conftest_c89_globals=' 2140/* Does the compiler advertise C89 conformance? 2141 Do not test the value of __STDC__, because some compilers set it to 0 2142 while being otherwise adequately conformant. */ 2143#if !defined __STDC__ 2144# error "Compiler does not advertise C89 conformance" 2145#endif 2146 2147#include <stddef.h> 2148#include <stdarg.h> 2149struct stat; 2150/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2151struct buf { int x; }; 2152struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2153static char *e (p, i) 2154 char **p; 2155 int i; 2156{ 2157 return p[i]; 2158} 2159static char *f (char * (*g) (char **, int), char **p, ...) 2160{ 2161 char *s; 2162 va_list v; 2163 va_start (v,p); 2164 s = g (p, va_arg (v,int)); 2165 va_end (v); 2166 return s; 2167} 2168 2169/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2170 function prototypes and stuff, but not \xHH hex character constants. 2171 These do not provoke an error unfortunately, instead are silently treated 2172 as an "x". The following induces an error, until -std is added to get 2173 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2174 array size at least. It is necessary to write \x00 == 0 to get something 2175 that is true only with -std. */ 2176int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2177 2178/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2179 inside strings and character constants. */ 2180#define FOO(x) '\''x'\'' 2181int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2182 2183int test (int i, double x); 2184struct s1 {int (*f) (int a);}; 2185struct s2 {int (*f) (double a);}; 2186int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2187 int, int);' 2188 2189# Test code for whether the C compiler supports C89 (body of main). 2190ac_c_conftest_c89_main=' 2191ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2192' 2193 2194# Test code for whether the C compiler supports C99 (global declarations) 2195ac_c_conftest_c99_globals=' 2196// Does the compiler advertise C99 conformance? 2197#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2198# error "Compiler does not advertise C99 conformance" 2199#endif 2200 2201#include <stdbool.h> 2202extern int puts (const char *); 2203extern int printf (const char *, ...); 2204extern int dprintf (int, const char *, ...); 2205extern void *malloc (size_t); 2206 2207// Check varargs macros. These examples are taken from C99 6.10.3.5. 2208// dprintf is used instead of fprintf to avoid needing to declare 2209// FILE and stderr. 2210#define debug(...) dprintf (2, __VA_ARGS__) 2211#define showlist(...) puts (#__VA_ARGS__) 2212#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2213static void 2214test_varargs_macros (void) 2215{ 2216 int x = 1234; 2217 int y = 5678; 2218 debug ("Flag"); 2219 debug ("X = %d\n", x); 2220 showlist (The first, second, and third items.); 2221 report (x>y, "x is %d but y is %d", x, y); 2222} 2223 2224// Check long long types. 2225#define BIG64 18446744073709551615ull 2226#define BIG32 4294967295ul 2227#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2228#if !BIG_OK 2229 #error "your preprocessor is broken" 2230#endif 2231#if BIG_OK 2232#else 2233 #error "your preprocessor is broken" 2234#endif 2235static long long int bignum = -9223372036854775807LL; 2236static unsigned long long int ubignum = BIG64; 2237 2238struct incomplete_array 2239{ 2240 int datasize; 2241 double data[]; 2242}; 2243 2244struct named_init { 2245 int number; 2246 const wchar_t *name; 2247 double average; 2248}; 2249 2250typedef const char *ccp; 2251 2252static inline int 2253test_restrict (ccp restrict text) 2254{ 2255 // See if C++-style comments work. 2256 // Iterate through items via the restricted pointer. 2257 // Also check for declarations in for loops. 2258 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2259 continue; 2260 return 0; 2261} 2262 2263// Check varargs and va_copy. 2264static bool 2265test_varargs (const char *format, ...) 2266{ 2267 va_list args; 2268 va_start (args, format); 2269 va_list args_copy; 2270 va_copy (args_copy, args); 2271 2272 const char *str = ""; 2273 int number = 0; 2274 float fnumber = 0; 2275 2276 while (*format) 2277 { 2278 switch (*format++) 2279 { 2280 case '\''s'\'': // string 2281 str = va_arg (args_copy, const char *); 2282 break; 2283 case '\''d'\'': // int 2284 number = va_arg (args_copy, int); 2285 break; 2286 case '\''f'\'': // float 2287 fnumber = va_arg (args_copy, double); 2288 break; 2289 default: 2290 break; 2291 } 2292 } 2293 va_end (args_copy); 2294 va_end (args); 2295 2296 return *str && number && fnumber; 2297} 2298' 2299 2300# Test code for whether the C compiler supports C99 (body of main). 2301ac_c_conftest_c99_main=' 2302 // Check bool. 2303 _Bool success = false; 2304 success |= (argc != 0); 2305 2306 // Check restrict. 2307 if (test_restrict ("String literal") == 0) 2308 success = true; 2309 char *restrict newvar = "Another string"; 2310 2311 // Check varargs. 2312 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2313 test_varargs_macros (); 2314 2315 // Check flexible array members. 2316 struct incomplete_array *ia = 2317 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2318 ia->datasize = 10; 2319 for (int i = 0; i < ia->datasize; ++i) 2320 ia->data[i] = i * 1.234; 2321 2322 // Check named initializers. 2323 struct named_init ni = { 2324 .number = 34, 2325 .name = L"Test wide string", 2326 .average = 543.34343, 2327 }; 2328 2329 ni.number = 58; 2330 2331 int dynamic_array[ni.number]; 2332 dynamic_array[0] = argv[0][0]; 2333 dynamic_array[ni.number - 1] = 543; 2334 2335 // work around unused variable warnings 2336 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2337 || dynamic_array[ni.number - 1] != 543); 2338' 2339 2340# Test code for whether the C compiler supports C11 (global declarations) 2341ac_c_conftest_c11_globals=' 2342// Does the compiler advertise C11 conformance? 2343#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2344# error "Compiler does not advertise C11 conformance" 2345#endif 2346 2347// Check _Alignas. 2348char _Alignas (double) aligned_as_double; 2349char _Alignas (0) no_special_alignment; 2350extern char aligned_as_int; 2351char _Alignas (0) _Alignas (int) aligned_as_int; 2352 2353// Check _Alignof. 2354enum 2355{ 2356 int_alignment = _Alignof (int), 2357 int_array_alignment = _Alignof (int[100]), 2358 char_alignment = _Alignof (char) 2359}; 2360_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2361 2362// Check _Noreturn. 2363int _Noreturn does_not_return (void) { for (;;) continue; } 2364 2365// Check _Static_assert. 2366struct test_static_assert 2367{ 2368 int x; 2369 _Static_assert (sizeof (int) <= sizeof (long int), 2370 "_Static_assert does not work in struct"); 2371 long int y; 2372}; 2373 2374// Check UTF-8 literals. 2375#define u8 syntax error! 2376char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2377 2378// Check duplicate typedefs. 2379typedef long *long_ptr; 2380typedef long int *long_ptr; 2381typedef long_ptr long_ptr; 2382 2383// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2384struct anonymous 2385{ 2386 union { 2387 struct { int i; int j; }; 2388 struct { int k; long int l; } w; 2389 }; 2390 int m; 2391} v1; 2392' 2393 2394# Test code for whether the C compiler supports C11 (body of main). 2395ac_c_conftest_c11_main=' 2396 _Static_assert ((offsetof (struct anonymous, i) 2397 == offsetof (struct anonymous, w.k)), 2398 "Anonymous union alignment botch"); 2399 v1.i = 2; 2400 v1.w.k = 5; 2401 ok |= v1.i != 5; 2402' 2403 2404# Test code for whether the C compiler supports C11 (complete). 2405ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2406${ac_c_conftest_c99_globals} 2407${ac_c_conftest_c11_globals} 2408 2409int 2410main (int argc, char **argv) 2411{ 2412 int ok = 0; 2413 ${ac_c_conftest_c89_main} 2414 ${ac_c_conftest_c99_main} 2415 ${ac_c_conftest_c11_main} 2416 return ok; 2417} 2418" 2419 2420# Test code for whether the C compiler supports C99 (complete). 2421ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2422${ac_c_conftest_c99_globals} 2423 2424int 2425main (int argc, char **argv) 2426{ 2427 int ok = 0; 2428 ${ac_c_conftest_c89_main} 2429 ${ac_c_conftest_c99_main} 2430 return ok; 2431} 2432" 2433 2434# Test code for whether the C compiler supports C89 (complete). 2435ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2436 2437int 2438main (int argc, char **argv) 2439{ 2440 int ok = 0; 2441 ${ac_c_conftest_c89_main} 2442 return ok; 2443} 2444" 2445 2446as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2447as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2448as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2449as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2450as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2451as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2452as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2453as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2454as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2455 2456# Auxiliary files required by this configure script. 2457ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2458 2459# Locations in which to look for auxiliary files. 2460ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2461 2462# Search for a directory containing all of the required auxiliary files, 2463# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2464# If we don't find one directory that contains all the files we need, 2465# we report the set of missing files from the *first* directory in 2466# $ac_aux_dir_candidates and give up. 2467ac_missing_aux_files="" 2468ac_first_candidate=: 2469printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471as_found=false 2472for as_dir in $ac_aux_dir_candidates 2473do 2474 IFS=$as_save_IFS 2475 case $as_dir in #((( 2476 '') as_dir=./ ;; 2477 */) ;; 2478 *) as_dir=$as_dir/ ;; 2479 esac 2480 as_found=: 2481 2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2483 ac_aux_dir_found=yes 2484 ac_install_sh= 2485 for ac_aux in $ac_aux_files 2486 do 2487 # As a special case, if "install-sh" is required, that requirement 2488 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2489 # and $ac_install_sh is set appropriately for whichever one is found. 2490 if test x"$ac_aux" = x"install-sh" 2491 then 2492 if test -f "${as_dir}install-sh"; then 2493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2494 ac_install_sh="${as_dir}install-sh -c" 2495 elif test -f "${as_dir}install.sh"; then 2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2497 ac_install_sh="${as_dir}install.sh -c" 2498 elif test -f "${as_dir}shtool"; then 2499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2500 ac_install_sh="${as_dir}shtool install -c" 2501 else 2502 ac_aux_dir_found=no 2503 if $ac_first_candidate; then 2504 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2505 else 2506 break 2507 fi 2508 fi 2509 else 2510 if test -f "${as_dir}${ac_aux}"; then 2511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2512 else 2513 ac_aux_dir_found=no 2514 if $ac_first_candidate; then 2515 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2516 else 2517 break 2518 fi 2519 fi 2520 fi 2521 done 2522 if test "$ac_aux_dir_found" = yes; then 2523 ac_aux_dir="$as_dir" 2524 break 2525 fi 2526 ac_first_candidate=false 2527 2528 as_found=false 2529done 2530IFS=$as_save_IFS 2531if $as_found 2532then : 2533 2534else $as_nop 2535 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2536fi 2537 2538 2539# These three variables are undocumented and unsupported, 2540# and are intended to be withdrawn in a future Autoconf release. 2541# They can cause serious problems if a builder's source tree is in a directory 2542# whose full name contains unusual characters. 2543if test -f "${ac_aux_dir}config.guess"; then 2544 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2545fi 2546if test -f "${ac_aux_dir}config.sub"; then 2547 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2548fi 2549if test -f "$ac_aux_dir/configure"; then 2550 ac_configure="$SHELL ${ac_aux_dir}configure" 2551fi 2552 2553# Check that the precious variables saved in the cache have kept the same 2554# value. 2555ac_cache_corrupted=false 2556for ac_var in $ac_precious_vars; do 2557 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2558 eval ac_new_set=\$ac_env_${ac_var}_set 2559 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2560 eval ac_new_val=\$ac_env_${ac_var}_value 2561 case $ac_old_set,$ac_new_set in 2562 set,) 2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2564printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2565 ac_cache_corrupted=: ;; 2566 ,set) 2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2568printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2569 ac_cache_corrupted=: ;; 2570 ,);; 2571 *) 2572 if test "x$ac_old_val" != "x$ac_new_val"; then 2573 # differences in whitespace do not lead to failure. 2574 ac_old_val_w=`echo x $ac_old_val` 2575 ac_new_val_w=`echo x $ac_new_val` 2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2578printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2579 ac_cache_corrupted=: 2580 else 2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2582printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2583 eval $ac_var=\$ac_old_val 2584 fi 2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2586printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2588printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2589 fi;; 2590 esac 2591 # Pass precious variables to config.status. 2592 if test "$ac_new_set" = set; then 2593 case $ac_new_val in 2594 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2595 *) ac_arg=$ac_var=$ac_new_val ;; 2596 esac 2597 case " $ac_configure_args " in 2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2599 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2600 esac 2601 fi 2602done 2603if $ac_cache_corrupted; then 2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2605printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2607printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2608 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2609 and start over" "$LINENO" 5 2610fi 2611## -------------------- ## 2612## Main body of script. ## 2613## -------------------- ## 2614 2615ac_ext=c 2616ac_cpp='$CPP $CPPFLAGS' 2617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2619ac_compiler_gnu=$ac_cv_c_compiler_gnu 2620 2621 2622 2623ac_config_headers="$ac_config_headers config.h" 2624 2625 2626 2627# Initialize Automake 2628am__api_version='1.16' 2629 2630 2631 2632 # Find a good install program. We prefer a C program (faster), 2633# so one script is as good as another. But avoid the broken or 2634# incompatible versions: 2635# SysV /etc/install, /usr/sbin/install 2636# SunOS /usr/etc/install 2637# IRIX /sbin/install 2638# AIX /bin/install 2639# AmigaOS /C/install, which installs bootblocks on floppy discs 2640# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2641# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2642# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2643# OS/2's system install, which has a completely different semantic 2644# ./install, which can be erroneously created by make from ./install.sh. 2645# Reject install programs that cannot install multiple files. 2646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2647printf %s "checking for a BSD-compatible install... " >&6; } 2648if test -z "$INSTALL"; then 2649if test ${ac_cv_path_install+y} 2650then : 2651 printf %s "(cached) " >&6 2652else $as_nop 2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2654for as_dir in $PATH 2655do 2656 IFS=$as_save_IFS 2657 case $as_dir in #((( 2658 '') as_dir=./ ;; 2659 */) ;; 2660 *) as_dir=$as_dir/ ;; 2661 esac 2662 # Account for fact that we put trailing slashes in our PATH walk. 2663case $as_dir in #(( 2664 ./ | /[cC]/* | \ 2665 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2666 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2667 /usr/ucb/* ) ;; 2668 *) 2669 # OSF1 and SCO ODT 3.0 have their own names for install. 2670 # Don't use installbsd from OSF since it installs stuff as root 2671 # by default. 2672 for ac_prog in ginstall scoinst install; do 2673 for ac_exec_ext in '' $ac_executable_extensions; do 2674 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2675 if test $ac_prog = install && 2676 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2677 # AIX install. It has an incompatible calling convention. 2678 : 2679 elif test $ac_prog = install && 2680 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2681 # program-specific install script used by HP pwplus--don't use. 2682 : 2683 else 2684 rm -rf conftest.one conftest.two conftest.dir 2685 echo one > conftest.one 2686 echo two > conftest.two 2687 mkdir conftest.dir 2688 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2689 test -s conftest.one && test -s conftest.two && 2690 test -s conftest.dir/conftest.one && 2691 test -s conftest.dir/conftest.two 2692 then 2693 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2694 break 3 2695 fi 2696 fi 2697 fi 2698 done 2699 done 2700 ;; 2701esac 2702 2703 done 2704IFS=$as_save_IFS 2705 2706rm -rf conftest.one conftest.two conftest.dir 2707 2708fi 2709 if test ${ac_cv_path_install+y}; then 2710 INSTALL=$ac_cv_path_install 2711 else 2712 # As a last resort, use the slow shell script. Don't cache a 2713 # value for INSTALL within a source directory, because that will 2714 # break other packages using the cache if that directory is 2715 # removed, or if the value is a relative name. 2716 INSTALL=$ac_install_sh 2717 fi 2718fi 2719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2720printf "%s\n" "$INSTALL" >&6; } 2721 2722# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2723# It thinks the first close brace ends the variable substitution. 2724test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2725 2726test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2727 2728test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2729 2730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2731printf %s "checking whether build environment is sane... " >&6; } 2732# Reject unsafe characters in $srcdir or the absolute working directory 2733# name. Accept space and tab only in the latter. 2734am_lf=' 2735' 2736case `pwd` in 2737 *[\\\"\#\$\&\'\`$am_lf]*) 2738 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2739esac 2740case $srcdir in 2741 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2742 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2743esac 2744 2745# Do 'set' in a subshell so we don't clobber the current shell's 2746# arguments. Must try -L first in case configure is actually a 2747# symlink; some systems play weird games with the mod time of symlinks 2748# (eg FreeBSD returns the mod time of the symlink's containing 2749# directory). 2750if ( 2751 am_has_slept=no 2752 for am_try in 1 2; do 2753 echo "timestamp, slept: $am_has_slept" > conftest.file 2754 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2755 if test "$*" = "X"; then 2756 # -L didn't work. 2757 set X `ls -t "$srcdir/configure" conftest.file` 2758 fi 2759 if test "$*" != "X $srcdir/configure conftest.file" \ 2760 && test "$*" != "X conftest.file $srcdir/configure"; then 2761 2762 # If neither matched, then we have a broken ls. This can happen 2763 # if, for instance, CONFIG_SHELL is bash and it inherits a 2764 # broken ls alias from the environment. This has actually 2765 # happened. Such a system could not be considered "sane". 2766 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2767 alias in your environment" "$LINENO" 5 2768 fi 2769 if test "$2" = conftest.file || test $am_try -eq 2; then 2770 break 2771 fi 2772 # Just in case. 2773 sleep 1 2774 am_has_slept=yes 2775 done 2776 test "$2" = conftest.file 2777 ) 2778then 2779 # Ok. 2780 : 2781else 2782 as_fn_error $? "newly created file is older than distributed files! 2783Check your system clock" "$LINENO" 5 2784fi 2785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2786printf "%s\n" "yes" >&6; } 2787# If we didn't sleep, we still need to ensure time stamps of config.status and 2788# generated files are strictly newer. 2789am_sleep_pid= 2790if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2791 ( sleep 1 ) & 2792 am_sleep_pid=$! 2793fi 2794 2795rm -f conftest.file 2796 2797test "$program_prefix" != NONE && 2798 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2799# Use a double $ so make ignores it. 2800test "$program_suffix" != NONE && 2801 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2802# Double any \ or $. 2803# By default was `s,x,x', remove it if useless. 2804ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2805program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2806 2807 2808# Expand $ac_aux_dir to an absolute path. 2809am_aux_dir=`cd "$ac_aux_dir" && pwd` 2810 2811 2812 if test x"${MISSING+set}" != xset; then 2813 MISSING="\${SHELL} '$am_aux_dir/missing'" 2814fi 2815# Use eval to expand $SHELL 2816if eval "$MISSING --is-lightweight"; then 2817 am_missing_run="$MISSING " 2818else 2819 am_missing_run= 2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2821printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2822fi 2823 2824if test x"${install_sh+set}" != xset; then 2825 case $am_aux_dir in 2826 *\ * | *\ *) 2827 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2828 *) 2829 install_sh="\${SHELL} $am_aux_dir/install-sh" 2830 esac 2831fi 2832 2833# Installed binaries are usually stripped using 'strip' when the user 2834# run "make install-strip". However 'strip' might not be the right 2835# tool to use in cross-compilation environments, therefore Automake 2836# will honor the 'STRIP' environment variable to overrule this program. 2837if test "$cross_compiling" != no; then 2838 if test -n "$ac_tool_prefix"; then 2839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2840set dummy ${ac_tool_prefix}strip; ac_word=$2 2841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2842printf %s "checking for $ac_word... " >&6; } 2843if test ${ac_cv_prog_STRIP+y} 2844then : 2845 printf %s "(cached) " >&6 2846else $as_nop 2847 if test -n "$STRIP"; then 2848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2849else 2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH 2852do 2853 IFS=$as_save_IFS 2854 case $as_dir in #((( 2855 '') as_dir=./ ;; 2856 */) ;; 2857 *) as_dir=$as_dir/ ;; 2858 esac 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2861 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2863 break 2 2864 fi 2865done 2866 done 2867IFS=$as_save_IFS 2868 2869fi 2870fi 2871STRIP=$ac_cv_prog_STRIP 2872if test -n "$STRIP"; then 2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2874printf "%s\n" "$STRIP" >&6; } 2875else 2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2877printf "%s\n" "no" >&6; } 2878fi 2879 2880 2881fi 2882if test -z "$ac_cv_prog_STRIP"; then 2883 ac_ct_STRIP=$STRIP 2884 # Extract the first word of "strip", so it can be a program name with args. 2885set dummy strip; ac_word=$2 2886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2887printf %s "checking for $ac_word... " >&6; } 2888if test ${ac_cv_prog_ac_ct_STRIP+y} 2889then : 2890 printf %s "(cached) " >&6 2891else $as_nop 2892 if test -n "$ac_ct_STRIP"; then 2893 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2894else 2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896for as_dir in $PATH 2897do 2898 IFS=$as_save_IFS 2899 case $as_dir in #((( 2900 '') as_dir=./ ;; 2901 */) ;; 2902 *) as_dir=$as_dir/ ;; 2903 esac 2904 for ac_exec_ext in '' $ac_executable_extensions; do 2905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2906 ac_cv_prog_ac_ct_STRIP="strip" 2907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2908 break 2 2909 fi 2910done 2911 done 2912IFS=$as_save_IFS 2913 2914fi 2915fi 2916ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2917if test -n "$ac_ct_STRIP"; then 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2919printf "%s\n" "$ac_ct_STRIP" >&6; } 2920else 2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2922printf "%s\n" "no" >&6; } 2923fi 2924 2925 if test "x$ac_ct_STRIP" = x; then 2926 STRIP=":" 2927 else 2928 case $cross_compiling:$ac_tool_warned in 2929yes:) 2930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2931printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2932ac_tool_warned=yes ;; 2933esac 2934 STRIP=$ac_ct_STRIP 2935 fi 2936else 2937 STRIP="$ac_cv_prog_STRIP" 2938fi 2939 2940fi 2941INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2942 2943 2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2945printf %s "checking for a race-free mkdir -p... " >&6; } 2946if test -z "$MKDIR_P"; then 2947 if test ${ac_cv_path_mkdir+y} 2948then : 2949 printf %s "(cached) " >&6 2950else $as_nop 2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2953do 2954 IFS=$as_save_IFS 2955 case $as_dir in #((( 2956 '') as_dir=./ ;; 2957 */) ;; 2958 *) as_dir=$as_dir/ ;; 2959 esac 2960 for ac_prog in mkdir gmkdir; do 2961 for ac_exec_ext in '' $ac_executable_extensions; do 2962 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2963 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2964 'mkdir ('*'coreutils) '* | \ 2965 'BusyBox '* | \ 2966 'mkdir (fileutils) '4.1*) 2967 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2968 break 3;; 2969 esac 2970 done 2971 done 2972 done 2973IFS=$as_save_IFS 2974 2975fi 2976 2977 test -d ./--version && rmdir ./--version 2978 if test ${ac_cv_path_mkdir+y}; then 2979 MKDIR_P="$ac_cv_path_mkdir -p" 2980 else 2981 # As a last resort, use the slow shell script. Don't cache a 2982 # value for MKDIR_P within a source directory, because that will 2983 # break other packages using the cache if that directory is 2984 # removed, or if the value is a relative name. 2985 MKDIR_P="$ac_install_sh -d" 2986 fi 2987fi 2988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2989printf "%s\n" "$MKDIR_P" >&6; } 2990 2991for ac_prog in gawk mawk nawk awk 2992do 2993 # Extract the first word of "$ac_prog", so it can be a program name with args. 2994set dummy $ac_prog; ac_word=$2 2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2996printf %s "checking for $ac_word... " >&6; } 2997if test ${ac_cv_prog_AWK+y} 2998then : 2999 printf %s "(cached) " >&6 3000else $as_nop 3001 if test -n "$AWK"; then 3002 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3003else 3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 case $as_dir in #((( 3009 '') as_dir=./ ;; 3010 */) ;; 3011 *) as_dir=$as_dir/ ;; 3012 esac 3013 for ac_exec_ext in '' $ac_executable_extensions; do 3014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3015 ac_cv_prog_AWK="$ac_prog" 3016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3017 break 2 3018 fi 3019done 3020 done 3021IFS=$as_save_IFS 3022 3023fi 3024fi 3025AWK=$ac_cv_prog_AWK 3026if test -n "$AWK"; then 3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3028printf "%s\n" "$AWK" >&6; } 3029else 3030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031printf "%s\n" "no" >&6; } 3032fi 3033 3034 3035 test -n "$AWK" && break 3036done 3037 3038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3039printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3040set x ${MAKE-make} 3041ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3042if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3043then : 3044 printf %s "(cached) " >&6 3045else $as_nop 3046 cat >conftest.make <<\_ACEOF 3047SHELL = /bin/sh 3048all: 3049 @echo '@@@%%%=$(MAKE)=@@@%%%' 3050_ACEOF 3051# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3052case `${MAKE-make} -f conftest.make 2>/dev/null` in 3053 *@@@%%%=?*=@@@%%%*) 3054 eval ac_cv_prog_make_${ac_make}_set=yes;; 3055 *) 3056 eval ac_cv_prog_make_${ac_make}_set=no;; 3057esac 3058rm -f conftest.make 3059fi 3060if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3062printf "%s\n" "yes" >&6; } 3063 SET_MAKE= 3064else 3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3066printf "%s\n" "no" >&6; } 3067 SET_MAKE="MAKE=${MAKE-make}" 3068fi 3069 3070rm -rf .tst 2>/dev/null 3071mkdir .tst 2>/dev/null 3072if test -d .tst; then 3073 am__leading_dot=. 3074else 3075 am__leading_dot=_ 3076fi 3077rmdir .tst 2>/dev/null 3078 3079# Check whether --enable-silent-rules was given. 3080if test ${enable_silent_rules+y} 3081then : 3082 enableval=$enable_silent_rules; 3083fi 3084 3085case $enable_silent_rules in # ((( 3086 yes) AM_DEFAULT_VERBOSITY=0;; 3087 no) AM_DEFAULT_VERBOSITY=1;; 3088 *) AM_DEFAULT_VERBOSITY=1;; 3089esac 3090am_make=${MAKE-make} 3091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3092printf %s "checking whether $am_make supports nested variables... " >&6; } 3093if test ${am_cv_make_support_nested_variables+y} 3094then : 3095 printf %s "(cached) " >&6 3096else $as_nop 3097 if printf "%s\n" 'TRUE=$(BAR$(V)) 3098BAR0=false 3099BAR1=true 3100V=1 3101am__doit: 3102 @$(TRUE) 3103.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3104 am_cv_make_support_nested_variables=yes 3105else 3106 am_cv_make_support_nested_variables=no 3107fi 3108fi 3109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3110printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3111if test $am_cv_make_support_nested_variables = yes; then 3112 AM_V='$(V)' 3113 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3114else 3115 AM_V=$AM_DEFAULT_VERBOSITY 3116 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3117fi 3118AM_BACKSLASH='\' 3119 3120if test "`cd $srcdir && pwd`" != "`pwd`"; then 3121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3122 # is not polluted with repeated "-I." 3123 am__isrc=' -I$(srcdir)' 3124 # test to see if srcdir already configured 3125 if test -f $srcdir/config.status; then 3126 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3127 fi 3128fi 3129 3130# test whether we have cygpath 3131if test -z "$CYGPATH_W"; then 3132 if (cygpath --version) >/dev/null 2>/dev/null; then 3133 CYGPATH_W='cygpath -w' 3134 else 3135 CYGPATH_W=echo 3136 fi 3137fi 3138 3139 3140# Define the identity of the package. 3141 PACKAGE='libXpm' 3142 VERSION='3.5.14' 3143 3144 3145printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3146 3147 3148printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3149 3150# Some tools Automake needs. 3151 3152ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3153 3154 3155AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3156 3157 3158AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3159 3160 3161AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3162 3163 3164MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3165 3166# For better backward compatibility. To be removed once Automake 1.9.x 3167# dies out for good. For more background, see: 3168# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3169# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3170mkdir_p='$(MKDIR_P)' 3171 3172# We need awk for the "check" target (and possibly the TAP driver). The 3173# system "awk" is bad on some platforms. 3174# Always define AMTAR for backward compatibility. Yes, it's still used 3175# in the wild :-( We should find a proper way to deprecate it ... 3176AMTAR='$${TAR-tar}' 3177 3178 3179# We'll loop over all known methods to create a tar archive until one works. 3180_am_tools='gnutar pax cpio none' 3181 3182am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3183 3184 3185 3186 3187 3188# Variables for tags utilities; see am/tags.am 3189if test -z "$CTAGS"; then 3190 CTAGS=ctags 3191fi 3192 3193if test -z "$ETAGS"; then 3194 ETAGS=etags 3195fi 3196 3197if test -z "$CSCOPE"; then 3198 CSCOPE=cscope 3199fi 3200 3201 3202 3203# POSIX will say in a future version that running "rm -f" with no argument 3204# is OK; and we want to be able to make that assumption in our Makefile 3205# recipes. So use an aggressive probe to check that the usage we want is 3206# actually supported "in the wild" to an acceptable degree. 3207# See automake bug#10828. 3208# To make any issue more visible, cause the running configure to be aborted 3209# by default if the 'rm' program in use doesn't match our expectations; the 3210# user can still override this though. 3211if rm -f && rm -fr && rm -rf; then : OK; else 3212 cat >&2 <<'END' 3213Oops! 3214 3215Your 'rm' program seems unable to run without file operands specified 3216on the command line, even when the '-f' option is present. This is contrary 3217to the behaviour of most rm programs out there, and not conforming with 3218the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3219 3220Please tell bug-automake@gnu.org about your system, including the value 3221of your $PATH and any error possibly output before this message. This 3222can help us improve future automake versions. 3223 3224END 3225 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3226 echo 'Configuration will proceed anyway, since you have set the' >&2 3227 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3228 echo >&2 3229 else 3230 cat >&2 <<'END' 3231Aborting the configuration process, to ensure you take notice of the issue. 3232 3233You can download and install GNU coreutils to get an 'rm' implementation 3234that behaves properly: <https://www.gnu.org/software/coreutils/>. 3235 3236If you want to complete the configuration process using your problematic 3237'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3238to "yes", and re-run configure. 3239 3240END 3241 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3242 fi 3243fi 3244 3245 3246# Initialize libtool 3247case `pwd` in 3248 *\ * | *\ *) 3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3250printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3251esac 3252 3253 3254 3255macro_version='2.4.7' 3256macro_revision='2.4.7' 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271ltmain=$ac_aux_dir/ltmain.sh 3272 3273 3274 3275 # Make sure we can run config.sub. 3276$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3277 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3278 3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3280printf %s "checking build system type... " >&6; } 3281if test ${ac_cv_build+y} 3282then : 3283 printf %s "(cached) " >&6 3284else $as_nop 3285 ac_build_alias=$build_alias 3286test "x$ac_build_alias" = x && 3287 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3288test "x$ac_build_alias" = x && 3289 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3290ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3291 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3292 3293fi 3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3295printf "%s\n" "$ac_cv_build" >&6; } 3296case $ac_cv_build in 3297*-*-*) ;; 3298*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3299esac 3300build=$ac_cv_build 3301ac_save_IFS=$IFS; IFS='-' 3302set x $ac_cv_build 3303shift 3304build_cpu=$1 3305build_vendor=$2 3306shift; shift 3307# Remember, the first character of IFS is used to create $*, 3308# except with old shells: 3309build_os=$* 3310IFS=$ac_save_IFS 3311case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3312 3313 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3315printf %s "checking host system type... " >&6; } 3316if test ${ac_cv_host+y} 3317then : 3318 printf %s "(cached) " >&6 3319else $as_nop 3320 if test "x$host_alias" = x; then 3321 ac_cv_host=$ac_cv_build 3322else 3323 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3324 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3325fi 3326 3327fi 3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3329printf "%s\n" "$ac_cv_host" >&6; } 3330case $ac_cv_host in 3331*-*-*) ;; 3332*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3333esac 3334host=$ac_cv_host 3335ac_save_IFS=$IFS; IFS='-' 3336set x $ac_cv_host 3337shift 3338host_cpu=$1 3339host_vendor=$2 3340shift; shift 3341# Remember, the first character of IFS is used to create $*, 3342# except with old shells: 3343host_os=$* 3344IFS=$ac_save_IFS 3345case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3346 3347 3348# Backslashify metacharacters that are still active within 3349# double-quoted strings. 3350sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3351 3352# Same as above, but do not quote variable references. 3353double_quote_subst='s/\(["`\\]\)/\\\1/g' 3354 3355# Sed substitution to delay expansion of an escaped shell variable in a 3356# double_quote_subst'ed string. 3357delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3358 3359# Sed substitution to delay expansion of an escaped single quote. 3360delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3361 3362# Sed substitution to avoid accidental globbing in evaled expressions 3363no_glob_subst='s/\*/\\\*/g' 3364 3365ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3366ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3367ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3368 3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3370printf %s "checking how to print strings... " >&6; } 3371# Test print first, because it will be a builtin if present. 3372if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3373 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3374 ECHO='print -r --' 3375elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3376 ECHO='printf %s\n' 3377else 3378 # Use this function as a fallback that always works. 3379 func_fallback_echo () 3380 { 3381 eval 'cat <<_LTECHO_EOF 3382$1 3383_LTECHO_EOF' 3384 } 3385 ECHO='func_fallback_echo' 3386fi 3387 3388# func_echo_all arg... 3389# Invoke $ECHO with all args, space-separated. 3390func_echo_all () 3391{ 3392 $ECHO "" 3393} 3394 3395case $ECHO in 3396 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3397printf "%s\n" "printf" >&6; } ;; 3398 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3399printf "%s\n" "print -r" >&6; } ;; 3400 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3401printf "%s\n" "cat" >&6; } ;; 3402esac 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426DEPDIR="${am__leading_dot}deps" 3427 3428ac_config_commands="$ac_config_commands depfiles" 3429 3430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3431printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3432cat > confinc.mk << 'END' 3433am__doit: 3434 @echo this is the am__doit target >confinc.out 3435.PHONY: am__doit 3436END 3437am__include="#" 3438am__quote= 3439# BSD make does it like this. 3440echo '.include "confinc.mk" # ignored' > confmf.BSD 3441# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3442echo 'include confinc.mk # ignored' > confmf.GNU 3443_am_result=no 3444for s in GNU BSD; do 3445 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3446 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3447 ac_status=$? 3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 (exit $ac_status); } 3450 case $?:`cat confinc.out 2>/dev/null` in #( 3451 '0:this is the am__doit target') : 3452 case $s in #( 3453 BSD) : 3454 am__include='.include' am__quote='"' ;; #( 3455 *) : 3456 am__include='include' am__quote='' ;; 3457esac ;; #( 3458 *) : 3459 ;; 3460esac 3461 if test "$am__include" != "#"; then 3462 _am_result="yes ($s style)" 3463 break 3464 fi 3465done 3466rm -f confinc.* confmf.* 3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3468printf "%s\n" "${_am_result}" >&6; } 3469 3470# Check whether --enable-dependency-tracking was given. 3471if test ${enable_dependency_tracking+y} 3472then : 3473 enableval=$enable_dependency_tracking; 3474fi 3475 3476if test "x$enable_dependency_tracking" != xno; then 3477 am_depcomp="$ac_aux_dir/depcomp" 3478 AMDEPBACKSLASH='\' 3479 am__nodep='_no' 3480fi 3481 if test "x$enable_dependency_tracking" != xno; then 3482 AMDEP_TRUE= 3483 AMDEP_FALSE='#' 3484else 3485 AMDEP_TRUE='#' 3486 AMDEP_FALSE= 3487fi 3488 3489 3490ac_ext=c 3491ac_cpp='$CPP $CPPFLAGS' 3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3494ac_compiler_gnu=$ac_cv_c_compiler_gnu 3495if test -n "$ac_tool_prefix"; then 3496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3497set dummy ${ac_tool_prefix}gcc; ac_word=$2 3498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3499printf %s "checking for $ac_word... " >&6; } 3500if test ${ac_cv_prog_CC+y} 3501then : 3502 printf %s "(cached) " >&6 3503else $as_nop 3504 if test -n "$CC"; then 3505 ac_cv_prog_CC="$CC" # Let the user override the test. 3506else 3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3508for as_dir in $PATH 3509do 3510 IFS=$as_save_IFS 3511 case $as_dir in #((( 3512 '') as_dir=./ ;; 3513 */) ;; 3514 *) as_dir=$as_dir/ ;; 3515 esac 3516 for ac_exec_ext in '' $ac_executable_extensions; do 3517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3518 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3520 break 2 3521 fi 3522done 3523 done 3524IFS=$as_save_IFS 3525 3526fi 3527fi 3528CC=$ac_cv_prog_CC 3529if test -n "$CC"; then 3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3531printf "%s\n" "$CC" >&6; } 3532else 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3534printf "%s\n" "no" >&6; } 3535fi 3536 3537 3538fi 3539if test -z "$ac_cv_prog_CC"; then 3540 ac_ct_CC=$CC 3541 # Extract the first word of "gcc", so it can be a program name with args. 3542set dummy gcc; ac_word=$2 3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3544printf %s "checking for $ac_word... " >&6; } 3545if test ${ac_cv_prog_ac_ct_CC+y} 3546then : 3547 printf %s "(cached) " >&6 3548else $as_nop 3549 if test -n "$ac_ct_CC"; then 3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3551else 3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553for as_dir in $PATH 3554do 3555 IFS=$as_save_IFS 3556 case $as_dir in #((( 3557 '') as_dir=./ ;; 3558 */) ;; 3559 *) as_dir=$as_dir/ ;; 3560 esac 3561 for ac_exec_ext in '' $ac_executable_extensions; do 3562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3563 ac_cv_prog_ac_ct_CC="gcc" 3564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3565 break 2 3566 fi 3567done 3568 done 3569IFS=$as_save_IFS 3570 3571fi 3572fi 3573ac_ct_CC=$ac_cv_prog_ac_ct_CC 3574if test -n "$ac_ct_CC"; then 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3576printf "%s\n" "$ac_ct_CC" >&6; } 3577else 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3579printf "%s\n" "no" >&6; } 3580fi 3581 3582 if test "x$ac_ct_CC" = x; then 3583 CC="" 3584 else 3585 case $cross_compiling:$ac_tool_warned in 3586yes:) 3587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3588printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3589ac_tool_warned=yes ;; 3590esac 3591 CC=$ac_ct_CC 3592 fi 3593else 3594 CC="$ac_cv_prog_CC" 3595fi 3596 3597if test -z "$CC"; then 3598 if test -n "$ac_tool_prefix"; then 3599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3600set dummy ${ac_tool_prefix}cc; ac_word=$2 3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3602printf %s "checking for $ac_word... " >&6; } 3603if test ${ac_cv_prog_CC+y} 3604then : 3605 printf %s "(cached) " >&6 3606else $as_nop 3607 if test -n "$CC"; then 3608 ac_cv_prog_CC="$CC" # Let the user override the test. 3609else 3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3611for as_dir in $PATH 3612do 3613 IFS=$as_save_IFS 3614 case $as_dir in #((( 3615 '') as_dir=./ ;; 3616 */) ;; 3617 *) as_dir=$as_dir/ ;; 3618 esac 3619 for ac_exec_ext in '' $ac_executable_extensions; do 3620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3621 ac_cv_prog_CC="${ac_tool_prefix}cc" 3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3623 break 2 3624 fi 3625done 3626 done 3627IFS=$as_save_IFS 3628 3629fi 3630fi 3631CC=$ac_cv_prog_CC 3632if test -n "$CC"; then 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3634printf "%s\n" "$CC" >&6; } 3635else 3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3637printf "%s\n" "no" >&6; } 3638fi 3639 3640 3641 fi 3642fi 3643if test -z "$CC"; then 3644 # Extract the first word of "cc", so it can be a program name with args. 3645set dummy cc; ac_word=$2 3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3647printf %s "checking for $ac_word... " >&6; } 3648if test ${ac_cv_prog_CC+y} 3649then : 3650 printf %s "(cached) " >&6 3651else $as_nop 3652 if test -n "$CC"; then 3653 ac_cv_prog_CC="$CC" # Let the user override the test. 3654else 3655 ac_prog_rejected=no 3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3657for as_dir in $PATH 3658do 3659 IFS=$as_save_IFS 3660 case $as_dir in #((( 3661 '') as_dir=./ ;; 3662 */) ;; 3663 *) as_dir=$as_dir/ ;; 3664 esac 3665 for ac_exec_ext in '' $ac_executable_extensions; do 3666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3667 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3668 ac_prog_rejected=yes 3669 continue 3670 fi 3671 ac_cv_prog_CC="cc" 3672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3673 break 2 3674 fi 3675done 3676 done 3677IFS=$as_save_IFS 3678 3679if test $ac_prog_rejected = yes; then 3680 # We found a bogon in the path, so make sure we never use it. 3681 set dummy $ac_cv_prog_CC 3682 shift 3683 if test $# != 0; then 3684 # We chose a different compiler from the bogus one. 3685 # However, it has the same basename, so the bogon will be chosen 3686 # first if we set CC to just the basename; use the full file name. 3687 shift 3688 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3689 fi 3690fi 3691fi 3692fi 3693CC=$ac_cv_prog_CC 3694if test -n "$CC"; then 3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3696printf "%s\n" "$CC" >&6; } 3697else 3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3699printf "%s\n" "no" >&6; } 3700fi 3701 3702 3703fi 3704if test -z "$CC"; then 3705 if test -n "$ac_tool_prefix"; then 3706 for ac_prog in cl.exe 3707 do 3708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3709set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3711printf %s "checking for $ac_word... " >&6; } 3712if test ${ac_cv_prog_CC+y} 3713then : 3714 printf %s "(cached) " >&6 3715else $as_nop 3716 if test -n "$CC"; then 3717 ac_cv_prog_CC="$CC" # Let the user override the test. 3718else 3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3720for as_dir in $PATH 3721do 3722 IFS=$as_save_IFS 3723 case $as_dir in #((( 3724 '') as_dir=./ ;; 3725 */) ;; 3726 *) as_dir=$as_dir/ ;; 3727 esac 3728 for ac_exec_ext in '' $ac_executable_extensions; do 3729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3730 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3732 break 2 3733 fi 3734done 3735 done 3736IFS=$as_save_IFS 3737 3738fi 3739fi 3740CC=$ac_cv_prog_CC 3741if test -n "$CC"; then 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3743printf "%s\n" "$CC" >&6; } 3744else 3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3746printf "%s\n" "no" >&6; } 3747fi 3748 3749 3750 test -n "$CC" && break 3751 done 3752fi 3753if test -z "$CC"; then 3754 ac_ct_CC=$CC 3755 for ac_prog in cl.exe 3756do 3757 # Extract the first word of "$ac_prog", so it can be a program name with args. 3758set dummy $ac_prog; ac_word=$2 3759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3760printf %s "checking for $ac_word... " >&6; } 3761if test ${ac_cv_prog_ac_ct_CC+y} 3762then : 3763 printf %s "(cached) " >&6 3764else $as_nop 3765 if test -n "$ac_ct_CC"; then 3766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3767else 3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3769for as_dir in $PATH 3770do 3771 IFS=$as_save_IFS 3772 case $as_dir in #((( 3773 '') as_dir=./ ;; 3774 */) ;; 3775 *) as_dir=$as_dir/ ;; 3776 esac 3777 for ac_exec_ext in '' $ac_executable_extensions; do 3778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3779 ac_cv_prog_ac_ct_CC="$ac_prog" 3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3781 break 2 3782 fi 3783done 3784 done 3785IFS=$as_save_IFS 3786 3787fi 3788fi 3789ac_ct_CC=$ac_cv_prog_ac_ct_CC 3790if test -n "$ac_ct_CC"; then 3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3792printf "%s\n" "$ac_ct_CC" >&6; } 3793else 3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795printf "%s\n" "no" >&6; } 3796fi 3797 3798 3799 test -n "$ac_ct_CC" && break 3800done 3801 3802 if test "x$ac_ct_CC" = x; then 3803 CC="" 3804 else 3805 case $cross_compiling:$ac_tool_warned in 3806yes:) 3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3808printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3809ac_tool_warned=yes ;; 3810esac 3811 CC=$ac_ct_CC 3812 fi 3813fi 3814 3815fi 3816if test -z "$CC"; then 3817 if test -n "$ac_tool_prefix"; then 3818 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3819set dummy ${ac_tool_prefix}clang; ac_word=$2 3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3821printf %s "checking for $ac_word... " >&6; } 3822if test ${ac_cv_prog_CC+y} 3823then : 3824 printf %s "(cached) " >&6 3825else $as_nop 3826 if test -n "$CC"; then 3827 ac_cv_prog_CC="$CC" # Let the user override the test. 3828else 3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3830for as_dir in $PATH 3831do 3832 IFS=$as_save_IFS 3833 case $as_dir in #((( 3834 '') as_dir=./ ;; 3835 */) ;; 3836 *) as_dir=$as_dir/ ;; 3837 esac 3838 for ac_exec_ext in '' $ac_executable_extensions; do 3839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3840 ac_cv_prog_CC="${ac_tool_prefix}clang" 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3842 break 2 3843 fi 3844done 3845 done 3846IFS=$as_save_IFS 3847 3848fi 3849fi 3850CC=$ac_cv_prog_CC 3851if test -n "$CC"; then 3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3853printf "%s\n" "$CC" >&6; } 3854else 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3856printf "%s\n" "no" >&6; } 3857fi 3858 3859 3860fi 3861if test -z "$ac_cv_prog_CC"; then 3862 ac_ct_CC=$CC 3863 # Extract the first word of "clang", so it can be a program name with args. 3864set dummy clang; ac_word=$2 3865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3866printf %s "checking for $ac_word... " >&6; } 3867if test ${ac_cv_prog_ac_ct_CC+y} 3868then : 3869 printf %s "(cached) " >&6 3870else $as_nop 3871 if test -n "$ac_ct_CC"; then 3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3873else 3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3875for as_dir in $PATH 3876do 3877 IFS=$as_save_IFS 3878 case $as_dir in #((( 3879 '') as_dir=./ ;; 3880 */) ;; 3881 *) as_dir=$as_dir/ ;; 3882 esac 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3885 ac_cv_prog_ac_ct_CC="clang" 3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3887 break 2 3888 fi 3889done 3890 done 3891IFS=$as_save_IFS 3892 3893fi 3894fi 3895ac_ct_CC=$ac_cv_prog_ac_ct_CC 3896if test -n "$ac_ct_CC"; then 3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3898printf "%s\n" "$ac_ct_CC" >&6; } 3899else 3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3901printf "%s\n" "no" >&6; } 3902fi 3903 3904 if test "x$ac_ct_CC" = x; then 3905 CC="" 3906 else 3907 case $cross_compiling:$ac_tool_warned in 3908yes:) 3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3910printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3911ac_tool_warned=yes ;; 3912esac 3913 CC=$ac_ct_CC 3914 fi 3915else 3916 CC="$ac_cv_prog_CC" 3917fi 3918 3919fi 3920 3921 3922test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3924as_fn_error $? "no acceptable C compiler found in \$PATH 3925See \`config.log' for more details" "$LINENO" 5; } 3926 3927# Provide some information about the compiler. 3928printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3929set X $ac_compile 3930ac_compiler=$2 3931for ac_option in --version -v -V -qversion -version; do 3932 { { ac_try="$ac_compiler $ac_option >&5" 3933case "(($ac_try" in 3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3935 *) ac_try_echo=$ac_try;; 3936esac 3937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3938printf "%s\n" "$ac_try_echo"; } >&5 3939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3940 ac_status=$? 3941 if test -s conftest.err; then 3942 sed '10a\ 3943... rest of stderr output deleted ... 3944 10q' conftest.err >conftest.er1 3945 cat conftest.er1 >&5 3946 fi 3947 rm -f conftest.er1 conftest.err 3948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3949 test $ac_status = 0; } 3950done 3951 3952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3953/* end confdefs.h. */ 3954 3955int 3956main (void) 3957{ 3958 3959 ; 3960 return 0; 3961} 3962_ACEOF 3963ac_clean_files_save=$ac_clean_files 3964ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3965# Try to create an executable without -o first, disregard a.out. 3966# It will help us diagnose broken compilers, and finding out an intuition 3967# of exeext. 3968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3969printf %s "checking whether the C compiler works... " >&6; } 3970ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3971 3972# The possible output files: 3973ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3974 3975ac_rmfiles= 3976for ac_file in $ac_files 3977do 3978 case $ac_file in 3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3980 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3981 esac 3982done 3983rm -f $ac_rmfiles 3984 3985if { { ac_try="$ac_link_default" 3986case "(($ac_try" in 3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3988 *) ac_try_echo=$ac_try;; 3989esac 3990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3991printf "%s\n" "$ac_try_echo"; } >&5 3992 (eval "$ac_link_default") 2>&5 3993 ac_status=$? 3994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3995 test $ac_status = 0; } 3996then : 3997 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3998# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3999# in a Makefile. We should not override ac_cv_exeext if it was cached, 4000# so that the user can short-circuit this test for compilers unknown to 4001# Autoconf. 4002for ac_file in $ac_files '' 4003do 4004 test -f "$ac_file" || continue 4005 case $ac_file in 4006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4007 ;; 4008 [ab].out ) 4009 # We found the default executable, but exeext='' is most 4010 # certainly right. 4011 break;; 4012 *.* ) 4013 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4014 then :; else 4015 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4016 fi 4017 # We set ac_cv_exeext here because the later test for it is not 4018 # safe: cross compilers may not add the suffix if given an `-o' 4019 # argument, so we may need to know it at that point already. 4020 # Even if this section looks crufty: it has the advantage of 4021 # actually working. 4022 break;; 4023 * ) 4024 break;; 4025 esac 4026done 4027test "$ac_cv_exeext" = no && ac_cv_exeext= 4028 4029else $as_nop 4030 ac_file='' 4031fi 4032if test -z "$ac_file" 4033then : 4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4035printf "%s\n" "no" >&6; } 4036printf "%s\n" "$as_me: failed program was:" >&5 4037sed 's/^/| /' conftest.$ac_ext >&5 4038 4039{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4041as_fn_error 77 "C compiler cannot create executables 4042See \`config.log' for more details" "$LINENO" 5; } 4043else $as_nop 4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4045printf "%s\n" "yes" >&6; } 4046fi 4047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4048printf %s "checking for C compiler default output file name... " >&6; } 4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4050printf "%s\n" "$ac_file" >&6; } 4051ac_exeext=$ac_cv_exeext 4052 4053rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4054ac_clean_files=$ac_clean_files_save 4055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4056printf %s "checking for suffix of executables... " >&6; } 4057if { { ac_try="$ac_link" 4058case "(($ac_try" in 4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4060 *) ac_try_echo=$ac_try;; 4061esac 4062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4063printf "%s\n" "$ac_try_echo"; } >&5 4064 (eval "$ac_link") 2>&5 4065 ac_status=$? 4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4067 test $ac_status = 0; } 4068then : 4069 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4070# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4071# work properly (i.e., refer to `conftest.exe'), while it won't with 4072# `rm'. 4073for ac_file in conftest.exe conftest conftest.*; do 4074 test -f "$ac_file" || continue 4075 case $ac_file in 4076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4077 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4078 break;; 4079 * ) break;; 4080 esac 4081done 4082else $as_nop 4083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4084printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4085as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4086See \`config.log' for more details" "$LINENO" 5; } 4087fi 4088rm -f conftest conftest$ac_cv_exeext 4089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4090printf "%s\n" "$ac_cv_exeext" >&6; } 4091 4092rm -f conftest.$ac_ext 4093EXEEXT=$ac_cv_exeext 4094ac_exeext=$EXEEXT 4095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097#include <stdio.h> 4098int 4099main (void) 4100{ 4101FILE *f = fopen ("conftest.out", "w"); 4102 return ferror (f) || fclose (f) != 0; 4103 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108ac_clean_files="$ac_clean_files conftest.out" 4109# Check that the compiler produces executables we can run. If not, either 4110# the compiler is broken, or we cross compile. 4111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4112printf %s "checking whether we are cross compiling... " >&6; } 4113if test "$cross_compiling" != yes; then 4114 { { ac_try="$ac_link" 4115case "(($ac_try" in 4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4117 *) ac_try_echo=$ac_try;; 4118esac 4119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4120printf "%s\n" "$ac_try_echo"; } >&5 4121 (eval "$ac_link") 2>&5 4122 ac_status=$? 4123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4124 test $ac_status = 0; } 4125 if { ac_try='./conftest$ac_cv_exeext' 4126 { { case "(($ac_try" in 4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4128 *) ac_try_echo=$ac_try;; 4129esac 4130eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4131printf "%s\n" "$ac_try_echo"; } >&5 4132 (eval "$ac_try") 2>&5 4133 ac_status=$? 4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4135 test $ac_status = 0; }; }; then 4136 cross_compiling=no 4137 else 4138 if test "$cross_compiling" = maybe; then 4139 cross_compiling=yes 4140 else 4141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4142printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4143as_fn_error 77 "cannot run C compiled programs. 4144If you meant to cross compile, use \`--host'. 4145See \`config.log' for more details" "$LINENO" 5; } 4146 fi 4147 fi 4148fi 4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4150printf "%s\n" "$cross_compiling" >&6; } 4151 4152rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4153ac_clean_files=$ac_clean_files_save 4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4155printf %s "checking for suffix of object files... " >&6; } 4156if test ${ac_cv_objext+y} 4157then : 4158 printf %s "(cached) " >&6 4159else $as_nop 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162 4163int 4164main (void) 4165{ 4166 4167 ; 4168 return 0; 4169} 4170_ACEOF 4171rm -f conftest.o conftest.obj 4172if { { ac_try="$ac_compile" 4173case "(($ac_try" in 4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4175 *) ac_try_echo=$ac_try;; 4176esac 4177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4178printf "%s\n" "$ac_try_echo"; } >&5 4179 (eval "$ac_compile") 2>&5 4180 ac_status=$? 4181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4182 test $ac_status = 0; } 4183then : 4184 for ac_file in conftest.o conftest.obj conftest.*; do 4185 test -f "$ac_file" || continue; 4186 case $ac_file in 4187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4189 break;; 4190 esac 4191done 4192else $as_nop 4193 printf "%s\n" "$as_me: failed program was:" >&5 4194sed 's/^/| /' conftest.$ac_ext >&5 4195 4196{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4197printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4198as_fn_error $? "cannot compute suffix of object files: cannot compile 4199See \`config.log' for more details" "$LINENO" 5; } 4200fi 4201rm -f conftest.$ac_cv_objext conftest.$ac_ext 4202fi 4203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4204printf "%s\n" "$ac_cv_objext" >&6; } 4205OBJEXT=$ac_cv_objext 4206ac_objext=$OBJEXT 4207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4208printf %s "checking whether the compiler supports GNU C... " >&6; } 4209if test ${ac_cv_c_compiler_gnu+y} 4210then : 4211 printf %s "(cached) " >&6 4212else $as_nop 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4214/* end confdefs.h. */ 4215 4216int 4217main (void) 4218{ 4219#ifndef __GNUC__ 4220 choke me 4221#endif 4222 4223 ; 4224 return 0; 4225} 4226_ACEOF 4227if ac_fn_c_try_compile "$LINENO" 4228then : 4229 ac_compiler_gnu=yes 4230else $as_nop 4231 ac_compiler_gnu=no 4232fi 4233rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4234ac_cv_c_compiler_gnu=$ac_compiler_gnu 4235 4236fi 4237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4238printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4239ac_compiler_gnu=$ac_cv_c_compiler_gnu 4240 4241if test $ac_compiler_gnu = yes; then 4242 GCC=yes 4243else 4244 GCC= 4245fi 4246ac_test_CFLAGS=${CFLAGS+y} 4247ac_save_CFLAGS=$CFLAGS 4248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4249printf %s "checking whether $CC accepts -g... " >&6; } 4250if test ${ac_cv_prog_cc_g+y} 4251then : 4252 printf %s "(cached) " >&6 4253else $as_nop 4254 ac_save_c_werror_flag=$ac_c_werror_flag 4255 ac_c_werror_flag=yes 4256 ac_cv_prog_cc_g=no 4257 CFLAGS="-g" 4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4259/* end confdefs.h. */ 4260 4261int 4262main (void) 4263{ 4264 4265 ; 4266 return 0; 4267} 4268_ACEOF 4269if ac_fn_c_try_compile "$LINENO" 4270then : 4271 ac_cv_prog_cc_g=yes 4272else $as_nop 4273 CFLAGS="" 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275/* end confdefs.h. */ 4276 4277int 4278main (void) 4279{ 4280 4281 ; 4282 return 0; 4283} 4284_ACEOF 4285if ac_fn_c_try_compile "$LINENO" 4286then : 4287 4288else $as_nop 4289 ac_c_werror_flag=$ac_save_c_werror_flag 4290 CFLAGS="-g" 4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4292/* end confdefs.h. */ 4293 4294int 4295main (void) 4296{ 4297 4298 ; 4299 return 0; 4300} 4301_ACEOF 4302if ac_fn_c_try_compile "$LINENO" 4303then : 4304 ac_cv_prog_cc_g=yes 4305fi 4306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4307fi 4308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4309fi 4310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4311 ac_c_werror_flag=$ac_save_c_werror_flag 4312fi 4313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4314printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4315if test $ac_test_CFLAGS; then 4316 CFLAGS=$ac_save_CFLAGS 4317elif test $ac_cv_prog_cc_g = yes; then 4318 if test "$GCC" = yes; then 4319 CFLAGS="-g -O2" 4320 else 4321 CFLAGS="-g" 4322 fi 4323else 4324 if test "$GCC" = yes; then 4325 CFLAGS="-O2" 4326 else 4327 CFLAGS= 4328 fi 4329fi 4330ac_prog_cc_stdc=no 4331if test x$ac_prog_cc_stdc = xno 4332then : 4333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4334printf %s "checking for $CC option to enable C11 features... " >&6; } 4335if test ${ac_cv_prog_cc_c11+y} 4336then : 4337 printf %s "(cached) " >&6 4338else $as_nop 4339 ac_cv_prog_cc_c11=no 4340ac_save_CC=$CC 4341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4342/* end confdefs.h. */ 4343$ac_c_conftest_c11_program 4344_ACEOF 4345for ac_arg in '' -std=gnu11 4346do 4347 CC="$ac_save_CC $ac_arg" 4348 if ac_fn_c_try_compile "$LINENO" 4349then : 4350 ac_cv_prog_cc_c11=$ac_arg 4351fi 4352rm -f core conftest.err conftest.$ac_objext conftest.beam 4353 test "x$ac_cv_prog_cc_c11" != "xno" && break 4354done 4355rm -f conftest.$ac_ext 4356CC=$ac_save_CC 4357fi 4358 4359if test "x$ac_cv_prog_cc_c11" = xno 4360then : 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4362printf "%s\n" "unsupported" >&6; } 4363else $as_nop 4364 if test "x$ac_cv_prog_cc_c11" = x 4365then : 4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4367printf "%s\n" "none needed" >&6; } 4368else $as_nop 4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4370printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4371 CC="$CC $ac_cv_prog_cc_c11" 4372fi 4373 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4374 ac_prog_cc_stdc=c11 4375fi 4376fi 4377if test x$ac_prog_cc_stdc = xno 4378then : 4379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4380printf %s "checking for $CC option to enable C99 features... " >&6; } 4381if test ${ac_cv_prog_cc_c99+y} 4382then : 4383 printf %s "(cached) " >&6 4384else $as_nop 4385 ac_cv_prog_cc_c99=no 4386ac_save_CC=$CC 4387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389$ac_c_conftest_c99_program 4390_ACEOF 4391for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4392do 4393 CC="$ac_save_CC $ac_arg" 4394 if ac_fn_c_try_compile "$LINENO" 4395then : 4396 ac_cv_prog_cc_c99=$ac_arg 4397fi 4398rm -f core conftest.err conftest.$ac_objext conftest.beam 4399 test "x$ac_cv_prog_cc_c99" != "xno" && break 4400done 4401rm -f conftest.$ac_ext 4402CC=$ac_save_CC 4403fi 4404 4405if test "x$ac_cv_prog_cc_c99" = xno 4406then : 4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4408printf "%s\n" "unsupported" >&6; } 4409else $as_nop 4410 if test "x$ac_cv_prog_cc_c99" = x 4411then : 4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4413printf "%s\n" "none needed" >&6; } 4414else $as_nop 4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4416printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4417 CC="$CC $ac_cv_prog_cc_c99" 4418fi 4419 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4420 ac_prog_cc_stdc=c99 4421fi 4422fi 4423if test x$ac_prog_cc_stdc = xno 4424then : 4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4426printf %s "checking for $CC option to enable C89 features... " >&6; } 4427if test ${ac_cv_prog_cc_c89+y} 4428then : 4429 printf %s "(cached) " >&6 4430else $as_nop 4431 ac_cv_prog_cc_c89=no 4432ac_save_CC=$CC 4433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434/* end confdefs.h. */ 4435$ac_c_conftest_c89_program 4436_ACEOF 4437for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4438do 4439 CC="$ac_save_CC $ac_arg" 4440 if ac_fn_c_try_compile "$LINENO" 4441then : 4442 ac_cv_prog_cc_c89=$ac_arg 4443fi 4444rm -f core conftest.err conftest.$ac_objext conftest.beam 4445 test "x$ac_cv_prog_cc_c89" != "xno" && break 4446done 4447rm -f conftest.$ac_ext 4448CC=$ac_save_CC 4449fi 4450 4451if test "x$ac_cv_prog_cc_c89" = xno 4452then : 4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4454printf "%s\n" "unsupported" >&6; } 4455else $as_nop 4456 if test "x$ac_cv_prog_cc_c89" = x 4457then : 4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4459printf "%s\n" "none needed" >&6; } 4460else $as_nop 4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4462printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4463 CC="$CC $ac_cv_prog_cc_c89" 4464fi 4465 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4466 ac_prog_cc_stdc=c89 4467fi 4468fi 4469 4470ac_ext=c 4471ac_cpp='$CPP $CPPFLAGS' 4472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4474ac_compiler_gnu=$ac_cv_c_compiler_gnu 4475 4476 4477 ac_ext=c 4478ac_cpp='$CPP $CPPFLAGS' 4479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4481ac_compiler_gnu=$ac_cv_c_compiler_gnu 4482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4483printf %s "checking whether $CC understands -c and -o together... " >&6; } 4484if test ${am_cv_prog_cc_c_o+y} 4485then : 4486 printf %s "(cached) " >&6 4487else $as_nop 4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4489/* end confdefs.h. */ 4490 4491int 4492main (void) 4493{ 4494 4495 ; 4496 return 0; 4497} 4498_ACEOF 4499 # Make sure it works both with $CC and with simple cc. 4500 # Following AC_PROG_CC_C_O, we do the test twice because some 4501 # compilers refuse to overwrite an existing .o file with -o, 4502 # though they will create one. 4503 am_cv_prog_cc_c_o=yes 4504 for am_i in 1 2; do 4505 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4506 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4507 ac_status=$? 4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4509 (exit $ac_status); } \ 4510 && test -f conftest2.$ac_objext; then 4511 : OK 4512 else 4513 am_cv_prog_cc_c_o=no 4514 break 4515 fi 4516 done 4517 rm -f core conftest* 4518 unset am_i 4519fi 4520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4521printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4522if test "$am_cv_prog_cc_c_o" != yes; then 4523 # Losing compiler, so override with the script. 4524 # FIXME: It is wrong to rewrite CC. 4525 # But if we don't then we get into trouble of one sort or another. 4526 # A longer-term fix would be to have automake use am__CC in this case, 4527 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4528 CC="$am_aux_dir/compile $CC" 4529fi 4530ac_ext=c 4531ac_cpp='$CPP $CPPFLAGS' 4532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4534ac_compiler_gnu=$ac_cv_c_compiler_gnu 4535 4536 4537depcc="$CC" am_compiler_list= 4538 4539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4540printf %s "checking dependency style of $depcc... " >&6; } 4541if test ${am_cv_CC_dependencies_compiler_type+y} 4542then : 4543 printf %s "(cached) " >&6 4544else $as_nop 4545 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4546 # We make a subdir and do the tests there. Otherwise we can end up 4547 # making bogus files that we don't know about and never remove. For 4548 # instance it was reported that on HP-UX the gcc test will end up 4549 # making a dummy file named 'D' -- because '-MD' means "put the output 4550 # in D". 4551 rm -rf conftest.dir 4552 mkdir conftest.dir 4553 # Copy depcomp to subdir because otherwise we won't find it if we're 4554 # using a relative directory. 4555 cp "$am_depcomp" conftest.dir 4556 cd conftest.dir 4557 # We will build objects and dependencies in a subdirectory because 4558 # it helps to detect inapplicable dependency modes. For instance 4559 # both Tru64's cc and ICC support -MD to output dependencies as a 4560 # side effect of compilation, but ICC will put the dependencies in 4561 # the current directory while Tru64 will put them in the object 4562 # directory. 4563 mkdir sub 4564 4565 am_cv_CC_dependencies_compiler_type=none 4566 if test "$am_compiler_list" = ""; then 4567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4568 fi 4569 am__universal=false 4570 case " $depcc " in #( 4571 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4572 esac 4573 4574 for depmode in $am_compiler_list; do 4575 # Setup a source with many dependencies, because some compilers 4576 # like to wrap large dependency lists on column 80 (with \), and 4577 # we should not choose a depcomp mode which is confused by this. 4578 # 4579 # We need to recreate these files for each test, as the compiler may 4580 # overwrite some of them when testing with obscure command lines. 4581 # This happens at least with the AIX C compiler. 4582 : > sub/conftest.c 4583 for i in 1 2 3 4 5 6; do 4584 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4585 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4586 # Solaris 10 /bin/sh. 4587 echo '/* dummy */' > sub/conftst$i.h 4588 done 4589 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4590 4591 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4592 # mode. It turns out that the SunPro C++ compiler does not properly 4593 # handle '-M -o', and we need to detect this. Also, some Intel 4594 # versions had trouble with output in subdirs. 4595 am__obj=sub/conftest.${OBJEXT-o} 4596 am__minus_obj="-o $am__obj" 4597 case $depmode in 4598 gcc) 4599 # This depmode causes a compiler race in universal mode. 4600 test "$am__universal" = false || continue 4601 ;; 4602 nosideeffect) 4603 # After this tag, mechanisms are not by side-effect, so they'll 4604 # only be used when explicitly requested. 4605 if test "x$enable_dependency_tracking" = xyes; then 4606 continue 4607 else 4608 break 4609 fi 4610 ;; 4611 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4612 # This compiler won't grok '-c -o', but also, the minuso test has 4613 # not run yet. These depmodes are late enough in the game, and 4614 # so weak that their functioning should not be impacted. 4615 am__obj=conftest.${OBJEXT-o} 4616 am__minus_obj= 4617 ;; 4618 none) break ;; 4619 esac 4620 if depmode=$depmode \ 4621 source=sub/conftest.c object=$am__obj \ 4622 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4623 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4624 >/dev/null 2>conftest.err && 4625 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4626 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4627 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4628 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4629 # icc doesn't choke on unknown options, it will just issue warnings 4630 # or remarks (even with -Werror). So we grep stderr for any message 4631 # that says an option was ignored or not supported. 4632 # When given -MP, icc 7.0 and 7.1 complain thusly: 4633 # icc: Command line warning: ignoring option '-M'; no argument required 4634 # The diagnosis changed in icc 8.0: 4635 # icc: Command line remark: option '-MP' not supported 4636 if (grep 'ignoring option' conftest.err || 4637 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4638 am_cv_CC_dependencies_compiler_type=$depmode 4639 break 4640 fi 4641 fi 4642 done 4643 4644 cd .. 4645 rm -rf conftest.dir 4646else 4647 am_cv_CC_dependencies_compiler_type=none 4648fi 4649 4650fi 4651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4652printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4653CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4654 4655 if 4656 test "x$enable_dependency_tracking" != xno \ 4657 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4658 am__fastdepCC_TRUE= 4659 am__fastdepCC_FALSE='#' 4660else 4661 am__fastdepCC_TRUE='#' 4662 am__fastdepCC_FALSE= 4663fi 4664 4665 4666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4667printf %s "checking for a sed that does not truncate output... " >&6; } 4668if test ${ac_cv_path_SED+y} 4669then : 4670 printf %s "(cached) " >&6 4671else $as_nop 4672 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4673 for ac_i in 1 2 3 4 5 6 7; do 4674 ac_script="$ac_script$as_nl$ac_script" 4675 done 4676 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4677 { ac_script=; unset ac_script;} 4678 if test -z "$SED"; then 4679 ac_path_SED_found=false 4680 # Loop through the user's path and test for each of PROGNAME-LIST 4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4682for as_dir in $PATH 4683do 4684 IFS=$as_save_IFS 4685 case $as_dir in #((( 4686 '') as_dir=./ ;; 4687 */) ;; 4688 *) as_dir=$as_dir/ ;; 4689 esac 4690 for ac_prog in sed gsed 4691 do 4692 for ac_exec_ext in '' $ac_executable_extensions; do 4693 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4694 as_fn_executable_p "$ac_path_SED" || continue 4695# Check for GNU ac_path_SED and select it if it is found. 4696 # Check for GNU $ac_path_SED 4697case `"$ac_path_SED" --version 2>&1` in 4698*GNU*) 4699 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4700*) 4701 ac_count=0 4702 printf %s 0123456789 >"conftest.in" 4703 while : 4704 do 4705 cat "conftest.in" "conftest.in" >"conftest.tmp" 4706 mv "conftest.tmp" "conftest.in" 4707 cp "conftest.in" "conftest.nl" 4708 printf "%s\n" '' >> "conftest.nl" 4709 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4711 as_fn_arith $ac_count + 1 && ac_count=$as_val 4712 if test $ac_count -gt ${ac_path_SED_max-0}; then 4713 # Best one so far, save it but keep looking for a better one 4714 ac_cv_path_SED="$ac_path_SED" 4715 ac_path_SED_max=$ac_count 4716 fi 4717 # 10*(2^10) chars as input seems more than enough 4718 test $ac_count -gt 10 && break 4719 done 4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4721esac 4722 4723 $ac_path_SED_found && break 3 4724 done 4725 done 4726 done 4727IFS=$as_save_IFS 4728 if test -z "$ac_cv_path_SED"; then 4729 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4730 fi 4731else 4732 ac_cv_path_SED=$SED 4733fi 4734 4735fi 4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4737printf "%s\n" "$ac_cv_path_SED" >&6; } 4738 SED="$ac_cv_path_SED" 4739 rm -f conftest.sed 4740 4741test -z "$SED" && SED=sed 4742Xsed="$SED -e 1s/^X//" 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4755printf %s "checking for grep that handles long lines and -e... " >&6; } 4756if test ${ac_cv_path_GREP+y} 4757then : 4758 printf %s "(cached) " >&6 4759else $as_nop 4760 if test -z "$GREP"; then 4761 ac_path_GREP_found=false 4762 # Loop through the user's path and test for each of PROGNAME-LIST 4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4765do 4766 IFS=$as_save_IFS 4767 case $as_dir in #((( 4768 '') as_dir=./ ;; 4769 */) ;; 4770 *) as_dir=$as_dir/ ;; 4771 esac 4772 for ac_prog in grep ggrep 4773 do 4774 for ac_exec_ext in '' $ac_executable_extensions; do 4775 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4776 as_fn_executable_p "$ac_path_GREP" || continue 4777# Check for GNU ac_path_GREP and select it if it is found. 4778 # Check for GNU $ac_path_GREP 4779case `"$ac_path_GREP" --version 2>&1` in 4780*GNU*) 4781 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4782*) 4783 ac_count=0 4784 printf %s 0123456789 >"conftest.in" 4785 while : 4786 do 4787 cat "conftest.in" "conftest.in" >"conftest.tmp" 4788 mv "conftest.tmp" "conftest.in" 4789 cp "conftest.in" "conftest.nl" 4790 printf "%s\n" 'GREP' >> "conftest.nl" 4791 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4793 as_fn_arith $ac_count + 1 && ac_count=$as_val 4794 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4795 # Best one so far, save it but keep looking for a better one 4796 ac_cv_path_GREP="$ac_path_GREP" 4797 ac_path_GREP_max=$ac_count 4798 fi 4799 # 10*(2^10) chars as input seems more than enough 4800 test $ac_count -gt 10 && break 4801 done 4802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4803esac 4804 4805 $ac_path_GREP_found && break 3 4806 done 4807 done 4808 done 4809IFS=$as_save_IFS 4810 if test -z "$ac_cv_path_GREP"; then 4811 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4812 fi 4813else 4814 ac_cv_path_GREP=$GREP 4815fi 4816 4817fi 4818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4819printf "%s\n" "$ac_cv_path_GREP" >&6; } 4820 GREP="$ac_cv_path_GREP" 4821 4822 4823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4824printf %s "checking for egrep... " >&6; } 4825if test ${ac_cv_path_EGREP+y} 4826then : 4827 printf %s "(cached) " >&6 4828else $as_nop 4829 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4830 then ac_cv_path_EGREP="$GREP -E" 4831 else 4832 if test -z "$EGREP"; then 4833 ac_path_EGREP_found=false 4834 # Loop through the user's path and test for each of PROGNAME-LIST 4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4836for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4837do 4838 IFS=$as_save_IFS 4839 case $as_dir in #((( 4840 '') as_dir=./ ;; 4841 */) ;; 4842 *) as_dir=$as_dir/ ;; 4843 esac 4844 for ac_prog in egrep 4845 do 4846 for ac_exec_ext in '' $ac_executable_extensions; do 4847 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4848 as_fn_executable_p "$ac_path_EGREP" || continue 4849# Check for GNU ac_path_EGREP and select it if it is found. 4850 # Check for GNU $ac_path_EGREP 4851case `"$ac_path_EGREP" --version 2>&1` in 4852*GNU*) 4853 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4854*) 4855 ac_count=0 4856 printf %s 0123456789 >"conftest.in" 4857 while : 4858 do 4859 cat "conftest.in" "conftest.in" >"conftest.tmp" 4860 mv "conftest.tmp" "conftest.in" 4861 cp "conftest.in" "conftest.nl" 4862 printf "%s\n" 'EGREP' >> "conftest.nl" 4863 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4864 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4865 as_fn_arith $ac_count + 1 && ac_count=$as_val 4866 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4867 # Best one so far, save it but keep looking for a better one 4868 ac_cv_path_EGREP="$ac_path_EGREP" 4869 ac_path_EGREP_max=$ac_count 4870 fi 4871 # 10*(2^10) chars as input seems more than enough 4872 test $ac_count -gt 10 && break 4873 done 4874 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4875esac 4876 4877 $ac_path_EGREP_found && break 3 4878 done 4879 done 4880 done 4881IFS=$as_save_IFS 4882 if test -z "$ac_cv_path_EGREP"; then 4883 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4884 fi 4885else 4886 ac_cv_path_EGREP=$EGREP 4887fi 4888 4889 fi 4890fi 4891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4892printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4893 EGREP="$ac_cv_path_EGREP" 4894 4895 4896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4897printf %s "checking for fgrep... " >&6; } 4898if test ${ac_cv_path_FGREP+y} 4899then : 4900 printf %s "(cached) " >&6 4901else $as_nop 4902 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4903 then ac_cv_path_FGREP="$GREP -F" 4904 else 4905 if test -z "$FGREP"; then 4906 ac_path_FGREP_found=false 4907 # Loop through the user's path and test for each of PROGNAME-LIST 4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4910do 4911 IFS=$as_save_IFS 4912 case $as_dir in #((( 4913 '') as_dir=./ ;; 4914 */) ;; 4915 *) as_dir=$as_dir/ ;; 4916 esac 4917 for ac_prog in fgrep 4918 do 4919 for ac_exec_ext in '' $ac_executable_extensions; do 4920 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4921 as_fn_executable_p "$ac_path_FGREP" || continue 4922# Check for GNU ac_path_FGREP and select it if it is found. 4923 # Check for GNU $ac_path_FGREP 4924case `"$ac_path_FGREP" --version 2>&1` in 4925*GNU*) 4926 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4927*) 4928 ac_count=0 4929 printf %s 0123456789 >"conftest.in" 4930 while : 4931 do 4932 cat "conftest.in" "conftest.in" >"conftest.tmp" 4933 mv "conftest.tmp" "conftest.in" 4934 cp "conftest.in" "conftest.nl" 4935 printf "%s\n" 'FGREP' >> "conftest.nl" 4936 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4938 as_fn_arith $ac_count + 1 && ac_count=$as_val 4939 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4940 # Best one so far, save it but keep looking for a better one 4941 ac_cv_path_FGREP="$ac_path_FGREP" 4942 ac_path_FGREP_max=$ac_count 4943 fi 4944 # 10*(2^10) chars as input seems more than enough 4945 test $ac_count -gt 10 && break 4946 done 4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4948esac 4949 4950 $ac_path_FGREP_found && break 3 4951 done 4952 done 4953 done 4954IFS=$as_save_IFS 4955 if test -z "$ac_cv_path_FGREP"; then 4956 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4957 fi 4958else 4959 ac_cv_path_FGREP=$FGREP 4960fi 4961 4962 fi 4963fi 4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4965printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4966 FGREP="$ac_cv_path_FGREP" 4967 4968 4969test -z "$GREP" && GREP=grep 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989# Check whether --with-gnu-ld was given. 4990if test ${with_gnu_ld+y} 4991then : 4992 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4993else $as_nop 4994 with_gnu_ld=no 4995fi 4996 4997ac_prog=ld 4998if test yes = "$GCC"; then 4999 # Check if gcc -print-prog-name=ld gives a path. 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5001printf %s "checking for ld used by $CC... " >&6; } 5002 case $host in 5003 *-*-mingw*) 5004 # gcc leaves a trailing carriage return, which upsets mingw 5005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5006 *) 5007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5008 esac 5009 case $ac_prog in 5010 # Accept absolute paths. 5011 [\\/]* | ?:[\\/]*) 5012 re_direlt='/[^/][^/]*/\.\./' 5013 # Canonicalize the pathname of ld 5014 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5015 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5016 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5017 done 5018 test -z "$LD" && LD=$ac_prog 5019 ;; 5020 "") 5021 # If it fails, then pretend we aren't using GCC. 5022 ac_prog=ld 5023 ;; 5024 *) 5025 # If it is relative, then search for the first ld in PATH. 5026 with_gnu_ld=unknown 5027 ;; 5028 esac 5029elif test yes = "$with_gnu_ld"; then 5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5031printf %s "checking for GNU ld... " >&6; } 5032else 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5034printf %s "checking for non-GNU ld... " >&6; } 5035fi 5036if test ${lt_cv_path_LD+y} 5037then : 5038 printf %s "(cached) " >&6 5039else $as_nop 5040 if test -z "$LD"; then 5041 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5042 for ac_dir in $PATH; do 5043 IFS=$lt_save_ifs 5044 test -z "$ac_dir" && ac_dir=. 5045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5046 lt_cv_path_LD=$ac_dir/$ac_prog 5047 # Check to see if the program is GNU ld. I'd rather use --version, 5048 # but apparently some variants of GNU ld only accept -v. 5049 # Break only if it was the GNU/non-GNU ld that we prefer. 5050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5051 *GNU* | *'with BFD'*) 5052 test no != "$with_gnu_ld" && break 5053 ;; 5054 *) 5055 test yes != "$with_gnu_ld" && break 5056 ;; 5057 esac 5058 fi 5059 done 5060 IFS=$lt_save_ifs 5061else 5062 lt_cv_path_LD=$LD # Let the user override the test with a path. 5063fi 5064fi 5065 5066LD=$lt_cv_path_LD 5067if test -n "$LD"; then 5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5069printf "%s\n" "$LD" >&6; } 5070else 5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5072printf "%s\n" "no" >&6; } 5073fi 5074test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5076printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5077if test ${lt_cv_prog_gnu_ld+y} 5078then : 5079 printf %s "(cached) " >&6 5080else $as_nop 5081 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5082case `$LD -v 2>&1 </dev/null` in 5083*GNU* | *'with BFD'*) 5084 lt_cv_prog_gnu_ld=yes 5085 ;; 5086*) 5087 lt_cv_prog_gnu_ld=no 5088 ;; 5089esac 5090fi 5091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5092printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5093with_gnu_ld=$lt_cv_prog_gnu_ld 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5104printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5105if test ${lt_cv_path_NM+y} 5106then : 5107 printf %s "(cached) " >&6 5108else $as_nop 5109 if test -n "$NM"; then 5110 # Let the user override the test. 5111 lt_cv_path_NM=$NM 5112else 5113 lt_nm_to_check=${ac_tool_prefix}nm 5114 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5115 lt_nm_to_check="$lt_nm_to_check nm" 5116 fi 5117 for lt_tmp_nm in $lt_nm_to_check; do 5118 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5119 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5120 IFS=$lt_save_ifs 5121 test -z "$ac_dir" && ac_dir=. 5122 tmp_nm=$ac_dir/$lt_tmp_nm 5123 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5124 # Check to see if the nm accepts a BSD-compat flag. 5125 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5126 # nm: unknown option "B" ignored 5127 # Tru64's nm complains that /dev/null is an invalid object file 5128 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5129 case $build_os in 5130 mingw*) lt_bad_file=conftest.nm/nofile ;; 5131 *) lt_bad_file=/dev/null ;; 5132 esac 5133 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5134 *$lt_bad_file* | *'Invalid file or object type'*) 5135 lt_cv_path_NM="$tmp_nm -B" 5136 break 2 5137 ;; 5138 *) 5139 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5140 */dev/null*) 5141 lt_cv_path_NM="$tmp_nm -p" 5142 break 2 5143 ;; 5144 *) 5145 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5146 continue # so that we can try to find one that supports BSD flags 5147 ;; 5148 esac 5149 ;; 5150 esac 5151 fi 5152 done 5153 IFS=$lt_save_ifs 5154 done 5155 : ${lt_cv_path_NM=no} 5156fi 5157fi 5158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5159printf "%s\n" "$lt_cv_path_NM" >&6; } 5160if test no != "$lt_cv_path_NM"; then 5161 NM=$lt_cv_path_NM 5162else 5163 # Didn't find any BSD compatible name lister, look for dumpbin. 5164 if test -n "$DUMPBIN"; then : 5165 # Let the user override the test. 5166 else 5167 if test -n "$ac_tool_prefix"; then 5168 for ac_prog in dumpbin "link -dump" 5169 do 5170 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5171set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5173printf %s "checking for $ac_word... " >&6; } 5174if test ${ac_cv_prog_DUMPBIN+y} 5175then : 5176 printf %s "(cached) " >&6 5177else $as_nop 5178 if test -n "$DUMPBIN"; then 5179 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5180else 5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in $PATH 5183do 5184 IFS=$as_save_IFS 5185 case $as_dir in #((( 5186 '') as_dir=./ ;; 5187 */) ;; 5188 *) as_dir=$as_dir/ ;; 5189 esac 5190 for ac_exec_ext in '' $ac_executable_extensions; do 5191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5192 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5194 break 2 5195 fi 5196done 5197 done 5198IFS=$as_save_IFS 5199 5200fi 5201fi 5202DUMPBIN=$ac_cv_prog_DUMPBIN 5203if test -n "$DUMPBIN"; then 5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5205printf "%s\n" "$DUMPBIN" >&6; } 5206else 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5208printf "%s\n" "no" >&6; } 5209fi 5210 5211 5212 test -n "$DUMPBIN" && break 5213 done 5214fi 5215if test -z "$DUMPBIN"; then 5216 ac_ct_DUMPBIN=$DUMPBIN 5217 for ac_prog in dumpbin "link -dump" 5218do 5219 # Extract the first word of "$ac_prog", so it can be a program name with args. 5220set dummy $ac_prog; ac_word=$2 5221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5222printf %s "checking for $ac_word... " >&6; } 5223if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5224then : 5225 printf %s "(cached) " >&6 5226else $as_nop 5227 if test -n "$ac_ct_DUMPBIN"; then 5228 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5229else 5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5231for as_dir in $PATH 5232do 5233 IFS=$as_save_IFS 5234 case $as_dir in #((( 5235 '') as_dir=./ ;; 5236 */) ;; 5237 *) as_dir=$as_dir/ ;; 5238 esac 5239 for ac_exec_ext in '' $ac_executable_extensions; do 5240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5241 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5243 break 2 5244 fi 5245done 5246 done 5247IFS=$as_save_IFS 5248 5249fi 5250fi 5251ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5252if test -n "$ac_ct_DUMPBIN"; then 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5254printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5255else 5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5257printf "%s\n" "no" >&6; } 5258fi 5259 5260 5261 test -n "$ac_ct_DUMPBIN" && break 5262done 5263 5264 if test "x$ac_ct_DUMPBIN" = x; then 5265 DUMPBIN=":" 5266 else 5267 case $cross_compiling:$ac_tool_warned in 5268yes:) 5269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5270printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5271ac_tool_warned=yes ;; 5272esac 5273 DUMPBIN=$ac_ct_DUMPBIN 5274 fi 5275fi 5276 5277 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5278 *COFF*) 5279 DUMPBIN="$DUMPBIN -symbols -headers" 5280 ;; 5281 *) 5282 DUMPBIN=: 5283 ;; 5284 esac 5285 fi 5286 5287 if test : != "$DUMPBIN"; then 5288 NM=$DUMPBIN 5289 fi 5290fi 5291test -z "$NM" && NM=nm 5292 5293 5294 5295 5296 5297 5298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5299printf %s "checking the name lister ($NM) interface... " >&6; } 5300if test ${lt_cv_nm_interface+y} 5301then : 5302 printf %s "(cached) " >&6 5303else $as_nop 5304 lt_cv_nm_interface="BSD nm" 5305 echo "int some_variable = 0;" > conftest.$ac_ext 5306 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5307 (eval "$ac_compile" 2>conftest.err) 5308 cat conftest.err >&5 5309 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5310 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5311 cat conftest.err >&5 5312 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5313 cat conftest.out >&5 5314 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5315 lt_cv_nm_interface="MS dumpbin" 5316 fi 5317 rm -f conftest* 5318fi 5319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5320printf "%s\n" "$lt_cv_nm_interface" >&6; } 5321 5322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5323printf %s "checking whether ln -s works... " >&6; } 5324LN_S=$as_ln_s 5325if test "$LN_S" = "ln -s"; then 5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5327printf "%s\n" "yes" >&6; } 5328else 5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5330printf "%s\n" "no, using $LN_S" >&6; } 5331fi 5332 5333# find the maximum length of command line arguments 5334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5335printf %s "checking the maximum length of command line arguments... " >&6; } 5336if test ${lt_cv_sys_max_cmd_len+y} 5337then : 5338 printf %s "(cached) " >&6 5339else $as_nop 5340 i=0 5341 teststring=ABCD 5342 5343 case $build_os in 5344 msdosdjgpp*) 5345 # On DJGPP, this test can blow up pretty badly due to problems in libc 5346 # (any single argument exceeding 2000 bytes causes a buffer overrun 5347 # during glob expansion). Even if it were fixed, the result of this 5348 # check would be larger than it should be. 5349 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5350 ;; 5351 5352 gnu*) 5353 # Under GNU Hurd, this test is not required because there is 5354 # no limit to the length of command line arguments. 5355 # Libtool will interpret -1 as no limit whatsoever 5356 lt_cv_sys_max_cmd_len=-1; 5357 ;; 5358 5359 cygwin* | mingw* | cegcc*) 5360 # On Win9x/ME, this test blows up -- it succeeds, but takes 5361 # about 5 minutes as the teststring grows exponentially. 5362 # Worse, since 9x/ME are not pre-emptively multitasking, 5363 # you end up with a "frozen" computer, even though with patience 5364 # the test eventually succeeds (with a max line length of 256k). 5365 # Instead, let's just punt: use the minimum linelength reported by 5366 # all of the supported platforms: 8192 (on NT/2K/XP). 5367 lt_cv_sys_max_cmd_len=8192; 5368 ;; 5369 5370 mint*) 5371 # On MiNT this can take a long time and run out of memory. 5372 lt_cv_sys_max_cmd_len=8192; 5373 ;; 5374 5375 amigaos*) 5376 # On AmigaOS with pdksh, this test takes hours, literally. 5377 # So we just punt and use a minimum line length of 8192. 5378 lt_cv_sys_max_cmd_len=8192; 5379 ;; 5380 5381 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5382 # This has been around since 386BSD, at least. Likely further. 5383 if test -x /sbin/sysctl; then 5384 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5385 elif test -x /usr/sbin/sysctl; then 5386 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5387 else 5388 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5389 fi 5390 # And add a safety zone 5391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5392 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5393 ;; 5394 5395 interix*) 5396 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5397 lt_cv_sys_max_cmd_len=196608 5398 ;; 5399 5400 os2*) 5401 # The test takes a long time on OS/2. 5402 lt_cv_sys_max_cmd_len=8192 5403 ;; 5404 5405 osf*) 5406 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5407 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5408 # nice to cause kernel panics so lets avoid the loop below. 5409 # First set a reasonable default. 5410 lt_cv_sys_max_cmd_len=16384 5411 # 5412 if test -x /sbin/sysconfig; then 5413 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5414 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5415 esac 5416 fi 5417 ;; 5418 sco3.2v5*) 5419 lt_cv_sys_max_cmd_len=102400 5420 ;; 5421 sysv5* | sco5v6* | sysv4.2uw2*) 5422 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5423 if test -n "$kargmax"; then 5424 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5425 else 5426 lt_cv_sys_max_cmd_len=32768 5427 fi 5428 ;; 5429 *) 5430 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5431 if test -n "$lt_cv_sys_max_cmd_len" && \ 5432 test undefined != "$lt_cv_sys_max_cmd_len"; then 5433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5435 else 5436 # Make teststring a little bigger before we do anything with it. 5437 # a 1K string should be a reasonable start. 5438 for i in 1 2 3 4 5 6 7 8; do 5439 teststring=$teststring$teststring 5440 done 5441 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5442 # If test is not a shell built-in, we'll probably end up computing a 5443 # maximum length that is only half of the actual maximum length, but 5444 # we can't tell. 5445 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5446 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5447 test 17 != "$i" # 1/2 MB should be enough 5448 do 5449 i=`expr $i + 1` 5450 teststring=$teststring$teststring 5451 done 5452 # Only check the string length outside the loop. 5453 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5454 teststring= 5455 # Add a significant safety factor because C++ compilers can tack on 5456 # massive amounts of additional arguments before passing them to the 5457 # linker. It appears as though 1/2 is a usable value. 5458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5459 fi 5460 ;; 5461 esac 5462 5463fi 5464 5465if test -n "$lt_cv_sys_max_cmd_len"; then 5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5467printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5468else 5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5470printf "%s\n" "none" >&6; } 5471fi 5472max_cmd_len=$lt_cv_sys_max_cmd_len 5473 5474 5475 5476 5477 5478 5479: ${CP="cp -f"} 5480: ${MV="mv -f"} 5481: ${RM="rm -f"} 5482 5483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5484 lt_unset=unset 5485else 5486 lt_unset=false 5487fi 5488 5489 5490 5491 5492 5493# test EBCDIC or ASCII 5494case `echo X|tr X '\101'` in 5495 A) # ASCII based system 5496 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5497 lt_SP2NL='tr \040 \012' 5498 lt_NL2SP='tr \015\012 \040\040' 5499 ;; 5500 *) # EBCDIC based system 5501 lt_SP2NL='tr \100 \n' 5502 lt_NL2SP='tr \r\n \100\100' 5503 ;; 5504esac 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5515printf %s "checking how to convert $build file names to $host format... " >&6; } 5516if test ${lt_cv_to_host_file_cmd+y} 5517then : 5518 printf %s "(cached) " >&6 5519else $as_nop 5520 case $host in 5521 *-*-mingw* ) 5522 case $build in 5523 *-*-mingw* ) # actually msys 5524 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5525 ;; 5526 *-*-cygwin* ) 5527 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5528 ;; 5529 * ) # otherwise, assume *nix 5530 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5531 ;; 5532 esac 5533 ;; 5534 *-*-cygwin* ) 5535 case $build in 5536 *-*-mingw* ) # actually msys 5537 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5538 ;; 5539 *-*-cygwin* ) 5540 lt_cv_to_host_file_cmd=func_convert_file_noop 5541 ;; 5542 * ) # otherwise, assume *nix 5543 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5544 ;; 5545 esac 5546 ;; 5547 * ) # unhandled hosts (and "normal" native builds) 5548 lt_cv_to_host_file_cmd=func_convert_file_noop 5549 ;; 5550esac 5551 5552fi 5553 5554to_host_file_cmd=$lt_cv_to_host_file_cmd 5555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5556printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5557 5558 5559 5560 5561 5562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5563printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5564if test ${lt_cv_to_tool_file_cmd+y} 5565then : 5566 printf %s "(cached) " >&6 5567else $as_nop 5568 #assume ordinary cross tools, or native build. 5569lt_cv_to_tool_file_cmd=func_convert_file_noop 5570case $host in 5571 *-*-mingw* ) 5572 case $build in 5573 *-*-mingw* ) # actually msys 5574 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5575 ;; 5576 esac 5577 ;; 5578esac 5579 5580fi 5581 5582to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5584printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5585 5586 5587 5588 5589 5590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5591printf %s "checking for $LD option to reload object files... " >&6; } 5592if test ${lt_cv_ld_reload_flag+y} 5593then : 5594 printf %s "(cached) " >&6 5595else $as_nop 5596 lt_cv_ld_reload_flag='-r' 5597fi 5598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5599printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5600reload_flag=$lt_cv_ld_reload_flag 5601case $reload_flag in 5602"" | " "*) ;; 5603*) reload_flag=" $reload_flag" ;; 5604esac 5605reload_cmds='$LD$reload_flag -o $output$reload_objs' 5606case $host_os in 5607 cygwin* | mingw* | pw32* | cegcc*) 5608 if test yes != "$GCC"; then 5609 reload_cmds=false 5610 fi 5611 ;; 5612 darwin*) 5613 if test yes = "$GCC"; then 5614 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5615 else 5616 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5617 fi 5618 ;; 5619esac 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629if test -n "$ac_tool_prefix"; then 5630 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5631set dummy ${ac_tool_prefix}file; ac_word=$2 5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5633printf %s "checking for $ac_word... " >&6; } 5634if test ${ac_cv_prog_FILECMD+y} 5635then : 5636 printf %s "(cached) " >&6 5637else $as_nop 5638 if test -n "$FILECMD"; then 5639 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5640else 5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5642for as_dir in $PATH 5643do 5644 IFS=$as_save_IFS 5645 case $as_dir in #((( 5646 '') as_dir=./ ;; 5647 */) ;; 5648 *) as_dir=$as_dir/ ;; 5649 esac 5650 for ac_exec_ext in '' $ac_executable_extensions; do 5651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5652 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5654 break 2 5655 fi 5656done 5657 done 5658IFS=$as_save_IFS 5659 5660fi 5661fi 5662FILECMD=$ac_cv_prog_FILECMD 5663if test -n "$FILECMD"; then 5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5665printf "%s\n" "$FILECMD" >&6; } 5666else 5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5668printf "%s\n" "no" >&6; } 5669fi 5670 5671 5672fi 5673if test -z "$ac_cv_prog_FILECMD"; then 5674 ac_ct_FILECMD=$FILECMD 5675 # Extract the first word of "file", so it can be a program name with args. 5676set dummy file; ac_word=$2 5677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5678printf %s "checking for $ac_word... " >&6; } 5679if test ${ac_cv_prog_ac_ct_FILECMD+y} 5680then : 5681 printf %s "(cached) " >&6 5682else $as_nop 5683 if test -n "$ac_ct_FILECMD"; then 5684 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5685else 5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5687for as_dir in $PATH 5688do 5689 IFS=$as_save_IFS 5690 case $as_dir in #((( 5691 '') as_dir=./ ;; 5692 */) ;; 5693 *) as_dir=$as_dir/ ;; 5694 esac 5695 for ac_exec_ext in '' $ac_executable_extensions; do 5696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5697 ac_cv_prog_ac_ct_FILECMD="file" 5698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5699 break 2 5700 fi 5701done 5702 done 5703IFS=$as_save_IFS 5704 5705fi 5706fi 5707ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5708if test -n "$ac_ct_FILECMD"; then 5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5710printf "%s\n" "$ac_ct_FILECMD" >&6; } 5711else 5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713printf "%s\n" "no" >&6; } 5714fi 5715 5716 if test "x$ac_ct_FILECMD" = x; then 5717 FILECMD=":" 5718 else 5719 case $cross_compiling:$ac_tool_warned in 5720yes:) 5721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5722printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5723ac_tool_warned=yes ;; 5724esac 5725 FILECMD=$ac_ct_FILECMD 5726 fi 5727else 5728 FILECMD="$ac_cv_prog_FILECMD" 5729fi 5730 5731 5732 5733 5734 5735 5736 5737if test -n "$ac_tool_prefix"; then 5738 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5739set dummy ${ac_tool_prefix}objdump; ac_word=$2 5740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5741printf %s "checking for $ac_word... " >&6; } 5742if test ${ac_cv_prog_OBJDUMP+y} 5743then : 5744 printf %s "(cached) " >&6 5745else $as_nop 5746 if test -n "$OBJDUMP"; then 5747 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5748else 5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5750for as_dir in $PATH 5751do 5752 IFS=$as_save_IFS 5753 case $as_dir in #((( 5754 '') as_dir=./ ;; 5755 */) ;; 5756 *) as_dir=$as_dir/ ;; 5757 esac 5758 for ac_exec_ext in '' $ac_executable_extensions; do 5759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5760 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5762 break 2 5763 fi 5764done 5765 done 5766IFS=$as_save_IFS 5767 5768fi 5769fi 5770OBJDUMP=$ac_cv_prog_OBJDUMP 5771if test -n "$OBJDUMP"; then 5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5773printf "%s\n" "$OBJDUMP" >&6; } 5774else 5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5776printf "%s\n" "no" >&6; } 5777fi 5778 5779 5780fi 5781if test -z "$ac_cv_prog_OBJDUMP"; then 5782 ac_ct_OBJDUMP=$OBJDUMP 5783 # Extract the first word of "objdump", so it can be a program name with args. 5784set dummy objdump; ac_word=$2 5785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5786printf %s "checking for $ac_word... " >&6; } 5787if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5788then : 5789 printf %s "(cached) " >&6 5790else $as_nop 5791 if test -n "$ac_ct_OBJDUMP"; then 5792 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5793else 5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5795for as_dir in $PATH 5796do 5797 IFS=$as_save_IFS 5798 case $as_dir in #((( 5799 '') as_dir=./ ;; 5800 */) ;; 5801 *) as_dir=$as_dir/ ;; 5802 esac 5803 for ac_exec_ext in '' $ac_executable_extensions; do 5804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5805 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5807 break 2 5808 fi 5809done 5810 done 5811IFS=$as_save_IFS 5812 5813fi 5814fi 5815ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5816if test -n "$ac_ct_OBJDUMP"; then 5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5818printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5819else 5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5821printf "%s\n" "no" >&6; } 5822fi 5823 5824 if test "x$ac_ct_OBJDUMP" = x; then 5825 OBJDUMP="false" 5826 else 5827 case $cross_compiling:$ac_tool_warned in 5828yes:) 5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5830printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5831ac_tool_warned=yes ;; 5832esac 5833 OBJDUMP=$ac_ct_OBJDUMP 5834 fi 5835else 5836 OBJDUMP="$ac_cv_prog_OBJDUMP" 5837fi 5838 5839test -z "$OBJDUMP" && OBJDUMP=objdump 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5850printf %s "checking how to recognize dependent libraries... " >&6; } 5851if test ${lt_cv_deplibs_check_method+y} 5852then : 5853 printf %s "(cached) " >&6 5854else $as_nop 5855 lt_cv_file_magic_cmd='$MAGIC_CMD' 5856lt_cv_file_magic_test_file= 5857lt_cv_deplibs_check_method='unknown' 5858# Need to set the preceding variable on all platforms that support 5859# interlibrary dependencies. 5860# 'none' -- dependencies not supported. 5861# 'unknown' -- same as none, but documents that we really don't know. 5862# 'pass_all' -- all dependencies passed with no checks. 5863# 'test_compile' -- check by making test program. 5864# 'file_magic [[regex]]' -- check by looking for files in library path 5865# that responds to the $file_magic_cmd with a given extended regex. 5866# If you have 'file' or equivalent on your system and you're not sure 5867# whether 'pass_all' will *always* work, you probably want this one. 5868 5869case $host_os in 5870aix[4-9]*) 5871 lt_cv_deplibs_check_method=pass_all 5872 ;; 5873 5874beos*) 5875 lt_cv_deplibs_check_method=pass_all 5876 ;; 5877 5878bsdi[45]*) 5879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5880 lt_cv_file_magic_cmd='$FILECMD -L' 5881 lt_cv_file_magic_test_file=/shlib/libc.so 5882 ;; 5883 5884cygwin*) 5885 # func_win32_libid is a shell function defined in ltmain.sh 5886 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5887 lt_cv_file_magic_cmd='func_win32_libid' 5888 ;; 5889 5890mingw* | pw32*) 5891 # Base MSYS/MinGW do not provide the 'file' command needed by 5892 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5893 # unless we find 'file', for example because we are cross-compiling. 5894 if ( file / ) >/dev/null 2>&1; then 5895 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5896 lt_cv_file_magic_cmd='func_win32_libid' 5897 else 5898 # Keep this pattern in sync with the one in func_win32_libid. 5899 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5900 lt_cv_file_magic_cmd='$OBJDUMP -f' 5901 fi 5902 ;; 5903 5904cegcc*) 5905 # use the weaker test based on 'objdump'. See mingw*. 5906 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5907 lt_cv_file_magic_cmd='$OBJDUMP -f' 5908 ;; 5909 5910darwin* | rhapsody*) 5911 lt_cv_deplibs_check_method=pass_all 5912 ;; 5913 5914freebsd* | dragonfly* | midnightbsd*) 5915 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5916 case $host_cpu in 5917 i*86 ) 5918 # Not sure whether the presence of OpenBSD here was a mistake. 5919 # Let's accept both of them until this is cleared up. 5920 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5921 lt_cv_file_magic_cmd=$FILECMD 5922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5923 ;; 5924 esac 5925 else 5926 lt_cv_deplibs_check_method=pass_all 5927 fi 5928 ;; 5929 5930haiku*) 5931 lt_cv_deplibs_check_method=pass_all 5932 ;; 5933 5934hpux10.20* | hpux11*) 5935 lt_cv_file_magic_cmd=$FILECMD 5936 case $host_cpu in 5937 ia64*) 5938 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5939 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5940 ;; 5941 hppa*64*) 5942 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]' 5943 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5944 ;; 5945 *) 5946 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5947 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5948 ;; 5949 esac 5950 ;; 5951 5952interix[3-9]*) 5953 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5955 ;; 5956 5957irix5* | irix6* | nonstopux*) 5958 case $LD in 5959 *-32|*"-32 ") libmagic=32-bit;; 5960 *-n32|*"-n32 ") libmagic=N32;; 5961 *-64|*"-64 ") libmagic=64-bit;; 5962 *) libmagic=never-match;; 5963 esac 5964 lt_cv_deplibs_check_method=pass_all 5965 ;; 5966 5967# This must be glibc/ELF. 5968linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5969 lt_cv_deplibs_check_method=pass_all 5970 ;; 5971 5972netbsd*) 5973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5975 else 5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5977 fi 5978 ;; 5979 5980newos6*) 5981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5982 lt_cv_file_magic_cmd=$FILECMD 5983 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5984 ;; 5985 5986*nto* | *qnx*) 5987 lt_cv_deplibs_check_method=pass_all 5988 ;; 5989 5990openbsd* | bitrig*) 5991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5993 else 5994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5995 fi 5996 ;; 5997 5998osf3* | osf4* | osf5*) 5999 lt_cv_deplibs_check_method=pass_all 6000 ;; 6001 6002rdos*) 6003 lt_cv_deplibs_check_method=pass_all 6004 ;; 6005 6006solaris*) 6007 lt_cv_deplibs_check_method=pass_all 6008 ;; 6009 6010sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013 6014sysv4 | sysv4.3*) 6015 case $host_vendor in 6016 motorola) 6017 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]' 6018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6019 ;; 6020 ncr) 6021 lt_cv_deplibs_check_method=pass_all 6022 ;; 6023 sequent) 6024 lt_cv_file_magic_cmd='/bin/file' 6025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6026 ;; 6027 sni) 6028 lt_cv_file_magic_cmd='/bin/file' 6029 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6030 lt_cv_file_magic_test_file=/lib/libc.so 6031 ;; 6032 siemens) 6033 lt_cv_deplibs_check_method=pass_all 6034 ;; 6035 pc) 6036 lt_cv_deplibs_check_method=pass_all 6037 ;; 6038 esac 6039 ;; 6040 6041tpf*) 6042 lt_cv_deplibs_check_method=pass_all 6043 ;; 6044os2*) 6045 lt_cv_deplibs_check_method=pass_all 6046 ;; 6047esac 6048 6049fi 6050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6051printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6052 6053file_magic_glob= 6054want_nocaseglob=no 6055if test "$build" = "$host"; then 6056 case $host_os in 6057 mingw* | pw32*) 6058 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6059 want_nocaseglob=yes 6060 else 6061 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6062 fi 6063 ;; 6064 esac 6065fi 6066 6067file_magic_cmd=$lt_cv_file_magic_cmd 6068deplibs_check_method=$lt_cv_deplibs_check_method 6069test -z "$deplibs_check_method" && deplibs_check_method=unknown 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092if test -n "$ac_tool_prefix"; then 6093 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6094set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6096printf %s "checking for $ac_word... " >&6; } 6097if test ${ac_cv_prog_DLLTOOL+y} 6098then : 6099 printf %s "(cached) " >&6 6100else $as_nop 6101 if test -n "$DLLTOOL"; then 6102 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6103else 6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6105for as_dir in $PATH 6106do 6107 IFS=$as_save_IFS 6108 case $as_dir in #((( 6109 '') as_dir=./ ;; 6110 */) ;; 6111 *) as_dir=$as_dir/ ;; 6112 esac 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6115 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119done 6120 done 6121IFS=$as_save_IFS 6122 6123fi 6124fi 6125DLLTOOL=$ac_cv_prog_DLLTOOL 6126if test -n "$DLLTOOL"; then 6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6128printf "%s\n" "$DLLTOOL" >&6; } 6129else 6130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131printf "%s\n" "no" >&6; } 6132fi 6133 6134 6135fi 6136if test -z "$ac_cv_prog_DLLTOOL"; then 6137 ac_ct_DLLTOOL=$DLLTOOL 6138 # Extract the first word of "dlltool", so it can be a program name with args. 6139set dummy dlltool; ac_word=$2 6140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6141printf %s "checking for $ac_word... " >&6; } 6142if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6143then : 6144 printf %s "(cached) " >&6 6145else $as_nop 6146 if test -n "$ac_ct_DLLTOOL"; then 6147 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6148else 6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6150for as_dir in $PATH 6151do 6152 IFS=$as_save_IFS 6153 case $as_dir in #((( 6154 '') as_dir=./ ;; 6155 */) ;; 6156 *) as_dir=$as_dir/ ;; 6157 esac 6158 for ac_exec_ext in '' $ac_executable_extensions; do 6159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6160 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6162 break 2 6163 fi 6164done 6165 done 6166IFS=$as_save_IFS 6167 6168fi 6169fi 6170ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6171if test -n "$ac_ct_DLLTOOL"; then 6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6173printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6174else 6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6176printf "%s\n" "no" >&6; } 6177fi 6178 6179 if test "x$ac_ct_DLLTOOL" = x; then 6180 DLLTOOL="false" 6181 else 6182 case $cross_compiling:$ac_tool_warned in 6183yes:) 6184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6185printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6186ac_tool_warned=yes ;; 6187esac 6188 DLLTOOL=$ac_ct_DLLTOOL 6189 fi 6190else 6191 DLLTOOL="$ac_cv_prog_DLLTOOL" 6192fi 6193 6194test -z "$DLLTOOL" && DLLTOOL=dlltool 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6206printf %s "checking how to associate runtime and link libraries... " >&6; } 6207if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6208then : 6209 printf %s "(cached) " >&6 6210else $as_nop 6211 lt_cv_sharedlib_from_linklib_cmd='unknown' 6212 6213case $host_os in 6214cygwin* | mingw* | pw32* | cegcc*) 6215 # two different shell functions defined in ltmain.sh; 6216 # decide which one to use based on capabilities of $DLLTOOL 6217 case `$DLLTOOL --help 2>&1` in 6218 *--identify-strict*) 6219 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6220 ;; 6221 *) 6222 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6223 ;; 6224 esac 6225 ;; 6226*) 6227 # fallback: assume linklib IS sharedlib 6228 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6229 ;; 6230esac 6231 6232fi 6233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6234printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6235sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6236test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6237 6238 6239 6240 6241 6242 6243 6244 6245if test -n "$ac_tool_prefix"; then 6246 for ac_prog in ar 6247 do 6248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6249set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6251printf %s "checking for $ac_word... " >&6; } 6252if test ${ac_cv_prog_AR+y} 6253then : 6254 printf %s "(cached) " >&6 6255else $as_nop 6256 if test -n "$AR"; then 6257 ac_cv_prog_AR="$AR" # Let the user override the test. 6258else 6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6260for as_dir in $PATH 6261do 6262 IFS=$as_save_IFS 6263 case $as_dir in #((( 6264 '') as_dir=./ ;; 6265 */) ;; 6266 *) as_dir=$as_dir/ ;; 6267 esac 6268 for ac_exec_ext in '' $ac_executable_extensions; do 6269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6270 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6272 break 2 6273 fi 6274done 6275 done 6276IFS=$as_save_IFS 6277 6278fi 6279fi 6280AR=$ac_cv_prog_AR 6281if test -n "$AR"; then 6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6283printf "%s\n" "$AR" >&6; } 6284else 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6286printf "%s\n" "no" >&6; } 6287fi 6288 6289 6290 test -n "$AR" && break 6291 done 6292fi 6293if test -z "$AR"; then 6294 ac_ct_AR=$AR 6295 for ac_prog in ar 6296do 6297 # Extract the first word of "$ac_prog", so it can be a program name with args. 6298set dummy $ac_prog; ac_word=$2 6299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6300printf %s "checking for $ac_word... " >&6; } 6301if test ${ac_cv_prog_ac_ct_AR+y} 6302then : 6303 printf %s "(cached) " >&6 6304else $as_nop 6305 if test -n "$ac_ct_AR"; then 6306 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6307else 6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6309for as_dir in $PATH 6310do 6311 IFS=$as_save_IFS 6312 case $as_dir in #((( 6313 '') as_dir=./ ;; 6314 */) ;; 6315 *) as_dir=$as_dir/ ;; 6316 esac 6317 for ac_exec_ext in '' $ac_executable_extensions; do 6318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6319 ac_cv_prog_ac_ct_AR="$ac_prog" 6320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6321 break 2 6322 fi 6323done 6324 done 6325IFS=$as_save_IFS 6326 6327fi 6328fi 6329ac_ct_AR=$ac_cv_prog_ac_ct_AR 6330if test -n "$ac_ct_AR"; then 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6332printf "%s\n" "$ac_ct_AR" >&6; } 6333else 6334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6335printf "%s\n" "no" >&6; } 6336fi 6337 6338 6339 test -n "$ac_ct_AR" && break 6340done 6341 6342 if test "x$ac_ct_AR" = x; then 6343 AR="false" 6344 else 6345 case $cross_compiling:$ac_tool_warned in 6346yes:) 6347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6348printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6349ac_tool_warned=yes ;; 6350esac 6351 AR=$ac_ct_AR 6352 fi 6353fi 6354 6355: ${AR=ar} 6356 6357 6358 6359 6360 6361 6362# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6363# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6364# higher priority because thats what people were doing historically (setting 6365# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6366# variable obsoleted/removed. 6367 6368test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6369lt_ar_flags=$AR_FLAGS 6370 6371 6372 6373 6374 6375 6376# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6377# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6378 6379 6380 6381 6382 6383 6384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6385printf %s "checking for archiver @FILE support... " >&6; } 6386if test ${lt_cv_ar_at_file+y} 6387then : 6388 printf %s "(cached) " >&6 6389else $as_nop 6390 lt_cv_ar_at_file=no 6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6392/* end confdefs.h. */ 6393 6394int 6395main (void) 6396{ 6397 6398 ; 6399 return 0; 6400} 6401_ACEOF 6402if ac_fn_c_try_compile "$LINENO" 6403then : 6404 echo conftest.$ac_objext > conftest.lst 6405 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6407 (eval $lt_ar_try) 2>&5 6408 ac_status=$? 6409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6410 test $ac_status = 0; } 6411 if test 0 -eq "$ac_status"; then 6412 # Ensure the archiver fails upon bogus file names. 6413 rm -f conftest.$ac_objext libconftest.a 6414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6415 (eval $lt_ar_try) 2>&5 6416 ac_status=$? 6417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6418 test $ac_status = 0; } 6419 if test 0 -ne "$ac_status"; then 6420 lt_cv_ar_at_file=@ 6421 fi 6422 fi 6423 rm -f conftest.* libconftest.a 6424 6425fi 6426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6427 6428fi 6429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6430printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6431 6432if test no = "$lt_cv_ar_at_file"; then 6433 archiver_list_spec= 6434else 6435 archiver_list_spec=$lt_cv_ar_at_file 6436fi 6437 6438 6439 6440 6441 6442 6443 6444if test -n "$ac_tool_prefix"; then 6445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6446set dummy ${ac_tool_prefix}strip; ac_word=$2 6447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6448printf %s "checking for $ac_word... " >&6; } 6449if test ${ac_cv_prog_STRIP+y} 6450then : 6451 printf %s "(cached) " >&6 6452else $as_nop 6453 if test -n "$STRIP"; then 6454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6455else 6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6457for as_dir in $PATH 6458do 6459 IFS=$as_save_IFS 6460 case $as_dir in #((( 6461 '') as_dir=./ ;; 6462 */) ;; 6463 *) as_dir=$as_dir/ ;; 6464 esac 6465 for ac_exec_ext in '' $ac_executable_extensions; do 6466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6467 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6469 break 2 6470 fi 6471done 6472 done 6473IFS=$as_save_IFS 6474 6475fi 6476fi 6477STRIP=$ac_cv_prog_STRIP 6478if test -n "$STRIP"; then 6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6480printf "%s\n" "$STRIP" >&6; } 6481else 6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6483printf "%s\n" "no" >&6; } 6484fi 6485 6486 6487fi 6488if test -z "$ac_cv_prog_STRIP"; then 6489 ac_ct_STRIP=$STRIP 6490 # Extract the first word of "strip", so it can be a program name with args. 6491set dummy strip; ac_word=$2 6492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6493printf %s "checking for $ac_word... " >&6; } 6494if test ${ac_cv_prog_ac_ct_STRIP+y} 6495then : 6496 printf %s "(cached) " >&6 6497else $as_nop 6498 if test -n "$ac_ct_STRIP"; then 6499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6500else 6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6502for as_dir in $PATH 6503do 6504 IFS=$as_save_IFS 6505 case $as_dir in #((( 6506 '') as_dir=./ ;; 6507 */) ;; 6508 *) as_dir=$as_dir/ ;; 6509 esac 6510 for ac_exec_ext in '' $ac_executable_extensions; do 6511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6512 ac_cv_prog_ac_ct_STRIP="strip" 6513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6514 break 2 6515 fi 6516done 6517 done 6518IFS=$as_save_IFS 6519 6520fi 6521fi 6522ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6523if test -n "$ac_ct_STRIP"; then 6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6525printf "%s\n" "$ac_ct_STRIP" >&6; } 6526else 6527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6528printf "%s\n" "no" >&6; } 6529fi 6530 6531 if test "x$ac_ct_STRIP" = x; then 6532 STRIP=":" 6533 else 6534 case $cross_compiling:$ac_tool_warned in 6535yes:) 6536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6537printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6538ac_tool_warned=yes ;; 6539esac 6540 STRIP=$ac_ct_STRIP 6541 fi 6542else 6543 STRIP="$ac_cv_prog_STRIP" 6544fi 6545 6546test -z "$STRIP" && STRIP=: 6547 6548 6549 6550 6551 6552 6553if test -n "$ac_tool_prefix"; then 6554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6555set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6557printf %s "checking for $ac_word... " >&6; } 6558if test ${ac_cv_prog_RANLIB+y} 6559then : 6560 printf %s "(cached) " >&6 6561else $as_nop 6562 if test -n "$RANLIB"; then 6563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6564else 6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6566for as_dir in $PATH 6567do 6568 IFS=$as_save_IFS 6569 case $as_dir in #((( 6570 '') as_dir=./ ;; 6571 */) ;; 6572 *) as_dir=$as_dir/ ;; 6573 esac 6574 for ac_exec_ext in '' $ac_executable_extensions; do 6575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6578 break 2 6579 fi 6580done 6581 done 6582IFS=$as_save_IFS 6583 6584fi 6585fi 6586RANLIB=$ac_cv_prog_RANLIB 6587if test -n "$RANLIB"; then 6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6589printf "%s\n" "$RANLIB" >&6; } 6590else 6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6592printf "%s\n" "no" >&6; } 6593fi 6594 6595 6596fi 6597if test -z "$ac_cv_prog_RANLIB"; then 6598 ac_ct_RANLIB=$RANLIB 6599 # Extract the first word of "ranlib", so it can be a program name with args. 6600set dummy ranlib; ac_word=$2 6601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6602printf %s "checking for $ac_word... " >&6; } 6603if test ${ac_cv_prog_ac_ct_RANLIB+y} 6604then : 6605 printf %s "(cached) " >&6 6606else $as_nop 6607 if test -n "$ac_ct_RANLIB"; then 6608 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6609else 6610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6611for as_dir in $PATH 6612do 6613 IFS=$as_save_IFS 6614 case $as_dir in #((( 6615 '') as_dir=./ ;; 6616 */) ;; 6617 *) as_dir=$as_dir/ ;; 6618 esac 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6621 ac_cv_prog_ac_ct_RANLIB="ranlib" 6622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6623 break 2 6624 fi 6625done 6626 done 6627IFS=$as_save_IFS 6628 6629fi 6630fi 6631ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6632if test -n "$ac_ct_RANLIB"; then 6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6634printf "%s\n" "$ac_ct_RANLIB" >&6; } 6635else 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6637printf "%s\n" "no" >&6; } 6638fi 6639 6640 if test "x$ac_ct_RANLIB" = x; then 6641 RANLIB=":" 6642 else 6643 case $cross_compiling:$ac_tool_warned in 6644yes:) 6645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6646printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6647ac_tool_warned=yes ;; 6648esac 6649 RANLIB=$ac_ct_RANLIB 6650 fi 6651else 6652 RANLIB="$ac_cv_prog_RANLIB" 6653fi 6654 6655test -z "$RANLIB" && RANLIB=: 6656 6657 6658 6659 6660 6661 6662# Determine commands to create old-style static archives. 6663old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6664old_postinstall_cmds='chmod 644 $oldlib' 6665old_postuninstall_cmds= 6666 6667if test -n "$RANLIB"; then 6668 case $host_os in 6669 bitrig* | openbsd*) 6670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6671 ;; 6672 *) 6673 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6674 ;; 6675 esac 6676 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6677fi 6678 6679case $host_os in 6680 darwin*) 6681 lock_old_archive_extraction=yes ;; 6682 *) 6683 lock_old_archive_extraction=no ;; 6684esac 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724# If no C compiler was specified, use CC. 6725LTCC=${LTCC-"$CC"} 6726 6727# If no C compiler flags were specified, use CFLAGS. 6728LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6729 6730# Allow CC to be a program name with arguments. 6731compiler=$CC 6732 6733 6734# Check for command to grab the raw symbol name followed by C symbol from nm. 6735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6736printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6737if test ${lt_cv_sys_global_symbol_pipe+y} 6738then : 6739 printf %s "(cached) " >&6 6740else $as_nop 6741 6742# These are sane defaults that work on at least a few old systems. 6743# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6744 6745# Character class describing NM global symbol codes. 6746symcode='[BCDEGRST]' 6747 6748# Regexp to match symbols that can be accessed directly from C. 6749sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6750 6751# Define system-specific variables. 6752case $host_os in 6753aix*) 6754 symcode='[BCDT]' 6755 ;; 6756cygwin* | mingw* | pw32* | cegcc*) 6757 symcode='[ABCDGISTW]' 6758 ;; 6759hpux*) 6760 if test ia64 = "$host_cpu"; then 6761 symcode='[ABCDEGRST]' 6762 fi 6763 ;; 6764irix* | nonstopux*) 6765 symcode='[BCDEGRST]' 6766 ;; 6767osf*) 6768 symcode='[BCDEGQRST]' 6769 ;; 6770solaris*) 6771 symcode='[BDRT]' 6772 ;; 6773sco3.2v5*) 6774 symcode='[DT]' 6775 ;; 6776sysv4.2uw2*) 6777 symcode='[DT]' 6778 ;; 6779sysv5* | sco5v6* | unixware* | OpenUNIX*) 6780 symcode='[ABDT]' 6781 ;; 6782sysv4) 6783 symcode='[DFNSTU]' 6784 ;; 6785esac 6786 6787# If we're using GNU nm, then use its standard symbol codes. 6788case `$NM -V 2>&1` in 6789*GNU* | *'with BFD'*) 6790 symcode='[ABCDGIRSTW]' ;; 6791esac 6792 6793if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6794 # Gets list of data symbols to import. 6795 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6796 # Adjust the below global symbol transforms to fixup imported variables. 6797 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6798 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6799 lt_c_name_lib_hook="\ 6800 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6801 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6802else 6803 # Disable hooks by default. 6804 lt_cv_sys_global_symbol_to_import= 6805 lt_cdecl_hook= 6806 lt_c_name_hook= 6807 lt_c_name_lib_hook= 6808fi 6809 6810# Transform an extracted symbol line into a proper C declaration. 6811# Some systems (esp. on ia64) link data and code symbols differently, 6812# so use this general approach. 6813lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6814$lt_cdecl_hook\ 6815" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6816" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6817 6818# Transform an extracted symbol line into symbol name and symbol address 6819lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6820$lt_c_name_hook\ 6821" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6822" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6823 6824# Transform an extracted symbol line into symbol name with lib prefix and 6825# symbol address. 6826lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6827$lt_c_name_lib_hook\ 6828" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6829" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6830" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6831 6832# Handle CRLF in mingw tool chain 6833opt_cr= 6834case $build_os in 6835mingw*) 6836 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6837 ;; 6838esac 6839 6840# Try without a prefix underscore, then with it. 6841for ac_symprfx in "" "_"; do 6842 6843 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6844 symxfrm="\\1 $ac_symprfx\\2 \\2" 6845 6846 # Write the raw and C identifiers. 6847 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6848 # Fake it for dumpbin and say T for any non-static function, 6849 # D for any global variable and I for any imported variable. 6850 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6851 # which start with @ or ?. 6852 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6853" {last_section=section; section=\$ 3};"\ 6854" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6855" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6856" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6857" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6858" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6859" \$ 0!~/External *\|/{next};"\ 6860" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6861" {if(hide[section]) next};"\ 6862" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6863" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6864" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6865" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6866" ' prfx=^$ac_symprfx" 6867 else 6868 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6869 fi 6870 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6871 6872 # Check to see that the pipe works correctly. 6873 pipe_works=no 6874 6875 rm -f conftest* 6876 cat > conftest.$ac_ext <<_LT_EOF 6877#ifdef __cplusplus 6878extern "C" { 6879#endif 6880char nm_test_var; 6881void nm_test_func(void); 6882void nm_test_func(void){} 6883#ifdef __cplusplus 6884} 6885#endif 6886int main(){nm_test_var='a';nm_test_func();return(0);} 6887_LT_EOF 6888 6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6890 (eval $ac_compile) 2>&5 6891 ac_status=$? 6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6893 test $ac_status = 0; }; then 6894 # Now try to grab the symbols. 6895 nlist=conftest.nm 6896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6897 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6898 ac_status=$? 6899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6900 test $ac_status = 0; } && test -s "$nlist"; then 6901 # Try sorting and uniquifying the output. 6902 if sort "$nlist" | uniq > "$nlist"T; then 6903 mv -f "$nlist"T "$nlist" 6904 else 6905 rm -f "$nlist"T 6906 fi 6907 6908 # Make sure that we snagged all the symbols we need. 6909 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6910 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6911 cat <<_LT_EOF > conftest.$ac_ext 6912/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6913#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6914/* DATA imports from DLLs on WIN32 can't be const, because runtime 6915 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6916# define LT_DLSYM_CONST 6917#elif defined __osf__ 6918/* This system does not cope well with relocations in const data. */ 6919# define LT_DLSYM_CONST 6920#else 6921# define LT_DLSYM_CONST const 6922#endif 6923 6924#ifdef __cplusplus 6925extern "C" { 6926#endif 6927 6928_LT_EOF 6929 # Now generate the symbol file. 6930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6931 6932 cat <<_LT_EOF >> conftest.$ac_ext 6933 6934/* The mapping between symbol names and symbols. */ 6935LT_DLSYM_CONST struct { 6936 const char *name; 6937 void *address; 6938} 6939lt__PROGRAM__LTX_preloaded_symbols[] = 6940{ 6941 { "@PROGRAM@", (void *) 0 }, 6942_LT_EOF 6943 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6944 cat <<\_LT_EOF >> conftest.$ac_ext 6945 {0, (void *) 0} 6946}; 6947 6948/* This works around a problem in FreeBSD linker */ 6949#ifdef FREEBSD_WORKAROUND 6950static const void *lt_preloaded_setup() { 6951 return lt__PROGRAM__LTX_preloaded_symbols; 6952} 6953#endif 6954 6955#ifdef __cplusplus 6956} 6957#endif 6958_LT_EOF 6959 # Now try linking the two files. 6960 mv conftest.$ac_objext conftstm.$ac_objext 6961 lt_globsym_save_LIBS=$LIBS 6962 lt_globsym_save_CFLAGS=$CFLAGS 6963 LIBS=conftstm.$ac_objext 6964 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6966 (eval $ac_link) 2>&5 6967 ac_status=$? 6968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6969 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6970 pipe_works=yes 6971 fi 6972 LIBS=$lt_globsym_save_LIBS 6973 CFLAGS=$lt_globsym_save_CFLAGS 6974 else 6975 echo "cannot find nm_test_func in $nlist" >&5 6976 fi 6977 else 6978 echo "cannot find nm_test_var in $nlist" >&5 6979 fi 6980 else 6981 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6982 fi 6983 else 6984 echo "$progname: failed program was:" >&5 6985 cat conftest.$ac_ext >&5 6986 fi 6987 rm -rf conftest* conftst* 6988 6989 # Do not use the global_symbol_pipe unless it works. 6990 if test yes = "$pipe_works"; then 6991 break 6992 else 6993 lt_cv_sys_global_symbol_pipe= 6994 fi 6995done 6996 6997fi 6998 6999if test -z "$lt_cv_sys_global_symbol_pipe"; then 7000 lt_cv_sys_global_symbol_to_cdecl= 7001fi 7002if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7004printf "%s\n" "failed" >&6; } 7005else 7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7007printf "%s\n" "ok" >&6; } 7008fi 7009 7010# Response file support. 7011if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7012 nm_file_list_spec='@' 7013elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7014 nm_file_list_spec='@' 7015fi 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7054printf %s "checking for sysroot... " >&6; } 7055 7056# Check whether --with-sysroot was given. 7057if test ${with_sysroot+y} 7058then : 7059 withval=$with_sysroot; 7060else $as_nop 7061 with_sysroot=no 7062fi 7063 7064 7065lt_sysroot= 7066case $with_sysroot in #( 7067 yes) 7068 if test yes = "$GCC"; then 7069 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7070 fi 7071 ;; #( 7072 /*) 7073 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7074 ;; #( 7075 no|'') 7076 ;; #( 7077 *) 7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7079printf "%s\n" "$with_sysroot" >&6; } 7080 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7081 ;; 7082esac 7083 7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7085printf "%s\n" "${lt_sysroot:-no}" >&6; } 7086 7087 7088 7089 7090 7091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7092printf %s "checking for a working dd... " >&6; } 7093if test ${ac_cv_path_lt_DD+y} 7094then : 7095 printf %s "(cached) " >&6 7096else $as_nop 7097 printf 0123456789abcdef0123456789abcdef >conftest.i 7098cat conftest.i conftest.i >conftest2.i 7099: ${lt_DD:=$DD} 7100if test -z "$lt_DD"; then 7101 ac_path_lt_DD_found=false 7102 # Loop through the user's path and test for each of PROGNAME-LIST 7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104for as_dir in $PATH 7105do 7106 IFS=$as_save_IFS 7107 case $as_dir in #((( 7108 '') as_dir=./ ;; 7109 */) ;; 7110 *) as_dir=$as_dir/ ;; 7111 esac 7112 for ac_prog in dd 7113 do 7114 for ac_exec_ext in '' $ac_executable_extensions; do 7115 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7116 as_fn_executable_p "$ac_path_lt_DD" || continue 7117if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7118 cmp -s conftest.i conftest.out \ 7119 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7120fi 7121 $ac_path_lt_DD_found && break 3 7122 done 7123 done 7124 done 7125IFS=$as_save_IFS 7126 if test -z "$ac_cv_path_lt_DD"; then 7127 : 7128 fi 7129else 7130 ac_cv_path_lt_DD=$lt_DD 7131fi 7132 7133rm -f conftest.i conftest2.i conftest.out 7134fi 7135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7136printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7137 7138 7139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7140printf %s "checking how to truncate binary pipes... " >&6; } 7141if test ${lt_cv_truncate_bin+y} 7142then : 7143 printf %s "(cached) " >&6 7144else $as_nop 7145 printf 0123456789abcdef0123456789abcdef >conftest.i 7146cat conftest.i conftest.i >conftest2.i 7147lt_cv_truncate_bin= 7148if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7149 cmp -s conftest.i conftest.out \ 7150 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7151fi 7152rm -f conftest.i conftest2.i conftest.out 7153test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7154fi 7155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7156printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7157 7158 7159 7160 7161 7162 7163 7164# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7165func_cc_basename () 7166{ 7167 for cc_temp in $*""; do 7168 case $cc_temp in 7169 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7170 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7171 \-*) ;; 7172 *) break;; 7173 esac 7174 done 7175 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7176} 7177 7178# Check whether --enable-libtool-lock was given. 7179if test ${enable_libtool_lock+y} 7180then : 7181 enableval=$enable_libtool_lock; 7182fi 7183 7184test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7185 7186# Some flags need to be propagated to the compiler or linker for good 7187# libtool support. 7188case $host in 7189ia64-*-hpux*) 7190 # Find out what ABI is being produced by ac_compile, and set mode 7191 # options accordingly. 7192 echo 'int i;' > conftest.$ac_ext 7193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7194 (eval $ac_compile) 2>&5 7195 ac_status=$? 7196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7197 test $ac_status = 0; }; then 7198 case `$FILECMD conftest.$ac_objext` in 7199 *ELF-32*) 7200 HPUX_IA64_MODE=32 7201 ;; 7202 *ELF-64*) 7203 HPUX_IA64_MODE=64 7204 ;; 7205 esac 7206 fi 7207 rm -rf conftest* 7208 ;; 7209*-*-irix6*) 7210 # Find out what ABI is being produced by ac_compile, and set linker 7211 # options accordingly. 7212 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7214 (eval $ac_compile) 2>&5 7215 ac_status=$? 7216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7217 test $ac_status = 0; }; then 7218 if test yes = "$lt_cv_prog_gnu_ld"; then 7219 case `$FILECMD conftest.$ac_objext` in 7220 *32-bit*) 7221 LD="${LD-ld} -melf32bsmip" 7222 ;; 7223 *N32*) 7224 LD="${LD-ld} -melf32bmipn32" 7225 ;; 7226 *64-bit*) 7227 LD="${LD-ld} -melf64bmip" 7228 ;; 7229 esac 7230 else 7231 case `$FILECMD conftest.$ac_objext` in 7232 *32-bit*) 7233 LD="${LD-ld} -32" 7234 ;; 7235 *N32*) 7236 LD="${LD-ld} -n32" 7237 ;; 7238 *64-bit*) 7239 LD="${LD-ld} -64" 7240 ;; 7241 esac 7242 fi 7243 fi 7244 rm -rf conftest* 7245 ;; 7246 7247mips64*-*linux*) 7248 # Find out what ABI is being produced by ac_compile, and set linker 7249 # options accordingly. 7250 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7252 (eval $ac_compile) 2>&5 7253 ac_status=$? 7254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7255 test $ac_status = 0; }; then 7256 emul=elf 7257 case `$FILECMD conftest.$ac_objext` in 7258 *32-bit*) 7259 emul="${emul}32" 7260 ;; 7261 *64-bit*) 7262 emul="${emul}64" 7263 ;; 7264 esac 7265 case `$FILECMD conftest.$ac_objext` in 7266 *MSB*) 7267 emul="${emul}btsmip" 7268 ;; 7269 *LSB*) 7270 emul="${emul}ltsmip" 7271 ;; 7272 esac 7273 case `$FILECMD conftest.$ac_objext` in 7274 *N32*) 7275 emul="${emul}n32" 7276 ;; 7277 esac 7278 LD="${LD-ld} -m $emul" 7279 fi 7280 rm -rf conftest* 7281 ;; 7282 7283x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7284s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7285 # Find out what ABI is being produced by ac_compile, and set linker 7286 # options accordingly. Note that the listed cases only cover the 7287 # situations where additional linker options are needed (such as when 7288 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7289 # vice versa); the common cases where no linker options are needed do 7290 # not appear in the list. 7291 echo 'int i;' > conftest.$ac_ext 7292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7293 (eval $ac_compile) 2>&5 7294 ac_status=$? 7295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7296 test $ac_status = 0; }; then 7297 case `$FILECMD conftest.o` in 7298 *32-bit*) 7299 case $host in 7300 x86_64-*kfreebsd*-gnu) 7301 LD="${LD-ld} -m elf_i386_fbsd" 7302 ;; 7303 x86_64-*linux*) 7304 case `$FILECMD conftest.o` in 7305 *x86-64*) 7306 LD="${LD-ld} -m elf32_x86_64" 7307 ;; 7308 *) 7309 LD="${LD-ld} -m elf_i386" 7310 ;; 7311 esac 7312 ;; 7313 powerpc64le-*linux*) 7314 LD="${LD-ld} -m elf32lppclinux" 7315 ;; 7316 powerpc64-*linux*) 7317 LD="${LD-ld} -m elf32ppclinux" 7318 ;; 7319 s390x-*linux*) 7320 LD="${LD-ld} -m elf_s390" 7321 ;; 7322 sparc64-*linux*) 7323 LD="${LD-ld} -m elf32_sparc" 7324 ;; 7325 esac 7326 ;; 7327 *64-bit*) 7328 case $host in 7329 x86_64-*kfreebsd*-gnu) 7330 LD="${LD-ld} -m elf_x86_64_fbsd" 7331 ;; 7332 x86_64-*linux*) 7333 LD="${LD-ld} -m elf_x86_64" 7334 ;; 7335 powerpcle-*linux*) 7336 LD="${LD-ld} -m elf64lppc" 7337 ;; 7338 powerpc-*linux*) 7339 LD="${LD-ld} -m elf64ppc" 7340 ;; 7341 s390*-*linux*|s390*-*tpf*) 7342 LD="${LD-ld} -m elf64_s390" 7343 ;; 7344 sparc*-*linux*) 7345 LD="${LD-ld} -m elf64_sparc" 7346 ;; 7347 esac 7348 ;; 7349 esac 7350 fi 7351 rm -rf conftest* 7352 ;; 7353 7354*-*-sco3.2v5*) 7355 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7356 SAVE_CFLAGS=$CFLAGS 7357 CFLAGS="$CFLAGS -belf" 7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7359printf %s "checking whether the C compiler needs -belf... " >&6; } 7360if test ${lt_cv_cc_needs_belf+y} 7361then : 7362 printf %s "(cached) " >&6 7363else $as_nop 7364 ac_ext=c 7365ac_cpp='$CPP $CPPFLAGS' 7366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7368ac_compiler_gnu=$ac_cv_c_compiler_gnu 7369 7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7371/* end confdefs.h. */ 7372 7373int 7374main (void) 7375{ 7376 7377 ; 7378 return 0; 7379} 7380_ACEOF 7381if ac_fn_c_try_link "$LINENO" 7382then : 7383 lt_cv_cc_needs_belf=yes 7384else $as_nop 7385 lt_cv_cc_needs_belf=no 7386fi 7387rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7388 conftest$ac_exeext conftest.$ac_ext 7389 ac_ext=c 7390ac_cpp='$CPP $CPPFLAGS' 7391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7393ac_compiler_gnu=$ac_cv_c_compiler_gnu 7394 7395fi 7396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7397printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7398 if test yes != "$lt_cv_cc_needs_belf"; then 7399 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7400 CFLAGS=$SAVE_CFLAGS 7401 fi 7402 ;; 7403*-*solaris*) 7404 # Find out what ABI is being produced by ac_compile, and set linker 7405 # options accordingly. 7406 echo 'int i;' > conftest.$ac_ext 7407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7408 (eval $ac_compile) 2>&5 7409 ac_status=$? 7410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7411 test $ac_status = 0; }; then 7412 case `$FILECMD conftest.o` in 7413 *64-bit*) 7414 case $lt_cv_prog_gnu_ld in 7415 yes*) 7416 case $host in 7417 i?86-*-solaris*|x86_64-*-solaris*) 7418 LD="${LD-ld} -m elf_x86_64" 7419 ;; 7420 sparc*-*-solaris*) 7421 LD="${LD-ld} -m elf64_sparc" 7422 ;; 7423 esac 7424 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7425 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7426 LD=${LD-ld}_sol2 7427 fi 7428 ;; 7429 *) 7430 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7431 LD="${LD-ld} -64" 7432 fi 7433 ;; 7434 esac 7435 ;; 7436 esac 7437 fi 7438 rm -rf conftest* 7439 ;; 7440esac 7441 7442need_locks=$enable_libtool_lock 7443 7444if test -n "$ac_tool_prefix"; then 7445 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7446set dummy ${ac_tool_prefix}mt; ac_word=$2 7447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7448printf %s "checking for $ac_word... " >&6; } 7449if test ${ac_cv_prog_MANIFEST_TOOL+y} 7450then : 7451 printf %s "(cached) " >&6 7452else $as_nop 7453 if test -n "$MANIFEST_TOOL"; then 7454 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7455else 7456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7457for as_dir in $PATH 7458do 7459 IFS=$as_save_IFS 7460 case $as_dir in #((( 7461 '') as_dir=./ ;; 7462 */) ;; 7463 *) as_dir=$as_dir/ ;; 7464 esac 7465 for ac_exec_ext in '' $ac_executable_extensions; do 7466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7467 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7469 break 2 7470 fi 7471done 7472 done 7473IFS=$as_save_IFS 7474 7475fi 7476fi 7477MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7478if test -n "$MANIFEST_TOOL"; then 7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7480printf "%s\n" "$MANIFEST_TOOL" >&6; } 7481else 7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7483printf "%s\n" "no" >&6; } 7484fi 7485 7486 7487fi 7488if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7489 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7490 # Extract the first word of "mt", so it can be a program name with args. 7491set dummy mt; ac_word=$2 7492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7493printf %s "checking for $ac_word... " >&6; } 7494if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7495then : 7496 printf %s "(cached) " >&6 7497else $as_nop 7498 if test -n "$ac_ct_MANIFEST_TOOL"; then 7499 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7500else 7501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7502for as_dir in $PATH 7503do 7504 IFS=$as_save_IFS 7505 case $as_dir in #((( 7506 '') as_dir=./ ;; 7507 */) ;; 7508 *) as_dir=$as_dir/ ;; 7509 esac 7510 for ac_exec_ext in '' $ac_executable_extensions; do 7511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7512 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7514 break 2 7515 fi 7516done 7517 done 7518IFS=$as_save_IFS 7519 7520fi 7521fi 7522ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7523if test -n "$ac_ct_MANIFEST_TOOL"; then 7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7525printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7526else 7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7528printf "%s\n" "no" >&6; } 7529fi 7530 7531 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7532 MANIFEST_TOOL=":" 7533 else 7534 case $cross_compiling:$ac_tool_warned in 7535yes:) 7536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7537printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7538ac_tool_warned=yes ;; 7539esac 7540 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7541 fi 7542else 7543 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7544fi 7545 7546test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7548printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7549if test ${lt_cv_path_mainfest_tool+y} 7550then : 7551 printf %s "(cached) " >&6 7552else $as_nop 7553 lt_cv_path_mainfest_tool=no 7554 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7555 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7556 cat conftest.err >&5 7557 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7558 lt_cv_path_mainfest_tool=yes 7559 fi 7560 rm -f conftest* 7561fi 7562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7563printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7564if test yes != "$lt_cv_path_mainfest_tool"; then 7565 MANIFEST_TOOL=: 7566fi 7567 7568 7569 7570 7571 7572 7573 case $host_os in 7574 rhapsody* | darwin*) 7575 if test -n "$ac_tool_prefix"; then 7576 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7577set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7579printf %s "checking for $ac_word... " >&6; } 7580if test ${ac_cv_prog_DSYMUTIL+y} 7581then : 7582 printf %s "(cached) " >&6 7583else $as_nop 7584 if test -n "$DSYMUTIL"; then 7585 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7586else 7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588for as_dir in $PATH 7589do 7590 IFS=$as_save_IFS 7591 case $as_dir in #((( 7592 '') as_dir=./ ;; 7593 */) ;; 7594 *) as_dir=$as_dir/ ;; 7595 esac 7596 for ac_exec_ext in '' $ac_executable_extensions; do 7597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7598 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7600 break 2 7601 fi 7602done 7603 done 7604IFS=$as_save_IFS 7605 7606fi 7607fi 7608DSYMUTIL=$ac_cv_prog_DSYMUTIL 7609if test -n "$DSYMUTIL"; then 7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7611printf "%s\n" "$DSYMUTIL" >&6; } 7612else 7613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7614printf "%s\n" "no" >&6; } 7615fi 7616 7617 7618fi 7619if test -z "$ac_cv_prog_DSYMUTIL"; then 7620 ac_ct_DSYMUTIL=$DSYMUTIL 7621 # Extract the first word of "dsymutil", so it can be a program name with args. 7622set dummy dsymutil; ac_word=$2 7623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7624printf %s "checking for $ac_word... " >&6; } 7625if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7626then : 7627 printf %s "(cached) " >&6 7628else $as_nop 7629 if test -n "$ac_ct_DSYMUTIL"; then 7630 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7631else 7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7633for as_dir in $PATH 7634do 7635 IFS=$as_save_IFS 7636 case $as_dir in #((( 7637 '') as_dir=./ ;; 7638 */) ;; 7639 *) as_dir=$as_dir/ ;; 7640 esac 7641 for ac_exec_ext in '' $ac_executable_extensions; do 7642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7643 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7645 break 2 7646 fi 7647done 7648 done 7649IFS=$as_save_IFS 7650 7651fi 7652fi 7653ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7654if test -n "$ac_ct_DSYMUTIL"; then 7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7656printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7657else 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7659printf "%s\n" "no" >&6; } 7660fi 7661 7662 if test "x$ac_ct_DSYMUTIL" = x; then 7663 DSYMUTIL=":" 7664 else 7665 case $cross_compiling:$ac_tool_warned in 7666yes:) 7667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7668printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7669ac_tool_warned=yes ;; 7670esac 7671 DSYMUTIL=$ac_ct_DSYMUTIL 7672 fi 7673else 7674 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7675fi 7676 7677 if test -n "$ac_tool_prefix"; then 7678 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7679set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7681printf %s "checking for $ac_word... " >&6; } 7682if test ${ac_cv_prog_NMEDIT+y} 7683then : 7684 printf %s "(cached) " >&6 7685else $as_nop 7686 if test -n "$NMEDIT"; then 7687 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7688else 7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7690for as_dir in $PATH 7691do 7692 IFS=$as_save_IFS 7693 case $as_dir in #((( 7694 '') as_dir=./ ;; 7695 */) ;; 7696 *) as_dir=$as_dir/ ;; 7697 esac 7698 for ac_exec_ext in '' $ac_executable_extensions; do 7699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7700 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7702 break 2 7703 fi 7704done 7705 done 7706IFS=$as_save_IFS 7707 7708fi 7709fi 7710NMEDIT=$ac_cv_prog_NMEDIT 7711if test -n "$NMEDIT"; then 7712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7713printf "%s\n" "$NMEDIT" >&6; } 7714else 7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7716printf "%s\n" "no" >&6; } 7717fi 7718 7719 7720fi 7721if test -z "$ac_cv_prog_NMEDIT"; then 7722 ac_ct_NMEDIT=$NMEDIT 7723 # Extract the first word of "nmedit", so it can be a program name with args. 7724set dummy nmedit; ac_word=$2 7725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7726printf %s "checking for $ac_word... " >&6; } 7727if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7728then : 7729 printf %s "(cached) " >&6 7730else $as_nop 7731 if test -n "$ac_ct_NMEDIT"; then 7732 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7733else 7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7735for as_dir in $PATH 7736do 7737 IFS=$as_save_IFS 7738 case $as_dir in #((( 7739 '') as_dir=./ ;; 7740 */) ;; 7741 *) as_dir=$as_dir/ ;; 7742 esac 7743 for ac_exec_ext in '' $ac_executable_extensions; do 7744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7745 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7747 break 2 7748 fi 7749done 7750 done 7751IFS=$as_save_IFS 7752 7753fi 7754fi 7755ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7756if test -n "$ac_ct_NMEDIT"; then 7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7758printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7759else 7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7761printf "%s\n" "no" >&6; } 7762fi 7763 7764 if test "x$ac_ct_NMEDIT" = x; then 7765 NMEDIT=":" 7766 else 7767 case $cross_compiling:$ac_tool_warned in 7768yes:) 7769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7770printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7771ac_tool_warned=yes ;; 7772esac 7773 NMEDIT=$ac_ct_NMEDIT 7774 fi 7775else 7776 NMEDIT="$ac_cv_prog_NMEDIT" 7777fi 7778 7779 if test -n "$ac_tool_prefix"; then 7780 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7781set dummy ${ac_tool_prefix}lipo; ac_word=$2 7782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7783printf %s "checking for $ac_word... " >&6; } 7784if test ${ac_cv_prog_LIPO+y} 7785then : 7786 printf %s "(cached) " >&6 7787else $as_nop 7788 if test -n "$LIPO"; then 7789 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7790else 7791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7792for as_dir in $PATH 7793do 7794 IFS=$as_save_IFS 7795 case $as_dir in #((( 7796 '') as_dir=./ ;; 7797 */) ;; 7798 *) as_dir=$as_dir/ ;; 7799 esac 7800 for ac_exec_ext in '' $ac_executable_extensions; do 7801 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7802 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7804 break 2 7805 fi 7806done 7807 done 7808IFS=$as_save_IFS 7809 7810fi 7811fi 7812LIPO=$ac_cv_prog_LIPO 7813if test -n "$LIPO"; then 7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7815printf "%s\n" "$LIPO" >&6; } 7816else 7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7818printf "%s\n" "no" >&6; } 7819fi 7820 7821 7822fi 7823if test -z "$ac_cv_prog_LIPO"; then 7824 ac_ct_LIPO=$LIPO 7825 # Extract the first word of "lipo", so it can be a program name with args. 7826set dummy lipo; ac_word=$2 7827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7828printf %s "checking for $ac_word... " >&6; } 7829if test ${ac_cv_prog_ac_ct_LIPO+y} 7830then : 7831 printf %s "(cached) " >&6 7832else $as_nop 7833 if test -n "$ac_ct_LIPO"; then 7834 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7835else 7836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7837for as_dir in $PATH 7838do 7839 IFS=$as_save_IFS 7840 case $as_dir in #((( 7841 '') as_dir=./ ;; 7842 */) ;; 7843 *) as_dir=$as_dir/ ;; 7844 esac 7845 for ac_exec_ext in '' $ac_executable_extensions; do 7846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7847 ac_cv_prog_ac_ct_LIPO="lipo" 7848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7849 break 2 7850 fi 7851done 7852 done 7853IFS=$as_save_IFS 7854 7855fi 7856fi 7857ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7858if test -n "$ac_ct_LIPO"; then 7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7860printf "%s\n" "$ac_ct_LIPO" >&6; } 7861else 7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7863printf "%s\n" "no" >&6; } 7864fi 7865 7866 if test "x$ac_ct_LIPO" = x; then 7867 LIPO=":" 7868 else 7869 case $cross_compiling:$ac_tool_warned in 7870yes:) 7871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7872printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7873ac_tool_warned=yes ;; 7874esac 7875 LIPO=$ac_ct_LIPO 7876 fi 7877else 7878 LIPO="$ac_cv_prog_LIPO" 7879fi 7880 7881 if test -n "$ac_tool_prefix"; then 7882 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7883set dummy ${ac_tool_prefix}otool; ac_word=$2 7884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7885printf %s "checking for $ac_word... " >&6; } 7886if test ${ac_cv_prog_OTOOL+y} 7887then : 7888 printf %s "(cached) " >&6 7889else $as_nop 7890 if test -n "$OTOOL"; then 7891 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7892else 7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7894for as_dir in $PATH 7895do 7896 IFS=$as_save_IFS 7897 case $as_dir in #((( 7898 '') as_dir=./ ;; 7899 */) ;; 7900 *) as_dir=$as_dir/ ;; 7901 esac 7902 for ac_exec_ext in '' $ac_executable_extensions; do 7903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7904 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7906 break 2 7907 fi 7908done 7909 done 7910IFS=$as_save_IFS 7911 7912fi 7913fi 7914OTOOL=$ac_cv_prog_OTOOL 7915if test -n "$OTOOL"; then 7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7917printf "%s\n" "$OTOOL" >&6; } 7918else 7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7920printf "%s\n" "no" >&6; } 7921fi 7922 7923 7924fi 7925if test -z "$ac_cv_prog_OTOOL"; then 7926 ac_ct_OTOOL=$OTOOL 7927 # Extract the first word of "otool", so it can be a program name with args. 7928set dummy otool; ac_word=$2 7929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7930printf %s "checking for $ac_word... " >&6; } 7931if test ${ac_cv_prog_ac_ct_OTOOL+y} 7932then : 7933 printf %s "(cached) " >&6 7934else $as_nop 7935 if test -n "$ac_ct_OTOOL"; then 7936 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7937else 7938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7939for as_dir in $PATH 7940do 7941 IFS=$as_save_IFS 7942 case $as_dir in #((( 7943 '') as_dir=./ ;; 7944 */) ;; 7945 *) as_dir=$as_dir/ ;; 7946 esac 7947 for ac_exec_ext in '' $ac_executable_extensions; do 7948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7949 ac_cv_prog_ac_ct_OTOOL="otool" 7950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7951 break 2 7952 fi 7953done 7954 done 7955IFS=$as_save_IFS 7956 7957fi 7958fi 7959ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7960if test -n "$ac_ct_OTOOL"; then 7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7962printf "%s\n" "$ac_ct_OTOOL" >&6; } 7963else 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7965printf "%s\n" "no" >&6; } 7966fi 7967 7968 if test "x$ac_ct_OTOOL" = x; then 7969 OTOOL=":" 7970 else 7971 case $cross_compiling:$ac_tool_warned in 7972yes:) 7973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7974printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7975ac_tool_warned=yes ;; 7976esac 7977 OTOOL=$ac_ct_OTOOL 7978 fi 7979else 7980 OTOOL="$ac_cv_prog_OTOOL" 7981fi 7982 7983 if test -n "$ac_tool_prefix"; then 7984 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7985set dummy ${ac_tool_prefix}otool64; ac_word=$2 7986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7987printf %s "checking for $ac_word... " >&6; } 7988if test ${ac_cv_prog_OTOOL64+y} 7989then : 7990 printf %s "(cached) " >&6 7991else $as_nop 7992 if test -n "$OTOOL64"; then 7993 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7994else 7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7996for as_dir in $PATH 7997do 7998 IFS=$as_save_IFS 7999 case $as_dir in #((( 8000 '') as_dir=./ ;; 8001 */) ;; 8002 *) as_dir=$as_dir/ ;; 8003 esac 8004 for ac_exec_ext in '' $ac_executable_extensions; do 8005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8006 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8008 break 2 8009 fi 8010done 8011 done 8012IFS=$as_save_IFS 8013 8014fi 8015fi 8016OTOOL64=$ac_cv_prog_OTOOL64 8017if test -n "$OTOOL64"; then 8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8019printf "%s\n" "$OTOOL64" >&6; } 8020else 8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8022printf "%s\n" "no" >&6; } 8023fi 8024 8025 8026fi 8027if test -z "$ac_cv_prog_OTOOL64"; then 8028 ac_ct_OTOOL64=$OTOOL64 8029 # Extract the first word of "otool64", so it can be a program name with args. 8030set dummy otool64; ac_word=$2 8031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8032printf %s "checking for $ac_word... " >&6; } 8033if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8034then : 8035 printf %s "(cached) " >&6 8036else $as_nop 8037 if test -n "$ac_ct_OTOOL64"; then 8038 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8039else 8040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8041for as_dir in $PATH 8042do 8043 IFS=$as_save_IFS 8044 case $as_dir in #((( 8045 '') as_dir=./ ;; 8046 */) ;; 8047 *) as_dir=$as_dir/ ;; 8048 esac 8049 for ac_exec_ext in '' $ac_executable_extensions; do 8050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8051 ac_cv_prog_ac_ct_OTOOL64="otool64" 8052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8053 break 2 8054 fi 8055done 8056 done 8057IFS=$as_save_IFS 8058 8059fi 8060fi 8061ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8062if test -n "$ac_ct_OTOOL64"; then 8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8064printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8065else 8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8067printf "%s\n" "no" >&6; } 8068fi 8069 8070 if test "x$ac_ct_OTOOL64" = x; then 8071 OTOOL64=":" 8072 else 8073 case $cross_compiling:$ac_tool_warned in 8074yes:) 8075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8076printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8077ac_tool_warned=yes ;; 8078esac 8079 OTOOL64=$ac_ct_OTOOL64 8080 fi 8081else 8082 OTOOL64="$ac_cv_prog_OTOOL64" 8083fi 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8112printf %s "checking for -single_module linker flag... " >&6; } 8113if test ${lt_cv_apple_cc_single_mod+y} 8114then : 8115 printf %s "(cached) " >&6 8116else $as_nop 8117 lt_cv_apple_cc_single_mod=no 8118 if test -z "$LT_MULTI_MODULE"; then 8119 # By default we will add the -single_module flag. You can override 8120 # by either setting the environment variable LT_MULTI_MODULE 8121 # non-empty at configure time, or by adding -multi_module to the 8122 # link flags. 8123 rm -rf libconftest.dylib* 8124 echo "int foo(void){return 1;}" > conftest.c 8125 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8126-dynamiclib -Wl,-single_module conftest.c" >&5 8127 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8128 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8129 _lt_result=$? 8130 # If there is a non-empty error log, and "single_module" 8131 # appears in it, assume the flag caused a linker warning 8132 if test -s conftest.err && $GREP single_module conftest.err; then 8133 cat conftest.err >&5 8134 # Otherwise, if the output was created with a 0 exit code from 8135 # the compiler, it worked. 8136 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8137 lt_cv_apple_cc_single_mod=yes 8138 else 8139 cat conftest.err >&5 8140 fi 8141 rm -rf libconftest.dylib* 8142 rm -f conftest.* 8143 fi 8144fi 8145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8146printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8147 8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8149printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8150if test ${lt_cv_ld_exported_symbols_list+y} 8151then : 8152 printf %s "(cached) " >&6 8153else $as_nop 8154 lt_cv_ld_exported_symbols_list=no 8155 save_LDFLAGS=$LDFLAGS 8156 echo "_main" > conftest.sym 8157 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160 8161int 8162main (void) 8163{ 8164 8165 ; 8166 return 0; 8167} 8168_ACEOF 8169if ac_fn_c_try_link "$LINENO" 8170then : 8171 lt_cv_ld_exported_symbols_list=yes 8172else $as_nop 8173 lt_cv_ld_exported_symbols_list=no 8174fi 8175rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8176 conftest$ac_exeext conftest.$ac_ext 8177 LDFLAGS=$save_LDFLAGS 8178 8179fi 8180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8181printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8182 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8184printf %s "checking for -force_load linker flag... " >&6; } 8185if test ${lt_cv_ld_force_load+y} 8186then : 8187 printf %s "(cached) " >&6 8188else $as_nop 8189 lt_cv_ld_force_load=no 8190 cat > conftest.c << _LT_EOF 8191int forced_loaded() { return 2;} 8192_LT_EOF 8193 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8194 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8195 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8196 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8197 echo "$RANLIB libconftest.a" >&5 8198 $RANLIB libconftest.a 2>&5 8199 cat > conftest.c << _LT_EOF 8200int main() { return 0;} 8201_LT_EOF 8202 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8203 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8204 _lt_result=$? 8205 if test -s conftest.err && $GREP force_load conftest.err; then 8206 cat conftest.err >&5 8207 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8208 lt_cv_ld_force_load=yes 8209 else 8210 cat conftest.err >&5 8211 fi 8212 rm -f conftest.err libconftest.a conftest conftest.c 8213 rm -rf conftest.dSYM 8214 8215fi 8216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8217printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8218 case $host_os in 8219 rhapsody* | darwin1.[012]) 8220 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8221 darwin1.*) 8222 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8223 darwin*) 8224 case $MACOSX_DEPLOYMENT_TARGET,$host in 8225 10.[012],*|,*powerpc*-darwin[5-8]*) 8226 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8227 *) 8228 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8229 esac 8230 ;; 8231 esac 8232 if test yes = "$lt_cv_apple_cc_single_mod"; then 8233 _lt_dar_single_mod='$single_module' 8234 fi 8235 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8236 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8237 else 8238 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8239 fi 8240 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8241 _lt_dsymutil='~$DSYMUTIL $lib || :' 8242 else 8243 _lt_dsymutil= 8244 fi 8245 ;; 8246 esac 8247 8248# func_munge_path_list VARIABLE PATH 8249# ----------------------------------- 8250# VARIABLE is name of variable containing _space_ separated list of 8251# directories to be munged by the contents of PATH, which is string 8252# having a format: 8253# "DIR[:DIR]:" 8254# string "DIR[ DIR]" will be prepended to VARIABLE 8255# ":DIR[:DIR]" 8256# string "DIR[ DIR]" will be appended to VARIABLE 8257# "DIRP[:DIRP]::[DIRA:]DIRA" 8258# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8259# "DIRA[ DIRA]" will be appended to VARIABLE 8260# "DIR[:DIR]" 8261# VARIABLE will be replaced by "DIR[ DIR]" 8262func_munge_path_list () 8263{ 8264 case x$2 in 8265 x) 8266 ;; 8267 *:) 8268 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8269 ;; 8270 x:*) 8271 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8272 ;; 8273 *::*) 8274 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8275 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8276 ;; 8277 *) 8278 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8279 ;; 8280 esac 8281} 8282 8283ac_header= ac_cache= 8284for ac_item in $ac_header_c_list 8285do 8286 if test $ac_cache; then 8287 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8288 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8289 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8290 fi 8291 ac_header= ac_cache= 8292 elif test $ac_header; then 8293 ac_cache=$ac_item 8294 else 8295 ac_header=$ac_item 8296 fi 8297done 8298 8299 8300 8301 8302 8303 8304 8305 8306if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8307then : 8308 8309printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8310 8311fi 8312ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8313" 8314if test "x$ac_cv_header_dlfcn_h" = xyes 8315then : 8316 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8317 8318fi 8319 8320 8321 8322 8323 8324# Set options 8325 8326 8327 8328 enable_dlopen=no 8329 8330 8331 enable_win32_dll=no 8332 8333 8334 # Check whether --enable-shared was given. 8335if test ${enable_shared+y} 8336then : 8337 enableval=$enable_shared; p=${PACKAGE-default} 8338 case $enableval in 8339 yes) enable_shared=yes ;; 8340 no) enable_shared=no ;; 8341 *) 8342 enable_shared=no 8343 # Look at the argument we got. We use all the common list separators. 8344 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8345 for pkg in $enableval; do 8346 IFS=$lt_save_ifs 8347 if test "X$pkg" = "X$p"; then 8348 enable_shared=yes 8349 fi 8350 done 8351 IFS=$lt_save_ifs 8352 ;; 8353 esac 8354else $as_nop 8355 enable_shared=yes 8356fi 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 # Check whether --enable-static was given. 8367if test ${enable_static+y} 8368then : 8369 enableval=$enable_static; p=${PACKAGE-default} 8370 case $enableval in 8371 yes) enable_static=yes ;; 8372 no) enable_static=no ;; 8373 *) 8374 enable_static=no 8375 # Look at the argument we got. We use all the common list separators. 8376 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8377 for pkg in $enableval; do 8378 IFS=$lt_save_ifs 8379 if test "X$pkg" = "X$p"; then 8380 enable_static=yes 8381 fi 8382 done 8383 IFS=$lt_save_ifs 8384 ;; 8385 esac 8386else $as_nop 8387 enable_static=yes 8388fi 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399# Check whether --with-pic was given. 8400if test ${with_pic+y} 8401then : 8402 withval=$with_pic; lt_p=${PACKAGE-default} 8403 case $withval in 8404 yes|no) pic_mode=$withval ;; 8405 *) 8406 pic_mode=default 8407 # Look at the argument we got. We use all the common list separators. 8408 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8409 for lt_pkg in $withval; do 8410 IFS=$lt_save_ifs 8411 if test "X$lt_pkg" = "X$lt_p"; then 8412 pic_mode=yes 8413 fi 8414 done 8415 IFS=$lt_save_ifs 8416 ;; 8417 esac 8418else $as_nop 8419 pic_mode=default 8420fi 8421 8422 8423 8424 8425 8426 8427 8428 8429 # Check whether --enable-fast-install was given. 8430if test ${enable_fast_install+y} 8431then : 8432 enableval=$enable_fast_install; p=${PACKAGE-default} 8433 case $enableval in 8434 yes) enable_fast_install=yes ;; 8435 no) enable_fast_install=no ;; 8436 *) 8437 enable_fast_install=no 8438 # Look at the argument we got. We use all the common list separators. 8439 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8440 for pkg in $enableval; do 8441 IFS=$lt_save_ifs 8442 if test "X$pkg" = "X$p"; then 8443 enable_fast_install=yes 8444 fi 8445 done 8446 IFS=$lt_save_ifs 8447 ;; 8448 esac 8449else $as_nop 8450 enable_fast_install=yes 8451fi 8452 8453 8454 8455 8456 8457 8458 8459 8460 shared_archive_member_spec= 8461case $host,$enable_shared in 8462power*-*-aix[5-9]*,yes) 8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8464printf %s "checking which variant of shared library versioning to provide... " >&6; } 8465 8466# Check whether --with-aix-soname was given. 8467if test ${with_aix_soname+y} 8468then : 8469 withval=$with_aix_soname; case $withval in 8470 aix|svr4|both) 8471 ;; 8472 *) 8473 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8474 ;; 8475 esac 8476 lt_cv_with_aix_soname=$with_aix_soname 8477else $as_nop 8478 if test ${lt_cv_with_aix_soname+y} 8479then : 8480 printf %s "(cached) " >&6 8481else $as_nop 8482 lt_cv_with_aix_soname=aix 8483fi 8484 8485 with_aix_soname=$lt_cv_with_aix_soname 8486fi 8487 8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8489printf "%s\n" "$with_aix_soname" >&6; } 8490 if test aix != "$with_aix_soname"; then 8491 # For the AIX way of multilib, we name the shared archive member 8492 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8493 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8494 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8495 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8496 if test 64 = "${OBJECT_MODE-32}"; then 8497 shared_archive_member_spec=shr_64 8498 else 8499 shared_archive_member_spec=shr 8500 fi 8501 fi 8502 ;; 8503*) 8504 with_aix_soname=aix 8505 ;; 8506esac 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517# This can be used to rebuild libtool when needed 8518LIBTOOL_DEPS=$ltmain 8519 8520# Always use our own libtool. 8521LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552test -z "$LN_S" && LN_S="ln -s" 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567if test -n "${ZSH_VERSION+set}"; then 8568 setopt NO_GLOB_SUBST 8569fi 8570 8571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8572printf %s "checking for objdir... " >&6; } 8573if test ${lt_cv_objdir+y} 8574then : 8575 printf %s "(cached) " >&6 8576else $as_nop 8577 rm -f .libs 2>/dev/null 8578mkdir .libs 2>/dev/null 8579if test -d .libs; then 8580 lt_cv_objdir=.libs 8581else 8582 # MS-DOS does not allow filenames that begin with a dot. 8583 lt_cv_objdir=_libs 8584fi 8585rmdir .libs 2>/dev/null 8586fi 8587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8588printf "%s\n" "$lt_cv_objdir" >&6; } 8589objdir=$lt_cv_objdir 8590 8591 8592 8593 8594 8595printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8596 8597 8598 8599 8600case $host_os in 8601aix3*) 8602 # AIX sometimes has problems with the GCC collect2 program. For some 8603 # reason, if we set the COLLECT_NAMES environment variable, the problems 8604 # vanish in a puff of smoke. 8605 if test set != "${COLLECT_NAMES+set}"; then 8606 COLLECT_NAMES= 8607 export COLLECT_NAMES 8608 fi 8609 ;; 8610esac 8611 8612# Global variables: 8613ofile=libtool 8614can_build_shared=yes 8615 8616# All known linkers require a '.a' archive for static linking (except MSVC and 8617# ICC, which need '.lib'). 8618libext=a 8619 8620with_gnu_ld=$lt_cv_prog_gnu_ld 8621 8622old_CC=$CC 8623old_CFLAGS=$CFLAGS 8624 8625# Set sane defaults for various variables 8626test -z "$CC" && CC=cc 8627test -z "$LTCC" && LTCC=$CC 8628test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8629test -z "$LD" && LD=ld 8630test -z "$ac_objext" && ac_objext=o 8631 8632func_cc_basename $compiler 8633cc_basename=$func_cc_basename_result 8634 8635 8636# Only perform the check for file, if the check method requires it 8637test -z "$MAGIC_CMD" && MAGIC_CMD=file 8638case $deplibs_check_method in 8639file_magic*) 8640 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8642printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8643if test ${lt_cv_path_MAGIC_CMD+y} 8644then : 8645 printf %s "(cached) " >&6 8646else $as_nop 8647 case $MAGIC_CMD in 8648[\\/*] | ?:[\\/]*) 8649 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8650 ;; 8651*) 8652 lt_save_MAGIC_CMD=$MAGIC_CMD 8653 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8655 for ac_dir in $ac_dummy; do 8656 IFS=$lt_save_ifs 8657 test -z "$ac_dir" && ac_dir=. 8658 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8659 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8660 if test -n "$file_magic_test_file"; then 8661 case $deplibs_check_method in 8662 "file_magic "*) 8663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8664 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8666 $EGREP "$file_magic_regex" > /dev/null; then 8667 : 8668 else 8669 cat <<_LT_EOF 1>&2 8670 8671*** Warning: the command libtool uses to detect shared libraries, 8672*** $file_magic_cmd, produces output that libtool cannot recognize. 8673*** The result is that libtool may fail to recognize shared libraries 8674*** as such. This will affect the creation of libtool libraries that 8675*** depend on shared libraries, but programs linked with such libtool 8676*** libraries will work regardless of this problem. Nevertheless, you 8677*** may want to report the problem to your system manager and/or to 8678*** bug-libtool@gnu.org 8679 8680_LT_EOF 8681 fi ;; 8682 esac 8683 fi 8684 break 8685 fi 8686 done 8687 IFS=$lt_save_ifs 8688 MAGIC_CMD=$lt_save_MAGIC_CMD 8689 ;; 8690esac 8691fi 8692 8693MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8694if test -n "$MAGIC_CMD"; then 8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8696printf "%s\n" "$MAGIC_CMD" >&6; } 8697else 8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8699printf "%s\n" "no" >&6; } 8700fi 8701 8702 8703 8704 8705 8706if test -z "$lt_cv_path_MAGIC_CMD"; then 8707 if test -n "$ac_tool_prefix"; then 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8709printf %s "checking for file... " >&6; } 8710if test ${lt_cv_path_MAGIC_CMD+y} 8711then : 8712 printf %s "(cached) " >&6 8713else $as_nop 8714 case $MAGIC_CMD in 8715[\\/*] | ?:[\\/]*) 8716 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8717 ;; 8718*) 8719 lt_save_MAGIC_CMD=$MAGIC_CMD 8720 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8721 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8722 for ac_dir in $ac_dummy; do 8723 IFS=$lt_save_ifs 8724 test -z "$ac_dir" && ac_dir=. 8725 if test -f "$ac_dir/file"; then 8726 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8727 if test -n "$file_magic_test_file"; then 8728 case $deplibs_check_method in 8729 "file_magic "*) 8730 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8731 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8733 $EGREP "$file_magic_regex" > /dev/null; then 8734 : 8735 else 8736 cat <<_LT_EOF 1>&2 8737 8738*** Warning: the command libtool uses to detect shared libraries, 8739*** $file_magic_cmd, produces output that libtool cannot recognize. 8740*** The result is that libtool may fail to recognize shared libraries 8741*** as such. This will affect the creation of libtool libraries that 8742*** depend on shared libraries, but programs linked with such libtool 8743*** libraries will work regardless of this problem. Nevertheless, you 8744*** may want to report the problem to your system manager and/or to 8745*** bug-libtool@gnu.org 8746 8747_LT_EOF 8748 fi ;; 8749 esac 8750 fi 8751 break 8752 fi 8753 done 8754 IFS=$lt_save_ifs 8755 MAGIC_CMD=$lt_save_MAGIC_CMD 8756 ;; 8757esac 8758fi 8759 8760MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8761if test -n "$MAGIC_CMD"; then 8762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8763printf "%s\n" "$MAGIC_CMD" >&6; } 8764else 8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8766printf "%s\n" "no" >&6; } 8767fi 8768 8769 8770 else 8771 MAGIC_CMD=: 8772 fi 8773fi 8774 8775 fi 8776 ;; 8777esac 8778 8779# Use C for the default configuration in the libtool script 8780 8781lt_save_CC=$CC 8782ac_ext=c 8783ac_cpp='$CPP $CPPFLAGS' 8784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8786ac_compiler_gnu=$ac_cv_c_compiler_gnu 8787 8788 8789# Source file extension for C test sources. 8790ac_ext=c 8791 8792# Object file extension for compiled C test sources. 8793objext=o 8794objext=$objext 8795 8796# Code to be used in simple compile tests 8797lt_simple_compile_test_code="int some_variable = 0;" 8798 8799# Code to be used in simple link tests 8800lt_simple_link_test_code='int main(){return(0);}' 8801 8802 8803 8804 8805 8806 8807 8808# If no C compiler was specified, use CC. 8809LTCC=${LTCC-"$CC"} 8810 8811# If no C compiler flags were specified, use CFLAGS. 8812LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8813 8814# Allow CC to be a program name with arguments. 8815compiler=$CC 8816 8817# Save the default compiler, since it gets overwritten when the other 8818# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8819compiler_DEFAULT=$CC 8820 8821# save warnings/boilerplate of simple test code 8822ac_outfile=conftest.$ac_objext 8823echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8824eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8825_lt_compiler_boilerplate=`cat conftest.err` 8826$RM conftest* 8827 8828ac_outfile=conftest.$ac_objext 8829echo "$lt_simple_link_test_code" >conftest.$ac_ext 8830eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8831_lt_linker_boilerplate=`cat conftest.err` 8832$RM -r conftest* 8833 8834 8835## CAVEAT EMPTOR: 8836## There is no encapsulation within the following macros, do not change 8837## the running order or otherwise move them around unless you know exactly 8838## what you are doing... 8839if test -n "$compiler"; then 8840 8841lt_prog_compiler_no_builtin_flag= 8842 8843if test yes = "$GCC"; then 8844 case $cc_basename in 8845 nvcc*) 8846 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8847 *) 8848 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8849 esac 8850 8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8852printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8853if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8854then : 8855 printf %s "(cached) " >&6 8856else $as_nop 8857 lt_cv_prog_compiler_rtti_exceptions=no 8858 ac_outfile=conftest.$ac_objext 8859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8860 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8861 # Insert the option either (1) after the last *FLAGS variable, or 8862 # (2) before a word containing "conftest.", or (3) at the end. 8863 # Note that $ac_compile itself does not contain backslashes and begins 8864 # with a dollar sign (not a hyphen), so the echo should work correctly. 8865 # The option is referenced via a variable to avoid confusing sed. 8866 lt_compile=`echo "$ac_compile" | $SED \ 8867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8869 -e 's:$: $lt_compiler_flag:'` 8870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8871 (eval "$lt_compile" 2>conftest.err) 8872 ac_status=$? 8873 cat conftest.err >&5 8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 if (exit $ac_status) && test -s "$ac_outfile"; then 8876 # The compiler can only warn and ignore the option if not recognized 8877 # So say no if there are warnings other than the usual output. 8878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8881 lt_cv_prog_compiler_rtti_exceptions=yes 8882 fi 8883 fi 8884 $RM conftest* 8885 8886fi 8887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8888printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8889 8890if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8891 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8892else 8893 : 8894fi 8895 8896fi 8897 8898 8899 8900 8901 8902 8903 lt_prog_compiler_wl= 8904lt_prog_compiler_pic= 8905lt_prog_compiler_static= 8906 8907 8908 if test yes = "$GCC"; then 8909 lt_prog_compiler_wl='-Wl,' 8910 lt_prog_compiler_static='-static' 8911 8912 case $host_os in 8913 aix*) 8914 # All AIX code is PIC. 8915 if test ia64 = "$host_cpu"; then 8916 # AIX 5 now supports IA64 processor 8917 lt_prog_compiler_static='-Bstatic' 8918 fi 8919 lt_prog_compiler_pic='-fPIC' 8920 ;; 8921 8922 amigaos*) 8923 case $host_cpu in 8924 powerpc) 8925 # see comment about AmigaOS4 .so support 8926 lt_prog_compiler_pic='-fPIC' 8927 ;; 8928 m68k) 8929 # FIXME: we need at least 68020 code to build shared libraries, but 8930 # adding the '-m68020' flag to GCC prevents building anything better, 8931 # like '-m68040'. 8932 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8933 ;; 8934 esac 8935 ;; 8936 8937 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8938 # PIC is the default for these OSes. 8939 ;; 8940 8941 mingw* | cygwin* | pw32* | os2* | cegcc*) 8942 # This hack is so that the source file can tell whether it is being 8943 # built for inclusion in a dll (and should export symbols for example). 8944 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8945 # (--disable-auto-import) libraries 8946 lt_prog_compiler_pic='-DDLL_EXPORT' 8947 case $host_os in 8948 os2*) 8949 lt_prog_compiler_static='$wl-static' 8950 ;; 8951 esac 8952 ;; 8953 8954 darwin* | rhapsody*) 8955 # PIC is the default on this platform 8956 # Common symbols not allowed in MH_DYLIB files 8957 lt_prog_compiler_pic='-fno-common' 8958 ;; 8959 8960 haiku*) 8961 # PIC is the default for Haiku. 8962 # The "-static" flag exists, but is broken. 8963 lt_prog_compiler_static= 8964 ;; 8965 8966 hpux*) 8967 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8968 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8969 # sets the default TLS model and affects inlining. 8970 case $host_cpu in 8971 hppa*64*) 8972 # +Z the default 8973 ;; 8974 *) 8975 lt_prog_compiler_pic='-fPIC' 8976 ;; 8977 esac 8978 ;; 8979 8980 interix[3-9]*) 8981 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8982 # Instead, we relocate shared libraries at runtime. 8983 ;; 8984 8985 msdosdjgpp*) 8986 # Just because we use GCC doesn't mean we suddenly get shared libraries 8987 # on systems that don't support them. 8988 lt_prog_compiler_can_build_shared=no 8989 enable_shared=no 8990 ;; 8991 8992 *nto* | *qnx*) 8993 # QNX uses GNU C++, but need to define -shared option too, otherwise 8994 # it will coredump. 8995 lt_prog_compiler_pic='-fPIC -shared' 8996 ;; 8997 8998 sysv4*MP*) 8999 if test -d /usr/nec; then 9000 lt_prog_compiler_pic=-Kconform_pic 9001 fi 9002 ;; 9003 9004 *) 9005 lt_prog_compiler_pic='-fPIC' 9006 ;; 9007 esac 9008 9009 case $cc_basename in 9010 nvcc*) # Cuda Compiler Driver 2.2 9011 lt_prog_compiler_wl='-Xlinker ' 9012 if test -n "$lt_prog_compiler_pic"; then 9013 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9014 fi 9015 ;; 9016 esac 9017 else 9018 # PORTME Check for flag to pass linker flags through the system compiler. 9019 case $host_os in 9020 aix*) 9021 lt_prog_compiler_wl='-Wl,' 9022 if test ia64 = "$host_cpu"; then 9023 # AIX 5 now supports IA64 processor 9024 lt_prog_compiler_static='-Bstatic' 9025 else 9026 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9027 fi 9028 ;; 9029 9030 darwin* | rhapsody*) 9031 # PIC is the default on this platform 9032 # Common symbols not allowed in MH_DYLIB files 9033 lt_prog_compiler_pic='-fno-common' 9034 case $cc_basename in 9035 nagfor*) 9036 # NAG Fortran compiler 9037 lt_prog_compiler_wl='-Wl,-Wl,,' 9038 lt_prog_compiler_pic='-PIC' 9039 lt_prog_compiler_static='-Bstatic' 9040 ;; 9041 esac 9042 ;; 9043 9044 mingw* | cygwin* | pw32* | os2* | cegcc*) 9045 # This hack is so that the source file can tell whether it is being 9046 # built for inclusion in a dll (and should export symbols for example). 9047 lt_prog_compiler_pic='-DDLL_EXPORT' 9048 case $host_os in 9049 os2*) 9050 lt_prog_compiler_static='$wl-static' 9051 ;; 9052 esac 9053 ;; 9054 9055 hpux9* | hpux10* | hpux11*) 9056 lt_prog_compiler_wl='-Wl,' 9057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9058 # not for PA HP-UX. 9059 case $host_cpu in 9060 hppa*64*|ia64*) 9061 # +Z the default 9062 ;; 9063 *) 9064 lt_prog_compiler_pic='+Z' 9065 ;; 9066 esac 9067 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9068 lt_prog_compiler_static='$wl-a ${wl}archive' 9069 ;; 9070 9071 irix5* | irix6* | nonstopux*) 9072 lt_prog_compiler_wl='-Wl,' 9073 # PIC (with -KPIC) is the default. 9074 lt_prog_compiler_static='-non_shared' 9075 ;; 9076 9077 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9078 case $cc_basename in 9079 # old Intel for x86_64, which still supported -KPIC. 9080 ecc*) 9081 lt_prog_compiler_wl='-Wl,' 9082 lt_prog_compiler_pic='-KPIC' 9083 lt_prog_compiler_static='-static' 9084 ;; 9085 # icc used to be incompatible with GCC. 9086 # ICC 10 doesn't accept -KPIC any more. 9087 icc* | ifort*) 9088 lt_prog_compiler_wl='-Wl,' 9089 lt_prog_compiler_pic='-fPIC' 9090 lt_prog_compiler_static='-static' 9091 ;; 9092 # Lahey Fortran 8.1. 9093 lf95*) 9094 lt_prog_compiler_wl='-Wl,' 9095 lt_prog_compiler_pic='--shared' 9096 lt_prog_compiler_static='--static' 9097 ;; 9098 nagfor*) 9099 # NAG Fortran compiler 9100 lt_prog_compiler_wl='-Wl,-Wl,,' 9101 lt_prog_compiler_pic='-PIC' 9102 lt_prog_compiler_static='-Bstatic' 9103 ;; 9104 tcc*) 9105 # Fabrice Bellard et al's Tiny C Compiler 9106 lt_prog_compiler_wl='-Wl,' 9107 lt_prog_compiler_pic='-fPIC' 9108 lt_prog_compiler_static='-static' 9109 ;; 9110 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9111 # Portland Group compilers (*not* the Pentium gcc compiler, 9112 # which looks to be a dead project) 9113 lt_prog_compiler_wl='-Wl,' 9114 lt_prog_compiler_pic='-fpic' 9115 lt_prog_compiler_static='-Bstatic' 9116 ;; 9117 ccc*) 9118 lt_prog_compiler_wl='-Wl,' 9119 # All Alpha code is PIC. 9120 lt_prog_compiler_static='-non_shared' 9121 ;; 9122 xl* | bgxl* | bgf* | mpixl*) 9123 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9124 lt_prog_compiler_wl='-Wl,' 9125 lt_prog_compiler_pic='-qpic' 9126 lt_prog_compiler_static='-qstaticlink' 9127 ;; 9128 *) 9129 case `$CC -V 2>&1 | $SED 5q` in 9130 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9131 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9132 lt_prog_compiler_pic='-KPIC' 9133 lt_prog_compiler_static='-Bstatic' 9134 lt_prog_compiler_wl='' 9135 ;; 9136 *Sun\ F* | *Sun*Fortran*) 9137 lt_prog_compiler_pic='-KPIC' 9138 lt_prog_compiler_static='-Bstatic' 9139 lt_prog_compiler_wl='-Qoption ld ' 9140 ;; 9141 *Sun\ C*) 9142 # Sun C 5.9 9143 lt_prog_compiler_pic='-KPIC' 9144 lt_prog_compiler_static='-Bstatic' 9145 lt_prog_compiler_wl='-Wl,' 9146 ;; 9147 *Intel*\ [CF]*Compiler*) 9148 lt_prog_compiler_wl='-Wl,' 9149 lt_prog_compiler_pic='-fPIC' 9150 lt_prog_compiler_static='-static' 9151 ;; 9152 *Portland\ Group*) 9153 lt_prog_compiler_wl='-Wl,' 9154 lt_prog_compiler_pic='-fpic' 9155 lt_prog_compiler_static='-Bstatic' 9156 ;; 9157 esac 9158 ;; 9159 esac 9160 ;; 9161 9162 newsos6) 9163 lt_prog_compiler_pic='-KPIC' 9164 lt_prog_compiler_static='-Bstatic' 9165 ;; 9166 9167 *nto* | *qnx*) 9168 # QNX uses GNU C++, but need to define -shared option too, otherwise 9169 # it will coredump. 9170 lt_prog_compiler_pic='-fPIC -shared' 9171 ;; 9172 9173 osf3* | osf4* | osf5*) 9174 lt_prog_compiler_wl='-Wl,' 9175 # All OSF/1 code is PIC. 9176 lt_prog_compiler_static='-non_shared' 9177 ;; 9178 9179 rdos*) 9180 lt_prog_compiler_static='-non_shared' 9181 ;; 9182 9183 solaris*) 9184 lt_prog_compiler_pic='-KPIC' 9185 lt_prog_compiler_static='-Bstatic' 9186 case $cc_basename in 9187 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9188 lt_prog_compiler_wl='-Qoption ld ';; 9189 *) 9190 lt_prog_compiler_wl='-Wl,';; 9191 esac 9192 ;; 9193 9194 sunos4*) 9195 lt_prog_compiler_wl='-Qoption ld ' 9196 lt_prog_compiler_pic='-PIC' 9197 lt_prog_compiler_static='-Bstatic' 9198 ;; 9199 9200 sysv4 | sysv4.2uw2* | sysv4.3*) 9201 lt_prog_compiler_wl='-Wl,' 9202 lt_prog_compiler_pic='-KPIC' 9203 lt_prog_compiler_static='-Bstatic' 9204 ;; 9205 9206 sysv4*MP*) 9207 if test -d /usr/nec; then 9208 lt_prog_compiler_pic='-Kconform_pic' 9209 lt_prog_compiler_static='-Bstatic' 9210 fi 9211 ;; 9212 9213 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9214 lt_prog_compiler_wl='-Wl,' 9215 lt_prog_compiler_pic='-KPIC' 9216 lt_prog_compiler_static='-Bstatic' 9217 ;; 9218 9219 unicos*) 9220 lt_prog_compiler_wl='-Wl,' 9221 lt_prog_compiler_can_build_shared=no 9222 ;; 9223 9224 uts4*) 9225 lt_prog_compiler_pic='-pic' 9226 lt_prog_compiler_static='-Bstatic' 9227 ;; 9228 9229 *) 9230 lt_prog_compiler_can_build_shared=no 9231 ;; 9232 esac 9233 fi 9234 9235case $host_os in 9236 # For platforms that do not support PIC, -DPIC is meaningless: 9237 *djgpp*) 9238 lt_prog_compiler_pic= 9239 ;; 9240 *) 9241 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9242 ;; 9243esac 9244 9245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9246printf %s "checking for $compiler option to produce PIC... " >&6; } 9247if test ${lt_cv_prog_compiler_pic+y} 9248then : 9249 printf %s "(cached) " >&6 9250else $as_nop 9251 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9252fi 9253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9254printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9255lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9256 9257# 9258# Check to make sure the PIC flag actually works. 9259# 9260if test -n "$lt_prog_compiler_pic"; then 9261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9262printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9263if test ${lt_cv_prog_compiler_pic_works+y} 9264then : 9265 printf %s "(cached) " >&6 9266else $as_nop 9267 lt_cv_prog_compiler_pic_works=no 9268 ac_outfile=conftest.$ac_objext 9269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9270 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9271 # Insert the option either (1) after the last *FLAGS variable, or 9272 # (2) before a word containing "conftest.", or (3) at the end. 9273 # Note that $ac_compile itself does not contain backslashes and begins 9274 # with a dollar sign (not a hyphen), so the echo should work correctly. 9275 # The option is referenced via a variable to avoid confusing sed. 9276 lt_compile=`echo "$ac_compile" | $SED \ 9277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9279 -e 's:$: $lt_compiler_flag:'` 9280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9281 (eval "$lt_compile" 2>conftest.err) 9282 ac_status=$? 9283 cat conftest.err >&5 9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9285 if (exit $ac_status) && test -s "$ac_outfile"; then 9286 # The compiler can only warn and ignore the option if not recognized 9287 # So say no if there are warnings other than the usual output. 9288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9291 lt_cv_prog_compiler_pic_works=yes 9292 fi 9293 fi 9294 $RM conftest* 9295 9296fi 9297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9298printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9299 9300if test yes = "$lt_cv_prog_compiler_pic_works"; then 9301 case $lt_prog_compiler_pic in 9302 "" | " "*) ;; 9303 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9304 esac 9305else 9306 lt_prog_compiler_pic= 9307 lt_prog_compiler_can_build_shared=no 9308fi 9309 9310fi 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322# 9323# Check to make sure the static flag actually works. 9324# 9325wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9327printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9328if test ${lt_cv_prog_compiler_static_works+y} 9329then : 9330 printf %s "(cached) " >&6 9331else $as_nop 9332 lt_cv_prog_compiler_static_works=no 9333 save_LDFLAGS=$LDFLAGS 9334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9335 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9337 # The linker can only warn and ignore the option if not recognized 9338 # So say no if there are warnings 9339 if test -s conftest.err; then 9340 # Append any errors to the config.log. 9341 cat conftest.err 1>&5 9342 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9344 if diff conftest.exp conftest.er2 >/dev/null; then 9345 lt_cv_prog_compiler_static_works=yes 9346 fi 9347 else 9348 lt_cv_prog_compiler_static_works=yes 9349 fi 9350 fi 9351 $RM -r conftest* 9352 LDFLAGS=$save_LDFLAGS 9353 9354fi 9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9356printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9357 9358if test yes = "$lt_cv_prog_compiler_static_works"; then 9359 : 9360else 9361 lt_prog_compiler_static= 9362fi 9363 9364 9365 9366 9367 9368 9369 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9371printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9372if test ${lt_cv_prog_compiler_c_o+y} 9373then : 9374 printf %s "(cached) " >&6 9375else $as_nop 9376 lt_cv_prog_compiler_c_o=no 9377 $RM -r conftest 2>/dev/null 9378 mkdir conftest 9379 cd conftest 9380 mkdir out 9381 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9382 9383 lt_compiler_flag="-o out/conftest2.$ac_objext" 9384 # Insert the option either (1) after the last *FLAGS variable, or 9385 # (2) before a word containing "conftest.", or (3) at the end. 9386 # Note that $ac_compile itself does not contain backslashes and begins 9387 # with a dollar sign (not a hyphen), so the echo should work correctly. 9388 lt_compile=`echo "$ac_compile" | $SED \ 9389 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9390 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9391 -e 's:$: $lt_compiler_flag:'` 9392 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9393 (eval "$lt_compile" 2>out/conftest.err) 9394 ac_status=$? 9395 cat out/conftest.err >&5 9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9397 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9398 then 9399 # The compiler can only warn and ignore the option if not recognized 9400 # So say no if there are warnings 9401 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9402 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9403 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9404 lt_cv_prog_compiler_c_o=yes 9405 fi 9406 fi 9407 chmod u+w . 2>&5 9408 $RM conftest* 9409 # SGI C++ compiler will create directory out/ii_files/ for 9410 # template instantiation 9411 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9412 $RM out/* && rmdir out 9413 cd .. 9414 $RM -r conftest 9415 $RM conftest* 9416 9417fi 9418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9419printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9420 9421 9422 9423 9424 9425 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9427printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9428if test ${lt_cv_prog_compiler_c_o+y} 9429then : 9430 printf %s "(cached) " >&6 9431else $as_nop 9432 lt_cv_prog_compiler_c_o=no 9433 $RM -r conftest 2>/dev/null 9434 mkdir conftest 9435 cd conftest 9436 mkdir out 9437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9438 9439 lt_compiler_flag="-o out/conftest2.$ac_objext" 9440 # Insert the option either (1) after the last *FLAGS variable, or 9441 # (2) before a word containing "conftest.", or (3) at the end. 9442 # Note that $ac_compile itself does not contain backslashes and begins 9443 # with a dollar sign (not a hyphen), so the echo should work correctly. 9444 lt_compile=`echo "$ac_compile" | $SED \ 9445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9447 -e 's:$: $lt_compiler_flag:'` 9448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9449 (eval "$lt_compile" 2>out/conftest.err) 9450 ac_status=$? 9451 cat out/conftest.err >&5 9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9453 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9454 then 9455 # The compiler can only warn and ignore the option if not recognized 9456 # So say no if there are warnings 9457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9458 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9459 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9460 lt_cv_prog_compiler_c_o=yes 9461 fi 9462 fi 9463 chmod u+w . 2>&5 9464 $RM conftest* 9465 # SGI C++ compiler will create directory out/ii_files/ for 9466 # template instantiation 9467 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9468 $RM out/* && rmdir out 9469 cd .. 9470 $RM -r conftest 9471 $RM conftest* 9472 9473fi 9474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9475printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9476 9477 9478 9479 9480hard_links=nottested 9481if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9482 # do not overwrite the value of need_locks provided by the user 9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9484printf %s "checking if we can lock with hard links... " >&6; } 9485 hard_links=yes 9486 $RM conftest* 9487 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9488 touch conftest.a 9489 ln conftest.a conftest.b 2>&5 || hard_links=no 9490 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9492printf "%s\n" "$hard_links" >&6; } 9493 if test no = "$hard_links"; then 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9495printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9496 need_locks=warn 9497 fi 9498else 9499 need_locks=no 9500fi 9501 9502 9503 9504 9505 9506 9507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9508printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9509 9510 runpath_var= 9511 allow_undefined_flag= 9512 always_export_symbols=no 9513 archive_cmds= 9514 archive_expsym_cmds= 9515 compiler_needs_object=no 9516 enable_shared_with_static_runtimes=no 9517 export_dynamic_flag_spec= 9518 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9519 hardcode_automatic=no 9520 hardcode_direct=no 9521 hardcode_direct_absolute=no 9522 hardcode_libdir_flag_spec= 9523 hardcode_libdir_separator= 9524 hardcode_minus_L=no 9525 hardcode_shlibpath_var=unsupported 9526 inherit_rpath=no 9527 link_all_deplibs=unknown 9528 module_cmds= 9529 module_expsym_cmds= 9530 old_archive_from_new_cmds= 9531 old_archive_from_expsyms_cmds= 9532 thread_safe_flag_spec= 9533 whole_archive_flag_spec= 9534 # include_expsyms should be a list of space-separated symbols to be *always* 9535 # included in the symbol list 9536 include_expsyms= 9537 # exclude_expsyms can be an extended regexp of symbols to exclude 9538 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9539 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9540 # as well as any symbol that contains 'd'. 9541 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9543 # platforms (ab)use it in PIC code, but their linkers get confused if 9544 # the symbol is explicitly referenced. Since portable code cannot 9545 # rely on this symbol name, it's probably fine to never include it in 9546 # preloaded symbol tables. 9547 # Exclude shared library initialization/finalization symbols. 9548 extract_expsyms_cmds= 9549 9550 case $host_os in 9551 cygwin* | mingw* | pw32* | cegcc*) 9552 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9553 # When not using gcc, we currently assume that we are using 9554 # Microsoft Visual C++ or Intel C++ Compiler. 9555 if test yes != "$GCC"; then 9556 with_gnu_ld=no 9557 fi 9558 ;; 9559 interix*) 9560 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9561 with_gnu_ld=yes 9562 ;; 9563 openbsd* | bitrig*) 9564 with_gnu_ld=no 9565 ;; 9566 esac 9567 9568 ld_shlibs=yes 9569 9570 # On some targets, GNU ld is compatible enough with the native linker 9571 # that we're better off using the native interface for both. 9572 lt_use_gnu_ld_interface=no 9573 if test yes = "$with_gnu_ld"; then 9574 case $host_os in 9575 aix*) 9576 # The AIX port of GNU ld has always aspired to compatibility 9577 # with the native linker. However, as the warning in the GNU ld 9578 # block says, versions before 2.19.5* couldn't really create working 9579 # shared libraries, regardless of the interface used. 9580 case `$LD -v 2>&1` in 9581 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9582 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9583 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9584 *) 9585 lt_use_gnu_ld_interface=yes 9586 ;; 9587 esac 9588 ;; 9589 *) 9590 lt_use_gnu_ld_interface=yes 9591 ;; 9592 esac 9593 fi 9594 9595 if test yes = "$lt_use_gnu_ld_interface"; then 9596 # If archive_cmds runs LD, not CC, wlarc should be empty 9597 wlarc='$wl' 9598 9599 # Set some defaults for GNU ld with shared library support. These 9600 # are reset later if shared libraries are not supported. Putting them 9601 # here allows them to be overridden if necessary. 9602 runpath_var=LD_RUN_PATH 9603 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9604 export_dynamic_flag_spec='$wl--export-dynamic' 9605 # ancient GNU ld didn't support --whole-archive et. al. 9606 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9607 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9608 else 9609 whole_archive_flag_spec= 9610 fi 9611 supports_anon_versioning=no 9612 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9613 *GNU\ gold*) supports_anon_versioning=yes ;; 9614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9617 *\ 2.11.*) ;; # other 2.11 versions 9618 *) supports_anon_versioning=yes ;; 9619 esac 9620 9621 # See if GNU ld supports shared libraries. 9622 case $host_os in 9623 aix[3-9]*) 9624 # On AIX/PPC, the GNU linker is very broken 9625 if test ia64 != "$host_cpu"; then 9626 ld_shlibs=no 9627 cat <<_LT_EOF 1>&2 9628 9629*** Warning: the GNU linker, at least up to release 2.19, is reported 9630*** to be unable to reliably create shared libraries on AIX. 9631*** Therefore, libtool is disabling shared libraries support. If you 9632*** really care for shared libraries, you may want to install binutils 9633*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9634*** You will then need to restart the configuration process. 9635 9636_LT_EOF 9637 fi 9638 ;; 9639 9640 amigaos*) 9641 case $host_cpu in 9642 powerpc) 9643 # see comment about AmigaOS4 .so support 9644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9645 archive_expsym_cmds='' 9646 ;; 9647 m68k) 9648 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)' 9649 hardcode_libdir_flag_spec='-L$libdir' 9650 hardcode_minus_L=yes 9651 ;; 9652 esac 9653 ;; 9654 9655 beos*) 9656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9657 allow_undefined_flag=unsupported 9658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9659 # support --undefined. This deserves some investigation. FIXME 9660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9661 else 9662 ld_shlibs=no 9663 fi 9664 ;; 9665 9666 cygwin* | mingw* | pw32* | cegcc*) 9667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9668 # as there is no search path for DLLs. 9669 hardcode_libdir_flag_spec='-L$libdir' 9670 export_dynamic_flag_spec='$wl--export-all-symbols' 9671 allow_undefined_flag=unsupported 9672 always_export_symbols=no 9673 enable_shared_with_static_runtimes=yes 9674 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' 9675 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9676 9677 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9679 # If the export-symbols file already is a .def file, use it as 9680 # is; otherwise, prepend EXPORTS... 9681 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9682 cp $export_symbols $output_objdir/$soname.def; 9683 else 9684 echo EXPORTS > $output_objdir/$soname.def; 9685 cat $export_symbols >> $output_objdir/$soname.def; 9686 fi~ 9687 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9688 else 9689 ld_shlibs=no 9690 fi 9691 ;; 9692 9693 haiku*) 9694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9695 link_all_deplibs=yes 9696 ;; 9697 9698 os2*) 9699 hardcode_libdir_flag_spec='-L$libdir' 9700 hardcode_minus_L=yes 9701 allow_undefined_flag=unsupported 9702 shrext_cmds=.dll 9703 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9704 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9705 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9706 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9707 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9708 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9709 emximp -o $lib $output_objdir/$libname.def' 9710 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9711 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9712 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9713 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9714 prefix_cmds="$SED"~ 9715 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9716 prefix_cmds="$prefix_cmds -e 1d"; 9717 fi~ 9718 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9719 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9720 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9721 emximp -o $lib $output_objdir/$libname.def' 9722 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9723 enable_shared_with_static_runtimes=yes 9724 file_list_spec='@' 9725 ;; 9726 9727 interix[3-9]*) 9728 hardcode_direct=no 9729 hardcode_shlibpath_var=no 9730 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9731 export_dynamic_flag_spec='$wl-E' 9732 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9733 # Instead, shared libraries are loaded at an image base (0x10000000 by 9734 # default) and relocated if they conflict, which is a slow very memory 9735 # consuming and fragmenting process. To avoid this, we pick a random, 9736 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9737 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9739 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' 9740 ;; 9741 9742 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9743 tmp_diet=no 9744 if test linux-dietlibc = "$host_os"; then 9745 case $cc_basename in 9746 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9747 esac 9748 fi 9749 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9750 && test no = "$tmp_diet" 9751 then 9752 tmp_addflag=' $pic_flag' 9753 tmp_sharedflag='-shared' 9754 case $cc_basename,$host_cpu in 9755 pgcc*) # Portland Group C compiler 9756 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' 9757 tmp_addflag=' $pic_flag' 9758 ;; 9759 pgf77* | pgf90* | pgf95* | pgfortran*) 9760 # Portland Group f77 and f90 compilers 9761 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' 9762 tmp_addflag=' $pic_flag -Mnomain' ;; 9763 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9764 tmp_addflag=' -i_dynamic' ;; 9765 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9766 tmp_addflag=' -i_dynamic -nofor_main' ;; 9767 ifc* | ifort*) # Intel Fortran compiler 9768 tmp_addflag=' -nofor_main' ;; 9769 lf95*) # Lahey Fortran 8.1 9770 whole_archive_flag_spec= 9771 tmp_sharedflag='--shared' ;; 9772 nagfor*) # NAGFOR 5.3 9773 tmp_sharedflag='-Wl,-shared' ;; 9774 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9775 tmp_sharedflag='-qmkshrobj' 9776 tmp_addflag= ;; 9777 nvcc*) # Cuda Compiler Driver 2.2 9778 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' 9779 compiler_needs_object=yes 9780 ;; 9781 esac 9782 case `$CC -V 2>&1 | $SED 5q` in 9783 *Sun\ C*) # Sun C 5.9 9784 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' 9785 compiler_needs_object=yes 9786 tmp_sharedflag='-G' ;; 9787 *Sun\ F*) # Sun Fortran 8.3 9788 tmp_sharedflag='-G' ;; 9789 esac 9790 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9791 9792 if test yes = "$supports_anon_versioning"; then 9793 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9794 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9795 echo "local: *; };" >> $output_objdir/$libname.ver~ 9796 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9797 fi 9798 9799 case $cc_basename in 9800 tcc*) 9801 export_dynamic_flag_spec='-rdynamic' 9802 ;; 9803 xlf* | bgf* | bgxlf* | mpixlf*) 9804 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9805 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9806 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9807 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9808 if test yes = "$supports_anon_versioning"; then 9809 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9810 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9811 echo "local: *; };" >> $output_objdir/$libname.ver~ 9812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9813 fi 9814 ;; 9815 esac 9816 else 9817 ld_shlibs=no 9818 fi 9819 ;; 9820 9821 netbsd*) 9822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9823 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9824 wlarc= 9825 else 9826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9828 fi 9829 ;; 9830 9831 solaris*) 9832 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9833 ld_shlibs=no 9834 cat <<_LT_EOF 1>&2 9835 9836*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9837*** create shared libraries on Solaris systems. Therefore, libtool 9838*** is disabling shared libraries support. We urge you to upgrade GNU 9839*** binutils to release 2.9.1 or newer. Another option is to modify 9840*** your PATH or compiler configuration so that the native linker is 9841*** used, and then restart. 9842 9843_LT_EOF 9844 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9846 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9847 else 9848 ld_shlibs=no 9849 fi 9850 ;; 9851 9852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9853 case `$LD -v 2>&1` in 9854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9855 ld_shlibs=no 9856 cat <<_LT_EOF 1>&2 9857 9858*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9859*** reliably create shared libraries on SCO systems. Therefore, libtool 9860*** is disabling shared libraries support. We urge you to upgrade GNU 9861*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9862*** your PATH or compiler configuration so that the native linker is 9863*** used, and then restart. 9864 9865_LT_EOF 9866 ;; 9867 *) 9868 # For security reasons, it is highly recommended that you always 9869 # use absolute paths for naming shared libraries, and exclude the 9870 # DT_RUNPATH tag from executables and libraries. But doing so 9871 # requires that you compile everything twice, which is a pain. 9872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9874 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9875 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9876 else 9877 ld_shlibs=no 9878 fi 9879 ;; 9880 esac 9881 ;; 9882 9883 sunos4*) 9884 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9885 wlarc= 9886 hardcode_direct=yes 9887 hardcode_shlibpath_var=no 9888 ;; 9889 9890 *) 9891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9893 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9894 else 9895 ld_shlibs=no 9896 fi 9897 ;; 9898 esac 9899 9900 if test no = "$ld_shlibs"; then 9901 runpath_var= 9902 hardcode_libdir_flag_spec= 9903 export_dynamic_flag_spec= 9904 whole_archive_flag_spec= 9905 fi 9906 else 9907 # PORTME fill in a description of your system's linker (not GNU ld) 9908 case $host_os in 9909 aix3*) 9910 allow_undefined_flag=unsupported 9911 always_export_symbols=yes 9912 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' 9913 # Note: this linker hardcodes the directories in LIBPATH if there 9914 # are no directories specified by -L. 9915 hardcode_minus_L=yes 9916 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9917 # Neither direct hardcoding nor static linking is supported with a 9918 # broken collect2. 9919 hardcode_direct=unsupported 9920 fi 9921 ;; 9922 9923 aix[4-9]*) 9924 if test ia64 = "$host_cpu"; then 9925 # On IA64, the linker does run time linking by default, so we don't 9926 # have to do anything special. 9927 aix_use_runtimelinking=no 9928 exp_sym_flag='-Bexport' 9929 no_entry_flag= 9930 else 9931 # If we're using GNU nm, then we don't want the "-C" option. 9932 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9933 # Without the "-l" option, or with the "-B" option, AIX nm treats 9934 # weak defined symbols like other global defined symbols, whereas 9935 # GNU nm marks them as "W". 9936 # While the 'weak' keyword is ignored in the Export File, we need 9937 # it in the Import File for the 'aix-soname' feature, so we have 9938 # to replace the "-B" option with "-P" for AIX nm. 9939 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9940 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' 9941 else 9942 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' 9943 fi 9944 aix_use_runtimelinking=no 9945 9946 # Test if we are trying to use run time linking or normal 9947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9948 # have runtime linking enabled, and use it for executables. 9949 # For shared libraries, we enable/disable runtime linking 9950 # depending on the kind of the shared library created - 9951 # when "with_aix_soname,aix_use_runtimelinking" is: 9952 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9953 # "aix,yes" lib.so shared, rtl:yes, for executables 9954 # lib.a static archive 9955 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9956 # lib.a(lib.so.V) shared, rtl:no, for executables 9957 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9958 # lib.a(lib.so.V) shared, rtl:no 9959 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9960 # lib.a static archive 9961 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9962 for ld_flag in $LDFLAGS; do 9963 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9964 aix_use_runtimelinking=yes 9965 break 9966 fi 9967 done 9968 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9969 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9970 # so we don't have lib.a shared libs to link our executables. 9971 # We have to force runtime linking in this case. 9972 aix_use_runtimelinking=yes 9973 LDFLAGS="$LDFLAGS -Wl,-brtl" 9974 fi 9975 ;; 9976 esac 9977 9978 exp_sym_flag='-bexport' 9979 no_entry_flag='-bnoentry' 9980 fi 9981 9982 # When large executables or shared objects are built, AIX ld can 9983 # have problems creating the table of contents. If linking a library 9984 # or program results in "error TOC overflow" add -mminimal-toc to 9985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9987 9988 archive_cmds='' 9989 hardcode_direct=yes 9990 hardcode_direct_absolute=yes 9991 hardcode_libdir_separator=':' 9992 link_all_deplibs=yes 9993 file_list_spec='$wl-f,' 9994 case $with_aix_soname,$aix_use_runtimelinking in 9995 aix,*) ;; # traditional, no import file 9996 svr4,* | *,yes) # use import file 9997 # The Import File defines what to hardcode. 9998 hardcode_direct=no 9999 hardcode_direct_absolute=no 10000 ;; 10001 esac 10002 10003 if test yes = "$GCC"; then 10004 case $host_os in aix4.[012]|aix4.[012].*) 10005 # We only want to do this on AIX 4.2 and lower, the check 10006 # below for broken collect2 doesn't work under 4.3+ 10007 collect2name=`$CC -print-prog-name=collect2` 10008 if test -f "$collect2name" && 10009 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10010 then 10011 # We have reworked collect2 10012 : 10013 else 10014 # We have old collect2 10015 hardcode_direct=unsupported 10016 # It fails to find uninstalled libraries when the uninstalled 10017 # path is not listed in the libpath. Setting hardcode_minus_L 10018 # to unsupported forces relinking 10019 hardcode_minus_L=yes 10020 hardcode_libdir_flag_spec='-L$libdir' 10021 hardcode_libdir_separator= 10022 fi 10023 ;; 10024 esac 10025 shared_flag='-shared' 10026 if test yes = "$aix_use_runtimelinking"; then 10027 shared_flag="$shared_flag "'$wl-G' 10028 fi 10029 # Need to ensure runtime linking is disabled for the traditional 10030 # shared library, or the linker may eventually find shared libraries 10031 # /with/ Import File - we do not want to mix them. 10032 shared_flag_aix='-shared' 10033 shared_flag_svr4='-shared $wl-G' 10034 else 10035 # not using gcc 10036 if test ia64 = "$host_cpu"; then 10037 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10038 # chokes on -Wl,-G. The following line is correct: 10039 shared_flag='-G' 10040 else 10041 if test yes = "$aix_use_runtimelinking"; then 10042 shared_flag='$wl-G' 10043 else 10044 shared_flag='$wl-bM:SRE' 10045 fi 10046 shared_flag_aix='$wl-bM:SRE' 10047 shared_flag_svr4='$wl-G' 10048 fi 10049 fi 10050 10051 export_dynamic_flag_spec='$wl-bexpall' 10052 # It seems that -bexpall does not export symbols beginning with 10053 # underscore (_), so it is better to generate a list of symbols to export. 10054 always_export_symbols=yes 10055 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10056 # Warning - without using the other runtime loading flags (-brtl), 10057 # -berok will link without error, but may produce a broken library. 10058 allow_undefined_flag='-berok' 10059 # Determine the default libpath from the value encoded in an 10060 # empty executable. 10061 if test set = "${lt_cv_aix_libpath+set}"; then 10062 aix_libpath=$lt_cv_aix_libpath 10063else 10064 if test ${lt_cv_aix_libpath_+y} 10065then : 10066 printf %s "(cached) " >&6 10067else $as_nop 10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10069/* end confdefs.h. */ 10070 10071int 10072main (void) 10073{ 10074 10075 ; 10076 return 0; 10077} 10078_ACEOF 10079if ac_fn_c_try_link "$LINENO" 10080then : 10081 10082 lt_aix_libpath_sed=' 10083 /Import File Strings/,/^$/ { 10084 /^0/ { 10085 s/^0 *\([^ ]*\) *$/\1/ 10086 p 10087 } 10088 }' 10089 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10090 # Check for a 64-bit object if we didn't find anything. 10091 if test -z "$lt_cv_aix_libpath_"; then 10092 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10093 fi 10094fi 10095rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10096 conftest$ac_exeext conftest.$ac_ext 10097 if test -z "$lt_cv_aix_libpath_"; then 10098 lt_cv_aix_libpath_=/usr/lib:/lib 10099 fi 10100 10101fi 10102 10103 aix_libpath=$lt_cv_aix_libpath_ 10104fi 10105 10106 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10107 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 10108 else 10109 if test ia64 = "$host_cpu"; then 10110 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10111 allow_undefined_flag="-z nodefs" 10112 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" 10113 else 10114 # Determine the default libpath from the value encoded in an 10115 # empty executable. 10116 if test set = "${lt_cv_aix_libpath+set}"; then 10117 aix_libpath=$lt_cv_aix_libpath 10118else 10119 if test ${lt_cv_aix_libpath_+y} 10120then : 10121 printf %s "(cached) " >&6 10122else $as_nop 10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10124/* end confdefs.h. */ 10125 10126int 10127main (void) 10128{ 10129 10130 ; 10131 return 0; 10132} 10133_ACEOF 10134if ac_fn_c_try_link "$LINENO" 10135then : 10136 10137 lt_aix_libpath_sed=' 10138 /Import File Strings/,/^$/ { 10139 /^0/ { 10140 s/^0 *\([^ ]*\) *$/\1/ 10141 p 10142 } 10143 }' 10144 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10145 # Check for a 64-bit object if we didn't find anything. 10146 if test -z "$lt_cv_aix_libpath_"; then 10147 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10148 fi 10149fi 10150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10151 conftest$ac_exeext conftest.$ac_ext 10152 if test -z "$lt_cv_aix_libpath_"; then 10153 lt_cv_aix_libpath_=/usr/lib:/lib 10154 fi 10155 10156fi 10157 10158 aix_libpath=$lt_cv_aix_libpath_ 10159fi 10160 10161 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10162 # Warning - without using the other run time loading flags, 10163 # -berok will link without error, but may produce a broken library. 10164 no_undefined_flag=' $wl-bernotok' 10165 allow_undefined_flag=' $wl-berok' 10166 if test yes = "$with_gnu_ld"; then 10167 # We only use this code for GNU lds that support --whole-archive. 10168 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10169 else 10170 # Exported symbols can be pulled into shared objects from archives 10171 whole_archive_flag_spec='$convenience' 10172 fi 10173 archive_cmds_need_lc=yes 10174 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10175 # -brtl affects multiple linker settings, -berok does not and is overridden later 10176 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10177 if test svr4 != "$with_aix_soname"; then 10178 # This is similar to how AIX traditionally builds its shared libraries. 10179 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' 10180 fi 10181 if test aix != "$with_aix_soname"; then 10182 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' 10183 else 10184 # used by -dlpreopen to get the symbols 10185 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10186 fi 10187 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10188 fi 10189 fi 10190 ;; 10191 10192 amigaos*) 10193 case $host_cpu in 10194 powerpc) 10195 # see comment about AmigaOS4 .so support 10196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10197 archive_expsym_cmds='' 10198 ;; 10199 m68k) 10200 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)' 10201 hardcode_libdir_flag_spec='-L$libdir' 10202 hardcode_minus_L=yes 10203 ;; 10204 esac 10205 ;; 10206 10207 bsdi[45]*) 10208 export_dynamic_flag_spec=-rdynamic 10209 ;; 10210 10211 cygwin* | mingw* | pw32* | cegcc*) 10212 # When not using gcc, we currently assume that we are using 10213 # Microsoft Visual C++ or Intel C++ Compiler. 10214 # hardcode_libdir_flag_spec is actually meaningless, as there is 10215 # no search path for DLLs. 10216 case $cc_basename in 10217 cl* | icl*) 10218 # Native MSVC or ICC 10219 hardcode_libdir_flag_spec=' ' 10220 allow_undefined_flag=unsupported 10221 always_export_symbols=yes 10222 file_list_spec='@' 10223 # Tell ltmain to make .lib files, not .a files. 10224 libext=lib 10225 # Tell ltmain to make .dll files, not .so files. 10226 shrext_cmds=.dll 10227 # FIXME: Setting linknames here is a bad hack. 10228 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10229 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10230 cp "$export_symbols" "$output_objdir/$soname.def"; 10231 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10232 else 10233 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10234 fi~ 10235 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10236 linknames=' 10237 # The linker will not automatically build a static lib if we build a DLL. 10238 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10239 enable_shared_with_static_runtimes=yes 10240 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10242 # Don't use ranlib 10243 old_postinstall_cmds='chmod 644 $oldlib' 10244 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10245 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10246 case $lt_outputfile in 10247 *.exe|*.EXE) ;; 10248 *) 10249 lt_outputfile=$lt_outputfile.exe 10250 lt_tool_outputfile=$lt_tool_outputfile.exe 10251 ;; 10252 esac~ 10253 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10254 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10255 $RM "$lt_outputfile.manifest"; 10256 fi' 10257 ;; 10258 *) 10259 # Assume MSVC and ICC wrapper 10260 hardcode_libdir_flag_spec=' ' 10261 allow_undefined_flag=unsupported 10262 # Tell ltmain to make .lib files, not .a files. 10263 libext=lib 10264 # Tell ltmain to make .dll files, not .so files. 10265 shrext_cmds=.dll 10266 # FIXME: Setting linknames here is a bad hack. 10267 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10268 # The linker will automatically build a .lib file if we build a DLL. 10269 old_archive_from_new_cmds='true' 10270 # FIXME: Should let the user specify the lib program. 10271 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10272 enable_shared_with_static_runtimes=yes 10273 ;; 10274 esac 10275 ;; 10276 10277 darwin* | rhapsody*) 10278 10279 10280 archive_cmds_need_lc=no 10281 hardcode_direct=no 10282 hardcode_automatic=yes 10283 hardcode_shlibpath_var=unsupported 10284 if test yes = "$lt_cv_ld_force_load"; then 10285 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\"`' 10286 10287 else 10288 whole_archive_flag_spec='' 10289 fi 10290 link_all_deplibs=yes 10291 allow_undefined_flag=$_lt_dar_allow_undefined 10292 case $cc_basename in 10293 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10294 *) _lt_dar_can_shared=$GCC ;; 10295 esac 10296 if test yes = "$_lt_dar_can_shared"; then 10297 output_verbose_link_cmd=func_echo_all 10298 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10299 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10300 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" 10301 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" 10302 10303 else 10304 ld_shlibs=no 10305 fi 10306 10307 ;; 10308 10309 dgux*) 10310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10311 hardcode_libdir_flag_spec='-L$libdir' 10312 hardcode_shlibpath_var=no 10313 ;; 10314 10315 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10316 # support. Future versions do this automatically, but an explicit c++rt0.o 10317 # does not break anything, and helps significantly (at the cost of a little 10318 # extra space). 10319 freebsd2.2*) 10320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10321 hardcode_libdir_flag_spec='-R$libdir' 10322 hardcode_direct=yes 10323 hardcode_shlibpath_var=no 10324 ;; 10325 10326 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10327 freebsd2.*) 10328 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10329 hardcode_direct=yes 10330 hardcode_minus_L=yes 10331 hardcode_shlibpath_var=no 10332 ;; 10333 10334 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10335 freebsd* | dragonfly* | midnightbsd*) 10336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10337 hardcode_libdir_flag_spec='-R$libdir' 10338 hardcode_direct=yes 10339 hardcode_shlibpath_var=no 10340 ;; 10341 10342 hpux9*) 10343 if test yes = "$GCC"; then 10344 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' 10345 else 10346 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' 10347 fi 10348 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10349 hardcode_libdir_separator=: 10350 hardcode_direct=yes 10351 10352 # hardcode_minus_L: Not really in the search PATH, 10353 # but as the default location of the library. 10354 hardcode_minus_L=yes 10355 export_dynamic_flag_spec='$wl-E' 10356 ;; 10357 10358 hpux10*) 10359 if test yes,no = "$GCC,$with_gnu_ld"; then 10360 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10361 else 10362 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10363 fi 10364 if test no = "$with_gnu_ld"; then 10365 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10366 hardcode_libdir_separator=: 10367 hardcode_direct=yes 10368 hardcode_direct_absolute=yes 10369 export_dynamic_flag_spec='$wl-E' 10370 # hardcode_minus_L: Not really in the search PATH, 10371 # but as the default location of the library. 10372 hardcode_minus_L=yes 10373 fi 10374 ;; 10375 10376 hpux11*) 10377 if test yes,no = "$GCC,$with_gnu_ld"; then 10378 case $host_cpu in 10379 hppa*64*) 10380 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10381 ;; 10382 ia64*) 10383 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10384 ;; 10385 *) 10386 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10387 ;; 10388 esac 10389 else 10390 case $host_cpu in 10391 hppa*64*) 10392 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10393 ;; 10394 ia64*) 10395 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10396 ;; 10397 *) 10398 10399 # Older versions of the 11.00 compiler do not understand -b yet 10400 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10402printf %s "checking if $CC understands -b... " >&6; } 10403if test ${lt_cv_prog_compiler__b+y} 10404then : 10405 printf %s "(cached) " >&6 10406else $as_nop 10407 lt_cv_prog_compiler__b=no 10408 save_LDFLAGS=$LDFLAGS 10409 LDFLAGS="$LDFLAGS -b" 10410 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10411 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10412 # The linker can only warn and ignore the option if not recognized 10413 # So say no if there are warnings 10414 if test -s conftest.err; then 10415 # Append any errors to the config.log. 10416 cat conftest.err 1>&5 10417 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10419 if diff conftest.exp conftest.er2 >/dev/null; then 10420 lt_cv_prog_compiler__b=yes 10421 fi 10422 else 10423 lt_cv_prog_compiler__b=yes 10424 fi 10425 fi 10426 $RM -r conftest* 10427 LDFLAGS=$save_LDFLAGS 10428 10429fi 10430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10431printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10432 10433if test yes = "$lt_cv_prog_compiler__b"; then 10434 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10435else 10436 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10437fi 10438 10439 ;; 10440 esac 10441 fi 10442 if test no = "$with_gnu_ld"; then 10443 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10444 hardcode_libdir_separator=: 10445 10446 case $host_cpu in 10447 hppa*64*|ia64*) 10448 hardcode_direct=no 10449 hardcode_shlibpath_var=no 10450 ;; 10451 *) 10452 hardcode_direct=yes 10453 hardcode_direct_absolute=yes 10454 export_dynamic_flag_spec='$wl-E' 10455 10456 # hardcode_minus_L: Not really in the search PATH, 10457 # but as the default location of the library. 10458 hardcode_minus_L=yes 10459 ;; 10460 esac 10461 fi 10462 ;; 10463 10464 irix5* | irix6* | nonstopux*) 10465 if test yes = "$GCC"; then 10466 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' 10467 # Try to use the -exported_symbol ld option, if it does not 10468 # work, assume that -exports_file does not work either and 10469 # implicitly export all symbols. 10470 # This should be the same for all languages, so no per-tag cache variable. 10471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10472printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10473if test ${lt_cv_irix_exported_symbol+y} 10474then : 10475 printf %s "(cached) " >&6 10476else $as_nop 10477 save_LDFLAGS=$LDFLAGS 10478 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10480/* end confdefs.h. */ 10481int foo (void) { return 0; } 10482_ACEOF 10483if ac_fn_c_try_link "$LINENO" 10484then : 10485 lt_cv_irix_exported_symbol=yes 10486else $as_nop 10487 lt_cv_irix_exported_symbol=no 10488fi 10489rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10490 conftest$ac_exeext conftest.$ac_ext 10491 LDFLAGS=$save_LDFLAGS 10492fi 10493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10494printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10495 if test yes = "$lt_cv_irix_exported_symbol"; then 10496 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' 10497 fi 10498 else 10499 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' 10500 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' 10501 fi 10502 archive_cmds_need_lc='no' 10503 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10504 hardcode_libdir_separator=: 10505 inherit_rpath=yes 10506 link_all_deplibs=yes 10507 ;; 10508 10509 linux*) 10510 case $cc_basename in 10511 tcc*) 10512 # Fabrice Bellard et al's Tiny C Compiler 10513 ld_shlibs=yes 10514 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10515 ;; 10516 esac 10517 ;; 10518 10519 netbsd*) 10520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10522 else 10523 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10524 fi 10525 hardcode_libdir_flag_spec='-R$libdir' 10526 hardcode_direct=yes 10527 hardcode_shlibpath_var=no 10528 ;; 10529 10530 newsos6) 10531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10532 hardcode_direct=yes 10533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10534 hardcode_libdir_separator=: 10535 hardcode_shlibpath_var=no 10536 ;; 10537 10538 *nto* | *qnx*) 10539 ;; 10540 10541 openbsd* | bitrig*) 10542 if test -f /usr/libexec/ld.so; then 10543 hardcode_direct=yes 10544 hardcode_shlibpath_var=no 10545 hardcode_direct_absolute=yes 10546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10548 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10549 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10550 export_dynamic_flag_spec='$wl-E' 10551 else 10552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10553 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10554 fi 10555 else 10556 ld_shlibs=no 10557 fi 10558 ;; 10559 10560 os2*) 10561 hardcode_libdir_flag_spec='-L$libdir' 10562 hardcode_minus_L=yes 10563 allow_undefined_flag=unsupported 10564 shrext_cmds=.dll 10565 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10566 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10567 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10568 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10569 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10570 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10571 emximp -o $lib $output_objdir/$libname.def' 10572 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10575 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10576 prefix_cmds="$SED"~ 10577 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10578 prefix_cmds="$prefix_cmds -e 1d"; 10579 fi~ 10580 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10581 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10582 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10583 emximp -o $lib $output_objdir/$libname.def' 10584 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10585 enable_shared_with_static_runtimes=yes 10586 file_list_spec='@' 10587 ;; 10588 10589 osf3*) 10590 if test yes = "$GCC"; then 10591 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10592 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' 10593 else 10594 allow_undefined_flag=' -expect_unresolved \*' 10595 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' 10596 fi 10597 archive_cmds_need_lc='no' 10598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10599 hardcode_libdir_separator=: 10600 ;; 10601 10602 osf4* | osf5*) # as osf3* with the addition of -msym flag 10603 if test yes = "$GCC"; then 10604 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10605 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' 10606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10607 else 10608 allow_undefined_flag=' -expect_unresolved \*' 10609 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' 10610 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~ 10611 $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' 10612 10613 # Both c and cxx compiler support -rpath directly 10614 hardcode_libdir_flag_spec='-rpath $libdir' 10615 fi 10616 archive_cmds_need_lc='no' 10617 hardcode_libdir_separator=: 10618 ;; 10619 10620 solaris*) 10621 no_undefined_flag=' -z defs' 10622 if test yes = "$GCC"; then 10623 wlarc='$wl' 10624 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10625 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10626 $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' 10627 else 10628 case `$CC -V 2>&1` in 10629 *"Compilers 5.0"*) 10630 wlarc='' 10631 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10633 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10634 ;; 10635 *) 10636 wlarc='$wl' 10637 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10639 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10640 ;; 10641 esac 10642 fi 10643 hardcode_libdir_flag_spec='-R$libdir' 10644 hardcode_shlibpath_var=no 10645 case $host_os in 10646 solaris2.[0-5] | solaris2.[0-5].*) ;; 10647 *) 10648 # The compiler driver will combine and reorder linker options, 10649 # but understands '-z linker_flag'. GCC discards it without '$wl', 10650 # but is careful enough not to reorder. 10651 # Supported since Solaris 2.6 (maybe 2.5.1?) 10652 if test yes = "$GCC"; then 10653 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10654 else 10655 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10656 fi 10657 ;; 10658 esac 10659 link_all_deplibs=yes 10660 ;; 10661 10662 sunos4*) 10663 if test sequent = "$host_vendor"; then 10664 # Use $CC to link under sequent, because it throws in some extra .o 10665 # files that make .init and .fini sections work. 10666 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10667 else 10668 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10669 fi 10670 hardcode_libdir_flag_spec='-L$libdir' 10671 hardcode_direct=yes 10672 hardcode_minus_L=yes 10673 hardcode_shlibpath_var=no 10674 ;; 10675 10676 sysv4) 10677 case $host_vendor in 10678 sni) 10679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10680 hardcode_direct=yes # is this really true??? 10681 ;; 10682 siemens) 10683 ## LD is ld it makes a PLAMLIB 10684 ## CC just makes a GrossModule. 10685 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10686 reload_cmds='$CC -r -o $output$reload_objs' 10687 hardcode_direct=no 10688 ;; 10689 motorola) 10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10691 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10692 ;; 10693 esac 10694 runpath_var='LD_RUN_PATH' 10695 hardcode_shlibpath_var=no 10696 ;; 10697 10698 sysv4.3*) 10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10700 hardcode_shlibpath_var=no 10701 export_dynamic_flag_spec='-Bexport' 10702 ;; 10703 10704 sysv4*MP*) 10705 if test -d /usr/nec; then 10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10707 hardcode_shlibpath_var=no 10708 runpath_var=LD_RUN_PATH 10709 hardcode_runpath_var=yes 10710 ld_shlibs=yes 10711 fi 10712 ;; 10713 10714 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10715 no_undefined_flag='$wl-z,text' 10716 archive_cmds_need_lc=no 10717 hardcode_shlibpath_var=no 10718 runpath_var='LD_RUN_PATH' 10719 10720 if test yes = "$GCC"; then 10721 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10722 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10723 else 10724 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10725 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10726 fi 10727 ;; 10728 10729 sysv5* | sco3.2v5* | sco5v6*) 10730 # Note: We CANNOT use -z defs as we might desire, because we do not 10731 # link with -lc, and that would cause any symbols used from libc to 10732 # always be unresolved, which means just about no library would 10733 # ever link correctly. If we're not using GNU ld we use -z text 10734 # though, which does catch some bad symbols but isn't as heavy-handed 10735 # as -z defs. 10736 no_undefined_flag='$wl-z,text' 10737 allow_undefined_flag='$wl-z,nodefs' 10738 archive_cmds_need_lc=no 10739 hardcode_shlibpath_var=no 10740 hardcode_libdir_flag_spec='$wl-R,$libdir' 10741 hardcode_libdir_separator=':' 10742 link_all_deplibs=yes 10743 export_dynamic_flag_spec='$wl-Bexport' 10744 runpath_var='LD_RUN_PATH' 10745 10746 if test yes = "$GCC"; then 10747 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10748 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10749 else 10750 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10751 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10752 fi 10753 ;; 10754 10755 uts4*) 10756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10757 hardcode_libdir_flag_spec='-L$libdir' 10758 hardcode_shlibpath_var=no 10759 ;; 10760 10761 *) 10762 ld_shlibs=no 10763 ;; 10764 esac 10765 10766 if test sni = "$host_vendor"; then 10767 case $host in 10768 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10769 export_dynamic_flag_spec='$wl-Blargedynsym' 10770 ;; 10771 esac 10772 fi 10773 fi 10774 10775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10776printf "%s\n" "$ld_shlibs" >&6; } 10777test no = "$ld_shlibs" && can_build_shared=no 10778 10779with_gnu_ld=$with_gnu_ld 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795# 10796# Do we need to explicitly link libc? 10797# 10798case "x$archive_cmds_need_lc" in 10799x|xyes) 10800 # Assume -lc should be added 10801 archive_cmds_need_lc=yes 10802 10803 if test yes,yes = "$GCC,$enable_shared"; then 10804 case $archive_cmds in 10805 *'~'*) 10806 # FIXME: we may have to deal with multi-command sequences. 10807 ;; 10808 '$CC '*) 10809 # Test whether the compiler implicitly links with -lc since on some 10810 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10811 # to ld, don't add -lc before -lgcc. 10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10813printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10814if test ${lt_cv_archive_cmds_need_lc+y} 10815then : 10816 printf %s "(cached) " >&6 10817else $as_nop 10818 $RM conftest* 10819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10820 10821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10822 (eval $ac_compile) 2>&5 10823 ac_status=$? 10824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10825 test $ac_status = 0; } 2>conftest.err; then 10826 soname=conftest 10827 lib=conftest 10828 libobjs=conftest.$ac_objext 10829 deplibs= 10830 wl=$lt_prog_compiler_wl 10831 pic_flag=$lt_prog_compiler_pic 10832 compiler_flags=-v 10833 linker_flags=-v 10834 verstring= 10835 output_objdir=. 10836 libname=conftest 10837 lt_save_allow_undefined_flag=$allow_undefined_flag 10838 allow_undefined_flag= 10839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10840 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10841 ac_status=$? 10842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10843 test $ac_status = 0; } 10844 then 10845 lt_cv_archive_cmds_need_lc=no 10846 else 10847 lt_cv_archive_cmds_need_lc=yes 10848 fi 10849 allow_undefined_flag=$lt_save_allow_undefined_flag 10850 else 10851 cat conftest.err 1>&5 10852 fi 10853 $RM conftest* 10854 10855fi 10856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10857printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10858 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10859 ;; 10860 esac 10861 fi 10862 ;; 10863esac 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11017printf %s "checking dynamic linker characteristics... " >&6; } 11018 11019if test yes = "$GCC"; then 11020 case $host_os in 11021 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11022 *) lt_awk_arg='/^libraries:/' ;; 11023 esac 11024 case $host_os in 11025 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11026 *) lt_sed_strip_eq='s|=/|/|g' ;; 11027 esac 11028 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11029 case $lt_search_path_spec in 11030 *\;*) 11031 # if the path contains ";" then we assume it to be the separator 11032 # otherwise default to the standard path separator (i.e. ":") - it is 11033 # assumed that no part of a normal pathname contains ";" but that should 11034 # okay in the real world where ";" in dirpaths is itself problematic. 11035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11036 ;; 11037 *) 11038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11039 ;; 11040 esac 11041 # Ok, now we have the path, separated by spaces, we can step through it 11042 # and add multilib dir if necessary... 11043 lt_tmp_lt_search_path_spec= 11044 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11045 # ...but if some path component already ends with the multilib dir we assume 11046 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11047 case "$lt_multi_os_dir; $lt_search_path_spec " in 11048 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11049 lt_multi_os_dir= 11050 ;; 11051 esac 11052 for lt_sys_path in $lt_search_path_spec; do 11053 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11055 elif test -n "$lt_multi_os_dir"; then 11056 test -d "$lt_sys_path" && \ 11057 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11058 fi 11059 done 11060 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11061BEGIN {RS = " "; FS = "/|\n";} { 11062 lt_foo = ""; 11063 lt_count = 0; 11064 for (lt_i = NF; lt_i > 0; lt_i--) { 11065 if ($lt_i != "" && $lt_i != ".") { 11066 if ($lt_i == "..") { 11067 lt_count++; 11068 } else { 11069 if (lt_count == 0) { 11070 lt_foo = "/" $lt_i lt_foo; 11071 } else { 11072 lt_count--; 11073 } 11074 } 11075 } 11076 } 11077 if (lt_foo != "") { lt_freq[lt_foo]++; } 11078 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11079}'` 11080 # AWK program above erroneously prepends '/' to C:/dos/paths 11081 # for these hosts. 11082 case $host_os in 11083 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11084 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11085 esac 11086 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11087else 11088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11089fi 11090library_names_spec= 11091libname_spec='lib$name' 11092soname_spec= 11093shrext_cmds=.so 11094postinstall_cmds= 11095postuninstall_cmds= 11096finish_cmds= 11097finish_eval= 11098shlibpath_var= 11099shlibpath_overrides_runpath=unknown 11100version_type=none 11101dynamic_linker="$host_os ld.so" 11102sys_lib_dlsearch_path_spec="/lib /usr/lib" 11103need_lib_prefix=unknown 11104hardcode_into_libs=no 11105 11106# when you set need_version to no, make sure it does not cause -set_version 11107# flags to be left without arguments 11108need_version=unknown 11109 11110 11111 11112case $host_os in 11113aix3*) 11114 version_type=linux # correct to gnu/linux during the next big refactor 11115 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11116 shlibpath_var=LIBPATH 11117 11118 # AIX 3 has no versioning support, so we append a major version to the name. 11119 soname_spec='$libname$release$shared_ext$major' 11120 ;; 11121 11122aix[4-9]*) 11123 version_type=linux # correct to gnu/linux during the next big refactor 11124 need_lib_prefix=no 11125 need_version=no 11126 hardcode_into_libs=yes 11127 if test ia64 = "$host_cpu"; then 11128 # AIX 5 supports IA64 11129 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11130 shlibpath_var=LD_LIBRARY_PATH 11131 else 11132 # With GCC up to 2.95.x, collect2 would create an import file 11133 # for dependence libraries. The import file would start with 11134 # the line '#! .'. This would cause the generated library to 11135 # depend on '.', always an invalid library. This was fixed in 11136 # development snapshots of GCC prior to 3.0. 11137 case $host_os in 11138 aix4 | aix4.[01] | aix4.[01].*) 11139 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11140 echo ' yes ' 11141 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11142 : 11143 else 11144 can_build_shared=no 11145 fi 11146 ;; 11147 esac 11148 # Using Import Files as archive members, it is possible to support 11149 # filename-based versioning of shared library archives on AIX. While 11150 # this would work for both with and without runtime linking, it will 11151 # prevent static linking of such archives. So we do filename-based 11152 # shared library versioning with .so extension only, which is used 11153 # when both runtime linking and shared linking is enabled. 11154 # Unfortunately, runtime linking may impact performance, so we do 11155 # not want this to be the default eventually. Also, we use the 11156 # versioned .so libs for executables only if there is the -brtl 11157 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11158 # To allow for filename-based versioning support, we need to create 11159 # libNAME.so.V as an archive file, containing: 11160 # *) an Import File, referring to the versioned filename of the 11161 # archive as well as the shared archive member, telling the 11162 # bitwidth (32 or 64) of that shared object, and providing the 11163 # list of exported symbols of that shared object, eventually 11164 # decorated with the 'weak' keyword 11165 # *) the shared object with the F_LOADONLY flag set, to really avoid 11166 # it being seen by the linker. 11167 # At run time we better use the real file rather than another symlink, 11168 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11169 11170 case $with_aix_soname,$aix_use_runtimelinking in 11171 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11172 # soname into executable. Probably we can add versioning support to 11173 # collect2, so additional links can be useful in future. 11174 aix,yes) # traditional libtool 11175 dynamic_linker='AIX unversionable lib.so' 11176 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11177 # instead of lib<name>.a to let people know that these are not 11178 # typical AIX shared libraries. 11179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11180 ;; 11181 aix,no) # traditional AIX only 11182 dynamic_linker='AIX lib.a(lib.so.V)' 11183 # We preserve .a as extension for shared libraries through AIX4.2 11184 # and later when we are not doing run time linking. 11185 library_names_spec='$libname$release.a $libname.a' 11186 soname_spec='$libname$release$shared_ext$major' 11187 ;; 11188 svr4,*) # full svr4 only 11189 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11190 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11191 # We do not specify a path in Import Files, so LIBPATH fires. 11192 shlibpath_overrides_runpath=yes 11193 ;; 11194 *,yes) # both, prefer svr4 11195 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11196 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11197 # unpreferred sharedlib libNAME.a needs extra handling 11198 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"' 11199 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"' 11200 # We do not specify a path in Import Files, so LIBPATH fires. 11201 shlibpath_overrides_runpath=yes 11202 ;; 11203 *,no) # both, prefer aix 11204 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11205 library_names_spec='$libname$release.a $libname.a' 11206 soname_spec='$libname$release$shared_ext$major' 11207 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11208 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)' 11209 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"' 11210 ;; 11211 esac 11212 shlibpath_var=LIBPATH 11213 fi 11214 ;; 11215 11216amigaos*) 11217 case $host_cpu in 11218 powerpc) 11219 # Since July 2007 AmigaOS4 officially supports .so libraries. 11220 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11222 ;; 11223 m68k) 11224 library_names_spec='$libname.ixlibrary $libname.a' 11225 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11226 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' 11227 ;; 11228 esac 11229 ;; 11230 11231beos*) 11232 library_names_spec='$libname$shared_ext' 11233 dynamic_linker="$host_os ld.so" 11234 shlibpath_var=LIBRARY_PATH 11235 ;; 11236 11237bsdi[45]*) 11238 version_type=linux # correct to gnu/linux during the next big refactor 11239 need_version=no 11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11241 soname_spec='$libname$release$shared_ext$major' 11242 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11243 shlibpath_var=LD_LIBRARY_PATH 11244 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11245 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11246 # the default ld.so.conf also contains /usr/contrib/lib and 11247 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11248 # libtool to hard-code these into programs 11249 ;; 11250 11251cygwin* | mingw* | pw32* | cegcc*) 11252 version_type=windows 11253 shrext_cmds=.dll 11254 need_version=no 11255 need_lib_prefix=no 11256 11257 case $GCC,$cc_basename in 11258 yes,*) 11259 # gcc 11260 library_names_spec='$libname.dll.a' 11261 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11262 postinstall_cmds='base_file=`basename \$file`~ 11263 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11264 dldir=$destdir/`dirname \$dlpath`~ 11265 test -d \$dldir || mkdir -p \$dldir~ 11266 $install_prog $dir/$dlname \$dldir/$dlname~ 11267 chmod a+x \$dldir/$dlname~ 11268 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11269 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11270 fi' 11271 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11272 dlpath=$dir/\$dldll~ 11273 $RM \$dlpath' 11274 shlibpath_overrides_runpath=yes 11275 11276 case $host_os in 11277 cygwin*) 11278 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11279 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11280 11281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11282 ;; 11283 mingw* | cegcc*) 11284 # MinGW DLLs use traditional 'lib' prefix 11285 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11286 ;; 11287 pw32*) 11288 # pw32 DLLs use 'pw' prefix rather than 'lib' 11289 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11290 ;; 11291 esac 11292 dynamic_linker='Win32 ld.exe' 11293 ;; 11294 11295 *,cl* | *,icl*) 11296 # Native MSVC or ICC 11297 libname_spec='$name' 11298 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11299 library_names_spec='$libname.dll.lib' 11300 11301 case $build_os in 11302 mingw*) 11303 sys_lib_search_path_spec= 11304 lt_save_ifs=$IFS 11305 IFS=';' 11306 for lt_path in $LIB 11307 do 11308 IFS=$lt_save_ifs 11309 # Let DOS variable expansion print the short 8.3 style file name. 11310 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11311 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11312 done 11313 IFS=$lt_save_ifs 11314 # Convert to MSYS style. 11315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11316 ;; 11317 cygwin*) 11318 # Convert to unix form, then to dos form, then back to unix form 11319 # but this time dos style (no spaces!) so that the unix form looks 11320 # like /cygdrive/c/PROGRA~1:/cygdr... 11321 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11322 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11323 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11324 ;; 11325 *) 11326 sys_lib_search_path_spec=$LIB 11327 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11328 # It is most probably a Windows format PATH. 11329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11330 else 11331 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11332 fi 11333 # FIXME: find the short name or the path components, as spaces are 11334 # common. (e.g. "Program Files" -> "PROGRA~1") 11335 ;; 11336 esac 11337 11338 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11339 postinstall_cmds='base_file=`basename \$file`~ 11340 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11341 dldir=$destdir/`dirname \$dlpath`~ 11342 test -d \$dldir || mkdir -p \$dldir~ 11343 $install_prog $dir/$dlname \$dldir/$dlname' 11344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11345 dlpath=$dir/\$dldll~ 11346 $RM \$dlpath' 11347 shlibpath_overrides_runpath=yes 11348 dynamic_linker='Win32 link.exe' 11349 ;; 11350 11351 *) 11352 # Assume MSVC and ICC wrapper 11353 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11354 dynamic_linker='Win32 ld.exe' 11355 ;; 11356 esac 11357 # FIXME: first we should search . and the directory the executable is in 11358 shlibpath_var=PATH 11359 ;; 11360 11361darwin* | rhapsody*) 11362 dynamic_linker="$host_os dyld" 11363 version_type=darwin 11364 need_lib_prefix=no 11365 need_version=no 11366 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11367 soname_spec='$libname$release$major$shared_ext' 11368 shlibpath_overrides_runpath=yes 11369 shlibpath_var=DYLD_LIBRARY_PATH 11370 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11371 11372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11374 ;; 11375 11376dgux*) 11377 version_type=linux # correct to gnu/linux during the next big refactor 11378 need_lib_prefix=no 11379 need_version=no 11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11381 soname_spec='$libname$release$shared_ext$major' 11382 shlibpath_var=LD_LIBRARY_PATH 11383 ;; 11384 11385freebsd* | dragonfly* | midnightbsd*) 11386 # DragonFly does not have aout. When/if they implement a new 11387 # versioning mechanism, adjust this. 11388 if test -x /usr/bin/objformat; then 11389 objformat=`/usr/bin/objformat` 11390 else 11391 case $host_os in 11392 freebsd[23].*) objformat=aout ;; 11393 *) objformat=elf ;; 11394 esac 11395 fi 11396 version_type=freebsd-$objformat 11397 case $version_type in 11398 freebsd-elf*) 11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11400 soname_spec='$libname$release$shared_ext$major' 11401 need_version=no 11402 need_lib_prefix=no 11403 ;; 11404 freebsd-*) 11405 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11406 need_version=yes 11407 ;; 11408 esac 11409 shlibpath_var=LD_LIBRARY_PATH 11410 case $host_os in 11411 freebsd2.*) 11412 shlibpath_overrides_runpath=yes 11413 ;; 11414 freebsd3.[01]* | freebsdelf3.[01]*) 11415 shlibpath_overrides_runpath=yes 11416 hardcode_into_libs=yes 11417 ;; 11418 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11419 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11420 shlibpath_overrides_runpath=no 11421 hardcode_into_libs=yes 11422 ;; 11423 *) # from 4.6 on, and DragonFly 11424 shlibpath_overrides_runpath=yes 11425 hardcode_into_libs=yes 11426 ;; 11427 esac 11428 ;; 11429 11430haiku*) 11431 version_type=linux # correct to gnu/linux during the next big refactor 11432 need_lib_prefix=no 11433 need_version=no 11434 dynamic_linker="$host_os runtime_loader" 11435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11436 soname_spec='$libname$release$shared_ext$major' 11437 shlibpath_var=LIBRARY_PATH 11438 shlibpath_overrides_runpath=no 11439 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11440 hardcode_into_libs=yes 11441 ;; 11442 11443hpux9* | hpux10* | hpux11*) 11444 # Give a soname corresponding to the major version so that dld.sl refuses to 11445 # link against other versions. 11446 version_type=sunos 11447 need_lib_prefix=no 11448 need_version=no 11449 case $host_cpu in 11450 ia64*) 11451 shrext_cmds='.so' 11452 hardcode_into_libs=yes 11453 dynamic_linker="$host_os dld.so" 11454 shlibpath_var=LD_LIBRARY_PATH 11455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11457 soname_spec='$libname$release$shared_ext$major' 11458 if test 32 = "$HPUX_IA64_MODE"; then 11459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11460 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11461 else 11462 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11463 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11464 fi 11465 ;; 11466 hppa*64*) 11467 shrext_cmds='.sl' 11468 hardcode_into_libs=yes 11469 dynamic_linker="$host_os dld.sl" 11470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11473 soname_spec='$libname$release$shared_ext$major' 11474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11476 ;; 11477 *) 11478 shrext_cmds='.sl' 11479 dynamic_linker="$host_os dld.sl" 11480 shlibpath_var=SHLIB_PATH 11481 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11483 soname_spec='$libname$release$shared_ext$major' 11484 ;; 11485 esac 11486 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11487 postinstall_cmds='chmod 555 $lib' 11488 # or fails outright, so override atomically: 11489 install_override_mode=555 11490 ;; 11491 11492interix[3-9]*) 11493 version_type=linux # correct to gnu/linux during the next big refactor 11494 need_lib_prefix=no 11495 need_version=no 11496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11497 soname_spec='$libname$release$shared_ext$major' 11498 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11499 shlibpath_var=LD_LIBRARY_PATH 11500 shlibpath_overrides_runpath=no 11501 hardcode_into_libs=yes 11502 ;; 11503 11504irix5* | irix6* | nonstopux*) 11505 case $host_os in 11506 nonstopux*) version_type=nonstopux ;; 11507 *) 11508 if test yes = "$lt_cv_prog_gnu_ld"; then 11509 version_type=linux # correct to gnu/linux during the next big refactor 11510 else 11511 version_type=irix 11512 fi ;; 11513 esac 11514 need_lib_prefix=no 11515 need_version=no 11516 soname_spec='$libname$release$shared_ext$major' 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11518 case $host_os in 11519 irix5* | nonstopux*) 11520 libsuff= shlibsuff= 11521 ;; 11522 *) 11523 case $LD in # libtool.m4 will add one of these switches to LD 11524 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11525 libsuff= shlibsuff= libmagic=32-bit;; 11526 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11527 libsuff=32 shlibsuff=N32 libmagic=N32;; 11528 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11529 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11530 *) libsuff= shlibsuff= libmagic=never-match;; 11531 esac 11532 ;; 11533 esac 11534 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11535 shlibpath_overrides_runpath=no 11536 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11537 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11538 hardcode_into_libs=yes 11539 ;; 11540 11541# No shared lib support for Linux oldld, aout, or coff. 11542linux*oldld* | linux*aout* | linux*coff*) 11543 dynamic_linker=no 11544 ;; 11545 11546linux*android*) 11547 version_type=none # Android doesn't support versioned libraries. 11548 need_lib_prefix=no 11549 need_version=no 11550 library_names_spec='$libname$release$shared_ext' 11551 soname_spec='$libname$release$shared_ext' 11552 finish_cmds= 11553 shlibpath_var=LD_LIBRARY_PATH 11554 shlibpath_overrides_runpath=yes 11555 11556 # This implies no fast_install, which is unacceptable. 11557 # Some rework will be needed to allow for fast_install 11558 # before this can be enabled. 11559 hardcode_into_libs=yes 11560 11561 dynamic_linker='Android linker' 11562 # Don't embed -rpath directories since the linker doesn't support them. 11563 hardcode_libdir_flag_spec='-L$libdir' 11564 ;; 11565 11566# This must be glibc/ELF. 11567linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11568 version_type=linux # correct to gnu/linux during the next big refactor 11569 need_lib_prefix=no 11570 need_version=no 11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11572 soname_spec='$libname$release$shared_ext$major' 11573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11574 shlibpath_var=LD_LIBRARY_PATH 11575 shlibpath_overrides_runpath=no 11576 11577 # Some binutils ld are patched to set DT_RUNPATH 11578 if test ${lt_cv_shlibpath_overrides_runpath+y} 11579then : 11580 printf %s "(cached) " >&6 11581else $as_nop 11582 lt_cv_shlibpath_overrides_runpath=no 11583 save_LDFLAGS=$LDFLAGS 11584 save_libdir=$libdir 11585 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11586 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11588/* end confdefs.h. */ 11589 11590int 11591main (void) 11592{ 11593 11594 ; 11595 return 0; 11596} 11597_ACEOF 11598if ac_fn_c_try_link "$LINENO" 11599then : 11600 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11601then : 11602 lt_cv_shlibpath_overrides_runpath=yes 11603fi 11604fi 11605rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11606 conftest$ac_exeext conftest.$ac_ext 11607 LDFLAGS=$save_LDFLAGS 11608 libdir=$save_libdir 11609 11610fi 11611 11612 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11613 11614 # This implies no fast_install, which is unacceptable. 11615 # Some rework will be needed to allow for fast_install 11616 # before this can be enabled. 11617 hardcode_into_libs=yes 11618 11619 # Ideally, we could use ldconfig to report *all* directores which are 11620 # searched for libraries, however this is still not possible. Aside from not 11621 # being certain /sbin/ldconfig is available, command 11622 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11623 # even though it is searched at run-time. Try to do the best guess by 11624 # appending ld.so.conf contents (and includes) to the search path. 11625 if test -f /etc/ld.so.conf; then 11626 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' ' '` 11627 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11628 fi 11629 11630 # We used to test for /lib/ld.so.1 and disable shared libraries on 11631 # powerpc, because MkLinux only supported shared libraries with the 11632 # GNU dynamic linker. Since this was broken with cross compilers, 11633 # most powerpc-linux boxes support dynamic linking these days and 11634 # people can always --disable-shared, the test was removed, and we 11635 # assume the GNU/Linux dynamic linker is in use. 11636 dynamic_linker='GNU/Linux ld.so' 11637 ;; 11638 11639netbsd*) 11640 version_type=sunos 11641 need_lib_prefix=no 11642 need_version=no 11643 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11644 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11646 dynamic_linker='NetBSD (a.out) ld.so' 11647 else 11648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11649 soname_spec='$libname$release$shared_ext$major' 11650 dynamic_linker='NetBSD ld.elf_so' 11651 fi 11652 shlibpath_var=LD_LIBRARY_PATH 11653 shlibpath_overrides_runpath=yes 11654 hardcode_into_libs=yes 11655 ;; 11656 11657newsos6) 11658 version_type=linux # correct to gnu/linux during the next big refactor 11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11660 shlibpath_var=LD_LIBRARY_PATH 11661 shlibpath_overrides_runpath=yes 11662 ;; 11663 11664*nto* | *qnx*) 11665 version_type=qnx 11666 need_lib_prefix=no 11667 need_version=no 11668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11669 soname_spec='$libname$release$shared_ext$major' 11670 shlibpath_var=LD_LIBRARY_PATH 11671 shlibpath_overrides_runpath=no 11672 hardcode_into_libs=yes 11673 dynamic_linker='ldqnx.so' 11674 ;; 11675 11676openbsd* | bitrig*) 11677 version_type=sunos 11678 sys_lib_dlsearch_path_spec=/usr/lib 11679 need_lib_prefix=no 11680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11681 need_version=no 11682 else 11683 need_version=yes 11684 fi 11685 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11687 shlibpath_var=LD_LIBRARY_PATH 11688 shlibpath_overrides_runpath=yes 11689 ;; 11690 11691os2*) 11692 libname_spec='$name' 11693 version_type=windows 11694 shrext_cmds=.dll 11695 need_version=no 11696 need_lib_prefix=no 11697 # OS/2 can only load a DLL with a base name of 8 characters or less. 11698 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11699 v=$($ECHO $release$versuffix | tr -d .-); 11700 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11701 $ECHO $n$v`$shared_ext' 11702 library_names_spec='${libname}_dll.$libext' 11703 dynamic_linker='OS/2 ld.exe' 11704 shlibpath_var=BEGINLIBPATH 11705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11706 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11707 postinstall_cmds='base_file=`basename \$file`~ 11708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11709 dldir=$destdir/`dirname \$dlpath`~ 11710 test -d \$dldir || mkdir -p \$dldir~ 11711 $install_prog $dir/$dlname \$dldir/$dlname~ 11712 chmod a+x \$dldir/$dlname~ 11713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11714 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11715 fi' 11716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11717 dlpath=$dir/\$dldll~ 11718 $RM \$dlpath' 11719 ;; 11720 11721osf3* | osf4* | osf5*) 11722 version_type=osf 11723 need_lib_prefix=no 11724 need_version=no 11725 soname_spec='$libname$release$shared_ext$major' 11726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11727 shlibpath_var=LD_LIBRARY_PATH 11728 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11730 ;; 11731 11732rdos*) 11733 dynamic_linker=no 11734 ;; 11735 11736solaris*) 11737 version_type=linux # correct to gnu/linux during the next big refactor 11738 need_lib_prefix=no 11739 need_version=no 11740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11741 soname_spec='$libname$release$shared_ext$major' 11742 shlibpath_var=LD_LIBRARY_PATH 11743 shlibpath_overrides_runpath=yes 11744 hardcode_into_libs=yes 11745 # ldd complains unless libraries are executable 11746 postinstall_cmds='chmod +x $lib' 11747 ;; 11748 11749sunos4*) 11750 version_type=sunos 11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11753 shlibpath_var=LD_LIBRARY_PATH 11754 shlibpath_overrides_runpath=yes 11755 if test yes = "$with_gnu_ld"; then 11756 need_lib_prefix=no 11757 fi 11758 need_version=yes 11759 ;; 11760 11761sysv4 | sysv4.3*) 11762 version_type=linux # correct to gnu/linux during the next big refactor 11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11764 soname_spec='$libname$release$shared_ext$major' 11765 shlibpath_var=LD_LIBRARY_PATH 11766 case $host_vendor in 11767 sni) 11768 shlibpath_overrides_runpath=no 11769 need_lib_prefix=no 11770 runpath_var=LD_RUN_PATH 11771 ;; 11772 siemens) 11773 need_lib_prefix=no 11774 ;; 11775 motorola) 11776 need_lib_prefix=no 11777 need_version=no 11778 shlibpath_overrides_runpath=no 11779 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11780 ;; 11781 esac 11782 ;; 11783 11784sysv4*MP*) 11785 if test -d /usr/nec; then 11786 version_type=linux # correct to gnu/linux during the next big refactor 11787 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11788 soname_spec='$libname$shared_ext.$major' 11789 shlibpath_var=LD_LIBRARY_PATH 11790 fi 11791 ;; 11792 11793sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11794 version_type=sco 11795 need_lib_prefix=no 11796 need_version=no 11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11798 soname_spec='$libname$release$shared_ext$major' 11799 shlibpath_var=LD_LIBRARY_PATH 11800 shlibpath_overrides_runpath=yes 11801 hardcode_into_libs=yes 11802 if test yes = "$with_gnu_ld"; then 11803 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11804 else 11805 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11806 case $host_os in 11807 sco3.2v5*) 11808 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11809 ;; 11810 esac 11811 fi 11812 sys_lib_dlsearch_path_spec='/usr/lib' 11813 ;; 11814 11815tpf*) 11816 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11817 version_type=linux # correct to gnu/linux during the next big refactor 11818 need_lib_prefix=no 11819 need_version=no 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11821 shlibpath_var=LD_LIBRARY_PATH 11822 shlibpath_overrides_runpath=no 11823 hardcode_into_libs=yes 11824 ;; 11825 11826uts4*) 11827 version_type=linux # correct to gnu/linux during the next big refactor 11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11829 soname_spec='$libname$release$shared_ext$major' 11830 shlibpath_var=LD_LIBRARY_PATH 11831 ;; 11832 11833*) 11834 dynamic_linker=no 11835 ;; 11836esac 11837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11838printf "%s\n" "$dynamic_linker" >&6; } 11839test no = "$dynamic_linker" && can_build_shared=no 11840 11841variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11842if test yes = "$GCC"; then 11843 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11844fi 11845 11846if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11847 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11848fi 11849 11850if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11851 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11852fi 11853 11854# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11855configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11856 11857# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11858func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11859 11860# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11861configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11960printf %s "checking how to hardcode library paths into programs... " >&6; } 11961hardcode_action= 11962if test -n "$hardcode_libdir_flag_spec" || 11963 test -n "$runpath_var" || 11964 test yes = "$hardcode_automatic"; then 11965 11966 # We can hardcode non-existent directories. 11967 if test no != "$hardcode_direct" && 11968 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11969 # have to relink, otherwise we might link with an installed library 11970 # when we should be linking with a yet-to-be-installed one 11971 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11972 test no != "$hardcode_minus_L"; then 11973 # Linking always hardcodes the temporary library directory. 11974 hardcode_action=relink 11975 else 11976 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11977 hardcode_action=immediate 11978 fi 11979else 11980 # We cannot hardcode anything, or else we can only hardcode existing 11981 # directories. 11982 hardcode_action=unsupported 11983fi 11984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11985printf "%s\n" "$hardcode_action" >&6; } 11986 11987if test relink = "$hardcode_action" || 11988 test yes = "$inherit_rpath"; then 11989 # Fast installation is not supported 11990 enable_fast_install=no 11991elif test yes = "$shlibpath_overrides_runpath" || 11992 test no = "$enable_shared"; then 11993 # Fast installation is not necessary 11994 enable_fast_install=needless 11995fi 11996 11997 11998 11999 12000 12001 12002 if test yes != "$enable_dlopen"; then 12003 enable_dlopen=unknown 12004 enable_dlopen_self=unknown 12005 enable_dlopen_self_static=unknown 12006else 12007 lt_cv_dlopen=no 12008 lt_cv_dlopen_libs= 12009 12010 case $host_os in 12011 beos*) 12012 lt_cv_dlopen=load_add_on 12013 lt_cv_dlopen_libs= 12014 lt_cv_dlopen_self=yes 12015 ;; 12016 12017 mingw* | pw32* | cegcc*) 12018 lt_cv_dlopen=LoadLibrary 12019 lt_cv_dlopen_libs= 12020 ;; 12021 12022 cygwin*) 12023 lt_cv_dlopen=dlopen 12024 lt_cv_dlopen_libs= 12025 ;; 12026 12027 darwin*) 12028 # if libdl is installed we need to link against it 12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12030printf %s "checking for dlopen in -ldl... " >&6; } 12031if test ${ac_cv_lib_dl_dlopen+y} 12032then : 12033 printf %s "(cached) " >&6 12034else $as_nop 12035 ac_check_lib_save_LIBS=$LIBS 12036LIBS="-ldl $LIBS" 12037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12038/* end confdefs.h. */ 12039 12040/* Override any GCC internal prototype to avoid an error. 12041 Use char because int might match the return type of a GCC 12042 builtin and then its argument prototype would still apply. */ 12043char dlopen (); 12044int 12045main (void) 12046{ 12047return dlopen (); 12048 ; 12049 return 0; 12050} 12051_ACEOF 12052if ac_fn_c_try_link "$LINENO" 12053then : 12054 ac_cv_lib_dl_dlopen=yes 12055else $as_nop 12056 ac_cv_lib_dl_dlopen=no 12057fi 12058rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12059 conftest$ac_exeext conftest.$ac_ext 12060LIBS=$ac_check_lib_save_LIBS 12061fi 12062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12063printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12064if test "x$ac_cv_lib_dl_dlopen" = xyes 12065then : 12066 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12067else $as_nop 12068 12069 lt_cv_dlopen=dyld 12070 lt_cv_dlopen_libs= 12071 lt_cv_dlopen_self=yes 12072 12073fi 12074 12075 ;; 12076 12077 tpf*) 12078 # Don't try to run any link tests for TPF. We know it's impossible 12079 # because TPF is a cross-compiler, and we know how we open DSOs. 12080 lt_cv_dlopen=dlopen 12081 lt_cv_dlopen_libs= 12082 lt_cv_dlopen_self=no 12083 ;; 12084 12085 *) 12086 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12087if test "x$ac_cv_func_shl_load" = xyes 12088then : 12089 lt_cv_dlopen=shl_load 12090else $as_nop 12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12092printf %s "checking for shl_load in -ldld... " >&6; } 12093if test ${ac_cv_lib_dld_shl_load+y} 12094then : 12095 printf %s "(cached) " >&6 12096else $as_nop 12097 ac_check_lib_save_LIBS=$LIBS 12098LIBS="-ldld $LIBS" 12099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12100/* end confdefs.h. */ 12101 12102/* Override any GCC internal prototype to avoid an error. 12103 Use char because int might match the return type of a GCC 12104 builtin and then its argument prototype would still apply. */ 12105char shl_load (); 12106int 12107main (void) 12108{ 12109return shl_load (); 12110 ; 12111 return 0; 12112} 12113_ACEOF 12114if ac_fn_c_try_link "$LINENO" 12115then : 12116 ac_cv_lib_dld_shl_load=yes 12117else $as_nop 12118 ac_cv_lib_dld_shl_load=no 12119fi 12120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12121 conftest$ac_exeext conftest.$ac_ext 12122LIBS=$ac_check_lib_save_LIBS 12123fi 12124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12125printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12126if test "x$ac_cv_lib_dld_shl_load" = xyes 12127then : 12128 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12129else $as_nop 12130 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12131if test "x$ac_cv_func_dlopen" = xyes 12132then : 12133 lt_cv_dlopen=dlopen 12134else $as_nop 12135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12136printf %s "checking for dlopen in -ldl... " >&6; } 12137if test ${ac_cv_lib_dl_dlopen+y} 12138then : 12139 printf %s "(cached) " >&6 12140else $as_nop 12141 ac_check_lib_save_LIBS=$LIBS 12142LIBS="-ldl $LIBS" 12143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12144/* end confdefs.h. */ 12145 12146/* Override any GCC internal prototype to avoid an error. 12147 Use char because int might match the return type of a GCC 12148 builtin and then its argument prototype would still apply. */ 12149char dlopen (); 12150int 12151main (void) 12152{ 12153return dlopen (); 12154 ; 12155 return 0; 12156} 12157_ACEOF 12158if ac_fn_c_try_link "$LINENO" 12159then : 12160 ac_cv_lib_dl_dlopen=yes 12161else $as_nop 12162 ac_cv_lib_dl_dlopen=no 12163fi 12164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12165 conftest$ac_exeext conftest.$ac_ext 12166LIBS=$ac_check_lib_save_LIBS 12167fi 12168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12169printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12170if test "x$ac_cv_lib_dl_dlopen" = xyes 12171then : 12172 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12173else $as_nop 12174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12175printf %s "checking for dlopen in -lsvld... " >&6; } 12176if test ${ac_cv_lib_svld_dlopen+y} 12177then : 12178 printf %s "(cached) " >&6 12179else $as_nop 12180 ac_check_lib_save_LIBS=$LIBS 12181LIBS="-lsvld $LIBS" 12182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12183/* end confdefs.h. */ 12184 12185/* Override any GCC internal prototype to avoid an error. 12186 Use char because int might match the return type of a GCC 12187 builtin and then its argument prototype would still apply. */ 12188char dlopen (); 12189int 12190main (void) 12191{ 12192return dlopen (); 12193 ; 12194 return 0; 12195} 12196_ACEOF 12197if ac_fn_c_try_link "$LINENO" 12198then : 12199 ac_cv_lib_svld_dlopen=yes 12200else $as_nop 12201 ac_cv_lib_svld_dlopen=no 12202fi 12203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12204 conftest$ac_exeext conftest.$ac_ext 12205LIBS=$ac_check_lib_save_LIBS 12206fi 12207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12208printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12209if test "x$ac_cv_lib_svld_dlopen" = xyes 12210then : 12211 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12212else $as_nop 12213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12214printf %s "checking for dld_link in -ldld... " >&6; } 12215if test ${ac_cv_lib_dld_dld_link+y} 12216then : 12217 printf %s "(cached) " >&6 12218else $as_nop 12219 ac_check_lib_save_LIBS=$LIBS 12220LIBS="-ldld $LIBS" 12221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12222/* end confdefs.h. */ 12223 12224/* Override any GCC internal prototype to avoid an error. 12225 Use char because int might match the return type of a GCC 12226 builtin and then its argument prototype would still apply. */ 12227char dld_link (); 12228int 12229main (void) 12230{ 12231return dld_link (); 12232 ; 12233 return 0; 12234} 12235_ACEOF 12236if ac_fn_c_try_link "$LINENO" 12237then : 12238 ac_cv_lib_dld_dld_link=yes 12239else $as_nop 12240 ac_cv_lib_dld_dld_link=no 12241fi 12242rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12243 conftest$ac_exeext conftest.$ac_ext 12244LIBS=$ac_check_lib_save_LIBS 12245fi 12246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12247printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12248if test "x$ac_cv_lib_dld_dld_link" = xyes 12249then : 12250 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12251fi 12252 12253 12254fi 12255 12256 12257fi 12258 12259 12260fi 12261 12262 12263fi 12264 12265 12266fi 12267 12268 ;; 12269 esac 12270 12271 if test no = "$lt_cv_dlopen"; then 12272 enable_dlopen=no 12273 else 12274 enable_dlopen=yes 12275 fi 12276 12277 case $lt_cv_dlopen in 12278 dlopen) 12279 save_CPPFLAGS=$CPPFLAGS 12280 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12281 12282 save_LDFLAGS=$LDFLAGS 12283 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12284 12285 save_LIBS=$LIBS 12286 LIBS="$lt_cv_dlopen_libs $LIBS" 12287 12288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12289printf %s "checking whether a program can dlopen itself... " >&6; } 12290if test ${lt_cv_dlopen_self+y} 12291then : 12292 printf %s "(cached) " >&6 12293else $as_nop 12294 if test yes = "$cross_compiling"; then : 12295 lt_cv_dlopen_self=cross 12296else 12297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12298 lt_status=$lt_dlunknown 12299 cat > conftest.$ac_ext <<_LT_EOF 12300#line $LINENO "configure" 12301#include "confdefs.h" 12302 12303#if HAVE_DLFCN_H 12304#include <dlfcn.h> 12305#endif 12306 12307#include <stdio.h> 12308 12309#ifdef RTLD_GLOBAL 12310# define LT_DLGLOBAL RTLD_GLOBAL 12311#else 12312# ifdef DL_GLOBAL 12313# define LT_DLGLOBAL DL_GLOBAL 12314# else 12315# define LT_DLGLOBAL 0 12316# endif 12317#endif 12318 12319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12320 find out it does not work in some platform. */ 12321#ifndef LT_DLLAZY_OR_NOW 12322# ifdef RTLD_LAZY 12323# define LT_DLLAZY_OR_NOW RTLD_LAZY 12324# else 12325# ifdef DL_LAZY 12326# define LT_DLLAZY_OR_NOW DL_LAZY 12327# else 12328# ifdef RTLD_NOW 12329# define LT_DLLAZY_OR_NOW RTLD_NOW 12330# else 12331# ifdef DL_NOW 12332# define LT_DLLAZY_OR_NOW DL_NOW 12333# else 12334# define LT_DLLAZY_OR_NOW 0 12335# endif 12336# endif 12337# endif 12338# endif 12339#endif 12340 12341/* When -fvisibility=hidden is used, assume the code has been annotated 12342 correspondingly for the symbols needed. */ 12343#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12344int fnord () __attribute__((visibility("default"))); 12345#endif 12346 12347int fnord () { return 42; } 12348int main () 12349{ 12350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12351 int status = $lt_dlunknown; 12352 12353 if (self) 12354 { 12355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12356 else 12357 { 12358 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12359 else puts (dlerror ()); 12360 } 12361 /* dlclose (self); */ 12362 } 12363 else 12364 puts (dlerror ()); 12365 12366 return status; 12367} 12368_LT_EOF 12369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12370 (eval $ac_link) 2>&5 12371 ac_status=$? 12372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12373 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12374 (./conftest; exit; ) >&5 2>/dev/null 12375 lt_status=$? 12376 case x$lt_status in 12377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12379 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12380 esac 12381 else : 12382 # compilation failed 12383 lt_cv_dlopen_self=no 12384 fi 12385fi 12386rm -fr conftest* 12387 12388 12389fi 12390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12391printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12392 12393 if test yes = "$lt_cv_dlopen_self"; then 12394 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12396printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12397if test ${lt_cv_dlopen_self_static+y} 12398then : 12399 printf %s "(cached) " >&6 12400else $as_nop 12401 if test yes = "$cross_compiling"; then : 12402 lt_cv_dlopen_self_static=cross 12403else 12404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12405 lt_status=$lt_dlunknown 12406 cat > conftest.$ac_ext <<_LT_EOF 12407#line $LINENO "configure" 12408#include "confdefs.h" 12409 12410#if HAVE_DLFCN_H 12411#include <dlfcn.h> 12412#endif 12413 12414#include <stdio.h> 12415 12416#ifdef RTLD_GLOBAL 12417# define LT_DLGLOBAL RTLD_GLOBAL 12418#else 12419# ifdef DL_GLOBAL 12420# define LT_DLGLOBAL DL_GLOBAL 12421# else 12422# define LT_DLGLOBAL 0 12423# endif 12424#endif 12425 12426/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12427 find out it does not work in some platform. */ 12428#ifndef LT_DLLAZY_OR_NOW 12429# ifdef RTLD_LAZY 12430# define LT_DLLAZY_OR_NOW RTLD_LAZY 12431# else 12432# ifdef DL_LAZY 12433# define LT_DLLAZY_OR_NOW DL_LAZY 12434# else 12435# ifdef RTLD_NOW 12436# define LT_DLLAZY_OR_NOW RTLD_NOW 12437# else 12438# ifdef DL_NOW 12439# define LT_DLLAZY_OR_NOW DL_NOW 12440# else 12441# define LT_DLLAZY_OR_NOW 0 12442# endif 12443# endif 12444# endif 12445# endif 12446#endif 12447 12448/* When -fvisibility=hidden is used, assume the code has been annotated 12449 correspondingly for the symbols needed. */ 12450#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12451int fnord () __attribute__((visibility("default"))); 12452#endif 12453 12454int fnord () { return 42; } 12455int main () 12456{ 12457 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12458 int status = $lt_dlunknown; 12459 12460 if (self) 12461 { 12462 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12463 else 12464 { 12465 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12466 else puts (dlerror ()); 12467 } 12468 /* dlclose (self); */ 12469 } 12470 else 12471 puts (dlerror ()); 12472 12473 return status; 12474} 12475_LT_EOF 12476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12477 (eval $ac_link) 2>&5 12478 ac_status=$? 12479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12480 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12481 (./conftest; exit; ) >&5 2>/dev/null 12482 lt_status=$? 12483 case x$lt_status in 12484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12486 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12487 esac 12488 else : 12489 # compilation failed 12490 lt_cv_dlopen_self_static=no 12491 fi 12492fi 12493rm -fr conftest* 12494 12495 12496fi 12497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12498printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12499 fi 12500 12501 CPPFLAGS=$save_CPPFLAGS 12502 LDFLAGS=$save_LDFLAGS 12503 LIBS=$save_LIBS 12504 ;; 12505 esac 12506 12507 case $lt_cv_dlopen_self in 12508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12509 *) enable_dlopen_self=unknown ;; 12510 esac 12511 12512 case $lt_cv_dlopen_self_static in 12513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12514 *) enable_dlopen_self_static=unknown ;; 12515 esac 12516fi 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534striplib= 12535old_striplib= 12536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12537printf %s "checking whether stripping libraries is possible... " >&6; } 12538if test -z "$STRIP"; then 12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12540printf "%s\n" "no" >&6; } 12541else 12542 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12543 old_striplib="$STRIP --strip-debug" 12544 striplib="$STRIP --strip-unneeded" 12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12546printf "%s\n" "yes" >&6; } 12547 else 12548 case $host_os in 12549 darwin*) 12550 # FIXME - insert some real tests, host_os isn't really good enough 12551 striplib="$STRIP -x" 12552 old_striplib="$STRIP -S" 12553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12554printf "%s\n" "yes" >&6; } 12555 ;; 12556 freebsd*) 12557 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12558 old_striplib="$STRIP --strip-debug" 12559 striplib="$STRIP --strip-unneeded" 12560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12561printf "%s\n" "yes" >&6; } 12562 else 12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12564printf "%s\n" "no" >&6; } 12565 fi 12566 ;; 12567 *) 12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12569printf "%s\n" "no" >&6; } 12570 ;; 12571 esac 12572 fi 12573fi 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 # Report what library types will actually be built 12587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12588printf %s "checking if libtool supports shared libraries... " >&6; } 12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12590printf "%s\n" "$can_build_shared" >&6; } 12591 12592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12593printf %s "checking whether to build shared libraries... " >&6; } 12594 test no = "$can_build_shared" && enable_shared=no 12595 12596 # On AIX, shared libraries and static libraries use the same namespace, and 12597 # are all built from PIC. 12598 case $host_os in 12599 aix3*) 12600 test yes = "$enable_shared" && enable_static=no 12601 if test -n "$RANLIB"; then 12602 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12603 postinstall_cmds='$RANLIB $lib' 12604 fi 12605 ;; 12606 12607 aix[4-9]*) 12608 if test ia64 != "$host_cpu"; then 12609 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12610 yes,aix,yes) ;; # shared object as lib.so file only 12611 yes,svr4,*) ;; # shared object as lib.so archive member only 12612 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12613 esac 12614 fi 12615 ;; 12616 esac 12617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12618printf "%s\n" "$enable_shared" >&6; } 12619 12620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12621printf %s "checking whether to build static libraries... " >&6; } 12622 # Make sure either enable_shared or enable_static is yes. 12623 test yes = "$enable_shared" || enable_static=yes 12624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12625printf "%s\n" "$enable_static" >&6; } 12626 12627 12628 12629 12630fi 12631ac_ext=c 12632ac_cpp='$CPP $CPPFLAGS' 12633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12635ac_compiler_gnu=$ac_cv_c_compiler_gnu 12636 12637CC=$lt_save_CC 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 ac_config_commands="$ac_config_commands libtool" 12654 12655 12656 12657 12658# Only expand once: 12659 12660 12661 12662# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12676printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12677if test ${ac_cv_c_undeclared_builtin_options+y} 12678then : 12679 printf %s "(cached) " >&6 12680else $as_nop 12681 ac_save_CFLAGS=$CFLAGS 12682 ac_cv_c_undeclared_builtin_options='cannot detect' 12683 for ac_arg in '' -fno-builtin; do 12684 CFLAGS="$ac_save_CFLAGS $ac_arg" 12685 # This test program should *not* compile successfully. 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687/* end confdefs.h. */ 12688 12689int 12690main (void) 12691{ 12692(void) strchr; 12693 ; 12694 return 0; 12695} 12696_ACEOF 12697if ac_fn_c_try_compile "$LINENO" 12698then : 12699 12700else $as_nop 12701 # This test program should compile successfully. 12702 # No library function is consistently available on 12703 # freestanding implementations, so test against a dummy 12704 # declaration. Include always-available headers on the 12705 # off chance that they somehow elicit warnings. 12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12707/* end confdefs.h. */ 12708#include <float.h> 12709#include <limits.h> 12710#include <stdarg.h> 12711#include <stddef.h> 12712extern void ac_decl (int, char *); 12713 12714int 12715main (void) 12716{ 12717(void) ac_decl (0, (char *) 0); 12718 (void) ac_decl; 12719 12720 ; 12721 return 0; 12722} 12723_ACEOF 12724if ac_fn_c_try_compile "$LINENO" 12725then : 12726 if test x"$ac_arg" = x 12727then : 12728 ac_cv_c_undeclared_builtin_options='none needed' 12729else $as_nop 12730 ac_cv_c_undeclared_builtin_options=$ac_arg 12731fi 12732 break 12733fi 12734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12735fi 12736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12737 done 12738 CFLAGS=$ac_save_CFLAGS 12739 12740fi 12741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12742printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12743 case $ac_cv_c_undeclared_builtin_options in #( 12744 'cannot detect') : 12745 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12746printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12747as_fn_error $? "cannot make $CC report undeclared builtins 12748See \`config.log' for more details" "$LINENO" 5; } ;; #( 12749 'none needed') : 12750 ac_c_undeclared_builtin_options='' ;; #( 12751 *) : 12752 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12753esac 12754 12755 12756 12757 12758 12759ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12760if test "x$ac_cv_have_decl___clang__" = xyes 12761then : 12762 CLANGCC="yes" 12763else $as_nop 12764 CLANGCC="no" 12765fi 12766ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12767if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12768then : 12769 INTELCC="yes" 12770else $as_nop 12771 INTELCC="no" 12772fi 12773ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12774if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12775then : 12776 SUNCC="yes" 12777else $as_nop 12778 SUNCC="no" 12779fi 12780 12781 12782 12783 12784 12785 12786 12787 12788if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12789 if test -n "$ac_tool_prefix"; then 12790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12791set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12793printf %s "checking for $ac_word... " >&6; } 12794if test ${ac_cv_path_PKG_CONFIG+y} 12795then : 12796 printf %s "(cached) " >&6 12797else $as_nop 12798 case $PKG_CONFIG in 12799 [\\/]* | ?:[\\/]*) 12800 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12801 ;; 12802 *) 12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12804for as_dir in $PATH 12805do 12806 IFS=$as_save_IFS 12807 case $as_dir in #((( 12808 '') as_dir=./ ;; 12809 */) ;; 12810 *) as_dir=$as_dir/ ;; 12811 esac 12812 for ac_exec_ext in '' $ac_executable_extensions; do 12813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12814 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12816 break 2 12817 fi 12818done 12819 done 12820IFS=$as_save_IFS 12821 12822 ;; 12823esac 12824fi 12825PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12826if test -n "$PKG_CONFIG"; then 12827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12828printf "%s\n" "$PKG_CONFIG" >&6; } 12829else 12830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12831printf "%s\n" "no" >&6; } 12832fi 12833 12834 12835fi 12836if test -z "$ac_cv_path_PKG_CONFIG"; then 12837 ac_pt_PKG_CONFIG=$PKG_CONFIG 12838 # Extract the first word of "pkg-config", so it can be a program name with args. 12839set dummy pkg-config; ac_word=$2 12840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12841printf %s "checking for $ac_word... " >&6; } 12842if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12843then : 12844 printf %s "(cached) " >&6 12845else $as_nop 12846 case $ac_pt_PKG_CONFIG in 12847 [\\/]* | ?:[\\/]*) 12848 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12849 ;; 12850 *) 12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12852for as_dir in $PATH 12853do 12854 IFS=$as_save_IFS 12855 case $as_dir in #((( 12856 '') as_dir=./ ;; 12857 */) ;; 12858 *) as_dir=$as_dir/ ;; 12859 esac 12860 for ac_exec_ext in '' $ac_executable_extensions; do 12861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12862 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12864 break 2 12865 fi 12866done 12867 done 12868IFS=$as_save_IFS 12869 12870 ;; 12871esac 12872fi 12873ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12874if test -n "$ac_pt_PKG_CONFIG"; then 12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12876printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12877else 12878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12879printf "%s\n" "no" >&6; } 12880fi 12881 12882 if test "x$ac_pt_PKG_CONFIG" = x; then 12883 PKG_CONFIG="" 12884 else 12885 case $cross_compiling:$ac_tool_warned in 12886yes:) 12887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12888printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12889ac_tool_warned=yes ;; 12890esac 12891 PKG_CONFIG=$ac_pt_PKG_CONFIG 12892 fi 12893else 12894 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12895fi 12896 12897fi 12898if test -n "$PKG_CONFIG"; then 12899 _pkg_min_version=0.9.0 12900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12901printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12904printf "%s\n" "yes" >&6; } 12905 else 12906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12907printf "%s\n" "no" >&6; } 12908 PKG_CONFIG="" 12909 fi 12910fi 12911 12912 12913 12914 12915 12916# Check whether --enable-selective-werror was given. 12917if test ${enable_selective_werror+y} 12918then : 12919 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12920else $as_nop 12921 SELECTIVE_WERROR=yes 12922fi 12923 12924 12925 12926 12927 12928# -v is too short to test reliably with XORG_TESTSET_CFLAG 12929if test "x$SUNCC" = "xyes"; then 12930 BASE_CFLAGS="-v" 12931else 12932 BASE_CFLAGS="" 12933fi 12934 12935# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949xorg_testset_save_CFLAGS="$CFLAGS" 12950 12951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12954printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12955if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12956then : 12957 printf %s "(cached) " >&6 12958else $as_nop 12959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12960/* end confdefs.h. */ 12961int i; 12962_ACEOF 12963if ac_fn_c_try_compile "$LINENO" 12964then : 12965 xorg_cv_cc_flag_unknown_warning_option=yes 12966else $as_nop 12967 xorg_cv_cc_flag_unknown_warning_option=no 12968fi 12969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12970fi 12971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12972printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12974 CFLAGS="$xorg_testset_save_CFLAGS" 12975fi 12976 12977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12980 fi 12981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12983printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12984if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12985then : 12986 printf %s "(cached) " >&6 12987else $as_nop 12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12989/* end confdefs.h. */ 12990int i; 12991_ACEOF 12992if ac_fn_c_try_compile "$LINENO" 12993then : 12994 xorg_cv_cc_flag_unused_command_line_argument=yes 12995else $as_nop 12996 xorg_cv_cc_flag_unused_command_line_argument=no 12997fi 12998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12999fi 13000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13001printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13003 CFLAGS="$xorg_testset_save_CFLAGS" 13004fi 13005 13006found="no" 13007 13008 if test $found = "no" ; then 13009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13011 fi 13012 13013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13015 fi 13016 13017 CFLAGS="$CFLAGS -Wall" 13018 13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13020printf %s "checking if $CC supports -Wall... " >&6; } 13021 cacheid=xorg_cv_cc_flag__Wall 13022 if eval test \${$cacheid+y} 13023then : 13024 printf %s "(cached) " >&6 13025else $as_nop 13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028int i; 13029int 13030main (void) 13031{ 13032 13033 ; 13034 return 0; 13035} 13036_ACEOF 13037if ac_fn_c_try_link "$LINENO" 13038then : 13039 eval $cacheid=yes 13040else $as_nop 13041 eval $cacheid=no 13042fi 13043rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13044 conftest$ac_exeext conftest.$ac_ext 13045fi 13046 13047 13048 CFLAGS="$xorg_testset_save_CFLAGS" 13049 13050 eval supported=\$$cacheid 13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13052printf "%s\n" "$supported" >&6; } 13053 if test "$supported" = "yes" ; then 13054 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13055 found="yes" 13056 fi 13057 fi 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073xorg_testset_save_CFLAGS="$CFLAGS" 13074 13075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13078printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13079if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13080then : 13081 printf %s "(cached) " >&6 13082else $as_nop 13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13084/* end confdefs.h. */ 13085int i; 13086_ACEOF 13087if ac_fn_c_try_compile "$LINENO" 13088then : 13089 xorg_cv_cc_flag_unknown_warning_option=yes 13090else $as_nop 13091 xorg_cv_cc_flag_unknown_warning_option=no 13092fi 13093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13094fi 13095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13096printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13098 CFLAGS="$xorg_testset_save_CFLAGS" 13099fi 13100 13101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13104 fi 13105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13107printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13108if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13109then : 13110 printf %s "(cached) " >&6 13111else $as_nop 13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13113/* end confdefs.h. */ 13114int i; 13115_ACEOF 13116if ac_fn_c_try_compile "$LINENO" 13117then : 13118 xorg_cv_cc_flag_unused_command_line_argument=yes 13119else $as_nop 13120 xorg_cv_cc_flag_unused_command_line_argument=no 13121fi 13122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13123fi 13124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13127 CFLAGS="$xorg_testset_save_CFLAGS" 13128fi 13129 13130found="no" 13131 13132 if test $found = "no" ; then 13133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13135 fi 13136 13137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13139 fi 13140 13141 CFLAGS="$CFLAGS -Wpointer-arith" 13142 13143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13144printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13145 cacheid=xorg_cv_cc_flag__Wpointer_arith 13146 if eval test \${$cacheid+y} 13147then : 13148 printf %s "(cached) " >&6 13149else $as_nop 13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13151/* end confdefs.h. */ 13152int i; 13153int 13154main (void) 13155{ 13156 13157 ; 13158 return 0; 13159} 13160_ACEOF 13161if ac_fn_c_try_link "$LINENO" 13162then : 13163 eval $cacheid=yes 13164else $as_nop 13165 eval $cacheid=no 13166fi 13167rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13168 conftest$ac_exeext conftest.$ac_ext 13169fi 13170 13171 13172 CFLAGS="$xorg_testset_save_CFLAGS" 13173 13174 eval supported=\$$cacheid 13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13176printf "%s\n" "$supported" >&6; } 13177 if test "$supported" = "yes" ; then 13178 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13179 found="yes" 13180 fi 13181 fi 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197xorg_testset_save_CFLAGS="$CFLAGS" 13198 13199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13202printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13203if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13204then : 13205 printf %s "(cached) " >&6 13206else $as_nop 13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13208/* end confdefs.h. */ 13209int i; 13210_ACEOF 13211if ac_fn_c_try_compile "$LINENO" 13212then : 13213 xorg_cv_cc_flag_unknown_warning_option=yes 13214else $as_nop 13215 xorg_cv_cc_flag_unknown_warning_option=no 13216fi 13217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13218fi 13219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13220printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13222 CFLAGS="$xorg_testset_save_CFLAGS" 13223fi 13224 13225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13228 fi 13229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13231printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13232if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13233then : 13234 printf %s "(cached) " >&6 13235else $as_nop 13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13237/* end confdefs.h. */ 13238int i; 13239_ACEOF 13240if ac_fn_c_try_compile "$LINENO" 13241then : 13242 xorg_cv_cc_flag_unused_command_line_argument=yes 13243else $as_nop 13244 xorg_cv_cc_flag_unused_command_line_argument=no 13245fi 13246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13247fi 13248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13249printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13251 CFLAGS="$xorg_testset_save_CFLAGS" 13252fi 13253 13254found="no" 13255 13256 if test $found = "no" ; then 13257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13259 fi 13260 13261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13263 fi 13264 13265 CFLAGS="$CFLAGS -Wmissing-declarations" 13266 13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13268printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13269 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13270 if eval test \${$cacheid+y} 13271then : 13272 printf %s "(cached) " >&6 13273else $as_nop 13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13275/* end confdefs.h. */ 13276int i; 13277int 13278main (void) 13279{ 13280 13281 ; 13282 return 0; 13283} 13284_ACEOF 13285if ac_fn_c_try_link "$LINENO" 13286then : 13287 eval $cacheid=yes 13288else $as_nop 13289 eval $cacheid=no 13290fi 13291rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13292 conftest$ac_exeext conftest.$ac_ext 13293fi 13294 13295 13296 CFLAGS="$xorg_testset_save_CFLAGS" 13297 13298 eval supported=\$$cacheid 13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13300printf "%s\n" "$supported" >&6; } 13301 if test "$supported" = "yes" ; then 13302 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13303 found="yes" 13304 fi 13305 fi 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321xorg_testset_save_CFLAGS="$CFLAGS" 13322 13323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13326printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13327if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13328then : 13329 printf %s "(cached) " >&6 13330else $as_nop 13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13332/* end confdefs.h. */ 13333int i; 13334_ACEOF 13335if ac_fn_c_try_compile "$LINENO" 13336then : 13337 xorg_cv_cc_flag_unknown_warning_option=yes 13338else $as_nop 13339 xorg_cv_cc_flag_unknown_warning_option=no 13340fi 13341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13342fi 13343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13344printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13346 CFLAGS="$xorg_testset_save_CFLAGS" 13347fi 13348 13349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13352 fi 13353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13355printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13356if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13357then : 13358 printf %s "(cached) " >&6 13359else $as_nop 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361/* end confdefs.h. */ 13362int i; 13363_ACEOF 13364if ac_fn_c_try_compile "$LINENO" 13365then : 13366 xorg_cv_cc_flag_unused_command_line_argument=yes 13367else $as_nop 13368 xorg_cv_cc_flag_unused_command_line_argument=no 13369fi 13370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13371fi 13372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13373printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13375 CFLAGS="$xorg_testset_save_CFLAGS" 13376fi 13377 13378found="no" 13379 13380 if test $found = "no" ; then 13381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13383 fi 13384 13385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13387 fi 13388 13389 CFLAGS="$CFLAGS -Wformat=2" 13390 13391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13392printf %s "checking if $CC supports -Wformat=2... " >&6; } 13393 cacheid=xorg_cv_cc_flag__Wformat_2 13394 if eval test \${$cacheid+y} 13395then : 13396 printf %s "(cached) " >&6 13397else $as_nop 13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13399/* end confdefs.h. */ 13400int i; 13401int 13402main (void) 13403{ 13404 13405 ; 13406 return 0; 13407} 13408_ACEOF 13409if ac_fn_c_try_link "$LINENO" 13410then : 13411 eval $cacheid=yes 13412else $as_nop 13413 eval $cacheid=no 13414fi 13415rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13416 conftest$ac_exeext conftest.$ac_ext 13417fi 13418 13419 13420 CFLAGS="$xorg_testset_save_CFLAGS" 13421 13422 eval supported=\$$cacheid 13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13424printf "%s\n" "$supported" >&6; } 13425 if test "$supported" = "yes" ; then 13426 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13427 found="yes" 13428 fi 13429 fi 13430 13431 if test $found = "no" ; then 13432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13434 fi 13435 13436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13438 fi 13439 13440 CFLAGS="$CFLAGS -Wformat" 13441 13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13443printf %s "checking if $CC supports -Wformat... " >&6; } 13444 cacheid=xorg_cv_cc_flag__Wformat 13445 if eval test \${$cacheid+y} 13446then : 13447 printf %s "(cached) " >&6 13448else $as_nop 13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13450/* end confdefs.h. */ 13451int i; 13452int 13453main (void) 13454{ 13455 13456 ; 13457 return 0; 13458} 13459_ACEOF 13460if ac_fn_c_try_link "$LINENO" 13461then : 13462 eval $cacheid=yes 13463else $as_nop 13464 eval $cacheid=no 13465fi 13466rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13467 conftest$ac_exeext conftest.$ac_ext 13468fi 13469 13470 13471 CFLAGS="$xorg_testset_save_CFLAGS" 13472 13473 eval supported=\$$cacheid 13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13475printf "%s\n" "$supported" >&6; } 13476 if test "$supported" = "yes" ; then 13477 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13478 found="yes" 13479 fi 13480 fi 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498xorg_testset_save_CFLAGS="$CFLAGS" 13499 13500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13504if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13505then : 13506 printf %s "(cached) " >&6 13507else $as_nop 13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13509/* end confdefs.h. */ 13510int i; 13511_ACEOF 13512if ac_fn_c_try_compile "$LINENO" 13513then : 13514 xorg_cv_cc_flag_unknown_warning_option=yes 13515else $as_nop 13516 xorg_cv_cc_flag_unknown_warning_option=no 13517fi 13518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13519fi 13520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13523 CFLAGS="$xorg_testset_save_CFLAGS" 13524fi 13525 13526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13529 fi 13530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13533if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13534then : 13535 printf %s "(cached) " >&6 13536else $as_nop 13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13538/* end confdefs.h. */ 13539int i; 13540_ACEOF 13541if ac_fn_c_try_compile "$LINENO" 13542then : 13543 xorg_cv_cc_flag_unused_command_line_argument=yes 13544else $as_nop 13545 xorg_cv_cc_flag_unused_command_line_argument=no 13546fi 13547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13548fi 13549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13552 CFLAGS="$xorg_testset_save_CFLAGS" 13553fi 13554 13555found="no" 13556 13557 if test $found = "no" ; then 13558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13560 fi 13561 13562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13564 fi 13565 13566 CFLAGS="$CFLAGS -Wstrict-prototypes" 13567 13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13569printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13570 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13571 if eval test \${$cacheid+y} 13572then : 13573 printf %s "(cached) " >&6 13574else $as_nop 13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13576/* end confdefs.h. */ 13577int i; 13578int 13579main (void) 13580{ 13581 13582 ; 13583 return 0; 13584} 13585_ACEOF 13586if ac_fn_c_try_link "$LINENO" 13587then : 13588 eval $cacheid=yes 13589else $as_nop 13590 eval $cacheid=no 13591fi 13592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13593 conftest$ac_exeext conftest.$ac_ext 13594fi 13595 13596 13597 CFLAGS="$xorg_testset_save_CFLAGS" 13598 13599 eval supported=\$$cacheid 13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13601printf "%s\n" "$supported" >&6; } 13602 if test "$supported" = "yes" ; then 13603 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13604 found="yes" 13605 fi 13606 fi 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622xorg_testset_save_CFLAGS="$CFLAGS" 13623 13624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13628if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13629then : 13630 printf %s "(cached) " >&6 13631else $as_nop 13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13633/* end confdefs.h. */ 13634int i; 13635_ACEOF 13636if ac_fn_c_try_compile "$LINENO" 13637then : 13638 xorg_cv_cc_flag_unknown_warning_option=yes 13639else $as_nop 13640 xorg_cv_cc_flag_unknown_warning_option=no 13641fi 13642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13643fi 13644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13647 CFLAGS="$xorg_testset_save_CFLAGS" 13648fi 13649 13650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13653 fi 13654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13657if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13658then : 13659 printf %s "(cached) " >&6 13660else $as_nop 13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13662/* end confdefs.h. */ 13663int i; 13664_ACEOF 13665if ac_fn_c_try_compile "$LINENO" 13666then : 13667 xorg_cv_cc_flag_unused_command_line_argument=yes 13668else $as_nop 13669 xorg_cv_cc_flag_unused_command_line_argument=no 13670fi 13671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13672fi 13673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13676 CFLAGS="$xorg_testset_save_CFLAGS" 13677fi 13678 13679found="no" 13680 13681 if test $found = "no" ; then 13682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13684 fi 13685 13686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13688 fi 13689 13690 CFLAGS="$CFLAGS -Wmissing-prototypes" 13691 13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13693printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13694 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13695 if eval test \${$cacheid+y} 13696then : 13697 printf %s "(cached) " >&6 13698else $as_nop 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701int i; 13702int 13703main (void) 13704{ 13705 13706 ; 13707 return 0; 13708} 13709_ACEOF 13710if ac_fn_c_try_link "$LINENO" 13711then : 13712 eval $cacheid=yes 13713else $as_nop 13714 eval $cacheid=no 13715fi 13716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13717 conftest$ac_exeext conftest.$ac_ext 13718fi 13719 13720 13721 CFLAGS="$xorg_testset_save_CFLAGS" 13722 13723 eval supported=\$$cacheid 13724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13725printf "%s\n" "$supported" >&6; } 13726 if test "$supported" = "yes" ; then 13727 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13728 found="yes" 13729 fi 13730 fi 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746xorg_testset_save_CFLAGS="$CFLAGS" 13747 13748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13752if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13753then : 13754 printf %s "(cached) " >&6 13755else $as_nop 13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13757/* end confdefs.h. */ 13758int i; 13759_ACEOF 13760if ac_fn_c_try_compile "$LINENO" 13761then : 13762 xorg_cv_cc_flag_unknown_warning_option=yes 13763else $as_nop 13764 xorg_cv_cc_flag_unknown_warning_option=no 13765fi 13766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13767fi 13768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13771 CFLAGS="$xorg_testset_save_CFLAGS" 13772fi 13773 13774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13777 fi 13778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13781if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13782then : 13783 printf %s "(cached) " >&6 13784else $as_nop 13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13786/* end confdefs.h. */ 13787int i; 13788_ACEOF 13789if ac_fn_c_try_compile "$LINENO" 13790then : 13791 xorg_cv_cc_flag_unused_command_line_argument=yes 13792else $as_nop 13793 xorg_cv_cc_flag_unused_command_line_argument=no 13794fi 13795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13796fi 13797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13800 CFLAGS="$xorg_testset_save_CFLAGS" 13801fi 13802 13803found="no" 13804 13805 if test $found = "no" ; then 13806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13808 fi 13809 13810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13812 fi 13813 13814 CFLAGS="$CFLAGS -Wnested-externs" 13815 13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13817printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13818 cacheid=xorg_cv_cc_flag__Wnested_externs 13819 if eval test \${$cacheid+y} 13820then : 13821 printf %s "(cached) " >&6 13822else $as_nop 13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13824/* end confdefs.h. */ 13825int i; 13826int 13827main (void) 13828{ 13829 13830 ; 13831 return 0; 13832} 13833_ACEOF 13834if ac_fn_c_try_link "$LINENO" 13835then : 13836 eval $cacheid=yes 13837else $as_nop 13838 eval $cacheid=no 13839fi 13840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13841 conftest$ac_exeext conftest.$ac_ext 13842fi 13843 13844 13845 CFLAGS="$xorg_testset_save_CFLAGS" 13846 13847 eval supported=\$$cacheid 13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13849printf "%s\n" "$supported" >&6; } 13850 if test "$supported" = "yes" ; then 13851 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13852 found="yes" 13853 fi 13854 fi 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870xorg_testset_save_CFLAGS="$CFLAGS" 13871 13872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13875printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13876if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13877then : 13878 printf %s "(cached) " >&6 13879else $as_nop 13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13881/* end confdefs.h. */ 13882int i; 13883_ACEOF 13884if ac_fn_c_try_compile "$LINENO" 13885then : 13886 xorg_cv_cc_flag_unknown_warning_option=yes 13887else $as_nop 13888 xorg_cv_cc_flag_unknown_warning_option=no 13889fi 13890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13891fi 13892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13895 CFLAGS="$xorg_testset_save_CFLAGS" 13896fi 13897 13898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13901 fi 13902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13905if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13906then : 13907 printf %s "(cached) " >&6 13908else $as_nop 13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13910/* end confdefs.h. */ 13911int i; 13912_ACEOF 13913if ac_fn_c_try_compile "$LINENO" 13914then : 13915 xorg_cv_cc_flag_unused_command_line_argument=yes 13916else $as_nop 13917 xorg_cv_cc_flag_unused_command_line_argument=no 13918fi 13919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13920fi 13921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13924 CFLAGS="$xorg_testset_save_CFLAGS" 13925fi 13926 13927found="no" 13928 13929 if test $found = "no" ; then 13930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13932 fi 13933 13934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13936 fi 13937 13938 CFLAGS="$CFLAGS -Wbad-function-cast" 13939 13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13941printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13942 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13943 if eval test \${$cacheid+y} 13944then : 13945 printf %s "(cached) " >&6 13946else $as_nop 13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13948/* end confdefs.h. */ 13949int i; 13950int 13951main (void) 13952{ 13953 13954 ; 13955 return 0; 13956} 13957_ACEOF 13958if ac_fn_c_try_link "$LINENO" 13959then : 13960 eval $cacheid=yes 13961else $as_nop 13962 eval $cacheid=no 13963fi 13964rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13965 conftest$ac_exeext conftest.$ac_ext 13966fi 13967 13968 13969 CFLAGS="$xorg_testset_save_CFLAGS" 13970 13971 eval supported=\$$cacheid 13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13973printf "%s\n" "$supported" >&6; } 13974 if test "$supported" = "yes" ; then 13975 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13976 found="yes" 13977 fi 13978 fi 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994xorg_testset_save_CFLAGS="$CFLAGS" 13995 13996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13999printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14000if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14001then : 14002 printf %s "(cached) " >&6 14003else $as_nop 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14005/* end confdefs.h. */ 14006int i; 14007_ACEOF 14008if ac_fn_c_try_compile "$LINENO" 14009then : 14010 xorg_cv_cc_flag_unknown_warning_option=yes 14011else $as_nop 14012 xorg_cv_cc_flag_unknown_warning_option=no 14013fi 14014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14015fi 14016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14017printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14018 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14019 CFLAGS="$xorg_testset_save_CFLAGS" 14020fi 14021 14022if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14025 fi 14026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14028printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14029if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14030then : 14031 printf %s "(cached) " >&6 14032else $as_nop 14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14034/* end confdefs.h. */ 14035int i; 14036_ACEOF 14037if ac_fn_c_try_compile "$LINENO" 14038then : 14039 xorg_cv_cc_flag_unused_command_line_argument=yes 14040else $as_nop 14041 xorg_cv_cc_flag_unused_command_line_argument=no 14042fi 14043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14044fi 14045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14046printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14048 CFLAGS="$xorg_testset_save_CFLAGS" 14049fi 14050 14051found="no" 14052 14053 if test $found = "no" ; then 14054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14056 fi 14057 14058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14060 fi 14061 14062 CFLAGS="$CFLAGS -Wold-style-definition" 14063 14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14065printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14066 cacheid=xorg_cv_cc_flag__Wold_style_definition 14067 if eval test \${$cacheid+y} 14068then : 14069 printf %s "(cached) " >&6 14070else $as_nop 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073int i; 14074int 14075main (void) 14076{ 14077 14078 ; 14079 return 0; 14080} 14081_ACEOF 14082if ac_fn_c_try_link "$LINENO" 14083then : 14084 eval $cacheid=yes 14085else $as_nop 14086 eval $cacheid=no 14087fi 14088rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14089 conftest$ac_exeext conftest.$ac_ext 14090fi 14091 14092 14093 CFLAGS="$xorg_testset_save_CFLAGS" 14094 14095 eval supported=\$$cacheid 14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14097printf "%s\n" "$supported" >&6; } 14098 if test "$supported" = "yes" ; then 14099 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14100 found="yes" 14101 fi 14102 fi 14103 14104 if test $found = "no" ; then 14105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14107 fi 14108 14109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14111 fi 14112 14113 CFLAGS="$CFLAGS -fd" 14114 14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14116printf %s "checking if $CC supports -fd... " >&6; } 14117 cacheid=xorg_cv_cc_flag__fd 14118 if eval test \${$cacheid+y} 14119then : 14120 printf %s "(cached) " >&6 14121else $as_nop 14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14123/* end confdefs.h. */ 14124int i; 14125int 14126main (void) 14127{ 14128 14129 ; 14130 return 0; 14131} 14132_ACEOF 14133if ac_fn_c_try_link "$LINENO" 14134then : 14135 eval $cacheid=yes 14136else $as_nop 14137 eval $cacheid=no 14138fi 14139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14140 conftest$ac_exeext conftest.$ac_ext 14141fi 14142 14143 14144 CFLAGS="$xorg_testset_save_CFLAGS" 14145 14146 eval supported=\$$cacheid 14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14148printf "%s\n" "$supported" >&6; } 14149 if test "$supported" = "yes" ; then 14150 BASE_CFLAGS="$BASE_CFLAGS -fd" 14151 found="yes" 14152 fi 14153 fi 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169xorg_testset_save_CFLAGS="$CFLAGS" 14170 14171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14175if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14176then : 14177 printf %s "(cached) " >&6 14178else $as_nop 14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14180/* end confdefs.h. */ 14181int i; 14182_ACEOF 14183if ac_fn_c_try_compile "$LINENO" 14184then : 14185 xorg_cv_cc_flag_unknown_warning_option=yes 14186else $as_nop 14187 xorg_cv_cc_flag_unknown_warning_option=no 14188fi 14189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14190fi 14191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14194 CFLAGS="$xorg_testset_save_CFLAGS" 14195fi 14196 14197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14200 fi 14201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14204if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14205then : 14206 printf %s "(cached) " >&6 14207else $as_nop 14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14209/* end confdefs.h. */ 14210int i; 14211_ACEOF 14212if ac_fn_c_try_compile "$LINENO" 14213then : 14214 xorg_cv_cc_flag_unused_command_line_argument=yes 14215else $as_nop 14216 xorg_cv_cc_flag_unused_command_line_argument=no 14217fi 14218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14219fi 14220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14223 CFLAGS="$xorg_testset_save_CFLAGS" 14224fi 14225 14226found="no" 14227 14228 if test $found = "no" ; then 14229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14231 fi 14232 14233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14235 fi 14236 14237 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14238 14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14240printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14241 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14242 if eval test \${$cacheid+y} 14243then : 14244 printf %s "(cached) " >&6 14245else $as_nop 14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14247/* end confdefs.h. */ 14248int i; 14249int 14250main (void) 14251{ 14252 14253 ; 14254 return 0; 14255} 14256_ACEOF 14257if ac_fn_c_try_link "$LINENO" 14258then : 14259 eval $cacheid=yes 14260else $as_nop 14261 eval $cacheid=no 14262fi 14263rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14264 conftest$ac_exeext conftest.$ac_ext 14265fi 14266 14267 14268 CFLAGS="$xorg_testset_save_CFLAGS" 14269 14270 eval supported=\$$cacheid 14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14272printf "%s\n" "$supported" >&6; } 14273 if test "$supported" = "yes" ; then 14274 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14275 found="yes" 14276 fi 14277 fi 14278 14279 14280 14281 14282 14283# This chunk adds additional warnings that could catch undesired effects. 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297xorg_testset_save_CFLAGS="$CFLAGS" 14298 14299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14303if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14304then : 14305 printf %s "(cached) " >&6 14306else $as_nop 14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14308/* end confdefs.h. */ 14309int i; 14310_ACEOF 14311if ac_fn_c_try_compile "$LINENO" 14312then : 14313 xorg_cv_cc_flag_unknown_warning_option=yes 14314else $as_nop 14315 xorg_cv_cc_flag_unknown_warning_option=no 14316fi 14317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14318fi 14319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14322 CFLAGS="$xorg_testset_save_CFLAGS" 14323fi 14324 14325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14328 fi 14329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14332if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14333then : 14334 printf %s "(cached) " >&6 14335else $as_nop 14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14337/* end confdefs.h. */ 14338int i; 14339_ACEOF 14340if ac_fn_c_try_compile "$LINENO" 14341then : 14342 xorg_cv_cc_flag_unused_command_line_argument=yes 14343else $as_nop 14344 xorg_cv_cc_flag_unused_command_line_argument=no 14345fi 14346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14347fi 14348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14351 CFLAGS="$xorg_testset_save_CFLAGS" 14352fi 14353 14354found="no" 14355 14356 if test $found = "no" ; then 14357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14359 fi 14360 14361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14363 fi 14364 14365 CFLAGS="$CFLAGS -Wunused" 14366 14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14368printf %s "checking if $CC supports -Wunused... " >&6; } 14369 cacheid=xorg_cv_cc_flag__Wunused 14370 if eval test \${$cacheid+y} 14371then : 14372 printf %s "(cached) " >&6 14373else $as_nop 14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14375/* end confdefs.h. */ 14376int i; 14377int 14378main (void) 14379{ 14380 14381 ; 14382 return 0; 14383} 14384_ACEOF 14385if ac_fn_c_try_link "$LINENO" 14386then : 14387 eval $cacheid=yes 14388else $as_nop 14389 eval $cacheid=no 14390fi 14391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14392 conftest$ac_exeext conftest.$ac_ext 14393fi 14394 14395 14396 CFLAGS="$xorg_testset_save_CFLAGS" 14397 14398 eval supported=\$$cacheid 14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14400printf "%s\n" "$supported" >&6; } 14401 if test "$supported" = "yes" ; then 14402 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14403 found="yes" 14404 fi 14405 fi 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421xorg_testset_save_CFLAGS="$CFLAGS" 14422 14423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14427if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14428then : 14429 printf %s "(cached) " >&6 14430else $as_nop 14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14432/* end confdefs.h. */ 14433int i; 14434_ACEOF 14435if ac_fn_c_try_compile "$LINENO" 14436then : 14437 xorg_cv_cc_flag_unknown_warning_option=yes 14438else $as_nop 14439 xorg_cv_cc_flag_unknown_warning_option=no 14440fi 14441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14442fi 14443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14446 CFLAGS="$xorg_testset_save_CFLAGS" 14447fi 14448 14449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14452 fi 14453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14456if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14457then : 14458 printf %s "(cached) " >&6 14459else $as_nop 14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14461/* end confdefs.h. */ 14462int i; 14463_ACEOF 14464if ac_fn_c_try_compile "$LINENO" 14465then : 14466 xorg_cv_cc_flag_unused_command_line_argument=yes 14467else $as_nop 14468 xorg_cv_cc_flag_unused_command_line_argument=no 14469fi 14470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14471fi 14472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14475 CFLAGS="$xorg_testset_save_CFLAGS" 14476fi 14477 14478found="no" 14479 14480 if test $found = "no" ; then 14481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14483 fi 14484 14485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14487 fi 14488 14489 CFLAGS="$CFLAGS -Wuninitialized" 14490 14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14492printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14493 cacheid=xorg_cv_cc_flag__Wuninitialized 14494 if eval test \${$cacheid+y} 14495then : 14496 printf %s "(cached) " >&6 14497else $as_nop 14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499/* end confdefs.h. */ 14500int i; 14501int 14502main (void) 14503{ 14504 14505 ; 14506 return 0; 14507} 14508_ACEOF 14509if ac_fn_c_try_link "$LINENO" 14510then : 14511 eval $cacheid=yes 14512else $as_nop 14513 eval $cacheid=no 14514fi 14515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14516 conftest$ac_exeext conftest.$ac_ext 14517fi 14518 14519 14520 CFLAGS="$xorg_testset_save_CFLAGS" 14521 14522 eval supported=\$$cacheid 14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14524printf "%s\n" "$supported" >&6; } 14525 if test "$supported" = "yes" ; then 14526 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14527 found="yes" 14528 fi 14529 fi 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545xorg_testset_save_CFLAGS="$CFLAGS" 14546 14547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14551if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14552then : 14553 printf %s "(cached) " >&6 14554else $as_nop 14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14556/* end confdefs.h. */ 14557int i; 14558_ACEOF 14559if ac_fn_c_try_compile "$LINENO" 14560then : 14561 xorg_cv_cc_flag_unknown_warning_option=yes 14562else $as_nop 14563 xorg_cv_cc_flag_unknown_warning_option=no 14564fi 14565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14566fi 14567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14570 CFLAGS="$xorg_testset_save_CFLAGS" 14571fi 14572 14573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14576 fi 14577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14580if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14581then : 14582 printf %s "(cached) " >&6 14583else $as_nop 14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14585/* end confdefs.h. */ 14586int i; 14587_ACEOF 14588if ac_fn_c_try_compile "$LINENO" 14589then : 14590 xorg_cv_cc_flag_unused_command_line_argument=yes 14591else $as_nop 14592 xorg_cv_cc_flag_unused_command_line_argument=no 14593fi 14594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14595fi 14596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14599 CFLAGS="$xorg_testset_save_CFLAGS" 14600fi 14601 14602found="no" 14603 14604 if test $found = "no" ; then 14605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14607 fi 14608 14609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14611 fi 14612 14613 CFLAGS="$CFLAGS -Wshadow" 14614 14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14616printf %s "checking if $CC supports -Wshadow... " >&6; } 14617 cacheid=xorg_cv_cc_flag__Wshadow 14618 if eval test \${$cacheid+y} 14619then : 14620 printf %s "(cached) " >&6 14621else $as_nop 14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14623/* end confdefs.h. */ 14624int i; 14625int 14626main (void) 14627{ 14628 14629 ; 14630 return 0; 14631} 14632_ACEOF 14633if ac_fn_c_try_link "$LINENO" 14634then : 14635 eval $cacheid=yes 14636else $as_nop 14637 eval $cacheid=no 14638fi 14639rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14640 conftest$ac_exeext conftest.$ac_ext 14641fi 14642 14643 14644 CFLAGS="$xorg_testset_save_CFLAGS" 14645 14646 eval supported=\$$cacheid 14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14648printf "%s\n" "$supported" >&6; } 14649 if test "$supported" = "yes" ; then 14650 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14651 found="yes" 14652 fi 14653 fi 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669xorg_testset_save_CFLAGS="$CFLAGS" 14670 14671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14675if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14676then : 14677 printf %s "(cached) " >&6 14678else $as_nop 14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14680/* end confdefs.h. */ 14681int i; 14682_ACEOF 14683if ac_fn_c_try_compile "$LINENO" 14684then : 14685 xorg_cv_cc_flag_unknown_warning_option=yes 14686else $as_nop 14687 xorg_cv_cc_flag_unknown_warning_option=no 14688fi 14689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14690fi 14691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14694 CFLAGS="$xorg_testset_save_CFLAGS" 14695fi 14696 14697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14700 fi 14701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14704if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14705then : 14706 printf %s "(cached) " >&6 14707else $as_nop 14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14709/* end confdefs.h. */ 14710int i; 14711_ACEOF 14712if ac_fn_c_try_compile "$LINENO" 14713then : 14714 xorg_cv_cc_flag_unused_command_line_argument=yes 14715else $as_nop 14716 xorg_cv_cc_flag_unused_command_line_argument=no 14717fi 14718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14719fi 14720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14723 CFLAGS="$xorg_testset_save_CFLAGS" 14724fi 14725 14726found="no" 14727 14728 if test $found = "no" ; then 14729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14731 fi 14732 14733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14735 fi 14736 14737 CFLAGS="$CFLAGS -Wmissing-noreturn" 14738 14739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14740printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14741 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14742 if eval test \${$cacheid+y} 14743then : 14744 printf %s "(cached) " >&6 14745else $as_nop 14746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14747/* end confdefs.h. */ 14748int i; 14749int 14750main (void) 14751{ 14752 14753 ; 14754 return 0; 14755} 14756_ACEOF 14757if ac_fn_c_try_link "$LINENO" 14758then : 14759 eval $cacheid=yes 14760else $as_nop 14761 eval $cacheid=no 14762fi 14763rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14764 conftest$ac_exeext conftest.$ac_ext 14765fi 14766 14767 14768 CFLAGS="$xorg_testset_save_CFLAGS" 14769 14770 eval supported=\$$cacheid 14771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14772printf "%s\n" "$supported" >&6; } 14773 if test "$supported" = "yes" ; then 14774 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14775 found="yes" 14776 fi 14777 fi 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793xorg_testset_save_CFLAGS="$CFLAGS" 14794 14795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14799if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14800then : 14801 printf %s "(cached) " >&6 14802else $as_nop 14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14804/* end confdefs.h. */ 14805int i; 14806_ACEOF 14807if ac_fn_c_try_compile "$LINENO" 14808then : 14809 xorg_cv_cc_flag_unknown_warning_option=yes 14810else $as_nop 14811 xorg_cv_cc_flag_unknown_warning_option=no 14812fi 14813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14814fi 14815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14818 CFLAGS="$xorg_testset_save_CFLAGS" 14819fi 14820 14821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14824 fi 14825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14828if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14829then : 14830 printf %s "(cached) " >&6 14831else $as_nop 14832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14833/* end confdefs.h. */ 14834int i; 14835_ACEOF 14836if ac_fn_c_try_compile "$LINENO" 14837then : 14838 xorg_cv_cc_flag_unused_command_line_argument=yes 14839else $as_nop 14840 xorg_cv_cc_flag_unused_command_line_argument=no 14841fi 14842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14843fi 14844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14847 CFLAGS="$xorg_testset_save_CFLAGS" 14848fi 14849 14850found="no" 14851 14852 if test $found = "no" ; then 14853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14855 fi 14856 14857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14859 fi 14860 14861 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14862 14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14864printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14865 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14866 if eval test \${$cacheid+y} 14867then : 14868 printf %s "(cached) " >&6 14869else $as_nop 14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14871/* end confdefs.h. */ 14872int i; 14873int 14874main (void) 14875{ 14876 14877 ; 14878 return 0; 14879} 14880_ACEOF 14881if ac_fn_c_try_link "$LINENO" 14882then : 14883 eval $cacheid=yes 14884else $as_nop 14885 eval $cacheid=no 14886fi 14887rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14888 conftest$ac_exeext conftest.$ac_ext 14889fi 14890 14891 14892 CFLAGS="$xorg_testset_save_CFLAGS" 14893 14894 eval supported=\$$cacheid 14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14896printf "%s\n" "$supported" >&6; } 14897 if test "$supported" = "yes" ; then 14898 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14899 found="yes" 14900 fi 14901 fi 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917xorg_testset_save_CFLAGS="$CFLAGS" 14918 14919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14923if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14924then : 14925 printf %s "(cached) " >&6 14926else $as_nop 14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14928/* end confdefs.h. */ 14929int i; 14930_ACEOF 14931if ac_fn_c_try_compile "$LINENO" 14932then : 14933 xorg_cv_cc_flag_unknown_warning_option=yes 14934else $as_nop 14935 xorg_cv_cc_flag_unknown_warning_option=no 14936fi 14937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14938fi 14939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14940printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14942 CFLAGS="$xorg_testset_save_CFLAGS" 14943fi 14944 14945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14948 fi 14949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14951printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14952if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14953then : 14954 printf %s "(cached) " >&6 14955else $as_nop 14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14957/* end confdefs.h. */ 14958int i; 14959_ACEOF 14960if ac_fn_c_try_compile "$LINENO" 14961then : 14962 xorg_cv_cc_flag_unused_command_line_argument=yes 14963else $as_nop 14964 xorg_cv_cc_flag_unused_command_line_argument=no 14965fi 14966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14967fi 14968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14969printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14971 CFLAGS="$xorg_testset_save_CFLAGS" 14972fi 14973 14974found="no" 14975 14976 if test $found = "no" ; then 14977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14979 fi 14980 14981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14983 fi 14984 14985 CFLAGS="$CFLAGS -Wredundant-decls" 14986 14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14988printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 14989 cacheid=xorg_cv_cc_flag__Wredundant_decls 14990 if eval test \${$cacheid+y} 14991then : 14992 printf %s "(cached) " >&6 14993else $as_nop 14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14995/* end confdefs.h. */ 14996int i; 14997int 14998main (void) 14999{ 15000 15001 ; 15002 return 0; 15003} 15004_ACEOF 15005if ac_fn_c_try_link "$LINENO" 15006then : 15007 eval $cacheid=yes 15008else $as_nop 15009 eval $cacheid=no 15010fi 15011rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15012 conftest$ac_exeext conftest.$ac_ext 15013fi 15014 15015 15016 CFLAGS="$xorg_testset_save_CFLAGS" 15017 15018 eval supported=\$$cacheid 15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15020printf "%s\n" "$supported" >&6; } 15021 if test "$supported" = "yes" ; then 15022 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15023 found="yes" 15024 fi 15025 fi 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041xorg_testset_save_CFLAGS="$CFLAGS" 15042 15043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15047if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15048then : 15049 printf %s "(cached) " >&6 15050else $as_nop 15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15052/* end confdefs.h. */ 15053int i; 15054_ACEOF 15055if ac_fn_c_try_compile "$LINENO" 15056then : 15057 xorg_cv_cc_flag_unknown_warning_option=yes 15058else $as_nop 15059 xorg_cv_cc_flag_unknown_warning_option=no 15060fi 15061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15062fi 15063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15066 CFLAGS="$xorg_testset_save_CFLAGS" 15067fi 15068 15069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15072 fi 15073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15076if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15077then : 15078 printf %s "(cached) " >&6 15079else $as_nop 15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15081/* end confdefs.h. */ 15082int i; 15083_ACEOF 15084if ac_fn_c_try_compile "$LINENO" 15085then : 15086 xorg_cv_cc_flag_unused_command_line_argument=yes 15087else $as_nop 15088 xorg_cv_cc_flag_unused_command_line_argument=no 15089fi 15090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15091fi 15092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15095 CFLAGS="$xorg_testset_save_CFLAGS" 15096fi 15097 15098found="no" 15099 15100 if test $found = "no" ; then 15101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15103 fi 15104 15105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15107 fi 15108 15109 CFLAGS="$CFLAGS -Wlogical-op" 15110 15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15112printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15113 cacheid=xorg_cv_cc_flag__Wlogical_op 15114 if eval test \${$cacheid+y} 15115then : 15116 printf %s "(cached) " >&6 15117else $as_nop 15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15119/* end confdefs.h. */ 15120int i; 15121int 15122main (void) 15123{ 15124 15125 ; 15126 return 0; 15127} 15128_ACEOF 15129if ac_fn_c_try_link "$LINENO" 15130then : 15131 eval $cacheid=yes 15132else $as_nop 15133 eval $cacheid=no 15134fi 15135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15136 conftest$ac_exeext conftest.$ac_ext 15137fi 15138 15139 15140 CFLAGS="$xorg_testset_save_CFLAGS" 15141 15142 eval supported=\$$cacheid 15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15144printf "%s\n" "$supported" >&6; } 15145 if test "$supported" = "yes" ; then 15146 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15147 found="yes" 15148 fi 15149 fi 15150 15151 15152 15153# These are currently disabled because they are noisy. They will be enabled 15154# in the future once the codebase is sufficiently modernized to silence 15155# them. For now, I don't want them to drown out the other warnings. 15156# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15157# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15158# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15159 15160# Turn some warnings into errors, so we don't accidently get successful builds 15161# when there are problems that should be fixed. 15162 15163if test "x$SELECTIVE_WERROR" = "xyes" ; then 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177xorg_testset_save_CFLAGS="$CFLAGS" 15178 15179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15182printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15183if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15184then : 15185 printf %s "(cached) " >&6 15186else $as_nop 15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15188/* end confdefs.h. */ 15189int i; 15190_ACEOF 15191if ac_fn_c_try_compile "$LINENO" 15192then : 15193 xorg_cv_cc_flag_unknown_warning_option=yes 15194else $as_nop 15195 xorg_cv_cc_flag_unknown_warning_option=no 15196fi 15197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15198fi 15199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15200printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15202 CFLAGS="$xorg_testset_save_CFLAGS" 15203fi 15204 15205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15208 fi 15209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15211printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15212if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15213then : 15214 printf %s "(cached) " >&6 15215else $as_nop 15216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15217/* end confdefs.h. */ 15218int i; 15219_ACEOF 15220if ac_fn_c_try_compile "$LINENO" 15221then : 15222 xorg_cv_cc_flag_unused_command_line_argument=yes 15223else $as_nop 15224 xorg_cv_cc_flag_unused_command_line_argument=no 15225fi 15226rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15227fi 15228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15229printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15231 CFLAGS="$xorg_testset_save_CFLAGS" 15232fi 15233 15234found="no" 15235 15236 if test $found = "no" ; then 15237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15239 fi 15240 15241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15243 fi 15244 15245 CFLAGS="$CFLAGS -Werror=implicit" 15246 15247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15248printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15249 cacheid=xorg_cv_cc_flag__Werror_implicit 15250 if eval test \${$cacheid+y} 15251then : 15252 printf %s "(cached) " >&6 15253else $as_nop 15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15255/* end confdefs.h. */ 15256int i; 15257int 15258main (void) 15259{ 15260 15261 ; 15262 return 0; 15263} 15264_ACEOF 15265if ac_fn_c_try_link "$LINENO" 15266then : 15267 eval $cacheid=yes 15268else $as_nop 15269 eval $cacheid=no 15270fi 15271rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15272 conftest$ac_exeext conftest.$ac_ext 15273fi 15274 15275 15276 CFLAGS="$xorg_testset_save_CFLAGS" 15277 15278 eval supported=\$$cacheid 15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15280printf "%s\n" "$supported" >&6; } 15281 if test "$supported" = "yes" ; then 15282 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15283 found="yes" 15284 fi 15285 fi 15286 15287 if test $found = "no" ; then 15288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15290 fi 15291 15292 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15294 fi 15295 15296 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15297 15298 { 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 15299printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15300 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15301 if eval test \${$cacheid+y} 15302then : 15303 printf %s "(cached) " >&6 15304else $as_nop 15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15306/* end confdefs.h. */ 15307int i; 15308int 15309main (void) 15310{ 15311 15312 ; 15313 return 0; 15314} 15315_ACEOF 15316if ac_fn_c_try_link "$LINENO" 15317then : 15318 eval $cacheid=yes 15319else $as_nop 15320 eval $cacheid=no 15321fi 15322rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15323 conftest$ac_exeext conftest.$ac_ext 15324fi 15325 15326 15327 CFLAGS="$xorg_testset_save_CFLAGS" 15328 15329 eval supported=\$$cacheid 15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15331printf "%s\n" "$supported" >&6; } 15332 if test "$supported" = "yes" ; then 15333 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15334 found="yes" 15335 fi 15336 fi 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352xorg_testset_save_CFLAGS="$CFLAGS" 15353 15354if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15357printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15358if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15359then : 15360 printf %s "(cached) " >&6 15361else $as_nop 15362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15363/* end confdefs.h. */ 15364int i; 15365_ACEOF 15366if ac_fn_c_try_compile "$LINENO" 15367then : 15368 xorg_cv_cc_flag_unknown_warning_option=yes 15369else $as_nop 15370 xorg_cv_cc_flag_unknown_warning_option=no 15371fi 15372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15373fi 15374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15375printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15377 CFLAGS="$xorg_testset_save_CFLAGS" 15378fi 15379 15380if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15383 fi 15384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15386printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15387if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15388then : 15389 printf %s "(cached) " >&6 15390else $as_nop 15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15392/* end confdefs.h. */ 15393int i; 15394_ACEOF 15395if ac_fn_c_try_compile "$LINENO" 15396then : 15397 xorg_cv_cc_flag_unused_command_line_argument=yes 15398else $as_nop 15399 xorg_cv_cc_flag_unused_command_line_argument=no 15400fi 15401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15402fi 15403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15404printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15405 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15406 CFLAGS="$xorg_testset_save_CFLAGS" 15407fi 15408 15409found="no" 15410 15411 if test $found = "no" ; then 15412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15414 fi 15415 15416 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15418 fi 15419 15420 CFLAGS="$CFLAGS -Werror=nonnull" 15421 15422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15423printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15424 cacheid=xorg_cv_cc_flag__Werror_nonnull 15425 if eval test \${$cacheid+y} 15426then : 15427 printf %s "(cached) " >&6 15428else $as_nop 15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15430/* end confdefs.h. */ 15431int i; 15432int 15433main (void) 15434{ 15435 15436 ; 15437 return 0; 15438} 15439_ACEOF 15440if ac_fn_c_try_link "$LINENO" 15441then : 15442 eval $cacheid=yes 15443else $as_nop 15444 eval $cacheid=no 15445fi 15446rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15447 conftest$ac_exeext conftest.$ac_ext 15448fi 15449 15450 15451 CFLAGS="$xorg_testset_save_CFLAGS" 15452 15453 eval supported=\$$cacheid 15454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15455printf "%s\n" "$supported" >&6; } 15456 if test "$supported" = "yes" ; then 15457 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15458 found="yes" 15459 fi 15460 fi 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476xorg_testset_save_CFLAGS="$CFLAGS" 15477 15478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15481printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15482if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15483then : 15484 printf %s "(cached) " >&6 15485else $as_nop 15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15487/* end confdefs.h. */ 15488int i; 15489_ACEOF 15490if ac_fn_c_try_compile "$LINENO" 15491then : 15492 xorg_cv_cc_flag_unknown_warning_option=yes 15493else $as_nop 15494 xorg_cv_cc_flag_unknown_warning_option=no 15495fi 15496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15497fi 15498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15499printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15501 CFLAGS="$xorg_testset_save_CFLAGS" 15502fi 15503 15504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15507 fi 15508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15510printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15511if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15512then : 15513 printf %s "(cached) " >&6 15514else $as_nop 15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15516/* end confdefs.h. */ 15517int i; 15518_ACEOF 15519if ac_fn_c_try_compile "$LINENO" 15520then : 15521 xorg_cv_cc_flag_unused_command_line_argument=yes 15522else $as_nop 15523 xorg_cv_cc_flag_unused_command_line_argument=no 15524fi 15525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15526fi 15527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15528printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15530 CFLAGS="$xorg_testset_save_CFLAGS" 15531fi 15532 15533found="no" 15534 15535 if test $found = "no" ; then 15536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15538 fi 15539 15540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15542 fi 15543 15544 CFLAGS="$CFLAGS -Werror=init-self" 15545 15546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15547printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15548 cacheid=xorg_cv_cc_flag__Werror_init_self 15549 if eval test \${$cacheid+y} 15550then : 15551 printf %s "(cached) " >&6 15552else $as_nop 15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15554/* end confdefs.h. */ 15555int i; 15556int 15557main (void) 15558{ 15559 15560 ; 15561 return 0; 15562} 15563_ACEOF 15564if ac_fn_c_try_link "$LINENO" 15565then : 15566 eval $cacheid=yes 15567else $as_nop 15568 eval $cacheid=no 15569fi 15570rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15571 conftest$ac_exeext conftest.$ac_ext 15572fi 15573 15574 15575 CFLAGS="$xorg_testset_save_CFLAGS" 15576 15577 eval supported=\$$cacheid 15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15579printf "%s\n" "$supported" >&6; } 15580 if test "$supported" = "yes" ; then 15581 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15582 found="yes" 15583 fi 15584 fi 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600xorg_testset_save_CFLAGS="$CFLAGS" 15601 15602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15605printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15606if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15607then : 15608 printf %s "(cached) " >&6 15609else $as_nop 15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15611/* end confdefs.h. */ 15612int i; 15613_ACEOF 15614if ac_fn_c_try_compile "$LINENO" 15615then : 15616 xorg_cv_cc_flag_unknown_warning_option=yes 15617else $as_nop 15618 xorg_cv_cc_flag_unknown_warning_option=no 15619fi 15620rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15621fi 15622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15623printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15625 CFLAGS="$xorg_testset_save_CFLAGS" 15626fi 15627 15628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15631 fi 15632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15634printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15635if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15636then : 15637 printf %s "(cached) " >&6 15638else $as_nop 15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15640/* end confdefs.h. */ 15641int i; 15642_ACEOF 15643if ac_fn_c_try_compile "$LINENO" 15644then : 15645 xorg_cv_cc_flag_unused_command_line_argument=yes 15646else $as_nop 15647 xorg_cv_cc_flag_unused_command_line_argument=no 15648fi 15649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15650fi 15651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15652printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15654 CFLAGS="$xorg_testset_save_CFLAGS" 15655fi 15656 15657found="no" 15658 15659 if test $found = "no" ; then 15660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15662 fi 15663 15664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15666 fi 15667 15668 CFLAGS="$CFLAGS -Werror=main" 15669 15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15671printf %s "checking if $CC supports -Werror=main... " >&6; } 15672 cacheid=xorg_cv_cc_flag__Werror_main 15673 if eval test \${$cacheid+y} 15674then : 15675 printf %s "(cached) " >&6 15676else $as_nop 15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15678/* end confdefs.h. */ 15679int i; 15680int 15681main (void) 15682{ 15683 15684 ; 15685 return 0; 15686} 15687_ACEOF 15688if ac_fn_c_try_link "$LINENO" 15689then : 15690 eval $cacheid=yes 15691else $as_nop 15692 eval $cacheid=no 15693fi 15694rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15695 conftest$ac_exeext conftest.$ac_ext 15696fi 15697 15698 15699 CFLAGS="$xorg_testset_save_CFLAGS" 15700 15701 eval supported=\$$cacheid 15702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15703printf "%s\n" "$supported" >&6; } 15704 if test "$supported" = "yes" ; then 15705 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15706 found="yes" 15707 fi 15708 fi 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724xorg_testset_save_CFLAGS="$CFLAGS" 15725 15726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15729printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15730if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15731then : 15732 printf %s "(cached) " >&6 15733else $as_nop 15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15735/* end confdefs.h. */ 15736int i; 15737_ACEOF 15738if ac_fn_c_try_compile "$LINENO" 15739then : 15740 xorg_cv_cc_flag_unknown_warning_option=yes 15741else $as_nop 15742 xorg_cv_cc_flag_unknown_warning_option=no 15743fi 15744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15745fi 15746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15747printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15748 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15749 CFLAGS="$xorg_testset_save_CFLAGS" 15750fi 15751 15752if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15755 fi 15756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15758printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15759if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15760then : 15761 printf %s "(cached) " >&6 15762else $as_nop 15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15764/* end confdefs.h. */ 15765int i; 15766_ACEOF 15767if ac_fn_c_try_compile "$LINENO" 15768then : 15769 xorg_cv_cc_flag_unused_command_line_argument=yes 15770else $as_nop 15771 xorg_cv_cc_flag_unused_command_line_argument=no 15772fi 15773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15774fi 15775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15776printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15778 CFLAGS="$xorg_testset_save_CFLAGS" 15779fi 15780 15781found="no" 15782 15783 if test $found = "no" ; then 15784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15786 fi 15787 15788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15790 fi 15791 15792 CFLAGS="$CFLAGS -Werror=missing-braces" 15793 15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15795printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15796 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15797 if eval test \${$cacheid+y} 15798then : 15799 printf %s "(cached) " >&6 15800else $as_nop 15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15802/* end confdefs.h. */ 15803int i; 15804int 15805main (void) 15806{ 15807 15808 ; 15809 return 0; 15810} 15811_ACEOF 15812if ac_fn_c_try_link "$LINENO" 15813then : 15814 eval $cacheid=yes 15815else $as_nop 15816 eval $cacheid=no 15817fi 15818rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15819 conftest$ac_exeext conftest.$ac_ext 15820fi 15821 15822 15823 CFLAGS="$xorg_testset_save_CFLAGS" 15824 15825 eval supported=\$$cacheid 15826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15827printf "%s\n" "$supported" >&6; } 15828 if test "$supported" = "yes" ; then 15829 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15830 found="yes" 15831 fi 15832 fi 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848xorg_testset_save_CFLAGS="$CFLAGS" 15849 15850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15854if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15855then : 15856 printf %s "(cached) " >&6 15857else $as_nop 15858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15859/* end confdefs.h. */ 15860int i; 15861_ACEOF 15862if ac_fn_c_try_compile "$LINENO" 15863then : 15864 xorg_cv_cc_flag_unknown_warning_option=yes 15865else $as_nop 15866 xorg_cv_cc_flag_unknown_warning_option=no 15867fi 15868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15869fi 15870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15871printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15873 CFLAGS="$xorg_testset_save_CFLAGS" 15874fi 15875 15876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15879 fi 15880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15882printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15883if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15884then : 15885 printf %s "(cached) " >&6 15886else $as_nop 15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15888/* end confdefs.h. */ 15889int i; 15890_ACEOF 15891if ac_fn_c_try_compile "$LINENO" 15892then : 15893 xorg_cv_cc_flag_unused_command_line_argument=yes 15894else $as_nop 15895 xorg_cv_cc_flag_unused_command_line_argument=no 15896fi 15897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15898fi 15899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15900printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15902 CFLAGS="$xorg_testset_save_CFLAGS" 15903fi 15904 15905found="no" 15906 15907 if test $found = "no" ; then 15908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15910 fi 15911 15912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15914 fi 15915 15916 CFLAGS="$CFLAGS -Werror=sequence-point" 15917 15918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15919printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15920 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15921 if eval test \${$cacheid+y} 15922then : 15923 printf %s "(cached) " >&6 15924else $as_nop 15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15926/* end confdefs.h. */ 15927int i; 15928int 15929main (void) 15930{ 15931 15932 ; 15933 return 0; 15934} 15935_ACEOF 15936if ac_fn_c_try_link "$LINENO" 15937then : 15938 eval $cacheid=yes 15939else $as_nop 15940 eval $cacheid=no 15941fi 15942rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15943 conftest$ac_exeext conftest.$ac_ext 15944fi 15945 15946 15947 CFLAGS="$xorg_testset_save_CFLAGS" 15948 15949 eval supported=\$$cacheid 15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15951printf "%s\n" "$supported" >&6; } 15952 if test "$supported" = "yes" ; then 15953 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15954 found="yes" 15955 fi 15956 fi 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972xorg_testset_save_CFLAGS="$CFLAGS" 15973 15974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15978if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15979then : 15980 printf %s "(cached) " >&6 15981else $as_nop 15982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15983/* end confdefs.h. */ 15984int i; 15985_ACEOF 15986if ac_fn_c_try_compile "$LINENO" 15987then : 15988 xorg_cv_cc_flag_unknown_warning_option=yes 15989else $as_nop 15990 xorg_cv_cc_flag_unknown_warning_option=no 15991fi 15992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15993fi 15994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15997 CFLAGS="$xorg_testset_save_CFLAGS" 15998fi 15999 16000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16003 fi 16004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16007if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16008then : 16009 printf %s "(cached) " >&6 16010else $as_nop 16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16012/* end confdefs.h. */ 16013int i; 16014_ACEOF 16015if ac_fn_c_try_compile "$LINENO" 16016then : 16017 xorg_cv_cc_flag_unused_command_line_argument=yes 16018else $as_nop 16019 xorg_cv_cc_flag_unused_command_line_argument=no 16020fi 16021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16022fi 16023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027fi 16028 16029found="no" 16030 16031 if test $found = "no" ; then 16032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16034 fi 16035 16036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16038 fi 16039 16040 CFLAGS="$CFLAGS -Werror=return-type" 16041 16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16043printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16044 cacheid=xorg_cv_cc_flag__Werror_return_type 16045 if eval test \${$cacheid+y} 16046then : 16047 printf %s "(cached) " >&6 16048else $as_nop 16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16050/* end confdefs.h. */ 16051int i; 16052int 16053main (void) 16054{ 16055 16056 ; 16057 return 0; 16058} 16059_ACEOF 16060if ac_fn_c_try_link "$LINENO" 16061then : 16062 eval $cacheid=yes 16063else $as_nop 16064 eval $cacheid=no 16065fi 16066rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16067 conftest$ac_exeext conftest.$ac_ext 16068fi 16069 16070 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072 16073 eval supported=\$$cacheid 16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16075printf "%s\n" "$supported" >&6; } 16076 if test "$supported" = "yes" ; then 16077 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16078 found="yes" 16079 fi 16080 fi 16081 16082 if test $found = "no" ; then 16083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16085 fi 16086 16087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16089 fi 16090 16091 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16092 16093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16094printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16095 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16096 if eval test \${$cacheid+y} 16097then : 16098 printf %s "(cached) " >&6 16099else $as_nop 16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16101/* end confdefs.h. */ 16102int i; 16103int 16104main (void) 16105{ 16106 16107 ; 16108 return 0; 16109} 16110_ACEOF 16111if ac_fn_c_try_link "$LINENO" 16112then : 16113 eval $cacheid=yes 16114else $as_nop 16115 eval $cacheid=no 16116fi 16117rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16118 conftest$ac_exeext conftest.$ac_ext 16119fi 16120 16121 16122 CFLAGS="$xorg_testset_save_CFLAGS" 16123 16124 eval supported=\$$cacheid 16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16126printf "%s\n" "$supported" >&6; } 16127 if test "$supported" = "yes" ; then 16128 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16129 found="yes" 16130 fi 16131 fi 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147xorg_testset_save_CFLAGS="$CFLAGS" 16148 16149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16152printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16153if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16154then : 16155 printf %s "(cached) " >&6 16156else $as_nop 16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16158/* end confdefs.h. */ 16159int i; 16160_ACEOF 16161if ac_fn_c_try_compile "$LINENO" 16162then : 16163 xorg_cv_cc_flag_unknown_warning_option=yes 16164else $as_nop 16165 xorg_cv_cc_flag_unknown_warning_option=no 16166fi 16167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16168fi 16169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16172 CFLAGS="$xorg_testset_save_CFLAGS" 16173fi 16174 16175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16178 fi 16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16182if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16183then : 16184 printf %s "(cached) " >&6 16185else $as_nop 16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16187/* end confdefs.h. */ 16188int i; 16189_ACEOF 16190if ac_fn_c_try_compile "$LINENO" 16191then : 16192 xorg_cv_cc_flag_unused_command_line_argument=yes 16193else $as_nop 16194 xorg_cv_cc_flag_unused_command_line_argument=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16197fi 16198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16199printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16201 CFLAGS="$xorg_testset_save_CFLAGS" 16202fi 16203 16204found="no" 16205 16206 if test $found = "no" ; then 16207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16209 fi 16210 16211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16213 fi 16214 16215 CFLAGS="$CFLAGS -Werror=trigraphs" 16216 16217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16218printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16219 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16220 if eval test \${$cacheid+y} 16221then : 16222 printf %s "(cached) " >&6 16223else $as_nop 16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16225/* end confdefs.h. */ 16226int i; 16227int 16228main (void) 16229{ 16230 16231 ; 16232 return 0; 16233} 16234_ACEOF 16235if ac_fn_c_try_link "$LINENO" 16236then : 16237 eval $cacheid=yes 16238else $as_nop 16239 eval $cacheid=no 16240fi 16241rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16242 conftest$ac_exeext conftest.$ac_ext 16243fi 16244 16245 16246 CFLAGS="$xorg_testset_save_CFLAGS" 16247 16248 eval supported=\$$cacheid 16249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16250printf "%s\n" "$supported" >&6; } 16251 if test "$supported" = "yes" ; then 16252 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16253 found="yes" 16254 fi 16255 fi 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271xorg_testset_save_CFLAGS="$CFLAGS" 16272 16273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16276printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16277if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16278then : 16279 printf %s "(cached) " >&6 16280else $as_nop 16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16282/* end confdefs.h. */ 16283int i; 16284_ACEOF 16285if ac_fn_c_try_compile "$LINENO" 16286then : 16287 xorg_cv_cc_flag_unknown_warning_option=yes 16288else $as_nop 16289 xorg_cv_cc_flag_unknown_warning_option=no 16290fi 16291rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16292fi 16293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16294printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16296 CFLAGS="$xorg_testset_save_CFLAGS" 16297fi 16298 16299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16302 fi 16303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16305printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16306if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16307then : 16308 printf %s "(cached) " >&6 16309else $as_nop 16310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16311/* end confdefs.h. */ 16312int i; 16313_ACEOF 16314if ac_fn_c_try_compile "$LINENO" 16315then : 16316 xorg_cv_cc_flag_unused_command_line_argument=yes 16317else $as_nop 16318 xorg_cv_cc_flag_unused_command_line_argument=no 16319fi 16320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16321fi 16322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16323printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16325 CFLAGS="$xorg_testset_save_CFLAGS" 16326fi 16327 16328found="no" 16329 16330 if test $found = "no" ; then 16331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16333 fi 16334 16335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16337 fi 16338 16339 CFLAGS="$CFLAGS -Werror=array-bounds" 16340 16341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16342printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16343 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16344 if eval test \${$cacheid+y} 16345then : 16346 printf %s "(cached) " >&6 16347else $as_nop 16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16349/* end confdefs.h. */ 16350int i; 16351int 16352main (void) 16353{ 16354 16355 ; 16356 return 0; 16357} 16358_ACEOF 16359if ac_fn_c_try_link "$LINENO" 16360then : 16361 eval $cacheid=yes 16362else $as_nop 16363 eval $cacheid=no 16364fi 16365rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16366 conftest$ac_exeext conftest.$ac_ext 16367fi 16368 16369 16370 CFLAGS="$xorg_testset_save_CFLAGS" 16371 16372 eval supported=\$$cacheid 16373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16374printf "%s\n" "$supported" >&6; } 16375 if test "$supported" = "yes" ; then 16376 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16377 found="yes" 16378 fi 16379 fi 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395xorg_testset_save_CFLAGS="$CFLAGS" 16396 16397if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16398 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16400printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16401if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16402then : 16403 printf %s "(cached) " >&6 16404else $as_nop 16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16406/* end confdefs.h. */ 16407int i; 16408_ACEOF 16409if ac_fn_c_try_compile "$LINENO" 16410then : 16411 xorg_cv_cc_flag_unknown_warning_option=yes 16412else $as_nop 16413 xorg_cv_cc_flag_unknown_warning_option=no 16414fi 16415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16416fi 16417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16420 CFLAGS="$xorg_testset_save_CFLAGS" 16421fi 16422 16423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16426 fi 16427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16430if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16431then : 16432 printf %s "(cached) " >&6 16433else $as_nop 16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16435/* end confdefs.h. */ 16436int i; 16437_ACEOF 16438if ac_fn_c_try_compile "$LINENO" 16439then : 16440 xorg_cv_cc_flag_unused_command_line_argument=yes 16441else $as_nop 16442 xorg_cv_cc_flag_unused_command_line_argument=no 16443fi 16444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16445fi 16446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16447printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16449 CFLAGS="$xorg_testset_save_CFLAGS" 16450fi 16451 16452found="no" 16453 16454 if test $found = "no" ; then 16455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16457 fi 16458 16459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16461 fi 16462 16463 CFLAGS="$CFLAGS -Werror=write-strings" 16464 16465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16466printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16467 cacheid=xorg_cv_cc_flag__Werror_write_strings 16468 if eval test \${$cacheid+y} 16469then : 16470 printf %s "(cached) " >&6 16471else $as_nop 16472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16473/* end confdefs.h. */ 16474int i; 16475int 16476main (void) 16477{ 16478 16479 ; 16480 return 0; 16481} 16482_ACEOF 16483if ac_fn_c_try_link "$LINENO" 16484then : 16485 eval $cacheid=yes 16486else $as_nop 16487 eval $cacheid=no 16488fi 16489rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16490 conftest$ac_exeext conftest.$ac_ext 16491fi 16492 16493 16494 CFLAGS="$xorg_testset_save_CFLAGS" 16495 16496 eval supported=\$$cacheid 16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16498printf "%s\n" "$supported" >&6; } 16499 if test "$supported" = "yes" ; then 16500 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16501 found="yes" 16502 fi 16503 fi 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519xorg_testset_save_CFLAGS="$CFLAGS" 16520 16521if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16524printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16525if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16526then : 16527 printf %s "(cached) " >&6 16528else $as_nop 16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531int i; 16532_ACEOF 16533if ac_fn_c_try_compile "$LINENO" 16534then : 16535 xorg_cv_cc_flag_unknown_warning_option=yes 16536else $as_nop 16537 xorg_cv_cc_flag_unknown_warning_option=no 16538fi 16539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16540fi 16541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16542printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16544 CFLAGS="$xorg_testset_save_CFLAGS" 16545fi 16546 16547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16550 fi 16551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16553printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16554if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16555then : 16556 printf %s "(cached) " >&6 16557else $as_nop 16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16559/* end confdefs.h. */ 16560int i; 16561_ACEOF 16562if ac_fn_c_try_compile "$LINENO" 16563then : 16564 xorg_cv_cc_flag_unused_command_line_argument=yes 16565else $as_nop 16566 xorg_cv_cc_flag_unused_command_line_argument=no 16567fi 16568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16569fi 16570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16571printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16573 CFLAGS="$xorg_testset_save_CFLAGS" 16574fi 16575 16576found="no" 16577 16578 if test $found = "no" ; then 16579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16581 fi 16582 16583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16585 fi 16586 16587 CFLAGS="$CFLAGS -Werror=address" 16588 16589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16590printf %s "checking if $CC supports -Werror=address... " >&6; } 16591 cacheid=xorg_cv_cc_flag__Werror_address 16592 if eval test \${$cacheid+y} 16593then : 16594 printf %s "(cached) " >&6 16595else $as_nop 16596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16597/* end confdefs.h. */ 16598int i; 16599int 16600main (void) 16601{ 16602 16603 ; 16604 return 0; 16605} 16606_ACEOF 16607if ac_fn_c_try_link "$LINENO" 16608then : 16609 eval $cacheid=yes 16610else $as_nop 16611 eval $cacheid=no 16612fi 16613rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16614 conftest$ac_exeext conftest.$ac_ext 16615fi 16616 16617 16618 CFLAGS="$xorg_testset_save_CFLAGS" 16619 16620 eval supported=\$$cacheid 16621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16622printf "%s\n" "$supported" >&6; } 16623 if test "$supported" = "yes" ; then 16624 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16625 found="yes" 16626 fi 16627 fi 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643xorg_testset_save_CFLAGS="$CFLAGS" 16644 16645if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16648printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16649if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16650then : 16651 printf %s "(cached) " >&6 16652else $as_nop 16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16654/* end confdefs.h. */ 16655int i; 16656_ACEOF 16657if ac_fn_c_try_compile "$LINENO" 16658then : 16659 xorg_cv_cc_flag_unknown_warning_option=yes 16660else $as_nop 16661 xorg_cv_cc_flag_unknown_warning_option=no 16662fi 16663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16664fi 16665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16666printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16667 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16668 CFLAGS="$xorg_testset_save_CFLAGS" 16669fi 16670 16671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16674 fi 16675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16677printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16678if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16679then : 16680 printf %s "(cached) " >&6 16681else $as_nop 16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16683/* end confdefs.h. */ 16684int i; 16685_ACEOF 16686if ac_fn_c_try_compile "$LINENO" 16687then : 16688 xorg_cv_cc_flag_unused_command_line_argument=yes 16689else $as_nop 16690 xorg_cv_cc_flag_unused_command_line_argument=no 16691fi 16692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16693fi 16694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16695printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16696 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16697 CFLAGS="$xorg_testset_save_CFLAGS" 16698fi 16699 16700found="no" 16701 16702 if test $found = "no" ; then 16703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16705 fi 16706 16707 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16709 fi 16710 16711 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16712 16713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16714printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16715 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16716 if eval test \${$cacheid+y} 16717then : 16718 printf %s "(cached) " >&6 16719else $as_nop 16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16721/* end confdefs.h. */ 16722int i; 16723int 16724main (void) 16725{ 16726 16727 ; 16728 return 0; 16729} 16730_ACEOF 16731if ac_fn_c_try_link "$LINENO" 16732then : 16733 eval $cacheid=yes 16734else $as_nop 16735 eval $cacheid=no 16736fi 16737rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16738 conftest$ac_exeext conftest.$ac_ext 16739fi 16740 16741 16742 CFLAGS="$xorg_testset_save_CFLAGS" 16743 16744 eval supported=\$$cacheid 16745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16746printf "%s\n" "$supported" >&6; } 16747 if test "$supported" = "yes" ; then 16748 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16749 found="yes" 16750 fi 16751 fi 16752 16753 if test $found = "no" ; then 16754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16756 fi 16757 16758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16760 fi 16761 16762 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16763 16764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16765printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16766 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16767 if eval test \${$cacheid+y} 16768then : 16769 printf %s "(cached) " >&6 16770else $as_nop 16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16772/* end confdefs.h. */ 16773int i; 16774int 16775main (void) 16776{ 16777 16778 ; 16779 return 0; 16780} 16781_ACEOF 16782if ac_fn_c_try_link "$LINENO" 16783then : 16784 eval $cacheid=yes 16785else $as_nop 16786 eval $cacheid=no 16787fi 16788rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16789 conftest$ac_exeext conftest.$ac_ext 16790fi 16791 16792 16793 CFLAGS="$xorg_testset_save_CFLAGS" 16794 16795 eval supported=\$$cacheid 16796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16797printf "%s\n" "$supported" >&6; } 16798 if test "$supported" = "yes" ; then 16799 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16800 found="yes" 16801 fi 16802 fi 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818xorg_testset_save_CFLAGS="$CFLAGS" 16819 16820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16823printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16824if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16825then : 16826 printf %s "(cached) " >&6 16827else $as_nop 16828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16829/* end confdefs.h. */ 16830int i; 16831_ACEOF 16832if ac_fn_c_try_compile "$LINENO" 16833then : 16834 xorg_cv_cc_flag_unknown_warning_option=yes 16835else $as_nop 16836 xorg_cv_cc_flag_unknown_warning_option=no 16837fi 16838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16839fi 16840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16843 CFLAGS="$xorg_testset_save_CFLAGS" 16844fi 16845 16846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16849 fi 16850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16853if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16854then : 16855 printf %s "(cached) " >&6 16856else $as_nop 16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16858/* end confdefs.h. */ 16859int i; 16860_ACEOF 16861if ac_fn_c_try_compile "$LINENO" 16862then : 16863 xorg_cv_cc_flag_unused_command_line_argument=yes 16864else $as_nop 16865 xorg_cv_cc_flag_unused_command_line_argument=no 16866fi 16867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16868fi 16869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16872 CFLAGS="$xorg_testset_save_CFLAGS" 16873fi 16874 16875found="no" 16876 16877 if test $found = "no" ; then 16878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16880 fi 16881 16882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16884 fi 16885 16886 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16887 16888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16889printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16890 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16891 if eval test \${$cacheid+y} 16892then : 16893 printf %s "(cached) " >&6 16894else $as_nop 16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16896/* end confdefs.h. */ 16897int i; 16898int 16899main (void) 16900{ 16901 16902 ; 16903 return 0; 16904} 16905_ACEOF 16906if ac_fn_c_try_link "$LINENO" 16907then : 16908 eval $cacheid=yes 16909else $as_nop 16910 eval $cacheid=no 16911fi 16912rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16913 conftest$ac_exeext conftest.$ac_ext 16914fi 16915 16916 16917 CFLAGS="$xorg_testset_save_CFLAGS" 16918 16919 eval supported=\$$cacheid 16920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16921printf "%s\n" "$supported" >&6; } 16922 if test "$supported" = "yes" ; then 16923 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16924 found="yes" 16925 fi 16926 fi 16927 16928 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16929else 16930{ 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 16931printf "%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;} 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945xorg_testset_save_CFLAGS="$CFLAGS" 16946 16947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16950printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16951if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16952then : 16953 printf %s "(cached) " >&6 16954else $as_nop 16955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16956/* end confdefs.h. */ 16957int i; 16958_ACEOF 16959if ac_fn_c_try_compile "$LINENO" 16960then : 16961 xorg_cv_cc_flag_unknown_warning_option=yes 16962else $as_nop 16963 xorg_cv_cc_flag_unknown_warning_option=no 16964fi 16965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16966fi 16967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16968printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16970 CFLAGS="$xorg_testset_save_CFLAGS" 16971fi 16972 16973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16976 fi 16977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16979printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16980if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16981then : 16982 printf %s "(cached) " >&6 16983else $as_nop 16984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16985/* end confdefs.h. */ 16986int i; 16987_ACEOF 16988if ac_fn_c_try_compile "$LINENO" 16989then : 16990 xorg_cv_cc_flag_unused_command_line_argument=yes 16991else $as_nop 16992 xorg_cv_cc_flag_unused_command_line_argument=no 16993fi 16994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16995fi 16996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16997printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16999 CFLAGS="$xorg_testset_save_CFLAGS" 17000fi 17001 17002found="no" 17003 17004 if test $found = "no" ; then 17005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17007 fi 17008 17009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17011 fi 17012 17013 CFLAGS="$CFLAGS -Wimplicit" 17014 17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17016printf %s "checking if $CC supports -Wimplicit... " >&6; } 17017 cacheid=xorg_cv_cc_flag__Wimplicit 17018 if eval test \${$cacheid+y} 17019then : 17020 printf %s "(cached) " >&6 17021else $as_nop 17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17023/* end confdefs.h. */ 17024int i; 17025int 17026main (void) 17027{ 17028 17029 ; 17030 return 0; 17031} 17032_ACEOF 17033if ac_fn_c_try_link "$LINENO" 17034then : 17035 eval $cacheid=yes 17036else $as_nop 17037 eval $cacheid=no 17038fi 17039rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17040 conftest$ac_exeext conftest.$ac_ext 17041fi 17042 17043 17044 CFLAGS="$xorg_testset_save_CFLAGS" 17045 17046 eval supported=\$$cacheid 17047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17048printf "%s\n" "$supported" >&6; } 17049 if test "$supported" = "yes" ; then 17050 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17051 found="yes" 17052 fi 17053 fi 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069xorg_testset_save_CFLAGS="$CFLAGS" 17070 17071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17075if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17076then : 17077 printf %s "(cached) " >&6 17078else $as_nop 17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17080/* end confdefs.h. */ 17081int i; 17082_ACEOF 17083if ac_fn_c_try_compile "$LINENO" 17084then : 17085 xorg_cv_cc_flag_unknown_warning_option=yes 17086else $as_nop 17087 xorg_cv_cc_flag_unknown_warning_option=no 17088fi 17089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17090fi 17091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17092printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17094 CFLAGS="$xorg_testset_save_CFLAGS" 17095fi 17096 17097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17100 fi 17101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17103printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17104if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17105then : 17106 printf %s "(cached) " >&6 17107else $as_nop 17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17109/* end confdefs.h. */ 17110int i; 17111_ACEOF 17112if ac_fn_c_try_compile "$LINENO" 17113then : 17114 xorg_cv_cc_flag_unused_command_line_argument=yes 17115else $as_nop 17116 xorg_cv_cc_flag_unused_command_line_argument=no 17117fi 17118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17119fi 17120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17121printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17123 CFLAGS="$xorg_testset_save_CFLAGS" 17124fi 17125 17126found="no" 17127 17128 if test $found = "no" ; then 17129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17131 fi 17132 17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17135 fi 17136 17137 CFLAGS="$CFLAGS -Wnonnull" 17138 17139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17140printf %s "checking if $CC supports -Wnonnull... " >&6; } 17141 cacheid=xorg_cv_cc_flag__Wnonnull 17142 if eval test \${$cacheid+y} 17143then : 17144 printf %s "(cached) " >&6 17145else $as_nop 17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17147/* end confdefs.h. */ 17148int i; 17149int 17150main (void) 17151{ 17152 17153 ; 17154 return 0; 17155} 17156_ACEOF 17157if ac_fn_c_try_link "$LINENO" 17158then : 17159 eval $cacheid=yes 17160else $as_nop 17161 eval $cacheid=no 17162fi 17163rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17164 conftest$ac_exeext conftest.$ac_ext 17165fi 17166 17167 17168 CFLAGS="$xorg_testset_save_CFLAGS" 17169 17170 eval supported=\$$cacheid 17171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17172printf "%s\n" "$supported" >&6; } 17173 if test "$supported" = "yes" ; then 17174 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17175 found="yes" 17176 fi 17177 fi 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193xorg_testset_save_CFLAGS="$CFLAGS" 17194 17195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17199if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17200then : 17201 printf %s "(cached) " >&6 17202else $as_nop 17203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17204/* end confdefs.h. */ 17205int i; 17206_ACEOF 17207if ac_fn_c_try_compile "$LINENO" 17208then : 17209 xorg_cv_cc_flag_unknown_warning_option=yes 17210else $as_nop 17211 xorg_cv_cc_flag_unknown_warning_option=no 17212fi 17213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17214fi 17215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17216printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17218 CFLAGS="$xorg_testset_save_CFLAGS" 17219fi 17220 17221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17224 fi 17225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17227printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17228if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17229then : 17230 printf %s "(cached) " >&6 17231else $as_nop 17232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17233/* end confdefs.h. */ 17234int i; 17235_ACEOF 17236if ac_fn_c_try_compile "$LINENO" 17237then : 17238 xorg_cv_cc_flag_unused_command_line_argument=yes 17239else $as_nop 17240 xorg_cv_cc_flag_unused_command_line_argument=no 17241fi 17242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17243fi 17244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17247 CFLAGS="$xorg_testset_save_CFLAGS" 17248fi 17249 17250found="no" 17251 17252 if test $found = "no" ; then 17253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17255 fi 17256 17257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17259 fi 17260 17261 CFLAGS="$CFLAGS -Winit-self" 17262 17263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17264printf %s "checking if $CC supports -Winit-self... " >&6; } 17265 cacheid=xorg_cv_cc_flag__Winit_self 17266 if eval test \${$cacheid+y} 17267then : 17268 printf %s "(cached) " >&6 17269else $as_nop 17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17271/* end confdefs.h. */ 17272int i; 17273int 17274main (void) 17275{ 17276 17277 ; 17278 return 0; 17279} 17280_ACEOF 17281if ac_fn_c_try_link "$LINENO" 17282then : 17283 eval $cacheid=yes 17284else $as_nop 17285 eval $cacheid=no 17286fi 17287rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17288 conftest$ac_exeext conftest.$ac_ext 17289fi 17290 17291 17292 CFLAGS="$xorg_testset_save_CFLAGS" 17293 17294 eval supported=\$$cacheid 17295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17296printf "%s\n" "$supported" >&6; } 17297 if test "$supported" = "yes" ; then 17298 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17299 found="yes" 17300 fi 17301 fi 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317xorg_testset_save_CFLAGS="$CFLAGS" 17318 17319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17322printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17323if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17324then : 17325 printf %s "(cached) " >&6 17326else $as_nop 17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17328/* end confdefs.h. */ 17329int i; 17330_ACEOF 17331if ac_fn_c_try_compile "$LINENO" 17332then : 17333 xorg_cv_cc_flag_unknown_warning_option=yes 17334else $as_nop 17335 xorg_cv_cc_flag_unknown_warning_option=no 17336fi 17337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17338fi 17339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17342 CFLAGS="$xorg_testset_save_CFLAGS" 17343fi 17344 17345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17348 fi 17349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17352if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17353then : 17354 printf %s "(cached) " >&6 17355else $as_nop 17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17357/* end confdefs.h. */ 17358int i; 17359_ACEOF 17360if ac_fn_c_try_compile "$LINENO" 17361then : 17362 xorg_cv_cc_flag_unused_command_line_argument=yes 17363else $as_nop 17364 xorg_cv_cc_flag_unused_command_line_argument=no 17365fi 17366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17367fi 17368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17369printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17371 CFLAGS="$xorg_testset_save_CFLAGS" 17372fi 17373 17374found="no" 17375 17376 if test $found = "no" ; then 17377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17379 fi 17380 17381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17383 fi 17384 17385 CFLAGS="$CFLAGS -Wmain" 17386 17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17388printf %s "checking if $CC supports -Wmain... " >&6; } 17389 cacheid=xorg_cv_cc_flag__Wmain 17390 if eval test \${$cacheid+y} 17391then : 17392 printf %s "(cached) " >&6 17393else $as_nop 17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17395/* end confdefs.h. */ 17396int i; 17397int 17398main (void) 17399{ 17400 17401 ; 17402 return 0; 17403} 17404_ACEOF 17405if ac_fn_c_try_link "$LINENO" 17406then : 17407 eval $cacheid=yes 17408else $as_nop 17409 eval $cacheid=no 17410fi 17411rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17412 conftest$ac_exeext conftest.$ac_ext 17413fi 17414 17415 17416 CFLAGS="$xorg_testset_save_CFLAGS" 17417 17418 eval supported=\$$cacheid 17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17420printf "%s\n" "$supported" >&6; } 17421 if test "$supported" = "yes" ; then 17422 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17423 found="yes" 17424 fi 17425 fi 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441xorg_testset_save_CFLAGS="$CFLAGS" 17442 17443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17446printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17447if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17448then : 17449 printf %s "(cached) " >&6 17450else $as_nop 17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17452/* end confdefs.h. */ 17453int i; 17454_ACEOF 17455if ac_fn_c_try_compile "$LINENO" 17456then : 17457 xorg_cv_cc_flag_unknown_warning_option=yes 17458else $as_nop 17459 xorg_cv_cc_flag_unknown_warning_option=no 17460fi 17461rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17462fi 17463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17464printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17466 CFLAGS="$xorg_testset_save_CFLAGS" 17467fi 17468 17469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17472 fi 17473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17475printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17476if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17477then : 17478 printf %s "(cached) " >&6 17479else $as_nop 17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17481/* end confdefs.h. */ 17482int i; 17483_ACEOF 17484if ac_fn_c_try_compile "$LINENO" 17485then : 17486 xorg_cv_cc_flag_unused_command_line_argument=yes 17487else $as_nop 17488 xorg_cv_cc_flag_unused_command_line_argument=no 17489fi 17490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17491fi 17492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17493printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17495 CFLAGS="$xorg_testset_save_CFLAGS" 17496fi 17497 17498found="no" 17499 17500 if test $found = "no" ; then 17501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17503 fi 17504 17505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17507 fi 17508 17509 CFLAGS="$CFLAGS -Wmissing-braces" 17510 17511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17512printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17513 cacheid=xorg_cv_cc_flag__Wmissing_braces 17514 if eval test \${$cacheid+y} 17515then : 17516 printf %s "(cached) " >&6 17517else $as_nop 17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17519/* end confdefs.h. */ 17520int i; 17521int 17522main (void) 17523{ 17524 17525 ; 17526 return 0; 17527} 17528_ACEOF 17529if ac_fn_c_try_link "$LINENO" 17530then : 17531 eval $cacheid=yes 17532else $as_nop 17533 eval $cacheid=no 17534fi 17535rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17536 conftest$ac_exeext conftest.$ac_ext 17537fi 17538 17539 17540 CFLAGS="$xorg_testset_save_CFLAGS" 17541 17542 eval supported=\$$cacheid 17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17544printf "%s\n" "$supported" >&6; } 17545 if test "$supported" = "yes" ; then 17546 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17547 found="yes" 17548 fi 17549 fi 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565xorg_testset_save_CFLAGS="$CFLAGS" 17566 17567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17570printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17571if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17572then : 17573 printf %s "(cached) " >&6 17574else $as_nop 17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17576/* end confdefs.h. */ 17577int i; 17578_ACEOF 17579if ac_fn_c_try_compile "$LINENO" 17580then : 17581 xorg_cv_cc_flag_unknown_warning_option=yes 17582else $as_nop 17583 xorg_cv_cc_flag_unknown_warning_option=no 17584fi 17585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17586fi 17587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17588printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17590 CFLAGS="$xorg_testset_save_CFLAGS" 17591fi 17592 17593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17596 fi 17597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17599printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17600if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17601then : 17602 printf %s "(cached) " >&6 17603else $as_nop 17604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17605/* end confdefs.h. */ 17606int i; 17607_ACEOF 17608if ac_fn_c_try_compile "$LINENO" 17609then : 17610 xorg_cv_cc_flag_unused_command_line_argument=yes 17611else $as_nop 17612 xorg_cv_cc_flag_unused_command_line_argument=no 17613fi 17614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17615fi 17616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17617printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17618 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17619 CFLAGS="$xorg_testset_save_CFLAGS" 17620fi 17621 17622found="no" 17623 17624 if test $found = "no" ; then 17625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17627 fi 17628 17629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17631 fi 17632 17633 CFLAGS="$CFLAGS -Wsequence-point" 17634 17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17636printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17637 cacheid=xorg_cv_cc_flag__Wsequence_point 17638 if eval test \${$cacheid+y} 17639then : 17640 printf %s "(cached) " >&6 17641else $as_nop 17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17643/* end confdefs.h. */ 17644int i; 17645int 17646main (void) 17647{ 17648 17649 ; 17650 return 0; 17651} 17652_ACEOF 17653if ac_fn_c_try_link "$LINENO" 17654then : 17655 eval $cacheid=yes 17656else $as_nop 17657 eval $cacheid=no 17658fi 17659rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17660 conftest$ac_exeext conftest.$ac_ext 17661fi 17662 17663 17664 CFLAGS="$xorg_testset_save_CFLAGS" 17665 17666 eval supported=\$$cacheid 17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17668printf "%s\n" "$supported" >&6; } 17669 if test "$supported" = "yes" ; then 17670 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17671 found="yes" 17672 fi 17673 fi 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689xorg_testset_save_CFLAGS="$CFLAGS" 17690 17691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17694printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17695if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17696then : 17697 printf %s "(cached) " >&6 17698else $as_nop 17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17700/* end confdefs.h. */ 17701int i; 17702_ACEOF 17703if ac_fn_c_try_compile "$LINENO" 17704then : 17705 xorg_cv_cc_flag_unknown_warning_option=yes 17706else $as_nop 17707 xorg_cv_cc_flag_unknown_warning_option=no 17708fi 17709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17710fi 17711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17712printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17714 CFLAGS="$xorg_testset_save_CFLAGS" 17715fi 17716 17717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17720 fi 17721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17723printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17724if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17725then : 17726 printf %s "(cached) " >&6 17727else $as_nop 17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729/* end confdefs.h. */ 17730int i; 17731_ACEOF 17732if ac_fn_c_try_compile "$LINENO" 17733then : 17734 xorg_cv_cc_flag_unused_command_line_argument=yes 17735else $as_nop 17736 xorg_cv_cc_flag_unused_command_line_argument=no 17737fi 17738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17739fi 17740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17741printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17743 CFLAGS="$xorg_testset_save_CFLAGS" 17744fi 17745 17746found="no" 17747 17748 if test $found = "no" ; then 17749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17751 fi 17752 17753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17755 fi 17756 17757 CFLAGS="$CFLAGS -Wreturn-type" 17758 17759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17760printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17761 cacheid=xorg_cv_cc_flag__Wreturn_type 17762 if eval test \${$cacheid+y} 17763then : 17764 printf %s "(cached) " >&6 17765else $as_nop 17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17767/* end confdefs.h. */ 17768int i; 17769int 17770main (void) 17771{ 17772 17773 ; 17774 return 0; 17775} 17776_ACEOF 17777if ac_fn_c_try_link "$LINENO" 17778then : 17779 eval $cacheid=yes 17780else $as_nop 17781 eval $cacheid=no 17782fi 17783rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17784 conftest$ac_exeext conftest.$ac_ext 17785fi 17786 17787 17788 CFLAGS="$xorg_testset_save_CFLAGS" 17789 17790 eval supported=\$$cacheid 17791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17792printf "%s\n" "$supported" >&6; } 17793 if test "$supported" = "yes" ; then 17794 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17795 found="yes" 17796 fi 17797 fi 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813xorg_testset_save_CFLAGS="$CFLAGS" 17814 17815if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17818printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17819if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17820then : 17821 printf %s "(cached) " >&6 17822else $as_nop 17823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17824/* end confdefs.h. */ 17825int i; 17826_ACEOF 17827if ac_fn_c_try_compile "$LINENO" 17828then : 17829 xorg_cv_cc_flag_unknown_warning_option=yes 17830else $as_nop 17831 xorg_cv_cc_flag_unknown_warning_option=no 17832fi 17833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17834fi 17835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17836printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17838 CFLAGS="$xorg_testset_save_CFLAGS" 17839fi 17840 17841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17844 fi 17845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17847printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17848if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17849then : 17850 printf %s "(cached) " >&6 17851else $as_nop 17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17853/* end confdefs.h. */ 17854int i; 17855_ACEOF 17856if ac_fn_c_try_compile "$LINENO" 17857then : 17858 xorg_cv_cc_flag_unused_command_line_argument=yes 17859else $as_nop 17860 xorg_cv_cc_flag_unused_command_line_argument=no 17861fi 17862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17863fi 17864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17867 CFLAGS="$xorg_testset_save_CFLAGS" 17868fi 17869 17870found="no" 17871 17872 if test $found = "no" ; then 17873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17875 fi 17876 17877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17879 fi 17880 17881 CFLAGS="$CFLAGS -Wtrigraphs" 17882 17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17884printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17885 cacheid=xorg_cv_cc_flag__Wtrigraphs 17886 if eval test \${$cacheid+y} 17887then : 17888 printf %s "(cached) " >&6 17889else $as_nop 17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17891/* end confdefs.h. */ 17892int i; 17893int 17894main (void) 17895{ 17896 17897 ; 17898 return 0; 17899} 17900_ACEOF 17901if ac_fn_c_try_link "$LINENO" 17902then : 17903 eval $cacheid=yes 17904else $as_nop 17905 eval $cacheid=no 17906fi 17907rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17908 conftest$ac_exeext conftest.$ac_ext 17909fi 17910 17911 17912 CFLAGS="$xorg_testset_save_CFLAGS" 17913 17914 eval supported=\$$cacheid 17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17916printf "%s\n" "$supported" >&6; } 17917 if test "$supported" = "yes" ; then 17918 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17919 found="yes" 17920 fi 17921 fi 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937xorg_testset_save_CFLAGS="$CFLAGS" 17938 17939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17943if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17944then : 17945 printf %s "(cached) " >&6 17946else $as_nop 17947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17948/* end confdefs.h. */ 17949int i; 17950_ACEOF 17951if ac_fn_c_try_compile "$LINENO" 17952then : 17953 xorg_cv_cc_flag_unknown_warning_option=yes 17954else $as_nop 17955 xorg_cv_cc_flag_unknown_warning_option=no 17956fi 17957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17958fi 17959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17962 CFLAGS="$xorg_testset_save_CFLAGS" 17963fi 17964 17965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17968 fi 17969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17972if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17973then : 17974 printf %s "(cached) " >&6 17975else $as_nop 17976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17977/* end confdefs.h. */ 17978int i; 17979_ACEOF 17980if ac_fn_c_try_compile "$LINENO" 17981then : 17982 xorg_cv_cc_flag_unused_command_line_argument=yes 17983else $as_nop 17984 xorg_cv_cc_flag_unused_command_line_argument=no 17985fi 17986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17987fi 17988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17991 CFLAGS="$xorg_testset_save_CFLAGS" 17992fi 17993 17994found="no" 17995 17996 if test $found = "no" ; then 17997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17999 fi 18000 18001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18003 fi 18004 18005 CFLAGS="$CFLAGS -Warray-bounds" 18006 18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18008printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18009 cacheid=xorg_cv_cc_flag__Warray_bounds 18010 if eval test \${$cacheid+y} 18011then : 18012 printf %s "(cached) " >&6 18013else $as_nop 18014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18015/* end confdefs.h. */ 18016int i; 18017int 18018main (void) 18019{ 18020 18021 ; 18022 return 0; 18023} 18024_ACEOF 18025if ac_fn_c_try_link "$LINENO" 18026then : 18027 eval $cacheid=yes 18028else $as_nop 18029 eval $cacheid=no 18030fi 18031rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18032 conftest$ac_exeext conftest.$ac_ext 18033fi 18034 18035 18036 CFLAGS="$xorg_testset_save_CFLAGS" 18037 18038 eval supported=\$$cacheid 18039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18040printf "%s\n" "$supported" >&6; } 18041 if test "$supported" = "yes" ; then 18042 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18043 found="yes" 18044 fi 18045 fi 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061xorg_testset_save_CFLAGS="$CFLAGS" 18062 18063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18067if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18068then : 18069 printf %s "(cached) " >&6 18070else $as_nop 18071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18072/* end confdefs.h. */ 18073int i; 18074_ACEOF 18075if ac_fn_c_try_compile "$LINENO" 18076then : 18077 xorg_cv_cc_flag_unknown_warning_option=yes 18078else $as_nop 18079 xorg_cv_cc_flag_unknown_warning_option=no 18080fi 18081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18082fi 18083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18086 CFLAGS="$xorg_testset_save_CFLAGS" 18087fi 18088 18089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18092 fi 18093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18096if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18097then : 18098 printf %s "(cached) " >&6 18099else $as_nop 18100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18101/* end confdefs.h. */ 18102int i; 18103_ACEOF 18104if ac_fn_c_try_compile "$LINENO" 18105then : 18106 xorg_cv_cc_flag_unused_command_line_argument=yes 18107else $as_nop 18108 xorg_cv_cc_flag_unused_command_line_argument=no 18109fi 18110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18111fi 18112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18115 CFLAGS="$xorg_testset_save_CFLAGS" 18116fi 18117 18118found="no" 18119 18120 if test $found = "no" ; then 18121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18123 fi 18124 18125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18127 fi 18128 18129 CFLAGS="$CFLAGS -Wwrite-strings" 18130 18131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18132printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18133 cacheid=xorg_cv_cc_flag__Wwrite_strings 18134 if eval test \${$cacheid+y} 18135then : 18136 printf %s "(cached) " >&6 18137else $as_nop 18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18139/* end confdefs.h. */ 18140int i; 18141int 18142main (void) 18143{ 18144 18145 ; 18146 return 0; 18147} 18148_ACEOF 18149if ac_fn_c_try_link "$LINENO" 18150then : 18151 eval $cacheid=yes 18152else $as_nop 18153 eval $cacheid=no 18154fi 18155rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18156 conftest$ac_exeext conftest.$ac_ext 18157fi 18158 18159 18160 CFLAGS="$xorg_testset_save_CFLAGS" 18161 18162 eval supported=\$$cacheid 18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18164printf "%s\n" "$supported" >&6; } 18165 if test "$supported" = "yes" ; then 18166 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18167 found="yes" 18168 fi 18169 fi 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185xorg_testset_save_CFLAGS="$CFLAGS" 18186 18187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18191if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18192then : 18193 printf %s "(cached) " >&6 18194else $as_nop 18195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18196/* end confdefs.h. */ 18197int i; 18198_ACEOF 18199if ac_fn_c_try_compile "$LINENO" 18200then : 18201 xorg_cv_cc_flag_unknown_warning_option=yes 18202else $as_nop 18203 xorg_cv_cc_flag_unknown_warning_option=no 18204fi 18205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18206fi 18207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18210 CFLAGS="$xorg_testset_save_CFLAGS" 18211fi 18212 18213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18216 fi 18217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18220if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18221then : 18222 printf %s "(cached) " >&6 18223else $as_nop 18224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18225/* end confdefs.h. */ 18226int i; 18227_ACEOF 18228if ac_fn_c_try_compile "$LINENO" 18229then : 18230 xorg_cv_cc_flag_unused_command_line_argument=yes 18231else $as_nop 18232 xorg_cv_cc_flag_unused_command_line_argument=no 18233fi 18234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18235fi 18236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18239 CFLAGS="$xorg_testset_save_CFLAGS" 18240fi 18241 18242found="no" 18243 18244 if test $found = "no" ; then 18245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18247 fi 18248 18249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18251 fi 18252 18253 CFLAGS="$CFLAGS -Waddress" 18254 18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18256printf %s "checking if $CC supports -Waddress... " >&6; } 18257 cacheid=xorg_cv_cc_flag__Waddress 18258 if eval test \${$cacheid+y} 18259then : 18260 printf %s "(cached) " >&6 18261else $as_nop 18262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18263/* end confdefs.h. */ 18264int i; 18265int 18266main (void) 18267{ 18268 18269 ; 18270 return 0; 18271} 18272_ACEOF 18273if ac_fn_c_try_link "$LINENO" 18274then : 18275 eval $cacheid=yes 18276else $as_nop 18277 eval $cacheid=no 18278fi 18279rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18280 conftest$ac_exeext conftest.$ac_ext 18281fi 18282 18283 18284 CFLAGS="$xorg_testset_save_CFLAGS" 18285 18286 eval supported=\$$cacheid 18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18288printf "%s\n" "$supported" >&6; } 18289 if test "$supported" = "yes" ; then 18290 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18291 found="yes" 18292 fi 18293 fi 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309xorg_testset_save_CFLAGS="$CFLAGS" 18310 18311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18314printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18315if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18316then : 18317 printf %s "(cached) " >&6 18318else $as_nop 18319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18320/* end confdefs.h. */ 18321int i; 18322_ACEOF 18323if ac_fn_c_try_compile "$LINENO" 18324then : 18325 xorg_cv_cc_flag_unknown_warning_option=yes 18326else $as_nop 18327 xorg_cv_cc_flag_unknown_warning_option=no 18328fi 18329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18330fi 18331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18332printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18334 CFLAGS="$xorg_testset_save_CFLAGS" 18335fi 18336 18337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18340 fi 18341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18343printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18344if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18345then : 18346 printf %s "(cached) " >&6 18347else $as_nop 18348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18349/* end confdefs.h. */ 18350int i; 18351_ACEOF 18352if ac_fn_c_try_compile "$LINENO" 18353then : 18354 xorg_cv_cc_flag_unused_command_line_argument=yes 18355else $as_nop 18356 xorg_cv_cc_flag_unused_command_line_argument=no 18357fi 18358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18359fi 18360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18363 CFLAGS="$xorg_testset_save_CFLAGS" 18364fi 18365 18366found="no" 18367 18368 if test $found = "no" ; then 18369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18371 fi 18372 18373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18375 fi 18376 18377 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18378 18379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18380printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18381 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18382 if eval test \${$cacheid+y} 18383then : 18384 printf %s "(cached) " >&6 18385else $as_nop 18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18387/* end confdefs.h. */ 18388int i; 18389int 18390main (void) 18391{ 18392 18393 ; 18394 return 0; 18395} 18396_ACEOF 18397if ac_fn_c_try_link "$LINENO" 18398then : 18399 eval $cacheid=yes 18400else $as_nop 18401 eval $cacheid=no 18402fi 18403rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18404 conftest$ac_exeext conftest.$ac_ext 18405fi 18406 18407 18408 CFLAGS="$xorg_testset_save_CFLAGS" 18409 18410 eval supported=\$$cacheid 18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18412printf "%s\n" "$supported" >&6; } 18413 if test "$supported" = "yes" ; then 18414 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18415 found="yes" 18416 fi 18417 fi 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433xorg_testset_save_CFLAGS="$CFLAGS" 18434 18435if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18438printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18439if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18440then : 18441 printf %s "(cached) " >&6 18442else $as_nop 18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18444/* end confdefs.h. */ 18445int i; 18446_ACEOF 18447if ac_fn_c_try_compile "$LINENO" 18448then : 18449 xorg_cv_cc_flag_unknown_warning_option=yes 18450else $as_nop 18451 xorg_cv_cc_flag_unknown_warning_option=no 18452fi 18453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18454fi 18455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18456printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18458 CFLAGS="$xorg_testset_save_CFLAGS" 18459fi 18460 18461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18464 fi 18465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18467printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18468if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18469then : 18470 printf %s "(cached) " >&6 18471else $as_nop 18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18473/* end confdefs.h. */ 18474int i; 18475_ACEOF 18476if ac_fn_c_try_compile "$LINENO" 18477then : 18478 xorg_cv_cc_flag_unused_command_line_argument=yes 18479else $as_nop 18480 xorg_cv_cc_flag_unused_command_line_argument=no 18481fi 18482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18483fi 18484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18485printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18487 CFLAGS="$xorg_testset_save_CFLAGS" 18488fi 18489 18490found="no" 18491 18492 if test $found = "no" ; then 18493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18495 fi 18496 18497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18499 fi 18500 18501 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18502 18503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18504printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18505 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18506 if eval test \${$cacheid+y} 18507then : 18508 printf %s "(cached) " >&6 18509else $as_nop 18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18511/* end confdefs.h. */ 18512int i; 18513int 18514main (void) 18515{ 18516 18517 ; 18518 return 0; 18519} 18520_ACEOF 18521if ac_fn_c_try_link "$LINENO" 18522then : 18523 eval $cacheid=yes 18524else $as_nop 18525 eval $cacheid=no 18526fi 18527rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18528 conftest$ac_exeext conftest.$ac_ext 18529fi 18530 18531 18532 CFLAGS="$xorg_testset_save_CFLAGS" 18533 18534 eval supported=\$$cacheid 18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18536printf "%s\n" "$supported" >&6; } 18537 if test "$supported" = "yes" ; then 18538 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18539 found="yes" 18540 fi 18541 fi 18542 18543 18544fi 18545 18546 18547 18548 18549 18550 18551 18552 CWARNFLAGS="$BASE_CFLAGS" 18553 if test "x$GCC" = xyes ; then 18554 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18555 fi 18556 18557 18558 18559 18560 18561 18562 18563 18564# Check whether --enable-strict-compilation was given. 18565if test ${enable_strict_compilation+y} 18566then : 18567 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18568else $as_nop 18569 STRICT_COMPILE=no 18570fi 18571 18572 18573 18574 18575 18576 18577STRICT_CFLAGS="" 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591xorg_testset_save_CFLAGS="$CFLAGS" 18592 18593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18596printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18597if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18598then : 18599 printf %s "(cached) " >&6 18600else $as_nop 18601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18602/* end confdefs.h. */ 18603int i; 18604_ACEOF 18605if ac_fn_c_try_compile "$LINENO" 18606then : 18607 xorg_cv_cc_flag_unknown_warning_option=yes 18608else $as_nop 18609 xorg_cv_cc_flag_unknown_warning_option=no 18610fi 18611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18612fi 18613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18614printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18616 CFLAGS="$xorg_testset_save_CFLAGS" 18617fi 18618 18619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18622 fi 18623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18625printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18626if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18627then : 18628 printf %s "(cached) " >&6 18629else $as_nop 18630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18631/* end confdefs.h. */ 18632int i; 18633_ACEOF 18634if ac_fn_c_try_compile "$LINENO" 18635then : 18636 xorg_cv_cc_flag_unused_command_line_argument=yes 18637else $as_nop 18638 xorg_cv_cc_flag_unused_command_line_argument=no 18639fi 18640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18641fi 18642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18643printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18645 CFLAGS="$xorg_testset_save_CFLAGS" 18646fi 18647 18648found="no" 18649 18650 if test $found = "no" ; then 18651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18653 fi 18654 18655 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18657 fi 18658 18659 CFLAGS="$CFLAGS -pedantic" 18660 18661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18662printf %s "checking if $CC supports -pedantic... " >&6; } 18663 cacheid=xorg_cv_cc_flag__pedantic 18664 if eval test \${$cacheid+y} 18665then : 18666 printf %s "(cached) " >&6 18667else $as_nop 18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18669/* end confdefs.h. */ 18670int i; 18671int 18672main (void) 18673{ 18674 18675 ; 18676 return 0; 18677} 18678_ACEOF 18679if ac_fn_c_try_link "$LINENO" 18680then : 18681 eval $cacheid=yes 18682else $as_nop 18683 eval $cacheid=no 18684fi 18685rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18686 conftest$ac_exeext conftest.$ac_ext 18687fi 18688 18689 18690 CFLAGS="$xorg_testset_save_CFLAGS" 18691 18692 eval supported=\$$cacheid 18693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18694printf "%s\n" "$supported" >&6; } 18695 if test "$supported" = "yes" ; then 18696 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18697 found="yes" 18698 fi 18699 fi 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715xorg_testset_save_CFLAGS="$CFLAGS" 18716 18717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18720printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18721if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18722then : 18723 printf %s "(cached) " >&6 18724else $as_nop 18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18726/* end confdefs.h. */ 18727int i; 18728_ACEOF 18729if ac_fn_c_try_compile "$LINENO" 18730then : 18731 xorg_cv_cc_flag_unknown_warning_option=yes 18732else $as_nop 18733 xorg_cv_cc_flag_unknown_warning_option=no 18734fi 18735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18736fi 18737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18740 CFLAGS="$xorg_testset_save_CFLAGS" 18741fi 18742 18743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18746 fi 18747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18750if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18751then : 18752 printf %s "(cached) " >&6 18753else $as_nop 18754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18755/* end confdefs.h. */ 18756int i; 18757_ACEOF 18758if ac_fn_c_try_compile "$LINENO" 18759then : 18760 xorg_cv_cc_flag_unused_command_line_argument=yes 18761else $as_nop 18762 xorg_cv_cc_flag_unused_command_line_argument=no 18763fi 18764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18765fi 18766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18767printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18769 CFLAGS="$xorg_testset_save_CFLAGS" 18770fi 18771 18772found="no" 18773 18774 if test $found = "no" ; then 18775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18777 fi 18778 18779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18781 fi 18782 18783 CFLAGS="$CFLAGS -Werror" 18784 18785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18786printf %s "checking if $CC supports -Werror... " >&6; } 18787 cacheid=xorg_cv_cc_flag__Werror 18788 if eval test \${$cacheid+y} 18789then : 18790 printf %s "(cached) " >&6 18791else $as_nop 18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18793/* end confdefs.h. */ 18794int i; 18795int 18796main (void) 18797{ 18798 18799 ; 18800 return 0; 18801} 18802_ACEOF 18803if ac_fn_c_try_link "$LINENO" 18804then : 18805 eval $cacheid=yes 18806else $as_nop 18807 eval $cacheid=no 18808fi 18809rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18810 conftest$ac_exeext conftest.$ac_ext 18811fi 18812 18813 18814 CFLAGS="$xorg_testset_save_CFLAGS" 18815 18816 eval supported=\$$cacheid 18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18818printf "%s\n" "$supported" >&6; } 18819 if test "$supported" = "yes" ; then 18820 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18821 found="yes" 18822 fi 18823 fi 18824 18825 if test $found = "no" ; then 18826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18828 fi 18829 18830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18832 fi 18833 18834 CFLAGS="$CFLAGS -errwarn" 18835 18836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18837printf %s "checking if $CC supports -errwarn... " >&6; } 18838 cacheid=xorg_cv_cc_flag__errwarn 18839 if eval test \${$cacheid+y} 18840then : 18841 printf %s "(cached) " >&6 18842else $as_nop 18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18844/* end confdefs.h. */ 18845int i; 18846int 18847main (void) 18848{ 18849 18850 ; 18851 return 0; 18852} 18853_ACEOF 18854if ac_fn_c_try_link "$LINENO" 18855then : 18856 eval $cacheid=yes 18857else $as_nop 18858 eval $cacheid=no 18859fi 18860rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18861 conftest$ac_exeext conftest.$ac_ext 18862fi 18863 18864 18865 CFLAGS="$xorg_testset_save_CFLAGS" 18866 18867 eval supported=\$$cacheid 18868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18869printf "%s\n" "$supported" >&6; } 18870 if test "$supported" = "yes" ; then 18871 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18872 found="yes" 18873 fi 18874 fi 18875 18876 18877 18878# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18879# activate it with -Werror, so we add it here explicitly. 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893xorg_testset_save_CFLAGS="$CFLAGS" 18894 18895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18899if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18900then : 18901 printf %s "(cached) " >&6 18902else $as_nop 18903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18904/* end confdefs.h. */ 18905int i; 18906_ACEOF 18907if ac_fn_c_try_compile "$LINENO" 18908then : 18909 xorg_cv_cc_flag_unknown_warning_option=yes 18910else $as_nop 18911 xorg_cv_cc_flag_unknown_warning_option=no 18912fi 18913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18914fi 18915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18918 CFLAGS="$xorg_testset_save_CFLAGS" 18919fi 18920 18921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18924 fi 18925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18928if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18929then : 18930 printf %s "(cached) " >&6 18931else $as_nop 18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18933/* end confdefs.h. */ 18934int i; 18935_ACEOF 18936if ac_fn_c_try_compile "$LINENO" 18937then : 18938 xorg_cv_cc_flag_unused_command_line_argument=yes 18939else $as_nop 18940 xorg_cv_cc_flag_unused_command_line_argument=no 18941fi 18942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18943fi 18944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18947 CFLAGS="$xorg_testset_save_CFLAGS" 18948fi 18949 18950found="no" 18951 18952 if test $found = "no" ; then 18953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18955 fi 18956 18957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18959 fi 18960 18961 CFLAGS="$CFLAGS -Werror=attributes" 18962 18963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18964printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18965 cacheid=xorg_cv_cc_flag__Werror_attributes 18966 if eval test \${$cacheid+y} 18967then : 18968 printf %s "(cached) " >&6 18969else $as_nop 18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18971/* end confdefs.h. */ 18972int i; 18973int 18974main (void) 18975{ 18976 18977 ; 18978 return 0; 18979} 18980_ACEOF 18981if ac_fn_c_try_link "$LINENO" 18982then : 18983 eval $cacheid=yes 18984else $as_nop 18985 eval $cacheid=no 18986fi 18987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18988 conftest$ac_exeext conftest.$ac_ext 18989fi 18990 18991 18992 CFLAGS="$xorg_testset_save_CFLAGS" 18993 18994 eval supported=\$$cacheid 18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18996printf "%s\n" "$supported" >&6; } 18997 if test "$supported" = "yes" ; then 18998 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18999 found="yes" 19000 fi 19001 fi 19002 19003 19004 19005if test "x$STRICT_COMPILE" = "xyes"; then 19006 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19007 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19008fi 19009 19010 19011 19012 19013 19014 19015cat >>confdefs.h <<_ACEOF 19016#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19017_ACEOF 19018 19019 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19020 if test "x$PVM" = "x"; then 19021 PVM="0" 19022 fi 19023 19024printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19025 19026 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19027 if test "x$PVP" = "x"; then 19028 PVP="0" 19029 fi 19030 19031printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19032 19033 19034 19035CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19036mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19037|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19038touch \$(top_srcdir)/ChangeLog; \ 19039echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19040 19041 19042 19043 19044macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19045INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19046mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19047|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19048touch \$(top_srcdir)/INSTALL; \ 19049echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19050 19051 19052 19053 19054 19055 19056case $host_os in 19057 solaris*) 19058 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19059 # check for a man page file found in later versions that use 19060 # traditional section numbers instead 19061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19062printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19063if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19064then : 19065 printf %s "(cached) " >&6 19066else $as_nop 19067 test "$cross_compiling" = yes && 19068 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19069if test -r "/usr/share/man/man7/attributes.7"; then 19070 ac_cv_file__usr_share_man_man7_attributes_7=yes 19071else 19072 ac_cv_file__usr_share_man_man7_attributes_7=no 19073fi 19074fi 19075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19076printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19077if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19078then : 19079 SYSV_MAN_SECTIONS=false 19080else $as_nop 19081 SYSV_MAN_SECTIONS=true 19082fi 19083 19084 ;; 19085 *) SYSV_MAN_SECTIONS=false ;; 19086esac 19087 19088if test x$APP_MAN_SUFFIX = x ; then 19089 APP_MAN_SUFFIX=1 19090fi 19091if test x$APP_MAN_DIR = x ; then 19092 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19093fi 19094 19095if test x$LIB_MAN_SUFFIX = x ; then 19096 LIB_MAN_SUFFIX=3 19097fi 19098if test x$LIB_MAN_DIR = x ; then 19099 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19100fi 19101 19102if test x$FILE_MAN_SUFFIX = x ; then 19103 case $SYSV_MAN_SECTIONS in 19104 true) FILE_MAN_SUFFIX=4 ;; 19105 *) FILE_MAN_SUFFIX=5 ;; 19106 esac 19107fi 19108if test x$FILE_MAN_DIR = x ; then 19109 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19110fi 19111 19112if test x$MISC_MAN_SUFFIX = x ; then 19113 case $SYSV_MAN_SECTIONS in 19114 true) MISC_MAN_SUFFIX=5 ;; 19115 *) MISC_MAN_SUFFIX=7 ;; 19116 esac 19117fi 19118if test x$MISC_MAN_DIR = x ; then 19119 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19120fi 19121 19122if test x$DRIVER_MAN_SUFFIX = x ; then 19123 case $SYSV_MAN_SECTIONS in 19124 true) DRIVER_MAN_SUFFIX=7 ;; 19125 *) DRIVER_MAN_SUFFIX=4 ;; 19126 esac 19127fi 19128if test x$DRIVER_MAN_DIR = x ; then 19129 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19130fi 19131 19132if test x$ADMIN_MAN_SUFFIX = x ; then 19133 case $SYSV_MAN_SECTIONS in 19134 true) ADMIN_MAN_SUFFIX=1m ;; 19135 *) ADMIN_MAN_SUFFIX=8 ;; 19136 esac 19137fi 19138if test x$ADMIN_MAN_DIR = x ; then 19139 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19140fi 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156XORG_MAN_PAGE="X Version 11" 19157 19158MAN_SUBSTS="\ 19159 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19160 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19161 -e 's|__xservername__|Xorg|g' \ 19162 -e 's|__xconfigfile__|xorg.conf|g' \ 19163 -e 's|__projectroot__|\$(prefix)|g' \ 19164 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19165 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19166 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19167 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19168 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19169 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19170 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19171 19172 19173 19174# Check whether --enable-silent-rules was given. 19175if test ${enable_silent_rules+y} 19176then : 19177 enableval=$enable_silent_rules; 19178fi 19179 19180case $enable_silent_rules in # ((( 19181 yes) AM_DEFAULT_VERBOSITY=0;; 19182 no) AM_DEFAULT_VERBOSITY=1;; 19183 *) AM_DEFAULT_VERBOSITY=0;; 19184esac 19185am_make=${MAKE-make} 19186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19187printf %s "checking whether $am_make supports nested variables... " >&6; } 19188if test ${am_cv_make_support_nested_variables+y} 19189then : 19190 printf %s "(cached) " >&6 19191else $as_nop 19192 if printf "%s\n" 'TRUE=$(BAR$(V)) 19193BAR0=false 19194BAR1=true 19195V=1 19196am__doit: 19197 @$(TRUE) 19198.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19199 am_cv_make_support_nested_variables=yes 19200else 19201 am_cv_make_support_nested_variables=no 19202fi 19203fi 19204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19205printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19206if test $am_cv_make_support_nested_variables = yes; then 19207 AM_V='$(V)' 19208 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19209else 19210 AM_V=$AM_DEFAULT_VERBOSITY 19211 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19212fi 19213AM_BACKSLASH='\' 19214 19215 19216 19217# Checks for library functions 19218ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 19219if test "x$ac_cv_func_strlcat" = xyes 19220then : 19221 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 19222 19223fi 19224 19225ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 19226if test "x$ac_cv_func_fork" = xyes 19227then : 19228 19229else $as_nop 19230 printf "%s\n" "#define NO_ZPIPE 1" >>confdefs.h 19231 19232fi 19233 19234 19235# Obtain compiler/linker options for dependencies 19236 19237pkg_failed=no 19238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5 19239printf %s "checking for XPM... " >&6; } 19240 19241if test -n "$XPM_CFLAGS"; then 19242 pkg_cv_XPM_CFLAGS="$XPM_CFLAGS" 19243 elif test -n "$PKG_CONFIG"; then 19244 if test -n "$PKG_CONFIG" && \ 19245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5 19246 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 19247 ac_status=$? 19248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19249 test $ac_status = 0; }; then 19250 pkg_cv_XPM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11" 2>/dev/null` 19251 test "x$?" != "x0" && pkg_failed=yes 19252else 19253 pkg_failed=yes 19254fi 19255 else 19256 pkg_failed=untried 19257fi 19258if test -n "$XPM_LIBS"; then 19259 pkg_cv_XPM_LIBS="$XPM_LIBS" 19260 elif test -n "$PKG_CONFIG"; then 19261 if test -n "$PKG_CONFIG" && \ 19262 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11\""; } >&5 19263 ($PKG_CONFIG --exists --print-errors "xproto x11") 2>&5 19264 ac_status=$? 19265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19266 test $ac_status = 0; }; then 19267 pkg_cv_XPM_LIBS=`$PKG_CONFIG --libs "xproto x11" 2>/dev/null` 19268 test "x$?" != "x0" && pkg_failed=yes 19269else 19270 pkg_failed=yes 19271fi 19272 else 19273 pkg_failed=untried 19274fi 19275 19276 19277 19278if test $pkg_failed = yes; then 19279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19280printf "%s\n" "no" >&6; } 19281 19282if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19283 _pkg_short_errors_supported=yes 19284else 19285 _pkg_short_errors_supported=no 19286fi 19287 if test $_pkg_short_errors_supported = yes; then 19288 XPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11" 2>&1` 19289 else 19290 XPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11" 2>&1` 19291 fi 19292 # Put the nasty error message in config.log where it belongs 19293 echo "$XPM_PKG_ERRORS" >&5 19294 19295 as_fn_error $? "Package requirements (xproto x11) were not met: 19296 19297$XPM_PKG_ERRORS 19298 19299Consider adjusting the PKG_CONFIG_PATH environment variable if you 19300installed software in a non-standard prefix. 19301 19302Alternatively, you may set the environment variables XPM_CFLAGS 19303and XPM_LIBS to avoid the need to call pkg-config. 19304See the pkg-config man page for more details." "$LINENO" 5 19305elif test $pkg_failed = untried; then 19306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19307printf "%s\n" "no" >&6; } 19308 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19309printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19310as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19311is in your PATH or set the PKG_CONFIG environment variable to the full 19312path to pkg-config. 19313 19314Alternatively, you may set the environment variables XPM_CFLAGS 19315and XPM_LIBS to avoid the need to call pkg-config. 19316See the pkg-config man page for more details. 19317 19318To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19319See \`config.log' for more details" "$LINENO" 5; } 19320else 19321 XPM_CFLAGS=$pkg_cv_XPM_CFLAGS 19322 XPM_LIBS=$pkg_cv_XPM_LIBS 19323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19324printf "%s\n" "yes" >&6; } 19325 19326fi 19327 19328pkg_failed=no 19329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SXPM" >&5 19330printf %s "checking for SXPM... " >&6; } 19331 19332if test -n "$SXPM_CFLAGS"; then 19333 pkg_cv_SXPM_CFLAGS="$SXPM_CFLAGS" 19334 elif test -n "$PKG_CONFIG"; then 19335 if test -n "$PKG_CONFIG" && \ 19336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5 19337 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5 19338 ac_status=$? 19339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19340 test $ac_status = 0; }; then 19341 pkg_cv_SXPM_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null` 19342 test "x$?" != "x0" && pkg_failed=yes 19343else 19344 pkg_failed=yes 19345fi 19346 else 19347 pkg_failed=untried 19348fi 19349if test -n "$SXPM_LIBS"; then 19350 pkg_cv_SXPM_LIBS="$SXPM_LIBS" 19351 elif test -n "$PKG_CONFIG"; then 19352 if test -n "$PKG_CONFIG" && \ 19353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xextproto xproto >= 7.0.17\""; } >&5 19354 ($PKG_CONFIG --exists --print-errors "x11 xt xext xextproto xproto >= 7.0.17") 2>&5 19355 ac_status=$? 19356 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19357 test $ac_status = 0; }; then 19358 pkg_cv_SXPM_LIBS=`$PKG_CONFIG --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>/dev/null` 19359 test "x$?" != "x0" && pkg_failed=yes 19360else 19361 pkg_failed=yes 19362fi 19363 else 19364 pkg_failed=untried 19365fi 19366 19367 19368 19369if test $pkg_failed = yes; then 19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19371printf "%s\n" "no" >&6; } 19372 19373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19374 _pkg_short_errors_supported=yes 19375else 19376 _pkg_short_errors_supported=no 19377fi 19378 if test $_pkg_short_errors_supported = yes; then 19379 SXPM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1` 19380 else 19381 SXPM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xt xext xextproto xproto >= 7.0.17" 2>&1` 19382 fi 19383 # Put the nasty error message in config.log where it belongs 19384 echo "$SXPM_PKG_ERRORS" >&5 19385 19386 build_sxpm=false 19387elif test $pkg_failed = untried; then 19388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19389printf "%s\n" "no" >&6; } 19390 build_sxpm=false 19391else 19392 SXPM_CFLAGS=$pkg_cv_SXPM_CFLAGS 19393 SXPM_LIBS=$pkg_cv_SXPM_LIBS 19394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19395printf "%s\n" "yes" >&6; } 19396 build_sxpm=true 19397fi 19398 if test x$build_sxpm = xtrue; then 19399 BUILD_SXPM_TRUE= 19400 BUILD_SXPM_FALSE='#' 19401else 19402 BUILD_SXPM_TRUE='#' 19403 BUILD_SXPM_FALSE= 19404fi 19405 19406 19407# Internationalization & localization support 19408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 19409printf %s "checking for library containing gettext... " >&6; } 19410if test ${ac_cv_search_gettext+y} 19411then : 19412 printf %s "(cached) " >&6 19413else $as_nop 19414 ac_func_search_save_LIBS=$LIBS 19415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416/* end confdefs.h. */ 19417 19418/* Override any GCC internal prototype to avoid an error. 19419 Use char because int might match the return type of a GCC 19420 builtin and then its argument prototype would still apply. */ 19421char gettext (); 19422int 19423main (void) 19424{ 19425return gettext (); 19426 ; 19427 return 0; 19428} 19429_ACEOF 19430for ac_lib in '' intl 19431do 19432 if test -z "$ac_lib"; then 19433 ac_res="none required" 19434 else 19435 ac_res=-l$ac_lib 19436 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19437 fi 19438 if ac_fn_c_try_link "$LINENO" 19439then : 19440 ac_cv_search_gettext=$ac_res 19441fi 19442rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19443 conftest$ac_exeext 19444 if test ${ac_cv_search_gettext+y} 19445then : 19446 break 19447fi 19448done 19449if test ${ac_cv_search_gettext+y} 19450then : 19451 19452else $as_nop 19453 ac_cv_search_gettext=no 19454fi 19455rm conftest.$ac_ext 19456LIBS=$ac_func_search_save_LIBS 19457fi 19458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 19459printf "%s\n" "$ac_cv_search_gettext" >&6; } 19460ac_res=$ac_cv_search_gettext 19461if test "$ac_res" != no 19462then : 19463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19464 USE_GETTEXT="yes" 19465else $as_nop 19466 USE_GETTEXT="no" 19467fi 19468 19469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5 19470printf %s "checking where to install localized messages... " >&6; } 19471 19472# Check whether --with-localedir was given. 19473if test ${with_localedir+y} 19474then : 19475 withval=$with_localedir; LOCALEDIR=${withval} 19476else $as_nop 19477 LOCALEDIR=${datadir}/locale 19478fi 19479 19480 19481 prefix_NONE= 19482 exec_prefix_NONE= 19483 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 19484 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 19485 eval ax_define_dir="\"$LOCALEDIR\"" 19486 eval ax_define_dir="\"$ax_define_dir\"" 19487 LOCALEDIR="$ax_define_dir" 19488 19489 19490printf "%s\n" "#define LOCALEDIR \"$ax_define_dir\"" >>confdefs.h 19491 19492 test "$prefix_NONE" && prefix=NONE 19493 test "$exec_prefix_NONE" && exec_prefix=NONE 19494 19495if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 19496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 19497printf "%s\n" "nowhere" >&6; } 19498 USE_GETTEXT="no" 19499else 19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5 19501printf "%s\n" "$LOCALEDIR" >&6; } 19502fi 19503 19504if test "x$USE_GETTEXT" = "xyes" ; then 19505 19506printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h 19507 19508fi 19509 if test "x$USE_GETTEXT" = "xyes"; then 19510 USE_GETTEXT_TRUE= 19511 USE_GETTEXT_FALSE='#' 19512else 19513 USE_GETTEXT_TRUE='#' 19514 USE_GETTEXT_FALSE= 19515fi 19516 19517 19518# Optional feature: When ___.xpm is requested, also look for ___.xpm.Z & .gz 19519# Replaces ZFILEDEF = -DSTAT_ZFILE in old Imakefile 19520# Check whether --enable-stat-zfile was given. 19521if test ${enable_stat_zfile+y} 19522then : 19523 enableval=$enable_stat_zfile; STAT_ZFILE=$enableval 19524else $as_nop 19525 STAT_ZFILE=yes 19526fi 19527 19528if test x$STAT_ZFILE = xyes ; then 19529 19530printf "%s\n" "#define STAT_ZFILE 1" >>confdefs.h 19531 19532fi 19533 19534 19535case $host_os in 19536 *mingw*) 19537 19538printf "%s\n" "#define NO_ZPIPE 1" >>confdefs.h 19539 19540 ;; 19541 *) 19542 ;; 19543esac 19544 19545ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile man/Makefile src/Makefile sxpm/Makefile cxpm/Makefile xpm.pc" 19546 19547cat >confcache <<\_ACEOF 19548# This file is a shell script that caches the results of configure 19549# tests run on this system so they can be shared between configure 19550# scripts and configure runs, see configure's option --config-cache. 19551# It is not useful on other systems. If it contains results you don't 19552# want to keep, you may remove or edit it. 19553# 19554# config.status only pays attention to the cache file if you give it 19555# the --recheck option to rerun configure. 19556# 19557# `ac_cv_env_foo' variables (set or unset) will be overridden when 19558# loading this file, other *unset* `ac_cv_foo' will be assigned the 19559# following values. 19560 19561_ACEOF 19562 19563# The following way of writing the cache mishandles newlines in values, 19564# but we know of no workaround that is simple, portable, and efficient. 19565# So, we kill variables containing newlines. 19566# Ultrix sh set writes to stderr and can't be redirected directly, 19567# and sets the high bit in the cache file unless we assign to the vars. 19568( 19569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19570 eval ac_val=\$$ac_var 19571 case $ac_val in #( 19572 *${as_nl}*) 19573 case $ac_var in #( 19574 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19575printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19576 esac 19577 case $ac_var in #( 19578 _ | IFS | as_nl) ;; #( 19579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19580 *) { eval $ac_var=; unset $ac_var;} ;; 19581 esac ;; 19582 esac 19583 done 19584 19585 (set) 2>&1 | 19586 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19587 *${as_nl}ac_space=\ *) 19588 # `set' does not quote correctly, so add quotes: double-quote 19589 # substitution turns \\\\ into \\, and sed turns \\ into \. 19590 sed -n \ 19591 "s/'/'\\\\''/g; 19592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19593 ;; #( 19594 *) 19595 # `set' quotes correctly as required by POSIX, so do not add quotes. 19596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19597 ;; 19598 esac | 19599 sort 19600) | 19601 sed ' 19602 /^ac_cv_env_/b end 19603 t clear 19604 :clear 19605 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19606 t end 19607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19608 :end' >>confcache 19609if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19610 if test -w "$cache_file"; then 19611 if test "x$cache_file" != "x/dev/null"; then 19612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19613printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19614 if test ! -f "$cache_file" || test -h "$cache_file"; then 19615 cat confcache >"$cache_file" 19616 else 19617 case $cache_file in #( 19618 */* | ?:*) 19619 mv -f confcache "$cache_file"$$ && 19620 mv -f "$cache_file"$$ "$cache_file" ;; #( 19621 *) 19622 mv -f confcache "$cache_file" ;; 19623 esac 19624 fi 19625 fi 19626 else 19627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19628printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19629 fi 19630fi 19631rm -f confcache 19632 19633test "x$prefix" = xNONE && prefix=$ac_default_prefix 19634# Let make expand exec_prefix. 19635test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19636 19637DEFS=-DHAVE_CONFIG_H 19638 19639ac_libobjs= 19640ac_ltlibobjs= 19641U= 19642for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19643 # 1. Remove the extension, and $U if already installed. 19644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19645 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19647 # will be set to the directory where LIBOBJS objects are built. 19648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19650done 19651LIBOBJS=$ac_libobjs 19652 19653LTLIBOBJS=$ac_ltlibobjs 19654 19655 19656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19657printf %s "checking that generated files are newer than configure... " >&6; } 19658 if test -n "$am_sleep_pid"; then 19659 # Hide warnings about reused PIDs. 19660 wait $am_sleep_pid 2>/dev/null 19661 fi 19662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19663printf "%s\n" "done" >&6; } 19664 if test -n "$EXEEXT"; then 19665 am__EXEEXT_TRUE= 19666 am__EXEEXT_FALSE='#' 19667else 19668 am__EXEEXT_TRUE='#' 19669 am__EXEEXT_FALSE= 19670fi 19671 19672if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19673 as_fn_error $? "conditional \"AMDEP\" was never defined. 19674Usually this means the macro was only invoked conditionally." "$LINENO" 5 19675fi 19676if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19677 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19678Usually this means the macro was only invoked conditionally." "$LINENO" 5 19679fi 19680if test -z "${BUILD_SXPM_TRUE}" && test -z "${BUILD_SXPM_FALSE}"; then 19681 as_fn_error $? "conditional \"BUILD_SXPM\" was never defined. 19682Usually this means the macro was only invoked conditionally." "$LINENO" 5 19683fi 19684if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 19685 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined. 19686Usually this means the macro was only invoked conditionally." "$LINENO" 5 19687fi 19688 19689: "${CONFIG_STATUS=./config.status}" 19690ac_write_fail=0 19691ac_clean_files_save=$ac_clean_files 19692ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19694printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19695as_write_fail=0 19696cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19697#! $SHELL 19698# Generated by $as_me. 19699# Run this file to recreate the current configuration. 19700# Compiler output produced by configure, useful for debugging 19701# configure, is in config.log if it exists. 19702 19703debug=false 19704ac_cs_recheck=false 19705ac_cs_silent=false 19706 19707SHELL=\${CONFIG_SHELL-$SHELL} 19708export SHELL 19709_ASEOF 19710cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19711## -------------------- ## 19712## M4sh Initialization. ## 19713## -------------------- ## 19714 19715# Be more Bourne compatible 19716DUALCASE=1; export DUALCASE # for MKS sh 19717as_nop=: 19718if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19719then : 19720 emulate sh 19721 NULLCMD=: 19722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19723 # is contrary to our usage. Disable this feature. 19724 alias -g '${1+"$@"}'='"$@"' 19725 setopt NO_GLOB_SUBST 19726else $as_nop 19727 case `(set -o) 2>/dev/null` in #( 19728 *posix*) : 19729 set -o posix ;; #( 19730 *) : 19731 ;; 19732esac 19733fi 19734 19735 19736 19737# Reset variables that may have inherited troublesome values from 19738# the environment. 19739 19740# IFS needs to be set, to space, tab, and newline, in precisely that order. 19741# (If _AS_PATH_WALK were called with IFS unset, it would have the 19742# side effect of setting IFS to empty, thus disabling word splitting.) 19743# Quoting is to prevent editors from complaining about space-tab. 19744as_nl=' 19745' 19746export as_nl 19747IFS=" "" $as_nl" 19748 19749PS1='$ ' 19750PS2='> ' 19751PS4='+ ' 19752 19753# Ensure predictable behavior from utilities with locale-dependent output. 19754LC_ALL=C 19755export LC_ALL 19756LANGUAGE=C 19757export LANGUAGE 19758 19759# We cannot yet rely on "unset" to work, but we need these variables 19760# to be unset--not just set to an empty or harmless value--now, to 19761# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19762# also avoids known problems related to "unset" and subshell syntax 19763# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19764for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19765do eval test \${$as_var+y} \ 19766 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19767done 19768 19769# Ensure that fds 0, 1, and 2 are open. 19770if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19771if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19772if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19773 19774# The user is always right. 19775if ${PATH_SEPARATOR+false} :; then 19776 PATH_SEPARATOR=: 19777 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19778 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19779 PATH_SEPARATOR=';' 19780 } 19781fi 19782 19783 19784# Find who we are. Look in the path if we contain no directory separator. 19785as_myself= 19786case $0 in #(( 19787 *[\\/]* ) as_myself=$0 ;; 19788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19789for as_dir in $PATH 19790do 19791 IFS=$as_save_IFS 19792 case $as_dir in #((( 19793 '') as_dir=./ ;; 19794 */) ;; 19795 *) as_dir=$as_dir/ ;; 19796 esac 19797 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19798 done 19799IFS=$as_save_IFS 19800 19801 ;; 19802esac 19803# We did not find ourselves, most probably we were run as `sh COMMAND' 19804# in which case we are not to be found in the path. 19805if test "x$as_myself" = x; then 19806 as_myself=$0 19807fi 19808if test ! -f "$as_myself"; then 19809 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19810 exit 1 19811fi 19812 19813 19814 19815# as_fn_error STATUS ERROR [LINENO LOG_FD] 19816# ---------------------------------------- 19817# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19818# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19819# script with STATUS, using 1 if that was 0. 19820as_fn_error () 19821{ 19822 as_status=$1; test $as_status -eq 0 && as_status=1 19823 if test "$4"; then 19824 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19826 fi 19827 printf "%s\n" "$as_me: error: $2" >&2 19828 as_fn_exit $as_status 19829} # as_fn_error 19830 19831 19832 19833# as_fn_set_status STATUS 19834# ----------------------- 19835# Set $? to STATUS, without forking. 19836as_fn_set_status () 19837{ 19838 return $1 19839} # as_fn_set_status 19840 19841# as_fn_exit STATUS 19842# ----------------- 19843# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19844as_fn_exit () 19845{ 19846 set +e 19847 as_fn_set_status $1 19848 exit $1 19849} # as_fn_exit 19850 19851# as_fn_unset VAR 19852# --------------- 19853# Portably unset VAR. 19854as_fn_unset () 19855{ 19856 { eval $1=; unset $1;} 19857} 19858as_unset=as_fn_unset 19859 19860# as_fn_append VAR VALUE 19861# ---------------------- 19862# Append the text in VALUE to the end of the definition contained in VAR. Take 19863# advantage of any shell optimizations that allow amortized linear growth over 19864# repeated appends, instead of the typical quadratic growth present in naive 19865# implementations. 19866if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19867then : 19868 eval 'as_fn_append () 19869 { 19870 eval $1+=\$2 19871 }' 19872else $as_nop 19873 as_fn_append () 19874 { 19875 eval $1=\$$1\$2 19876 } 19877fi # as_fn_append 19878 19879# as_fn_arith ARG... 19880# ------------------ 19881# Perform arithmetic evaluation on the ARGs, and store the result in the 19882# global $as_val. Take advantage of shells that can avoid forks. The arguments 19883# must be portable across $(()) and expr. 19884if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19885then : 19886 eval 'as_fn_arith () 19887 { 19888 as_val=$(( $* )) 19889 }' 19890else $as_nop 19891 as_fn_arith () 19892 { 19893 as_val=`expr "$@" || test $? -eq 1` 19894 } 19895fi # as_fn_arith 19896 19897 19898if expr a : '\(a\)' >/dev/null 2>&1 && 19899 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19900 as_expr=expr 19901else 19902 as_expr=false 19903fi 19904 19905if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19906 as_basename=basename 19907else 19908 as_basename=false 19909fi 19910 19911if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19912 as_dirname=dirname 19913else 19914 as_dirname=false 19915fi 19916 19917as_me=`$as_basename -- "$0" || 19918$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19919 X"$0" : 'X\(//\)$' \| \ 19920 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19921printf "%s\n" X/"$0" | 19922 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19923 s//\1/ 19924 q 19925 } 19926 /^X\/\(\/\/\)$/{ 19927 s//\1/ 19928 q 19929 } 19930 /^X\/\(\/\).*/{ 19931 s//\1/ 19932 q 19933 } 19934 s/.*/./; q'` 19935 19936# Avoid depending upon Character Ranges. 19937as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19938as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19939as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19940as_cr_digits='0123456789' 19941as_cr_alnum=$as_cr_Letters$as_cr_digits 19942 19943 19944# Determine whether it's possible to make 'echo' print without a newline. 19945# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19946# for compatibility with existing Makefiles. 19947ECHO_C= ECHO_N= ECHO_T= 19948case `echo -n x` in #((((( 19949-n*) 19950 case `echo 'xy\c'` in 19951 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19952 xy) ECHO_C='\c';; 19953 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19954 ECHO_T=' ';; 19955 esac;; 19956*) 19957 ECHO_N='-n';; 19958esac 19959 19960# For backward compatibility with old third-party macros, we provide 19961# the shell variables $as_echo and $as_echo_n. New code should use 19962# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19963as_echo='printf %s\n' 19964as_echo_n='printf %s' 19965 19966rm -f conf$$ conf$$.exe conf$$.file 19967if test -d conf$$.dir; then 19968 rm -f conf$$.dir/conf$$.file 19969else 19970 rm -f conf$$.dir 19971 mkdir conf$$.dir 2>/dev/null 19972fi 19973if (echo >conf$$.file) 2>/dev/null; then 19974 if ln -s conf$$.file conf$$ 2>/dev/null; then 19975 as_ln_s='ln -s' 19976 # ... but there are two gotchas: 19977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19979 # In both cases, we have to default to `cp -pR'. 19980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19981 as_ln_s='cp -pR' 19982 elif ln conf$$.file conf$$ 2>/dev/null; then 19983 as_ln_s=ln 19984 else 19985 as_ln_s='cp -pR' 19986 fi 19987else 19988 as_ln_s='cp -pR' 19989fi 19990rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19991rmdir conf$$.dir 2>/dev/null 19992 19993 19994# as_fn_mkdir_p 19995# ------------- 19996# Create "$as_dir" as a directory, including parents if necessary. 19997as_fn_mkdir_p () 19998{ 19999 20000 case $as_dir in #( 20001 -*) as_dir=./$as_dir;; 20002 esac 20003 test -d "$as_dir" || eval $as_mkdir_p || { 20004 as_dirs= 20005 while :; do 20006 case $as_dir in #( 20007 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20008 *) as_qdir=$as_dir;; 20009 esac 20010 as_dirs="'$as_qdir' $as_dirs" 20011 as_dir=`$as_dirname -- "$as_dir" || 20012$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20013 X"$as_dir" : 'X\(//\)[^/]' \| \ 20014 X"$as_dir" : 'X\(//\)$' \| \ 20015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20016printf "%s\n" X"$as_dir" | 20017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20018 s//\1/ 20019 q 20020 } 20021 /^X\(\/\/\)[^/].*/{ 20022 s//\1/ 20023 q 20024 } 20025 /^X\(\/\/\)$/{ 20026 s//\1/ 20027 q 20028 } 20029 /^X\(\/\).*/{ 20030 s//\1/ 20031 q 20032 } 20033 s/.*/./; q'` 20034 test -d "$as_dir" && break 20035 done 20036 test -z "$as_dirs" || eval "mkdir $as_dirs" 20037 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20038 20039 20040} # as_fn_mkdir_p 20041if mkdir -p . 2>/dev/null; then 20042 as_mkdir_p='mkdir -p "$as_dir"' 20043else 20044 test -d ./-p && rmdir ./-p 20045 as_mkdir_p=false 20046fi 20047 20048 20049# as_fn_executable_p FILE 20050# ----------------------- 20051# Test if FILE is an executable regular file. 20052as_fn_executable_p () 20053{ 20054 test -f "$1" && test -x "$1" 20055} # as_fn_executable_p 20056as_test_x='test -x' 20057as_executable_p=as_fn_executable_p 20058 20059# Sed expression to map a string onto a valid CPP name. 20060as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20061 20062# Sed expression to map a string onto a valid variable name. 20063as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20064 20065 20066exec 6>&1 20067## ----------------------------------- ## 20068## Main body of $CONFIG_STATUS script. ## 20069## ----------------------------------- ## 20070_ASEOF 20071test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20072 20073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20074# Save the log message, to keep $0 and so on meaningful, and to 20075# report actual input values of CONFIG_FILES etc. instead of their 20076# values after options handling. 20077ac_log=" 20078This file was extended by libXpm $as_me 3.5.14, which was 20079generated by GNU Autoconf 2.71. Invocation command line was 20080 20081 CONFIG_FILES = $CONFIG_FILES 20082 CONFIG_HEADERS = $CONFIG_HEADERS 20083 CONFIG_LINKS = $CONFIG_LINKS 20084 CONFIG_COMMANDS = $CONFIG_COMMANDS 20085 $ $0 $@ 20086 20087on `(hostname || uname -n) 2>/dev/null | sed 1q` 20088" 20089 20090_ACEOF 20091 20092case $ac_config_files in *" 20093"*) set x $ac_config_files; shift; ac_config_files=$*;; 20094esac 20095 20096case $ac_config_headers in *" 20097"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20098esac 20099 20100 20101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20102# Files that config.status was made for. 20103config_files="$ac_config_files" 20104config_headers="$ac_config_headers" 20105config_commands="$ac_config_commands" 20106 20107_ACEOF 20108 20109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20110ac_cs_usage="\ 20111\`$as_me' instantiates files and other configuration actions 20112from templates according to the current configuration. Unless the files 20113and actions are specified as TAGs, all are instantiated by default. 20114 20115Usage: $0 [OPTION]... [TAG]... 20116 20117 -h, --help print this help, then exit 20118 -V, --version print version number and configuration settings, then exit 20119 --config print configuration, then exit 20120 -q, --quiet, --silent 20121 do not print progress messages 20122 -d, --debug don't remove temporary files 20123 --recheck update $as_me by reconfiguring in the same conditions 20124 --file=FILE[:TEMPLATE] 20125 instantiate the configuration file FILE 20126 --header=FILE[:TEMPLATE] 20127 instantiate the configuration header FILE 20128 20129Configuration files: 20130$config_files 20131 20132Configuration headers: 20133$config_headers 20134 20135Configuration commands: 20136$config_commands 20137 20138Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues>." 20139 20140_ACEOF 20141ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20142ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20144ac_cs_config='$ac_cs_config_escaped' 20145ac_cs_version="\\ 20146libXpm config.status 3.5.14 20147configured by $0, generated by GNU Autoconf 2.71, 20148 with options \\"\$ac_cs_config\\" 20149 20150Copyright (C) 2021 Free Software Foundation, Inc. 20151This config.status script is free software; the Free Software Foundation 20152gives unlimited permission to copy, distribute and modify it." 20153 20154ac_pwd='$ac_pwd' 20155srcdir='$srcdir' 20156INSTALL='$INSTALL' 20157MKDIR_P='$MKDIR_P' 20158AWK='$AWK' 20159test -n "\$AWK" || AWK=awk 20160_ACEOF 20161 20162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20163# The default lists apply if the user does not specify any file. 20164ac_need_defaults=: 20165while test $# != 0 20166do 20167 case $1 in 20168 --*=?*) 20169 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20170 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20171 ac_shift=: 20172 ;; 20173 --*=) 20174 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20175 ac_optarg= 20176 ac_shift=: 20177 ;; 20178 *) 20179 ac_option=$1 20180 ac_optarg=$2 20181 ac_shift=shift 20182 ;; 20183 esac 20184 20185 case $ac_option in 20186 # Handling of the options. 20187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20188 ac_cs_recheck=: ;; 20189 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20190 printf "%s\n" "$ac_cs_version"; exit ;; 20191 --config | --confi | --conf | --con | --co | --c ) 20192 printf "%s\n" "$ac_cs_config"; exit ;; 20193 --debug | --debu | --deb | --de | --d | -d ) 20194 debug=: ;; 20195 --file | --fil | --fi | --f ) 20196 $ac_shift 20197 case $ac_optarg in 20198 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20199 '') as_fn_error $? "missing file argument" ;; 20200 esac 20201 as_fn_append CONFIG_FILES " '$ac_optarg'" 20202 ac_need_defaults=false;; 20203 --header | --heade | --head | --hea ) 20204 $ac_shift 20205 case $ac_optarg in 20206 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20207 esac 20208 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20209 ac_need_defaults=false;; 20210 --he | --h) 20211 # Conflict between --help and --header 20212 as_fn_error $? "ambiguous option: \`$1' 20213Try \`$0 --help' for more information.";; 20214 --help | --hel | -h ) 20215 printf "%s\n" "$ac_cs_usage"; exit ;; 20216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20217 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20218 ac_cs_silent=: ;; 20219 20220 # This is an error. 20221 -*) as_fn_error $? "unrecognized option: \`$1' 20222Try \`$0 --help' for more information." ;; 20223 20224 *) as_fn_append ac_config_targets " $1" 20225 ac_need_defaults=false ;; 20226 20227 esac 20228 shift 20229done 20230 20231ac_configure_extra_args= 20232 20233if $ac_cs_silent; then 20234 exec 6>/dev/null 20235 ac_configure_extra_args="$ac_configure_extra_args --silent" 20236fi 20237 20238_ACEOF 20239cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20240if \$ac_cs_recheck; then 20241 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20242 shift 20243 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20244 CONFIG_SHELL='$SHELL' 20245 export CONFIG_SHELL 20246 exec "\$@" 20247fi 20248 20249_ACEOF 20250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20251exec 5>>config.log 20252{ 20253 echo 20254 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20255## Running $as_me. ## 20256_ASBOX 20257 printf "%s\n" "$ac_log" 20258} >&5 20259 20260_ACEOF 20261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20262# 20263# INIT-COMMANDS 20264# 20265AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20266 20267 20268# The HP-UX ksh and POSIX shell print the target directory to stdout 20269# if CDPATH is set. 20270(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20271 20272sed_quote_subst='$sed_quote_subst' 20273double_quote_subst='$double_quote_subst' 20274delay_variable_subst='$delay_variable_subst' 20275macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20276macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20277enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20278enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20279pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20280enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20281shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20282SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20283ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20284PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20285host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20286host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20287host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20288build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20289build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20290build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20291SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20292Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20293GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20294EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20295FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20296LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20297NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20298LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20299max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20300ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20301exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20302lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20303lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20304lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20305lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20306lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20307reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20308reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20309FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20310OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20311deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20312file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20313file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20314want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20315DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20316sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20317AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20318lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20319AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20320archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20321STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20322RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20323old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20324old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20325old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20326lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20327CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20328CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20329compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20330GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20331lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20332lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20333lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20334lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20335lt_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"`' 20336lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20337nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20338lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20339lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20340objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20341MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20342lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20343lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20344lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20345lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20346lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20347need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20348MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20349DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20350NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20351LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20352OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20353OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20354libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20355shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20356extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20357archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20358enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20359export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20360whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20361compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20362old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20363old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20364archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20365archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20366module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20367module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20368with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20369allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20370no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20371hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20372hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20373hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20374hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20375hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20376hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20377hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20378inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20379link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20380always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20381export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20382exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20383include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20384prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20385postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20386file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20387variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20388need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20389need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20390version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20391runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20392shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20393shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20394libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20395library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20396soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20397install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20398postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20399postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20400finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20401finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20402hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20403sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20404configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20405configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20406hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20407enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20408enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20409enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20410old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20411striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20412 20413LTCC='$LTCC' 20414LTCFLAGS='$LTCFLAGS' 20415compiler='$compiler_DEFAULT' 20416 20417# A function that is used when there is no print builtin or printf. 20418func_fallback_echo () 20419{ 20420 eval 'cat <<_LTECHO_EOF 20421\$1 20422_LTECHO_EOF' 20423} 20424 20425# Quote evaled strings. 20426for var in SHELL \ 20427ECHO \ 20428PATH_SEPARATOR \ 20429SED \ 20430GREP \ 20431EGREP \ 20432FGREP \ 20433LD \ 20434NM \ 20435LN_S \ 20436lt_SP2NL \ 20437lt_NL2SP \ 20438reload_flag \ 20439FILECMD \ 20440OBJDUMP \ 20441deplibs_check_method \ 20442file_magic_cmd \ 20443file_magic_glob \ 20444want_nocaseglob \ 20445DLLTOOL \ 20446sharedlib_from_linklib_cmd \ 20447AR \ 20448archiver_list_spec \ 20449STRIP \ 20450RANLIB \ 20451CC \ 20452CFLAGS \ 20453compiler \ 20454lt_cv_sys_global_symbol_pipe \ 20455lt_cv_sys_global_symbol_to_cdecl \ 20456lt_cv_sys_global_symbol_to_import \ 20457lt_cv_sys_global_symbol_to_c_name_address \ 20458lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20459lt_cv_nm_interface \ 20460nm_file_list_spec \ 20461lt_cv_truncate_bin \ 20462lt_prog_compiler_no_builtin_flag \ 20463lt_prog_compiler_pic \ 20464lt_prog_compiler_wl \ 20465lt_prog_compiler_static \ 20466lt_cv_prog_compiler_c_o \ 20467need_locks \ 20468MANIFEST_TOOL \ 20469DSYMUTIL \ 20470NMEDIT \ 20471LIPO \ 20472OTOOL \ 20473OTOOL64 \ 20474shrext_cmds \ 20475export_dynamic_flag_spec \ 20476whole_archive_flag_spec \ 20477compiler_needs_object \ 20478with_gnu_ld \ 20479allow_undefined_flag \ 20480no_undefined_flag \ 20481hardcode_libdir_flag_spec \ 20482hardcode_libdir_separator \ 20483exclude_expsyms \ 20484include_expsyms \ 20485file_list_spec \ 20486variables_saved_for_relink \ 20487libname_spec \ 20488library_names_spec \ 20489soname_spec \ 20490install_override_mode \ 20491finish_eval \ 20492old_striplib \ 20493striplib; do 20494 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20495 *[\\\\\\\`\\"\\\$]*) 20496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20497 ;; 20498 *) 20499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20500 ;; 20501 esac 20502done 20503 20504# Double-quote double-evaled strings. 20505for var in reload_cmds \ 20506old_postinstall_cmds \ 20507old_postuninstall_cmds \ 20508old_archive_cmds \ 20509extract_expsyms_cmds \ 20510old_archive_from_new_cmds \ 20511old_archive_from_expsyms_cmds \ 20512archive_cmds \ 20513archive_expsym_cmds \ 20514module_cmds \ 20515module_expsym_cmds \ 20516export_symbols_cmds \ 20517prelink_cmds \ 20518postlink_cmds \ 20519postinstall_cmds \ 20520postuninstall_cmds \ 20521finish_cmds \ 20522sys_lib_search_path_spec \ 20523configure_time_dlsearch_path \ 20524configure_time_lt_sys_library_path; do 20525 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20526 *[\\\\\\\`\\"\\\$]*) 20527 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20528 ;; 20529 *) 20530 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20531 ;; 20532 esac 20533done 20534 20535ac_aux_dir='$ac_aux_dir' 20536 20537# See if we are running on zsh, and set the options that allow our 20538# commands through without removal of \ escapes INIT. 20539if test -n "\${ZSH_VERSION+set}"; then 20540 setopt NO_GLOB_SUBST 20541fi 20542 20543 20544 PACKAGE='$PACKAGE' 20545 VERSION='$VERSION' 20546 RM='$RM' 20547 ofile='$ofile' 20548 20549 20550 20551 20552_ACEOF 20553 20554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20555 20556# Handling of arguments. 20557for ac_config_target in $ac_config_targets 20558do 20559 case $ac_config_target in 20560 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20561 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20562 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20563 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20564 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20565 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20566 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20567 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20568 "sxpm/Makefile") CONFIG_FILES="$CONFIG_FILES sxpm/Makefile" ;; 20569 "cxpm/Makefile") CONFIG_FILES="$CONFIG_FILES cxpm/Makefile" ;; 20570 "xpm.pc") CONFIG_FILES="$CONFIG_FILES xpm.pc" ;; 20571 20572 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20573 esac 20574done 20575 20576 20577# If the user did not use the arguments to specify the items to instantiate, 20578# then the envvar interface is used. Set only those that are not. 20579# We use the long form for the default assignment because of an extremely 20580# bizarre bug on SunOS 4.1.3. 20581if $ac_need_defaults; then 20582 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20583 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20584 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20585fi 20586 20587# Have a temporary directory for convenience. Make it in the build tree 20588# simply because there is no reason against having it here, and in addition, 20589# creating and moving files from /tmp can sometimes cause problems. 20590# Hook for its removal unless debugging. 20591# Note that there is a small window in which the directory will not be cleaned: 20592# after its creation but before its name has been assigned to `$tmp'. 20593$debug || 20594{ 20595 tmp= ac_tmp= 20596 trap 'exit_status=$? 20597 : "${ac_tmp:=$tmp}" 20598 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20599' 0 20600 trap 'as_fn_exit 1' 1 2 13 15 20601} 20602# Create a (secure) tmp directory for tmp files. 20603 20604{ 20605 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20606 test -d "$tmp" 20607} || 20608{ 20609 tmp=./conf$$-$RANDOM 20610 (umask 077 && mkdir "$tmp") 20611} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20612ac_tmp=$tmp 20613 20614# Set up the scripts for CONFIG_FILES section. 20615# No need to generate them if there are no CONFIG_FILES. 20616# This happens for instance with `./config.status config.h'. 20617if test -n "$CONFIG_FILES"; then 20618 20619 20620ac_cr=`echo X | tr X '\015'` 20621# On cygwin, bash can eat \r inside `` if the user requested igncr. 20622# But we know of no other shell where ac_cr would be empty at this 20623# point, so we can use a bashism as a fallback. 20624if test "x$ac_cr" = x; then 20625 eval ac_cr=\$\'\\r\' 20626fi 20627ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20628if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20629 ac_cs_awk_cr='\\r' 20630else 20631 ac_cs_awk_cr=$ac_cr 20632fi 20633 20634echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20635_ACEOF 20636 20637 20638{ 20639 echo "cat >conf$$subs.awk <<_ACEOF" && 20640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20641 echo "_ACEOF" 20642} >conf$$subs.sh || 20643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20644ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20645ac_delim='%!_!# ' 20646for ac_last_try in false false false false false :; do 20647 . ./conf$$subs.sh || 20648 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20649 20650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20651 if test $ac_delim_n = $ac_delim_num; then 20652 break 20653 elif $ac_last_try; then 20654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20655 else 20656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20657 fi 20658done 20659rm -f conf$$subs.sh 20660 20661cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20662cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20663_ACEOF 20664sed -n ' 20665h 20666s/^/S["/; s/!.*/"]=/ 20667p 20668g 20669s/^[^!]*!// 20670:repl 20671t repl 20672s/'"$ac_delim"'$// 20673t delim 20674:nl 20675h 20676s/\(.\{148\}\)..*/\1/ 20677t more1 20678s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20679p 20680n 20681b repl 20682:more1 20683s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20684p 20685g 20686s/.\{148\}// 20687t nl 20688:delim 20689h 20690s/\(.\{148\}\)..*/\1/ 20691t more2 20692s/["\\]/\\&/g; s/^/"/; s/$/"/ 20693p 20694b 20695:more2 20696s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20697p 20698g 20699s/.\{148\}// 20700t delim 20701' <conf$$subs.awk | sed ' 20702/^[^""]/{ 20703 N 20704 s/\n// 20705} 20706' >>$CONFIG_STATUS || ac_write_fail=1 20707rm -f conf$$subs.awk 20708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20709_ACAWK 20710cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20711 for (key in S) S_is_set[key] = 1 20712 FS = "" 20713 20714} 20715{ 20716 line = $ 0 20717 nfields = split(line, field, "@") 20718 substed = 0 20719 len = length(field[1]) 20720 for (i = 2; i < nfields; i++) { 20721 key = field[i] 20722 keylen = length(key) 20723 if (S_is_set[key]) { 20724 value = S[key] 20725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20726 len += length(value) + length(field[++i]) 20727 substed = 1 20728 } else 20729 len += 1 + keylen 20730 } 20731 20732 print line 20733} 20734 20735_ACAWK 20736_ACEOF 20737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20738if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20740else 20741 cat 20742fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20743 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20744_ACEOF 20745 20746# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20747# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20748# trailing colons and then remove the whole line if VPATH becomes empty 20749# (actually we leave an empty line to preserve line numbers). 20750if test "x$srcdir" = x.; then 20751 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20752h 20753s/// 20754s/^/:/ 20755s/[ ]*$/:/ 20756s/:\$(srcdir):/:/g 20757s/:\${srcdir}:/:/g 20758s/:@srcdir@:/:/g 20759s/^:*// 20760s/:*$// 20761x 20762s/\(=[ ]*\).*/\1/ 20763G 20764s/\n// 20765s/^[^=]*=[ ]*$// 20766}' 20767fi 20768 20769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20770fi # test -n "$CONFIG_FILES" 20771 20772# Set up the scripts for CONFIG_HEADERS section. 20773# No need to generate them if there are no CONFIG_HEADERS. 20774# This happens for instance with `./config.status Makefile'. 20775if test -n "$CONFIG_HEADERS"; then 20776cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20777BEGIN { 20778_ACEOF 20779 20780# Transform confdefs.h into an awk script `defines.awk', embedded as 20781# here-document in config.status, that substitutes the proper values into 20782# config.h.in to produce config.h. 20783 20784# Create a delimiter string that does not exist in confdefs.h, to ease 20785# handling of long lines. 20786ac_delim='%!_!# ' 20787for ac_last_try in false false :; do 20788 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20789 if test -z "$ac_tt"; then 20790 break 20791 elif $ac_last_try; then 20792 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20793 else 20794 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20795 fi 20796done 20797 20798# For the awk script, D is an array of macro values keyed by name, 20799# likewise P contains macro parameters if any. Preserve backslash 20800# newline sequences. 20801 20802ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20803sed -n ' 20804s/.\{148\}/&'"$ac_delim"'/g 20805t rset 20806:rset 20807s/^[ ]*#[ ]*define[ ][ ]*/ / 20808t def 20809d 20810:def 20811s/\\$// 20812t bsnl 20813s/["\\]/\\&/g 20814s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20815D["\1"]=" \3"/p 20816s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20817d 20818:bsnl 20819s/["\\]/\\&/g 20820s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20821D["\1"]=" \3\\\\\\n"\\/p 20822t cont 20823s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20824t cont 20825d 20826:cont 20827n 20828s/.\{148\}/&'"$ac_delim"'/g 20829t clear 20830:clear 20831s/\\$// 20832t bsnlc 20833s/["\\]/\\&/g; s/^/"/; s/$/"/p 20834d 20835:bsnlc 20836s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20837b cont 20838' <confdefs.h | sed ' 20839s/'"$ac_delim"'/"\\\ 20840"/g' >>$CONFIG_STATUS || ac_write_fail=1 20841 20842cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20843 for (key in D) D_is_set[key] = 1 20844 FS = "" 20845} 20846/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20847 line = \$ 0 20848 split(line, arg, " ") 20849 if (arg[1] == "#") { 20850 defundef = arg[2] 20851 mac1 = arg[3] 20852 } else { 20853 defundef = substr(arg[1], 2) 20854 mac1 = arg[2] 20855 } 20856 split(mac1, mac2, "(") #) 20857 macro = mac2[1] 20858 prefix = substr(line, 1, index(line, defundef) - 1) 20859 if (D_is_set[macro]) { 20860 # Preserve the white space surrounding the "#". 20861 print prefix "define", macro P[macro] D[macro] 20862 next 20863 } else { 20864 # Replace #undef with comments. This is necessary, for example, 20865 # in the case of _POSIX_SOURCE, which is predefined and required 20866 # on some systems where configure will not decide to define it. 20867 if (defundef == "undef") { 20868 print "/*", prefix defundef, macro, "*/" 20869 next 20870 } 20871 } 20872} 20873{ print } 20874_ACAWK 20875_ACEOF 20876cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20877 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20878fi # test -n "$CONFIG_HEADERS" 20879 20880 20881eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20882shift 20883for ac_tag 20884do 20885 case $ac_tag in 20886 :[FHLC]) ac_mode=$ac_tag; continue;; 20887 esac 20888 case $ac_mode$ac_tag in 20889 :[FHL]*:*);; 20890 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20891 :[FH]-) ac_tag=-:-;; 20892 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20893 esac 20894 ac_save_IFS=$IFS 20895 IFS=: 20896 set x $ac_tag 20897 IFS=$ac_save_IFS 20898 shift 20899 ac_file=$1 20900 shift 20901 20902 case $ac_mode in 20903 :L) ac_source=$1;; 20904 :[FH]) 20905 ac_file_inputs= 20906 for ac_f 20907 do 20908 case $ac_f in 20909 -) ac_f="$ac_tmp/stdin";; 20910 *) # Look for the file first in the build tree, then in the source tree 20911 # (if the path is not absolute). The absolute path cannot be DOS-style, 20912 # because $ac_f cannot contain `:'. 20913 test -f "$ac_f" || 20914 case $ac_f in 20915 [\\/$]*) false;; 20916 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20917 esac || 20918 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20919 esac 20920 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20921 as_fn_append ac_file_inputs " '$ac_f'" 20922 done 20923 20924 # Let's still pretend it is `configure' which instantiates (i.e., don't 20925 # use $as_me), people would be surprised to read: 20926 # /* config.h. Generated by config.status. */ 20927 configure_input='Generated from '` 20928 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20929 `' by configure.' 20930 if test x"$ac_file" != x-; then 20931 configure_input="$ac_file. $configure_input" 20932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20933printf "%s\n" "$as_me: creating $ac_file" >&6;} 20934 fi 20935 # Neutralize special characters interpreted by sed in replacement strings. 20936 case $configure_input in #( 20937 *\&* | *\|* | *\\* ) 20938 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20939 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20940 *) ac_sed_conf_input=$configure_input;; 20941 esac 20942 20943 case $ac_tag in 20944 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20946 esac 20947 ;; 20948 esac 20949 20950 ac_dir=`$as_dirname -- "$ac_file" || 20951$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20952 X"$ac_file" : 'X\(//\)[^/]' \| \ 20953 X"$ac_file" : 'X\(//\)$' \| \ 20954 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20955printf "%s\n" X"$ac_file" | 20956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20957 s//\1/ 20958 q 20959 } 20960 /^X\(\/\/\)[^/].*/{ 20961 s//\1/ 20962 q 20963 } 20964 /^X\(\/\/\)$/{ 20965 s//\1/ 20966 q 20967 } 20968 /^X\(\/\).*/{ 20969 s//\1/ 20970 q 20971 } 20972 s/.*/./; q'` 20973 as_dir="$ac_dir"; as_fn_mkdir_p 20974 ac_builddir=. 20975 20976case "$ac_dir" in 20977.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20978*) 20979 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20980 # A ".." for each directory in $ac_dir_suffix. 20981 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20982 case $ac_top_builddir_sub in 20983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20985 esac ;; 20986esac 20987ac_abs_top_builddir=$ac_pwd 20988ac_abs_builddir=$ac_pwd$ac_dir_suffix 20989# for backward compatibility: 20990ac_top_builddir=$ac_top_build_prefix 20991 20992case $srcdir in 20993 .) # We are building in place. 20994 ac_srcdir=. 20995 ac_top_srcdir=$ac_top_builddir_sub 20996 ac_abs_top_srcdir=$ac_pwd ;; 20997 [\\/]* | ?:[\\/]* ) # Absolute name. 20998 ac_srcdir=$srcdir$ac_dir_suffix; 20999 ac_top_srcdir=$srcdir 21000 ac_abs_top_srcdir=$srcdir ;; 21001 *) # Relative name. 21002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21003 ac_top_srcdir=$ac_top_build_prefix$srcdir 21004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21005esac 21006ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21007 21008 21009 case $ac_mode in 21010 :F) 21011 # 21012 # CONFIG_FILE 21013 # 21014 21015 case $INSTALL in 21016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21018 esac 21019 ac_MKDIR_P=$MKDIR_P 21020 case $MKDIR_P in 21021 [\\/$]* | ?:[\\/]* ) ;; 21022 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21023 esac 21024_ACEOF 21025 21026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21027# If the template does not know about datarootdir, expand it. 21028# FIXME: This hack should be removed a few years after 2.60. 21029ac_datarootdir_hack=; ac_datarootdir_seen= 21030ac_sed_dataroot=' 21031/datarootdir/ { 21032 p 21033 q 21034} 21035/@datadir@/p 21036/@docdir@/p 21037/@infodir@/p 21038/@localedir@/p 21039/@mandir@/p' 21040case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21041*datarootdir*) ac_datarootdir_seen=yes;; 21042*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21044printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21045_ACEOF 21046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21047 ac_datarootdir_hack=' 21048 s&@datadir@&$datadir&g 21049 s&@docdir@&$docdir&g 21050 s&@infodir@&$infodir&g 21051 s&@localedir@&$localedir&g 21052 s&@mandir@&$mandir&g 21053 s&\\\${datarootdir}&$datarootdir&g' ;; 21054esac 21055_ACEOF 21056 21057# Neutralize VPATH when `$srcdir' = `.'. 21058# Shell code in configure.ac might set extrasub. 21059# FIXME: do we really want to maintain this feature? 21060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21061ac_sed_extra="$ac_vpsub 21062$extrasub 21063_ACEOF 21064cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21065:t 21066/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21067s|@configure_input@|$ac_sed_conf_input|;t t 21068s&@top_builddir@&$ac_top_builddir_sub&;t t 21069s&@top_build_prefix@&$ac_top_build_prefix&;t t 21070s&@srcdir@&$ac_srcdir&;t t 21071s&@abs_srcdir@&$ac_abs_srcdir&;t t 21072s&@top_srcdir@&$ac_top_srcdir&;t t 21073s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21074s&@builddir@&$ac_builddir&;t t 21075s&@abs_builddir@&$ac_abs_builddir&;t t 21076s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21077s&@INSTALL@&$ac_INSTALL&;t t 21078s&@MKDIR_P@&$ac_MKDIR_P&;t t 21079$ac_datarootdir_hack 21080" 21081eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21082 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21083 21084test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21085 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21086 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21087 "$ac_tmp/out"`; test -z "$ac_out"; } && 21088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21089which seems to be undefined. Please make sure it is defined" >&5 21090printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21091which seems to be undefined. Please make sure it is defined" >&2;} 21092 21093 rm -f "$ac_tmp/stdin" 21094 case $ac_file in 21095 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21096 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21097 esac \ 21098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21099 ;; 21100 :H) 21101 # 21102 # CONFIG_HEADER 21103 # 21104 if test x"$ac_file" != x-; then 21105 { 21106 printf "%s\n" "/* $configure_input */" >&1 \ 21107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21108 } >"$ac_tmp/config.h" \ 21109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21110 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21112printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21113 else 21114 rm -f "$ac_file" 21115 mv "$ac_tmp/config.h" "$ac_file" \ 21116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21117 fi 21118 else 21119 printf "%s\n" "/* $configure_input */" >&1 \ 21120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21121 || as_fn_error $? "could not create -" "$LINENO" 5 21122 fi 21123# Compute "$ac_file"'s index in $config_headers. 21124_am_arg="$ac_file" 21125_am_stamp_count=1 21126for _am_header in $config_headers :; do 21127 case $_am_header in 21128 $_am_arg | $_am_arg:* ) 21129 break ;; 21130 * ) 21131 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21132 esac 21133done 21134echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21135$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21136 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21137 X"$_am_arg" : 'X\(//\)$' \| \ 21138 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21139printf "%s\n" X"$_am_arg" | 21140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21141 s//\1/ 21142 q 21143 } 21144 /^X\(\/\/\)[^/].*/{ 21145 s//\1/ 21146 q 21147 } 21148 /^X\(\/\/\)$/{ 21149 s//\1/ 21150 q 21151 } 21152 /^X\(\/\).*/{ 21153 s//\1/ 21154 q 21155 } 21156 s/.*/./; q'`/stamp-h$_am_stamp_count 21157 ;; 21158 21159 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21160printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21161 ;; 21162 esac 21163 21164 21165 case $ac_file$ac_mode in 21166 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21167 # Older Autoconf quotes --file arguments for eval, but not when files 21168 # are listed without --file. Let's play safe and only enable the eval 21169 # if we detect the quoting. 21170 # TODO: see whether this extra hack can be removed once we start 21171 # requiring Autoconf 2.70 or later. 21172 case $CONFIG_FILES in #( 21173 *\'*) : 21174 eval set x "$CONFIG_FILES" ;; #( 21175 *) : 21176 set x $CONFIG_FILES ;; #( 21177 *) : 21178 ;; 21179esac 21180 shift 21181 # Used to flag and report bootstrapping failures. 21182 am_rc=0 21183 for am_mf 21184 do 21185 # Strip MF so we end up with the name of the file. 21186 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21187 # Check whether this is an Automake generated Makefile which includes 21188 # dependency-tracking related rules and includes. 21189 # Grep'ing the whole file directly is not great: AIX grep has a line 21190 # limit of 2048, but all sed's we know have understand at least 4000. 21191 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21192 || continue 21193 am_dirpart=`$as_dirname -- "$am_mf" || 21194$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21195 X"$am_mf" : 'X\(//\)[^/]' \| \ 21196 X"$am_mf" : 'X\(//\)$' \| \ 21197 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21198printf "%s\n" X"$am_mf" | 21199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21200 s//\1/ 21201 q 21202 } 21203 /^X\(\/\/\)[^/].*/{ 21204 s//\1/ 21205 q 21206 } 21207 /^X\(\/\/\)$/{ 21208 s//\1/ 21209 q 21210 } 21211 /^X\(\/\).*/{ 21212 s//\1/ 21213 q 21214 } 21215 s/.*/./; q'` 21216 am_filepart=`$as_basename -- "$am_mf" || 21217$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21218 X"$am_mf" : 'X\(//\)$' \| \ 21219 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21220printf "%s\n" X/"$am_mf" | 21221 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21222 s//\1/ 21223 q 21224 } 21225 /^X\/\(\/\/\)$/{ 21226 s//\1/ 21227 q 21228 } 21229 /^X\/\(\/\).*/{ 21230 s//\1/ 21231 q 21232 } 21233 s/.*/./; q'` 21234 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21235 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21236 | $MAKE -f - am--depfiles" >&5 21237 (cd "$am_dirpart" \ 21238 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21239 | $MAKE -f - am--depfiles) >&5 2>&5 21240 ac_status=$? 21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21242 (exit $ac_status); } || am_rc=$? 21243 done 21244 if test $am_rc -ne 0; then 21245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21246printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21247as_fn_error $? "Something went wrong bootstrapping makefile fragments 21248 for automatic dependency tracking. If GNU make was not used, consider 21249 re-running the configure script with MAKE=\"gmake\" (or whatever is 21250 necessary). You can also try re-running configure with the 21251 '--disable-dependency-tracking' option to at least be able to build 21252 the package (albeit without support for automatic dependency tracking). 21253See \`config.log' for more details" "$LINENO" 5; } 21254 fi 21255 { am_dirpart=; unset am_dirpart;} 21256 { am_filepart=; unset am_filepart;} 21257 { am_mf=; unset am_mf;} 21258 { am_rc=; unset am_rc;} 21259 rm -f conftest-deps.mk 21260} 21261 ;; 21262 "libtool":C) 21263 21264 # See if we are running on zsh, and set the options that allow our 21265 # commands through without removal of \ escapes. 21266 if test -n "${ZSH_VERSION+set}"; then 21267 setopt NO_GLOB_SUBST 21268 fi 21269 21270 cfgfile=${ofile}T 21271 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21272 $RM "$cfgfile" 21273 21274 cat <<_LT_EOF >> "$cfgfile" 21275#! $SHELL 21276# Generated automatically by $as_me ($PACKAGE) $VERSION 21277# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21278# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21279 21280# Provide generalized library-building support services. 21281# Written by Gordon Matzigkeit, 1996 21282 21283# Copyright (C) 2014 Free Software Foundation, Inc. 21284# This is free software; see the source for copying conditions. There is NO 21285# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21286 21287# GNU Libtool is free software; you can redistribute it and/or modify 21288# it under the terms of the GNU General Public License as published by 21289# the Free Software Foundation; either version 2 of of the License, or 21290# (at your option) any later version. 21291# 21292# As a special exception to the GNU General Public License, if you 21293# distribute this file as part of a program or library that is built 21294# using GNU Libtool, you may include this file under the same 21295# distribution terms that you use for the rest of that program. 21296# 21297# GNU Libtool is distributed in the hope that it will be useful, but 21298# WITHOUT ANY WARRANTY; without even the implied warranty of 21299# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21300# GNU General Public License for more details. 21301# 21302# You should have received a copy of the GNU General Public License 21303# along with this program. If not, see <http://www.gnu.org/licenses/>. 21304 21305 21306# The names of the tagged configurations supported by this script. 21307available_tags='' 21308 21309# Configured defaults for sys_lib_dlsearch_path munging. 21310: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21311 21312# ### BEGIN LIBTOOL CONFIG 21313 21314# Which release of libtool.m4 was used? 21315macro_version=$macro_version 21316macro_revision=$macro_revision 21317 21318# Whether or not to build shared libraries. 21319build_libtool_libs=$enable_shared 21320 21321# Whether or not to build static libraries. 21322build_old_libs=$enable_static 21323 21324# What type of objects to build. 21325pic_mode=$pic_mode 21326 21327# Whether or not to optimize for fast installation. 21328fast_install=$enable_fast_install 21329 21330# Shared archive member basename,for filename based shared library versioning on AIX. 21331shared_archive_member_spec=$shared_archive_member_spec 21332 21333# Shell to use when invoking shell scripts. 21334SHELL=$lt_SHELL 21335 21336# An echo program that protects backslashes. 21337ECHO=$lt_ECHO 21338 21339# The PATH separator for the build system. 21340PATH_SEPARATOR=$lt_PATH_SEPARATOR 21341 21342# The host system. 21343host_alias=$host_alias 21344host=$host 21345host_os=$host_os 21346 21347# The build system. 21348build_alias=$build_alias 21349build=$build 21350build_os=$build_os 21351 21352# A sed program that does not truncate output. 21353SED=$lt_SED 21354 21355# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21356Xsed="\$SED -e 1s/^X//" 21357 21358# A grep program that handles long lines. 21359GREP=$lt_GREP 21360 21361# An ERE matcher. 21362EGREP=$lt_EGREP 21363 21364# A literal string matcher. 21365FGREP=$lt_FGREP 21366 21367# A BSD- or MS-compatible name lister. 21368NM=$lt_NM 21369 21370# Whether we need soft or hard links. 21371LN_S=$lt_LN_S 21372 21373# What is the maximum length of a command? 21374max_cmd_len=$max_cmd_len 21375 21376# Object file suffix (normally "o"). 21377objext=$ac_objext 21378 21379# Executable file suffix (normally ""). 21380exeext=$exeext 21381 21382# whether the shell understands "unset". 21383lt_unset=$lt_unset 21384 21385# turn spaces into newlines. 21386SP2NL=$lt_lt_SP2NL 21387 21388# turn newlines into spaces. 21389NL2SP=$lt_lt_NL2SP 21390 21391# convert \$build file names to \$host format. 21392to_host_file_cmd=$lt_cv_to_host_file_cmd 21393 21394# convert \$build files to toolchain format. 21395to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21396 21397# A file(cmd) program that detects file types. 21398FILECMD=$lt_FILECMD 21399 21400# An object symbol dumper. 21401OBJDUMP=$lt_OBJDUMP 21402 21403# Method to check whether dependent libraries are shared objects. 21404deplibs_check_method=$lt_deplibs_check_method 21405 21406# Command to use when deplibs_check_method = "file_magic". 21407file_magic_cmd=$lt_file_magic_cmd 21408 21409# How to find potential files when deplibs_check_method = "file_magic". 21410file_magic_glob=$lt_file_magic_glob 21411 21412# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21413want_nocaseglob=$lt_want_nocaseglob 21414 21415# DLL creation program. 21416DLLTOOL=$lt_DLLTOOL 21417 21418# Command to associate shared and link libraries. 21419sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21420 21421# The archiver. 21422AR=$lt_AR 21423 21424# Flags to create an archive (by configure). 21425lt_ar_flags=$lt_ar_flags 21426 21427# Flags to create an archive. 21428AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21429 21430# How to feed a file listing to the archiver. 21431archiver_list_spec=$lt_archiver_list_spec 21432 21433# A symbol stripping program. 21434STRIP=$lt_STRIP 21435 21436# Commands used to install an old-style archive. 21437RANLIB=$lt_RANLIB 21438old_postinstall_cmds=$lt_old_postinstall_cmds 21439old_postuninstall_cmds=$lt_old_postuninstall_cmds 21440 21441# Whether to use a lock for old archive extraction. 21442lock_old_archive_extraction=$lock_old_archive_extraction 21443 21444# A C compiler. 21445LTCC=$lt_CC 21446 21447# LTCC compiler flags. 21448LTCFLAGS=$lt_CFLAGS 21449 21450# Take the output of nm and produce a listing of raw symbols and C names. 21451global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21452 21453# Transform the output of nm in a proper C declaration. 21454global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21455 21456# Transform the output of nm into a list of symbols to manually relocate. 21457global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21458 21459# Transform the output of nm in a C name address pair. 21460global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21461 21462# Transform the output of nm in a C name address pair when lib prefix is needed. 21463global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21464 21465# The name lister interface. 21466nm_interface=$lt_lt_cv_nm_interface 21467 21468# Specify filename containing input files for \$NM. 21469nm_file_list_spec=$lt_nm_file_list_spec 21470 21471# The root where to search for dependent libraries,and where our libraries should be installed. 21472lt_sysroot=$lt_sysroot 21473 21474# Command to truncate a binary pipe. 21475lt_truncate_bin=$lt_lt_cv_truncate_bin 21476 21477# The name of the directory that contains temporary libtool files. 21478objdir=$objdir 21479 21480# Used to examine libraries when file_magic_cmd begins with "file". 21481MAGIC_CMD=$MAGIC_CMD 21482 21483# Must we lock files when doing compilation? 21484need_locks=$lt_need_locks 21485 21486# Manifest tool. 21487MANIFEST_TOOL=$lt_MANIFEST_TOOL 21488 21489# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21490DSYMUTIL=$lt_DSYMUTIL 21491 21492# Tool to change global to local symbols on Mac OS X. 21493NMEDIT=$lt_NMEDIT 21494 21495# Tool to manipulate fat objects and archives on Mac OS X. 21496LIPO=$lt_LIPO 21497 21498# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21499OTOOL=$lt_OTOOL 21500 21501# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21502OTOOL64=$lt_OTOOL64 21503 21504# Old archive suffix (normally "a"). 21505libext=$libext 21506 21507# Shared library suffix (normally ".so"). 21508shrext_cmds=$lt_shrext_cmds 21509 21510# The commands to extract the exported symbol list from a shared archive. 21511extract_expsyms_cmds=$lt_extract_expsyms_cmds 21512 21513# Variables whose values should be saved in libtool wrapper scripts and 21514# restored at link time. 21515variables_saved_for_relink=$lt_variables_saved_for_relink 21516 21517# Do we need the "lib" prefix for modules? 21518need_lib_prefix=$need_lib_prefix 21519 21520# Do we need a version for libraries? 21521need_version=$need_version 21522 21523# Library versioning type. 21524version_type=$version_type 21525 21526# Shared library runtime path variable. 21527runpath_var=$runpath_var 21528 21529# Shared library path variable. 21530shlibpath_var=$shlibpath_var 21531 21532# Is shlibpath searched before the hard-coded library search path? 21533shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21534 21535# Format of library name prefix. 21536libname_spec=$lt_libname_spec 21537 21538# List of archive names. First name is the real one, the rest are links. 21539# The last name is the one that the linker finds with -lNAME 21540library_names_spec=$lt_library_names_spec 21541 21542# The coded name of the library, if different from the real name. 21543soname_spec=$lt_soname_spec 21544 21545# Permission mode override for installation of shared libraries. 21546install_override_mode=$lt_install_override_mode 21547 21548# Command to use after installation of a shared archive. 21549postinstall_cmds=$lt_postinstall_cmds 21550 21551# Command to use after uninstallation of a shared archive. 21552postuninstall_cmds=$lt_postuninstall_cmds 21553 21554# Commands used to finish a libtool library installation in a directory. 21555finish_cmds=$lt_finish_cmds 21556 21557# As "finish_cmds", except a single script fragment to be evaled but 21558# not shown. 21559finish_eval=$lt_finish_eval 21560 21561# Whether we should hardcode library paths into libraries. 21562hardcode_into_libs=$hardcode_into_libs 21563 21564# Compile-time system search path for libraries. 21565sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21566 21567# Detected run-time system search path for libraries. 21568sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21569 21570# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21571configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21572 21573# Whether dlopen is supported. 21574dlopen_support=$enable_dlopen 21575 21576# Whether dlopen of programs is supported. 21577dlopen_self=$enable_dlopen_self 21578 21579# Whether dlopen of statically linked programs is supported. 21580dlopen_self_static=$enable_dlopen_self_static 21581 21582# Commands to strip libraries. 21583old_striplib=$lt_old_striplib 21584striplib=$lt_striplib 21585 21586 21587# The linker used to build libraries. 21588LD=$lt_LD 21589 21590# How to create reloadable object files. 21591reload_flag=$lt_reload_flag 21592reload_cmds=$lt_reload_cmds 21593 21594# Commands used to build an old-style archive. 21595old_archive_cmds=$lt_old_archive_cmds 21596 21597# A language specific compiler. 21598CC=$lt_compiler 21599 21600# Is the compiler the GNU compiler? 21601with_gcc=$GCC 21602 21603# Compiler flag to turn off builtin functions. 21604no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21605 21606# Additional compiler flags for building library objects. 21607pic_flag=$lt_lt_prog_compiler_pic 21608 21609# How to pass a linker flag through the compiler. 21610wl=$lt_lt_prog_compiler_wl 21611 21612# Compiler flag to prevent dynamic linking. 21613link_static_flag=$lt_lt_prog_compiler_static 21614 21615# Does compiler simultaneously support -c and -o options? 21616compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21617 21618# Whether or not to add -lc for building shared libraries. 21619build_libtool_need_lc=$archive_cmds_need_lc 21620 21621# Whether or not to disallow shared libs when runtime libs are static. 21622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21623 21624# Compiler flag to allow reflexive dlopens. 21625export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21626 21627# Compiler flag to generate shared objects directly from archives. 21628whole_archive_flag_spec=$lt_whole_archive_flag_spec 21629 21630# Whether the compiler copes with passing no objects directly. 21631compiler_needs_object=$lt_compiler_needs_object 21632 21633# Create an old-style archive from a shared archive. 21634old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21635 21636# Create a temporary old-style archive to link instead of a shared archive. 21637old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21638 21639# Commands used to build a shared archive. 21640archive_cmds=$lt_archive_cmds 21641archive_expsym_cmds=$lt_archive_expsym_cmds 21642 21643# Commands used to build a loadable module if different from building 21644# a shared archive. 21645module_cmds=$lt_module_cmds 21646module_expsym_cmds=$lt_module_expsym_cmds 21647 21648# Whether we are building with GNU ld or not. 21649with_gnu_ld=$lt_with_gnu_ld 21650 21651# Flag that allows shared libraries with undefined symbols to be built. 21652allow_undefined_flag=$lt_allow_undefined_flag 21653 21654# Flag that enforces no undefined symbols. 21655no_undefined_flag=$lt_no_undefined_flag 21656 21657# Flag to hardcode \$libdir into a binary during linking. 21658# This must work even if \$libdir does not exist 21659hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21660 21661# Whether we need a single "-rpath" flag with a separated argument. 21662hardcode_libdir_separator=$lt_hardcode_libdir_separator 21663 21664# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21665# DIR into the resulting binary. 21666hardcode_direct=$hardcode_direct 21667 21668# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21669# DIR into the resulting binary and the resulting library dependency is 21670# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21671# library is relocated. 21672hardcode_direct_absolute=$hardcode_direct_absolute 21673 21674# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21675# into the resulting binary. 21676hardcode_minus_L=$hardcode_minus_L 21677 21678# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21679# into the resulting binary. 21680hardcode_shlibpath_var=$hardcode_shlibpath_var 21681 21682# Set to "yes" if building a shared library automatically hardcodes DIR 21683# into the library and all subsequent libraries and executables linked 21684# against it. 21685hardcode_automatic=$hardcode_automatic 21686 21687# Set to yes if linker adds runtime paths of dependent libraries 21688# to runtime path list. 21689inherit_rpath=$inherit_rpath 21690 21691# Whether libtool must link a program against all its dependency libraries. 21692link_all_deplibs=$link_all_deplibs 21693 21694# Set to "yes" if exported symbols are required. 21695always_export_symbols=$always_export_symbols 21696 21697# The commands to list exported symbols. 21698export_symbols_cmds=$lt_export_symbols_cmds 21699 21700# Symbols that should not be listed in the preloaded symbols. 21701exclude_expsyms=$lt_exclude_expsyms 21702 21703# Symbols that must always be exported. 21704include_expsyms=$lt_include_expsyms 21705 21706# Commands necessary for linking programs (against libraries) with templates. 21707prelink_cmds=$lt_prelink_cmds 21708 21709# Commands necessary for finishing linking programs. 21710postlink_cmds=$lt_postlink_cmds 21711 21712# Specify filename containing input files. 21713file_list_spec=$lt_file_list_spec 21714 21715# How to hardcode a shared library path into an executable. 21716hardcode_action=$hardcode_action 21717 21718# ### END LIBTOOL CONFIG 21719 21720_LT_EOF 21721 21722 cat <<'_LT_EOF' >> "$cfgfile" 21723 21724# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21725 21726# func_munge_path_list VARIABLE PATH 21727# ----------------------------------- 21728# VARIABLE is name of variable containing _space_ separated list of 21729# directories to be munged by the contents of PATH, which is string 21730# having a format: 21731# "DIR[:DIR]:" 21732# string "DIR[ DIR]" will be prepended to VARIABLE 21733# ":DIR[:DIR]" 21734# string "DIR[ DIR]" will be appended to VARIABLE 21735# "DIRP[:DIRP]::[DIRA:]DIRA" 21736# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21737# "DIRA[ DIRA]" will be appended to VARIABLE 21738# "DIR[:DIR]" 21739# VARIABLE will be replaced by "DIR[ DIR]" 21740func_munge_path_list () 21741{ 21742 case x$2 in 21743 x) 21744 ;; 21745 *:) 21746 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21747 ;; 21748 x:*) 21749 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21750 ;; 21751 *::*) 21752 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21753 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21754 ;; 21755 *) 21756 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21757 ;; 21758 esac 21759} 21760 21761 21762# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21763func_cc_basename () 21764{ 21765 for cc_temp in $*""; do 21766 case $cc_temp in 21767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21769 \-*) ;; 21770 *) break;; 21771 esac 21772 done 21773 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21774} 21775 21776 21777# ### END FUNCTIONS SHARED WITH CONFIGURE 21778 21779_LT_EOF 21780 21781 case $host_os in 21782 aix3*) 21783 cat <<\_LT_EOF >> "$cfgfile" 21784# AIX sometimes has problems with the GCC collect2 program. For some 21785# reason, if we set the COLLECT_NAMES environment variable, the problems 21786# vanish in a puff of smoke. 21787if test set != "${COLLECT_NAMES+set}"; then 21788 COLLECT_NAMES= 21789 export COLLECT_NAMES 21790fi 21791_LT_EOF 21792 ;; 21793 esac 21794 21795 21796 21797ltmain=$ac_aux_dir/ltmain.sh 21798 21799 21800 # We use sed instead of cat because bash on DJGPP gets confused if 21801 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21802 # text mode, it properly converts lines to CR/LF. This bash problem 21803 # is reportedly fixed, but why not run on old versions too? 21804 $SED '$q' "$ltmain" >> "$cfgfile" \ 21805 || (rm -f "$cfgfile"; exit 1) 21806 21807 mv -f "$cfgfile" "$ofile" || 21808 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21809 chmod +x "$ofile" 21810 21811 ;; 21812 21813 esac 21814done # for ac_tag 21815 21816 21817as_fn_exit 0 21818_ACEOF 21819ac_clean_files=$ac_clean_files_save 21820 21821test $ac_write_fail = 0 || 21822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21823 21824 21825# configure is writing to config.log, and then calls config.status. 21826# config.status does its own redirection, appending to config.log. 21827# Unfortunately, on DOS this fails, as config.log is still kept open 21828# by configure, so config.status won't be able to write to it; its 21829# output is simply discarded. So we exec the FD to /dev/null, 21830# effectively closing config.log, so it can be properly (re)opened and 21831# appended to by config.status. When coming back to configure, we 21832# need to make the FD available again. 21833if test "$no_create" != yes; then 21834 ac_cs_success=: 21835 ac_config_status_args= 21836 test "$silent" = yes && 21837 ac_config_status_args="$ac_config_status_args --quiet" 21838 exec 5>/dev/null 21839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21840 exec 5>>config.log 21841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21842 # would make configure fail if this is the last instruction. 21843 $ac_cs_success || as_fn_exit 1 21844fi 21845if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21847printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21848fi 21849 21850 21851